cc28322522e43091f9e414fbfc575baa6e8454e7
[libfirm] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 if expr a : '\(a\)' >/dev/null 2>&1; then
12   as_expr=expr
13 else
14   as_expr=false
15 fi
16
17
18 ## --------------------- ##
19 ## M4sh Initialization.  ##
20 ## --------------------- ##
21
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24   emulate sh
25   NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
28 fi
29
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33   as_unset=unset
34 else
35   as_unset=false
36 fi
37
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39     { $as_unset LANG || test "${LANG+set}" != set; } ||
40       { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43       { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46       { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49       { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52       { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55       { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58       { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61       { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86   echo "#! /bin/sh" >conftest.sh
87   echo  "exit 0"   >>conftest.sh
88   chmod +x conftest.sh
89   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90     PATH_SEPARATOR=';'
91   else
92     PATH_SEPARATOR=:
93   fi
94   rm -f conftest.sh
95 fi
96
97
98   as_lineno_1=$LINENO
99   as_lineno_2=$LINENO
100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101   test "x$as_lineno_1" != "x$as_lineno_2" &&
102   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
103   # Find who we are.  Look in the path if we contain no path at all
104   # relative or not.
105   case $0 in
106     *[\\/]* ) as_myself=$0 ;;
107     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
109 do
110   IFS=$as_save_IFS
111   test -z "$as_dir" && as_dir=.
112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
114
115        ;;
116   esac
117   # We did not find ourselves, most probably we were run as `sh COMMAND'
118   # in which case we are not to be found in the path.
119   if test "x$as_myself" = x; then
120     as_myself=$0
121   fi
122   if test ! -f "$as_myself"; then
123     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124    { (exit 1); exit 1; }; }
125   fi
126   case $CONFIG_SHELL in
127   '')
128     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 do
131   IFS=$as_save_IFS
132   test -z "$as_dir" && as_dir=.
133   for as_base in sh bash ksh sh5; do
134          case $as_dir in
135          /*)
136            if ("$as_dir/$as_base" -c '
137   as_lineno_1=$LINENO
138   as_lineno_2=$LINENO
139   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140   test "x$as_lineno_1" != "x$as_lineno_2" &&
141   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
142              CONFIG_SHELL=$as_dir/$as_base
143              export CONFIG_SHELL
144              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145            fi;;
146          esac
147        done
148 done
149 ;;
150   esac
151
152   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153   # uniformly replaced by the line number.  The first 'sed' inserts a
154   # line-number line before each line; the second 'sed' does the real
155   # work.  The second script uses 'N' to pair each line-number line
156   # with the numbered line, and appends trailing '-' during
157   # substitution so that $LINENO is not a special case at line end.
158   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
160   sed '=' <$as_myself |
161     sed '
162       N
163       s,$,-,
164       : loop
165       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166       t loop
167       s,-$,,
168       s,^['$as_cr_digits']*\n,,
169     ' >$as_me.lineno &&
170   chmod +x $as_me.lineno ||
171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172    { (exit 1); exit 1; }; }
173
174   # Don't try to exec as it changes $[0], causing all sort of problems
175   # (the dirname of $[0] is not the place where we might find the
176   # original and so on.  Autoconf is especially sensible to this).
177   . ./$as_me.lineno
178   # Exit status is that of the last command.
179   exit
180 }
181
182
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184   *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T='      ' ;;
186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221
222
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
226 '
227 IFS="   $as_nl"
228
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231
232
233 # Name of the host.
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237
238 exec 6>&1
239
240 #
241 # Initializations.
242 #
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete.  It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
254
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
260 PACKAGE_BUGREPORT=''
261
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815 _ACEOF
816 fi
817
818 if test -n "$ac_init_help"; then
819   case $ac_init_help in
820      short | recursive ) echo "Configuration of libfirm 0.3.0:";;
821    esac
822   cat <<\_ACEOF
823
824 Optional Features:
825   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
826   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
827   --enable-debug          enable assertions and additional debugging routines
828   --disable-inlining      disable inline C-extension
829   --enable-profile        enable profiling
830   --enable-autodoc        enable auto documentation
831   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
832   --enable-heapanalysis       Compile with heap analysis.
833   --disable-libiberty     disable own libiberty parts
834   --enable-statistics     enable Firm statistics
835
836 Optional Packages:
837   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
838   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
839   --with-includedir=add colon seperated list of directories to include search path
840   --with-libdir=add colon seperated list of directories to linker search path
841
842 Some influential environment variables:
843   CC          C compiler command
844   CFLAGS      C compiler flags
845   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
846               nonstandard directory <lib dir>
847   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
848               headers in a nonstandard directory <include dir>
849   CPP         C preprocessor
850
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
853
854 _ACEOF
855 fi
856
857 if test "$ac_init_help" = "recursive"; then
858   # If there are subdirs, report their specific --help.
859   ac_popdir=`pwd`
860   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861     test -d $ac_dir || continue
862     ac_builddir=.
863
864 if test "$ac_dir" != .; then
865   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866   # A "../" for each directory in $ac_dir_suffix.
867   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868 else
869   ac_dir_suffix= ac_top_builddir=
870 fi
871
872 case $srcdir in
873   .)  # No --srcdir option.  We are building in place.
874     ac_srcdir=.
875     if test -z "$ac_top_builddir"; then
876        ac_top_srcdir=.
877     else
878        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879     fi ;;
880   [\\/]* | ?:[\\/]* )  # Absolute path.
881     ac_srcdir=$srcdir$ac_dir_suffix;
882     ac_top_srcdir=$srcdir ;;
883   *) # Relative path.
884     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885     ac_top_srcdir=$ac_top_builddir$srcdir ;;
886 esac
887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
888 # absolute.
889 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
890 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
891 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
892 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
893
894     cd $ac_dir
895     # Check for guested configure; otherwise get Cygnus style configure.
896     if test -f $ac_srcdir/configure.gnu; then
897       echo
898       $SHELL $ac_srcdir/configure.gnu  --help=recursive
899     elif test -f $ac_srcdir/configure; then
900       echo
901       $SHELL $ac_srcdir/configure  --help=recursive
902     elif test -f $ac_srcdir/configure.ac ||
903            test -f $ac_srcdir/configure.in; then
904       echo
905       $ac_configure --help
906     else
907       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
908     fi
909     cd $ac_popdir
910   done
911 fi
912
913 test -n "$ac_init_help" && exit 0
914 if $ac_init_version; then
915   cat <<\_ACEOF
916 libfirm configure 0.3.0
917 generated by GNU Autoconf 2.53
918
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
923 _ACEOF
924   exit 0
925 fi
926 exec 5>config.log
927 cat >&5 <<_ACEOF
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
930
931 It was created by libfirm $as_me 0.3.0, which was
932 generated by GNU Autoconf 2.53.  Invocation command line was
933
934   $ $0 $@
935
936 _ACEOF
937 {
938 cat <<_ASUNAME
939 ## --------- ##
940 ## Platform. ##
941 ## --------- ##
942
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
948
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
951
952 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
953 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
956 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
957 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
958 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
959
960 _ASUNAME
961
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 for as_dir in $PATH
964 do
965   IFS=$as_save_IFS
966   test -z "$as_dir" && as_dir=.
967   echo "PATH: $as_dir"
968 done
969
970 } >&5
971
972 cat >&5 <<_ACEOF
973
974
975 ## ----------- ##
976 ## Core tests. ##
977 ## ----------- ##
978
979 _ACEOF
980
981
982 # Keep a trace of the command line.
983 # Strip out --no-create and --no-recursion so they do not pile up.
984 # Also quote any args containing shell meta-characters.
985 ac_configure_args=
986 ac_sep=
987 for ac_arg
988 do
989   case $ac_arg in
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n ) continue ;;
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     continue ;;
995   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
996     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
997   esac
998   case " $ac_configure_args " in
999     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1000     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1001        ac_sep=" " ;;
1002   esac
1003   # Get rid of the leading space.
1004 done
1005
1006 # When interrupted or exit'd, cleanup temporary files, and complete
1007 # config.log.  We remove comments because anyway the quotes in there
1008 # would cause problems or look ugly.
1009 # WARNING: Be sure not to use single quotes in there, as some shells,
1010 # such as our DU 5.0 friend, will then `close' the trap.
1011 trap 'exit_status=$?
1012   # Save into config.log some information that might help in debugging.
1013   {
1014     echo
1015     cat <<\_ASBOX
1016 ## ---------------- ##
1017 ## Cache variables. ##
1018 ## ---------------- ##
1019 _ASBOX
1020     echo
1021     # The following way of writing the cache mishandles newlines in values,
1022 {
1023   (set) 2>&1 |
1024     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025     *ac_space=\ *)
1026       sed -n \
1027         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1029       ;;
1030     *)
1031       sed -n \
1032         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1033       ;;
1034     esac;
1035 }
1036     echo
1037     if test -s confdefs.h; then
1038       cat <<\_ASBOX
1039 ## ----------- ##
1040 ## confdefs.h. ##
1041 ## ----------- ##
1042 _ASBOX
1043       echo
1044       sed "/^$/d" confdefs.h
1045       echo
1046     fi
1047     test "$ac_signal" != 0 &&
1048       echo "$as_me: caught signal $ac_signal"
1049     echo "$as_me: exit $exit_status"
1050   } >&5
1051   rm -f core core.* *.core &&
1052   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1053     exit $exit_status
1054      ' 0
1055 for ac_signal in 1 2 13 15; do
1056   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1057 done
1058 ac_signal=0
1059
1060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1061 rm -rf conftest* confdefs.h
1062 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1063 echo >confdefs.h
1064
1065 # Predefined preprocessor variables.
1066
1067 cat >>confdefs.h <<_ACEOF
1068 #define PACKAGE_NAME "$PACKAGE_NAME"
1069 _ACEOF
1070
1071
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1074 _ACEOF
1075
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_STRING "$PACKAGE_STRING"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1089 _ACEOF
1090
1091
1092 # Let the site file select an alternate cache file if it wants to.
1093 # Prefer explicitly selected file to automatically selected ones.
1094 if test -z "$CONFIG_SITE"; then
1095   if test "x$prefix" != xNONE; then
1096     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1097   else
1098     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1099   fi
1100 fi
1101 for ac_site_file in $CONFIG_SITE; do
1102   if test -r "$ac_site_file"; then
1103     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1104 echo "$as_me: loading site script $ac_site_file" >&6;}
1105     sed 's/^/| /' "$ac_site_file" >&5
1106     . "$ac_site_file"
1107   fi
1108 done
1109
1110 if test -r "$cache_file"; then
1111   # Some versions of bash will fail to source /dev/null (special
1112   # files actually), so we avoid doing that.
1113   if test -f "$cache_file"; then
1114     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1115 echo "$as_me: loading cache $cache_file" >&6;}
1116     case $cache_file in
1117       [\\/]* | ?:[\\/]* ) . $cache_file;;
1118       *)                      . ./$cache_file;;
1119     esac
1120   fi
1121 else
1122   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1123 echo "$as_me: creating cache $cache_file" >&6;}
1124   >$cache_file
1125 fi
1126
1127 # Check that the precious variables saved in the cache have kept the same
1128 # value.
1129 ac_cache_corrupted=false
1130 for ac_var in `(set) 2>&1 |
1131                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1132   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1133   eval ac_new_set=\$ac_env_${ac_var}_set
1134   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1135   eval ac_new_val="\$ac_env_${ac_var}_value"
1136   case $ac_old_set,$ac_new_set in
1137     set,)
1138       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1139 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1140       ac_cache_corrupted=: ;;
1141     ,set)
1142       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1143 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1144       ac_cache_corrupted=: ;;
1145     ,);;
1146     *)
1147       if test "x$ac_old_val" != "x$ac_new_val"; then
1148         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1149 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1150         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1151 echo "$as_me:   former value:  $ac_old_val" >&2;}
1152         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1153 echo "$as_me:   current value: $ac_new_val" >&2;}
1154         ac_cache_corrupted=:
1155       fi;;
1156   esac
1157   # Pass precious variables to config.status.
1158   if test "$ac_new_set" = set; then
1159     case $ac_new_val in
1160     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1161       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1162     *) ac_arg=$ac_var=$ac_new_val ;;
1163     esac
1164     case " $ac_configure_args " in
1165       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1166       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1167     esac
1168   fi
1169 done
1170 if $ac_cache_corrupted; then
1171   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1172 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1173   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1174 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 ac_ext=c
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1211                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1212                 ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
1213                 ir/opt/Makefile ir/external/Makefile \
1214                 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1215                 libfirm.doxygen"
1216
1217 ac_config_headers="$ac_config_headers config.h"
1218
1219
1220 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1221
1222
1223
1224 # Check whether --with-includedir or --without-includedir was given.
1225 if test "${with_includedir+set}" = set; then
1226   withval="$with_includedir"
1227   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1228 else
1229   T_FLAG=""
1230 fi;
1231
1232
1233 # Check whether --with-libdir or --without-libdir was given.
1234 if test "${with_libdir+set}" = set; then
1235   withval="$with_libdir"
1236   LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1237 else
1238   T_FLAG=""
1239 fi;
1240
1241
1242 # Check whether --enable-debug or --disable-debug was given.
1243 if test "${enable_debug+set}" = set; then
1244   enableval="$enable_debug"
1245   if test "$enableval" = yes; then
1246   cat >>confdefs.h <<\_ACEOF
1247 #define DEBUG_libfirm 1
1248 _ACEOF
1249
1250 else
1251   cat >>confdefs.h <<\_ACEOF
1252 #define NDEBUG 1
1253 _ACEOF
1254
1255 fi
1256 fi;
1257
1258
1259 # Check whether --enable-inlining or --disable-inlining was given.
1260 if test "${enable_inlining+set}" = set; then
1261   enableval="$enable_inlining"
1262   if test "$enableval" = yes; then
1263   cat >>confdefs.h <<\_ACEOF
1264 #define USE_INLINING 1
1265 _ACEOF
1266
1267 fi
1268 else
1269   cat >>confdefs.h <<\_ACEOF
1270 #define USE_INLINING 1
1271 _ACEOF
1272
1273
1274 fi;
1275
1276 # Check whether --enable-profile or --disable-profile was given.
1277 if test "${enable_profile+set}" = set; then
1278   enableval="$enable_profile"
1279   if test "$enableval"=yes; then
1280   enable_profile_libfirm=yes
1281 fi
1282 else
1283   enable_profile_libfirm=no
1284 fi;
1285
1286
1287 # Check whether --enable-autodoc or --disable-autodoc was given.
1288 if test "${enable_autodoc+set}" = set; then
1289   enableval="$enable_autodoc"
1290   if test "$enableval"=yes; then
1291   enable_auto_documentation=yes
1292 fi
1293 else
1294   enable_auto_documentation=no
1295 fi;
1296
1297
1298
1299 # Check whether --enable-firmjni or --disable-firmjni was given.
1300 if test "${enable_firmjni+set}" = set; then
1301   enableval="$enable_firmjni"
1302   if test "$enableval"=yes; then
1303   enable_firm_jni=yes
1304 fi
1305 else
1306   enable_firm_jni=no
1307 fi;
1308
1309
1310 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1311 if test "${enable_heapanalysis+set}" = set; then
1312   enableval="$enable_heapanalysis"
1313   enable_heapanalysis=$enableval
1314 else
1315   enable_heapanalysis="no"
1316 fi;
1317 if test "$enable_heapanalysis" = "no"; then
1318   echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
1319 echo "${ECHO_T}heapanalysis disabled" >&6
1320 else
1321   cat >>confdefs.h <<\_ACEOF
1322 #define DO_HEAPANALYSIS 1
1323 _ACEOF
1324
1325   echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
1326 echo "${ECHO_T}heapanalysis enabled" >&6
1327 fi
1328
1329
1330 # Check whether --enable-libiberty or --disable-libiberty was given.
1331 if test "${enable_libiberty+set}" = set; then
1332   enableval="$enable_libiberty"
1333   if test "$enableval"=yes; then
1334   disable_libiberty_=yes
1335 fi
1336 else
1337   disable_libiberty=no
1338 fi;
1339
1340
1341 # Check whether --enable-statistics or --disable-statistics was given.
1342 if test "${enable_statistics+set}" = set; then
1343   enableval="$enable_statistics"
1344   if test "$enableval"=yes; then
1345   cat >>confdefs.h <<\_ACEOF
1346 #define FIRM_STATISTICS 1
1347 _ACEOF
1348
1349 fi
1350 fi;
1351
1352
1353
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359 if test -n "$ac_tool_prefix"; then
1360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_CC+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   if test -n "$CC"; then
1368   ac_cv_prog_CC="$CC" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373   IFS=$as_save_IFS
1374   test -z "$as_dir" && as_dir=.
1375   for ac_exec_ext in '' $ac_executable_extensions; do
1376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379     break 2
1380   fi
1381 done
1382 done
1383
1384 fi
1385 fi
1386 CC=$ac_cv_prog_CC
1387 if test -n "$CC"; then
1388   echo "$as_me:$LINENO: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1390 else
1391   echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395 fi
1396 if test -z "$ac_cv_prog_CC"; then
1397   ac_ct_CC=$CC
1398   # Extract the first word of "gcc", so it can be a program name with args.
1399 set dummy gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   if test -n "$ac_ct_CC"; then
1406   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1407 else
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1410 do
1411   IFS=$as_save_IFS
1412   test -z "$as_dir" && as_dir=.
1413   for ac_exec_ext in '' $ac_executable_extensions; do
1414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415     ac_cv_prog_ac_ct_CC="gcc"
1416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417     break 2
1418   fi
1419 done
1420 done
1421
1422 fi
1423 fi
1424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1425 if test -n "$ac_ct_CC"; then
1426   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1427 echo "${ECHO_T}$ac_ct_CC" >&6
1428 else
1429   echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1431 fi
1432
1433   CC=$ac_ct_CC
1434 else
1435   CC="$ac_cv_prog_CC"
1436 fi
1437
1438 if test -z "$CC"; then
1439   if test -n "$ac_tool_prefix"; then
1440   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}cc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   if test -n "$CC"; then
1448   ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_prog_CC="${ac_tool_prefix}cc"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468   echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if test -z "$ac_cv_prog_CC"; then
1477   ac_ct_CC=$CC
1478   # Extract the first word of "cc", so it can be a program name with args.
1479 set dummy cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$ac_ct_CC"; then
1486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_ac_ct_CC="cc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513   CC=$ac_ct_CC
1514 else
1515   CC="$ac_cv_prog_CC"
1516 fi
1517
1518 fi
1519 if test -z "$CC"; then
1520   # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$CC"; then
1528   ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530   ac_prog_rejected=no
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1539        ac_prog_rejected=yes
1540        continue
1541      fi
1542     ac_cv_prog_CC="cc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 if test $ac_prog_rejected = yes; then
1550   # We found a bogon in the path, so make sure we never use it.
1551   set dummy $ac_cv_prog_CC
1552   shift
1553   if test $# != 0; then
1554     # We chose a different compiler from the bogus one.
1555     # However, it has the same basename, so the bogon will be chosen
1556     # first if we set CC to just the basename; use the full file name.
1557     shift
1558     set dummy "$as_dir/$ac_word" ${1+"$@"}
1559     shift
1560     ac_cv_prog_CC="$@"
1561   fi
1562 fi
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$CC"; then
1576   if test -n "$ac_tool_prefix"; then
1577   for ac_prog in cl
1578   do
1579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   if test -n "$CC"; then
1587   ac_cv_prog_CC="$CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   for ac_exec_ext in '' $ac_executable_extensions; do
1595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598     break 2
1599   fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 CC=$ac_cv_prog_CC
1606 if test -n "$CC"; then
1607   echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614     test -n "$CC" && break
1615   done
1616 fi
1617 if test -z "$CC"; then
1618   ac_ct_CC=$CC
1619   for ac_prog in cl
1620 do
1621   # Extract the first word of "$ac_prog", so it can be a program name with args.
1622 set dummy $ac_prog; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   if test -n "$ac_ct_CC"; then
1629   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   for ac_exec_ext in '' $ac_executable_extensions; do
1637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638     ac_cv_prog_ac_ct_CC="$ac_prog"
1639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640     break 2
1641   fi
1642 done
1643 done
1644
1645 fi
1646 fi
1647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1648 if test -n "$ac_ct_CC"; then
1649   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1650 echo "${ECHO_T}$ac_ct_CC" >&6
1651 else
1652   echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1654 fi
1655
1656   test -n "$ac_ct_CC" && break
1657 done
1658
1659   CC=$ac_ct_CC
1660 fi
1661
1662 fi
1663
1664
1665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1666 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 # Provide some information about the compiler.
1670 echo "$as_me:$LINENO:" \
1671      "checking for C compiler version" >&5
1672 ac_compiler=`set X $ac_compile; echo $2`
1673 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1674   (eval $ac_compiler --version </dev/null >&5) 2>&5
1675   ac_status=$?
1676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677   (exit $ac_status); }
1678 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1679   (eval $ac_compiler -v </dev/null >&5) 2>&5
1680   ac_status=$?
1681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682   (exit $ac_status); }
1683 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1684   (eval $ac_compiler -V </dev/null >&5) 2>&5
1685   ac_status=$?
1686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687   (exit $ac_status); }
1688
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line $LINENO "configure"
1691 #include "confdefs.h"
1692
1693 #ifdef F77_DUMMY_MAIN
1694 #  ifdef __cplusplus
1695      extern "C"
1696 #  endif
1697    int F77_DUMMY_MAIN() { return 1; }
1698 #endif
1699 int
1700 main ()
1701 {
1702
1703   ;
1704   return 0;
1705 }
1706 _ACEOF
1707 ac_clean_files_save=$ac_clean_files
1708 ac_clean_files="$ac_clean_files a.out a.exe"
1709 # Try to create an executable without -o first, disregard a.out.
1710 # It will help us diagnose broken compilers, and finding out an intuition
1711 # of exeext.
1712 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1713 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1715 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1716   (eval $ac_link_default) 2>&5
1717   ac_status=$?
1718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719   (exit $ac_status); }; then
1720   # Find the output, starting from the most likely.  This scheme is
1721 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 # resort.
1723
1724 # Be careful to initialize this variable, since it used to be cached.
1725 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1726 ac_cv_exeext=
1727 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1728                 ls a.out conftest 2>/dev/null;
1729                 ls a.* conftest.* 2>/dev/null`; do
1730   case $ac_file in
1731     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1732     a.out ) # We found the default executable, but exeext='' is most
1733             # certainly right.
1734             break;;
1735     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1736           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1737           export ac_cv_exeext
1738           break;;
1739     * ) break;;
1740   esac
1741 done
1742 else
1743   echo "$as_me: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1746 echo "$as_me: error: C compiler cannot create executables" >&2;}
1747    { (exit 77); exit 77; }; }
1748 fi
1749
1750 ac_exeext=$ac_cv_exeext
1751 echo "$as_me:$LINENO: result: $ac_file" >&5
1752 echo "${ECHO_T}$ac_file" >&6
1753
1754 # Check the compiler produces executables we can run.  If not, either
1755 # the compiler is broken, or we cross compile.
1756 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1759 # If not cross compiling, check that we can run a simple program.
1760 if test "$cross_compiling" != yes; then
1761   if { ac_try='./$ac_file'
1762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1763   (eval $ac_try) 2>&5
1764   ac_status=$?
1765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766   (exit $ac_status); }; }; then
1767     cross_compiling=no
1768   else
1769     if test "$cross_compiling" = maybe; then
1770         cross_compiling=yes
1771     else
1772         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&5
1774 echo "$as_me: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&2;}
1776    { (exit 1); exit 1; }; }
1777     fi
1778   fi
1779 fi
1780 echo "$as_me:$LINENO: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1782
1783 rm -f a.out a.exe conftest$ac_cv_exeext
1784 ac_clean_files=$ac_clean_files_save
1785 # Check the compiler produces executables we can run.  If not, either
1786 # the compiler is broken, or we cross compile.
1787 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1788 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1789 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1790 echo "${ECHO_T}$cross_compiling" >&6
1791
1792 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1793 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1795   (eval $ac_link) 2>&5
1796   ac_status=$?
1797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798   (exit $ac_status); }; then
1799   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1800 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1801 # work properly (i.e., refer to `conftest.exe'), while it won't with
1802 # `rm'.
1803 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1804   case $ac_file in
1805     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1806     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1807           export ac_cv_exeext
1808           break;;
1809     * ) break;;
1810   esac
1811 done
1812 else
1813   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1814 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1821
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1824 ac_exeext=$EXEEXT
1825 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1826 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   cat >conftest.$ac_ext <<_ACEOF
1831 #line $LINENO "configure"
1832 #include "confdefs.h"
1833
1834 #ifdef F77_DUMMY_MAIN
1835 #  ifdef __cplusplus
1836      extern "C"
1837 #  endif
1838    int F77_DUMMY_MAIN() { return 1; }
1839 #endif
1840 int
1841 main ()
1842 {
1843
1844   ;
1845   return 0;
1846 }
1847 _ACEOF
1848 rm -f conftest.o conftest.obj
1849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1850   (eval $ac_compile) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; then
1854   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1855   case $ac_file in
1856     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1857     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1858        break;;
1859   esac
1860 done
1861 else
1862   echo "$as_me: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1865 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1870 fi
1871 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1872 echo "${ECHO_T}$ac_cv_objext" >&6
1873 OBJEXT=$ac_cv_objext
1874 ac_objext=$OBJEXT
1875 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   cat >conftest.$ac_ext <<_ACEOF
1881 #line $LINENO "configure"
1882 #include "confdefs.h"
1883
1884 #ifdef F77_DUMMY_MAIN
1885 #  ifdef __cplusplus
1886      extern "C"
1887 #  endif
1888    int F77_DUMMY_MAIN() { return 1; }
1889 #endif
1890 int
1891 main ()
1892 {
1893 #ifndef __GNUC__
1894        choke me
1895 #endif
1896
1897   ;
1898   return 0;
1899 }
1900 _ACEOF
1901 rm -f conftest.$ac_objext
1902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1903   (eval $ac_compile) 2>&5
1904   ac_status=$?
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); } &&
1907          { ac_try='test -s conftest.$ac_objext'
1908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909   (eval $ac_try) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }; }; then
1913   ac_compiler_gnu=yes
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 ac_compiler_gnu=no
1918 fi
1919 rm -f conftest.$ac_objext conftest.$ac_ext
1920 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1921
1922 fi
1923 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1925 GCC=`test $ac_compiler_gnu = yes && echo yes`
1926 ac_test_CFLAGS=${CFLAGS+set}
1927 ac_save_CFLAGS=$CFLAGS
1928 CFLAGS="-g"
1929 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1930 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1931 if test "${ac_cv_prog_cc_g+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1937
1938 #ifdef F77_DUMMY_MAIN
1939 #  ifdef __cplusplus
1940      extern "C"
1941 #  endif
1942    int F77_DUMMY_MAIN() { return 1; }
1943 #endif
1944 int
1945 main ()
1946 {
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 rm -f conftest.$ac_objext
1953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1954   (eval $ac_compile) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); } &&
1958          { ac_try='test -s conftest.$ac_objext'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; }; then
1964   ac_cv_prog_cc_g=yes
1965 else
1966   echo "$as_me: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1968 ac_cv_prog_cc_g=no
1969 fi
1970 rm -f conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1974 if test "$ac_test_CFLAGS" = set; then
1975   CFLAGS=$ac_save_CFLAGS
1976 elif test $ac_cv_prog_cc_g = yes; then
1977   if test "$GCC" = yes; then
1978     CFLAGS="-g -O2"
1979   else
1980     CFLAGS="-g"
1981   fi
1982 else
1983   if test "$GCC" = yes; then
1984     CFLAGS="-O2"
1985   else
1986     CFLAGS=
1987   fi
1988 fi
1989 # Some people use a C++ compiler to compile C.  Since we use `exit',
1990 # in C++ we need to declare it.  In case someone uses the same compiler
1991 # for both compiling C and C++ we need to have the C++ compiler decide
1992 # the declaration of exit, since it's the most demanding environment.
1993 cat >conftest.$ac_ext <<_ACEOF
1994 #ifndef __cplusplus
1995   choke me
1996 #endif
1997 _ACEOF
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000   (eval $ac_compile) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); } &&
2004          { ac_try='test -s conftest.$ac_objext'
2005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006   (eval $ac_try) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; }; then
2010   for ac_declaration in \
2011    ''\
2012    '#include <stdlib.h>' \
2013    'extern "C" void std::exit (int) throw (); using std::exit;' \
2014    'extern "C" void std::exit (int); using std::exit;' \
2015    'extern "C" void exit (int) throw ();' \
2016    'extern "C" void exit (int);' \
2017    'void exit (int);'
2018 do
2019   cat >conftest.$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2021 #include "confdefs.h"
2022 #include <stdlib.h>
2023 $ac_declaration
2024 #ifdef F77_DUMMY_MAIN
2025 #  ifdef __cplusplus
2026      extern "C"
2027 #  endif
2028    int F77_DUMMY_MAIN() { return 1; }
2029 #endif
2030 int
2031 main ()
2032 {
2033 exit (42);
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); } &&
2044          { ac_try='test -s conftest.$ac_objext'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050   :
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 continue
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057   cat >conftest.$ac_ext <<_ACEOF
2058 #line $LINENO "configure"
2059 #include "confdefs.h"
2060 $ac_declaration
2061 #ifdef F77_DUMMY_MAIN
2062 #  ifdef __cplusplus
2063      extern "C"
2064 #  endif
2065    int F77_DUMMY_MAIN() { return 1; }
2066 #endif
2067 int
2068 main ()
2069 {
2070 exit (42);
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077   (eval $ac_compile) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); } &&
2081          { ac_try='test -s conftest.$ac_objext'
2082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083   (eval $ac_try) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; }; then
2087   break
2088 else
2089   echo "$as_me: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2091 fi
2092 rm -f conftest.$ac_objext conftest.$ac_ext
2093 done
2094 rm -f conftest*
2095 if test -n "$ac_declaration"; then
2096   echo '#ifdef __cplusplus' >>confdefs.h
2097   echo $ac_declaration      >>confdefs.h
2098   echo '#endif'             >>confdefs.h
2099 fi
2100
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 fi
2105 rm -f conftest.$ac_objext conftest.$ac_ext
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113
2114 if test -z "$LD"; then
2115   if test -n "$ac_tool_prefix"; then
2116   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2117 set dummy ${ac_tool_prefix}ld; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_LD+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$LD"; then
2124   ac_cv_prog_LD="$LD" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_LD="${ac_tool_prefix}ld"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 LD=$ac_cv_prog_LD
2143 if test -n "$LD"; then
2144   echo "$as_me:$LINENO: result: $LD" >&5
2145 echo "${ECHO_T}$LD" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151 fi
2152 if test -z "$ac_cv_prog_LD"; then
2153   ac_ct_LD=$LD
2154   # Extract the first word of "ld", so it can be a program name with args.
2155 set dummy ld; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$ac_ct_LD"; then
2162   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_exec_ext in '' $ac_executable_extensions; do
2170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171     ac_cv_prog_ac_ct_LD="ld"
2172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173     break 2
2174   fi
2175 done
2176 done
2177
2178 fi
2179 fi
2180 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2181 if test -n "$ac_ct_LD"; then
2182   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2183 echo "${ECHO_T}$ac_ct_LD" >&6
2184 else
2185   echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2187 fi
2188
2189   LD=$ac_ct_LD
2190 else
2191   LD="$ac_cv_prog_LD"
2192 fi
2193
2194 fi
2195
2196 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2197 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2198 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201
2202 libfirm_cv_prog_ld_r=no
2203 if test "$LD"; then
2204   cat > conftest.$ac_ext <<EOF
2205 int foo() { return 0; }
2206 EOF
2207   if eval $ac_compile && mv conftest.o conftest2.o; then
2208     cat > conftest.$ac_ext <<EOF
2209 extern int foo();
2210 int main() { return foo(); }
2211 EOF
2212     if eval $ac_compile; then
2213       if $LD -r -o conftest conftest.o conftest2.o; then
2214         libfirm_cv_prog_ld_r=yes
2215       fi
2216     fi
2217   fi
2218 fi
2219 rm -f conftest*
2220 fi
2221 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2222 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2223
2224
2225 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2226   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2227 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2228    { (exit 1); exit 1; }; }
2229 fi
2230
2231 # Extract the first word of "ar", so it can be a program name with args.
2232 set dummy ar; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_AR+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   if test -n "$AR"; then
2239   ac_cv_prog_AR="$AR" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248     ac_cv_prog_AR=""ar""
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254
2255   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2256 fi
2257 fi
2258 AR=$ac_cv_prog_AR
2259 if test -n "$AR"; then
2260   echo "$as_me:$LINENO: result: $AR" >&5
2261 echo "${ECHO_T}$AR" >&6
2262 else
2263   echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2265 fi
2266
2267 if test "$AR" != "ar"; then
2268   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2269 echo "$as_me: error: need ar for creating archives" >&2;}
2270    { (exit 1); exit 1; }; }
2271 fi
2272
2273 # Extract the first word of "tar", so it can be a program name with args.
2274 set dummy tar; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_TAR+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$TAR"; then
2281   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_prog_TAR=""tar""
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296
2297   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2298 fi
2299 fi
2300 TAR=$ac_cv_prog_TAR
2301 if test -n "$TAR"; then
2302   echo "$as_me:$LINENO: result: $TAR" >&5
2303 echo "${ECHO_T}$TAR" >&6
2304 else
2305   echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6
2307 fi
2308
2309 if test "$TAR" != "tar"; then
2310   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2311 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2312    { (exit 1); exit 1; }; }
2313 fi
2314
2315
2316 if test -n "$ac_tool_prefix"; then
2317   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_RANLIB+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$RANLIB"; then
2325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340
2341 fi
2342 fi
2343 RANLIB=$ac_cv_prog_RANLIB
2344 if test -n "$RANLIB"; then
2345   echo "$as_me:$LINENO: result: $RANLIB" >&5
2346 echo "${ECHO_T}$RANLIB" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352 fi
2353 if test -z "$ac_cv_prog_RANLIB"; then
2354   ac_ct_RANLIB=$RANLIB
2355   # Extract the first word of "ranlib", so it can be a program name with args.
2356 set dummy ranlib; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$ac_ct_RANLIB"; then
2363   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372     ac_cv_prog_ac_ct_RANLIB="ranlib"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378
2379   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2380 fi
2381 fi
2382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2383 if test -n "$ac_ct_RANLIB"; then
2384   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2385 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2386 else
2387   echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2389 fi
2390
2391   RANLIB=$ac_ct_RANLIB
2392 else
2393   RANLIB="$ac_cv_prog_RANLIB"
2394 fi
2395
2396
2397 ac_aux_dir=
2398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2399   if test -f $ac_dir/install-sh; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/install-sh -c"
2402     break
2403   elif test -f $ac_dir/install.sh; then
2404     ac_aux_dir=$ac_dir
2405     ac_install_sh="$ac_aux_dir/install.sh -c"
2406     break
2407   elif test -f $ac_dir/shtool; then
2408     ac_aux_dir=$ac_dir
2409     ac_install_sh="$ac_aux_dir/shtool install -c"
2410     break
2411   fi
2412 done
2413 if test -z "$ac_aux_dir"; then
2414   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2420 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2421
2422 # Find a good install program.  We prefer a C program (faster),
2423 # so one script is as good as another.  But avoid the broken or
2424 # incompatible versions:
2425 # SysV /etc/install, /usr/sbin/install
2426 # SunOS /usr/etc/install
2427 # IRIX /sbin/install
2428 # AIX /bin/install
2429 # AmigaOS /C/install, which installs bootblocks on floppy discs
2430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2435 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2436 if test -z "$INSTALL"; then
2437 if test "${ac_cv_path_install+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   # Account for people who put trailing slashes in PATH elements.
2446 case $as_dir/ in
2447   ./ | .// | /cC/* | \
2448   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2449   /usr/ucb/* ) ;;
2450   *)
2451     # OSF1 and SCO ODT 3.0 have their own names for install.
2452     # Don't use installbsd from OSF since it installs stuff as root
2453     # by default.
2454     for ac_prog in ginstall scoinst install; do
2455       for ac_exec_ext in '' $ac_executable_extensions; do
2456         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2457           if test $ac_prog = install &&
2458             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459             # AIX install.  It has an incompatible calling convention.
2460             :
2461           elif test $ac_prog = install &&
2462             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463             # program-specific install script used by HP pwplus--don't use.
2464             :
2465           else
2466             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2467             break 3
2468           fi
2469         fi
2470       done
2471     done
2472     ;;
2473 esac
2474 done
2475
2476
2477 fi
2478   if test "${ac_cv_path_install+set}" = set; then
2479     INSTALL=$ac_cv_path_install
2480   else
2481     # As a last resort, use the slow shell script.  We don't cache a
2482     # path for INSTALL within a source directory, because that will
2483     # break other packages using the cache if that directory is
2484     # removed, or if the path is relative.
2485     INSTALL=$ac_install_sh
2486   fi
2487 fi
2488 echo "$as_me:$LINENO: result: $INSTALL" >&5
2489 echo "${ECHO_T}$INSTALL" >&6
2490
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2494
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2496
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2498
2499
2500 touch tmp-install.a tmp-install.b
2501 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2502     INSTALL="$INSTALL -C"
2503 fi
2504 rm tmp-install.a tmp-install.b
2505
2506
2507 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2509 LN_S=$as_ln_s
2510 if test "$LN_S" = "ln -s"; then
2511   echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2515 echo "${ECHO_T}no, using $LN_S" >&6
2516 fi
2517
2518
2519 if test "$enable_auto_documentation" = yes; then
2520   # Extract the first word of "doxygen", so it can be a program name with args.
2521 set dummy doxygen; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$DOXYGEN"; then
2528   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_DOXYGEN=""doxygen""
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2545 fi
2546 fi
2547 DOXYGEN=$ac_cv_prog_DOXYGEN
2548 if test -n "$DOXYGEN"; then
2549   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2550 echo "${ECHO_T}$DOXYGEN" >&6
2551 else
2552   echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556   if test "$DOXYGEN" != "doxygen"; then
2557     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2558 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2559    { (exit 1); exit 1; }; }
2560   fi
2561   # Extract the first word of "dot", so it can be a program name with args.
2562 set dummy dot; ac_word=$2
2563 echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2565 if test "${ac_cv_prog_DOT+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test -n "$DOT"; then
2569   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578     ac_cv_prog_DOT=""dot""
2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584
2585   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2586 fi
2587 fi
2588 DOT=$ac_cv_prog_DOT
2589 if test -n "$DOT"; then
2590   echo "$as_me:$LINENO: result: $DOT" >&5
2591 echo "${ECHO_T}$DOT" >&6
2592 else
2593   echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6
2595 fi
2596
2597   if test "$DOT" != "dot"; then
2598     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2599 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2600    { (exit 1); exit 1; }; }
2601   fi
2602 fi
2603
2604 if test "$enable_firm_jni" = yes; then
2605   # Extract the first word of "javac", so it can be a program name with args.
2606 set dummy javac; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_JAVAC+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$JAVAC"; then
2613   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622     ac_cv_prog_JAVAC=""javac""
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628
2629   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2630 fi
2631 fi
2632 JAVAC=$ac_cv_prog_JAVAC
2633 if test -n "$JAVAC"; then
2634   echo "$as_me:$LINENO: result: $JAVAC" >&5
2635 echo "${ECHO_T}$JAVAC" >&6
2636 else
2637   echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2639 fi
2640
2641   if test "$JAVAC" != "javac"; then
2642     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2643 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2644    { (exit 1); exit 1; }; }
2645   fi
2646   # Extract the first word of "javah", so it can be a program name with args.
2647 set dummy javah; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_JAVAH+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$JAVAH"; then
2654   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   for ac_exec_ext in '' $ac_executable_extensions; do
2662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_JAVAH=""javah""
2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668 done
2669
2670   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2671 fi
2672 fi
2673 JAVAH=$ac_cv_prog_JAVAH
2674 if test -n "$JAVAH"; then
2675   echo "$as_me:$LINENO: result: $JAVAH" >&5
2676 echo "${ECHO_T}$JAVAH" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680 fi
2681
2682   if test "$JAVAH" != "javah"; then
2683     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2684 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2685    { (exit 1); exit 1; }; }
2686   fi
2687 fi
2688
2689
2690
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2699 # On Suns, sometimes $CPP names a directory.
2700 if test -n "$CPP" && test -d "$CPP"; then
2701   CPP=
2702 fi
2703 if test -z "$CPP"; then
2704   if test "${ac_cv_prog_CPP+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707       # Double quotes because CPP needs to be expanded
2708     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2709     do
2710       ac_preproc_ok=false
2711 for ac_c_preproc_warn_flag in '' yes
2712 do
2713   # Use a header file that comes with gcc, so configuring glibc
2714   # with a fresh cross-compiler works.
2715   # On the NeXT, cc -E runs the code through the compiler's parser,
2716   # not just through cpp. "Syntax error" is here to catch this case.
2717   cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2720 #include <assert.h>
2721                      Syntax error
2722 _ACEOF
2723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2725   ac_status=$?
2726   egrep -v '^ *\+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } >/dev/null; then
2731   if test -s conftest.err; then
2732     ac_cpp_err=$ac_c_preproc_warn_flag
2733   else
2734     ac_cpp_err=
2735   fi
2736 else
2737   ac_cpp_err=yes
2738 fi
2739 if test -z "$ac_cpp_err"; then
2740   :
2741 else
2742   echo "$as_me: failed program was:" >&5
2743   cat conftest.$ac_ext >&5
2744   # Broken: fails on valid input.
2745 continue
2746 fi
2747 rm -f conftest.err conftest.$ac_ext
2748
2749   # OK, works on sane cases.  Now check whether non-existent headers
2750   # can be detected and how.
2751   cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <ac_nonexistent.h>
2755 _ACEOF
2756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2758   ac_status=$?
2759   egrep -v '^ *\+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } >/dev/null; then
2764   if test -s conftest.err; then
2765     ac_cpp_err=$ac_c_preproc_warn_flag
2766   else
2767     ac_cpp_err=
2768   fi
2769 else
2770   ac_cpp_err=yes
2771 fi
2772 if test -z "$ac_cpp_err"; then
2773   # Broken: success on invalid input.
2774 continue
2775 else
2776   echo "$as_me: failed program was:" >&5
2777   cat conftest.$ac_ext >&5
2778   # Passes both tests.
2779 ac_preproc_ok=:
2780 break
2781 fi
2782 rm -f conftest.err conftest.$ac_ext
2783
2784 done
2785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786 rm -f conftest.err conftest.$ac_ext
2787 if $ac_preproc_ok; then
2788   break
2789 fi
2790
2791     done
2792     ac_cv_prog_CPP=$CPP
2793
2794 fi
2795   CPP=$ac_cv_prog_CPP
2796 else
2797   ac_cv_prog_CPP=$CPP
2798 fi
2799 echo "$as_me:$LINENO: result: $CPP" >&5
2800 echo "${ECHO_T}$CPP" >&6
2801 ac_preproc_ok=false
2802 for ac_c_preproc_warn_flag in '' yes
2803 do
2804   # Use a header file that comes with gcc, so configuring glibc
2805   # with a fresh cross-compiler works.
2806   # On the NeXT, cc -E runs the code through the compiler's parser,
2807   # not just through cpp. "Syntax error" is here to catch this case.
2808   cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2810 #include "confdefs.h"
2811 #include <assert.h>
2812                      Syntax error
2813 _ACEOF
2814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816   ac_status=$?
2817   egrep -v '^ *\+' conftest.er1 >conftest.err
2818   rm -f conftest.er1
2819   cat conftest.err >&5
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); } >/dev/null; then
2822   if test -s conftest.err; then
2823     ac_cpp_err=$ac_c_preproc_warn_flag
2824   else
2825     ac_cpp_err=
2826   fi
2827 else
2828   ac_cpp_err=yes
2829 fi
2830 if test -z "$ac_cpp_err"; then
2831   :
2832 else
2833   echo "$as_me: failed program was:" >&5
2834   cat conftest.$ac_ext >&5
2835   # Broken: fails on valid input.
2836 continue
2837 fi
2838 rm -f conftest.err conftest.$ac_ext
2839
2840   # OK, works on sane cases.  Now check whether non-existent headers
2841   # can be detected and how.
2842   cat >conftest.$ac_ext <<_ACEOF
2843 #line $LINENO "configure"
2844 #include "confdefs.h"
2845 #include <ac_nonexistent.h>
2846 _ACEOF
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2849   ac_status=$?
2850   egrep -v '^ *\+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } >/dev/null; then
2855   if test -s conftest.err; then
2856     ac_cpp_err=$ac_c_preproc_warn_flag
2857   else
2858     ac_cpp_err=
2859   fi
2860 else
2861   ac_cpp_err=yes
2862 fi
2863 if test -z "$ac_cpp_err"; then
2864   # Broken: success on invalid input.
2865 continue
2866 else
2867   echo "$as_me: failed program was:" >&5
2868   cat conftest.$ac_ext >&5
2869   # Passes both tests.
2870 ac_preproc_ok=:
2871 break
2872 fi
2873 rm -f conftest.err conftest.$ac_ext
2874
2875 done
2876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2877 rm -f conftest.err conftest.$ac_ext
2878 if $ac_preproc_ok; then
2879   :
2880 else
2881   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2882 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2883    { (exit 1); exit 1; }; }
2884 fi
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891
2892
2893 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2894 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2895 if test "${ac_cv_header_stdc+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   cat >conftest.$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2900 #include "confdefs.h"
2901 #include <stdlib.h>
2902 #include <stdarg.h>
2903 #include <string.h>
2904 #include <float.h>
2905
2906 _ACEOF
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909   ac_status=$?
2910   egrep -v '^ *\+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } >/dev/null; then
2915   if test -s conftest.err; then
2916     ac_cpp_err=$ac_c_preproc_warn_flag
2917   else
2918     ac_cpp_err=
2919   fi
2920 else
2921   ac_cpp_err=yes
2922 fi
2923 if test -z "$ac_cpp_err"; then
2924   ac_cv_header_stdc=yes
2925 else
2926   echo "$as_me: failed program was:" >&5
2927   cat conftest.$ac_ext >&5
2928   ac_cv_header_stdc=no
2929 fi
2930 rm -f conftest.err conftest.$ac_ext
2931
2932 if test $ac_cv_header_stdc = yes; then
2933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2936 #include "confdefs.h"
2937 #include <string.h>
2938
2939 _ACEOF
2940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2941   egrep "memchr" >/dev/null 2>&1; then
2942   :
2943 else
2944   ac_cv_header_stdc=no
2945 fi
2946 rm -f conftest*
2947
2948 fi
2949
2950 if test $ac_cv_header_stdc = yes; then
2951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2952   cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 #include "confdefs.h"
2955 #include <stdlib.h>
2956
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959   egrep "free" >/dev/null 2>&1; then
2960   :
2961 else
2962   ac_cv_header_stdc=no
2963 fi
2964 rm -f conftest*
2965
2966 fi
2967
2968 if test $ac_cv_header_stdc = yes; then
2969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2970   if test "$cross_compiling" = yes; then
2971   :
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 #line $LINENO "configure"
2975 #include "confdefs.h"
2976 #include <ctype.h>
2977 #if ((' ' & 0x0FF) == 0x020)
2978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2980 #else
2981 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2982                      || ('j' <= (c) && (c) <= 'r') \
2983                      || ('s' <= (c) && (c) <= 'z'))
2984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2985 #endif
2986
2987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2988 int
2989 main ()
2990 {
2991   int i;
2992   for (i = 0; i < 256; i++)
2993     if (XOR (islower (i), ISLOWER (i))
2994         || toupper (i) != TOUPPER (i))
2995       exit(2);
2996   exit (0);
2997 }
2998 _ACEOF
2999 rm -f conftest$ac_exeext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001   (eval $ac_link) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } && { ac_try='./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   :
3011 else
3012   echo "$as_me: program exited with status $ac_status" >&5
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ( exit $ac_status )
3016 ac_cv_header_stdc=no
3017 fi
3018 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3019 fi
3020 fi
3021 fi
3022 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3023 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3024 if test $ac_cv_header_stdc = yes; then
3025
3026 cat >>confdefs.h <<\_ACEOF
3027 #define STDC_HEADERS 1
3028 _ACEOF
3029
3030 fi
3031
3032
3033
3034 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3045                   inttypes.h stdint.h unistd.h
3046 do
3047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3048 echo "$as_me:$LINENO: checking for $ac_header" >&5
3049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 #include "confdefs.h"
3056 $ac_includes_default
3057
3058 #include <$ac_header>
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3062   (eval $ac_compile) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } &&
3066          { ac_try='test -s conftest.$ac_objext'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   eval "$as_ac_Header=yes"
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 eval "$as_ac_Header=no"
3077 fi
3078 rm -f conftest.$ac_objext conftest.$ac_ext
3079 fi
3080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3083   cat >>confdefs.h <<_ACEOF
3084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3085 _ACEOF
3086
3087 fi
3088
3089 done
3090
3091
3092
3093 for ac_header in math.h
3094 do
3095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3097   echo "$as_me:$LINENO: checking for $ac_header" >&5
3098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 fi
3102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3104 else
3105   # Is the header compilable?
3106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3108 cat >conftest.$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 #include "confdefs.h"
3111 $ac_includes_default
3112 #include <$ac_header>
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116   (eval $ac_compile) 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   ac_header_compiler=yes
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3130 ac_header_compiler=no
3131 fi
3132 rm -f conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3134 echo "${ECHO_T}$ac_header_compiler" >&6
3135
3136 # Is the header present?
3137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3139 cat >conftest.$ac_ext <<_ACEOF
3140 #line $LINENO "configure"
3141 #include "confdefs.h"
3142 #include <$ac_header>
3143 _ACEOF
3144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146   ac_status=$?
3147   egrep -v '^ *\+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } >/dev/null; then
3152   if test -s conftest.err; then
3153     ac_cpp_err=$ac_c_preproc_warn_flag
3154   else
3155     ac_cpp_err=
3156   fi
3157 else
3158   ac_cpp_err=yes
3159 fi
3160 if test -z "$ac_cpp_err"; then
3161   ac_header_preproc=yes
3162 else
3163   echo "$as_me: failed program was:" >&5
3164   cat conftest.$ac_ext >&5
3165   ac_header_preproc=no
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3169 echo "${ECHO_T}$ac_header_preproc" >&6
3170
3171 # So?  What about this header?
3172 case $ac_header_compiler:$ac_header_preproc in
3173   yes:no )
3174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3178   no:yes )
3179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3185 esac
3186 echo "$as_me:$LINENO: checking for $ac_header" >&5
3187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   eval "$as_ac_Header=$ac_header_preproc"
3192 fi
3193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3195
3196 fi
3197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3198   cat >>confdefs.h <<_ACEOF
3199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3200 _ACEOF
3201  ac_math_headers="yes"
3202 else
3203   ac_math_headers="no"
3204 fi
3205
3206 done
3207
3208 if test "$ac_math_headers" != yes; then
3209     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3210 echo "$as_me: error: \"math header file not found\"" >&2;}
3211    { (exit 1); exit 1; }; }
3212 fi
3213
3214
3215 #dnl check for the gnu multiprecission (gmp) header file
3216
3217 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3218 #if test "$ac_gmp_headers" != yes; then
3219 #  dnl gmp header not found.
3220 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3221 #fi
3222
3223
3224 #AC_FUNC_OBSTACK
3225
3226
3227 for ac_header in obstack.h
3228 do
3229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3231   echo "$as_me:$LINENO: checking for $ac_header" >&5
3232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 fi
3236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3238 else
3239   # Is the header compilable?
3240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3242 cat >conftest.$ac_ext <<_ACEOF
3243 #line $LINENO "configure"
3244 #include "confdefs.h"
3245 $ac_includes_default
3246 #include <$ac_header>
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250   (eval $ac_compile) 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } &&
3254          { ac_try='test -s conftest.$ac_objext'
3255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256   (eval $ac_try) 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; }; then
3260   ac_header_compiler=yes
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3264 ac_header_compiler=no
3265 fi
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3268 echo "${ECHO_T}$ac_header_compiler" >&6
3269
3270 # Is the header present?
3271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 #include "confdefs.h"
3276 #include <$ac_header>
3277 _ACEOF
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280   ac_status=$?
3281   egrep -v '^ *\+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null; then
3286   if test -s conftest.err; then
3287     ac_cpp_err=$ac_c_preproc_warn_flag
3288   else
3289     ac_cpp_err=
3290   fi
3291 else
3292   ac_cpp_err=yes
3293 fi
3294 if test -z "$ac_cpp_err"; then
3295   ac_header_preproc=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298   cat conftest.$ac_ext >&5
3299   ac_header_preproc=no
3300 fi
3301 rm -f conftest.err conftest.$ac_ext
3302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3303 echo "${ECHO_T}$ac_header_preproc" >&6
3304
3305 # So?  What about this header?
3306 case $ac_header_compiler:$ac_header_preproc in
3307   yes:no )
3308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3312   no:yes )
3313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3315     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3319 esac
3320 echo "$as_me:$LINENO: checking for $ac_header" >&5
3321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   eval "$as_ac_Header=$ac_header_preproc"
3326 fi
3327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3329
3330 fi
3331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3332   cat >>confdefs.h <<_ACEOF
3333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3334 _ACEOF
3335  ac_obstack_headers="yes"
3336 else
3337   ac_obstack_headers="no"
3338 fi
3339
3340 done
3341
3342 if test "$ac_obstack_headers" != yes; then
3343     { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3344 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3345    { (exit 1); exit 1; }; }
3346 fi
3347
3348
3349
3350 for ac_header in alloca.h
3351 do
3352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3354   echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 fi
3359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3361 else
3362   # Is the header compilable?
3363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 #include "confdefs.h"
3368 $ac_includes_default
3369 #include <$ac_header>
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373   (eval $ac_compile) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest.$ac_objext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_header_compiler=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_header_compiler=no
3388 fi
3389 rm -f conftest.$ac_objext conftest.$ac_ext
3390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3391 echo "${ECHO_T}$ac_header_compiler" >&6
3392
3393 # Is the header present?
3394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3398 #include "confdefs.h"
3399 #include <$ac_header>
3400 _ACEOF
3401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403   ac_status=$?
3404   egrep -v '^ *\+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } >/dev/null; then
3409   if test -s conftest.err; then
3410     ac_cpp_err=$ac_c_preproc_warn_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   ac_header_preproc=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421   cat conftest.$ac_ext >&5
3422   ac_header_preproc=no
3423 fi
3424 rm -f conftest.err conftest.$ac_ext
3425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3426 echo "${ECHO_T}$ac_header_preproc" >&6
3427
3428 # So?  What about this header?
3429 case $ac_header_compiler:$ac_header_preproc in
3430   yes:no )
3431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3435   no:yes )
3436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3438     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3442 esac
3443 echo "$as_me:$LINENO: checking for $ac_header" >&5
3444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   eval "$as_ac_Header=$ac_header_preproc"
3449 fi
3450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3452
3453 fi
3454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3455   cat >>confdefs.h <<_ACEOF
3456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3457 _ACEOF
3458  ac_alloca_headers="yes"
3459 else
3460   ac_alloca_headers="no"
3461 fi
3462
3463 done
3464
3465 if test "$ac_alloca_headers" = "yes"; then
3466     cat >>confdefs.h <<\_ACEOF
3467 #define HAVE_ALLOCA_H 1
3468 _ACEOF
3469
3470 else
3471   if test "$ac_cv_header_stdc" = "no"; then
3472     { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3473 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3474    { (exit 1); exit 1; }; }
3475   fi
3476 fi
3477
3478
3479
3480 if test "$enable_firm_jni" = yes; then
3481
3482 for ac_header in jni.h
3483 do
3484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486   echo "$as_me:$LINENO: checking for $ac_header" >&5
3487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 fi
3491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3493 else
3494   # Is the header compilable?
3495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3499 #include "confdefs.h"
3500 $ac_includes_default
3501 #include <$ac_header>
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505   (eval $ac_compile) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest.$ac_objext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_header_compiler=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3519 ac_header_compiler=no
3520 fi
3521 rm -f conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3523 echo "${ECHO_T}$ac_header_compiler" >&6
3524
3525 # Is the header present?
3526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3529 #line $LINENO "configure"
3530 #include "confdefs.h"
3531 #include <$ac_header>
3532 _ACEOF
3533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535   ac_status=$?
3536   egrep -v '^ *\+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } >/dev/null; then
3541   if test -s conftest.err; then
3542     ac_cpp_err=$ac_c_preproc_warn_flag
3543   else
3544     ac_cpp_err=
3545   fi
3546 else
3547   ac_cpp_err=yes
3548 fi
3549 if test -z "$ac_cpp_err"; then
3550   ac_header_preproc=yes
3551 else
3552   echo "$as_me: failed program was:" >&5
3553   cat conftest.$ac_ext >&5
3554   ac_header_preproc=no
3555 fi
3556 rm -f conftest.err conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3558 echo "${ECHO_T}$ac_header_preproc" >&6
3559
3560 # So?  What about this header?
3561 case $ac_header_compiler:$ac_header_preproc in
3562   yes:no )
3563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3567   no:yes )
3568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3574 esac
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   eval "$as_ac_Header=$ac_header_preproc"
3581 fi
3582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3584
3585 fi
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587   cat >>confdefs.h <<_ACEOF
3588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 _ACEOF
3590  ac_jni_headers="yes"
3591 else
3592   ac_jni_headers="no"
3593 fi
3594
3595 done
3596
3597   if test "$ac_jni_headers" != yes; then
3598     { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3599 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3600    { (exit 1); exit 1; }; }
3601   fi
3602 fi
3603
3604
3605
3606 #dnl check for the gnu multiprecission (gmp) library
3607
3608 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3609 #if test "$ac_gmp_library" != yes; then
3610 #  dnl gmp library not found.
3611 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3612 #fi
3613
3614
3615 echo "$as_me:$LINENO: checking for main in -lm" >&5
3616 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3617 if test "${ac_cv_lib_m_main+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   ac_check_lib_save_LIBS=$LIBS
3621 LIBS="-lm  $LIBS"
3622 cat >conftest.$ac_ext <<_ACEOF
3623 #line $LINENO "configure"
3624 #include "confdefs.h"
3625
3626
3627 #ifdef F77_DUMMY_MAIN
3628 #  ifdef __cplusplus
3629      extern "C"
3630 #  endif
3631    int F77_DUMMY_MAIN() { return 1; }
3632 #endif
3633 int
3634 main ()
3635 {
3636 main ();
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643   (eval $ac_link) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          { ac_try='test -s conftest$ac_exeext'
3648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; }; then
3653   ac_cv_lib_m_main=yes
3654 else
3655   echo "$as_me: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657 ac_cv_lib_m_main=no
3658 fi
3659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3663 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3664 if test $ac_cv_lib_m_main = yes; then
3665   ac_m_library="yes"
3666 else
3667   ac_m_library="no"
3668 fi
3669
3670 if test "$ac_m_library" != yes; then
3671     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3672 echo "$as_me: error: \"standard math library not found\"" >&2;}
3673    { (exit 1); exit 1; }; }
3674 fi
3675
3676
3677 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3678 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3679 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_cv_prog_cc_stdc=no
3683 ac_save_CC=$CC
3684 cat >conftest.$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3687 #include <stdarg.h>
3688 #include <stdio.h>
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3695      char **p;
3696      int i;
3697 {
3698   return p[i];
3699 }
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3701 {
3702   char *s;
3703   va_list v;
3704   va_start (v,p);
3705   s = g (p, va_arg (v,int));
3706   va_end (v);
3707   return s;
3708 }
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 int argc;
3714 char **argv;
3715 #ifdef F77_DUMMY_MAIN
3716 #  ifdef __cplusplus
3717      extern "C"
3718 #  endif
3719    int F77_DUMMY_MAIN() { return 1; }
3720 #endif
3721 int
3722 main ()
3723 {
3724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 # Don't try gcc -ansi; that turns off useful extensions and
3730 # breaks some systems' header files.
3731 # AIX                   -qlanglvl=ansi
3732 # Ultrix and OSF/1      -std1
3733 # HP-UX 10.20 and later -Ae
3734 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3735 # SVR4                  -Xc -D__EXTENSIONS__
3736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 do
3738   CC="$ac_save_CC $ac_arg"
3739   rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741   (eval $ac_compile) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -s conftest.$ac_objext'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; }; then
3751   ac_cv_prog_cc_stdc=$ac_arg
3752 break
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 fi
3757 rm -f conftest.$ac_objext
3758 done
3759 rm -f conftest.$ac_ext conftest.$ac_objext
3760 CC=$ac_save_CC
3761
3762 fi
3763
3764 case "x$ac_cv_prog_cc_stdc" in
3765   x|xno)
3766     echo "$as_me:$LINENO: result: none needed" >&5
3767 echo "${ECHO_T}none needed" >&6 ;;
3768   *)
3769     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3771     CC="$CC $ac_cv_prog_cc_stdc" ;;
3772 esac
3773
3774 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3775 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3776 if test "${ac_cv_c_const+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   cat >conftest.$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3781 #include "confdefs.h"
3782
3783 #ifdef F77_DUMMY_MAIN
3784 #  ifdef __cplusplus
3785      extern "C"
3786 #  endif
3787    int F77_DUMMY_MAIN() { return 1; }
3788 #endif
3789 int
3790 main ()
3791 {
3792 /* FIXME: Include the comments suggested by Paul. */
3793 #ifndef __cplusplus
3794   /* Ultrix mips cc rejects this.  */
3795   typedef int charset[2];
3796   const charset x;
3797   /* SunOS 4.1.1 cc rejects this.  */
3798   char const *const *ccp;
3799   char **p;
3800   /* NEC SVR4.0.2 mips cc rejects this.  */
3801   struct point {int x, y;};
3802   static struct point const zero = {0,0};
3803   /* AIX XL C 1.02.0.0 rejects this.
3804      It does not let you subtract one const X* pointer from another in
3805      an arm of an if-expression whose if-part is not a constant
3806      expression */
3807   const char *g = "string";
3808   ccp = &g + (g ? g-g : 0);
3809   /* HPUX 7.0 cc rejects these. */
3810   ++ccp;
3811   p = (char**) ccp;
3812   ccp = (char const *const *) p;
3813   { /* SCO 3.2v4 cc rejects this.  */
3814     char *t;
3815     char const *s = 0 ? (char *) 0 : (char const *) 0;
3816
3817     *t++ = 0;
3818   }
3819   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3820     int x[] = {25, 17};
3821     const int *foo = &x[0];
3822     ++foo;
3823   }
3824   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3825     typedef const int *iptr;
3826     iptr p = 0;
3827     ++p;
3828   }
3829   { /* AIX XL C 1.02.0.0 rejects this saying
3830        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3831     struct s { int j; const int *ap[3]; };
3832     struct s *b; b->j = 5;
3833   }
3834   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3835     const int foo = 10;
3836   }
3837 #endif
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845   (eval $ac_compile) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -s conftest.$ac_objext'
3850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851   (eval $ac_try) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }; }; then
3855   ac_cv_c_const=yes
3856 else
3857   echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_c_const=no
3860 fi
3861 rm -f conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3864 echo "${ECHO_T}$ac_cv_c_const" >&6
3865 if test $ac_cv_c_const = no; then
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define const
3869 _ACEOF
3870
3871 fi
3872
3873 echo "$as_me:$LINENO: checking for working volatile" >&5
3874 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3875 if test "${ac_cv_c_volatile+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   cat >conftest.$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 #include "confdefs.h"
3881
3882 #ifdef F77_DUMMY_MAIN
3883 #  ifdef __cplusplus
3884      extern "C"
3885 #  endif
3886    int F77_DUMMY_MAIN() { return 1; }
3887 #endif
3888 int
3889 main ()
3890 {
3891
3892 volatile int x;
3893 int * volatile y;
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900   (eval $ac_compile) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } &&
3904          { ac_try='test -s conftest.$ac_objext'
3905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906   (eval $ac_try) 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   ac_cv_c_volatile=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 ac_cv_c_volatile=no
3915 fi
3916 rm -f conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3919 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3920 if test $ac_cv_c_volatile = no; then
3921
3922 cat >>confdefs.h <<\_ACEOF
3923 #define volatile
3924 _ACEOF
3925
3926 fi
3927
3928 echo "$as_me:$LINENO: checking for inline" >&5
3929 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3930 if test "${ac_cv_c_inline+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   ac_cv_c_inline=no
3934 for ac_kw in inline __inline__ __inline; do
3935   cat >conftest.$ac_ext <<_ACEOF
3936 #line $LINENO "configure"
3937 #include "confdefs.h"
3938 #ifndef __cplusplus
3939 static $ac_kw int static_foo () {return 0; }
3940 $ac_kw int foo () {return 0; }
3941 #endif
3942
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946   (eval $ac_compile) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } &&
3950          { ac_try='test -s conftest.$ac_objext'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; }; then
3956   ac_cv_c_inline=$ac_kw; break
3957 else
3958   echo "$as_me: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 fi
3961 rm -f conftest.$ac_objext conftest.$ac_ext
3962 done
3963
3964 fi
3965 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3966 echo "${ECHO_T}$ac_cv_c_inline" >&6
3967 case $ac_cv_c_inline in
3968   inline | yes) ;;
3969   no)
3970 cat >>confdefs.h <<\_ACEOF
3971 #define inline
3972 _ACEOF
3973  ;;
3974   *)  cat >>confdefs.h <<_ACEOF
3975 #define inline $ac_cv_c_inline
3976 _ACEOF
3977  ;;
3978 esac
3979
3980 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3982 if test "${ac_cv_c_bigendian+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   # See if sys/param.h defines the BYTE_ORDER macro.
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line $LINENO "configure"
3988 #include "confdefs.h"
3989 #include <sys/types.h>
3990 #include <sys/param.h>
3991
3992 #ifdef F77_DUMMY_MAIN
3993 #  ifdef __cplusplus
3994      extern "C"
3995 #  endif
3996    int F77_DUMMY_MAIN() { return 1; }
3997 #endif
3998 int
3999 main ()
4000 {
4001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4002  bogus endian macros
4003 #endif
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011   (eval $ac_compile) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } &&
4015          { ac_try='test -s conftest.$ac_objext'
4016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; }; then
4021   # It does; now see whether it defined to BIG_ENDIAN or not.
4022 cat >conftest.$ac_ext <<_ACEOF
4023 #line $LINENO "configure"
4024 #include "confdefs.h"
4025 #include <sys/types.h>
4026 #include <sys/param.h>
4027
4028 #ifdef F77_DUMMY_MAIN
4029 #  ifdef __cplusplus
4030      extern "C"
4031 #  endif
4032    int F77_DUMMY_MAIN() { return 1; }
4033 #endif
4034 int
4035 main ()
4036 {
4037 #if BYTE_ORDER != BIG_ENDIAN
4038  not big endian
4039 #endif
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047   (eval $ac_compile) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } &&
4051          { ac_try='test -s conftest.$ac_objext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_cv_c_bigendian=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 ac_cv_c_bigendian=no
4062 fi
4063 rm -f conftest.$ac_objext conftest.$ac_ext
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 # It does not; compile a test program.
4068 if test "$cross_compiling" = yes; then
4069   # try to guess the endianess by grep'ing values into an object file
4070   ac_cv_c_bigendian=unknown
4071   cat >conftest.$ac_ext <<_ACEOF
4072 #line $LINENO "configure"
4073 #include "confdefs.h"
4074 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4075 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4076 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4077 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4078 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4079 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4080 #ifdef F77_DUMMY_MAIN
4081 #  ifdef __cplusplus
4082      extern "C"
4083 #  endif
4084    int F77_DUMMY_MAIN() { return 1; }
4085 #endif
4086 int
4087 main ()
4088 {
4089  _ascii (); _ebcdic ();
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096   (eval $ac_compile) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } &&
4100          { ac_try='test -s conftest.$ac_objext'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4107   ac_cv_c_bigendian=yes
4108 fi
4109 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4110   if test "$ac_cv_c_bigendian" = unknown; then
4111     ac_cv_c_bigendian=no
4112   else
4113     # finding both strings is unlikely to happen, but who knows?
4114     ac_cv_c_bigendian=unknown
4115   fi
4116 fi
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4120 fi
4121 rm -f conftest.$ac_objext conftest.$ac_ext
4122 else
4123   cat >conftest.$ac_ext <<_ACEOF
4124 #line $LINENO "configure"
4125 #include "confdefs.h"
4126 int
4127 main ()
4128 {
4129   /* Are we little or big endian?  From Harbison&Steele.  */
4130   union
4131   {
4132     long l;
4133     char c[sizeof (long)];
4134   } u;
4135   u.l = 1;
4136   exit (u.c[sizeof (long) - 1] == 1);
4137 }
4138 _ACEOF
4139 rm -f conftest$ac_exeext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141   (eval $ac_link) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   ac_cv_c_bigendian=no
4151 else
4152   echo "$as_me: program exited with status $ac_status" >&5
4153 echo "$as_me: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4155 ( exit $ac_status )
4156 ac_cv_c_bigendian=yes
4157 fi
4158 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 fi
4161 rm -f conftest.$ac_objext conftest.$ac_ext
4162 fi
4163 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4164 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4165 case $ac_cv_c_bigendian in
4166   yes)
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define WORDS_BIGENDIAN 1
4170 _ACEOF
4171  ;;
4172   no)
4173      ;;
4174   *)
4175     { { echo "$as_me:$LINENO: error: unknown endianess
4176 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4177 echo "$as_me: error: unknown endianess
4178 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4179    { (exit 1); exit 1; }; } ;;
4180 esac
4181
4182 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4183 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4184 if test "${ac_cv_c_long_double+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4189 #include "confdefs.h"
4190 #include <float.h>
4191           long double foo = 0.0;
4192 #ifdef F77_DUMMY_MAIN
4193 #  ifdef __cplusplus
4194      extern "C"
4195 #  endif
4196    int F77_DUMMY_MAIN() { return 1; }
4197 #endif
4198 int
4199 main ()
4200 {
4201 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
4202           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4203           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4204 test_array [0] = 0
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212   (eval $ac_compile) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } &&
4216          { ac_try='test -s conftest.$ac_objext'
4217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218   (eval $ac_try) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; }; then
4222   ac_cv_c_long_double=yes
4223 else
4224   echo "$as_me: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 ac_cv_c_long_double=no
4227 fi
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4229 fi
4230 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4231 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4232 if test $ac_cv_c_long_double = yes; then
4233
4234 cat >>confdefs.h <<\_ACEOF
4235 #define HAVE_LONG_DOUBLE 1
4236 _ACEOF
4237
4238 fi
4239
4240
4241
4242
4243 echo "$as_me:$LINENO: checking for strerror" >&5
4244 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4245 if test "${ac_cv_func_strerror+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 #include "confdefs.h"
4251 /* System header to define __stub macros and hopefully few prototypes,
4252     which can conflict with char strerror (); below.  */
4253 #include <assert.h>
4254 /* Override any gcc2 internal prototype to avoid an error.  */
4255 #ifdef __cplusplus
4256 extern "C"
4257 #endif
4258 /* We use char because int might match the return type of a gcc2
4259    builtin and then its argument prototype would still apply.  */
4260 char strerror ();
4261 char (*f) ();
4262
4263 #ifdef F77_DUMMY_MAIN
4264 #  ifdef __cplusplus
4265      extern "C"
4266 #  endif
4267    int F77_DUMMY_MAIN() { return 1; }
4268 #endif
4269 int
4270 main ()
4271 {
4272 /* The GNU C library defines this for functions which it implements
4273     to always fail with ENOSYS.  Some functions are actually named
4274     something starting with __ and the normal name is an alias.  */
4275 #if defined (__stub_strerror) || defined (__stub___strerror)
4276 choke me
4277 #else
4278 f = strerror;
4279 #endif
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287   (eval $ac_link) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -s conftest$ac_exeext'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_func_strerror=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 ac_cv_func_strerror=no
4302 fi
4303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4304 fi
4305 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4306 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4307 if test $ac_cv_func_strerror = yes; then
4308   :
4309 else
4310   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4311 echo "$as_me: error: \"need strerror function\"" >&2;}
4312    { (exit 1); exit 1; }; }
4313
4314 fi
4315
4316
4317
4318
4319
4320 ac_config_files="$ac_config_files $ac_output_file"
4321 ac_config_commands="$ac_config_commands default"
4322 cat >confcache <<\_ACEOF
4323 # This file is a shell script that caches the results of configure
4324 # tests run on this system so they can be shared between configure
4325 # scripts and configure runs, see configure's option --config-cache.
4326 # It is not useful on other systems.  If it contains results you don't
4327 # want to keep, you may remove or edit it.
4328 #
4329 # config.status only pays attention to the cache file if you give it
4330 # the --recheck option to rerun configure.
4331 #
4332 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4334 # following values.
4335
4336 _ACEOF
4337
4338 # The following way of writing the cache mishandles newlines in values,
4339 # but we know of no workaround that is simple, portable, and efficient.
4340 # So, don't put newlines in cache variables' values.
4341 # Ultrix sh set writes to stderr and can't be redirected directly,
4342 # and sets the high bit in the cache file unless we assign to the vars.
4343 {
4344   (set) 2>&1 |
4345     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4346     *ac_space=\ *)
4347       # `set' does not quote correctly, so add quotes (double-quote
4348       # substitution turns \\\\ into \\, and sed turns \\ into \).
4349       sed -n \
4350         "s/'/'\\\\''/g;
4351           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4352       ;;
4353     *)
4354       # `set' quotes correctly as required by POSIX, so do not add quotes.
4355       sed -n \
4356         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4357       ;;
4358     esac;
4359 } |
4360   sed '
4361      t clear
4362      : clear
4363      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4364      t end
4365      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4366      : end' >>confcache
4367 if cmp -s $cache_file confcache; then :; else
4368   if test -w $cache_file; then
4369     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4370     cat confcache >$cache_file
4371   else
4372     echo "not updating unwritable cache $cache_file"
4373   fi
4374 fi
4375 rm -f confcache
4376
4377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4378 # Let make expand exec_prefix.
4379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4380
4381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4383 # trailing colons and then remove the whole line if VPATH becomes empty
4384 # (actually we leave an empty line to preserve line numbers).
4385 if test "x$srcdir" = x.; then
4386   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4387 s/:*\$(srcdir):*/:/;
4388 s/:*\${srcdir}:*/:/;
4389 s/:*@srcdir@:*/:/;
4390 s/^\([^=]*=[    ]*\):*/\1/;
4391 s/:*$//;
4392 s/^[^=]*=[      ]*$//;
4393 }'
4394 fi
4395
4396 DEFS=-DHAVE_CONFIG_H
4397
4398
4399 : ${CONFIG_STATUS=./config.status}
4400 ac_clean_files_save=$ac_clean_files
4401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4402 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4403 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4404 cat >$CONFIG_STATUS <<_ACEOF
4405 #! $SHELL
4406 # Generated by $as_me.
4407 # Run this file to recreate the current configuration.
4408 # Compiler output produced by configure, useful for debugging
4409 # configure, is in config.log if it exists.
4410
4411 debug=false
4412 SHELL=\${CONFIG_SHELL-$SHELL}
4413 _ACEOF
4414
4415 cat >>$CONFIG_STATUS <<\_ACEOF
4416
4417 ## --------------------- ##
4418 ## M4sh Initialization.  ##
4419 ## --------------------- ##
4420
4421 # Be Bourne compatible
4422 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4423   emulate sh
4424   NULLCMD=:
4425 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4426   set -o posix
4427 fi
4428
4429 # NLS nuisances.
4430 # Support unset when possible.
4431 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4432   as_unset=unset
4433 else
4434   as_unset=false
4435 fi
4436
4437 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4438     { $as_unset LANG || test "${LANG+set}" != set; } ||
4439       { LANG=C; export LANG; }
4440 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4441     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4442       { LC_ALL=C; export LC_ALL; }
4443 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4444     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4445       { LC_TIME=C; export LC_TIME; }
4446 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4447     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4448       { LC_CTYPE=C; export LC_CTYPE; }
4449 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4450     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4451       { LANGUAGE=C; export LANGUAGE; }
4452 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4453     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4454       { LC_COLLATE=C; export LC_COLLATE; }
4455 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4456     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4457       { LC_NUMERIC=C; export LC_NUMERIC; }
4458 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4459     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4460       { LC_MESSAGES=C; export LC_MESSAGES; }
4461
4462
4463 # Name of the executable.
4464 as_me=`(basename "$0") 2>/dev/null ||
4465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4466          X"$0" : 'X\(//\)$' \| \
4467          X"$0" : 'X\(/\)$' \| \
4468          .     : '\(.\)' 2>/dev/null ||
4469 echo X/"$0" |
4470     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4471           /^X\/\(\/\/\)$/{ s//\1/; q; }
4472           /^X\/\(\/\).*/{ s//\1/; q; }
4473           s/.*/./; q'`
4474
4475 # PATH needs CR, and LINENO needs CR and PATH.
4476 # Avoid depending upon Character Ranges.
4477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4480 as_cr_digits='0123456789'
4481 as_cr_alnum=$as_cr_Letters$as_cr_digits
4482
4483 # The user is always right.
4484 if test "${PATH_SEPARATOR+set}" != set; then
4485   echo "#! /bin/sh" >conftest.sh
4486   echo  "exit 0"   >>conftest.sh
4487   chmod +x conftest.sh
4488   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4489     PATH_SEPARATOR=';'
4490   else
4491     PATH_SEPARATOR=:
4492   fi
4493   rm -f conftest.sh
4494 fi
4495
4496
4497   as_lineno_1=$LINENO
4498   as_lineno_2=$LINENO
4499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4500   test "x$as_lineno_1" != "x$as_lineno_2" &&
4501   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4502   # Find who we are.  Look in the path if we contain no path at all
4503   # relative or not.
4504   case $0 in
4505     *[\\/]* ) as_myself=$0 ;;
4506     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4512 done
4513
4514        ;;
4515   esac
4516   # We did not find ourselves, most probably we were run as `sh COMMAND'
4517   # in which case we are not to be found in the path.
4518   if test "x$as_myself" = x; then
4519     as_myself=$0
4520   fi
4521   if test ! -f "$as_myself"; then
4522     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4524    { (exit 1); exit 1; }; }
4525   fi
4526   case $CONFIG_SHELL in
4527   '')
4528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for as_base in sh bash ksh sh5; do
4534          case $as_dir in
4535          /*)
4536            if ("$as_dir/$as_base" -c '
4537   as_lineno_1=$LINENO
4538   as_lineno_2=$LINENO
4539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4540   test "x$as_lineno_1" != "x$as_lineno_2" &&
4541   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4542              CONFIG_SHELL=$as_dir/$as_base
4543              export CONFIG_SHELL
4544              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4545            fi;;
4546          esac
4547        done
4548 done
4549 ;;
4550   esac
4551
4552   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4553   # uniformly replaced by the line number.  The first 'sed' inserts a
4554   # line-number line before each line; the second 'sed' does the real
4555   # work.  The second script uses 'N' to pair each line-number line
4556   # with the numbered line, and appends trailing '-' during
4557   # substitution so that $LINENO is not a special case at line end.
4558   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4559   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4560   sed '=' <$as_myself |
4561     sed '
4562       N
4563       s,$,-,
4564       : loop
4565       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4566       t loop
4567       s,-$,,
4568       s,^['$as_cr_digits']*\n,,
4569     ' >$as_me.lineno &&
4570   chmod +x $as_me.lineno ||
4571     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4572 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4573    { (exit 1); exit 1; }; }
4574
4575   # Don't try to exec as it changes $[0], causing all sort of problems
4576   # (the dirname of $[0] is not the place where we might find the
4577   # original and so on.  Autoconf is especially sensible to this).
4578   . ./$as_me.lineno
4579   # Exit status is that of the last command.
4580   exit
4581 }
4582
4583
4584 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4585   *c*,-n*) ECHO_N= ECHO_C='
4586 ' ECHO_T='      ' ;;
4587   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4588   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4589 esac
4590
4591 if expr a : '\(a\)' >/dev/null 2>&1; then
4592   as_expr=expr
4593 else
4594   as_expr=false
4595 fi
4596
4597 rm -f conf$$ conf$$.exe conf$$.file
4598 echo >conf$$.file
4599 if ln -s conf$$.file conf$$ 2>/dev/null; then
4600   # We could just check for DJGPP; but this test a) works b) is more generic
4601   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4602   if test -f conf$$.exe; then
4603     # Don't use ln at all; we don't have any links
4604     as_ln_s='cp -p'
4605   else
4606     as_ln_s='ln -s'
4607   fi
4608 elif ln conf$$.file conf$$ 2>/dev/null; then
4609   as_ln_s=ln
4610 else
4611   as_ln_s='cp -p'
4612 fi
4613 rm -f conf$$ conf$$.exe conf$$.file
4614
4615 as_executable_p="test -f"
4616
4617 # Sed expression to map a string onto a valid CPP name.
4618 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4619
4620 # Sed expression to map a string onto a valid variable name.
4621 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4622
4623
4624 # IFS
4625 # We need space, tab and new line, in precisely that order.
4626 as_nl='
4627 '
4628 IFS="   $as_nl"
4629
4630 # CDPATH.
4631 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4632
4633 exec 6>&1
4634
4635 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4636 # report actual input values of CONFIG_FILES etc. instead of their
4637 # values after options handling.  Logging --version etc. is OK.
4638 exec 5>>config.log
4639 {
4640   echo
4641   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4642 ## Running $as_me. ##
4643 _ASBOX
4644 } >&5
4645 cat >&5 <<_CSEOF
4646
4647 This file was extended by libfirm $as_me 0.3.0, which was
4648 generated by GNU Autoconf 2.53.  Invocation command line was
4649
4650   CONFIG_FILES    = $CONFIG_FILES
4651   CONFIG_HEADERS  = $CONFIG_HEADERS
4652   CONFIG_LINKS    = $CONFIG_LINKS
4653   CONFIG_COMMANDS = $CONFIG_COMMANDS
4654   $ $0 $@
4655
4656 _CSEOF
4657 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4658 echo >&5
4659 _ACEOF
4660
4661 # Files that config.status was made for.
4662 if test -n "$ac_config_files"; then
4663   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4664 fi
4665
4666 if test -n "$ac_config_headers"; then
4667   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4668 fi
4669
4670 if test -n "$ac_config_links"; then
4671   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4672 fi
4673
4674 if test -n "$ac_config_commands"; then
4675   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4676 fi
4677
4678 cat >>$CONFIG_STATUS <<\_ACEOF
4679
4680 ac_cs_usage="\
4681 \`$as_me' instantiates files from templates according to the
4682 current configuration.
4683
4684 Usage: $0 [OPTIONS] [FILE]...
4685
4686   -h, --help       print this help, then exit
4687   -V, --version    print version number, then exit
4688   -d, --debug      don't remove temporary files
4689       --recheck    update $as_me by reconfiguring in the same conditions
4690   --file=FILE[:TEMPLATE]
4691                    instantiate the configuration file FILE
4692   --header=FILE[:TEMPLATE]
4693                    instantiate the configuration header FILE
4694
4695 Configuration files:
4696 $config_files
4697
4698 Configuration headers:
4699 $config_headers
4700
4701 Configuration commands:
4702 $config_commands
4703
4704 Report bugs to <bug-autoconf@gnu.org>."
4705 _ACEOF
4706
4707 cat >>$CONFIG_STATUS <<_ACEOF
4708 ac_cs_version="\\
4709 libfirm config.status 0.3.0
4710 configured by $0, generated by GNU Autoconf 2.53,
4711   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4712
4713 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4714 Free Software Foundation, Inc.
4715 This config.status script is free software; the Free Software Foundation
4716 gives unlimited permission to copy, distribute and modify it."
4717 srcdir=$srcdir
4718 INSTALL="$INSTALL"
4719 _ACEOF
4720
4721 cat >>$CONFIG_STATUS <<\_ACEOF
4722 # If no file are specified by the user, then we need to provide default
4723 # value.  By we need to know if files were specified by the user.
4724 ac_need_defaults=:
4725 while test $# != 0
4726 do
4727   case $1 in
4728   --*=*)
4729     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4730     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4731     shift
4732     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4733     shift
4734     ;;
4735   -*);;
4736   *) # This is not an option, so the user has probably given explicit
4737      # arguments.
4738      ac_need_defaults=false;;
4739   esac
4740
4741   case $1 in
4742   # Handling of the options.
4743 _ACEOF
4744 cat >>$CONFIG_STATUS <<_ACEOF
4745   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4746     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4747     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4748 _ACEOF
4749 cat >>$CONFIG_STATUS <<\_ACEOF
4750   --version | --vers* | -V )
4751     echo "$ac_cs_version"; exit 0 ;;
4752   --he | --h)
4753     # Conflict between --help and --header
4754     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4755 Try \`$0 --help' for more information." >&5
4756 echo "$as_me: error: ambiguous option: $1
4757 Try \`$0 --help' for more information." >&2;}
4758    { (exit 1); exit 1; }; };;
4759   --help | --hel | -h )
4760     echo "$ac_cs_usage"; exit 0 ;;
4761   --debug | --d* | -d )
4762     debug=: ;;
4763   --file | --fil | --fi | --f )
4764     shift
4765     CONFIG_FILES="$CONFIG_FILES $1"
4766     ac_need_defaults=false;;
4767   --header | --heade | --head | --hea )
4768     shift
4769     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4770     ac_need_defaults=false;;
4771
4772   # This is an error.
4773   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4774 Try \`$0 --help' for more information." >&5
4775 echo "$as_me: error: unrecognized option: $1
4776 Try \`$0 --help' for more information." >&2;}
4777    { (exit 1); exit 1; }; } ;;
4778
4779   *) ac_config_targets="$ac_config_targets $1" ;;
4780
4781   esac
4782   shift
4783 done
4784
4785 _ACEOF
4786
4787
4788
4789
4790
4791 cat >>$CONFIG_STATUS <<\_ACEOF
4792 for ac_config_target in $ac_config_targets
4793 do
4794   case "$ac_config_target" in
4795   # Handling of arguments.
4796   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4797   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4798   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4799   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4800 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4801    { (exit 1); exit 1; }; };;
4802   esac
4803 done
4804
4805 # If the user did not use the arguments to specify the items to instantiate,
4806 # then the envvar interface is used.  Set only those that are not.
4807 # We use the long form for the default assignment because of an extremely
4808 # bizarre bug on SunOS 4.1.3.
4809 if $ac_need_defaults; then
4810   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4811   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4812   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4813 fi
4814
4815 # Create a temporary directory, and hook for its removal unless debugging.
4816 $debug ||
4817 {
4818   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4819   trap '{ (exit 1); exit 1; }' 1 2 13 15
4820 }
4821
4822 # Create a (secure) tmp directory for tmp files.
4823 : ${TMPDIR=/tmp}
4824 {
4825   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4826   test -n "$tmp" && test -d "$tmp"
4827 }  ||
4828 {
4829   tmp=$TMPDIR/cs$$-$RANDOM
4830   (umask 077 && mkdir $tmp)
4831 } ||
4832 {
4833    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4834    { (exit 1); exit 1; }
4835 }
4836
4837 _ACEOF
4838
4839 cat >>$CONFIG_STATUS <<_ACEOF
4840
4841 #
4842 # CONFIG_FILES section.
4843 #
4844
4845 # No need to generate the scripts if there are no CONFIG_FILES.
4846 # This happens for instance when ./config.status config.h
4847 if test -n "\$CONFIG_FILES"; then
4848   # Protect against being on the right side of a sed subst in config.status.
4849   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4850    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4851 s,@SHELL@,$SHELL,;t t
4852 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4853 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4854 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4855 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4856 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4857 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4858 s,@exec_prefix@,$exec_prefix,;t t
4859 s,@prefix@,$prefix,;t t
4860 s,@program_transform_name@,$program_transform_name,;t t
4861 s,@bindir@,$bindir,;t t
4862 s,@sbindir@,$sbindir,;t t
4863 s,@libexecdir@,$libexecdir,;t t
4864 s,@datadir@,$datadir,;t t
4865 s,@sysconfdir@,$sysconfdir,;t t
4866 s,@sharedstatedir@,$sharedstatedir,;t t
4867 s,@localstatedir@,$localstatedir,;t t
4868 s,@libdir@,$libdir,;t t
4869 s,@includedir@,$includedir,;t t
4870 s,@oldincludedir@,$oldincludedir,;t t
4871 s,@infodir@,$infodir,;t t
4872 s,@mandir@,$mandir,;t t
4873 s,@build_alias@,$build_alias,;t t
4874 s,@host_alias@,$host_alias,;t t
4875 s,@target_alias@,$target_alias,;t t
4876 s,@DEFS@,$DEFS,;t t
4877 s,@ECHO_C@,$ECHO_C,;t t
4878 s,@ECHO_N@,$ECHO_N,;t t
4879 s,@ECHO_T@,$ECHO_T,;t t
4880 s,@LIBS@,$LIBS,;t t
4881 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4882 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4883 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4884 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4885 s,@enable_firm_jni@,$enable_firm_jni,;t t
4886 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
4887 s,@disable_libiberty@,$disable_libiberty,;t t
4888 s,@enable_statistics@,$enable_statistics,;t t
4889 s,@CC@,$CC,;t t
4890 s,@CFLAGS@,$CFLAGS,;t t
4891 s,@LDFLAGS@,$LDFLAGS,;t t
4892 s,@CPPFLAGS@,$CPPFLAGS,;t t
4893 s,@ac_ct_CC@,$ac_ct_CC,;t t
4894 s,@EXEEXT@,$EXEEXT,;t t
4895 s,@OBJEXT@,$OBJEXT,;t t
4896 s,@LD@,$LD,;t t
4897 s,@ac_ct_LD@,$ac_ct_LD,;t t
4898 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4899 s,@AR@,$AR,;t t
4900 s,@TAR@,$TAR,;t t
4901 s,@RANLIB@,$RANLIB,;t t
4902 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4903 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4904 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4905 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4906 s,@LN_S@,$LN_S,;t t
4907 s,@DOXYGEN@,$DOXYGEN,;t t
4908 s,@DOT@,$DOT,;t t
4909 s,@JAVAC@,$JAVAC,;t t
4910 s,@JAVAH@,$JAVAH,;t t
4911 s,@CPP@,$CPP,;t t
4912 CEOF
4913
4914 _ACEOF
4915
4916   cat >>$CONFIG_STATUS <<\_ACEOF
4917   # Split the substitutions into bite-sized pieces for seds with
4918   # small command number limits, like on Digital OSF/1 and HP-UX.
4919   ac_max_sed_lines=48
4920   ac_sed_frag=1 # Number of current file.
4921   ac_beg=1 # First line for current file.
4922   ac_end=$ac_max_sed_lines # Line after last line for current file.
4923   ac_more_lines=:
4924   ac_sed_cmds=
4925   while $ac_more_lines; do
4926     if test $ac_beg -gt 1; then
4927       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4928     else
4929       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4930     fi
4931     if test ! -s $tmp/subs.frag; then
4932       ac_more_lines=false
4933     else
4934       # The purpose of the label and of the branching condition is to
4935       # speed up the sed processing (if there are no `@' at all, there
4936       # is no need to browse any of the substitutions).
4937       # These are the two extra sed commands mentioned above.
4938       (echo ':t
4939   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4940       if test -z "$ac_sed_cmds"; then
4941         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4942       else
4943         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4944       fi
4945       ac_sed_frag=`expr $ac_sed_frag + 1`
4946       ac_beg=$ac_end
4947       ac_end=`expr $ac_end + $ac_max_sed_lines`
4948     fi
4949   done
4950   if test -z "$ac_sed_cmds"; then
4951     ac_sed_cmds=cat
4952   fi
4953 fi # test -n "$CONFIG_FILES"
4954
4955 _ACEOF
4956 cat >>$CONFIG_STATUS <<\_ACEOF
4957 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4958   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4959   case $ac_file in
4960   - | *:- | *:-:* ) # input from stdin
4961         cat >$tmp/stdin
4962         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4963         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4964   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4965         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4966   * )   ac_file_in=$ac_file.in ;;
4967   esac
4968
4969   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4970   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4972          X"$ac_file" : 'X\(//\)[^/]' \| \
4973          X"$ac_file" : 'X\(//\)$' \| \
4974          X"$ac_file" : 'X\(/\)' \| \
4975          .     : '\(.\)' 2>/dev/null ||
4976 echo X"$ac_file" |
4977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4978           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4979           /^X\(\/\/\)$/{ s//\1/; q; }
4980           /^X\(\/\).*/{ s//\1/; q; }
4981           s/.*/./; q'`
4982   { case "$ac_dir" in
4983   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4984   *)                      as_incr_dir=.;;
4985 esac
4986 as_dummy="$ac_dir"
4987 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4988   case $as_mkdir_dir in
4989     # Skip DOS drivespec
4990     ?:) as_incr_dir=$as_mkdir_dir ;;
4991     *)
4992       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4993       test -d "$as_incr_dir" ||
4994         mkdir "$as_incr_dir" ||
4995         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4996 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4997    { (exit 1); exit 1; }; }
4998     ;;
4999   esac
5000 done; }
5001
5002   ac_builddir=.
5003
5004 if test "$ac_dir" != .; then
5005   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5006   # A "../" for each directory in $ac_dir_suffix.
5007   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5008 else
5009   ac_dir_suffix= ac_top_builddir=
5010 fi
5011
5012 case $srcdir in
5013   .)  # No --srcdir option.  We are building in place.
5014     ac_srcdir=.
5015     if test -z "$ac_top_builddir"; then
5016        ac_top_srcdir=.
5017     else
5018        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5019     fi ;;
5020   [\\/]* | ?:[\\/]* )  # Absolute path.
5021     ac_srcdir=$srcdir$ac_dir_suffix;
5022     ac_top_srcdir=$srcdir ;;
5023   *) # Relative path.
5024     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5025     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5026 esac
5027 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5028 # absolute.
5029 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5030 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5031 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5032 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5033
5034
5035   case $INSTALL in
5036   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5037   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5038   esac
5039
5040   if test x"$ac_file" != x-; then
5041     { echo "$as_me:$LINENO: creating $ac_file" >&5
5042 echo "$as_me: creating $ac_file" >&6;}
5043     rm -f "$ac_file"
5044   fi
5045   # Let's still pretend it is `configure' which instantiates (i.e., don't
5046   # use $as_me), people would be surprised to read:
5047   #    /* config.h.  Generated by config.status.  */
5048   if test x"$ac_file" = x-; then
5049     configure_input=
5050   else
5051     configure_input="$ac_file.  "
5052   fi
5053   configure_input=$configure_input"Generated from `echo $ac_file_in |
5054                                      sed 's,.*/,,'` by configure."
5055
5056   # First look for the input files in the build tree, otherwise in the
5057   # src tree.
5058   ac_file_inputs=`IFS=:
5059     for f in $ac_file_in; do
5060       case $f in
5061       -) echo $tmp/stdin ;;
5062       [\\/$]*)
5063          # Absolute (can't be DOS-style, as IFS=:)
5064          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5065 echo "$as_me: error: cannot find input file: $f" >&2;}
5066    { (exit 1); exit 1; }; }
5067          echo $f;;
5068       *) # Relative
5069          if test -f "$f"; then
5070            # Build tree
5071            echo $f
5072          elif test -f "$srcdir/$f"; then
5073            # Source tree
5074            echo $srcdir/$f
5075          else
5076            # /dev/null tree
5077            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5078 echo "$as_me: error: cannot find input file: $f" >&2;}
5079    { (exit 1); exit 1; }; }
5080          fi;;
5081       esac
5082     done` || { (exit 1); exit 1; }
5083 _ACEOF
5084 cat >>$CONFIG_STATUS <<_ACEOF
5085   sed "$ac_vpsub
5086 $extrasub
5087 _ACEOF
5088 cat >>$CONFIG_STATUS <<\_ACEOF
5089 :t
5090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5091 s,@configure_input@,$configure_input,;t t
5092 s,@srcdir@,$ac_srcdir,;t t
5093 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5094 s,@top_srcdir@,$ac_top_srcdir,;t t
5095 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5096 s,@builddir@,$ac_builddir,;t t
5097 s,@abs_builddir@,$ac_abs_builddir,;t t
5098 s,@top_builddir@,$ac_top_builddir,;t t
5099 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5100 s,@INSTALL@,$ac_INSTALL,;t t
5101 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5102   rm -f $tmp/stdin
5103   if test x"$ac_file" != x-; then
5104     mv $tmp/out $ac_file
5105   else
5106     cat $tmp/out
5107     rm -f $tmp/out
5108   fi
5109
5110 done
5111 _ACEOF
5112 cat >>$CONFIG_STATUS <<\_ACEOF
5113
5114 #
5115 # CONFIG_HEADER section.
5116 #
5117
5118 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5119 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5120 #
5121 # ac_d sets the value in "#define NAME VALUE" lines.
5122 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5123 ac_dB='[        ].*$,\1#\2'
5124 ac_dC=' '
5125 ac_dD=',;t'
5126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5127 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5128 ac_uB='$,\1#\2define\3'
5129 ac_uC=' '
5130 ac_uD=',;t'
5131
5132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5134   case $ac_file in
5135   - | *:- | *:-:* ) # input from stdin
5136         cat >$tmp/stdin
5137         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5139   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5140         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5141   * )   ac_file_in=$ac_file.in ;;
5142   esac
5143
5144   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5145 echo "$as_me: creating $ac_file" >&6;}
5146
5147   # First look for the input files in the build tree, otherwise in the
5148   # src tree.
5149   ac_file_inputs=`IFS=:
5150     for f in $ac_file_in; do
5151       case $f in
5152       -) echo $tmp/stdin ;;
5153       [\\/$]*)
5154          # Absolute (can't be DOS-style, as IFS=:)
5155          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5156 echo "$as_me: error: cannot find input file: $f" >&2;}
5157    { (exit 1); exit 1; }; }
5158          echo $f;;
5159       *) # Relative
5160          if test -f "$f"; then
5161            # Build tree
5162            echo $f
5163          elif test -f "$srcdir/$f"; then
5164            # Source tree
5165            echo $srcdir/$f
5166          else
5167            # /dev/null tree
5168            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5169 echo "$as_me: error: cannot find input file: $f" >&2;}
5170    { (exit 1); exit 1; }; }
5171          fi;;
5172       esac
5173     done` || { (exit 1); exit 1; }
5174   # Remove the trailing spaces.
5175   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5176
5177 _ACEOF
5178
5179 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5180 # `conftest.undefs', that substitutes the proper values into
5181 # config.h.in to produce config.h.  The first handles `#define'
5182 # templates, and the second `#undef' templates.
5183 # And first: Protect against being on the right side of a sed subst in
5184 # config.status.  Protect against being in an unquoted here document
5185 # in config.status.
5186 rm -f conftest.defines conftest.undefs
5187 # Using a here document instead of a string reduces the quoting nightmare.
5188 # Putting comments in sed scripts is not portable.
5189 #
5190 # `end' is used to avoid that the second main sed command (meant for
5191 # 0-ary CPP macros) applies to n-ary macro definitions.
5192 # See the Autoconf documentation for `clear'.
5193 cat >confdef2sed.sed <<\_ACEOF
5194 s/[\\&,]/\\&/g
5195 s,[\\$`],\\&,g
5196 t clear
5197 : clear
5198 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5199 t end
5200 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5201 : end
5202 _ACEOF
5203 # If some macros were called several times there might be several times
5204 # the same #defines, which is useless.  Nevertheless, we may not want to
5205 # sort them, since we want the *last* AC-DEFINE to be honored.
5206 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5207 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5208 rm -f confdef2sed.sed
5209
5210 # This sed command replaces #undef with comments.  This is necessary, for
5211 # example, in the case of _POSIX_SOURCE, which is predefined and required
5212 # on some systems where configure will not decide to define it.
5213 cat >>conftest.undefs <<\_ACEOF
5214 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5215 _ACEOF
5216
5217 # Break up conftest.defines because some shells have a limit on the size
5218 # of here documents, and old seds have small limits too (100 cmds).
5219 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5220 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5221 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5222 echo '  :' >>$CONFIG_STATUS
5223 rm -f conftest.tail
5224 while grep . conftest.defines >/dev/null
5225 do
5226   # Write a limited-size here document to $tmp/defines.sed.
5227   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5228   # Speed up: don't consider the non `#define' lines.
5229   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5230   # Work around the forget-to-reset-the-flag bug.
5231   echo 't clr' >>$CONFIG_STATUS
5232   echo ': clr' >>$CONFIG_STATUS
5233   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5234   echo 'CEOF
5235   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5236   rm -f $tmp/in
5237   mv $tmp/out $tmp/in
5238 ' >>$CONFIG_STATUS
5239   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5240   rm -f conftest.defines
5241   mv conftest.tail conftest.defines
5242 done
5243 rm -f conftest.defines
5244 echo '  fi # egrep' >>$CONFIG_STATUS
5245 echo >>$CONFIG_STATUS
5246
5247 # Break up conftest.undefs because some shells have a limit on the size
5248 # of here documents, and old seds have small limits too (100 cmds).
5249 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5250 rm -f conftest.tail
5251 while grep . conftest.undefs >/dev/null
5252 do
5253   # Write a limited-size here document to $tmp/undefs.sed.
5254   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5255   # Speed up: don't consider the non `#undef'
5256   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5257   # Work around the forget-to-reset-the-flag bug.
5258   echo 't clr' >>$CONFIG_STATUS
5259   echo ': clr' >>$CONFIG_STATUS
5260   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5261   echo 'CEOF
5262   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5263   rm -f $tmp/in
5264   mv $tmp/out $tmp/in
5265 ' >>$CONFIG_STATUS
5266   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5267   rm -f conftest.undefs
5268   mv conftest.tail conftest.undefs
5269 done
5270 rm -f conftest.undefs
5271
5272 cat >>$CONFIG_STATUS <<\_ACEOF
5273   # Let's still pretend it is `configure' which instantiates (i.e., don't
5274   # use $as_me), people would be surprised to read:
5275   #    /* config.h.  Generated by config.status.  */
5276   if test x"$ac_file" = x-; then
5277     echo "/* Generated by configure.  */" >$tmp/config.h
5278   else
5279     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5280   fi
5281   cat $tmp/in >>$tmp/config.h
5282   rm -f $tmp/in
5283   if test x"$ac_file" != x-; then
5284     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5285       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5286 echo "$as_me: $ac_file is unchanged" >&6;}
5287     else
5288       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5290          X"$ac_file" : 'X\(//\)[^/]' \| \
5291          X"$ac_file" : 'X\(//\)$' \| \
5292          X"$ac_file" : 'X\(/\)' \| \
5293          .     : '\(.\)' 2>/dev/null ||
5294 echo X"$ac_file" |
5295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5297           /^X\(\/\/\)$/{ s//\1/; q; }
5298           /^X\(\/\).*/{ s//\1/; q; }
5299           s/.*/./; q'`
5300       { case "$ac_dir" in
5301   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5302   *)                      as_incr_dir=.;;
5303 esac
5304 as_dummy="$ac_dir"
5305 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5306   case $as_mkdir_dir in
5307     # Skip DOS drivespec
5308     ?:) as_incr_dir=$as_mkdir_dir ;;
5309     *)
5310       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5311       test -d "$as_incr_dir" ||
5312         mkdir "$as_incr_dir" ||
5313         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5314 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5315    { (exit 1); exit 1; }; }
5316     ;;
5317   esac
5318 done; }
5319
5320       rm -f $ac_file
5321       mv $tmp/config.h $ac_file
5322     fi
5323   else
5324     cat $tmp/config.h
5325     rm -f $tmp/config.h
5326   fi
5327 done
5328 _ACEOF
5329 cat >>$CONFIG_STATUS <<\_ACEOF
5330
5331 #
5332 # CONFIG_COMMANDS section.
5333 #
5334 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5335   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5336   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5337   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5338 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5339          X"$ac_dest" : 'X\(//\)[^/]' \| \
5340          X"$ac_dest" : 'X\(//\)$' \| \
5341          X"$ac_dest" : 'X\(/\)' \| \
5342          .     : '\(.\)' 2>/dev/null ||
5343 echo X"$ac_dest" |
5344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5346           /^X\(\/\/\)$/{ s//\1/; q; }
5347           /^X\(\/\).*/{ s//\1/; q; }
5348           s/.*/./; q'`
5349   ac_builddir=.
5350
5351 if test "$ac_dir" != .; then
5352   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5353   # A "../" for each directory in $ac_dir_suffix.
5354   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5355 else
5356   ac_dir_suffix= ac_top_builddir=
5357 fi
5358
5359 case $srcdir in
5360   .)  # No --srcdir option.  We are building in place.
5361     ac_srcdir=.
5362     if test -z "$ac_top_builddir"; then
5363        ac_top_srcdir=.
5364     else
5365        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5366     fi ;;
5367   [\\/]* | ?:[\\/]* )  # Absolute path.
5368     ac_srcdir=$srcdir$ac_dir_suffix;
5369     ac_top_srcdir=$srcdir ;;
5370   *) # Relative path.
5371     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5372     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5373 esac
5374 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5375 # absolute.
5376 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5377 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5378 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5379 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5380
5381
5382   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5383 echo "$as_me: executing $ac_dest commands" >&6;}
5384   case $ac_dest in
5385     default )  touch stamp-h  ;;
5386   esac
5387 done
5388 _ACEOF
5389
5390 cat >>$CONFIG_STATUS <<\_ACEOF
5391
5392 { (exit 0); exit 0; }
5393 _ACEOF
5394 chmod +x $CONFIG_STATUS
5395 ac_clean_files=$ac_clean_files_save
5396
5397
5398 # configure is writing to config.log, and then calls config.status.
5399 # config.status does its own redirection, appending to config.log.
5400 # Unfortunately, on DOS this fails, as config.log is still kept open
5401 # by configure, so config.status won't be able to write to it; its
5402 # output is simply discarded.  So we exec the FD to /dev/null,
5403 # effectively closing config.log, so it can be properly (re)opened and
5404 # appended to by config.status.  When coming back to configure, we
5405 # need to make the FD available again.
5406 if test "$no_create" != yes; then
5407   ac_cs_success=:
5408   exec 5>/dev/null
5409   $SHELL $CONFIG_STATUS || ac_cs_success=false
5410   exec 5>>config.log
5411   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5412   # would make configure fail if this is the last instruction.
5413   $ac_cs_success || { (exit 1); exit 1; }
5414 fi
5415
5416
5417 gawk -f filter.awk < config.h | sed -f filter.sed > ir/common/firm_config.h