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