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