* Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
[fw/sdcc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
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 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
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
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="Makefile"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 ac_subdirs_all="$ac_subdirs_all support/cpp2"
309 ac_subdirs_all="$ac_subdirs_all packihx"
310 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP LYX LATEX LATEX2HTML PDFLATEX DVIPDF EGREP M_OR_MM sdcc_datadir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849
850   cat <<\_ACEOF
851
852 Optional Features:
853   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855   --disable-mcs51-port    Excludes the Intel mcs51 port
856   --disable-gbz80-port    Excludes the Gameboy gbz80 port
857   --disable-z80-port      Excludes the z80 port
858   --disable-avr-port      Excludes the AVR port
859   --disable-ds390-port    Excludes the DS390 port
860   --disable-pic-port      Excludes the PIC port
861   --disable-xa51-port     Excludes the XA51 port
862   --disable-ucsim         Disables configuring and building of ucsim
863   --disable-device-lib-build
864                           Disables automatically building device libraries
865   --disable-packihx       Disables building packihx
866   --enable-libgc          Use the Bohem memory allocator. Lower runtime
867                           footprint.
868
869 Some influential environment variables:
870   CC          C compiler command
871   CFLAGS      C compiler flags
872   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873               nonstandard directory <lib dir>
874   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875               headers in a nonstandard directory <include dir>
876   CXX         C++ compiler command
877   CXXFLAGS    C++ compiler flags
878   CPP         C preprocessor
879
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
882
883 _ACEOF
884 fi
885
886 if test "$ac_init_help" = "recursive"; then
887   # If there are subdirs, report their specific --help.
888   ac_popdir=`pwd`
889   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890     test -d $ac_dir || continue
891     ac_builddir=.
892
893 if test "$ac_dir" != .; then
894   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895   # A "../" for each directory in $ac_dir_suffix.
896   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 else
898   ac_dir_suffix= ac_top_builddir=
899 fi
900
901 case $srcdir in
902   .)  # No --srcdir option.  We are building in place.
903     ac_srcdir=.
904     if test -z "$ac_top_builddir"; then
905        ac_top_srcdir=.
906     else
907        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908     fi ;;
909   [\\/]* | ?:[\\/]* )  # Absolute path.
910     ac_srcdir=$srcdir$ac_dir_suffix;
911     ac_top_srcdir=$srcdir ;;
912   *) # Relative path.
913     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914     ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
916 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
917 # absolute.
918 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
919 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
920 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
921 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
922
923     cd $ac_dir
924     # Check for guested configure; otherwise get Cygnus style configure.
925     if test -f $ac_srcdir/configure.gnu; then
926       echo
927       $SHELL $ac_srcdir/configure.gnu  --help=recursive
928     elif test -f $ac_srcdir/configure; then
929       echo
930       $SHELL $ac_srcdir/configure  --help=recursive
931     elif test -f $ac_srcdir/configure.ac ||
932            test -f $ac_srcdir/configure.in; then
933       echo
934       $ac_configure --help
935     else
936       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
937     fi
938     cd $ac_popdir
939   done
940 fi
941
942 test -n "$ac_init_help" && exit 0
943 if $ac_init_version; then
944   cat <<\_ACEOF
945
946 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
947 Free Software Foundation, Inc.
948 This configure script is free software; the Free Software Foundation
949 gives unlimited permission to copy, distribute and modify it.
950 _ACEOF
951   exit 0
952 fi
953 exec 5>config.log
954 cat >&5 <<_ACEOF
955 This file contains any messages produced by compilers while
956 running configure, to aid debugging if configure makes a mistake.
957
958 It was created by $as_me, which was
959 generated by GNU Autoconf 2.54.  Invocation command line was
960
961   $ $0 $@
962
963 _ACEOF
964 {
965 cat <<_ASUNAME
966 ## --------- ##
967 ## Platform. ##
968 ## --------- ##
969
970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
975
976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
977 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
978
979 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
980 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
982 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
983 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
984 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
985 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
986
987 _ASUNAME
988
989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
990 for as_dir in $PATH
991 do
992   IFS=$as_save_IFS
993   test -z "$as_dir" && as_dir=.
994   echo "PATH: $as_dir"
995 done
996
997 } >&5
998
999 cat >&5 <<_ACEOF
1000
1001
1002 ## ----------- ##
1003 ## Core tests. ##
1004 ## ----------- ##
1005
1006 _ACEOF
1007
1008
1009 # Keep a trace of the command line.
1010 # Strip out --no-create and --no-recursion so they do not pile up.
1011 # Also quote any args containing shell meta-characters.
1012 ac_configure_args=
1013 ac_sep=
1014 for ac_arg
1015 do
1016   case $ac_arg in
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n ) continue ;;
1019   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021     continue ;;
1022   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1024   esac
1025   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1026   # Get rid of the leading space.
1027   ac_sep=" "
1028 done
1029
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log.  We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036   # Save into config.log some information that might help in debugging.
1037   {
1038     echo
1039
1040     cat <<\_ASBOX
1041 ## ---------------- ##
1042 ## Cache variables. ##
1043 ## ---------------- ##
1044 _ASBOX
1045     echo
1046     # The following way of writing the cache mishandles newlines in values,
1047 {
1048   (set) 2>&1 |
1049     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050     *ac_space=\ *)
1051       sed -n \
1052         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1054       ;;
1055     *)
1056       sed -n \
1057         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058       ;;
1059     esac;
1060 }
1061     echo
1062
1063     cat <<\_ASBOX
1064 ## ----------------- ##
1065 ## Output variables. ##
1066 ## ----------------- ##
1067 _ASBOX
1068     echo
1069     for ac_var in $ac_subst_vars
1070     do
1071       eval ac_val=$`echo $ac_var`
1072       echo "$ac_var='"'"'$ac_val'"'"'"
1073     done | sort
1074     echo
1075
1076     if test -n "$ac_subst_files"; then
1077       cat <<\_ASBOX
1078 ## ------------- ##
1079 ## Output files. ##
1080 ## ------------- ##
1081 _ASBOX
1082       echo
1083       for ac_var in $ac_subst_files
1084       do
1085         eval ac_val=$`echo $ac_var`
1086         echo "$ac_var='"'"'$ac_val'"'"'"
1087       done | sort
1088       echo
1089     fi
1090
1091     if test -s confdefs.h; then
1092       cat <<\_ASBOX
1093 ## ----------- ##
1094 ## confdefs.h. ##
1095 ## ----------- ##
1096 _ASBOX
1097       echo
1098       sed "/^$/d" confdefs.h | sort
1099       echo
1100     fi
1101     test "$ac_signal" != 0 &&
1102       echo "$as_me: caught signal $ac_signal"
1103     echo "$as_me: exit $exit_status"
1104   } >&5
1105   rm -f core core.* *.core &&
1106   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107     exit $exit_status
1108      ' 0
1109 for ac_signal in 1 2 13 15; do
1110   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1111 done
1112 ac_signal=0
1113
1114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1115 rm -rf conftest* confdefs.h
1116 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 echo >confdefs.h
1118
1119 # Predefined preprocessor variables.
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_NAME "$PACKAGE_NAME"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_STRING "$PACKAGE_STRING"
1138 _ACEOF
1139
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1143 _ACEOF
1144
1145
1146 # Let the site file select an alternate cache file if it wants to.
1147 # Prefer explicitly selected file to automatically selected ones.
1148 if test -z "$CONFIG_SITE"; then
1149   if test "x$prefix" != xNONE; then
1150     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1151   else
1152     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153   fi
1154 fi
1155 for ac_site_file in $CONFIG_SITE; do
1156   if test -r "$ac_site_file"; then
1157     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158 echo "$as_me: loading site script $ac_site_file" >&6;}
1159     sed 's/^/| /' "$ac_site_file" >&5
1160     . "$ac_site_file"
1161   fi
1162 done
1163
1164 if test -r "$cache_file"; then
1165   # Some versions of bash will fail to source /dev/null (special
1166   # files actually), so we avoid doing that.
1167   if test -f "$cache_file"; then
1168     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169 echo "$as_me: loading cache $cache_file" >&6;}
1170     case $cache_file in
1171       [\\/]* | ?:[\\/]* ) . $cache_file;;
1172       *)                      . ./$cache_file;;
1173     esac
1174   fi
1175 else
1176   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177 echo "$as_me: creating cache $cache_file" >&6;}
1178   >$cache_file
1179 fi
1180
1181 # Check that the precious variables saved in the cache have kept the same
1182 # value.
1183 ac_cache_corrupted=false
1184 for ac_var in `(set) 2>&1 |
1185                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187   eval ac_new_set=\$ac_env_${ac_var}_set
1188   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189   eval ac_new_val="\$ac_env_${ac_var}_value"
1190   case $ac_old_set,$ac_new_set in
1191     set,)
1192       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194       ac_cache_corrupted=: ;;
1195     ,set)
1196       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198       ac_cache_corrupted=: ;;
1199     ,);;
1200     *)
1201       if test "x$ac_old_val" != "x$ac_new_val"; then
1202         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1205 echo "$as_me:   former value:  $ac_old_val" >&2;}
1206         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1207 echo "$as_me:   current value: $ac_new_val" >&2;}
1208         ac_cache_corrupted=:
1209       fi;;
1210   esac
1211   # Pass precious variables to config.status.
1212   if test "$ac_new_set" = set; then
1213     case $ac_new_val in
1214     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216     *) ac_arg=$ac_var=$ac_new_val ;;
1217     esac
1218     case " $ac_configure_args " in
1219       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1220       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1221     esac
1222   fi
1223 done
1224 if $ac_cache_corrupted; then
1225   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229    { (exit 1); exit 1; }; }
1230 fi
1231
1232 ac_ext=c
1233 ac_cpp='$CPP $CPPFLAGS'
1234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257           ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1258
1259
1260 for ac_prog in gawk mawk nawk awk
1261 do
1262   # Extract the first word of "$ac_prog", so it can be a program name with args.
1263 set dummy $ac_prog; ac_word=$2
1264 echo "$as_me:$LINENO: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_AWK+set}" = set; then
1267   echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269   if test -n "$AWK"; then
1270   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1271 else
1272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 for as_dir in $PATH
1274 do
1275   IFS=$as_save_IFS
1276   test -z "$as_dir" && as_dir=.
1277   for ac_exec_ext in '' $ac_executable_extensions; do
1278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1279     ac_cv_prog_AWK="$ac_prog"
1280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1281     break 2
1282   fi
1283 done
1284 done
1285
1286 fi
1287 fi
1288 AWK=$ac_cv_prog_AWK
1289 if test -n "$AWK"; then
1290   echo "$as_me:$LINENO: result: $AWK" >&5
1291 echo "${ECHO_T}$AWK" >&6
1292 else
1293   echo "$as_me:$LINENO: result: no" >&5
1294 echo "${ECHO_T}no" >&6
1295 fi
1296
1297   test -n "$AWK" && break
1298 done
1299
1300
1301 echo "$as_me:$LINENO: checking version of the package" >&5
1302 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1303 if test -f .version; then
1304   VERSION=`cat .version`
1305 elif test -f ../.version; then
1306   VERSION=`cat ../.version`
1307 else
1308   VERSION="0.0.0"
1309 fi
1310 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1311 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1312 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1313 # Assume no special extension
1314 EXEEXT=`echo $EXEEXT`
1315
1316 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1317 echo "${ECHO_T}${VERSION}" >&6
1318
1319
1320
1321
1322 cat >>confdefs.h <<_ACEOF
1323 #define SDCC_VERSION_LO ${VERSIONLO}
1324 _ACEOF
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define SDCC_VERSION_HI ${VERSIONHI}
1328 _ACEOF
1329
1330 cat >>confdefs.h <<_ACEOF
1331 #define SDCC_VERSION_P ${VERSIONP}
1332 _ACEOF
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define SDCC_VERSION_STR "${VERSION}"
1336 _ACEOF
1337
1338 test "$program_prefix" != NONE &&
1339   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $.  echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1347 _ACEOF
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1349 rm conftest.sed
1350
1351 sdcc_cv_version=$VERSION
1352 sdcc_cv_versionhi=$VERSIONHI
1353 sdcc_cv_versionlo=$VERSIONLO
1354 sdcc_cv_versionp=$VERSIONP
1355
1356
1357 # Required programs
1358 # ===========================================================================
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 if test -n "$ac_tool_prefix"; then
1365   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1367 echo "$as_me:$LINENO: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370   echo $ECHO_N "(cached) $ECHO_C" >&6
1371 else
1372   if test -n "$CC"; then
1373   ac_cv_prog_CC="$CC" # Let the user override the test.
1374 else
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 for as_dir in $PATH
1377 do
1378   IFS=$as_save_IFS
1379   test -z "$as_dir" && as_dir=.
1380   for ac_exec_ext in '' $ac_executable_extensions; do
1381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384     break 2
1385   fi
1386 done
1387 done
1388
1389 fi
1390 fi
1391 CC=$ac_cv_prog_CC
1392 if test -n "$CC"; then
1393   echo "$as_me:$LINENO: result: $CC" >&5
1394 echo "${ECHO_T}$CC" >&6
1395 else
1396   echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400 fi
1401 if test -z "$ac_cv_prog_CC"; then
1402   ac_ct_CC=$CC
1403   # Extract the first word of "gcc", so it can be a program name with args.
1404 set dummy gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   if test -n "$ac_ct_CC"; then
1411   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416   IFS=$as_save_IFS
1417   test -z "$as_dir" && as_dir=.
1418   for ac_exec_ext in '' $ac_executable_extensions; do
1419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420     ac_cv_prog_ac_ct_CC="gcc"
1421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422     break 2
1423   fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430 if test -n "$ac_ct_CC"; then
1431   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432 echo "${ECHO_T}$ac_ct_CC" >&6
1433 else
1434   echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438   CC=$ac_ct_CC
1439 else
1440   CC="$ac_cv_prog_CC"
1441 fi
1442
1443 if test -z "$CC"; then
1444   if test -n "$ac_tool_prefix"; then
1445   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1446 set dummy ${ac_tool_prefix}cc; ac_word=$2
1447 echo "$as_me:$LINENO: checking for $ac_word" >&5
1448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449 if test "${ac_cv_prog_CC+set}" = set; then
1450   echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452   if test -n "$CC"; then
1453   ac_cv_prog_CC="$CC" # Let the user override the test.
1454 else
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     ac_cv_prog_CC="${ac_tool_prefix}cc"
1463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464     break 2
1465   fi
1466 done
1467 done
1468
1469 fi
1470 fi
1471 CC=$ac_cv_prog_CC
1472 if test -n "$CC"; then
1473   echo "$as_me:$LINENO: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1475 else
1476   echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 fi
1479
1480 fi
1481 if test -z "$ac_cv_prog_CC"; then
1482   ac_ct_CC=$CC
1483   # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488   echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490   if test -n "$ac_ct_CC"; then
1491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_prog_ac_ct_CC="cc"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510 if test -n "$ac_ct_CC"; then
1511   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1512 echo "${ECHO_T}$ac_ct_CC" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   CC=$ac_ct_CC
1519 else
1520   CC="$ac_cv_prog_CC"
1521 fi
1522
1523 fi
1524 if test -z "$CC"; then
1525   # Extract the first word of "cc", so it can be a program name with args.
1526 set dummy cc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535   ac_prog_rejected=no
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1544        ac_prog_rejected=yes
1545        continue
1546      fi
1547     ac_cv_prog_CC="cc"
1548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549     break 2
1550   fi
1551 done
1552 done
1553
1554 if test $ac_prog_rejected = yes; then
1555   # We found a bogon in the path, so make sure we never use it.
1556   set dummy $ac_cv_prog_CC
1557   shift
1558   if test $# != 0; then
1559     # We chose a different compiler from the bogus one.
1560     # However, it has the same basename, so the bogon will be chosen
1561     # first if we set CC to just the basename; use the full file name.
1562     shift
1563     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1564   fi
1565 fi
1566 fi
1567 fi
1568 CC=$ac_cv_prog_CC
1569 if test -n "$CC"; then
1570   echo "$as_me:$LINENO: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577 fi
1578 if test -z "$CC"; then
1579   if test -n "$ac_tool_prefix"; then
1580   for ac_prog in cl
1581   do
1582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_CC+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   if test -n "$CC"; then
1590   ac_cv_prog_CC="$CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   for ac_exec_ext in '' $ac_executable_extensions; do
1598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601     break 2
1602   fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 CC=$ac_cv_prog_CC
1609 if test -n "$CC"; then
1610   echo "$as_me:$LINENO: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1612 else
1613   echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617     test -n "$CC" && break
1618   done
1619 fi
1620 if test -z "$CC"; then
1621   ac_ct_CC=$CC
1622   for ac_prog in cl
1623 do
1624   # Extract the first word of "$ac_prog", so it can be a program name with args.
1625 set dummy $ac_prog; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   if test -n "$ac_ct_CC"; then
1632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633 else
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   for ac_exec_ext in '' $ac_executable_extensions; do
1640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641     ac_cv_prog_ac_ct_CC="$ac_prog"
1642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643     break 2
1644   fi
1645 done
1646 done
1647
1648 fi
1649 fi
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1654 else
1655   echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1657 fi
1658
1659   test -n "$ac_ct_CC" && break
1660 done
1661
1662   CC=$ac_ct_CC
1663 fi
1664
1665 fi
1666
1667
1668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1669 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1670    { (exit 1); exit 1; }; }
1671
1672 # Provide some information about the compiler.
1673 echo "$as_me:$LINENO:" \
1674      "checking for C compiler version" >&5
1675 ac_compiler=`set X $ac_compile; echo $2`
1676 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1677   (eval $ac_compiler --version </dev/null >&5) 2>&5
1678   ac_status=$?
1679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680   (exit $ac_status); }
1681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1682   (eval $ac_compiler -v </dev/null >&5) 2>&5
1683   ac_status=$?
1684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685   (exit $ac_status); }
1686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1687   (eval $ac_compiler -V </dev/null >&5) 2>&5
1688   ac_status=$?
1689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690   (exit $ac_status); }
1691
1692 cat >conftest.$ac_ext <<_ACEOF
1693 #line $LINENO "configure"
1694 #include "confdefs.h"
1695
1696 int
1697 main ()
1698 {
1699
1700   ;
1701   return 0;
1702 }
1703 _ACEOF
1704 ac_clean_files_save=$ac_clean_files
1705 ac_clean_files="$ac_clean_files a.out a.exe"
1706 # Try to create an executable without -o first, disregard a.out.
1707 # It will help us diagnose broken compilers, and finding out an intuition
1708 # of exeext.
1709 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1710 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1711 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1712 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1713   (eval $ac_link_default) 2>&5
1714   ac_status=$?
1715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716   (exit $ac_status); }; then
1717   # Find the output, starting from the most likely.  This scheme is
1718 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1719 # resort.
1720
1721 # Be careful to initialize this variable, since it used to be cached.
1722 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1723 ac_cv_exeext=
1724 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1725   test -f "$ac_file" || continue
1726   case $ac_file in
1727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728     a.out ) # We found the default executable, but exeext='' is most
1729             # certainly right.
1730             break;;
1731     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1732           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1733           export ac_cv_exeext
1734           break;;
1735     * ) break;;
1736   esac
1737 done
1738 else
1739   echo "$as_me: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1742 check \`config.log' for details." >&5
1743 echo "$as_me: error: C compiler cannot create executables
1744 check \`config.log' for details." >&2;}
1745    { (exit 77); exit 77; }; }
1746 fi
1747
1748 ac_exeext=$ac_cv_exeext
1749 echo "$as_me:$LINENO: result: $ac_file" >&5
1750 echo "${ECHO_T}$ac_file" >&6
1751
1752 # Check the compiler produces executables we can run.  If not, either
1753 # the compiler is broken, or we cross compile.
1754 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1755 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1756 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1757 # If not cross compiling, check that we can run a simple program.
1758 if test "$cross_compiling" != yes; then
1759   if { ac_try='./$ac_file'
1760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1761   (eval $ac_try) 2>&5
1762   ac_status=$?
1763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764   (exit $ac_status); }; }; then
1765     cross_compiling=no
1766   else
1767     if test "$cross_compiling" = maybe; then
1768         cross_compiling=yes
1769     else
1770         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1771 If you meant to cross compile, use \`--host'." >&5
1772 echo "$as_me: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&2;}
1774    { (exit 1); exit 1; }; }
1775     fi
1776   fi
1777 fi
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1780
1781 rm -f a.out a.exe conftest$ac_cv_exeext
1782 ac_clean_files=$ac_clean_files_save
1783 # Check the compiler produces executables we can run.  If not, either
1784 # the compiler is broken, or we cross compile.
1785 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1786 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1787 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1788 echo "${ECHO_T}$cross_compiling" >&6
1789
1790 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1791 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1793   (eval $ac_link) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }; then
1797   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1798 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1799 # work properly (i.e., refer to `conftest.exe'), while it won't with
1800 # `rm'.
1801 for ac_file in conftest.exe conftest conftest.*; do
1802   test -f "$ac_file" || continue
1803   case $ac_file in
1804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1805     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1806           export ac_cv_exeext
1807           break;;
1808     * ) break;;
1809   esac
1810 done
1811 else
1812   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1813 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1814    { (exit 1); exit 1; }; }
1815 fi
1816
1817 rm -f conftest$ac_cv_exeext
1818 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1819 echo "${ECHO_T}$ac_cv_exeext" >&6
1820
1821 rm -f conftest.$ac_ext
1822 EXEEXT=$ac_cv_exeext
1823 ac_exeext=$EXEEXT
1824 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1825 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1826 if test "${ac_cv_objext+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   cat >conftest.$ac_ext <<_ACEOF
1830 #line $LINENO "configure"
1831 #include "confdefs.h"
1832
1833 int
1834 main ()
1835 {
1836
1837   ;
1838   return 0;
1839 }
1840 _ACEOF
1841 rm -f conftest.o conftest.obj
1842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843   (eval $ac_compile) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; then
1847   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1848   case $ac_file in
1849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1850     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851        break;;
1852   esac
1853 done
1854 else
1855   echo "$as_me: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1858 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1859    { (exit 1); exit 1; }; }
1860 fi
1861
1862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1863 fi
1864 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1865 echo "${ECHO_T}$ac_cv_objext" >&6
1866 OBJEXT=$ac_cv_objext
1867 ac_objext=$OBJEXT
1868 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1869 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1870 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873   cat >conftest.$ac_ext <<_ACEOF
1874 #line $LINENO "configure"
1875 #include "confdefs.h"
1876
1877 int
1878 main ()
1879 {
1880 #ifndef __GNUC__
1881        choke me
1882 #endif
1883
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890   (eval $ac_compile) 2>&5
1891   ac_status=$?
1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893   (exit $ac_status); } &&
1894          { ac_try='test -s conftest.$ac_objext'
1895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896   (eval $ac_try) 2>&5
1897   ac_status=$?
1898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899   (exit $ac_status); }; }; then
1900   ac_compiler_gnu=yes
1901 else
1902   echo "$as_me: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1904 ac_compiler_gnu=no
1905 fi
1906 rm -f conftest.$ac_objext conftest.$ac_ext
1907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1908
1909 fi
1910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1912 GCC=`test $ac_compiler_gnu = yes && echo yes`
1913 ac_test_CFLAGS=${CFLAGS+set}
1914 ac_save_CFLAGS=$CFLAGS
1915 CFLAGS="-g"
1916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1918 if test "${ac_cv_prog_cc_g+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.$ac_ext <<_ACEOF
1922 #line $LINENO "configure"
1923 #include "confdefs.h"
1924
1925 int
1926 main ()
1927 {
1928
1929   ;
1930   return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935   (eval $ac_compile) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); } &&
1939          { ac_try='test -s conftest.$ac_objext'
1940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941   (eval $ac_try) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; }; then
1945   ac_cv_prog_cc_g=yes
1946 else
1947   echo "$as_me: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 ac_cv_prog_cc_g=no
1950 fi
1951 rm -f conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1954 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1955 if test "$ac_test_CFLAGS" = set; then
1956   CFLAGS=$ac_save_CFLAGS
1957 elif test $ac_cv_prog_cc_g = yes; then
1958   if test "$GCC" = yes; then
1959     CFLAGS="-g -O2"
1960   else
1961     CFLAGS="-g"
1962   fi
1963 else
1964   if test "$GCC" = yes; then
1965     CFLAGS="-O2"
1966   else
1967     CFLAGS=
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1971 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   ac_cv_prog_cc_stdc=no
1976 ac_save_CC=$CC
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1980 #include <stdarg.h>
1981 #include <stdio.h>
1982 #include <sys/types.h>
1983 #include <sys/stat.h>
1984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1985 struct buf { int x; };
1986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1987 static char *e (p, i)
1988      char **p;
1989      int i;
1990 {
1991   return p[i];
1992 }
1993 static char *f (char * (*g) (char **, int), char **p, ...)
1994 {
1995   char *s;
1996   va_list v;
1997   va_start (v,p);
1998   s = g (p, va_arg (v,int));
1999   va_end (v);
2000   return s;
2001 }
2002 int test (int i, double x);
2003 struct s1 {int (*f) (int a);};
2004 struct s2 {int (*f) (double a);};
2005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2006 int argc;
2007 char **argv;
2008 int
2009 main ()
2010 {
2011 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 # Don't try gcc -ansi; that turns off useful extensions and
2017 # breaks some systems' header files.
2018 # AIX                   -qlanglvl=ansi
2019 # Ultrix and OSF/1      -std1
2020 # HP-UX 10.20 and later -Ae
2021 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2022 # SVR4                  -Xc -D__EXTENSIONS__
2023 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2024 do
2025   CC="$ac_save_CC $ac_arg"
2026   rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); } &&
2032          { ac_try='test -s conftest.$ac_objext'
2033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034   (eval $ac_try) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; }; then
2038   ac_cv_prog_cc_stdc=$ac_arg
2039 break
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 fi
2044 rm -f conftest.$ac_objext
2045 done
2046 rm -f conftest.$ac_ext conftest.$ac_objext
2047 CC=$ac_save_CC
2048
2049 fi
2050
2051 case "x$ac_cv_prog_cc_stdc" in
2052   x|xno)
2053     echo "$as_me:$LINENO: result: none needed" >&5
2054 echo "${ECHO_T}none needed" >&6 ;;
2055   *)
2056     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2058     CC="$CC $ac_cv_prog_cc_stdc" ;;
2059 esac
2060
2061 # Some people use a C++ compiler to compile C.  Since we use `exit',
2062 # in C++ we need to declare it.  In case someone uses the same compiler
2063 # for both compiling C and C++ we need to have the C++ compiler decide
2064 # the declaration of exit, since it's the most demanding environment.
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #ifndef __cplusplus
2067   choke me
2068 #endif
2069 _ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072   (eval $ac_compile) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); } &&
2076          { ac_try='test -s conftest.$ac_objext'
2077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078   (eval $ac_try) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; }; then
2082   for ac_declaration in \
2083    ''\
2084    '#include <stdlib.h>' \
2085    'extern "C" void std::exit (int) throw (); using std::exit;' \
2086    'extern "C" void std::exit (int); using std::exit;' \
2087    'extern "C" void exit (int) throw ();' \
2088    'extern "C" void exit (int);' \
2089    'void exit (int);'
2090 do
2091   cat >conftest.$ac_ext <<_ACEOF
2092 #line $LINENO "configure"
2093 #include "confdefs.h"
2094 #include <stdlib.h>
2095 $ac_declaration
2096 int
2097 main ()
2098 {
2099 exit (42);
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106   (eval $ac_compile) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); } &&
2110          { ac_try='test -s conftest.$ac_objext'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; }; then
2116   :
2117 else
2118   echo "$as_me: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 continue
2121 fi
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2123   cat >conftest.$ac_ext <<_ACEOF
2124 #line $LINENO "configure"
2125 #include "confdefs.h"
2126 $ac_declaration
2127 int
2128 main ()
2129 {
2130 exit (42);
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); } &&
2141          { ac_try='test -s conftest.$ac_objext'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147   break
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 fi
2152 rm -f conftest.$ac_objext conftest.$ac_ext
2153 done
2154 rm -f conftest*
2155 if test -n "$ac_declaration"; then
2156   echo '#ifdef __cplusplus' >>confdefs.h
2157   echo $ac_declaration      >>confdefs.h
2158   echo '#endif'             >>confdefs.h
2159 fi
2160
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 fi
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172 ac_ext=cc
2173 ac_cpp='$CXXCPP $CPPFLAGS'
2174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2177 if test -n "$ac_tool_prefix"; then
2178   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2179   do
2180     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CXX+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$CXX"; then
2188   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203
2204 fi
2205 fi
2206 CXX=$ac_cv_prog_CXX
2207 if test -n "$CXX"; then
2208   echo "$as_me:$LINENO: result: $CXX" >&5
2209 echo "${ECHO_T}$CXX" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215     test -n "$CXX" && break
2216   done
2217 fi
2218 if test -z "$CXX"; then
2219   ac_ct_CXX=$CXX
2220   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2221 do
2222   # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test -n "$ac_ct_CXX"; then
2230   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239     ac_cv_prog_ac_ct_CXX="$ac_prog"
2240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2245
2246 fi
2247 fi
2248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2249 if test -n "$ac_ct_CXX"; then
2250   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2251 echo "${ECHO_T}$ac_ct_CXX" >&6
2252 else
2253   echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2255 fi
2256
2257   test -n "$ac_ct_CXX" && break
2258 done
2259 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2260
2261   CXX=$ac_ct_CXX
2262 fi
2263
2264
2265 # Provide some information about the compiler.
2266 echo "$as_me:$LINENO:" \
2267      "checking for C++ compiler version" >&5
2268 ac_compiler=`set X $ac_compile; echo $2`
2269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2270   (eval $ac_compiler --version </dev/null >&5) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2275   (eval $ac_compiler -v </dev/null >&5) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }
2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2280   (eval $ac_compiler -V </dev/null >&5) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284
2285 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2286 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2287 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2293
2294 int
2295 main ()
2296 {
2297 #ifndef __GNUC__
2298        choke me
2299 #endif
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_compiler_gnu=yes
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 ac_compiler_gnu=no
2322 fi
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2325
2326 fi
2327 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2329 GXX=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CXXFLAGS=${CXXFLAGS+set}
2331 ac_save_CXXFLAGS=$CXXFLAGS
2332 CXXFLAGS="-g"
2333 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2334 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cxx_g+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2341
2342 int
2343 main ()
2344 {
2345
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); } &&
2356          { ac_try='test -s conftest.$ac_objext'
2357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358   (eval $ac_try) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; }; then
2362   ac_cv_prog_cxx_g=yes
2363 else
2364   echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 ac_cv_prog_cxx_g=no
2367 fi
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2371 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2372 if test "$ac_test_CXXFLAGS" = set; then
2373   CXXFLAGS=$ac_save_CXXFLAGS
2374 elif test $ac_cv_prog_cxx_g = yes; then
2375   if test "$GXX" = yes; then
2376     CXXFLAGS="-g -O2"
2377   else
2378     CXXFLAGS="-g"
2379   fi
2380 else
2381   if test "$GXX" = yes; then
2382     CXXFLAGS="-O2"
2383   else
2384     CXXFLAGS=
2385   fi
2386 fi
2387 for ac_declaration in \
2388    ''\
2389    '#include <stdlib.h>' \
2390    'extern "C" void std::exit (int) throw (); using std::exit;' \
2391    'extern "C" void std::exit (int); using std::exit;' \
2392    'extern "C" void exit (int) throw ();' \
2393    'extern "C" void exit (int);' \
2394    'void exit (int);'
2395 do
2396   cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2398 #include "confdefs.h"
2399 #include <stdlib.h>
2400 $ac_declaration
2401 int
2402 main ()
2403 {
2404 exit (42);
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   :
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 continue
2426 fi
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428   cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2431 $ac_declaration
2432 int
2433 main ()
2434 {
2435 exit (42);
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   break
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 fi
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2458 done
2459 rm -f conftest*
2460 if test -n "$ac_declaration"; then
2461   echo '#ifdef __cplusplus' >>confdefs.h
2462   echo $ac_declaration      >>confdefs.h
2463   echo '#endif'             >>confdefs.h
2464 fi
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2478 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2479 # On Suns, sometimes $CPP names a directory.
2480 if test -n "$CPP" && test -d "$CPP"; then
2481   CPP=
2482 fi
2483 if test -z "$CPP"; then
2484   if test "${ac_cv_prog_CPP+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487       # Double quotes because CPP needs to be expanded
2488     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2489     do
2490       ac_preproc_ok=false
2491 for ac_c_preproc_warn_flag in '' yes
2492 do
2493   # Use a header file that comes with gcc, so configuring glibc
2494   # with a fresh cross-compiler works.
2495   # On the NeXT, cc -E runs the code through the compiler's parser,
2496   # not just through cpp. "Syntax error" is here to catch this case.
2497   cat >conftest.$ac_ext <<_ACEOF
2498 #line $LINENO "configure"
2499 #include "confdefs.h"
2500 #include <assert.h>
2501                      Syntax error
2502 _ACEOF
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2505   ac_status=$?
2506   grep -v '^ *+' conftest.er1 >conftest.err
2507   rm -f conftest.er1
2508   cat conftest.err >&5
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } >/dev/null; then
2511   if test -s conftest.err; then
2512     ac_cpp_err=$ac_c_preproc_warn_flag
2513   else
2514     ac_cpp_err=
2515   fi
2516 else
2517   ac_cpp_err=yes
2518 fi
2519 if test -z "$ac_cpp_err"; then
2520   :
2521 else
2522   echo "$as_me: failed program was:" >&5
2523   cat conftest.$ac_ext >&5
2524   # Broken: fails on valid input.
2525 continue
2526 fi
2527 rm -f conftest.err conftest.$ac_ext
2528
2529   # OK, works on sane cases.  Now check whether non-existent headers
2530   # can be detected and how.
2531   cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 #include "confdefs.h"
2534 #include <ac_nonexistent.h>
2535 _ACEOF
2536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538   ac_status=$?
2539   grep -v '^ *+' conftest.er1 >conftest.err
2540   rm -f conftest.er1
2541   cat conftest.err >&5
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); } >/dev/null; then
2544   if test -s conftest.err; then
2545     ac_cpp_err=$ac_c_preproc_warn_flag
2546   else
2547     ac_cpp_err=
2548   fi
2549 else
2550   ac_cpp_err=yes
2551 fi
2552 if test -z "$ac_cpp_err"; then
2553   # Broken: success on invalid input.
2554 continue
2555 else
2556   echo "$as_me: failed program was:" >&5
2557   cat conftest.$ac_ext >&5
2558   # Passes both tests.
2559 ac_preproc_ok=:
2560 break
2561 fi
2562 rm -f conftest.err conftest.$ac_ext
2563
2564 done
2565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2566 rm -f conftest.err conftest.$ac_ext
2567 if $ac_preproc_ok; then
2568   break
2569 fi
2570
2571     done
2572     ac_cv_prog_CPP=$CPP
2573
2574 fi
2575   CPP=$ac_cv_prog_CPP
2576 else
2577   ac_cv_prog_CPP=$CPP
2578 fi
2579 echo "$as_me:$LINENO: result: $CPP" >&5
2580 echo "${ECHO_T}$CPP" >&6
2581 ac_preproc_ok=false
2582 for ac_c_preproc_warn_flag in '' yes
2583 do
2584   # Use a header file that comes with gcc, so configuring glibc
2585   # with a fresh cross-compiler works.
2586   # On the NeXT, cc -E runs the code through the compiler's parser,
2587   # not just through cpp. "Syntax error" is here to catch this case.
2588   cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2590 #include "confdefs.h"
2591 #include <assert.h>
2592                      Syntax error
2593 _ACEOF
2594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } >/dev/null; then
2602   if test -s conftest.err; then
2603     ac_cpp_err=$ac_c_preproc_warn_flag
2604   else
2605     ac_cpp_err=
2606   fi
2607 else
2608   ac_cpp_err=yes
2609 fi
2610 if test -z "$ac_cpp_err"; then
2611   :
2612 else
2613   echo "$as_me: failed program was:" >&5
2614   cat conftest.$ac_ext >&5
2615   # Broken: fails on valid input.
2616 continue
2617 fi
2618 rm -f conftest.err conftest.$ac_ext
2619
2620   # OK, works on sane cases.  Now check whether non-existent headers
2621   # can be detected and how.
2622   cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 #include "confdefs.h"
2625 #include <ac_nonexistent.h>
2626 _ACEOF
2627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2629   ac_status=$?
2630   grep -v '^ *+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } >/dev/null; then
2635   if test -s conftest.err; then
2636     ac_cpp_err=$ac_c_preproc_warn_flag
2637   else
2638     ac_cpp_err=
2639   fi
2640 else
2641   ac_cpp_err=yes
2642 fi
2643 if test -z "$ac_cpp_err"; then
2644   # Broken: success on invalid input.
2645 continue
2646 else
2647   echo "$as_me: failed program was:" >&5
2648   cat conftest.$ac_ext >&5
2649   # Passes both tests.
2650 ac_preproc_ok=:
2651 break
2652 fi
2653 rm -f conftest.err conftest.$ac_ext
2654
2655 done
2656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2657 rm -f conftest.err conftest.$ac_ext
2658 if $ac_preproc_ok; then
2659   :
2660 else
2661   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2663    { (exit 1); exit 1; }; }
2664 fi
2665
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
2672 ac_aux_dir=
2673 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2674   if test -f $ac_dir/install-sh; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/install-sh -c"
2677     break
2678   elif test -f $ac_dir/install.sh; then
2679     ac_aux_dir=$ac_dir
2680     ac_install_sh="$ac_aux_dir/install.sh -c"
2681     break
2682   elif test -f $ac_dir/shtool; then
2683     ac_aux_dir=$ac_dir
2684     ac_install_sh="$ac_aux_dir/shtool install -c"
2685     break
2686   fi
2687 done
2688 if test -z "$ac_aux_dir"; then
2689   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2690 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2691    { (exit 1); exit 1; }; }
2692 fi
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2695 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2696
2697 # Find a good install program.  We prefer a C program (faster),
2698 # so one script is as good as another.  But avoid the broken or
2699 # incompatible versions:
2700 # SysV /etc/install, /usr/sbin/install
2701 # SunOS /usr/etc/install
2702 # IRIX /sbin/install
2703 # AIX /bin/install
2704 # AmigaOS /C/install, which installs bootblocks on floppy discs
2705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2708 # ./install, which can be erroneously created by make from ./install.sh.
2709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2711 if test -z "$INSTALL"; then
2712 if test "${ac_cv_path_install+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720   # Account for people who put trailing slashes in PATH elements.
2721 case $as_dir/ in
2722   ./ | .// | /cC/* | \
2723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2724   /usr/ucb/* ) ;;
2725   *)
2726     # OSF1 and SCO ODT 3.0 have their own names for install.
2727     # Don't use installbsd from OSF since it installs stuff as root
2728     # by default.
2729     for ac_prog in ginstall scoinst install; do
2730       for ac_exec_ext in '' $ac_executable_extensions; do
2731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2732           if test $ac_prog = install &&
2733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734             # AIX install.  It has an incompatible calling convention.
2735             :
2736           elif test $ac_prog = install &&
2737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738             # program-specific install script used by HP pwplus--don't use.
2739             :
2740           else
2741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742             break 3
2743           fi
2744         fi
2745       done
2746     done
2747     ;;
2748 esac
2749 done
2750
2751
2752 fi
2753   if test "${ac_cv_path_install+set}" = set; then
2754     INSTALL=$ac_cv_path_install
2755   else
2756     # As a last resort, use the slow shell script.  We don't cache a
2757     # path for INSTALL within a source directory, because that will
2758     # break other packages using the cache if that directory is
2759     # removed, or if the path is relative.
2760     INSTALL=$ac_install_sh
2761   fi
2762 fi
2763 echo "$as_me:$LINENO: result: $INSTALL" >&5
2764 echo "${ECHO_T}$INSTALL" >&6
2765
2766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767 # It thinks the first close brace ends the variable substitution.
2768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769
2770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771
2772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773
2774 if test -n "$ac_tool_prefix"; then
2775   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_RANLIB+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$RANLIB"; then
2783   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798
2799 fi
2800 fi
2801 RANLIB=$ac_cv_prog_RANLIB
2802 if test -n "$RANLIB"; then
2803   echo "$as_me:$LINENO: result: $RANLIB" >&5
2804 echo "${ECHO_T}$RANLIB" >&6
2805 else
2806   echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2808 fi
2809
2810 fi
2811 if test -z "$ac_cv_prog_RANLIB"; then
2812   ac_ct_RANLIB=$RANLIB
2813   # Extract the first word of "ranlib", so it can be a program name with args.
2814 set dummy ranlib; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$ac_ct_RANLIB"; then
2821   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_ac_ct_RANLIB="ranlib"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836
2837   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2838 fi
2839 fi
2840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2841 if test -n "$ac_ct_RANLIB"; then
2842   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2844 else
2845   echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2847 fi
2848
2849   RANLIB=$ac_ct_RANLIB
2850 else
2851   RANLIB="$ac_cv_prog_RANLIB"
2852 fi
2853
2854
2855 for ac_prog in flex lex
2856 do
2857   # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_prog_LEX+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   if test -n "$LEX"; then
2865   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872   for ac_exec_ext in '' $ac_executable_extensions; do
2873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874     ac_cv_prog_LEX="$ac_prog"
2875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879 done
2880
2881 fi
2882 fi
2883 LEX=$ac_cv_prog_LEX
2884 if test -n "$LEX"; then
2885   echo "$as_me:$LINENO: result: $LEX" >&5
2886 echo "${ECHO_T}$LEX" >&6
2887 else
2888   echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2890 fi
2891
2892   test -n "$LEX" && break
2893 done
2894 test -n "$LEX" || LEX=":"
2895
2896 if test -z "$LEXLIB"
2897 then
2898   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2899 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2900 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-lfl  $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2908
2909 /* Override any gcc2 internal prototype to avoid an error.  */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914    builtin and then its argument prototype would still apply.  */
2915 char yywrap ();
2916 int
2917 main ()
2918 {
2919 yywrap ();
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926   (eval $ac_link) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -s conftest$ac_exeext'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_lib_fl_yywrap=yes
2937 else
2938   echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_fl_yywrap=no
2941 fi
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2946 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2947 if test $ac_cv_lib_fl_yywrap = yes; then
2948   LEXLIB="-lfl"
2949 else
2950   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2951 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2952 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   ac_check_lib_save_LIBS=$LIBS
2956 LIBS="-ll  $LIBS"
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 #include "confdefs.h"
2960
2961 /* Override any gcc2 internal prototype to avoid an error.  */
2962 #ifdef __cplusplus
2963 extern "C"
2964 #endif
2965 /* We use char because int might match the return type of a gcc2
2966    builtin and then its argument prototype would still apply.  */
2967 char yywrap ();
2968 int
2969 main ()
2970 {
2971 yywrap ();
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978   (eval $ac_link) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -s conftest$ac_exeext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   ac_cv_lib_l_yywrap=yes
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_lib_l_yywrap=no
2993 fi
2994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995 LIBS=$ac_check_lib_save_LIBS
2996 fi
2997 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2998 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2999 if test $ac_cv_lib_l_yywrap = yes; then
3000   LEXLIB="-ll"
3001 fi
3002
3003 fi
3004
3005 fi
3006
3007 if test "x$LEX" != "x:"; then
3008   echo "$as_me:$LINENO: checking lex output file root" >&5
3009 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3010 if test "${ac_cv_prog_lex_root+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   # The minimal lex program is just a single line: %%.  But some broken lexes
3014 # (Solaris, I think it was) want two %% lines, so accommodate them.
3015 cat >conftest.l <<_ACEOF
3016 %%
3017 %%
3018 _ACEOF
3019 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3020   (eval $LEX conftest.l) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }
3024 if test -f lex.yy.c; then
3025   ac_cv_prog_lex_root=lex.yy
3026 elif test -f lexyy.c; then
3027   ac_cv_prog_lex_root=lexyy
3028 else
3029   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3030 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3031    { (exit 1); exit 1; }; }
3032 fi
3033 fi
3034 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3035 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3036 rm -f conftest.l
3037 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3038
3039 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3040 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3041 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   # POSIX says lex can declare yytext either as a pointer or an array; the
3045 # default is implementation-dependent. Figure out which it is, since
3046 # not all implementations provide the %pointer and %array declarations.
3047 ac_cv_prog_lex_yytext_pointer=no
3048 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3049 ac_save_LIBS=$LIBS
3050 LIBS="$LIBS $LEXLIB"
3051 cat >conftest.$ac_ext <<_ACEOF
3052 `cat $LEX_OUTPUT_ROOT.c`
3053 _ACEOF
3054 rm -f conftest.$ac_objext conftest$ac_exeext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056   (eval $ac_link) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -s conftest$ac_exeext'
3061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   ac_cv_prog_lex_yytext_pointer=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 fi
3071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3072 LIBS=$ac_save_LIBS
3073 rm -f "${LEX_OUTPUT_ROOT}.c"
3074
3075 fi
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3077 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3078 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3079
3080 cat >>confdefs.h <<\_ACEOF
3081 #define YYTEXT_POINTER 1
3082 _ACEOF
3083
3084 fi
3085
3086 fi
3087 for ac_prog in 'bison -y' byacc
3088 do
3089   # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_YACC+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   if test -n "$YACC"; then
3097   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_exec_ext in '' $ac_executable_extensions; do
3105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106     ac_cv_prog_YACC="$ac_prog"
3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111 done
3112
3113 fi
3114 fi
3115 YACC=$ac_cv_prog_YACC
3116 if test -n "$YACC"; then
3117   echo "$as_me:$LINENO: result: $YACC" >&5
3118 echo "${ECHO_T}$YACC" >&6
3119 else
3120   echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3122 fi
3123
3124   test -n "$YACC" && break
3125 done
3126 test -n "$YACC" || YACC="yacc"
3127
3128 # Extract the first word of "autoconf", so it can be a program name with args.
3129 set dummy autoconf; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135   if test -n "$AUTOCONF"; then
3136   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143   for ac_exec_ext in '' $ac_executable_extensions; do
3144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145     ac_cv_prog_AUTOCONF="autoconf"
3146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150 done
3151
3152   test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3153 fi
3154 fi
3155 AUTOCONF=$ac_cv_prog_AUTOCONF
3156 if test -n "$AUTOCONF"; then
3157   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3158 echo "${ECHO_T}$AUTOCONF" >&6
3159 else
3160   echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3162 fi
3163
3164 # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_STRIP+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   if test -n "$STRIP"; then
3172   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179   for ac_exec_ext in '' $ac_executable_extensions; do
3180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_STRIP="strip"
3182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186 done
3187
3188   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3189 fi
3190 fi
3191 STRIP=$ac_cv_prog_STRIP
3192 if test -n "$STRIP"; then
3193   echo "$as_me:$LINENO: result: $STRIP" >&5
3194 echo "${ECHO_T}$STRIP" >&6
3195 else
3196   echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 fi
3199
3200 # Extract the first word of "as", so it can be a program name with args.
3201 set dummy as; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_AS+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   if test -n "$AS"; then
3208   ac_cv_prog_AS="$AS" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215   for ac_exec_ext in '' $ac_executable_extensions; do
3216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_AS="as"
3218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222 done
3223
3224   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3225 fi
3226 fi
3227 AS=$ac_cv_prog_AS
3228 if test -n "$AS"; then
3229   echo "$as_me:$LINENO: result: $AS" >&5
3230 echo "${ECHO_T}$AS" >&6
3231 else
3232   echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236 # Extract the first word of "cp", so it can be a program name with args.
3237 set dummy cp; ac_word=$2
3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240 if test "${ac_cv_prog_CP+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   if test -n "$CP"; then
3244   ac_cv_prog_CP="$CP" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for ac_exec_ext in '' $ac_executable_extensions; do
3252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_prog_CP="cp"
3254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258 done
3259
3260   test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3261 fi
3262 fi
3263 CP=$ac_cv_prog_CP
3264 if test -n "$CP"; then
3265   echo "$as_me:$LINENO: result: $CP" >&5
3266 echo "${ECHO_T}$CP" >&6
3267 else
3268   echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 fi
3271
3272
3273 # Extract the first word of "lyx", so it can be a program name with args.
3274 set dummy lyx; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_LYX+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   if test -n "$LYX"; then
3281   ac_cv_prog_LYX="$LYX" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288   for ac_exec_ext in '' $ac_executable_extensions; do
3289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290     ac_cv_prog_LYX="lyx"
3291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295 done
3296
3297   test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3298 fi
3299 fi
3300 LYX=$ac_cv_prog_LYX
3301 if test -n "$LYX"; then
3302   echo "$as_me:$LINENO: result: $LYX" >&5
3303 echo "${ECHO_T}$LYX" >&6
3304 else
3305   echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309 # Extract the first word of "latex", so it can be a program name with args.
3310 set dummy latex; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_LATEX+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   if test -n "$LATEX"; then
3317   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324   for ac_exec_ext in '' $ac_executable_extensions; do
3325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326     ac_cv_prog_LATEX="latex"
3327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331 done
3332
3333   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3334 fi
3335 fi
3336 LATEX=$ac_cv_prog_LATEX
3337 if test -n "$LATEX"; then
3338   echo "$as_me:$LINENO: result: $LATEX" >&5
3339 echo "${ECHO_T}$LATEX" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 # Extract the first word of "latex2html", so it can be a program name with args.
3346 set dummy latex2html; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   if test -n "$LATEX2HTML"; then
3353   ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360   for ac_exec_ext in '' $ac_executable_extensions; do
3361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362     ac_cv_prog_LATEX2HTML="latex2html"
3363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367 done
3368
3369   test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3370 fi
3371 fi
3372 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3373 if test -n "$LATEX2HTML"; then
3374   echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3375 echo "${ECHO_T}$LATEX2HTML" >&6
3376 else
3377   echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3379 fi
3380
3381 # Extract the first word of "pdflatex", so it can be a program name with args.
3382 set dummy pdflatex; ac_word=$2
3383 echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   if test -n "$PDFLATEX"; then
3389   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394   IFS=$as_save_IFS
3395   test -z "$as_dir" && as_dir=.
3396   for ac_exec_ext in '' $ac_executable_extensions; do
3397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398     ac_cv_prog_PDFLATEX="pdflatex"
3399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400     break 2
3401   fi
3402 done
3403 done
3404
3405   test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3406 fi
3407 fi
3408 PDFLATEX=$ac_cv_prog_PDFLATEX
3409 if test -n "$PDFLATEX"; then
3410   echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3411 echo "${ECHO_T}$PDFLATEX" >&6
3412 else
3413   echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3415 fi
3416
3417 # Extract the first word of "dvipdf", so it can be a program name with args.
3418 set dummy dvipdf; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -n "$DVIPDF"; then
3425   ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_DVIPDF="dvipdf"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441   test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3442 fi
3443 fi
3444 DVIPDF=$ac_cv_prog_DVIPDF
3445 if test -n "$DVIPDF"; then
3446   echo "$as_me:$LINENO: result: $DVIPDF" >&5
3447 echo "${ECHO_T}$DVIPDF" >&6
3448 else
3449   echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3451 fi
3452
3453
3454
3455
3456 if test "$YACC" = ":"; then
3457   { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3458 echo "$as_me: error: Cannot find required program bison." >&2;}
3459    { (exit 1); exit 1; }; }
3460  fi
3461
3462 if test "$LEX" = ":"; then
3463   { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3464 echo "$as_me: error: Cannot find required program lex." >&2;}
3465    { (exit 1); exit 1; }; }
3466  fi
3467
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474
3475
3476
3477 # Checking for header files.
3478 # ===========================================================================
3479
3480 echo "$as_me:$LINENO: checking for egrep" >&5
3481 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3482 if test "${ac_cv_prog_egrep+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3486     then ac_cv_prog_egrep='grep -E'
3487     else ac_cv_prog_egrep='egrep'
3488     fi
3489 fi
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3491 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3492  EGREP=$ac_cv_prog_egrep
3493
3494
3495 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3497 if test "${ac_cv_header_stdc+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3503 #include <stdlib.h>
3504 #include <stdarg.h>
3505 #include <string.h>
3506 #include <float.h>
3507
3508 _ACEOF
3509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } >/dev/null; then
3517   if test -s conftest.err; then
3518     ac_cpp_err=$ac_c_preproc_warn_flag
3519   else
3520     ac_cpp_err=
3521   fi
3522 else
3523   ac_cpp_err=yes
3524 fi
3525 if test -z "$ac_cpp_err"; then
3526   ac_cv_header_stdc=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529   cat conftest.$ac_ext >&5
3530   ac_cv_header_stdc=no
3531 fi
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 if test $ac_cv_header_stdc = yes; then
3535   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3536   cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 #include "confdefs.h"
3539 #include <string.h>
3540
3541 _ACEOF
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543   $EGREP "memchr" >/dev/null 2>&1; then
3544   :
3545 else
3546   ac_cv_header_stdc=no
3547 fi
3548 rm -f conftest*
3549
3550 fi
3551
3552 if test $ac_cv_header_stdc = yes; then
3553   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3554   cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3557 #include <stdlib.h>
3558
3559 _ACEOF
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561   $EGREP "free" >/dev/null 2>&1; then
3562   :
3563 else
3564   ac_cv_header_stdc=no
3565 fi
3566 rm -f conftest*
3567
3568 fi
3569
3570 if test $ac_cv_header_stdc = yes; then
3571   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572   if test "$cross_compiling" = yes; then
3573   :
3574 else
3575   cat >conftest.$ac_ext <<_ACEOF
3576 #line $LINENO "configure"
3577 #include "confdefs.h"
3578 #include <ctype.h>
3579 #if ((' ' & 0x0FF) == 0x020)
3580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3582 #else
3583 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3584                      || ('j' <= (c) && (c) <= 'r') \
3585                      || ('s' <= (c) && (c) <= 'z'))
3586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3587 #endif
3588
3589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3590 int
3591 main ()
3592 {
3593   int i;
3594   for (i = 0; i < 256; i++)
3595     if (XOR (islower (i), ISLOWER (i))
3596         || toupper (i) != TOUPPER (i))
3597       exit(2);
3598   exit (0);
3599 }
3600 _ACEOF
3601 rm -f conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603   (eval $ac_link) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   :
3613 else
3614   echo "$as_me: program exited with status $ac_status" >&5
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 ( exit $ac_status )
3618 ac_cv_header_stdc=no
3619 fi
3620 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 fi
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3625 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3626 if test $ac_cv_header_stdc = yes; then
3627
3628 cat >>confdefs.h <<\_ACEOF
3629 #define STDC_HEADERS 1
3630 _ACEOF
3631
3632 fi
3633
3634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3645                   inttypes.h stdint.h unistd.h
3646 do
3647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3648 echo "$as_me:$LINENO: checking for $ac_header" >&5
3649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 #include "confdefs.h"
3656 $ac_includes_default
3657
3658 #include <$ac_header>
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662   (eval $ac_compile) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } &&
3666          { ac_try='test -s conftest.$ac_objext'
3667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668   (eval $ac_try) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; }; then
3672   eval "$as_ac_Header=yes"
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 eval "$as_ac_Header=no"
3677 fi
3678 rm -f conftest.$ac_objext conftest.$ac_ext
3679 fi
3680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3683   cat >>confdefs.h <<_ACEOF
3684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3685 _ACEOF
3686
3687 fi
3688
3689 done
3690
3691
3692
3693 for ac_header in sys/socket.h
3694 do
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697   echo "$as_me:$LINENO: checking for $ac_header" >&5
3698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 fi
3702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704 else
3705   # Is the header compilable?
3706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3712 #include <$ac_header>
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } &&
3720          { ac_try='test -s conftest.$ac_objext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   ac_header_compiler=yes
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 ac_header_compiler=no
3731 fi
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3734 echo "${ECHO_T}$ac_header_compiler" >&6
3735
3736 # Is the header present?
3737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3742 #include <$ac_header>
3743 _ACEOF
3744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } >/dev/null; then
3752   if test -s conftest.err; then
3753     ac_cpp_err=$ac_c_preproc_warn_flag
3754   else
3755     ac_cpp_err=
3756   fi
3757 else
3758   ac_cpp_err=yes
3759 fi
3760 if test -z "$ac_cpp_err"; then
3761   ac_header_preproc=yes
3762 else
3763   echo "$as_me: failed program was:" >&5
3764   cat conftest.$ac_ext >&5
3765   ac_header_preproc=no
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3769 echo "${ECHO_T}$ac_header_preproc" >&6
3770
3771 # So?  What about this header?
3772 case $ac_header_compiler:$ac_header_preproc in
3773   yes:no )
3774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3778   no:yes )
3779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3781     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3785 esac
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   eval "$as_ac_Header=$ac_header_preproc"
3792 fi
3793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3795
3796 fi
3797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3798   cat >>confdefs.h <<_ACEOF
3799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3800 _ACEOF
3801
3802 fi
3803
3804 done
3805
3806
3807
3808 # Checking for functions
3809 # ===========================================================================
3810
3811 for ac_func in strerror
3812 do
3813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3814 echo "$as_me:$LINENO: checking for $ac_func" >&5
3815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_var+set}\" = set"; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   cat >conftest.$ac_ext <<_ACEOF
3820 #line $LINENO "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823     which can conflict with char $ac_func (); below.  */
3824 #include <assert.h>
3825 /* Override any gcc2 internal prototype to avoid an error.  */
3826 #ifdef __cplusplus
3827 extern "C"
3828 #endif
3829 /* We use char because int might match the return type of a gcc2
3830    builtin and then its argument prototype would still apply.  */
3831 char $ac_func ();
3832 char (*f) ();
3833
3834 int
3835 main ()
3836 {
3837 /* The GNU C library defines this for functions which it implements
3838     to always fail with ENOSYS.  Some functions are actually named
3839     something starting with __ and the normal name is an alias.  */
3840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3841 choke me
3842 #else
3843 f = $ac_func;
3844 #endif
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852   (eval $ac_link) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } &&
3856          { ac_try='test -s conftest$ac_exeext'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; }; then
3862   eval "$as_ac_var=yes"
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 eval "$as_ac_var=no"
3867 fi
3868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3869 fi
3870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3872 if test `eval echo '${'$as_ac_var'}'` = yes; then
3873   cat >>confdefs.h <<_ACEOF
3874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3875 _ACEOF
3876
3877 fi
3878 done
3879
3880
3881
3882
3883
3884 for ac_func in vsnprintf snprintf vsprintf mkstemp
3885 do
3886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3887 echo "$as_me:$LINENO: checking for $ac_func" >&5
3888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_var+set}\" = set"; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896     which can conflict with char $ac_func (); below.  */
3897 #include <assert.h>
3898 /* Override any gcc2 internal prototype to avoid an error.  */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903    builtin and then its argument prototype would still apply.  */
3904 char $ac_func ();
3905 char (*f) ();
3906
3907 int
3908 main ()
3909 {
3910 /* The GNU C library defines this for functions which it implements
3911     to always fail with ENOSYS.  Some functions are actually named
3912     something starting with __ and the normal name is an alias.  */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3914 choke me
3915 #else
3916 f = $ac_func;
3917 #endif
3918
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925   (eval $ac_link) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } &&
3929          { ac_try='test -s conftest$ac_exeext'
3930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931   (eval $ac_try) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   eval "$as_ac_var=yes"
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 eval "$as_ac_var=no"
3940 fi
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 fi
3943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3945 if test `eval echo '${'$as_ac_var'}'` = yes; then
3946   cat >>confdefs.h <<_ACEOF
3947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3948 _ACEOF
3949
3950 fi
3951 done
3952
3953
3954
3955 # Macro definitions
3956 # ===========================================================================
3957
3958 # DD_COPT macro checks if the compiler specified as the 1st parameter
3959 # supports option specified as the 2nd parameter
3960 # For example: DD_CPORT(CXX, fPIC)
3961
3962
3963
3964 # This macro _AC_DEFINEs VARNAME to the expansion of the DIR variable,
3965 # taking care of fixing up ${prefix} and such.
3966 #
3967 # Note that the 3 argument form is only supported with autoconf 2.13
3968 # and later (i.e. only where _AC_DEFINE supports 3 arguments).
3969 #
3970 # Examples:
3971 #
3972 #  AC_DEFINE_DIR(DATADIR, datadir)
3973 #  AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
3974
3975
3976
3977
3978 # Checking characteristics of compilers and other programs
3979 # ===========================================================================
3980 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3981 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3982 if test "${sdcc_cv_MM+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   echo "#include <stdio.h>" >_test_.c
3986 echo "" >>_test_.c
3987 $CPP -v -MM _test_.c 1>&5 2>&5
3988 if test "$?" = "0"; then
3989   sdcc_cv_MM="-MM"
3990 else
3991   sdcc_cv_MM="-M"
3992 fi
3993 rm -f _test_.*
3994 fi
3995 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3996 echo "${ECHO_T}$sdcc_cv_MM" >&6
3997 M_OR_MM=$sdcc_cv_MM
3998
3999
4000 # This is the first time when CFLAGS are set/modified!!
4001
4002 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4003 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4004 if test "${sdcc_cv_CCggdb+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   cat >_test_.c <<EOF
4008 #include <stdio.h>
4009 void main(void) {}
4010 EOF
4011 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4012 if test "$?" = "0"; then
4013   sdcc_cv_CCggdb="yes"
4014 else
4015   sdcc_cv_CCggdb="no"
4016 fi
4017 rm -f _test_.* a.out
4018 fi
4019 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4020 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4021
4022 if test "$sdcc_cv_CCggdb" = "yes"; then
4023   CFLAGS="-ggdb -O2"
4024 fi
4025
4026
4027 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4028 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4029 if test "${sdcc_cv_CCpipe+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   cat >_test_.c <<EOF
4033 #include <stdio.h>
4034 void main(void) {}
4035 EOF
4036 $CC -v -pipe -c _test_.c 1>&5 2>&5
4037 if test "$?" = "0"; then
4038   sdcc_cv_CCpipe="yes"
4039 else
4040   sdcc_cv_CCpipe="no"
4041 fi
4042 rm -f _test_.* a.out
4043 fi
4044 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4045 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4046
4047 if test "$sdcc_cv_CCpipe" = "yes"; then
4048   CFLAGS="$CFLAGS -pipe"
4049 fi
4050
4051 # Checks for typedefs, structures, and compiler characteristics.
4052 # ===========================================================================
4053 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4054 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4055 if test "${ac_cv_type_signal+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   cat >conftest.$ac_ext <<_ACEOF
4059 #line $LINENO "configure"
4060 #include "confdefs.h"
4061 #include <sys/types.h>
4062 #include <signal.h>
4063 #ifdef signal
4064 # undef signal
4065 #endif
4066 #ifdef __cplusplus
4067 extern "C" void (*signal (int, void (*)(int)))(int);
4068 #else
4069 void (*signal ()) ();
4070 #endif
4071
4072 int
4073 main ()
4074 {
4075 int i;
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -s conftest.$ac_objext'
4087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088   (eval $ac_try) 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; }; then
4092   ac_cv_type_signal=void
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 ac_cv_type_signal=int
4097 fi
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4101 echo "${ECHO_T}$ac_cv_type_signal" >&6
4102
4103 cat >>confdefs.h <<_ACEOF
4104 #define RETSIGTYPE $ac_cv_type_signal
4105 _ACEOF
4106
4107
4108
4109 echo "$as_me:$LINENO: checking for char" >&5
4110 echo $ECHO_N "checking for char... $ECHO_C" >&6
4111 if test "${ac_cv_type_char+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4116 #include "confdefs.h"
4117 $ac_includes_default
4118 int
4119 main ()
4120 {
4121 if ((char *) 0)
4122   return 0;
4123 if (sizeof (char))
4124   return 0;
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131   (eval $ac_compile) 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; }; then
4141   ac_cv_type_char=yes
4142 else
4143   echo "$as_me: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 ac_cv_type_char=no
4146 fi
4147 rm -f conftest.$ac_objext conftest.$ac_ext
4148 fi
4149 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4150 echo "${ECHO_T}$ac_cv_type_char" >&6
4151
4152 echo "$as_me:$LINENO: checking size of char" >&5
4153 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4154 if test "${ac_cv_sizeof_char+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test "$ac_cv_type_char" = yes; then
4158   # The cast to unsigned long works around a bug in the HP C Compiler
4159   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4160   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4161   # This bug is HP SR number 8606223364.
4162   if test "$cross_compiling" = yes; then
4163   # Depending upon the size, compute the lo and hi bounds.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4166 #include "confdefs.h"
4167 $ac_includes_default
4168 int
4169 main ()
4170 {
4171 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4172 test_array [0] = 0
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180   (eval $ac_compile) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); } &&
4184          { ac_try='test -s conftest.$ac_objext'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; }; then
4190   ac_lo=0 ac_mid=0
4191   while :; do
4192     cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195 $ac_includes_default
4196 int
4197 main ()
4198 {
4199 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4200 test_array [0] = 0
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208   (eval $ac_compile) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -s conftest.$ac_objext'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; }; then
4218   ac_hi=$ac_mid; break
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 ac_lo=`expr $ac_mid + 1`
4223                     if test $ac_lo -le $ac_mid; then
4224                       ac_lo= ac_hi=
4225                       break
4226                     fi
4227                     ac_mid=`expr 2 '*' $ac_mid + 1`
4228 fi
4229 rm -f conftest.$ac_objext conftest.$ac_ext
4230   done
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4236 #include "confdefs.h"
4237 $ac_includes_default
4238 int
4239 main ()
4240 {
4241 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4242 test_array [0] = 0
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250   (eval $ac_compile) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -s conftest.$ac_objext'
4255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256   (eval $ac_try) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }; }; then
4260   ac_hi=-1 ac_mid=-1
4261   while :; do
4262     cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 #include "confdefs.h"
4265 $ac_includes_default
4266 int
4267 main ()
4268 {
4269 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4270 test_array [0] = 0
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278   (eval $ac_compile) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -s conftest.$ac_objext'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   ac_lo=$ac_mid; break
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4292 ac_hi=`expr '(' $ac_mid ')' - 1`
4293                        if test $ac_mid -le $ac_hi; then
4294                          ac_lo= ac_hi=
4295                          break
4296                        fi
4297                        ac_mid=`expr 2 '*' $ac_mid`
4298 fi
4299 rm -f conftest.$ac_objext conftest.$ac_ext
4300   done
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 ac_lo= ac_hi=
4305 fi
4306 rm -f conftest.$ac_objext conftest.$ac_ext
4307 fi
4308 rm -f conftest.$ac_objext conftest.$ac_ext
4309 # Binary search between lo and hi bounds.
4310 while test "x$ac_lo" != "x$ac_hi"; do
4311   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4312   cat >conftest.$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4314 #include "confdefs.h"
4315 $ac_includes_default
4316 int
4317 main ()
4318 {
4319 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4320 test_array [0] = 0
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } &&
4332          { ac_try='test -s conftest.$ac_objext'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   ac_hi=$ac_mid
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 ac_lo=`expr '(' $ac_mid ')' + 1`
4343 fi
4344 rm -f conftest.$ac_objext conftest.$ac_ext
4345 done
4346 case $ac_lo in
4347 ?*) ac_cv_sizeof_char=$ac_lo;;
4348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4349 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4350    { (exit 1); exit 1; }; } ;;
4351 esac
4352 else
4353   if test "$cross_compiling" = yes; then
4354   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4355 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4356    { (exit 1); exit 1; }; }
4357 else
4358   cat >conftest.$ac_ext <<_ACEOF
4359 #line $LINENO "configure"
4360 #include "confdefs.h"
4361 $ac_includes_default
4362 long longval () { return (long) (sizeof (char)); }
4363 unsigned long ulongval () { return (long) (sizeof (char)); }
4364 #include <stdio.h>
4365 #include <stdlib.h>
4366 int
4367 main ()
4368 {
4369
4370   FILE *f = fopen ("conftest.val", "w");
4371   if (! f)
4372     exit (1);
4373   if (((long) (sizeof (char))) < 0)
4374     {
4375       long i = longval ();
4376       if (i != ((long) (sizeof (char))))
4377         exit (1);
4378       fprintf (f, "%ld\n", i);
4379     }
4380   else
4381     {
4382       unsigned long i = ulongval ();
4383       if (i != ((long) (sizeof (char))))
4384         exit (1);
4385       fprintf (f, "%lu\n", i);
4386     }
4387   exit (ferror (f) || fclose (f) != 0);
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395   (eval $ac_link) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_cv_sizeof_char=`cat conftest.val`
4405 else
4406   echo "$as_me: program exited with status $ac_status" >&5
4407 echo "$as_me: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 ( exit $ac_status )
4410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4411 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4412    { (exit 1); exit 1; }; }
4413 fi
4414 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 fi
4417 rm -f conftest.val
4418 else
4419   ac_cv_sizeof_char=0
4420 fi
4421 fi
4422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4423 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4424 cat >>confdefs.h <<_ACEOF
4425 #define SIZEOF_CHAR $ac_cv_sizeof_char
4426 _ACEOF
4427
4428
4429 echo "$as_me:$LINENO: checking for short" >&5
4430 echo $ECHO_N "checking for short... $ECHO_C" >&6
4431 if test "${ac_cv_type_short+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   cat >conftest.$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4436 #include "confdefs.h"
4437 $ac_includes_default
4438 int
4439 main ()
4440 {
4441 if ((short *) 0)
4442   return 0;
4443 if (sizeof (short))
4444   return 0;
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -s conftest.$ac_objext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   ac_cv_type_short=yes
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 ac_cv_type_short=no
4466 fi
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4470 echo "${ECHO_T}$ac_cv_type_short" >&6
4471
4472 echo "$as_me:$LINENO: checking size of short" >&5
4473 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4474 if test "${ac_cv_sizeof_short+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test "$ac_cv_type_short" = yes; then
4478   # The cast to unsigned long works around a bug in the HP C Compiler
4479   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4480   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4481   # This bug is HP SR number 8606223364.
4482   if test "$cross_compiling" = yes; then
4483   # Depending upon the size, compute the lo and hi bounds.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 #include "confdefs.h"
4487 $ac_includes_default
4488 int
4489 main ()
4490 {
4491 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4492 test_array [0] = 0
4493
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500   (eval $ac_compile) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } &&
4504          { ac_try='test -s conftest.$ac_objext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   ac_lo=0 ac_mid=0
4511   while :; do
4512     cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 #include "confdefs.h"
4515 $ac_includes_default
4516 int
4517 main ()
4518 {
4519 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4520 test_array [0] = 0
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528   (eval $ac_compile) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } &&
4532          { ac_try='test -s conftest.$ac_objext'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; }; then
4538   ac_hi=$ac_mid; break
4539 else
4540   echo "$as_me: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4542 ac_lo=`expr $ac_mid + 1`
4543                     if test $ac_lo -le $ac_mid; then
4544                       ac_lo= ac_hi=
4545                       break
4546                     fi
4547                     ac_mid=`expr 2 '*' $ac_mid + 1`
4548 fi
4549 rm -f conftest.$ac_objext conftest.$ac_ext
4550   done
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4562 test_array [0] = 0
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_hi=-1 ac_mid=-1
4581   while :; do
4582     cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 #include "confdefs.h"
4585 $ac_includes_default
4586 int
4587 main ()
4588 {
4589 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4590 test_array [0] = 0
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } &&
4602          { ac_try='test -s conftest.$ac_objext'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; }; then
4608   ac_lo=$ac_mid; break
4609 else
4610   echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 ac_hi=`expr '(' $ac_mid ')' - 1`
4613                        if test $ac_mid -le $ac_hi; then
4614                          ac_lo= ac_hi=
4615                          break
4616                        fi
4617                        ac_mid=`expr 2 '*' $ac_mid`
4618 fi
4619 rm -f conftest.$ac_objext conftest.$ac_ext
4620   done
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 ac_lo= ac_hi=
4625 fi
4626 rm -f conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 rm -f conftest.$ac_objext conftest.$ac_ext
4629 # Binary search between lo and hi bounds.
4630 while test "x$ac_lo" != "x$ac_hi"; do
4631   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4632   cat >conftest.$ac_ext <<_ACEOF
4633 #line $LINENO "configure"
4634 #include "confdefs.h"
4635 $ac_includes_default
4636 int
4637 main ()
4638 {
4639 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4640 test_array [0] = 0
4641
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648   (eval $ac_compile) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -s conftest.$ac_objext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   ac_hi=$ac_mid
4659 else
4660   echo "$as_me: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 ac_lo=`expr '(' $ac_mid ')' + 1`
4663 fi
4664 rm -f conftest.$ac_objext conftest.$ac_ext
4665 done
4666 case $ac_lo in
4667 ?*) ac_cv_sizeof_short=$ac_lo;;
4668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4669 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4670    { (exit 1); exit 1; }; } ;;
4671 esac
4672 else
4673   if test "$cross_compiling" = yes; then
4674   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4675 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4676    { (exit 1); exit 1; }; }
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 #include "confdefs.h"
4681 $ac_includes_default
4682 long longval () { return (long) (sizeof (short)); }
4683 unsigned long ulongval () { return (long) (sizeof (short)); }
4684 #include <stdio.h>
4685 #include <stdlib.h>
4686 int
4687 main ()
4688 {
4689
4690   FILE *f = fopen ("conftest.val", "w");
4691   if (! f)
4692     exit (1);
4693   if (((long) (sizeof (short))) < 0)
4694     {
4695       long i = longval ();
4696       if (i != ((long) (sizeof (short))))
4697         exit (1);
4698       fprintf (f, "%ld\n", i);
4699     }
4700   else
4701     {
4702       unsigned long i = ulongval ();
4703       if (i != ((long) (sizeof (short))))
4704         exit (1);
4705       fprintf (f, "%lu\n", i);
4706     }
4707   exit (ferror (f) || fclose (f) != 0);
4708
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 rm -f conftest$ac_exeext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715   (eval $ac_link) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720   (eval $ac_try) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; }; then
4724   ac_cv_sizeof_short=`cat conftest.val`
4725 else
4726   echo "$as_me: program exited with status $ac_status" >&5
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 ( exit $ac_status )
4730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4731 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4732    { (exit 1); exit 1; }; }
4733 fi
4734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 fi
4737 rm -f conftest.val
4738 else
4739   ac_cv_sizeof_short=0
4740 fi
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4743 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4744 cat >>confdefs.h <<_ACEOF
4745 #define SIZEOF_SHORT $ac_cv_sizeof_short
4746 _ACEOF
4747
4748
4749 echo "$as_me:$LINENO: checking for int" >&5
4750 echo $ECHO_N "checking for int... $ECHO_C" >&6
4751 if test "${ac_cv_type_int+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   cat >conftest.$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 #include "confdefs.h"
4757 $ac_includes_default
4758 int
4759 main ()
4760 {
4761 if ((int *) 0)
4762   return 0;
4763 if (sizeof (int))
4764   return 0;
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -s conftest.$ac_objext'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   ac_cv_type_int=yes
4782 else
4783   echo "$as_me: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 ac_cv_type_int=no
4786 fi
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4790 echo "${ECHO_T}$ac_cv_type_int" >&6
4791
4792 echo "$as_me:$LINENO: checking size of int" >&5
4793 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4794 if test "${ac_cv_sizeof_int+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   if test "$ac_cv_type_int" = yes; then
4798   # The cast to unsigned long works around a bug in the HP C Compiler
4799   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4800   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4801   # This bug is HP SR number 8606223364.
4802   if test "$cross_compiling" = yes; then
4803   # Depending upon the size, compute the lo and hi bounds.
4804 cat >conftest.$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4807 $ac_includes_default
4808 int
4809 main ()
4810 {
4811 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4812 test_array [0] = 0
4813
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820   (eval $ac_compile) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } &&
4824          { ac_try='test -s conftest.$ac_objext'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; }; then
4830   ac_lo=0 ac_mid=0
4831   while :; do
4832     cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 #include "confdefs.h"
4835 $ac_includes_default
4836 int
4837 main ()
4838 {
4839 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4840 test_array [0] = 0
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848   (eval $ac_compile) 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } &&
4852          { ac_try='test -s conftest.$ac_objext'
4853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854   (eval $ac_try) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); }; }; then
4858   ac_hi=$ac_mid; break
4859 else
4860   echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ac_lo=`expr $ac_mid + 1`
4863                     if test $ac_lo -le $ac_mid; then
4864                       ac_lo= ac_hi=
4865                       break
4866                     fi
4867                     ac_mid=`expr 2 '*' $ac_mid + 1`
4868 fi
4869 rm -f conftest.$ac_objext conftest.$ac_ext
4870   done
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line $LINENO "configure"
4876 #include "confdefs.h"
4877 $ac_includes_default
4878 int
4879 main ()
4880 {
4881 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4882 test_array [0] = 0
4883
4884   ;
4885   return 0;
4886 }
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890   (eval $ac_compile) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } &&
4894          { ac_try='test -s conftest.$ac_objext'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; }; then
4900   ac_hi=-1 ac_mid=-1
4901   while :; do
4902     cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 #include "confdefs.h"
4905 $ac_includes_default
4906 int
4907 main ()
4908 {
4909 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4910 test_array [0] = 0
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_lo=$ac_mid; break
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4932 ac_hi=`expr '(' $ac_mid ')' - 1`
4933                        if test $ac_mid -le $ac_hi; then
4934                          ac_lo= ac_hi=
4935                          break
4936                        fi
4937                        ac_mid=`expr 2 '*' $ac_mid`
4938 fi
4939 rm -f conftest.$ac_objext conftest.$ac_ext
4940   done
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 ac_lo= ac_hi=
4945 fi
4946 rm -f conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4949 # Binary search between lo and hi bounds.
4950 while test "x$ac_lo" != "x$ac_hi"; do
4951   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4952   cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 #include "confdefs.h"
4955 $ac_includes_default
4956 int
4957 main ()
4958 {
4959 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4960 test_array [0] = 0
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968   (eval $ac_compile) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } &&
4972          { ac_try='test -s conftest.$ac_objext'
4973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974   (eval $ac_try) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); }; }; then
4978   ac_hi=$ac_mid
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4982 ac_lo=`expr '(' $ac_mid ')' + 1`
4983 fi
4984 rm -f conftest.$ac_objext conftest.$ac_ext
4985 done
4986 case $ac_lo in
4987 ?*) ac_cv_sizeof_int=$ac_lo;;
4988 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4989 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4990    { (exit 1); exit 1; }; } ;;
4991 esac
4992 else
4993   if test "$cross_compiling" = yes; then
4994   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4995 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4996    { (exit 1); exit 1; }; }
4997 else
4998   cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 #include "confdefs.h"
5001 $ac_includes_default
5002 long longval () { return (long) (sizeof (int)); }
5003 unsigned long ulongval () { return (long) (sizeof (int)); }
5004 #include <stdio.h>
5005 #include <stdlib.h>
5006 int
5007 main ()
5008 {
5009
5010   FILE *f = fopen ("conftest.val", "w");
5011   if (! f)
5012     exit (1);
5013   if (((long) (sizeof (int))) < 0)
5014     {
5015       long i = longval ();
5016       if (i != ((long) (sizeof (int))))
5017         exit (1);
5018       fprintf (f, "%ld\n", i);
5019     }
5020   else
5021     {
5022       unsigned long i = ulongval ();
5023       if (i != ((long) (sizeof (int))))
5024         exit (1);
5025       fprintf (f, "%lu\n", i);
5026     }
5027   exit (ferror (f) || fclose (f) != 0);
5028
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035   (eval $ac_link) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   ac_cv_sizeof_int=`cat conftest.val`
5045 else
5046   echo "$as_me: program exited with status $ac_status" >&5
5047 echo "$as_me: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 ( exit $ac_status )
5050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5051 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5052    { (exit 1); exit 1; }; }
5053 fi
5054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 fi
5057 rm -f conftest.val
5058 else
5059   ac_cv_sizeof_int=0
5060 fi
5061 fi
5062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5063 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5064 cat >>confdefs.h <<_ACEOF
5065 #define SIZEOF_INT $ac_cv_sizeof_int
5066 _ACEOF
5067
5068
5069 echo "$as_me:$LINENO: checking for long" >&5
5070 echo $ECHO_N "checking for long... $ECHO_C" >&6
5071 if test "${ac_cv_type_long+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077 $ac_includes_default
5078 int
5079 main ()
5080 {
5081 if ((long *) 0)
5082   return 0;
5083 if (sizeof (long))
5084   return 0;
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091   (eval $ac_compile) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -s conftest.$ac_objext'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; }; then
5101   ac_cv_type_long=yes
5102 else
5103   echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 ac_cv_type_long=no
5106 fi
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5110 echo "${ECHO_T}$ac_cv_type_long" >&6
5111
5112 echo "$as_me:$LINENO: checking size of long" >&5
5113 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5114 if test "${ac_cv_sizeof_long+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   if test "$ac_cv_type_long" = yes; then
5118   # The cast to unsigned long works around a bug in the HP C Compiler
5119   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5120   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5121   # This bug is HP SR number 8606223364.
5122   if test "$cross_compiling" = yes; then
5123   # Depending upon the size, compute the lo and hi bounds.
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5127 $ac_includes_default
5128 int
5129 main ()
5130 {
5131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5132 test_array [0] = 0
5133
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140   (eval $ac_compile) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -s conftest.$ac_objext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   ac_lo=0 ac_mid=0
5151   while :; do
5152     cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5154 #include "confdefs.h"
5155 $ac_includes_default
5156 int
5157 main ()
5158 {
5159 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5160 test_array [0] = 0
5161
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168   (eval $ac_compile) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } &&
5172          { ac_try='test -s conftest.$ac_objext'
5173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174   (eval $ac_try) 2>&5
5175   ac_status=$?
5176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177   (exit $ac_status); }; }; then
5178   ac_hi=$ac_mid; break
5179 else
5180   echo "$as_me: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 ac_lo=`expr $ac_mid + 1`
5183                     if test $ac_lo -le $ac_mid; then
5184                       ac_lo= ac_hi=
5185                       break
5186                     fi
5187                     ac_mid=`expr 2 '*' $ac_mid + 1`
5188 fi
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190   done
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197 $ac_includes_default
5198 int
5199 main ()
5200 {
5201 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5202 test_array [0] = 0
5203
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210   (eval $ac_compile) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_hi=-1 ac_mid=-1
5221   while :; do
5222     cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 #include "confdefs.h"
5225 $ac_includes_default
5226 int
5227 main ()
5228 {
5229 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5230 test_array [0] = 0
5231
5232   ;
5233   return 0;
5234 }
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238   (eval $ac_compile) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -s conftest.$ac_objext'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248   ac_lo=$ac_mid; break
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5252 ac_hi=`expr '(' $ac_mid ')' - 1`
5253                        if test $ac_mid -le $ac_hi; then
5254                          ac_lo= ac_hi=
5255                          break
5256                        fi
5257                        ac_mid=`expr 2 '*' $ac_mid`
5258 fi
5259 rm -f conftest.$ac_objext conftest.$ac_ext
5260   done
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 ac_lo= ac_hi=
5265 fi
5266 rm -f conftest.$ac_objext conftest.$ac_ext
5267 fi
5268 rm -f conftest.$ac_objext conftest.$ac_ext
5269 # Binary search between lo and hi bounds.
5270 while test "x$ac_lo" != "x$ac_hi"; do
5271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5272   cat >conftest.$ac_ext <<_ACEOF
5273 #line $LINENO "configure"
5274 #include "confdefs.h"
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5280 test_array [0] = 0
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -s conftest.$ac_objext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_hi=$ac_mid
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_lo=`expr '(' $ac_mid ')' + 1`
5303 fi
5304 rm -f conftest.$ac_objext conftest.$ac_ext
5305 done
5306 case $ac_lo in
5307 ?*) ac_cv_sizeof_long=$ac_lo;;
5308 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5310    { (exit 1); exit 1; }; } ;;
5311 esac
5312 else
5313   if test "$cross_compiling" = yes; then
5314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5315 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5316    { (exit 1); exit 1; }; }
5317 else
5318   cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 #include "confdefs.h"
5321 $ac_includes_default
5322 long longval () { return (long) (sizeof (long)); }
5323 unsigned long ulongval () { return (long) (sizeof (long)); }
5324 #include <stdio.h>
5325 #include <stdlib.h>
5326 int
5327 main ()
5328 {
5329
5330   FILE *f = fopen ("conftest.val", "w");
5331   if (! f)
5332     exit (1);
5333   if (((long) (sizeof (long))) < 0)
5334     {
5335       long i = longval ();
5336       if (i != ((long) (sizeof (long))))
5337         exit (1);
5338       fprintf (f, "%ld\n", i);
5339     }
5340   else
5341     {
5342       unsigned long i = ulongval ();
5343       if (i != ((long) (sizeof (long))))
5344         exit (1);
5345       fprintf (f, "%lu\n", i);
5346     }
5347   exit (ferror (f) || fclose (f) != 0);
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 rm -f conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355   (eval $ac_link) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_cv_sizeof_long=`cat conftest.val`
5365 else
5366   echo "$as_me: program exited with status $ac_status" >&5
5367 echo "$as_me: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 ( exit $ac_status )
5370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5371 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5372    { (exit 1); exit 1; }; }
5373 fi
5374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5375 fi
5376 fi
5377 rm -f conftest.val
5378 else
5379   ac_cv_sizeof_long=0
5380 fi
5381 fi
5382 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5383 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5384 cat >>confdefs.h <<_ACEOF
5385 #define SIZEOF_LONG $ac_cv_sizeof_long
5386 _ACEOF
5387
5388
5389
5390 type_name()
5391 {
5392     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5393         echo "char"
5394         exit
5395     fi
5396     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5397         echo "short"
5398         exit
5399     fi
5400     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5401         echo "int"
5402         exit
5403     fi
5404     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5405         echo "long"
5406         exit
5407     fi
5408     echo "long"
5409 }
5410
5411 echo "$as_me:$LINENO: checking type name for byte" >&5
5412 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5413 TYPE_BYTE=`type_name 1`
5414 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5415 echo "${ECHO_T}$TYPE_BYTE" >&6
5416 echo "$as_me:$LINENO: checking type name for word" >&5
5417 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5418 TYPE_WORD=`type_name 2`
5419 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5420 echo "${ECHO_T}$TYPE_WORD" >&6
5421 echo "$as_me:$LINENO: checking type name for dword" >&5
5422 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5423 TYPE_DWORD=`type_name 4`
5424 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5425 echo "${ECHO_T}$TYPE_DWORD" >&6
5426 cat >>confdefs.h <<_ACEOF
5427 #define TYPE_BYTE $TYPE_BYTE
5428 _ACEOF
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define TYPE_WORD $TYPE_WORD
5432 _ACEOF
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define TYPE_DWORD $TYPE_DWORD
5436 _ACEOF
5437
5438
5439 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5440 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5441 if test "${ac_cv_c_bigendian+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   # See if sys/param.h defines the BYTE_ORDER macro.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 #include "confdefs.h"
5448 #include <sys/types.h>
5449 #include <sys/param.h>
5450
5451 int
5452 main ()
5453 {
5454 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5455  bogus endian macros
5456 #endif
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464   (eval $ac_compile) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } &&
5468          { ac_try='test -s conftest.$ac_objext'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   # It does; now see whether it defined to BIG_ENDIAN or not.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 #include "confdefs.h"
5478 #include <sys/types.h>
5479 #include <sys/param.h>
5480
5481 int
5482 main ()
5483 {
5484 #if BYTE_ORDER != BIG_ENDIAN
5485  not big endian
5486 #endif
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494   (eval $ac_compile) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } &&
5498          { ac_try='test -s conftest.$ac_objext'
5499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   ac_cv_c_bigendian=yes
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 ac_cv_c_bigendian=no
5509 fi
5510 rm -f conftest.$ac_objext conftest.$ac_ext
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 # It does not; compile a test program.
5515 if test "$cross_compiling" = yes; then
5516   # try to guess the endianness by grepping values into an object file
5517   ac_cv_c_bigendian=unknown
5518   cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5522 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5523 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5524 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5525 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5526 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5527 int
5528 main ()
5529 {
5530  _ascii (); _ebcdic ();
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537   (eval $ac_compile) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -s conftest.$ac_objext'
5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543   (eval $ac_try) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; }; then
5547   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5548   ac_cv_c_bigendian=yes
5549 fi
5550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5551   if test "$ac_cv_c_bigendian" = unknown; then
5552     ac_cv_c_bigendian=no
5553   else
5554     # finding both strings is unlikely to happen, but who knows?
5555     ac_cv_c_bigendian=unknown
5556   fi
5557 fi
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 fi
5562 rm -f conftest.$ac_objext conftest.$ac_ext
5563 else
5564   cat >conftest.$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5566 #include "confdefs.h"
5567 int
5568 main ()
5569 {
5570   /* Are we little or big endian?  From Harbison&Steele.  */
5571   union
5572   {
5573     long l;
5574     char c[sizeof (long)];
5575   } u;
5576   u.l = 1;
5577   exit (u.c[sizeof (long) - 1] == 1);
5578 }
5579 _ACEOF
5580 rm -f conftest$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582   (eval $ac_link) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587   (eval $ac_try) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; }; then
5591   ac_cv_c_bigendian=no
5592 else
5593   echo "$as_me: program exited with status $ac_status" >&5
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5596 ( exit $ac_status )
5597 ac_cv_c_bigendian=yes
5598 fi
5599 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 fi
5602 rm -f conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5605 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5606 case $ac_cv_c_bigendian in
5607   yes)
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define WORDS_BIGENDIAN 1
5611 _ACEOF
5612  ;;
5613   no)
5614      ;;
5615   *)
5616     { { echo "$as_me:$LINENO: error: unknown endianness
5617 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5618 echo "$as_me: error: unknown endianness
5619 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621 esac
5622
5623
5624 # Set standard installation paths
5625 # ===========================================================================
5626 case $host in
5627     *mingw32*)
5628         MINGW32_HOST="yes"
5629         ;;
5630     *)
5631         MINGW32_HOST="no"
5632         ;;
5633 esac
5634
5635 echo "$as_me:$LINENO: checking host mingw32" >&5
5636 echo $ECHO_N "checking host mingw32... $ECHO_C" >&6
5637 echo "$as_me:$LINENO: result: $MINGW32_HOST" >&5
5638 echo "${ECHO_T}$MINGW32_HOST" >&6
5639
5640 # prefix: *nix default is "NONE"
5641 # prefix: mingw32 default is "/sdcc"
5642 if test "$prefix" = NONE; then
5643     if test "$MINGW32_HOST" = "no"; then
5644         prefix="/usr/local"
5645     else
5646         prefix="/sdcc"
5647     fi
5648 fi
5649
5650 # datadir: *nix default is "${prefix}/share"
5651 if test "$datadir" = "\${prefix}/share"; then
5652     if test "$MINGW32_HOST" = "no"; then
5653         datadir="\${prefix}/share/sdcc"
5654     fi
5655 # mingw32 default is "/sdcc"
5656 elif test "$datadir" = "/sdcc"; then
5657     if test "$MINGW32_HOST" = "yes"; then
5658         datadir="\${prefix}"
5659     fi
5660 fi
5661
5662 # standard libs
5663 cat >>confdefs.h <<_ACEOF
5664 #define STD_LIB "libsdcc"
5665 _ACEOF
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define STD_INT_LIB "libint"
5669 _ACEOF
5670
5671 cat >>confdefs.h <<_ACEOF
5672 #define STD_LONG_LIB "liblong"
5673 _ACEOF
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define STD_FP_LIB "libfloat"
5677 _ACEOF
5678
5679 cat >>confdefs.h <<_ACEOF
5680 #define STD_DS390_LIB "libds390"
5681 _ACEOF
5682
5683 cat >>confdefs.h <<_ACEOF
5684 #define STD_xa51_LIB "xa51"
5685 _ACEOF
5686
5687
5688
5689   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5690   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5691   ac_define_dir=`eval echo $"${prefix}"`
5692   ac_define_dir=`eval echo $ac_define_dir`
5693   cat >>confdefs.h <<_ACEOF
5694 #define PREFIX "$ac_define_dir"
5695 _ACEOF
5696
5697
5698
5699   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5700   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5701   ac_define_dir=`eval echo $"$datadir"`
5702   ac_define_dir=`eval echo $ac_define_dir`
5703   cat >>confdefs.h <<_ACEOF
5704 #define DATADIR "$ac_define_dir"
5705 _ACEOF
5706
5707
5708
5709
5710 # search paths
5711 bin_dir_suffix="bin"
5712
5713   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5714   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5715   ac_define_dir=`eval echo $"${bin_dir_suffix}"`
5716   ac_define_dir=`eval echo $ac_define_dir`
5717   cat >>confdefs.h <<_ACEOF
5718 #define BIN_DIR_SUFFIX "$ac_define_dir"
5719 _ACEOF
5720
5721
5722
5723     if test "$MINGW32_HOST" = "no"; then
5724         search_suffix="share/sdcc"
5725     else
5726         search_suffix=""
5727     fi
5728
5729   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5730   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5731   ac_define_dir=`eval echo $"${search_suffix}"`
5732   ac_define_dir=`eval echo $ac_define_dir`
5733   cat >>confdefs.h <<_ACEOF
5734 #define SEARCH_SUFFIX "$ac_define_dir"
5735 _ACEOF
5736
5737
5738
5739 include_dir_suffix="include"
5740
5741   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5742   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5743   ac_define_dir=`eval echo $"${include_dir_suffix}"`
5744   ac_define_dir=`eval echo $ac_define_dir`
5745   cat >>confdefs.h <<_ACEOF
5746 #define INCLUDE_DIR_SUFFIX "$ac_define_dir"
5747 _ACEOF
5748
5749
5750
5751 lib_dir_suffix="lib"
5752 cat >>confdefs.h <<_ACEOF
5753 #define LIB_DIR_SUFFIX "${lib_dir_suffix}"
5754 _ACEOF
5755
5756
5757 ### <Obsolete>
5758 # sdcc_datadir is still used in [device,lib]/Makefile
5759 sdcc_datadir=${datadir}
5760
5761
5762 # SDCC_[INCLUDE,LIB]_DIR is still used in SDCCmain.c
5763 if test "${includedir}" = "\${prefix}/include"; then
5764     includedir="${datadir}/include"
5765 fi
5766
5767   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5768   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5769   ac_define_dir=`eval echo $"${includedir}"`
5770   ac_define_dir=`eval echo $ac_define_dir`
5771   cat >>confdefs.h <<_ACEOF
5772 #define SDCC_INCLUDE_DIR "$ac_define_dir"
5773 _ACEOF
5774
5775
5776
5777   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5778   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5779   ac_define_dir=`eval echo $"${datadir}/lib"`
5780   ac_define_dir=`eval echo $ac_define_dir`
5781   cat >>confdefs.h <<_ACEOF
5782 #define SDCC_LIB_DIR "$ac_define_dir"
5783 _ACEOF
5784
5785
5786 ### </Obsolete>
5787
5788 # environment variables
5789 sdcc_dir_name="SDCC_HOME"
5790
5791   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5792   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5793   ac_define_dir=`eval echo $"${sdcc_dir_name}"`
5794   ac_define_dir=`eval echo $ac_define_dir`
5795   cat >>confdefs.h <<_ACEOF
5796 #define SDCC_DIR_NAME "$ac_define_dir"
5797 _ACEOF
5798
5799
5800 sdcc_include_name="SDCC_INCLUDE"
5801
5802   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5803   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5804   ac_define_dir=`eval echo $"${sdcc_include_name}"`
5805   ac_define_dir=`eval echo $ac_define_dir`
5806   cat >>confdefs.h <<_ACEOF
5807 #define SDCC_INCLUDE_NAME "$ac_define_dir"
5808 _ACEOF
5809
5810
5811 sdcc_lib_name="SDCC_LIB"
5812
5813   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5814   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5815   ac_define_dir=`eval echo $"${sdcc_lib_name}"`
5816   ac_define_dir=`eval echo $ac_define_dir`
5817   cat >>confdefs.h <<_ACEOF
5818 #define SDCC_LIB_NAME "$ac_define_dir"
5819 _ACEOF
5820
5821
5822
5823 # Now handle the port selection
5824 # ===========================================================================
5825 rm -f ports.all ports.build
5826 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
5827 if test "${enable_mcs51_port+set}" = set; then
5828   enableval="$enable_mcs51_port"
5829
5830 fi;
5831 echo mcs51 >>ports.all
5832 if test "$enable_mcs51_port" = "no"; then
5833     cat >>confdefs.h <<_ACEOF
5834 #define OPT_DISABLE_MCS51 1
5835 _ACEOF
5836
5837 else
5838     echo mcs51 >>ports.build
5839     cat >>confdefs.h <<_ACEOF
5840 #define OPT_DISABLE_MCS51 0
5841 _ACEOF
5842
5843 fi
5844
5845 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
5846 if test "${enable_gbz80_port+set}" = set; then
5847   enableval="$enable_gbz80_port"
5848
5849 fi;
5850 echo z80 >>ports.all
5851 if test "$enable_gbz80_port" = "no"; then
5852     cat >>confdefs.h <<_ACEOF
5853 #define OPT_DISABLE_GBZ80 1
5854 _ACEOF
5855
5856 else
5857     echo z80 >>ports.build
5858     cat >>confdefs.h <<_ACEOF
5859 #define OPT_DISABLE_GBZ80 0
5860 _ACEOF
5861
5862 fi
5863
5864 # Check whether --enable-z80-port or --disable-z80-port was given.
5865 if test "${enable_z80_port+set}" = set; then
5866   enableval="$enable_z80_port"
5867
5868 fi;
5869 echo z80 >>ports.all
5870 if test "$enable_z80_port" = "no"; then
5871     cat >>confdefs.h <<_ACEOF
5872 #define OPT_DISABLE_Z80 1
5873 _ACEOF
5874
5875 else
5876     echo z80 >>ports.build
5877     cat >>confdefs.h <<_ACEOF
5878 #define OPT_DISABLE_Z80 0
5879 _ACEOF
5880
5881 fi
5882
5883 # Check whether --enable-avr-port or --disable-avr-port was given.
5884 if test "${enable_avr_port+set}" = set; then
5885   enableval="$enable_avr_port"
5886
5887 fi;
5888 echo avr >>ports.all
5889 if test "$enable_avr_port" = "no"; then
5890     cat >>confdefs.h <<_ACEOF
5891 #define OPT_DISABLE_AVR 1
5892 _ACEOF
5893
5894 else
5895     echo avr >>ports.build
5896     cat >>confdefs.h <<_ACEOF
5897 #define OPT_DISABLE_AVR 0
5898 _ACEOF
5899
5900 fi
5901
5902 # Check whether --enable-ds390-port or --disable-ds390-port was given.
5903 if test "${enable_ds390_port+set}" = set; then
5904   enableval="$enable_ds390_port"
5905
5906 fi;
5907 echo ds390 >>ports.all
5908 if test "$enable_ds390_port" = "no"; then
5909     cat >>confdefs.h <<_ACEOF
5910 #define OPT_DISABLE_DS390 1
5911 _ACEOF
5912
5913     cat >>confdefs.h <<_ACEOF
5914 #define OPT_DISABLE_TININative 1
5915 _ACEOF
5916
5917 else
5918     echo ds390 >>ports.build
5919     cat >>confdefs.h <<_ACEOF
5920 #define OPT_DISABLE_DS390 0
5921 _ACEOF
5922
5923     cat >>confdefs.h <<_ACEOF
5924 #define OPT_DISABLE_TININative 0
5925 _ACEOF
5926
5927 fi
5928
5929 # Check whether --enable-pic-port or --disable-pic-port was given.
5930 if test "${enable_pic_port+set}" = set; then
5931   enableval="$enable_pic_port"
5932
5933 fi;
5934 echo pic >>ports.all
5935 if test "$enable_pic_port" = "no"; then
5936     cat >>confdefs.h <<_ACEOF
5937 #define OPT_DISABLE_PIC 1
5938 _ACEOF
5939
5940 else
5941     echo pic >>ports.build
5942     cat >>confdefs.h <<_ACEOF
5943 #define OPT_DISABLE_PIC 0
5944 _ACEOF
5945
5946 fi
5947
5948 # Check whether --enable-xa51-port or --disable-xa51-port was given.
5949 if test "${enable_xa51_port+set}" = set; then
5950   enableval="$enable_xa51_port"
5951
5952 fi;
5953 echo xa51 >>ports.all
5954 if test "$enable_xa51_port" = "no"; then
5955     cat >>confdefs.h <<_ACEOF
5956 #define OPT_DISABLE_XA51 1
5957 _ACEOF
5958
5959 else
5960     echo xa51 >>ports.build
5961     cat >>confdefs.h <<_ACEOF
5962 #define OPT_DISABLE_XA51 0
5963 _ACEOF
5964
5965 fi
5966
5967 # Check whether --enable-ucsim or --disable-ucsim was given.
5968 if test "${enable_ucsim+set}" = set; then
5969   enableval="$enable_ucsim"
5970
5971 fi;
5972 OPT_ENABLE_UCSIM=$enable_ucsim
5973
5974
5975 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
5976 if test "${enable_device_lib_build+set}" = set; then
5977   enableval="$enable_device_lib_build"
5978
5979 fi;
5980 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
5981
5982
5983 # Check whether --enable-packihx or --disable-packihx was given.
5984 if test "${enable_packihx+set}" = set; then
5985   enableval="$enable_packihx"
5986
5987 fi;
5988 OPT_ENABLE_PACKIHX=$enable_packihx
5989
5990
5991 # Check whether --enable-libgc or --disable-libgc was given.
5992 if test "${enable_libgc+set}" = set; then
5993   enableval="$enable_libgc"
5994
5995 fi;
5996 if test "$enable_libgc" = "yes"; then
5997
5998 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
5999 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6000 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   ac_check_lib_save_LIBS=$LIBS
6004 LIBS="-lgc  $LIBS"
6005 cat >conftest.$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6007 #include "confdefs.h"
6008
6009 /* Override any gcc2 internal prototype to avoid an error.  */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 /* We use char because int might match the return type of a gcc2
6014    builtin and then its argument prototype would still apply.  */
6015 char GC_malloc ();
6016 int
6017 main ()
6018 {
6019 GC_malloc ();
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026   (eval $ac_link) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } &&
6030          { ac_try='test -s conftest$ac_exeext'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; }; then
6036   ac_cv_lib_gc_GC_malloc=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6040 ac_cv_lib_gc_GC_malloc=no
6041 fi
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6046 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6047 if test $ac_cv_lib_gc_GC_malloc = yes; then
6048   cat >>confdefs.h <<_ACEOF
6049 #define HAVE_LIBGC 1
6050 _ACEOF
6051
6052   LIBS="-lgc $LIBS"
6053
6054 fi
6055
6056         OPT_ENABLE_LIBGC=1
6057 else
6058         OPT_ENABLE_LIBGC=0
6059 fi
6060 cat >>confdefs.h <<_ACEOF
6061 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6062 _ACEOF
6063
6064
6065 #remove duplicates
6066 cat ports.all | uniq >ports
6067 mv ports ports.all
6068 cat ports.build | uniq >ports
6069 mv ports ports.build
6070
6071 # Generating output files
6072 # ===========================================================================
6073
6074
6075 subdirs="$subdirs support/cpp2"
6076
6077
6078
6079 subdirs="$subdirs packihx"
6080
6081
6082
6083 subdirs="$subdirs sim/ucsim"
6084
6085                                                                       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"
6086
6087 cat >confcache <<\_ACEOF
6088 # This file is a shell script that caches the results of configure
6089 # tests run on this system so they can be shared between configure
6090 # scripts and configure runs, see configure's option --config-cache.
6091 # It is not useful on other systems.  If it contains results you don't
6092 # want to keep, you may remove or edit it.
6093 #
6094 # config.status only pays attention to the cache file if you give it
6095 # the --recheck option to rerun configure.
6096 #
6097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6099 # following values.
6100
6101 _ACEOF
6102
6103 # The following way of writing the cache mishandles newlines in values,
6104 # but we know of no workaround that is simple, portable, and efficient.
6105 # So, don't put newlines in cache variables' values.
6106 # Ultrix sh set writes to stderr and can't be redirected directly,
6107 # and sets the high bit in the cache file unless we assign to the vars.
6108 {
6109   (set) 2>&1 |
6110     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6111     *ac_space=\ *)
6112       # `set' does not quote correctly, so add quotes (double-quote
6113       # substitution turns \\\\ into \\, and sed turns \\ into \).
6114       sed -n \
6115         "s/'/'\\\\''/g;
6116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6117       ;;
6118     *)
6119       # `set' quotes correctly as required by POSIX, so do not add quotes.
6120       sed -n \
6121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6122       ;;
6123     esac;
6124 } |
6125   sed '
6126      t clear
6127      : clear
6128      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6129      t end
6130      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6131      : end' >>confcache
6132 if cmp -s $cache_file confcache; then :; else
6133   if test -w $cache_file; then
6134     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6135     cat confcache >$cache_file
6136   else
6137     echo "not updating unwritable cache $cache_file"
6138   fi
6139 fi
6140 rm -f confcache
6141
6142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6143 # Let make expand exec_prefix.
6144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6145
6146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6148 # trailing colons and then remove the whole line if VPATH becomes empty
6149 # (actually we leave an empty line to preserve line numbers).
6150 if test "x$srcdir" = x.; then
6151   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6152 s/:*\$(srcdir):*/:/;
6153 s/:*\${srcdir}:*/:/;
6154 s/:*@srcdir@:*/:/;
6155 s/^\([^=]*=[    ]*\):*/\1/;
6156 s/:*$//;
6157 s/^[^=]*=[      ]*$//;
6158 }'
6159 fi
6160
6161 DEFS=-DHAVE_CONFIG_H
6162
6163 ac_libobjs=
6164 ac_ltlibobjs=
6165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6166   # 1. Remove the extension, and $U if already installed.
6167   ac_i=`echo "$ac_i" |
6168          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6169   # 2. Add them.
6170   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6171   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6172 done
6173 LIBOBJS=$ac_libobjs
6174
6175 LTLIBOBJS=$ac_ltlibobjs
6176
6177
6178
6179 : ${CONFIG_STATUS=./config.status}
6180 ac_clean_files_save=$ac_clean_files
6181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6182 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6183 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6184 cat >$CONFIG_STATUS <<_ACEOF
6185 #! $SHELL
6186 # Generated by $as_me.
6187 # Run this file to recreate the current configuration.
6188 # Compiler output produced by configure, useful for debugging
6189 # configure, is in config.log if it exists.
6190
6191 debug=false
6192 SHELL=\${CONFIG_SHELL-$SHELL}
6193 _ACEOF
6194
6195 cat >>$CONFIG_STATUS <<\_ACEOF
6196 ## --------------------- ##
6197 ## M4sh Initialization.  ##
6198 ## --------------------- ##
6199
6200 # Be Bourne compatible
6201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6202   emulate sh
6203   NULLCMD=:
6204   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6205   # is contrary to our usage.  Disable this feature.
6206   alias -g '${1+"$@"}'='"$@"'
6207 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6208   set -o posix
6209 fi
6210
6211 # Support unset when possible.
6212 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6213   as_unset=unset
6214 else
6215   as_unset=false
6216 fi
6217
6218
6219 # Work around bugs in pre-3.0 UWIN ksh.
6220 $as_unset ENV MAIL MAILPATH
6221 PS1='$ '
6222 PS2='> '
6223 PS4='+ '
6224
6225 # NLS nuisances.
6226 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6227 do
6228   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6229     eval $as_var=C; export $as_var
6230   else
6231     $as_unset $as_var
6232   fi
6233 done
6234
6235 # Required to use basename.
6236 if expr a : '\(a\)' >/dev/null 2>&1; then
6237   as_expr=expr
6238 else
6239   as_expr=false
6240 fi
6241
6242 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6243   as_basename=basename
6244 else
6245   as_basename=false
6246 fi
6247
6248
6249 # Name of the executable.
6250 as_me=`$as_basename "$0" ||
6251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6252          X"$0" : 'X\(//\)$' \| \
6253          X"$0" : 'X\(/\)$' \| \
6254          .     : '\(.\)' 2>/dev/null ||
6255 echo X/"$0" |
6256     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6257           /^X\/\(\/\/\)$/{ s//\1/; q; }
6258           /^X\/\(\/\).*/{ s//\1/; q; }
6259           s/.*/./; q'`
6260
6261
6262 # PATH needs CR, and LINENO needs CR and PATH.
6263 # Avoid depending upon Character Ranges.
6264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6267 as_cr_digits='0123456789'
6268 as_cr_alnum=$as_cr_Letters$as_cr_digits
6269
6270 # The user is always right.
6271 if test "${PATH_SEPARATOR+set}" != set; then
6272   echo "#! /bin/sh" >conftest.sh
6273   echo  "exit 0"   >>conftest.sh
6274   chmod +x conftest.sh
6275   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6276     PATH_SEPARATOR=';'
6277   else
6278     PATH_SEPARATOR=:
6279   fi
6280   rm -f conftest.sh
6281 fi
6282
6283
6284   as_lineno_1=$LINENO
6285   as_lineno_2=$LINENO
6286   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6287   test "x$as_lineno_1" != "x$as_lineno_2" &&
6288   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6289   # Find who we are.  Look in the path if we contain no path at all
6290   # relative or not.
6291   case $0 in
6292     *[\\/]* ) as_myself=$0 ;;
6293     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6299 done
6300
6301        ;;
6302   esac
6303   # We did not find ourselves, most probably we were run as `sh COMMAND'
6304   # in which case we are not to be found in the path.
6305   if test "x$as_myself" = x; then
6306     as_myself=$0
6307   fi
6308   if test ! -f "$as_myself"; then
6309     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6311    { (exit 1); exit 1; }; }
6312   fi
6313   case $CONFIG_SHELL in
6314   '')
6315     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320   for as_base in sh bash ksh sh5; do
6321          case $as_dir in
6322          /*)
6323            if ("$as_dir/$as_base" -c '
6324   as_lineno_1=$LINENO
6325   as_lineno_2=$LINENO
6326   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6327   test "x$as_lineno_1" != "x$as_lineno_2" &&
6328   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6329              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6330              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6331              CONFIG_SHELL=$as_dir/$as_base
6332              export CONFIG_SHELL
6333              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6334            fi;;
6335          esac
6336        done
6337 done
6338 ;;
6339   esac
6340
6341   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6342   # uniformly replaced by the line number.  The first 'sed' inserts a
6343   # line-number line before each line; the second 'sed' does the real
6344   # work.  The second script uses 'N' to pair each line-number line
6345   # with the numbered line, and appends trailing '-' during
6346   # substitution so that $LINENO is not a special case at line end.
6347   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6348   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6349   sed '=' <$as_myself |
6350     sed '
6351       N
6352       s,$,-,
6353       : loop
6354       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6355       t loop
6356       s,-$,,
6357       s,^['$as_cr_digits']*\n,,
6358     ' >$as_me.lineno &&
6359   chmod +x $as_me.lineno ||
6360     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6361 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6362    { (exit 1); exit 1; }; }
6363
6364   # Don't try to exec as it changes $[0], causing all sort of problems
6365   # (the dirname of $[0] is not the place where we might find the
6366   # original and so on.  Autoconf is especially sensible to this).
6367   . ./$as_me.lineno
6368   # Exit status is that of the last command.
6369   exit
6370 }
6371
6372
6373 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6374   *c*,-n*) ECHO_N= ECHO_C='
6375 ' ECHO_T='      ' ;;
6376   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6377   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6378 esac
6379
6380 if expr a : '\(a\)' >/dev/null 2>&1; then
6381   as_expr=expr
6382 else
6383   as_expr=false
6384 fi
6385
6386 rm -f conf$$ conf$$.exe conf$$.file
6387 echo >conf$$.file
6388 if ln -s conf$$.file conf$$ 2>/dev/null; then
6389   # We could just check for DJGPP; but this test a) works b) is more generic
6390   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6391   if test -f conf$$.exe; then
6392     # Don't use ln at all; we don't have any links
6393     as_ln_s='cp -p'
6394   else
6395     as_ln_s='ln -s'
6396   fi
6397 elif ln conf$$.file conf$$ 2>/dev/null; then
6398   as_ln_s=ln
6399 else
6400   as_ln_s='cp -p'
6401 fi
6402 rm -f conf$$ conf$$.exe conf$$.file
6403
6404 if mkdir -p . 2>/dev/null; then
6405   as_mkdir_p=:
6406 else
6407   as_mkdir_p=false
6408 fi
6409
6410 as_executable_p="test -f"
6411
6412 # Sed expression to map a string onto a valid CPP name.
6413 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6414
6415 # Sed expression to map a string onto a valid variable name.
6416 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6417
6418
6419 # IFS
6420 # We need space, tab and new line, in precisely that order.
6421 as_nl='
6422 '
6423 IFS="   $as_nl"
6424
6425 # CDPATH.
6426 $as_unset CDPATH
6427
6428 exec 6>&1
6429
6430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6431 # report actual input values of CONFIG_FILES etc. instead of their
6432 # values after options handling.  Logging --version etc. is OK.
6433 exec 5>>config.log
6434 {
6435   echo
6436   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6437 ## Running $as_me. ##
6438 _ASBOX
6439 } >&5
6440 cat >&5 <<_CSEOF
6441
6442 This file was extended by $as_me, which was
6443 generated by GNU Autoconf 2.54.  Invocation command line was
6444
6445   CONFIG_FILES    = $CONFIG_FILES
6446   CONFIG_HEADERS  = $CONFIG_HEADERS
6447   CONFIG_LINKS    = $CONFIG_LINKS
6448   CONFIG_COMMANDS = $CONFIG_COMMANDS
6449   $ $0 $@
6450
6451 _CSEOF
6452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6453 echo >&5
6454 _ACEOF
6455
6456 # Files that config.status was made for.
6457 if test -n "$ac_config_files"; then
6458   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6459 fi
6460
6461 if test -n "$ac_config_headers"; then
6462   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6463 fi
6464
6465 if test -n "$ac_config_links"; then
6466   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6467 fi
6468
6469 if test -n "$ac_config_commands"; then
6470   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6471 fi
6472
6473 cat >>$CONFIG_STATUS <<\_ACEOF
6474
6475 ac_cs_usage="\
6476 \`$as_me' instantiates files from templates according to the
6477 current configuration.
6478
6479 Usage: $0 [OPTIONS] [FILE]...
6480
6481   -h, --help       print this help, then exit
6482   -V, --version    print version number, then exit
6483   -d, --debug      don't remove temporary files
6484       --recheck    update $as_me by reconfiguring in the same conditions
6485   --file=FILE[:TEMPLATE]
6486                    instantiate the configuration file FILE
6487   --header=FILE[:TEMPLATE]
6488                    instantiate the configuration header FILE
6489
6490 Configuration files:
6491 $config_files
6492
6493 Configuration headers:
6494 $config_headers
6495
6496 Report bugs to <bug-autoconf@gnu.org>."
6497 _ACEOF
6498
6499 cat >>$CONFIG_STATUS <<_ACEOF
6500 ac_cs_version="\\
6501 config.status
6502 configured by $0, generated by GNU Autoconf 2.54,
6503   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6504
6505 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6506 Free Software Foundation, Inc.
6507 This config.status script is free software; the Free Software Foundation
6508 gives unlimited permission to copy, distribute and modify it."
6509 srcdir=$srcdir
6510 INSTALL="$INSTALL"
6511 _ACEOF
6512
6513 cat >>$CONFIG_STATUS <<\_ACEOF
6514 # If no file are specified by the user, then we need to provide default
6515 # value.  By we need to know if files were specified by the user.
6516 ac_need_defaults=:
6517 while test $# != 0
6518 do
6519   case $1 in
6520   --*=*)
6521     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6522     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6523     ac_shift=:
6524     ;;
6525   -*)
6526     ac_option=$1
6527     ac_optarg=$2
6528     ac_shift=shift
6529     ;;
6530   *) # This is not an option, so the user has probably given explicit
6531      # arguments.
6532      ac_option=$1
6533      ac_need_defaults=false;;
6534   esac
6535
6536   case $ac_option in
6537   # Handling of the options.
6538 _ACEOF
6539 cat >>$CONFIG_STATUS <<_ACEOF
6540   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6541     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6542     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6543 _ACEOF
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6545   --version | --vers* | -V )
6546     echo "$ac_cs_version"; exit 0 ;;
6547   --he | --h)
6548     # Conflict between --help and --header
6549     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6550 Try \`$0 --help' for more information." >&5
6551 echo "$as_me: error: ambiguous option: $1
6552 Try \`$0 --help' for more information." >&2;}
6553    { (exit 1); exit 1; }; };;
6554   --help | --hel | -h )
6555     echo "$ac_cs_usage"; exit 0 ;;
6556   --debug | --d* | -d )
6557     debug=: ;;
6558   --file | --fil | --fi | --f )
6559     $ac_shift
6560     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6561     ac_need_defaults=false;;
6562   --header | --heade | --head | --hea )
6563     $ac_shift
6564     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6565     ac_need_defaults=false;;
6566
6567   # This is an error.
6568   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6569 Try \`$0 --help' for more information." >&5
6570 echo "$as_me: error: unrecognized option: $1
6571 Try \`$0 --help' for more information." >&2;}
6572    { (exit 1); exit 1; }; } ;;
6573
6574   *) ac_config_targets="$ac_config_targets $1" ;;
6575
6576   esac
6577   shift
6578 done
6579
6580 _ACEOF
6581
6582
6583
6584
6585
6586 cat >>$CONFIG_STATUS <<\_ACEOF
6587 for ac_config_target in $ac_config_targets
6588 do
6589   case "$ac_config_target" in
6590   # Handling of arguments.
6591   "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
6592   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6593   "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
6594   "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
6595   "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
6596   "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
6597   "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
6598   "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
6599   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6601    { (exit 1); exit 1; }; };;
6602   esac
6603 done
6604
6605 # If the user did not use the arguments to specify the items to instantiate,
6606 # then the envvar interface is used.  Set only those that are not.
6607 # We use the long form for the default assignment because of an extremely
6608 # bizarre bug on SunOS 4.1.3.
6609 if $ac_need_defaults; then
6610   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6611   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6612 fi
6613
6614 # Create a temporary directory, and hook for its removal unless debugging.
6615 $debug ||
6616 {
6617   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6618   trap '{ (exit 1); exit 1; }' 1 2 13 15
6619 }
6620
6621 # Create a (secure) tmp directory for tmp files.
6622 : ${TMPDIR=/tmp}
6623 {
6624   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6625   test -n "$tmp" && test -d "$tmp"
6626 }  ||
6627 {
6628   tmp=$TMPDIR/cs$$-$RANDOM
6629   (umask 077 && mkdir $tmp)
6630 } ||
6631 {
6632    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6633    { (exit 1); exit 1; }
6634 }
6635
6636 _ACEOF
6637
6638 cat >>$CONFIG_STATUS <<_ACEOF
6639
6640 #
6641 # CONFIG_FILES section.
6642 #
6643
6644 # No need to generate the scripts if there are no CONFIG_FILES.
6645 # This happens for instance when ./config.status config.h
6646 if test -n "\$CONFIG_FILES"; then
6647   # Protect against being on the right side of a sed subst in config.status.
6648   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6649    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6650 s,@SHELL@,$SHELL,;t t
6651 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6652 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6653 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6654 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6655 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6656 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6657 s,@exec_prefix@,$exec_prefix,;t t
6658 s,@prefix@,$prefix,;t t
6659 s,@program_transform_name@,$program_transform_name,;t t
6660 s,@bindir@,$bindir,;t t
6661 s,@sbindir@,$sbindir,;t t
6662 s,@libexecdir@,$libexecdir,;t t
6663 s,@datadir@,$datadir,;t t
6664 s,@sysconfdir@,$sysconfdir,;t t
6665 s,@sharedstatedir@,$sharedstatedir,;t t
6666 s,@localstatedir@,$localstatedir,;t t
6667 s,@libdir@,$libdir,;t t
6668 s,@includedir@,$includedir,;t t
6669 s,@oldincludedir@,$oldincludedir,;t t
6670 s,@infodir@,$infodir,;t t
6671 s,@mandir@,$mandir,;t t
6672 s,@build_alias@,$build_alias,;t t
6673 s,@host_alias@,$host_alias,;t t
6674 s,@target_alias@,$target_alias,;t t
6675 s,@DEFS@,$DEFS,;t t
6676 s,@ECHO_C@,$ECHO_C,;t t
6677 s,@ECHO_N@,$ECHO_N,;t t
6678 s,@ECHO_T@,$ECHO_T,;t t
6679 s,@LIBS@,$LIBS,;t t
6680 s,@AWK@,$AWK,;t t
6681 s,@VERSION@,$VERSION,;t t
6682 s,@VERSIONHI@,$VERSIONHI,;t t
6683 s,@VERSIONLO@,$VERSIONLO,;t t
6684 s,@VERSIONP@,$VERSIONP,;t t
6685 s,@CC@,$CC,;t t
6686 s,@CFLAGS@,$CFLAGS,;t t
6687 s,@LDFLAGS@,$LDFLAGS,;t t
6688 s,@CPPFLAGS@,$CPPFLAGS,;t t
6689 s,@ac_ct_CC@,$ac_ct_CC,;t t
6690 s,@EXEEXT@,$EXEEXT,;t t
6691 s,@OBJEXT@,$OBJEXT,;t t
6692 s,@CXX@,$CXX,;t t
6693 s,@CXXFLAGS@,$CXXFLAGS,;t t
6694 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6695 s,@CPP@,$CPP,;t t
6696 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6697 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6698 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6699 s,@RANLIB@,$RANLIB,;t t
6700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6701 s,@LEX@,$LEX,;t t
6702 s,@LEXLIB@,$LEXLIB,;t t
6703 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6704 s,@YACC@,$YACC,;t t
6705 s,@AUTOCONF@,$AUTOCONF,;t t
6706 s,@STRIP@,$STRIP,;t t
6707 s,@AS@,$AS,;t t
6708 s,@CP@,$CP,;t t
6709 s,@LYX@,$LYX,;t t
6710 s,@LATEX@,$LATEX,;t t
6711 s,@LATEX2HTML@,$LATEX2HTML,;t t
6712 s,@PDFLATEX@,$PDFLATEX,;t t
6713 s,@DVIPDF@,$DVIPDF,;t t
6714 s,@EGREP@,$EGREP,;t t
6715 s,@M_OR_MM@,$M_OR_MM,;t t
6716 s,@sdcc_datadir@,$sdcc_datadir,;t t
6717 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
6718 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
6719 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
6720 s,@subdirs@,$subdirs,;t t
6721 s,@LIBOBJS@,$LIBOBJS,;t t
6722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6723 CEOF
6724
6725 _ACEOF
6726
6727   cat >>$CONFIG_STATUS <<\_ACEOF
6728   # Split the substitutions into bite-sized pieces for seds with
6729   # small command number limits, like on Digital OSF/1 and HP-UX.
6730   ac_max_sed_lines=48
6731   ac_sed_frag=1 # Number of current file.
6732   ac_beg=1 # First line for current file.
6733   ac_end=$ac_max_sed_lines # Line after last line for current file.
6734   ac_more_lines=:
6735   ac_sed_cmds=
6736   while $ac_more_lines; do
6737     if test $ac_beg -gt 1; then
6738       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6739     else
6740       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6741     fi
6742     if test ! -s $tmp/subs.frag; then
6743       ac_more_lines=false
6744     else
6745       # The purpose of the label and of the branching condition is to
6746       # speed up the sed processing (if there are no `@' at all, there
6747       # is no need to browse any of the substitutions).
6748       # These are the two extra sed commands mentioned above.
6749       (echo ':t
6750   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6751       if test -z "$ac_sed_cmds"; then
6752         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6753       else
6754         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6755       fi
6756       ac_sed_frag=`expr $ac_sed_frag + 1`
6757       ac_beg=$ac_end
6758       ac_end=`expr $ac_end + $ac_max_sed_lines`
6759     fi
6760   done
6761   if test -z "$ac_sed_cmds"; then
6762     ac_sed_cmds=cat
6763   fi
6764 fi # test -n "$CONFIG_FILES"
6765
6766 _ACEOF
6767 cat >>$CONFIG_STATUS <<\_ACEOF
6768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6769   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6770   case $ac_file in
6771   - | *:- | *:-:* ) # input from stdin
6772         cat >$tmp/stdin
6773         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6774         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6775   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6776         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6777   * )   ac_file_in=$ac_file.in ;;
6778   esac
6779
6780   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6781   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783          X"$ac_file" : 'X\(//\)[^/]' \| \
6784          X"$ac_file" : 'X\(//\)$' \| \
6785          X"$ac_file" : 'X\(/\)' \| \
6786          .     : '\(.\)' 2>/dev/null ||
6787 echo X"$ac_file" |
6788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6789           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6790           /^X\(\/\/\)$/{ s//\1/; q; }
6791           /^X\(\/\).*/{ s//\1/; q; }
6792           s/.*/./; q'`
6793   { if $as_mkdir_p; then
6794     mkdir -p "$ac_dir"
6795   else
6796     as_dir="$ac_dir"
6797     as_dirs=
6798     while test ! -d "$as_dir"; do
6799       as_dirs="$as_dir $as_dirs"
6800       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6802          X"$as_dir" : 'X\(//\)[^/]' \| \
6803          X"$as_dir" : 'X\(//\)$' \| \
6804          X"$as_dir" : 'X\(/\)' \| \
6805          .     : '\(.\)' 2>/dev/null ||
6806 echo X"$as_dir" |
6807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6809           /^X\(\/\/\)$/{ s//\1/; q; }
6810           /^X\(\/\).*/{ s//\1/; q; }
6811           s/.*/./; q'`
6812     done
6813     test ! -n "$as_dirs" || mkdir $as_dirs
6814   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6816    { (exit 1); exit 1; }; }; }
6817
6818   ac_builddir=.
6819
6820 if test "$ac_dir" != .; then
6821   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6822   # A "../" for each directory in $ac_dir_suffix.
6823   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6824 else
6825   ac_dir_suffix= ac_top_builddir=
6826 fi
6827
6828 case $srcdir in
6829   .)  # No --srcdir option.  We are building in place.
6830     ac_srcdir=.
6831     if test -z "$ac_top_builddir"; then
6832        ac_top_srcdir=.
6833     else
6834        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6835     fi ;;
6836   [\\/]* | ?:[\\/]* )  # Absolute path.
6837     ac_srcdir=$srcdir$ac_dir_suffix;
6838     ac_top_srcdir=$srcdir ;;
6839   *) # Relative path.
6840     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6841     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6842 esac
6843 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6844 # absolute.
6845 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6846 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6847 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6848 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6849
6850
6851   case $INSTALL in
6852   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6853   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6854   esac
6855
6856   if test x"$ac_file" != x-; then
6857     { echo "$as_me:$LINENO: creating $ac_file" >&5
6858 echo "$as_me: creating $ac_file" >&6;}
6859     rm -f "$ac_file"
6860   fi
6861   # Let's still pretend it is `configure' which instantiates (i.e., don't
6862   # use $as_me), people would be surprised to read:
6863   #    /* config.h.  Generated by config.status.  */
6864   if test x"$ac_file" = x-; then
6865     configure_input=
6866   else
6867     configure_input="$ac_file.  "
6868   fi
6869   configure_input=$configure_input"Generated from `echo $ac_file_in |
6870                                      sed 's,.*/,,'` by configure."
6871
6872   # First look for the input files in the build tree, otherwise in the
6873   # src tree.
6874   ac_file_inputs=`IFS=:
6875     for f in $ac_file_in; do
6876       case $f in
6877       -) echo $tmp/stdin ;;
6878       [\\/$]*)
6879          # Absolute (can't be DOS-style, as IFS=:)
6880          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6881 echo "$as_me: error: cannot find input file: $f" >&2;}
6882    { (exit 1); exit 1; }; }
6883          echo $f;;
6884       *) # Relative
6885          if test -f "$f"; then
6886            # Build tree
6887            echo $f
6888          elif test -f "$srcdir/$f"; then
6889            # Source tree
6890            echo $srcdir/$f
6891          else
6892            # /dev/null tree
6893            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6894 echo "$as_me: error: cannot find input file: $f" >&2;}
6895    { (exit 1); exit 1; }; }
6896          fi;;
6897       esac
6898     done` || { (exit 1); exit 1; }
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<_ACEOF
6901   sed "$ac_vpsub
6902 $extrasub
6903 _ACEOF
6904 cat >>$CONFIG_STATUS <<\_ACEOF
6905 :t
6906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6907 s,@configure_input@,$configure_input,;t t
6908 s,@srcdir@,$ac_srcdir,;t t
6909 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6910 s,@top_srcdir@,$ac_top_srcdir,;t t
6911 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6912 s,@builddir@,$ac_builddir,;t t
6913 s,@abs_builddir@,$ac_abs_builddir,;t t
6914 s,@top_builddir@,$ac_top_builddir,;t t
6915 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6916 s,@INSTALL@,$ac_INSTALL,;t t
6917 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6918   rm -f $tmp/stdin
6919   if test x"$ac_file" != x-; then
6920     mv $tmp/out $ac_file
6921   else
6922     cat $tmp/out
6923     rm -f $tmp/out
6924   fi
6925
6926 done
6927 _ACEOF
6928 cat >>$CONFIG_STATUS <<\_ACEOF
6929
6930 #
6931 # CONFIG_HEADER section.
6932 #
6933
6934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6936 #
6937 # ac_d sets the value in "#define NAME VALUE" lines.
6938 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6939 ac_dB='[        ].*$,\1#\2'
6940 ac_dC=' '
6941 ac_dD=',;t'
6942 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6943 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6944 ac_uB='$,\1#\2define\3'
6945 ac_uC=' '
6946 ac_uD=',;t'
6947
6948 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6949   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6950   case $ac_file in
6951   - | *:- | *:-:* ) # input from stdin
6952         cat >$tmp/stdin
6953         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6954         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6955   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6956         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6957   * )   ac_file_in=$ac_file.in ;;
6958   esac
6959
6960   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6961 echo "$as_me: creating $ac_file" >&6;}
6962
6963   # First look for the input files in the build tree, otherwise in the
6964   # src tree.
6965   ac_file_inputs=`IFS=:
6966     for f in $ac_file_in; do
6967       case $f in
6968       -) echo $tmp/stdin ;;
6969       [\\/$]*)
6970          # Absolute (can't be DOS-style, as IFS=:)
6971          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6972 echo "$as_me: error: cannot find input file: $f" >&2;}
6973    { (exit 1); exit 1; }; }
6974          echo $f;;
6975       *) # Relative
6976          if test -f "$f"; then
6977            # Build tree
6978            echo $f
6979          elif test -f "$srcdir/$f"; then
6980            # Source tree
6981            echo $srcdir/$f
6982          else
6983            # /dev/null tree
6984            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6985 echo "$as_me: error: cannot find input file: $f" >&2;}
6986    { (exit 1); exit 1; }; }
6987          fi;;
6988       esac
6989     done` || { (exit 1); exit 1; }
6990   # Remove the trailing spaces.
6991   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6992
6993 _ACEOF
6994
6995 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6996 # `conftest.undefs', that substitutes the proper values into
6997 # config.h.in to produce config.h.  The first handles `#define'
6998 # templates, and the second `#undef' templates.
6999 # And first: Protect against being on the right side of a sed subst in
7000 # config.status.  Protect against being in an unquoted here document
7001 # in config.status.
7002 rm -f conftest.defines conftest.undefs
7003 # Using a here document instead of a string reduces the quoting nightmare.
7004 # Putting comments in sed scripts is not portable.
7005 #
7006 # `end' is used to avoid that the second main sed command (meant for
7007 # 0-ary CPP macros) applies to n-ary macro definitions.
7008 # See the Autoconf documentation for `clear'.
7009 cat >confdef2sed.sed <<\_ACEOF
7010 s/[\\&,]/\\&/g
7011 s,[\\$`],\\&,g
7012 t clear
7013 : clear
7014 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7015 t end
7016 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7017 : end
7018 _ACEOF
7019 # If some macros were called several times there might be several times
7020 # the same #defines, which is useless.  Nevertheless, we may not want to
7021 # sort them, since we want the *last* AC-DEFINE to be honored.
7022 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7023 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7024 rm -f confdef2sed.sed
7025
7026 # This sed command replaces #undef with comments.  This is necessary, for
7027 # example, in the case of _POSIX_SOURCE, which is predefined and required
7028 # on some systems where configure will not decide to define it.
7029 cat >>conftest.undefs <<\_ACEOF
7030 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7031 _ACEOF
7032
7033 # Break up conftest.defines because some shells have a limit on the size
7034 # of here documents, and old seds have small limits too (100 cmds).
7035 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7036 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7037 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7038 echo '  :' >>$CONFIG_STATUS
7039 rm -f conftest.tail
7040 while grep . conftest.defines >/dev/null
7041 do
7042   # Write a limited-size here document to $tmp/defines.sed.
7043   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7044   # Speed up: don't consider the non `#define' lines.
7045   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7046   # Work around the forget-to-reset-the-flag bug.
7047   echo 't clr' >>$CONFIG_STATUS
7048   echo ': clr' >>$CONFIG_STATUS
7049   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7050   echo 'CEOF
7051   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7052   rm -f $tmp/in
7053   mv $tmp/out $tmp/in
7054 ' >>$CONFIG_STATUS
7055   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7056   rm -f conftest.defines
7057   mv conftest.tail conftest.defines
7058 done
7059 rm -f conftest.defines
7060 echo '  fi # grep' >>$CONFIG_STATUS
7061 echo >>$CONFIG_STATUS
7062
7063 # Break up conftest.undefs because some shells have a limit on the size
7064 # of here documents, and old seds have small limits too (100 cmds).
7065 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7066 rm -f conftest.tail
7067 while grep . conftest.undefs >/dev/null
7068 do
7069   # Write a limited-size here document to $tmp/undefs.sed.
7070   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7071   # Speed up: don't consider the non `#undef'
7072   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7073   # Work around the forget-to-reset-the-flag bug.
7074   echo 't clr' >>$CONFIG_STATUS
7075   echo ': clr' >>$CONFIG_STATUS
7076   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7077   echo 'CEOF
7078   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7079   rm -f $tmp/in
7080   mv $tmp/out $tmp/in
7081 ' >>$CONFIG_STATUS
7082   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7083   rm -f conftest.undefs
7084   mv conftest.tail conftest.undefs
7085 done
7086 rm -f conftest.undefs
7087
7088 cat >>$CONFIG_STATUS <<\_ACEOF
7089   # Let's still pretend it is `configure' which instantiates (i.e., don't
7090   # use $as_me), people would be surprised to read:
7091   #    /* config.h.  Generated by config.status.  */
7092   if test x"$ac_file" = x-; then
7093     echo "/* Generated by configure.  */" >$tmp/config.h
7094   else
7095     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7096   fi
7097   cat $tmp/in >>$tmp/config.h
7098   rm -f $tmp/in
7099   if test x"$ac_file" != x-; then
7100     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7101       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7102 echo "$as_me: $ac_file is unchanged" >&6;}
7103     else
7104       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7106          X"$ac_file" : 'X\(//\)[^/]' \| \
7107          X"$ac_file" : 'X\(//\)$' \| \
7108          X"$ac_file" : 'X\(/\)' \| \
7109          .     : '\(.\)' 2>/dev/null ||
7110 echo X"$ac_file" |
7111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7113           /^X\(\/\/\)$/{ s//\1/; q; }
7114           /^X\(\/\).*/{ s//\1/; q; }
7115           s/.*/./; q'`
7116       { if $as_mkdir_p; then
7117     mkdir -p "$ac_dir"
7118   else
7119     as_dir="$ac_dir"
7120     as_dirs=
7121     while test ! -d "$as_dir"; do
7122       as_dirs="$as_dir $as_dirs"
7123       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7125          X"$as_dir" : 'X\(//\)[^/]' \| \
7126          X"$as_dir" : 'X\(//\)$' \| \
7127          X"$as_dir" : 'X\(/\)' \| \
7128          .     : '\(.\)' 2>/dev/null ||
7129 echo X"$as_dir" |
7130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7132           /^X\(\/\/\)$/{ s//\1/; q; }
7133           /^X\(\/\).*/{ s//\1/; q; }
7134           s/.*/./; q'`
7135     done
7136     test ! -n "$as_dirs" || mkdir $as_dirs
7137   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7139    { (exit 1); exit 1; }; }; }
7140
7141       rm -f $ac_file
7142       mv $tmp/config.h $ac_file
7143     fi
7144   else
7145     cat $tmp/config.h
7146     rm -f $tmp/config.h
7147   fi
7148 done
7149 _ACEOF
7150
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152
7153 { (exit 0); exit 0; }
7154 _ACEOF
7155 chmod +x $CONFIG_STATUS
7156 ac_clean_files=$ac_clean_files_save
7157
7158
7159 # configure is writing to config.log, and then calls config.status.
7160 # config.status does its own redirection, appending to config.log.
7161 # Unfortunately, on DOS this fails, as config.log is still kept open
7162 # by configure, so config.status won't be able to write to it; its
7163 # output is simply discarded.  So we exec the FD to /dev/null,
7164 # effectively closing config.log, so it can be properly (re)opened and
7165 # appended to by config.status.  When coming back to configure, we
7166 # need to make the FD available again.
7167 if test "$no_create" != yes; then
7168   ac_cs_success=:
7169   exec 5>/dev/null
7170   $SHELL $CONFIG_STATUS || ac_cs_success=false
7171   exec 5>>config.log
7172   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7173   # would make configure fail if this is the last instruction.
7174   $ac_cs_success || { (exit 1); exit 1; }
7175 fi
7176
7177 #
7178 # CONFIG_SUBDIRS section.
7179 #
7180 if test "$no_recursion" != yes; then
7181
7182   # Remove --cache-file and --srcdir arguments so they do not pile up.
7183   ac_sub_configure_args=
7184   ac_prev=
7185   for ac_arg in $ac_configure_args; do
7186     if test -n "$ac_prev"; then
7187       ac_prev=
7188       continue
7189     fi
7190     case $ac_arg in
7191     -cache-file | --cache-file | --cache-fil | --cache-fi \
7192     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7193       ac_prev=cache_file ;;
7194     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7195     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7196     | --c=*)
7197       ;;
7198     --config-cache | -C)
7199       ;;
7200     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7201       ac_prev=srcdir ;;
7202     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7203       ;;
7204     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7205       ac_prev=prefix ;;
7206     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7207       ;;
7208     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7209     esac
7210   done
7211
7212   # Always prepend --prefix to ensure using the same prefix
7213   # in subdir configurations.
7214   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7215
7216   ac_popdir=`pwd`
7217   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7218
7219     # Do not complain, so a configure script can configure whichever
7220     # parts of a large source tree are present.
7221     test -d $srcdir/$ac_dir || continue
7222
7223     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7224 echo "$as_me: configuring in $ac_dir" >&6;}
7225     { if $as_mkdir_p; then
7226     mkdir -p "$ac_dir"
7227   else
7228     as_dir="$ac_dir"
7229     as_dirs=
7230     while test ! -d "$as_dir"; do
7231       as_dirs="$as_dir $as_dirs"
7232       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7234          X"$as_dir" : 'X\(//\)[^/]' \| \
7235          X"$as_dir" : 'X\(//\)$' \| \
7236          X"$as_dir" : 'X\(/\)' \| \
7237          .     : '\(.\)' 2>/dev/null ||
7238 echo X"$as_dir" |
7239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7241           /^X\(\/\/\)$/{ s//\1/; q; }
7242           /^X\(\/\).*/{ s//\1/; q; }
7243           s/.*/./; q'`
7244     done
7245     test ! -n "$as_dirs" || mkdir $as_dirs
7246   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7248    { (exit 1); exit 1; }; }; }
7249
7250     ac_builddir=.
7251
7252 if test "$ac_dir" != .; then
7253   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7254   # A "../" for each directory in $ac_dir_suffix.
7255   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7256 else
7257   ac_dir_suffix= ac_top_builddir=
7258 fi
7259
7260 case $srcdir in
7261   .)  # No --srcdir option.  We are building in place.
7262     ac_srcdir=.
7263     if test -z "$ac_top_builddir"; then
7264        ac_top_srcdir=.
7265     else
7266        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7267     fi ;;
7268   [\\/]* | ?:[\\/]* )  # Absolute path.
7269     ac_srcdir=$srcdir$ac_dir_suffix;
7270     ac_top_srcdir=$srcdir ;;
7271   *) # Relative path.
7272     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7273     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7274 esac
7275 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7276 # absolute.
7277 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7278 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7279 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7280 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7281
7282
7283     cd $ac_dir
7284
7285     # Check for guested configure; otherwise get Cygnus style configure.
7286     if test -f $ac_srcdir/configure.gnu; then
7287       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7288     elif test -f $ac_srcdir/configure; then
7289       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7290     elif test -f $ac_srcdir/configure.in; then
7291       ac_sub_configure=$ac_configure
7292     else
7293       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7294 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7295       ac_sub_configure=
7296     fi
7297
7298     # The recursion is here.
7299     if test -n "$ac_sub_configure"; then
7300       # Make the cache file name correct relative to the subdirectory.
7301       case $cache_file in
7302       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7303       *) # Relative path.
7304         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7305       esac
7306
7307       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7308 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7309       # The eval makes quoting arguments work.
7310       eval $ac_sub_configure $ac_sub_configure_args \
7311            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7312         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7313 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7314    { (exit 1); exit 1; }; }
7315     fi
7316
7317     cd $ac_popdir
7318   done
7319 fi
7320
7321
7322 # End of configure/configure.in