2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="Makefile"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subdirs_all="$ac_subdirs_all support/cpp2"
312 ac_subdirs_all="$ac_subdirs_all packihx"
313 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
314 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 include_dir_suffix lib_dir_suffix docdir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
791 \`configure' configures this package to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --disable-mcs51-port Excludes the Intel mcs51 port
859 --disable-gbz80-port Excludes the Gameboy gbz80 port
860 --disable-z80-port Excludes the z80 port
861 --disable-avr-port Excludes the AVR port
862 --disable-ds390-port Excludes the DS390 port
863 --disable-pic-port Excludes the PIC port
864 --disable-xa51-port Excludes the XA51 port
865 --disable-ucsim Disables configuring and building of ucsim
866 --disable-device-lib-build
867 Disables automatically building device libraries
868 --disable-packihx Disables building packihx
869 --enable-libgc Use the Bohem memory allocator. Lower runtime
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CXX C++ compiler command
880 CXXFLAGS C++ compiler flags
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 ac_dir_suffix= ac_top_builddir=
905 .) # No --srcdir option. We are building in place.
907 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
924 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927 # Check for guested configure; otherwise get Cygnus style configure.
928 if test -f $ac_srcdir/configure.gnu; then
930 $SHELL $ac_srcdir/configure.gnu --help=recursive
931 elif test -f $ac_srcdir/configure; then
933 $SHELL $ac_srcdir/configure --help=recursive
934 elif test -f $ac_srcdir/configure.ac ||
935 test -f $ac_srcdir/configure.in; then
939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 test -n "$ac_init_help" && exit 0
946 if $ac_init_version; then
949 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950 Free Software Foundation, Inc.
951 This configure script is free software; the Free Software Foundation
952 gives unlimited permission to copy, distribute and modify it.
958 This file contains any messages produced by compilers while
959 running configure, to aid debugging if configure makes a mistake.
961 It was created by $as_me, which was
962 generated by GNU Autoconf 2.57. Invocation command line was
973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
985 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 test -z "$as_dir" && as_dir=.
1012 # Keep a trace of the command line.
1013 # Strip out --no-create and --no-recursion so they do not pile up.
1014 # Strip out --silent because we don't want to record it for future runs.
1015 # Also quote any args containing shell meta-characters.
1016 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_must_keep_next=false
1027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1037 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1038 if test $ac_must_keep_next = true; then
1039 ac_must_keep_next=false # Got value, back to normal.
1042 *=* | --config-cache | -C | -disable-* | --disable-* \
1043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1045 | -with-* | --with-* | -without-* | --without-* | --x)
1046 case "$ac_configure_args0 " in
1047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050 -* ) ac_must_keep_next=true ;;
1053 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1054 # Get rid of the leading space.
1060 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1061 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069 # Save into config.log some information that might help in debugging.
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1079 # The following way of writing the cache mishandles newlines in values,
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097 ## ----------------- ##
1098 ## Output variables. ##
1099 ## ----------------- ##
1102 for ac_var in $ac_subst_vars
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -n "$ac_subst_files"; then
1116 for ac_var in $ac_subst_files
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1124 if test -s confdefs.h; then
1131 sed "/^$/d" confdefs.h | sort
1134 test "$ac_signal" != 0 &&
1135 echo "$as_me: caught signal $ac_signal"
1136 echo "$as_me: exit $exit_status"
1138 rm -f core core.* *.core &&
1139 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1142 for ac_signal in 1 2 13 15; do
1143 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1148 rm -rf conftest* confdefs.h
1149 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152 # Predefined preprocessor variables.
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 # Let the site file select an alternate cache file if it wants to.
1180 # Prefer explicitly selected file to automatically selected ones.
1181 if test -z "$CONFIG_SITE"; then
1182 if test "x$prefix" != xNONE; then
1183 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1185 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188 for ac_site_file in $CONFIG_SITE; do
1189 if test -r "$ac_site_file"; then
1190 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1191 echo "$as_me: loading site script $ac_site_file" >&6;}
1192 sed 's/^/| /' "$ac_site_file" >&5
1197 if test -r "$cache_file"; then
1198 # Some versions of bash will fail to source /dev/null (special
1199 # files actually), so we avoid doing that.
1200 if test -f "$cache_file"; then
1201 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1202 echo "$as_me: loading cache $cache_file" >&6;}
1204 [\\/]* | ?:[\\/]* ) . $cache_file;;
1205 *) . ./$cache_file;;
1209 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1210 echo "$as_me: creating cache $cache_file" >&6;}
1214 # Check that the precious variables saved in the cache have kept the same
1216 ac_cache_corrupted=false
1217 for ac_var in `(set) 2>&1 |
1218 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1219 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1220 eval ac_new_set=\$ac_env_${ac_var}_set
1221 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1222 eval ac_new_val="\$ac_env_${ac_var}_value"
1223 case $ac_old_set,$ac_new_set in
1225 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1226 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1227 ac_cache_corrupted=: ;;
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1234 if test "x$ac_old_val" != "x$ac_new_val"; then
1235 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1236 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1237 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1238 echo "$as_me: former value: $ac_old_val" >&2;}
1239 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1240 echo "$as_me: current value: $ac_new_val" >&2;}
1241 ac_cache_corrupted=:
1244 # Pass precious variables to config.status.
1245 if test "$ac_new_set" = set; then
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 *) ac_arg=$ac_var=$ac_new_val ;;
1251 case " $ac_configure_args " in
1252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1253 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 if $ac_cache_corrupted; then
1258 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1259 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1260 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1261 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1262 { (exit 1); exit 1; }; }
1266 ac_cpp='$CPP $CPPFLAGS'
1267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1293 for ac_prog in gawk mawk nawk awk
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo "$as_me:$LINENO: checking for $ac_word" >&5
1298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1299 if test "${ac_cv_prog_AWK+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 if test -n "$AWK"; then
1303 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1309 test -z "$as_dir" && as_dir=.
1310 for ac_exec_ext in '' $ac_executable_extensions; do
1311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1312 ac_cv_prog_AWK="$ac_prog"
1313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1322 if test -n "$AWK"; then
1323 echo "$as_me:$LINENO: result: $AWK" >&5
1324 echo "${ECHO_T}$AWK" >&6
1326 echo "$as_me:$LINENO: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1330 test -n "$AWK" && break
1334 echo "$as_me:$LINENO: checking version of the package" >&5
1335 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1336 if test -f .version; then
1337 VERSION=`cat .version`
1338 elif test -f ../.version; then
1339 VERSION=`cat ../.version`
1343 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1344 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1345 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1346 # Assume no special extension
1347 EXEEXT=`echo $EXEEXT`
1349 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1350 echo "${ECHO_T}${VERSION}" >&6
1355 cat >>confdefs.h <<_ACEOF
1356 #define SDCC_VERSION_LO ${VERSIONLO}
1359 cat >>confdefs.h <<_ACEOF
1360 #define SDCC_VERSION_HI ${VERSIONHI}
1363 cat >>confdefs.h <<_ACEOF
1364 #define SDCC_VERSION_P ${VERSIONP}
1367 cat >>confdefs.h <<_ACEOF
1368 #define SDCC_VERSION_STR "${VERSION}"
1371 test "$program_prefix" != NONE &&
1372 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1373 # Use a double $ so make ignores it.
1374 test "$program_suffix" != NONE &&
1375 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1376 # Double any \ or $. echo might interpret backslashes.
1377 # By default was `s,x,x', remove it if useless.
1378 cat <<\_ACEOF >conftest.sed
1379 s/[\\$]/&&/g;s/;s,x,x,$//
1381 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1384 sdcc_cv_version=$VERSION
1385 sdcc_cv_versionhi=$VERSIONHI
1386 sdcc_cv_versionlo=$VERSIONLO
1387 sdcc_cv_versionp=$VERSIONP
1391 # ===========================================================================
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 if test -n "$ac_tool_prefix"; then
1398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC="$CC" # Let the user override the test.
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 if test -n "$CC"; then
1426 echo "$as_me:$LINENO: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_ac_ct_CC="gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1476 if test -z "$CC"; then
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1557 if test -z "$CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 if test $ac_prog_rejected = yes; then
1588 # We found a bogon in the path, so make sure we never use it.
1589 set dummy $ac_cv_prog_CC
1591 if test $# != 0; then
1592 # We chose a different compiler from the bogus one.
1593 # However, it has the same basename, so the bogon will be chosen
1594 # first if we set CC to just the basename; use the full file name.
1596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1602 if test -n "$CC"; then
1603 echo "$as_me:$LINENO: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1611 if test -z "$CC"; then
1612 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$CC" && break
1653 if test -z "$CC"; then
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$ac_ct_CC" && break
1701 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1702 See \`config.log' for more details." >&5
1703 echo "$as_me: error: no acceptable C compiler found in \$PATH
1704 See \`config.log' for more details." >&2;}
1705 { (exit 1); exit 1; }; }
1707 # Provide some information about the compiler.
1708 echo "$as_me:$LINENO:" \
1709 "checking for C compiler version" >&5
1710 ac_compiler=`set X $ac_compile; echo $2`
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1712 (eval $ac_compiler --version </dev/null >&5) 2>&5
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1717 (eval $ac_compiler -v </dev/null >&5) 2>&5
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1722 (eval $ac_compiler -V </dev/null >&5) 2>&5
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line $LINENO "configure"
1731 cat confdefs.h >>conftest.$ac_ext
1732 cat >>conftest.$ac_ext <<_ACEOF
1733 /* end confdefs.h. */
1743 ac_clean_files_save=$ac_clean_files
1744 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1745 # Try to create an executable without -o first, disregard a.out.
1746 # It will help us diagnose broken compilers, and finding out an intuition
1748 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1749 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1750 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1751 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1752 (eval $ac_link_default) 2>&5
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }; then
1756 # Find the output, starting from the most likely. This scheme is
1757 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1760 # Be careful to initialize this variable, since it used to be cached.
1761 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1763 # b.out is created by i960 compilers.
1764 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1766 test -f "$ac_file" || continue
1768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1771 # This is the source file.
1774 # We found the default executable, but exeext='' is most
1778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1779 # FIXME: I believe we export ac_cv_exeext for Libtool,
1780 # but it would be cool to find out if it's true. Does anybody
1781 # maintain Libtool? --akim.
1789 echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1793 See \`config.log' for more details." >&5
1794 echo "$as_me: error: C compiler cannot create executables
1795 See \`config.log' for more details." >&2;}
1796 { (exit 77); exit 77; }; }
1799 ac_exeext=$ac_cv_exeext
1800 echo "$as_me:$LINENO: result: $ac_file" >&5
1801 echo "${ECHO_T}$ac_file" >&6
1803 # Check the compiler produces executables we can run. If not, either
1804 # the compiler is broken, or we cross compile.
1805 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1806 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1807 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1808 # If not cross compiling, check that we can run a simple program.
1809 if test "$cross_compiling" != yes; then
1810 if { ac_try='./$ac_file'
1811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }; }; then
1818 if test "$cross_compiling" = maybe; then
1821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1822 If you meant to cross compile, use \`--host'.
1823 See \`config.log' for more details." >&5
1824 echo "$as_me: error: cannot run C compiled programs.
1825 If you meant to cross compile, use \`--host'.
1826 See \`config.log' for more details." >&2;}
1827 { (exit 1); exit 1; }; }
1831 echo "$as_me:$LINENO: result: yes" >&5
1832 echo "${ECHO_T}yes" >&6
1834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1835 ac_clean_files=$ac_clean_files_save
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1840 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1841 echo "${ECHO_T}$cross_compiling" >&6
1843 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1846 (eval $ac_link) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; then
1850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1851 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1852 # work properly (i.e., refer to `conftest.exe'), while it won't with
1854 for ac_file in conftest.exe conftest conftest.*; do
1855 test -f "$ac_file" || continue
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1872 rm -f conftest$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1874 echo "${ECHO_T}$ac_cv_exeext" >&6
1876 rm -f conftest.$ac_ext
1877 EXEEXT=$ac_cv_exeext
1879 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1880 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1881 if test "${ac_cv_objext+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 cat >conftest.$ac_ext <<_ACEOF
1885 #line $LINENO "configure"
1888 cat confdefs.h >>conftest.$ac_ext
1889 cat >>conftest.$ac_ext <<_ACEOF
1890 /* end confdefs.h. */
1900 rm -f conftest.o conftest.obj
1901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; then
1906 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1920 See \`config.log' for more details." >&2;}
1921 { (exit 1); exit 1; }; }
1924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1926 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1927 echo "${ECHO_T}$ac_cv_objext" >&6
1928 OBJEXT=$ac_cv_objext
1930 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1931 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 cat >conftest.$ac_ext <<_ACEOF
1936 #line $LINENO "configure"
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1977 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1979 GCC=`test $ac_compiler_gnu = yes && echo yes`
1980 ac_test_CFLAGS=${CFLAGS+set}
1981 ac_save_CFLAGS=$CFLAGS
1983 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1984 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_g+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 cat >conftest.$ac_ext <<_ACEOF
1989 #line $LINENO "configure"
1992 cat confdefs.h >>conftest.$ac_ext
1993 cat >>conftest.$ac_ext <<_ACEOF
1994 /* end confdefs.h. */
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006 (eval $ac_compile) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2018 echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2023 rm -f conftest.$ac_objext conftest.$ac_ext
2025 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2027 if test "$ac_test_CFLAGS" = set; then
2028 CFLAGS=$ac_save_CFLAGS
2029 elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2036 if test "$GCC" = yes; then
2042 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2043 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2044 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 ac_cv_prog_cc_stdc=no
2049 cat >conftest.$ac_ext <<_ACEOF
2050 #line $LINENO "configure"
2053 cat confdefs.h >>conftest.$ac_ext
2054 cat >>conftest.$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2058 #include <sys/types.h>
2059 #include <sys/stat.h>
2060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2061 struct buf { int x; };
2062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2063 static char *e (p, i)
2069 static char *f (char * (*g) (char **, int), char **p, ...)
2074 s = g (p, va_arg (v,int));
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2092 # Don't try gcc -ansi; that turns off useful extensions and
2093 # breaks some systems' header files.
2094 # AIX -qlanglvl=ansi
2095 # Ultrix and OSF/1 -std1
2096 # HP-UX 10.20 and later -Ae
2097 # HP-UX older versions -Aa -D_HPUX_SOURCE
2098 # SVR4 -Xc -D__EXTENSIONS__
2099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.$ac_objext
2123 rm -f conftest.$ac_ext conftest.$ac_objext
2128 case "x$ac_cv_prog_cc_stdc" in
2130 echo "$as_me:$LINENO: result: none needed" >&5
2131 echo "${ECHO_T}none needed" >&6 ;;
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2135 CC="$CC $ac_cv_prog_cc_stdc" ;;
2138 # Some people use a C++ compiler to compile C. Since we use `exit',
2139 # in C++ we need to declare it. In case someone uses the same compiler
2140 # for both compiling C and C++ we need to have the C++ compiler decide
2141 # the declaration of exit, since it's the most demanding environment.
2142 cat >conftest.$ac_ext <<_ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2159 for ac_declaration in \
2161 '#include <stdlib.h>' \
2162 'extern "C" void std::exit (int) throw (); using std::exit;' \
2163 'extern "C" void std::exit (int); using std::exit;' \
2164 'extern "C" void exit (int) throw ();' \
2165 'extern "C" void exit (int);' \
2168 cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2204 rm -f conftest.$ac_objext conftest.$ac_ext
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #line $LINENO "configure"
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2239 rm -f conftest.$ac_objext conftest.$ac_ext
2242 if test -n "$ac_declaration"; then
2243 echo '#ifdef __cplusplus' >>confdefs.h
2244 echo $ac_declaration >>confdefs.h
2245 echo '#endif' >>confdefs.h
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 ac_cpp='$CXXCPP $CPPFLAGS'
2262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CXX+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$CXX"; then
2276 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CXX"; then
2296 echo "$as_me:$LINENO: result: $CXX" >&5
2297 echo "${ECHO_T}$CXX" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$CXX" && break
2306 if test -z "$CXX"; then
2308 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CXX"; then
2318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CXX="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2337 if test -n "$ac_ct_CXX"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2339 echo "${ECHO_T}$ac_ct_CXX" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2345 test -n "$ac_ct_CXX" && break
2347 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2353 # Provide some information about the compiler.
2354 echo "$as_me:$LINENO:" \
2355 "checking for C++ compiler version" >&5
2356 ac_compiler=`set X $ac_compile; echo $2`
2357 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2358 (eval $ac_compiler --version </dev/null >&5) 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2363 (eval $ac_compiler -v </dev/null >&5) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2368 (eval $ac_compiler -V </dev/null >&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2373 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2374 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2375 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2420 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2422 GXX=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CXXFLAGS=${CXXFLAGS+set}
2424 ac_save_CXXFLAGS=$CXXFLAGS
2426 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2427 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cxx_g+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 cat >conftest.$ac_ext <<_ACEOF
2432 #line $LINENO "configure"
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 ac_cv_prog_cxx_g=yes
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2466 rm -f conftest.$ac_objext conftest.$ac_ext
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2470 if test "$ac_test_CXXFLAGS" = set; then
2471 CXXFLAGS=$ac_save_CXXFLAGS
2472 elif test $ac_cv_prog_cxx_g = yes; then
2473 if test "$GXX" = yes; then
2479 if test "$GXX" = yes; then
2485 for ac_declaration in \
2487 '#include <stdlib.h>' \
2488 'extern "C" void std::exit (int) throw (); using std::exit;' \
2489 'extern "C" void std::exit (int); using std::exit;' \
2490 'extern "C" void exit (int) throw ();' \
2491 'extern "C" void exit (int);' \
2494 cat >conftest.$ac_ext <<_ACEOF
2495 #line $LINENO "configure"
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.$ac_objext conftest.$ac_ext
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest.$ac_ext
2568 if test -n "$ac_declaration"; then
2569 echo '#ifdef __cplusplus' >>confdefs.h
2570 echo $ac_declaration >>confdefs.h
2571 echo '#endif' >>confdefs.h
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2586 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2587 # On Suns, sometimes $CPP names a directory.
2588 if test -n "$CPP" && test -d "$CPP"; then
2591 if test -z "$CPP"; then
2592 if test "${ac_cv_prog_CPP+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 # Double quotes because CPP needs to be expanded
2596 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2599 for ac_c_preproc_warn_flag in '' yes
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 # <limits.h> exists even on freestanding compilers.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2615 # include <limits.h>
2617 # include <assert.h>
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } >/dev/null; then
2629 if test -s conftest.err; then
2630 ac_cpp_err=$ac_c_preproc_warn_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 # Broken: fails on valid input.
2646 rm -f conftest.err conftest.$ac_ext
2648 # OK, works on sane cases. Now check whether non-existent headers
2649 # can be detected and how.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657 #include <ac_nonexistent.h>
2659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662 grep -v '^ *+' conftest.er1 >conftest.err
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } >/dev/null; then
2667 if test -s conftest.err; then
2668 ac_cpp_err=$ac_c_preproc_warn_flag
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 # Passes both tests.
2686 rm -f conftest.err conftest.$ac_ext
2689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690 rm -f conftest.err conftest.$ac_ext
2691 if $ac_preproc_ok; then
2703 echo "$as_me:$LINENO: result: $CPP" >&5
2704 echo "${ECHO_T}$CPP" >&6
2706 for ac_c_preproc_warn_flag in '' yes
2708 # Use a header file that comes with gcc, so configuring glibc
2709 # with a fresh cross-compiler works.
2710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2711 # <limits.h> exists even on freestanding compilers.
2712 # On the NeXT, cc -E runs the code through the compiler's parser,
2713 # not just through cpp. "Syntax error" is here to catch this case.
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2722 # include <limits.h>
2724 # include <assert.h>
2728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } >/dev/null; then
2736 if test -s conftest.err; then
2737 ac_cpp_err=$ac_c_preproc_warn_flag
2744 if test -z "$ac_cpp_err"; then
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 # Broken: fails on valid input.
2753 rm -f conftest.err conftest.$ac_ext
2755 # OK, works on sane cases. Now check whether non-existent headers
2756 # can be detected and how.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 #include <ac_nonexistent.h>
2766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } >/dev/null; then
2774 if test -s conftest.err; then
2775 ac_cpp_err=$ac_c_preproc_warn_flag
2782 if test -z "$ac_cpp_err"; then
2783 # Broken: success on invalid input.
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 # Passes both tests.
2793 rm -f conftest.err conftest.$ac_ext
2796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2797 rm -f conftest.err conftest.$ac_ext
2798 if $ac_preproc_ok; then
2801 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2802 See \`config.log' for more details." >&5
2803 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2804 See \`config.log' for more details." >&2;}
2805 { (exit 1); exit 1; }; }
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2816 if test -f $ac_dir/install-sh; then
2818 ac_install_sh="$ac_aux_dir/install-sh -c"
2820 elif test -f $ac_dir/install.sh; then
2822 ac_install_sh="$ac_aux_dir/install.sh -c"
2824 elif test -f $ac_dir/shtool; then
2826 ac_install_sh="$ac_aux_dir/shtool install -c"
2830 if test -z "$ac_aux_dir"; then
2831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2832 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2833 { (exit 1); exit 1; }; }
2835 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2836 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2837 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2839 # Find a good install program. We prefer a C program (faster),
2840 # so one script is as good as another. But avoid the broken or
2841 # incompatible versions:
2842 # SysV /etc/install, /usr/sbin/install
2843 # SunOS /usr/etc/install
2844 # IRIX /sbin/install
2846 # AmigaOS /C/install, which installs bootblocks on floppy discs
2847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2850 # ./install, which can be erroneously created by make from ./install.sh.
2851 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2853 if test -z "$INSTALL"; then
2854 if test "${ac_cv_path_install+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 # Account for people who put trailing slashes in PATH elements.
2864 ./ | .// | /cC/* | \
2865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2868 # OSF1 and SCO ODT 3.0 have their own names for install.
2869 # Don't use installbsd from OSF since it installs stuff as root
2871 for ac_prog in ginstall scoinst install; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2874 if test $ac_prog = install &&
2875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876 # AIX install. It has an incompatible calling convention.
2878 elif test $ac_prog = install &&
2879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880 # program-specific install script used by HP pwplus--don't use.
2883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2895 if test "${ac_cv_path_install+set}" = set; then
2896 INSTALL=$ac_cv_path_install
2898 # As a last resort, use the slow shell script. We don't cache a
2899 # path for INSTALL within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the path is relative.
2902 INSTALL=$ac_install_sh
2905 echo "$as_me:$LINENO: result: $INSTALL" >&5
2906 echo "${ECHO_T}$INSTALL" >&6
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_RANLIB+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$RANLIB"; then
2925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 RANLIB=$ac_cv_prog_RANLIB
2944 if test -n "$RANLIB"; then
2945 echo "$as_me:$LINENO: result: $RANLIB" >&5
2946 echo "${ECHO_T}$RANLIB" >&6
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2953 if test -z "$ac_cv_prog_RANLIB"; then
2954 ac_ct_RANLIB=$RANLIB
2955 # Extract the first word of "ranlib", so it can be a program name with args.
2956 set dummy ranlib; ac_word=$2
2957 echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 if test -n "$ac_ct_RANLIB"; then
2963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_RANLIB="ranlib"
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2983 if test -n "$ac_ct_RANLIB"; then
2984 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2985 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2987 echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2991 RANLIB=$ac_ct_RANLIB
2993 RANLIB="$ac_cv_prog_RANLIB"
2997 for ac_prog in flex lex
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003 if test "${ac_cv_prog_LEX+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 if test -n "$LEX"; then
3007 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_LEX="$ac_prog"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$LEX"; then
3027 echo "$as_me:$LINENO: result: $LEX" >&5
3028 echo "${ECHO_T}$LEX" >&6
3030 echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3034 test -n "$LEX" && break
3036 test -n "$LEX" || LEX=":"
3038 if test -z "$LEXLIB"
3040 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3041 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3042 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 ac_check_lib_save_LIBS=$LIBS
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3055 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3070 rm -f conftest.$ac_objext conftest$ac_exeext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072 (eval $ac_link) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest$ac_exeext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_lib_fl_yywrap=yes
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_cv_lib_fl_yywrap=no
3089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3090 LIBS=$ac_check_lib_save_LIBS
3092 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3093 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3094 if test $ac_cv_lib_fl_yywrap = yes; then
3097 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3098 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3099 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 ac_check_lib_save_LIBS=$LIBS
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3112 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3127 rm -f conftest.$ac_objext conftest$ac_exeext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3129 (eval $ac_link) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -s conftest$ac_exeext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 ac_cv_lib_l_yywrap=yes
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 ac_cv_lib_l_yywrap=no
3146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3147 LIBS=$ac_check_lib_save_LIBS
3149 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3150 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3151 if test $ac_cv_lib_l_yywrap = yes; then
3159 if test "x$LEX" != "x:"; then
3160 echo "$as_me:$LINENO: checking lex output file root" >&5
3161 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3162 if test "${ac_cv_prog_lex_root+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 # The minimal lex program is just a single line: %%. But some broken lexes
3166 # (Solaris, I think it was) want two %% lines, so accommodate them.
3167 cat >conftest.l <<_ACEOF
3171 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3172 (eval $LEX conftest.l) 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 if test -f lex.yy.c; then
3177 ac_cv_prog_lex_root=lex.yy
3178 elif test -f lexyy.c; then
3179 ac_cv_prog_lex_root=lexyy
3181 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3182 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3183 { (exit 1); exit 1; }; }
3186 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3187 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3189 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3191 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3192 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3193 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 # POSIX says lex can declare yytext either as a pointer or an array; the
3197 # default is implementation-dependent. Figure out which it is, since
3198 # not all implementations provide the %pointer and %array declarations.
3199 ac_cv_prog_lex_yytext_pointer=no
3200 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3202 LIBS="$LIBS $LEXLIB"
3203 cat >conftest.$ac_ext <<_ACEOF
3204 `cat $LEX_OUTPUT_ROOT.c`
3206 rm -f conftest.$ac_objext conftest$ac_exeext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3208 (eval $ac_link) 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest$ac_exeext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_cv_prog_lex_yytext_pointer=yes
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3226 rm -f "${LEX_OUTPUT_ROOT}.c"
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3230 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3231 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define YYTEXT_POINTER 1
3240 for ac_prog in 'bison -y' byacc
3242 # Extract the first word of "$ac_prog", so it can be a program name with args.
3243 set dummy $ac_prog; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_YACC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$YACC"; then
3250 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_YACC="$ac_prog"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 YACC=$ac_cv_prog_YACC
3269 if test -n "$YACC"; then
3270 echo "$as_me:$LINENO: result: $YACC" >&5
3271 echo "${ECHO_T}$YACC" >&6
3273 echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6
3277 test -n "$YACC" && break
3279 test -n "$YACC" || YACC="yacc"
3281 # Extract the first word of "autoconf", so it can be a program name with args.
3282 set dummy autoconf; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$AUTOCONF"; then
3289 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_AUTOCONF="autoconf"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3308 AUTOCONF=$ac_cv_prog_AUTOCONF
3309 if test -n "$AUTOCONF"; then
3310 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3311 echo "${ECHO_T}$AUTOCONF" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3317 # Extract the first word of "strip", so it can be a program name with args.
3318 set dummy strip; ac_word=$2
3319 echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_STRIP+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 if test -n "$STRIP"; then
3325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_STRIP="strip"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3344 STRIP=$ac_cv_prog_STRIP
3345 if test -n "$STRIP"; then
3346 echo "$as_me:$LINENO: result: $STRIP" >&5
3347 echo "${ECHO_T}$STRIP" >&6
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3353 # Extract the first word of "as", so it can be a program name with args.
3354 set dummy as; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_prog_AS+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 if test -n "$AS"; then
3361 ac_cv_prog_AS="$AS" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3381 if test -n "$AS"; then
3382 echo "$as_me:$LINENO: result: $AS" >&5
3383 echo "${ECHO_T}$AS" >&6
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3389 # Extract the first word of "cp", so it can be a program name with args.
3390 set dummy cp; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_CP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$CP"; then
3397 ac_cv_prog_CP="$CP" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3417 if test -n "$CP"; then
3418 echo "$as_me:$LINENO: result: $CP" >&5
3419 echo "${ECHO_T}$CP" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3426 # Extract the first word of "lyx", so it can be a program name with args.
3427 set dummy lyx; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_prog_LYX+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 if test -n "$LYX"; then
3434 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_LYX="lyx"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3454 if test -n "$LYX"; then
3455 echo "$as_me:$LINENO: result: $LYX" >&5
3456 echo "${ECHO_T}$LYX" >&6
3458 echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3462 # Extract the first word of "latex", so it can be a program name with args.
3463 set dummy latex; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_LATEX+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$LATEX"; then
3470 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_LATEX="latex"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3489 LATEX=$ac_cv_prog_LATEX
3490 if test -n "$LATEX"; then
3491 echo "$as_me:$LINENO: result: $LATEX" >&5
3492 echo "${ECHO_T}$LATEX" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "latex2html", so it can be a program name with args.
3499 set dummy latex2html; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if test -n "$LATEX2HTML"; then
3506 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_LATEX2HTML="latex2html"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3525 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3526 if test -n "$LATEX2HTML"; then
3527 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3528 echo "${ECHO_T}$LATEX2HTML" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "pdflatex", so it can be a program name with args.
3535 set dummy pdflatex; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 if test -n "$PDFLATEX"; then
3542 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_PDFLATEX="pdflatex"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3561 PDFLATEX=$ac_cv_prog_PDFLATEX
3562 if test -n "$PDFLATEX"; then
3563 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3564 echo "${ECHO_T}$PDFLATEX" >&6
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3570 # Extract the first word of "dvipdf", so it can be a program name with args.
3571 set dummy dvipdf; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$DVIPDF"; then
3578 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_DVIPDF="dvipdf"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3597 DVIPDF=$ac_cv_prog_DVIPDF
3598 if test -n "$DVIPDF"; then
3599 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3600 echo "${ECHO_T}$DVIPDF" >&6
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3609 if test "$YACC" = ":"; then
3610 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3611 echo "$as_me: error: Cannot find required program bison." >&2;}
3612 { (exit 1); exit 1; }; }
3615 if test "$LEX" = ":"; then
3616 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3617 echo "$as_me: error: Cannot find required program lex." >&2;}
3618 { (exit 1); exit 1; }; }
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 # Checking for header files.
3631 # ===========================================================================
3633 echo "$as_me:$LINENO: checking for egrep" >&5
3634 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3635 if test "${ac_cv_prog_egrep+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3639 then ac_cv_prog_egrep='grep -E'
3640 else ac_cv_prog_egrep='egrep'
3643 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3644 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3645 EGREP=$ac_cv_prog_egrep
3648 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3649 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3650 if test "${ac_cv_header_stdc+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_header_stdc=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_cv_header_stdc=no
3692 rm -f conftest.$ac_objext conftest.$ac_ext
3694 if test $ac_cv_header_stdc = yes; then
3695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #line $LINENO "configure"
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then
3710 ac_cv_header_stdc=no
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "free" >/dev/null 2>&1; then
3732 ac_cv_header_stdc=no
3738 if test $ac_cv_header_stdc = yes; then
3739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3740 if test "$cross_compiling" = yes; then
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3751 #if ((' ' & 0x0FF) == 0x020)
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3755 # define ISLOWER(c) \
3756 (('a' <= (c) && (c) <= 'i') \
3757 || ('j' <= (c) && (c) <= 'r') \
3758 || ('s' <= (c) && (c) <= 'z'))
3759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3767 for (i = 0; i < 256; i++)
3768 if (XOR (islower (i), ISLOWER (i))
3769 || toupper (i) != TOUPPER (i))
3774 rm -f conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3787 echo "$as_me: program exited with status $ac_status" >&5
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_cv_header_stdc=no
3794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3799 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3800 if test $ac_cv_header_stdc = yes; then
3802 cat >>confdefs.h <<\_ACEOF
3803 #define STDC_HEADERS 1
3808 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3818 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3819 inttypes.h stdint.h unistd.h
3821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3822 echo "$as_me:$LINENO: checking for $ac_header" >&5
3823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 cat >conftest.$ac_ext <<_ACEOF
3828 #line $LINENO "configure"
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 $ac_includes_default
3836 #include <$ac_header>
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_Header=yes"
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 eval "$as_ac_Header=no"
3857 rm -f conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3862 cat >>confdefs.h <<_ACEOF
3863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872 for ac_header in sys/socket.h
3874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3876 echo "$as_me:$LINENO: checking for $ac_header" >&5
3877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884 # Is the header compilable?
3885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3887 cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_includes_default
3895 #include <$ac_header>
3897 rm -f conftest.$ac_objext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_header_compiler=yes
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_header_compiler=no
3916 rm -f conftest.$ac_objext conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3918 echo "${ECHO_T}$ac_header_compiler" >&6
3920 # Is the header present?
3921 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3923 cat >conftest.$ac_ext <<_ACEOF
3924 #line $LINENO "configure"
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <$ac_header>
3932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
3948 if test -z "$ac_cpp_err"; then
3949 ac_header_preproc=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_header_preproc=no
3956 rm -f conftest.err conftest.$ac_ext
3957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3958 echo "${ECHO_T}$ac_header_preproc" >&6
3960 # So? What about this header?
3961 case $ac_header_compiler:$ac_header_preproc in
3963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3969 ## ------------------------------------ ##
3970 ## Report this to bug-autoconf@gnu.org. ##
3971 ## ------------------------------------ ##
3974 sed "s/^/$as_me: WARNING: /" >&2
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3985 ## ------------------------------------ ##
3986 ## Report this to bug-autoconf@gnu.org. ##
3987 ## ------------------------------------ ##
3990 sed "s/^/$as_me: WARNING: /" >&2
3993 echo "$as_me:$LINENO: checking for $ac_header" >&5
3994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 eval "$as_ac_Header=$ac_header_preproc"
4000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4005 cat >>confdefs.h <<_ACEOF
4006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015 # Checking for functions
4016 # ===========================================================================
4018 for ac_func in strerror
4020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4021 echo "$as_me:$LINENO: checking for $ac_func" >&5
4022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4023 if eval "test \"\${$as_ac_var+set}\" = set"; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 /* System header to define __stub macros and hopefully few prototypes,
4034 which can conflict with char $ac_func (); below.
4035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 <limits.h> exists even on freestanding compilers. */
4038 # include <limits.h>
4040 # include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4050 /* The GNU C library defines this for functions which it implements
4051 to always fail with ENOSYS. Some functions are actually named
4052 something starting with __ and the normal name is an alias. */
4053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4056 char (*f) () = $ac_func;
4065 return f != $ac_func;
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -s conftest$ac_exeext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 eval "$as_ac_var=yes"
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 eval "$as_ac_var=no"
4089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4093 if test `eval echo '${'$as_ac_var'}'` = yes; then
4094 cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4105 for ac_func in vsnprintf snprintf vsprintf mkstemp
4107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4108 echo "$as_me:$LINENO: checking for $ac_func" >&5
4109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_var+set}\" = set"; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func (); below.
4122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4123 <limits.h> exists even on freestanding compilers. */
4125 # include <limits.h>
4127 # include <assert.h>
4129 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4143 char (*f) () = $ac_func;
4152 return f != $ac_func;
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 eval "$as_ac_var=yes"
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 eval "$as_ac_var=no"
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4180 if test `eval echo '${'$as_ac_var'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4191 # ===========================================================================
4193 # DD_COPT macro checks if the compiler specified as the 1st parameter
4194 # supports option specified as the 2nd parameter
4195 # For example: DD_CPORT(CXX, fPIC)
4199 # This macro expands DIR and assigns it to RET.
4200 # If DIR is NONE, then it's replaced by DEFAULT.
4202 # Based on AC_DEFINE_DIR
4206 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4210 # adl_NORMALIZE_PATH
4212 # - empty paths are changed to '.'
4213 # - trailing slashes are removed
4214 # - repeated slashes are squeezed except a leading doubled slash '//'
4215 # (which might indicate a networked disk on some OS).
4218 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4219 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4220 # are turned into backslashes, otherwise they are all turned into slashes.
4222 # This makes processing of DOS filenames quite easier, because you can turn a
4223 # filename to the Unix notation, make your processing, and turn it back to
4224 # original notation.
4229 # adl_COMPUTE_RELATIVE_PATH
4231 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4232 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4233 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4234 # absolute filenames for this macro to success.
4240 ## The following helper macros are too fragile to be used out
4241 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4242 ## paths are normalized), that's why I'm keeping them in the same file.
4243 ## Still, some of them maybe worth to reuse.
4257 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4262 # Checking characteristics of compilers and other programs
4263 # ===========================================================================
4264 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4265 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4266 if test "${sdcc_cv_MM+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 echo "#include <stdio.h>" >_test_.c
4271 $CPP -v -MM _test_.c 1>&5 2>&5
4272 if test "$?" = "0"; then
4279 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4280 echo "${ECHO_T}$sdcc_cv_MM" >&6
4284 # This is the first time when CFLAGS are set/modified!!
4286 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4287 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4288 if test "${sdcc_cv_CCggdb+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4296 if test "$?" = "0"; then
4297 sdcc_cv_CCggdb="yes"
4301 rm -f _test_.* a.out
4303 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4304 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4306 if test "$sdcc_cv_CCggdb" = "yes"; then
4307 CFLAGS="-ggdb ${CFLAGS}"
4311 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4312 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4313 if test "${sdcc_cv_CCpipe+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 $CC -v -pipe -c _test_.c 1>&5 2>&5
4321 if test "$?" = "0"; then
4322 sdcc_cv_CCpipe="yes"
4326 rm -f _test_.* a.out
4328 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4329 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4331 if test "$sdcc_cv_CCpipe" = "yes"; then
4332 CFLAGS="-pipe $CFLAGS"
4336 # Checks for typedefs, structures, and compiler characteristics.
4337 # ===========================================================================
4338 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4339 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4340 if test "${ac_cv_type_signal+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 #include <sys/types.h>
4356 extern "C" void (*signal (int, void (*)(int)))(int);
4358 void (*signal ()) ();
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_type_signal=void
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_type_signal=int
4388 rm -f conftest.$ac_objext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4391 echo "${ECHO_T}$ac_cv_type_signal" >&6
4393 cat >>confdefs.h <<_ACEOF
4394 #define RETSIGTYPE $ac_cv_type_signal
4399 echo "$as_me:$LINENO: checking for char" >&5
4400 echo $ECHO_N "checking for char... $ECHO_C" >&6
4401 if test "${ac_cv_type_char+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 #line $LINENO "configure"
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 $ac_includes_default
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4442 rm -f conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4445 echo "${ECHO_T}$ac_cv_type_char" >&6
4447 echo "$as_me:$LINENO: checking size of char" >&5
4448 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4449 if test "${ac_cv_sizeof_char+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test "$ac_cv_type_char" = yes; then
4453 # The cast to unsigned long works around a bug in the HP C Compiler
4454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4456 # This bug is HP SR number 8606223364.
4457 if test "$cross_compiling" = yes; then
4458 # Depending upon the size, compute the lo and hi bounds.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 $ac_includes_default
4470 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 cat >conftest.$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4502 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_hi=$ac_mid; break
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_lo=`expr $ac_mid + 1`
4527 if test $ac_lo -le $ac_mid; then
4531 ac_mid=`expr 2 '*' $ac_mid + 1`
4533 rm -f conftest.$ac_objext conftest.$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 $ac_includes_default
4550 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_lo=$ac_mid; break
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 ac_hi=`expr '(' $ac_mid ')' - 1`
4607 if test $ac_mid -le $ac_hi; then
4611 ac_mid=`expr 2 '*' $ac_mid`
4613 rm -f conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4623 rm -f conftest.$ac_objext conftest.$ac_ext
4624 # Binary search between lo and hi bounds.
4625 while test "x$ac_lo" != "x$ac_hi"; do
4626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4638 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_lo=`expr '(' $ac_mid ')' + 1`
4664 rm -f conftest.$ac_objext conftest.$ac_ext
4667 ?*) ac_cv_sizeof_char=$ac_lo;;
4668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: cannot compute sizeof (char), 77
4671 See \`config.log' for more details." >&2;}
4672 { (exit 1); exit 1; }; } ;;
4675 if test "$cross_compiling" = yes; then
4676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4677 See \`config.log' for more details." >&5
4678 echo "$as_me: error: cannot run test program while cross compiling
4679 See \`config.log' for more details." >&2;}
4680 { (exit 1); exit 1; }; }
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #line $LINENO "configure"
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4690 long longval () { return (long) (sizeof (char)); }
4691 unsigned long ulongval () { return (long) (sizeof (char)); }
4698 FILE *f = fopen ("conftest.val", "w");
4701 if (((long) (sizeof (char))) < 0)
4703 long i = longval ();
4704 if (i != ((long) (sizeof (char))))
4706 fprintf (f, "%ld\n", i);
4710 unsigned long i = ulongval ();
4711 if (i != ((long) (sizeof (char))))
4713 fprintf (f, "%lu\n", i);
4715 exit (ferror (f) || fclose (f) != 0);
4721 rm -f conftest$ac_exeext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_sizeof_char=`cat conftest.val`
4734 echo "$as_me: program exited with status $ac_status" >&5
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4740 See \`config.log' for more details." >&5
4741 echo "$as_me: error: cannot compute sizeof (char), 77
4742 See \`config.log' for more details." >&2;}
4743 { (exit 1); exit 1; }; }
4745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4754 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4755 cat >>confdefs.h <<_ACEOF
4756 #define SIZEOF_CHAR $ac_cv_sizeof_char
4760 echo "$as_me:$LINENO: checking for short" >&5
4761 echo $ECHO_N "checking for short... $ECHO_C" >&6
4762 if test "${ac_cv_type_short+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest.$ac_objext'
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_type_short=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4803 rm -f conftest.$ac_objext conftest.$ac_ext
4805 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4806 echo "${ECHO_T}$ac_cv_type_short" >&6
4808 echo "$as_me:$LINENO: checking size of short" >&5
4809 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4810 if test "${ac_cv_sizeof_short+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test "$ac_cv_type_short" = yes; then
4814 # The cast to unsigned long works around a bug in the HP C Compiler
4815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4817 # This bug is HP SR number 8606223364.
4818 if test "$cross_compiling" = yes; then
4819 # Depending upon the size, compute the lo and hi bounds.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 #line $LINENO "configure"
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 $ac_includes_default
4831 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4863 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_hi=$ac_mid; break
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_lo=`expr $ac_mid + 1`
4888 if test $ac_lo -le $ac_mid; then
4892 ac_mid=`expr 2 '*' $ac_mid + 1`
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
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
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_lo=$ac_mid; break
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ac_hi=`expr '(' $ac_mid ')' - 1`
4968 if test $ac_mid -le $ac_hi; then
4972 ac_mid=`expr 2 '*' $ac_mid`
4974 rm -f conftest.$ac_objext conftest.$ac_ext
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4984 rm -f conftest.$ac_objext conftest.$ac_ext
4985 # Binary search between lo and hi bounds.
4986 while test "x$ac_lo" != "x$ac_hi"; do
4987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4988 cat >conftest.$ac_ext <<_ACEOF
4989 #line $LINENO "configure"
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4999 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_lo=`expr '(' $ac_mid ')' + 1`
5025 rm -f conftest.$ac_objext conftest.$ac_ext
5028 ?*) ac_cv_sizeof_short=$ac_lo;;
5029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5030 See \`config.log' for more details." >&5
5031 echo "$as_me: error: cannot compute sizeof (short), 77
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; } ;;
5036 if test "$cross_compiling" = yes; then
5037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5038 See \`config.log' for more details." >&5
5039 echo "$as_me: error: cannot run test program while cross compiling
5040 See \`config.log' for more details." >&2;}
5041 { (exit 1); exit 1; }; }
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5051 long longval () { return (long) (sizeof (short)); }
5052 unsigned long ulongval () { return (long) (sizeof (short)); }
5059 FILE *f = fopen ("conftest.val", "w");
5062 if (((long) (sizeof (short))) < 0)
5064 long i = longval ();
5065 if (i != ((long) (sizeof (short))))
5067 fprintf (f, "%ld\n", i);
5071 unsigned long i = ulongval ();
5072 if (i != ((long) (sizeof (short))))
5074 fprintf (f, "%lu\n", i);
5076 exit (ferror (f) || fclose (f) != 0);
5082 rm -f conftest$ac_exeext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084 (eval $ac_link) 2>&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_sizeof_short=`cat conftest.val`
5095 echo "$as_me: program exited with status $ac_status" >&5
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }
5106 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5111 ac_cv_sizeof_short=0
5114 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5115 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5116 cat >>confdefs.h <<_ACEOF
5117 #define SIZEOF_SHORT $ac_cv_sizeof_short
5121 echo "$as_me:$LINENO: checking for int" >&5
5122 echo $ECHO_N "checking for int... $ECHO_C" >&6
5123 if test "${ac_cv_type_int+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line $LINENO "configure"
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 $ac_includes_default
5145 rm -f conftest.$ac_objext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f conftest.$ac_objext conftest.$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5167 echo "${ECHO_T}$ac_cv_type_int" >&6
5169 echo "$as_me:$LINENO: checking size of int" >&5
5170 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5171 if test "${ac_cv_sizeof_int+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test "$ac_cv_type_int" = yes; then
5175 # The cast to unsigned long works around a bug in the HP C Compiler
5176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5178 # This bug is HP SR number 8606223364.
5179 if test "$cross_compiling" = yes; then
5180 # Depending upon the size, compute the lo and hi bounds.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5192 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5224 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_hi=$ac_mid; break
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 ac_lo=`expr $ac_mid + 1`
5249 if test $ac_lo -le $ac_mid; then
5253 ac_mid=`expr 2 '*' $ac_mid + 1`
5255 rm -f conftest.$ac_objext conftest.$ac_ext
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line $LINENO "configure"
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5272 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5279 rm -f conftest.$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -s conftest.$ac_objext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_lo=$ac_mid; break
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_hi=`expr '(' $ac_mid ')' - 1`
5329 if test $ac_mid -le $ac_hi; then
5333 ac_mid=`expr 2 '*' $ac_mid`
5335 rm -f conftest.$ac_objext conftest.$ac_ext
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f conftest.$ac_objext conftest.$ac_ext
5345 rm -f conftest.$ac_objext conftest.$ac_ext
5346 # Binary search between lo and hi bounds.
5347 while test "x$ac_lo" != "x$ac_hi"; do
5348 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 $ac_includes_default
5360 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_lo=`expr '(' $ac_mid ')' + 1`
5386 rm -f conftest.$ac_objext conftest.$ac_ext
5389 ?*) ac_cv_sizeof_int=$ac_lo;;
5390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute sizeof (int), 77
5393 See \`config.log' for more details." >&2;}
5394 { (exit 1); exit 1; }; } ;;
5397 if test "$cross_compiling" = yes; then
5398 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5399 See \`config.log' for more details." >&5
5400 echo "$as_me: error: cannot run test program while cross compiling
5401 See \`config.log' for more details." >&2;}
5402 { (exit 1); exit 1; }; }
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 $ac_includes_default
5412 long longval () { return (long) (sizeof (int)); }
5413 unsigned long ulongval () { return (long) (sizeof (int)); }
5420 FILE *f = fopen ("conftest.val", "w");
5423 if (((long) (sizeof (int))) < 0)
5425 long i = longval ();
5426 if (i != ((long) (sizeof (int))))
5428 fprintf (f, "%ld\n", i);
5432 unsigned long i = ulongval ();
5433 if (i != ((long) (sizeof (int))))
5435 fprintf (f, "%lu\n", i);
5437 exit (ferror (f) || fclose (f) != 0);
5443 rm -f conftest$ac_exeext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445 (eval $ac_link) 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_cv_sizeof_int=`cat conftest.val`
5456 echo "$as_me: program exited with status $ac_status" >&5
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5462 See \`config.log' for more details." >&5
5463 echo "$as_me: error: cannot compute sizeof (int), 77
5464 See \`config.log' for more details." >&2;}
5465 { (exit 1); exit 1; }; }
5467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5476 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5477 cat >>confdefs.h <<_ACEOF
5478 #define SIZEOF_INT $ac_cv_sizeof_int
5482 echo "$as_me:$LINENO: checking for long" >&5
5483 echo $ECHO_N "checking for long... $ECHO_C" >&6
5484 if test "${ac_cv_type_long+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 cat >conftest.$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5525 rm -f conftest.$ac_objext conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5528 echo "${ECHO_T}$ac_cv_type_long" >&6
5530 echo "$as_me:$LINENO: checking size of long" >&5
5531 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5532 if test "${ac_cv_sizeof_long+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 if test "$ac_cv_type_long" = yes; then
5536 # The cast to unsigned long works around a bug in the HP C Compiler
5537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5539 # This bug is HP SR number 8606223364.
5540 if test "$cross_compiling" = yes; then
5541 # Depending upon the size, compute the lo and hi bounds.
5542 cat >conftest.$ac_ext <<_ACEOF
5543 #line $LINENO "configure"
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5553 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5585 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_hi=$ac_mid; break
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_lo=`expr $ac_mid + 1`
5610 if test $ac_lo -le $ac_mid; then
5614 ac_mid=`expr 2 '*' $ac_mid + 1`
5616 rm -f conftest.$ac_objext conftest.$ac_ext
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5633 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5640 rm -f conftest.$ac_objext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_lo=$ac_mid; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_hi=`expr '(' $ac_mid ')' - 1`
5690 if test $ac_mid -le $ac_hi; then
5694 ac_mid=`expr 2 '*' $ac_mid`
5696 rm -f conftest.$ac_objext conftest.$ac_ext
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f conftest.$ac_objext conftest.$ac_ext
5706 rm -f conftest.$ac_objext conftest.$ac_ext
5707 # Binary search between lo and hi bounds.
5708 while test "x$ac_lo" != "x$ac_hi"; do
5709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 $ac_includes_default
5721 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_lo=`expr '(' $ac_mid ')' + 1`
5747 rm -f conftest.$ac_objext conftest.$ac_ext
5750 ?*) ac_cv_sizeof_long=$ac_lo;;
5751 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5752 See \`config.log' for more details." >&5
5753 echo "$as_me: error: cannot compute sizeof (long), 77
5754 See \`config.log' for more details." >&2;}
5755 { (exit 1); exit 1; }; } ;;
5758 if test "$cross_compiling" = yes; then
5759 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5760 See \`config.log' for more details." >&5
5761 echo "$as_me: error: cannot run test program while cross compiling
5762 See \`config.log' for more details." >&2;}
5763 { (exit 1); exit 1; }; }
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 long longval () { return (long) (sizeof (long)); }
5774 unsigned long ulongval () { return (long) (sizeof (long)); }
5781 FILE *f = fopen ("conftest.val", "w");
5784 if (((long) (sizeof (long))) < 0)
5786 long i = longval ();
5787 if (i != ((long) (sizeof (long))))
5789 fprintf (f, "%ld\n", i);
5793 unsigned long i = ulongval ();
5794 if (i != ((long) (sizeof (long))))
5796 fprintf (f, "%lu\n", i);
5798 exit (ferror (f) || fclose (f) != 0);
5804 rm -f conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_sizeof_long=`cat conftest.val`
5817 echo "$as_me: program exited with status $ac_status" >&5
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5823 See \`config.log' for more details." >&5
5824 echo "$as_me: error: cannot compute sizeof (long), 77
5825 See \`config.log' for more details." >&2;}
5826 { (exit 1); exit 1; }; }
5828 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5837 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_LONG $ac_cv_sizeof_long
5846 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5850 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5854 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5858 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5865 echo "$as_me:$LINENO: checking type name for byte" >&5
5866 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5867 TYPE_BYTE=`type_name 1`
5868 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5869 echo "${ECHO_T}$TYPE_BYTE" >&6
5870 echo "$as_me:$LINENO: checking type name for word" >&5
5871 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5872 TYPE_WORD=`type_name 2`
5873 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5874 echo "${ECHO_T}$TYPE_WORD" >&6
5875 echo "$as_me:$LINENO: checking type name for dword" >&5
5876 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5877 TYPE_DWORD=`type_name 4`
5878 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5879 echo "${ECHO_T}$TYPE_DWORD" >&6
5880 cat >>confdefs.h <<_ACEOF
5881 #define TYPE_BYTE $TYPE_BYTE
5884 cat >>confdefs.h <<_ACEOF
5885 #define TYPE_WORD $TYPE_WORD
5888 cat >>confdefs.h <<_ACEOF
5889 #define TYPE_DWORD $TYPE_DWORD
5893 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5894 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5895 if test "${ac_cv_c_bigendian+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 # See if sys/param.h defines the BYTE_ORDER macro.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 #include <sys/param.h>
5912 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 # It does; now see whether it defined to BIG_ENDIAN or not.
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/types.h>
5941 #include <sys/param.h>
5946 #if BYTE_ORDER != BIG_ENDIAN
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_c_bigendian=yes
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cv_c_bigendian=no
5973 rm -f conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 # It does not; compile a test program.
5979 if test "$cross_compiling" = yes; then
5980 # try to guess the endianness by grepping values into an object file
5981 ac_cv_c_bigendian=unknown
5982 cat >conftest.$ac_ext <<_ACEOF
5983 #line $LINENO "configure"
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5990 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5991 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5992 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5993 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5994 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5998 _ascii (); _ebcdic ();
6003 rm -f conftest.$ac_objext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6016 ac_cv_c_bigendian=yes
6018 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6019 if test "$ac_cv_c_bigendian" = unknown; then
6020 ac_cv_c_bigendian=no
6022 # finding both strings is unlikely to happen, but who knows?
6023 ac_cv_c_bigendian=unknown
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6031 rm -f conftest.$ac_objext conftest.$ac_ext
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6043 /* Are we little or big endian? From Harbison&Steele. */
6047 char c[sizeof (long)];
6050 exit (u.c[sizeof (long) - 1] == 1);
6053 rm -f conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_c_bigendian=no
6066 echo "$as_me: program exited with status $ac_status" >&5
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_cv_c_bigendian=yes
6073 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6076 rm -f conftest.$ac_objext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6079 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6080 case $ac_cv_c_bigendian in
6083 cat >>confdefs.h <<\_ACEOF
6084 #define WORDS_BIGENDIAN 1
6090 { { echo "$as_me:$LINENO: error: unknown endianness
6091 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6092 echo "$as_me: error: unknown endianness
6093 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6094 { (exit 1); exit 1; }; } ;;
6098 # Set standard installation paths
6099 # ===========================================================================
6101 # In the Makefiles we need paths with '/' as directory separator, even if
6102 # crosscompiling for Win32.
6103 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6104 # The variables in the Makefiles are replaced by AC_SUBST()
6106 # In sdccconf.h the '/' in paths are replaced by "\\" (normalized).
6107 # The macros are expanded for the header.
6108 # The variables in the header are replaced by AC_*DEFINE*()
6110 echo "$as_me:$LINENO: checking -mno-cygwin" >&5
6111 echo $ECHO_N "checking -mno-cygwin... $ECHO_C" >&6
6120 echo "$as_me:$LINENO: result: $MINGW32_HOST" >&5
6121 echo "${ECHO_T}$MINGW32_HOST" >&6
6123 echo "$as_me:$LINENO: checking host mingw32" >&5
6124 echo $ECHO_N "checking host mingw32... $ECHO_C" >&6
6130 echo "$as_me:$LINENO: result: $MINGW32_HOST" >&5
6131 echo "${ECHO_T}$MINGW32_HOST" >&6
6133 if test "${MINGW32_HOST}" = "no"; then
6136 dir_separator="\\\\"
6143 # include_dir_suffix:
6144 # *nix default: "sdcc/include"
6145 # mingw32 default: "include"
6146 if test "${MINGW32_HOST}" = "no"; then
6147 include_dir_suffix="sdcc/include"
6149 include_dir_suffix="include"
6154 # *nix default: "sdcc/lib"
6155 # mingw32 default: "lib"
6156 if test "${MINGW32_HOST}" = "no"; then
6157 lib_dir_suffix="sdcc/lib"
6159 lib_dir_suffix="lib"
6164 # *nix default: "${datadir}/sdcc/doc"
6165 # mingw32 default: "${datadir}/doc"
6166 if test "${MINGW32_HOST}" = "no"; then
6167 doc_suffix="/sdcc/doc"
6171 docdir="\${datadir}"${doc_suffix}
6177 cat >>confdefs.h <<_ACEOF
6178 #define DIR_SEPARATOR_STRING "${dir_separator}"
6181 cat >>confdefs.h <<_ACEOF
6182 #define DIR_SEPARATOR_CHAR '${dir_separator}'
6187 # *nix default: "NONE", ${ac_default_prefix}: "/usr/local"
6188 # mingw32 default: "/sdcc"
6190 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6193 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6194 ac_expand=`eval echo $ac_expand`
6195 expanded_prefix=`eval echo $ac_expand`
6198 ac_ndu=$expanded_prefix
6200 # change empty paths to '.'
6202 # strip trailing slashes
6203 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6206 # squeze repeated slashes
6207 case $dir_separator in
6208 # if the path contains any backslashes, turn slashes into backslashes
6210 # Bernhard Held 2003-04-06
6211 # This was the original line. It doesn't:
6212 # - convert the first slash
6213 # - replace a slash with a double-backslash
6214 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6215 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6217 # if the path contains slashes, also turn backslashes into slashes
6218 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6220 cat >>confdefs.h <<_ACEOF
6221 #define PREFIX "${ac_ndu}"
6227 # default: "${prefix}"
6229 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6231 ac_expand=$exec_prefix
6232 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6233 ac_expand=`eval echo $ac_expand`
6234 expanded_exec_prefix=`eval echo $ac_expand`
6237 ac_ndu=$expanded_exec_prefix
6239 # change empty paths to '.'
6241 # strip trailing slashes
6242 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6245 # squeze repeated slashes
6246 case $dir_separator in
6247 # if the path contains any backslashes, turn slashes into backslashes
6249 # Bernhard Held 2003-04-06
6250 # This was the original line. It doesn't:
6251 # - convert the first slash
6252 # - replace a slash with a double-backslash
6253 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6254 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6256 # if the path contains slashes, also turn backslashes into slashes
6257 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6259 cat >>confdefs.h <<_ACEOF
6260 #define EXEC_PREFIX "${ac_ndu}"
6266 # default: "${exec_prefix}/bin"
6268 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6269 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6271 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6272 ac_expand=`eval echo $ac_expand`
6273 expanded_bindir=`eval echo $ac_expand`
6276 ac_ndu=$expanded_bindir
6278 # change empty paths to '.'
6280 # strip trailing slashes
6281 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6284 # squeze repeated slashes
6285 case $dir_separator in
6286 # if the path contains any backslashes, turn slashes into backslashes
6288 # Bernhard Held 2003-04-06
6289 # This was the original line. It doesn't:
6290 # - convert the first slash
6291 # - replace a slash with a double-backslash
6292 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6293 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6295 # if the path contains slashes, also turn backslashes into slashes
6296 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6298 cat >>confdefs.h <<_ACEOF
6299 #define BINDIR "${ac_ndu}"
6305 # *nix default: "${prefix}/share"
6306 # mingw32 default: "/sdcc"
6308 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6311 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6312 ac_expand=`eval echo $ac_expand`
6313 expanded_datadir=`eval echo $ac_expand`
6316 ac_ndu=$expanded_datadir
6318 # change empty paths to '.'
6320 # strip trailing slashes
6321 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6324 # squeze repeated slashes
6325 case $dir_separator in
6326 # if the path contains any backslashes, turn slashes into backslashes
6328 # Bernhard Held 2003-04-06
6329 # This was the original line. It doesn't:
6330 # - convert the first slash
6331 # - replace a slash with a double-backslash
6332 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6333 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6335 # if the path contains slashes, also turn backslashes into slashes
6336 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6338 cat >>confdefs.h <<_ACEOF
6339 #define DATADIR "${ac_ndu}"
6344 # include/lib suffix
6345 norm_inc_dir_suffix=${include_dir_suffix}
6346 case ":$norm_inc_dir_suffix:" in
6347 # change empty paths to '.'
6348 ::) norm_inc_dir_suffix='.' ;;
6349 # strip trailing slashes
6350 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6353 # squeze repeated slashes
6354 case $dir_separator in
6355 # if the path contains any backslashes, turn slashes into backslashes
6357 # Bernhard Held 2003-04-06
6358 # This was the original line. It doesn't:
6359 # - convert the first slash
6360 # - replace a slash with a double-backslash
6361 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6362 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6364 # if the path contains slashes, also turn backslashes into slashes
6365 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6367 cat >>confdefs.h <<_ACEOF
6368 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6371 norm_lib_dir_suffix=${lib_dir_suffix}
6372 case ":$norm_lib_dir_suffix:" in
6373 # change empty paths to '.'
6374 ::) norm_lib_dir_suffix='.' ;;
6375 # strip trailing slashes
6376 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6379 # squeze repeated slashes
6380 case $dir_separator in
6381 # if the path contains any backslashes, turn slashes into backslashes
6383 # Bernhard Held 2003-04-06
6384 # This was the original line. It doesn't:
6385 # - convert the first slash
6386 # - replace a slash with a double-backslash
6387 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6388 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6390 # if the path contains slashes, also turn backslashes into slashes
6391 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6393 cat >>confdefs.h <<_ACEOF
6394 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6399 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6400 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6401 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6402 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6403 _lcl_receval="$_lcl_from"
6404 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6405 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6407 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6408 _lcl_receval_old="$_lcl_receval"
6409 eval _lcl_receval="\"$_lcl_receval\""
6411 echo "$_lcl_receval")`
6412 _lcl_receval="$_lcl_to"
6413 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6414 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6416 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6417 _lcl_receval_old="$_lcl_receval"
6418 eval _lcl_receval="\"$_lcl_receval\""
6420 echo "$_lcl_receval")`
6421 _lcl_notation="$_lcl_from$_lcl_to"
6422 case ":$_lcl_from:" in
6423 # change empty paths to '.'
6424 ::) _lcl_from='.' ;;
6425 # strip trailing slashes
6426 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6429 # squeze repeated slashes
6431 # if the path contains any backslashes, turn slashes into backslashes
6433 # Bernhard Held 2003-04-06
6434 # This was the original line. It doesn't:
6435 # - convert the first slash
6436 # - replace a slash with a double-backslash
6437 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6438 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6440 # if the path contains slashes, also turn backslashes into slashes
6441 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6443 case ":$_lcl_to:" in
6444 # change empty paths to '.'
6446 # strip trailing slashes
6447 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6450 # squeze repeated slashes
6452 # if the path contains any backslashes, turn slashes into backslashes
6454 # Bernhard Held 2003-04-06
6455 # This was the original line. It doesn't:
6456 # - convert the first slash
6457 # - replace a slash with a double-backslash
6458 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6459 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6461 # if the path contains slashes, also turn backslashes into slashes
6462 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6464 _lcl_common_prefix=''
6465 _lcl_second_prefix_match=''
6466 while test "$_lcl_second_prefix_match" != 0; do
6467 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6468 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6469 if test "$_lcl_second_prefix_match" != 0; then
6470 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6471 _lcl_common_prefix="$_lcl_first_prefix"
6473 _lcl_second_prefix_match=0
6477 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6480 while test "$_lcl_tmp" != ''; do
6481 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6482 if test "$_lcl_first_suffix" != ''; then
6483 _lcl_first_suffix="$_lcl_tmp"
6484 _lcl_first_rel="../$_lcl_first_rel"
6487 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6488 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6489 case ":$_lcl_result_tmp:" in
6490 # change empty paths to '.'
6491 ::) _lcl_result_tmp='.' ;;
6492 # strip trailing slashes
6493 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6496 # squeze repeated slashes
6497 case "$_lcl_notation" in
6498 # if the path contains any backslashes, turn slashes into backslashes
6500 # Bernhard Held 2003-04-06
6501 # This was the original line. It doesn't:
6502 # - convert the first slash
6503 # - replace a slash with a double-backslash
6504 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6505 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6507 # if the path contains slashes, also turn backslashes into slashes
6508 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6510 eval $_lcl_result_var='$_lcl_result_tmp'
6512 case ":$bin2data_dir:" in
6513 # change empty paths to '.'
6514 ::) bin2data_dir='.' ;;
6515 # strip trailing slashes
6516 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6519 # squeze repeated slashes
6520 case $dir_separator in
6521 # if the path contains any backslashes, turn slashes into backslashes
6523 # Bernhard Held 2003-04-06
6524 # This was the original line. It doesn't:
6525 # - convert the first slash
6526 # - replace a slash with a double-backslash
6527 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6528 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6530 # if the path contains slashes, also turn backslashes into slashes
6531 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6533 cat >>confdefs.h <<_ACEOF
6534 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6538 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6539 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6540 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6541 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6542 _lcl_receval="$_lcl_from"
6543 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6544 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6546 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6547 _lcl_receval_old="$_lcl_receval"
6548 eval _lcl_receval="\"$_lcl_receval\""
6550 echo "$_lcl_receval")`
6551 _lcl_receval="$_lcl_to"
6552 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6553 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6555 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6556 _lcl_receval_old="$_lcl_receval"
6557 eval _lcl_receval="\"$_lcl_receval\""
6559 echo "$_lcl_receval")`
6560 _lcl_notation="$_lcl_from$_lcl_to"
6561 case ":$_lcl_from:" in
6562 # change empty paths to '.'
6563 ::) _lcl_from='.' ;;
6564 # strip trailing slashes
6565 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6568 # squeze repeated slashes
6570 # if the path contains any backslashes, turn slashes into backslashes
6572 # Bernhard Held 2003-04-06
6573 # This was the original line. It doesn't:
6574 # - convert the first slash
6575 # - replace a slash with a double-backslash
6576 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6577 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6579 # if the path contains slashes, also turn backslashes into slashes
6580 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6582 case ":$_lcl_to:" in
6583 # change empty paths to '.'
6585 # strip trailing slashes
6586 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6589 # squeze repeated slashes
6591 # if the path contains any backslashes, turn slashes into backslashes
6593 # Bernhard Held 2003-04-06
6594 # This was the original line. It doesn't:
6595 # - convert the first slash
6596 # - replace a slash with a double-backslash
6597 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6598 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6600 # if the path contains slashes, also turn backslashes into slashes
6601 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6603 _lcl_common_prefix=''
6604 _lcl_second_prefix_match=''
6605 while test "$_lcl_second_prefix_match" != 0; do
6606 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6607 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6608 if test "$_lcl_second_prefix_match" != 0; then
6609 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6610 _lcl_common_prefix="$_lcl_first_prefix"
6612 _lcl_second_prefix_match=0
6616 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6619 while test "$_lcl_tmp" != ''; do
6620 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6621 if test "$_lcl_first_suffix" != ''; then
6622 _lcl_first_suffix="$_lcl_tmp"
6623 _lcl_first_rel="../$_lcl_first_rel"
6626 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6627 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6628 case ":$_lcl_result_tmp:" in
6629 # change empty paths to '.'
6630 ::) _lcl_result_tmp='.' ;;
6631 # strip trailing slashes
6632 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6635 # squeze repeated slashes
6636 case "$_lcl_notation" in
6637 # if the path contains any backslashes, turn slashes into backslashes
6639 # Bernhard Held 2003-04-06
6640 # This was the original line. It doesn't:
6641 # - convert the first slash
6642 # - replace a slash with a double-backslash
6643 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6644 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6646 # if the path contains slashes, also turn backslashes into slashes
6647 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6649 eval $_lcl_result_var='$_lcl_result_tmp'
6651 case ":$prefix2bin_dir:" in
6652 # change empty paths to '.'
6653 ::) prefix2bin_dir='.' ;;
6654 # strip trailing slashes
6655 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6658 # squeze repeated slashes
6659 case $dir_separator in
6660 # if the path contains any backslashes, turn slashes into backslashes
6662 # Bernhard Held 2003-04-06
6663 # This was the original line. It doesn't:
6664 # - convert the first slash
6665 # - replace a slash with a double-backslash
6666 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6667 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6669 # if the path contains slashes, also turn backslashes into slashes
6670 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6672 cat >>confdefs.h <<_ACEOF
6673 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6677 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6678 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6679 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6680 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6681 _lcl_receval="$_lcl_from"
6682 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6683 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6685 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6686 _lcl_receval_old="$_lcl_receval"
6687 eval _lcl_receval="\"$_lcl_receval\""
6689 echo "$_lcl_receval")`
6690 _lcl_receval="$_lcl_to"
6691 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6692 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6694 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6695 _lcl_receval_old="$_lcl_receval"
6696 eval _lcl_receval="\"$_lcl_receval\""
6698 echo "$_lcl_receval")`
6699 _lcl_notation="$_lcl_from$_lcl_to"
6700 case ":$_lcl_from:" in
6701 # change empty paths to '.'
6702 ::) _lcl_from='.' ;;
6703 # strip trailing slashes
6704 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6707 # squeze repeated slashes
6709 # if the path contains any backslashes, turn slashes into backslashes
6711 # Bernhard Held 2003-04-06
6712 # This was the original line. It doesn't:
6713 # - convert the first slash
6714 # - replace a slash with a double-backslash
6715 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6716 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6718 # if the path contains slashes, also turn backslashes into slashes
6719 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6721 case ":$_lcl_to:" in
6722 # change empty paths to '.'
6724 # strip trailing slashes
6725 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6728 # squeze repeated slashes
6730 # if the path contains any backslashes, turn slashes into backslashes
6732 # Bernhard Held 2003-04-06
6733 # This was the original line. It doesn't:
6734 # - convert the first slash
6735 # - replace a slash with a double-backslash
6736 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6737 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6739 # if the path contains slashes, also turn backslashes into slashes
6740 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6742 _lcl_common_prefix=''
6743 _lcl_second_prefix_match=''
6744 while test "$_lcl_second_prefix_match" != 0; do
6745 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6746 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6747 if test "$_lcl_second_prefix_match" != 0; then
6748 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6749 _lcl_common_prefix="$_lcl_first_prefix"
6751 _lcl_second_prefix_match=0
6755 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6758 while test "$_lcl_tmp" != ''; do
6759 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6760 if test "$_lcl_first_suffix" != ''; then
6761 _lcl_first_suffix="$_lcl_tmp"
6762 _lcl_first_rel="../$_lcl_first_rel"
6765 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6766 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6767 case ":$_lcl_result_tmp:" in
6768 # change empty paths to '.'
6769 ::) _lcl_result_tmp='.' ;;
6770 # strip trailing slashes
6771 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6774 # squeze repeated slashes
6775 case "$_lcl_notation" in
6776 # if the path contains any backslashes, turn slashes into backslashes
6778 # Bernhard Held 2003-04-06
6779 # This was the original line. It doesn't:
6780 # - convert the first slash
6781 # - replace a slash with a double-backslash
6782 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6783 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6785 # if the path contains slashes, also turn backslashes into slashes
6786 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6788 eval $_lcl_result_var='$_lcl_result_tmp'
6790 case ":$prefix2data_dir:" in
6791 # change empty paths to '.'
6792 ::) prefix2data_dir='.' ;;
6793 # strip trailing slashes
6794 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6797 # squeze repeated slashes
6798 case $dir_separator in
6799 # if the path contains any backslashes, turn slashes into backslashes
6801 # Bernhard Held 2003-04-06
6802 # This was the original line. It doesn't:
6803 # - convert the first slash
6804 # - replace a slash with a double-backslash
6805 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6806 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/][\\/]*,\1\\\\\\\\,g'` ;;
6808 # if the path contains slashes, also turn backslashes into slashes
6809 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6811 if test "${prefix2data_dir}" = "."; then
6812 # small optimization for Mingw32; otherwise Borut will complain ;-)
6813 cat >>confdefs.h <<_ACEOF
6814 #define PREFIX2DATA_DIR ""
6818 cat >>confdefs.h <<_ACEOF
6819 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6825 cat >>confdefs.h <<_ACEOF
6826 #define STD_LIB "libsdcc"
6829 cat >>confdefs.h <<_ACEOF
6830 #define STD_INT_LIB "libint"
6833 cat >>confdefs.h <<_ACEOF
6834 #define STD_LONG_LIB "liblong"
6837 cat >>confdefs.h <<_ACEOF
6838 #define STD_FP_LIB "libfloat"
6841 cat >>confdefs.h <<_ACEOF
6842 #define STD_DS390_LIB "libds390"
6845 cat >>confdefs.h <<_ACEOF
6846 #define STD_xa51_LIB "xa51"
6850 # environment variables
6851 sdcc_dir_name="SDCC_HOME"
6852 cat >>confdefs.h <<_ACEOF
6853 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6857 sdcc_include_name="SDCC_INCLUDE"
6858 cat >>confdefs.h <<_ACEOF
6859 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6863 sdcc_lib_name="SDCC_LIB"
6864 cat >>confdefs.h <<_ACEOF
6865 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6869 # Now handle the port selection
6870 # ===========================================================================
6871 rm -f ports.all ports.build
6872 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6873 if test "${enable_mcs51_port+set}" = set; then
6874 enableval="$enable_mcs51_port"
6877 echo mcs51 >>ports.all
6878 if test "$enable_mcs51_port" = "no"; then
6879 cat >>confdefs.h <<_ACEOF
6880 #define OPT_DISABLE_MCS51 1
6884 echo mcs51 >>ports.build
6885 cat >>confdefs.h <<_ACEOF
6886 #define OPT_DISABLE_MCS51 0
6891 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6892 if test "${enable_gbz80_port+set}" = set; then
6893 enableval="$enable_gbz80_port"
6896 echo z80 >>ports.all
6897 if test "$enable_gbz80_port" = "no"; then
6898 cat >>confdefs.h <<_ACEOF
6899 #define OPT_DISABLE_GBZ80 1
6903 echo z80 >>ports.build
6904 cat >>confdefs.h <<_ACEOF
6905 #define OPT_DISABLE_GBZ80 0
6910 # Check whether --enable-z80-port or --disable-z80-port was given.
6911 if test "${enable_z80_port+set}" = set; then
6912 enableval="$enable_z80_port"
6915 echo z80 >>ports.all
6916 if test "$enable_z80_port" = "no"; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define OPT_DISABLE_Z80 1
6922 echo z80 >>ports.build
6923 cat >>confdefs.h <<_ACEOF
6924 #define OPT_DISABLE_Z80 0
6929 # Check whether --enable-avr-port or --disable-avr-port was given.
6930 if test "${enable_avr_port+set}" = set; then
6931 enableval="$enable_avr_port"
6934 echo avr >>ports.all
6935 if test "$enable_avr_port" = "no"; then
6936 cat >>confdefs.h <<_ACEOF
6937 #define OPT_DISABLE_AVR 1
6941 echo avr >>ports.build
6942 cat >>confdefs.h <<_ACEOF
6943 #define OPT_DISABLE_AVR 0
6948 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6949 if test "${enable_ds390_port+set}" = set; then
6950 enableval="$enable_ds390_port"
6953 echo ds390 >>ports.all
6954 if test "$enable_ds390_port" = "no"; then
6955 cat >>confdefs.h <<_ACEOF
6956 #define OPT_DISABLE_DS390 1
6959 cat >>confdefs.h <<_ACEOF
6960 #define OPT_DISABLE_TININative 1
6964 echo ds390 >>ports.build
6965 cat >>confdefs.h <<_ACEOF
6966 #define OPT_DISABLE_DS390 0
6969 cat >>confdefs.h <<_ACEOF
6970 #define OPT_DISABLE_TININative 0
6975 # Check whether --enable-pic-port or --disable-pic-port was given.
6976 if test "${enable_pic_port+set}" = set; then
6977 enableval="$enable_pic_port"
6980 echo pic >>ports.all
6981 if test "$enable_pic_port" = "no"; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define OPT_DISABLE_PIC 1
6987 echo pic >>ports.build
6988 cat >>confdefs.h <<_ACEOF
6989 #define OPT_DISABLE_PIC 0
6994 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6995 if test "${enable_xa51_port+set}" = set; then
6996 enableval="$enable_xa51_port"
6999 echo xa51 >>ports.all
7000 if test "$enable_xa51_port" = "no"; then
7001 cat >>confdefs.h <<_ACEOF
7002 #define OPT_DISABLE_XA51 1
7006 echo xa51 >>ports.build
7007 cat >>confdefs.h <<_ACEOF
7008 #define OPT_DISABLE_XA51 0
7013 # Check whether --enable-ucsim or --disable-ucsim was given.
7014 if test "${enable_ucsim+set}" = set; then
7015 enableval="$enable_ucsim"
7018 OPT_ENABLE_UCSIM=$enable_ucsim
7021 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7022 if test "${enable_device_lib_build+set}" = set; then
7023 enableval="$enable_device_lib_build"
7026 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7029 # Check whether --enable-packihx or --disable-packihx was given.
7030 if test "${enable_packihx+set}" = set; then
7031 enableval="$enable_packihx"
7034 OPT_ENABLE_PACKIHX=$enable_packihx
7037 # Check whether --enable-libgc or --disable-libgc was given.
7038 if test "${enable_libgc+set}" = set; then
7039 enableval="$enable_libgc"
7042 if test "$enable_libgc" = "yes"; then
7044 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7045 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7046 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_check_lib_save_LIBS=$LIBS
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7059 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7074 rm -f conftest.$ac_objext conftest$ac_exeext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076 (eval $ac_link) 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -s conftest$ac_exeext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_lib_gc_GC_malloc=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_cv_lib_gc_GC_malloc=no
7093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7094 LIBS=$ac_check_lib_save_LIBS
7096 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7097 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7098 if test $ac_cv_lib_gc_GC_malloc = yes; then
7099 cat >>confdefs.h <<_ACEOF
7100 #define HAVE_LIBGC 1
7111 cat >>confdefs.h <<_ACEOF
7112 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7117 cat ports.all | uniq >ports
7119 cat ports.build | uniq >ports
7120 mv ports ports.build
7122 # Generating output files
7123 # ===========================================================================
7126 subdirs="$subdirs support/cpp2"
7130 subdirs="$subdirs packihx"
7134 subdirs="$subdirs sim/ucsim"
7136 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"
7138 cat >confcache <<\_ACEOF
7139 # This file is a shell script that caches the results of configure
7140 # tests run on this system so they can be shared between configure
7141 # scripts and configure runs, see configure's option --config-cache.
7142 # It is not useful on other systems. If it contains results you don't
7143 # want to keep, you may remove or edit it.
7145 # config.status only pays attention to the cache file if you give it
7146 # the --recheck option to rerun configure.
7148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7154 # The following way of writing the cache mishandles newlines in values,
7155 # but we know of no workaround that is simple, portable, and efficient.
7156 # So, don't put newlines in cache variables' values.
7157 # Ultrix sh set writes to stderr and can't be redirected directly,
7158 # and sets the high bit in the cache file unless we assign to the vars.
7161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7163 # `set' does not quote correctly, so add quotes (double-quote
7164 # substitution turns \\\\ into \\, and sed turns \\ into \).
7167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7170 # `set' quotes correctly as required by POSIX, so do not add quotes.
7172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7181 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7183 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7184 if test -w $cache_file; then
7185 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7186 cat confcache >$cache_file
7188 echo "not updating unwritable cache $cache_file"
7193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7194 # Let make expand exec_prefix.
7195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7199 # trailing colons and then remove the whole line if VPATH becomes empty
7200 # (actually we leave an empty line to preserve line numbers).
7201 if test "x$srcdir" = x.; then
7202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7203 s/:*\$(srcdir):*/:/;
7204 s/:*\${srcdir}:*/:/;
7206 s/^\([^=]*=[ ]*\):*/\1/;
7212 DEFS=-DHAVE_CONFIG_H
7216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7217 # 1. Remove the extension, and $U if already installed.
7218 ac_i=`echo "$ac_i" |
7219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7221 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7222 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7226 LTLIBOBJS=$ac_ltlibobjs
7230 : ${CONFIG_STATUS=./config.status}
7231 ac_clean_files_save=$ac_clean_files
7232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7235 cat >$CONFIG_STATUS <<_ACEOF
7237 # Generated by $as_me.
7238 # Run this file to recreate the current configuration.
7239 # Compiler output produced by configure, useful for debugging
7240 # configure, is in config.log if it exists.
7245 SHELL=\${CONFIG_SHELL-$SHELL}
7248 cat >>$CONFIG_STATUS <<\_ACEOF
7249 ## --------------------- ##
7250 ## M4sh Initialization. ##
7251 ## --------------------- ##
7253 # Be Bourne compatible
7254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7258 # is contrary to our usage. Disable this feature.
7259 alias -g '${1+"$@"}'='"$@"'
7260 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7264 # Support unset when possible.
7265 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7272 # Work around bugs in pre-3.0 UWIN ksh.
7273 $as_unset ENV MAIL MAILPATH
7280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7282 LC_TELEPHONE LC_TIME
7284 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7285 eval $as_var=C; export $as_var
7291 # Required to use basename.
7292 if expr a : '\(a\)' >/dev/null 2>&1; then
7298 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7299 as_basename=basename
7305 # Name of the executable.
7306 as_me=`$as_basename "$0" ||
7307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7308 X"$0" : 'X\(//\)$' \| \
7309 X"$0" : 'X\(/\)$' \| \
7310 . : '\(.\)' 2>/dev/null ||
7312 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7313 /^X\/\(\/\/\)$/{ s//\1/; q; }
7314 /^X\/\(\/\).*/{ s//\1/; q; }
7318 # PATH needs CR, and LINENO needs CR and PATH.
7319 # Avoid depending upon Character Ranges.
7320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7323 as_cr_digits='0123456789'
7324 as_cr_alnum=$as_cr_Letters$as_cr_digits
7326 # The user is always right.
7327 if test "${PATH_SEPARATOR+set}" != set; then
7328 echo "#! /bin/sh" >conf$$.sh
7329 echo "exit 0" >>conf$$.sh
7331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7343 test "x$as_lineno_1" != "x$as_lineno_2" &&
7344 test "x$as_lineno_3" = "x$as_lineno_2" || {
7345 # Find who we are. Look in the path if we contain no path at all
7348 *[\\/]* ) as_myself=$0 ;;
7349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7359 # We did not find ourselves, most probably we were run as `sh COMMAND'
7360 # in which case we are not to be found in the path.
7361 if test "x$as_myself" = x; then
7364 if test ! -f "$as_myself"; then
7365 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7366 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7367 { (exit 1); exit 1; }; }
7369 case $CONFIG_SHELL in
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7375 test -z "$as_dir" && as_dir=.
7376 for as_base in sh bash ksh sh5; do
7379 if ("$as_dir/$as_base" -c '
7382 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7383 test "x$as_lineno_1" != "x$as_lineno_2" &&
7384 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7385 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7386 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7387 CONFIG_SHELL=$as_dir/$as_base
7389 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7397 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7398 # uniformly replaced by the line number. The first 'sed' inserts a
7399 # line-number line before each line; the second 'sed' does the real
7400 # work. The second script uses 'N' to pair each line-number line
7401 # with the numbered line, and appends trailing '-' during
7402 # substitution so that $LINENO is not a special case at line end.
7403 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7404 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7405 sed '=' <$as_myself |
7410 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7413 s,^['$as_cr_digits']*\n,,
7415 chmod +x $as_me.lineno ||
7416 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7417 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7418 { (exit 1); exit 1; }; }
7420 # Don't try to exec as it changes $[0], causing all sort of problems
7421 # (the dirname of $[0] is not the place where we might find the
7422 # original and so on. Autoconf is especially sensible to this).
7424 # Exit status is that of the last command.
7429 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7430 *c*,-n*) ECHO_N= ECHO_C='
7432 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7433 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7436 if expr a : '\(a\)' >/dev/null 2>&1; then
7442 rm -f conf$$ conf$$.exe conf$$.file
7444 if ln -s conf$$.file conf$$ 2>/dev/null; then
7445 # We could just check for DJGPP; but this test a) works b) is more generic
7446 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7447 if test -f conf$$.exe; then
7448 # Don't use ln at all; we don't have any links
7453 elif ln conf$$.file conf$$ 2>/dev/null; then
7458 rm -f conf$$ conf$$.exe conf$$.file
7460 if mkdir -p . 2>/dev/null; then
7466 as_executable_p="test -f"
7468 # Sed expression to map a string onto a valid CPP name.
7469 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7471 # Sed expression to map a string onto a valid variable name.
7472 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7476 # We need space, tab and new line, in precisely that order.
7486 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7487 # report actual input values of CONFIG_FILES etc. instead of their
7488 # values after options handling. Logging --version etc. is OK.
7492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7493 ## Running $as_me. ##
7498 This file was extended by $as_me, which was
7499 generated by GNU Autoconf 2.57. Invocation command line was
7501 CONFIG_FILES = $CONFIG_FILES
7502 CONFIG_HEADERS = $CONFIG_HEADERS
7503 CONFIG_LINKS = $CONFIG_LINKS
7504 CONFIG_COMMANDS = $CONFIG_COMMANDS
7508 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7512 # Files that config.status was made for.
7513 if test -n "$ac_config_files"; then
7514 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7517 if test -n "$ac_config_headers"; then
7518 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7521 if test -n "$ac_config_links"; then
7522 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7525 if test -n "$ac_config_commands"; then
7526 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7529 cat >>$CONFIG_STATUS <<\_ACEOF
7532 \`$as_me' instantiates files from templates according to the
7533 current configuration.
7535 Usage: $0 [OPTIONS] [FILE]...
7537 -h, --help print this help, then exit
7538 -V, --version print version number, then exit
7539 -q, --quiet do not print progress messages
7540 -d, --debug don't remove temporary files
7541 --recheck update $as_me by reconfiguring in the same conditions
7542 --file=FILE[:TEMPLATE]
7543 instantiate the configuration file FILE
7544 --header=FILE[:TEMPLATE]
7545 instantiate the configuration header FILE
7547 Configuration files:
7550 Configuration headers:
7553 Report bugs to <bug-autoconf@gnu.org>."
7556 cat >>$CONFIG_STATUS <<_ACEOF
7559 configured by $0, generated by GNU Autoconf 2.57,
7560 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7562 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7563 Free Software Foundation, Inc.
7564 This config.status script is free software; the Free Software Foundation
7565 gives unlimited permission to copy, distribute and modify it."
7570 cat >>$CONFIG_STATUS <<\_ACEOF
7571 # If no file are specified by the user, then we need to provide default
7572 # value. By we need to know if files were specified by the user.
7578 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7579 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7587 *) # This is not an option, so the user has probably given explicit
7590 ac_need_defaults=false;;
7594 # Handling of the options.
7596 cat >>$CONFIG_STATUS <<\_ACEOF
7597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7599 --version | --vers* | -V )
7600 echo "$ac_cs_version"; exit 0 ;;
7602 # Conflict between --help and --header
7603 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7604 Try \`$0 --help' for more information." >&5
7605 echo "$as_me: error: ambiguous option: $1
7606 Try \`$0 --help' for more information." >&2;}
7607 { (exit 1); exit 1; }; };;
7608 --help | --hel | -h )
7609 echo "$ac_cs_usage"; exit 0 ;;
7610 --debug | --d* | -d )
7612 --file | --fil | --fi | --f )
7614 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7615 ac_need_defaults=false;;
7616 --header | --heade | --head | --hea )
7618 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7619 ac_need_defaults=false;;
7620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7621 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7625 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7626 Try \`$0 --help' for more information." >&5
7627 echo "$as_me: error: unrecognized option: $1
7628 Try \`$0 --help' for more information." >&2;}
7629 { (exit 1); exit 1; }; } ;;
7631 *) ac_config_targets="$ac_config_targets $1" ;;
7637 ac_configure_extra_args=
7639 if $ac_cs_silent; then
7641 ac_configure_extra_args="$ac_configure_extra_args --silent"
7645 cat >>$CONFIG_STATUS <<_ACEOF
7646 if \$ac_cs_recheck; then
7647 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7648 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7657 cat >>$CONFIG_STATUS <<\_ACEOF
7658 for ac_config_target in $ac_config_targets
7660 case "$ac_config_target" in
7661 # Handling of arguments.
7662 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7663 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7664 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7665 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7666 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7667 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7668 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7669 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7670 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7671 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7672 { (exit 1); exit 1; }; };;
7676 # If the user did not use the arguments to specify the items to instantiate,
7677 # then the envvar interface is used. Set only those that are not.
7678 # We use the long form for the default assignment because of an extremely
7679 # bizarre bug on SunOS 4.1.3.
7680 if $ac_need_defaults; then
7681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7685 # Have a temporary directory for convenience. Make it in the build tree
7686 # simply because there is no reason to put it here, and in addition,
7687 # creating and moving files from /tmp can sometimes cause problems.
7688 # Create a temporary directory, and hook for its removal unless debugging.
7691 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7692 trap '{ (exit 1); exit 1; }' 1 2 13 15
7695 # Create a (secure) tmp directory for tmp files.
7698 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7699 test -n "$tmp" && test -d "$tmp"
7702 tmp=./confstat$$-$RANDOM
7703 (umask 077 && mkdir $tmp)
7706 echo "$me: cannot create a temporary directory in ." >&2
7707 { (exit 1); exit 1; }
7712 cat >>$CONFIG_STATUS <<_ACEOF
7715 # CONFIG_FILES section.
7718 # No need to generate the scripts if there are no CONFIG_FILES.
7719 # This happens for instance when ./config.status config.h
7720 if test -n "\$CONFIG_FILES"; then
7721 # Protect against being on the right side of a sed subst in config.status.
7722 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7723 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7724 s,@SHELL@,$SHELL,;t t
7725 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7726 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7727 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7728 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7729 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7730 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7731 s,@exec_prefix@,$exec_prefix,;t t
7732 s,@prefix@,$prefix,;t t
7733 s,@program_transform_name@,$program_transform_name,;t t
7734 s,@bindir@,$bindir,;t t
7735 s,@sbindir@,$sbindir,;t t
7736 s,@libexecdir@,$libexecdir,;t t
7737 s,@datadir@,$datadir,;t t
7738 s,@sysconfdir@,$sysconfdir,;t t
7739 s,@sharedstatedir@,$sharedstatedir,;t t
7740 s,@localstatedir@,$localstatedir,;t t
7741 s,@libdir@,$libdir,;t t
7742 s,@includedir@,$includedir,;t t
7743 s,@oldincludedir@,$oldincludedir,;t t
7744 s,@infodir@,$infodir,;t t
7745 s,@mandir@,$mandir,;t t
7746 s,@build_alias@,$build_alias,;t t
7747 s,@host_alias@,$host_alias,;t t
7748 s,@target_alias@,$target_alias,;t t
7750 s,@ECHO_C@,$ECHO_C,;t t
7751 s,@ECHO_N@,$ECHO_N,;t t
7752 s,@ECHO_T@,$ECHO_T,;t t
7755 s,@VERSION@,$VERSION,;t t
7756 s,@VERSIONHI@,$VERSIONHI,;t t
7757 s,@VERSIONLO@,$VERSIONLO,;t t
7758 s,@VERSIONP@,$VERSIONP,;t t
7760 s,@CFLAGS@,$CFLAGS,;t t
7761 s,@LDFLAGS@,$LDFLAGS,;t t
7762 s,@CPPFLAGS@,$CPPFLAGS,;t t
7763 s,@ac_ct_CC@,$ac_ct_CC,;t t
7764 s,@EXEEXT@,$EXEEXT,;t t
7765 s,@OBJEXT@,$OBJEXT,;t t
7767 s,@CXXFLAGS@,$CXXFLAGS,;t t
7768 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7770 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7771 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7772 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7773 s,@RANLIB@,$RANLIB,;t t
7774 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7776 s,@LEXLIB@,$LEXLIB,;t t
7777 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7779 s,@AUTOCONF@,$AUTOCONF,;t t
7780 s,@STRIP@,$STRIP,;t t
7784 s,@LATEX@,$LATEX,;t t
7785 s,@LATEX2HTML@,$LATEX2HTML,;t t
7786 s,@PDFLATEX@,$PDFLATEX,;t t
7787 s,@DVIPDF@,$DVIPDF,;t t
7788 s,@EGREP@,$EGREP,;t t
7789 s,@M_OR_MM@,$M_OR_MM,;t t
7790 s,@include_dir_suffix@,$include_dir_suffix,;t t
7791 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7792 s,@docdir@,$docdir,;t t
7793 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7794 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7795 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7796 s,@subdirs@,$subdirs,;t t
7797 s,@LIBOBJS@,$LIBOBJS,;t t
7798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7803 cat >>$CONFIG_STATUS <<\_ACEOF
7804 # Split the substitutions into bite-sized pieces for seds with
7805 # small command number limits, like on Digital OSF/1 and HP-UX.
7807 ac_sed_frag=1 # Number of current file.
7808 ac_beg=1 # First line for current file.
7809 ac_end=$ac_max_sed_lines # Line after last line for current file.
7812 while $ac_more_lines; do
7813 if test $ac_beg -gt 1; then
7814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7818 if test ! -s $tmp/subs.frag; then
7821 # The purpose of the label and of the branching condition is to
7822 # speed up the sed processing (if there are no `@' at all, there
7823 # is no need to browse any of the substitutions).
7824 # These are the two extra sed commands mentioned above.
7826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7827 if test -z "$ac_sed_cmds"; then
7828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7832 ac_sed_frag=`expr $ac_sed_frag + 1`
7834 ac_end=`expr $ac_end + $ac_max_sed_lines`
7837 if test -z "$ac_sed_cmds"; then
7840 fi # test -n "$CONFIG_FILES"
7843 cat >>$CONFIG_STATUS <<\_ACEOF
7844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7847 - | *:- | *:-:* ) # input from stdin
7849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7853 * ) ac_file_in=$ac_file.in ;;
7856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7859 X"$ac_file" : 'X\(//\)[^/]' \| \
7860 X"$ac_file" : 'X\(//\)$' \| \
7861 X"$ac_file" : 'X\(/\)' \| \
7862 . : '\(.\)' 2>/dev/null ||
7864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7866 /^X\(\/\/\)$/{ s//\1/; q; }
7867 /^X\(\/\).*/{ s//\1/; q; }
7869 { if $as_mkdir_p; then
7874 while test ! -d "$as_dir"; do
7875 as_dirs="$as_dir $as_dirs"
7876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7878 X"$as_dir" : 'X\(//\)[^/]' \| \
7879 X"$as_dir" : 'X\(//\)$' \| \
7880 X"$as_dir" : 'X\(/\)' \| \
7881 . : '\(.\)' 2>/dev/null ||
7883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7885 /^X\(\/\/\)$/{ s//\1/; q; }
7886 /^X\(\/\).*/{ s//\1/; q; }
7889 test ! -n "$as_dirs" || mkdir $as_dirs
7890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7892 { (exit 1); exit 1; }; }; }
7896 if test "$ac_dir" != .; then
7897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7898 # A "../" for each directory in $ac_dir_suffix.
7899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7901 ac_dir_suffix= ac_top_builddir=
7905 .) # No --srcdir option. We are building in place.
7907 if test -z "$ac_top_builddir"; then
7910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7912 [\\/]* | ?:[\\/]* ) # Absolute path.
7913 ac_srcdir=$srcdir$ac_dir_suffix;
7914 ac_top_srcdir=$srcdir ;;
7916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7924 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7929 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7932 if test x"$ac_file" != x-; then
7933 { echo "$as_me:$LINENO: creating $ac_file" >&5
7934 echo "$as_me: creating $ac_file" >&6;}
7937 # Let's still pretend it is `configure' which instantiates (i.e., don't
7938 # use $as_me), people would be surprised to read:
7939 # /* config.h. Generated by config.status. */
7940 if test x"$ac_file" = x-; then
7943 configure_input="$ac_file. "
7945 configure_input=$configure_input"Generated from `echo $ac_file_in |
7946 sed 's,.*/,,'` by configure."
7948 # First look for the input files in the build tree, otherwise in the
7950 ac_file_inputs=`IFS=:
7951 for f in $ac_file_in; do
7953 -) echo $tmp/stdin ;;
7955 # Absolute (can't be DOS-style, as IFS=:)
7956 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7957 echo "$as_me: error: cannot find input file: $f" >&2;}
7958 { (exit 1); exit 1; }; }
7961 if test -f "$f"; then
7964 elif test -f "$srcdir/$f"; then
7969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7970 echo "$as_me: error: cannot find input file: $f" >&2;}
7971 { (exit 1); exit 1; }; }
7974 done` || { (exit 1); exit 1; }
7976 cat >>$CONFIG_STATUS <<_ACEOF
7980 cat >>$CONFIG_STATUS <<\_ACEOF
7982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7983 s,@configure_input@,$configure_input,;t t
7984 s,@srcdir@,$ac_srcdir,;t t
7985 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7986 s,@top_srcdir@,$ac_top_srcdir,;t t
7987 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7988 s,@builddir@,$ac_builddir,;t t
7989 s,@abs_builddir@,$ac_abs_builddir,;t t
7990 s,@top_builddir@,$ac_top_builddir,;t t
7991 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7992 s,@INSTALL@,$ac_INSTALL,;t t
7993 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7995 if test x"$ac_file" != x-; then
7996 mv $tmp/out $ac_file
8004 cat >>$CONFIG_STATUS <<\_ACEOF
8007 # CONFIG_HEADER section.
8010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8013 # ac_d sets the value in "#define NAME VALUE" lines.
8014 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8015 ac_dB='[ ].*$,\1#\2'
8018 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8019 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8020 ac_uB='$,\1#\2define\3'
8024 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8027 - | *:- | *:-:* ) # input from stdin
8029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8033 * ) ac_file_in=$ac_file.in ;;
8036 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8037 echo "$as_me: creating $ac_file" >&6;}
8039 # First look for the input files in the build tree, otherwise in the
8041 ac_file_inputs=`IFS=:
8042 for f in $ac_file_in; do
8044 -) echo $tmp/stdin ;;
8046 # Absolute (can't be DOS-style, as IFS=:)
8047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8048 echo "$as_me: error: cannot find input file: $f" >&2;}
8049 { (exit 1); exit 1; }; }
8052 if test -f "$f"; then
8055 elif test -f "$srcdir/$f"; then
8060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8061 echo "$as_me: error: cannot find input file: $f" >&2;}
8062 { (exit 1); exit 1; }; }
8065 done` || { (exit 1); exit 1; }
8066 # Remove the trailing spaces.
8067 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8071 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8072 # `conftest.undefs', that substitutes the proper values into
8073 # config.h.in to produce config.h. The first handles `#define'
8074 # templates, and the second `#undef' templates.
8075 # And first: Protect against being on the right side of a sed subst in
8076 # config.status. Protect against being in an unquoted here document
8078 rm -f conftest.defines conftest.undefs
8079 # Using a here document instead of a string reduces the quoting nightmare.
8080 # Putting comments in sed scripts is not portable.
8082 # `end' is used to avoid that the second main sed command (meant for
8083 # 0-ary CPP macros) applies to n-ary macro definitions.
8084 # See the Autoconf documentation for `clear'.
8085 cat >confdef2sed.sed <<\_ACEOF
8090 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8092 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8095 # If some macros were called several times there might be several times
8096 # the same #defines, which is useless. Nevertheless, we may not want to
8097 # sort them, since we want the *last* AC-DEFINE to be honored.
8098 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8099 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8100 rm -f confdef2sed.sed
8102 # This sed command replaces #undef with comments. This is necessary, for
8103 # example, in the case of _POSIX_SOURCE, which is predefined and required
8104 # on some systems where configure will not decide to define it.
8105 cat >>conftest.undefs <<\_ACEOF
8106 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8109 # Break up conftest.defines because some shells have a limit on the size
8110 # of here documents, and old seds have small limits too (100 cmds).
8111 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8112 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8113 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8114 echo ' :' >>$CONFIG_STATUS
8116 while grep . conftest.defines >/dev/null
8118 # Write a limited-size here document to $tmp/defines.sed.
8119 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8120 # Speed up: don't consider the non `#define' lines.
8121 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8122 # Work around the forget-to-reset-the-flag bug.
8123 echo 't clr' >>$CONFIG_STATUS
8124 echo ': clr' >>$CONFIG_STATUS
8125 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8127 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8131 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8132 rm -f conftest.defines
8133 mv conftest.tail conftest.defines
8135 rm -f conftest.defines
8136 echo ' fi # grep' >>$CONFIG_STATUS
8137 echo >>$CONFIG_STATUS
8139 # Break up conftest.undefs because some shells have a limit on the size
8140 # of here documents, and old seds have small limits too (100 cmds).
8141 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8143 while grep . conftest.undefs >/dev/null
8145 # Write a limited-size here document to $tmp/undefs.sed.
8146 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8147 # Speed up: don't consider the non `#undef'
8148 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8149 # Work around the forget-to-reset-the-flag bug.
8150 echo 't clr' >>$CONFIG_STATUS
8151 echo ': clr' >>$CONFIG_STATUS
8152 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8154 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8158 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8159 rm -f conftest.undefs
8160 mv conftest.tail conftest.undefs
8162 rm -f conftest.undefs
8164 cat >>$CONFIG_STATUS <<\_ACEOF
8165 # Let's still pretend it is `configure' which instantiates (i.e., don't
8166 # use $as_me), people would be surprised to read:
8167 # /* config.h. Generated by config.status. */
8168 if test x"$ac_file" = x-; then
8169 echo "/* Generated by configure. */" >$tmp/config.h
8171 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8173 cat $tmp/in >>$tmp/config.h
8175 if test x"$ac_file" != x-; then
8176 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8177 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8178 echo "$as_me: $ac_file is unchanged" >&6;}
8180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8182 X"$ac_file" : 'X\(//\)[^/]' \| \
8183 X"$ac_file" : 'X\(//\)$' \| \
8184 X"$ac_file" : 'X\(/\)' \| \
8185 . : '\(.\)' 2>/dev/null ||
8187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8189 /^X\(\/\/\)$/{ s//\1/; q; }
8190 /^X\(\/\).*/{ s//\1/; q; }
8192 { if $as_mkdir_p; then
8197 while test ! -d "$as_dir"; do
8198 as_dirs="$as_dir $as_dirs"
8199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8201 X"$as_dir" : 'X\(//\)[^/]' \| \
8202 X"$as_dir" : 'X\(//\)$' \| \
8203 X"$as_dir" : 'X\(/\)' \| \
8204 . : '\(.\)' 2>/dev/null ||
8206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8208 /^X\(\/\/\)$/{ s//\1/; q; }
8209 /^X\(\/\).*/{ s//\1/; q; }
8212 test ! -n "$as_dirs" || mkdir $as_dirs
8213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8215 { (exit 1); exit 1; }; }; }
8218 mv $tmp/config.h $ac_file
8227 cat >>$CONFIG_STATUS <<\_ACEOF
8229 { (exit 0); exit 0; }
8231 chmod +x $CONFIG_STATUS
8232 ac_clean_files=$ac_clean_files_save
8235 # configure is writing to config.log, and then calls config.status.
8236 # config.status does its own redirection, appending to config.log.
8237 # Unfortunately, on DOS this fails, as config.log is still kept open
8238 # by configure, so config.status won't be able to write to it; its
8239 # output is simply discarded. So we exec the FD to /dev/null,
8240 # effectively closing config.log, so it can be properly (re)opened and
8241 # appended to by config.status. When coming back to configure, we
8242 # need to make the FD available again.
8243 if test "$no_create" != yes; then
8245 ac_config_status_args=
8246 test "$silent" = yes &&
8247 ac_config_status_args="$ac_config_status_args --quiet"
8249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8252 # would make configure fail if this is the last instruction.
8253 $ac_cs_success || { (exit 1); exit 1; }
8257 # CONFIG_SUBDIRS section.
8259 if test "$no_recursion" != yes; then
8261 # Remove --cache-file and --srcdir arguments so they do not pile up.
8262 ac_sub_configure_args=
8264 for ac_arg in $ac_configure_args; do
8265 if test -n "$ac_prev"; then
8270 -cache-file | --cache-file | --cache-fil | --cache-fi \
8271 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8272 ac_prev=cache_file ;;
8273 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8274 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8277 --config-cache | -C)
8279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8287 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8291 # Always prepend --prefix to ensure using the same prefix
8292 # in subdir configurations.
8293 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8296 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8298 # Do not complain, so a configure script can configure whichever
8299 # parts of a large source tree are present.
8300 test -d $srcdir/$ac_dir || continue
8302 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8303 echo "$as_me: configuring in $ac_dir" >&6;}
8304 { if $as_mkdir_p; then
8309 while test ! -d "$as_dir"; do
8310 as_dirs="$as_dir $as_dirs"
8311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8313 X"$as_dir" : 'X\(//\)[^/]' \| \
8314 X"$as_dir" : 'X\(//\)$' \| \
8315 X"$as_dir" : 'X\(/\)' \| \
8316 . : '\(.\)' 2>/dev/null ||
8318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8320 /^X\(\/\/\)$/{ s//\1/; q; }
8321 /^X\(\/\).*/{ s//\1/; q; }
8324 test ! -n "$as_dirs" || mkdir $as_dirs
8325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8327 { (exit 1); exit 1; }; }; }
8331 if test "$ac_dir" != .; then
8332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8333 # A "../" for each directory in $ac_dir_suffix.
8334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8336 ac_dir_suffix= ac_top_builddir=
8340 .) # No --srcdir option. We are building in place.
8342 if test -z "$ac_top_builddir"; then
8345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8347 [\\/]* | ?:[\\/]* ) # Absolute path.
8348 ac_srcdir=$srcdir$ac_dir_suffix;
8349 ac_top_srcdir=$srcdir ;;
8351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8354 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8356 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8357 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8358 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8359 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8364 # Check for guested configure; otherwise get Cygnus style configure.
8365 if test -f $ac_srcdir/configure.gnu; then
8366 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8367 elif test -f $ac_srcdir/configure; then
8368 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8369 elif test -f $ac_srcdir/configure.in; then
8370 ac_sub_configure=$ac_configure
8372 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8373 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8377 # The recursion is here.
8378 if test -n "$ac_sub_configure"; then
8379 # Make the cache file name correct relative to the subdirectory.
8381 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8383 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8386 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8387 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8388 # The eval makes quoting arguments work.
8389 eval $ac_sub_configure $ac_sub_configure_args \
8390 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8391 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8392 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8393 { (exit 1); exit 1; }; }
8401 # End of configure/configure.in