--enable-statistics option and stat directory added
[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   --enable-gcc_inline     enable gcc 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   --disable-libiberty     disable own libiberty parts
833   --enable-statistics     enable Firm statistics
834
835 Optional Packages:
836   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
837   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
838   --with-includedir=add colon seperated list of directories to include search path
839   --with-libdir=add colon seperated list of directories to linker search path
840
841 Some influential environment variables:
842   CC          C compiler command
843   CFLAGS      C compiler flags
844   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
845               nonstandard directory <lib dir>
846   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
847               headers in a nonstandard directory <include dir>
848   CPP         C preprocessor
849
850 Use these variables to override the choices made by `configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
852
853 _ACEOF
854 fi
855
856 if test "$ac_init_help" = "recursive"; then
857   # If there are subdirs, report their specific --help.
858   ac_popdir=`pwd`
859   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860     test -d $ac_dir || continue
861     ac_builddir=.
862
863 if test "$ac_dir" != .; then
864   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865   # A "../" for each directory in $ac_dir_suffix.
866   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
867 else
868   ac_dir_suffix= ac_top_builddir=
869 fi
870
871 case $srcdir in
872   .)  # No --srcdir option.  We are building in place.
873     ac_srcdir=.
874     if test -z "$ac_top_builddir"; then
875        ac_top_srcdir=.
876     else
877        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
878     fi ;;
879   [\\/]* | ?:[\\/]* )  # Absolute path.
880     ac_srcdir=$srcdir$ac_dir_suffix;
881     ac_top_srcdir=$srcdir ;;
882   *) # Relative path.
883     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884     ac_top_srcdir=$ac_top_builddir$srcdir ;;
885 esac
886 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
887 # absolute.
888 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
889 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
890 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
891 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
892
893     cd $ac_dir
894     # Check for guested configure; otherwise get Cygnus style configure.
895     if test -f $ac_srcdir/configure.gnu; then
896       echo
897       $SHELL $ac_srcdir/configure.gnu  --help=recursive
898     elif test -f $ac_srcdir/configure; then
899       echo
900       $SHELL $ac_srcdir/configure  --help=recursive
901     elif test -f $ac_srcdir/configure.ac ||
902            test -f $ac_srcdir/configure.in; then
903       echo
904       $ac_configure --help
905     else
906       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
907     fi
908     cd $ac_popdir
909   done
910 fi
911
912 test -n "$ac_init_help" && exit 0
913 if $ac_init_version; then
914   cat <<\_ACEOF
915 libfirm configure 0.3.0
916 generated by GNU Autoconf 2.53
917
918 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
919 Free Software Foundation, Inc.
920 This configure script is free software; the Free Software Foundation
921 gives unlimited permission to copy, distribute and modify it.
922 _ACEOF
923   exit 0
924 fi
925 exec 5>config.log
926 cat >&5 <<_ACEOF
927 This file contains any messages produced by compilers while
928 running configure, to aid debugging if configure makes a mistake.
929
930 It was created by libfirm $as_me 0.3.0, which was
931 generated by GNU Autoconf 2.53.  Invocation command line was
932
933   $ $0 $@
934
935 _ACEOF
936 {
937 cat <<_ASUNAME
938 ## --------- ##
939 ## Platform. ##
940 ## --------- ##
941
942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
947
948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
949 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
950
951 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
952 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
954 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
955 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
956 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
957 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
958
959 _ASUNAME
960
961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
962 for as_dir in $PATH
963 do
964   IFS=$as_save_IFS
965   test -z "$as_dir" && as_dir=.
966   echo "PATH: $as_dir"
967 done
968
969 } >&5
970
971 cat >&5 <<_ACEOF
972
973
974 ## ----------- ##
975 ## Core tests. ##
976 ## ----------- ##
977
978 _ACEOF
979
980
981 # Keep a trace of the command line.
982 # Strip out --no-create and --no-recursion so they do not pile up.
983 # Also quote any args containing shell meta-characters.
984 ac_configure_args=
985 ac_sep=
986 for ac_arg
987 do
988   case $ac_arg in
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n ) continue ;;
991   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993     continue ;;
994   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
995     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
996   esac
997   case " $ac_configure_args " in
998     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
999     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1000        ac_sep=" " ;;
1001   esac
1002   # Get rid of the leading space.
1003 done
1004
1005 # When interrupted or exit'd, cleanup temporary files, and complete
1006 # config.log.  We remove comments because anyway the quotes in there
1007 # would cause problems or look ugly.
1008 # WARNING: Be sure not to use single quotes in there, as some shells,
1009 # such as our DU 5.0 friend, will then `close' the trap.
1010 trap 'exit_status=$?
1011   # Save into config.log some information that might help in debugging.
1012   {
1013     echo
1014     cat <<\_ASBOX
1015 ## ---------------- ##
1016 ## Cache variables. ##
1017 ## ---------------- ##
1018 _ASBOX
1019     echo
1020     # The following way of writing the cache mishandles newlines in values,
1021 {
1022   (set) 2>&1 |
1023     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024     *ac_space=\ *)
1025       sed -n \
1026         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028       ;;
1029     *)
1030       sed -n \
1031         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032       ;;
1033     esac;
1034 }
1035     echo
1036     if test -s confdefs.h; then
1037       cat <<\_ASBOX
1038 ## ----------- ##
1039 ## confdefs.h. ##
1040 ## ----------- ##
1041 _ASBOX
1042       echo
1043       sed "/^$/d" confdefs.h
1044       echo
1045     fi
1046     test "$ac_signal" != 0 &&
1047       echo "$as_me: caught signal $ac_signal"
1048     echo "$as_me: exit $exit_status"
1049   } >&5
1050   rm -f core core.* *.core &&
1051   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1052     exit $exit_status
1053      ' 0
1054 for ac_signal in 1 2 13 15; do
1055   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1056 done
1057 ac_signal=0
1058
1059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1060 rm -rf conftest* confdefs.h
1061 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1062 echo >confdefs.h
1063
1064 # Predefined preprocessor variables.
1065
1066 cat >>confdefs.h <<_ACEOF
1067 #define PACKAGE_NAME "$PACKAGE_NAME"
1068 _ACEOF
1069
1070
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1073 _ACEOF
1074
1075
1076 cat >>confdefs.h <<_ACEOF
1077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1078 _ACEOF
1079
1080
1081 cat >>confdefs.h <<_ACEOF
1082 #define PACKAGE_STRING "$PACKAGE_STRING"
1083 _ACEOF
1084
1085
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1088 _ACEOF
1089
1090
1091 # Let the site file select an alternate cache file if it wants to.
1092 # Prefer explicitly selected file to automatically selected ones.
1093 if test -z "$CONFIG_SITE"; then
1094   if test "x$prefix" != xNONE; then
1095     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1096   else
1097     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1098   fi
1099 fi
1100 for ac_site_file in $CONFIG_SITE; do
1101   if test -r "$ac_site_file"; then
1102     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1103 echo "$as_me: loading site script $ac_site_file" >&6;}
1104     sed 's/^/| /' "$ac_site_file" >&5
1105     . "$ac_site_file"
1106   fi
1107 done
1108
1109 if test -r "$cache_file"; then
1110   # Some versions of bash will fail to source /dev/null (special
1111   # files actually), so we avoid doing that.
1112   if test -f "$cache_file"; then
1113     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1114 echo "$as_me: loading cache $cache_file" >&6;}
1115     case $cache_file in
1116       [\\/]* | ?:[\\/]* ) . $cache_file;;
1117       *)                      . ./$cache_file;;
1118     esac
1119   fi
1120 else
1121   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1122 echo "$as_me: creating cache $cache_file" >&6;}
1123   >$cache_file
1124 fi
1125
1126 # Check that the precious variables saved in the cache have kept the same
1127 # value.
1128 ac_cache_corrupted=false
1129 for ac_var in `(set) 2>&1 |
1130                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1131   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1132   eval ac_new_set=\$ac_env_${ac_var}_set
1133   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1134   eval ac_new_val="\$ac_env_${ac_var}_value"
1135   case $ac_old_set,$ac_new_set in
1136     set,)
1137       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1138 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1139       ac_cache_corrupted=: ;;
1140     ,set)
1141       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1142 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1143       ac_cache_corrupted=: ;;
1144     ,);;
1145     *)
1146       if test "x$ac_old_val" != "x$ac_new_val"; then
1147         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1148 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1149         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1150 echo "$as_me:   former value:  $ac_old_val" >&2;}
1151         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1152 echo "$as_me:   current value: $ac_new_val" >&2;}
1153         ac_cache_corrupted=:
1154       fi;;
1155   esac
1156   # Pass precious variables to config.status.
1157   if test "$ac_new_set" = set; then
1158     case $ac_new_val in
1159     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1160       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1161     *) ac_arg=$ac_var=$ac_new_val ;;
1162     esac
1163     case " $ac_configure_args " in
1164       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1165       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1166     esac
1167   fi
1168 done
1169 if $ac_cache_corrupted; then
1170   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1171 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1172   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1173 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1174    { (exit 1); exit 1; }; }
1175 fi
1176
1177 ac_ext=c
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1182
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 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1210                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1211                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
1212                 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1213                 libfirm.doxygen"
1214
1215 ac_config_headers="$ac_config_headers config.h"
1216
1217
1218 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1219
1220
1221
1222 # Check whether --with-includedir or --without-includedir was given.
1223 if test "${with_includedir+set}" = set; then
1224   withval="$with_includedir"
1225   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1226 else
1227   T_FLAG=""
1228 fi;
1229
1230
1231 # Check whether --with-libdir or --without-libdir was given.
1232 if test "${with_libdir+set}" = set; then
1233   withval="$with_libdir"
1234   LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1235 else
1236   T_FLAG=""
1237 fi;
1238
1239
1240
1241 # Check whether --enable-debug or --disable-debug was given.
1242 if test "${enable_debug+set}" = set; then
1243   enableval="$enable_debug"
1244   if test "$enableval" = yes; then
1245   cat >>confdefs.h <<\_ACEOF
1246 #define DEBUG_libfirm 1
1247 _ACEOF
1248
1249 else
1250   cat >>confdefs.h <<\_ACEOF
1251 #define NDEBUG 1
1252 _ACEOF
1253
1254 fi
1255 fi;
1256
1257
1258 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1259 if test "${enable_gcc_inline+set}" = set; then
1260   enableval="$enable_gcc_inline"
1261   if test "$enableval" = yes; then
1262   cat >>confdefs.h <<\_ACEOF
1263 #define USE_GCC_INLINE 1
1264 _ACEOF
1265
1266 fi
1267 fi;
1268
1269
1270
1271 # Check whether --enable-profile or --disable-profile was given.
1272 if test "${enable_profile+set}" = set; then
1273   enableval="$enable_profile"
1274   if test "$enableval"=yes; then
1275   enable_profile_libfirm=yes
1276 fi
1277 else
1278   enable_profile_libfirm=no
1279 fi;
1280
1281
1282 # Check whether --enable-autodoc or --disable-autodoc was given.
1283 if test "${enable_autodoc+set}" = set; then
1284   enableval="$enable_autodoc"
1285   if test "$enableval"=yes; then
1286   enable_auto_documentation=yes
1287 fi
1288 else
1289   enable_auto_documentation=no
1290 fi;
1291
1292
1293
1294 # Check whether --enable-firmjni or --disable-firmjni was given.
1295 if test "${enable_firmjni+set}" = set; then
1296   enableval="$enable_firmjni"
1297   if test "$enableval"=yes; then
1298   enable_firm_jni=yes
1299 fi
1300 else
1301   enable_firm_jni=no
1302 fi;
1303
1304
1305 # Check whether --enable-libiberty or --disable-libiberty was given.
1306 if test "${enable_libiberty+set}" = set; then
1307   enableval="$enable_libiberty"
1308   if test "$enableval"=yes; then
1309   disable_libiberty_=yes
1310 fi
1311 else
1312   disable_libiberty=no
1313 fi;
1314
1315
1316 # Check whether --enable-statistics or --disable-statistics was given.
1317 if test "${enable_statistics+set}" = set; then
1318   enableval="$enable_statistics"
1319   if test "$enableval"=yes; then
1320   cat >>confdefs.h <<\_ACEOF
1321 #define FIRM_STATISTICS 1
1322 _ACEOF
1323
1324 fi
1325 fi;
1326
1327
1328
1329 ac_ext=c
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 if test -n "$ac_tool_prefix"; then
1335   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1337 echo "$as_me:$LINENO: checking for $ac_word" >&5
1338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 if test "${ac_cv_prog_CC+set}" = set; then
1340   echo $ECHO_N "(cached) $ECHO_C" >&6
1341 else
1342   if test -n "$CC"; then
1343   ac_cv_prog_CC="$CC" # Let the user override the test.
1344 else
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 for as_dir in $PATH
1347 do
1348   IFS=$as_save_IFS
1349   test -z "$as_dir" && as_dir=.
1350   for ac_exec_ext in '' $ac_executable_extensions; do
1351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354     break 2
1355   fi
1356 done
1357 done
1358
1359 fi
1360 fi
1361 CC=$ac_cv_prog_CC
1362 if test -n "$CC"; then
1363   echo "$as_me:$LINENO: result: $CC" >&5
1364 echo "${ECHO_T}$CC" >&6
1365 else
1366   echo "$as_me:$LINENO: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1368 fi
1369
1370 fi
1371 if test -z "$ac_cv_prog_CC"; then
1372   ac_ct_CC=$CC
1373   # Extract the first word of "gcc", so it can be a program name with args.
1374 set dummy gcc; ac_word=$2
1375 echo "$as_me:$LINENO: checking for $ac_word" >&5
1376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1378   echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380   if test -n "$ac_ct_CC"; then
1381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1382 else
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_prog_ac_ct_CC="gcc"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397 fi
1398 fi
1399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1400 if test -n "$ac_ct_CC"; then
1401   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1402 echo "${ECHO_T}$ac_ct_CC" >&6
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406 fi
1407
1408   CC=$ac_ct_CC
1409 else
1410   CC="$ac_cv_prog_CC"
1411 fi
1412
1413 if test -z "$CC"; then
1414   if test -n "$ac_tool_prefix"; then
1415   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}cc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   if test -n "$CC"; then
1423   ac_cv_prog_CC="$CC" # Let the user override the test.
1424 else
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_prog_CC="${ac_tool_prefix}cc"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439 fi
1440 fi
1441 CC=$ac_cv_prog_CC
1442 if test -n "$CC"; then
1443   echo "$as_me:$LINENO: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1445 else
1446   echo "$as_me:$LINENO: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1448 fi
1449
1450 fi
1451 if test -z "$ac_cv_prog_CC"; then
1452   ac_ct_CC=$CC
1453   # Extract the first word of "cc", so it can be a program name with args.
1454 set dummy cc; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   if test -n "$ac_ct_CC"; then
1461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1465 do
1466   IFS=$as_save_IFS
1467   test -z "$as_dir" && as_dir=.
1468   for ac_exec_ext in '' $ac_executable_extensions; do
1469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470     ac_cv_prog_ac_ct_CC="cc"
1471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472     break 2
1473   fi
1474 done
1475 done
1476
1477 fi
1478 fi
1479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1480 if test -n "$ac_ct_CC"; then
1481   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1482 echo "${ECHO_T}$ac_ct_CC" >&6
1483 else
1484   echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1486 fi
1487
1488   CC=$ac_ct_CC
1489 else
1490   CC="$ac_cv_prog_CC"
1491 fi
1492
1493 fi
1494 if test -z "$CC"; then
1495   # Extract the first word of "cc", so it can be a program name with args.
1496 set dummy cc; ac_word=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_CC+set}" = set; then
1500   echo $ECHO_N "(cached) $ECHO_C" >&6
1501 else
1502   if test -n "$CC"; then
1503   ac_cv_prog_CC="$CC" # Let the user override the test.
1504 else
1505   ac_prog_rejected=no
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   for ac_exec_ext in '' $ac_executable_extensions; do
1512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1514        ac_prog_rejected=yes
1515        continue
1516      fi
1517     ac_cv_prog_CC="cc"
1518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519     break 2
1520   fi
1521 done
1522 done
1523
1524 if test $ac_prog_rejected = yes; then
1525   # We found a bogon in the path, so make sure we never use it.
1526   set dummy $ac_cv_prog_CC
1527   shift
1528   if test $# != 0; then
1529     # We chose a different compiler from the bogus one.
1530     # However, it has the same basename, so the bogon will be chosen
1531     # first if we set CC to just the basename; use the full file name.
1532     shift
1533     set dummy "$as_dir/$ac_word" ${1+"$@"}
1534     shift
1535     ac_cv_prog_CC="$@"
1536   fi
1537 fi
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542   echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 fi
1550 if test -z "$CC"; then
1551   if test -n "$ac_tool_prefix"; then
1552   for ac_prog in cl
1553   do
1554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589     test -n "$CC" && break
1590   done
1591 fi
1592 if test -z "$CC"; then
1593   ac_ct_CC=$CC
1594   for ac_prog in cl
1595 do
1596   # Extract the first word of "$ac_prog", so it can be a program name with args.
1597 set dummy $ac_prog; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="$ac_prog"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   test -n "$ac_ct_CC" && break
1632 done
1633
1634   CC=$ac_ct_CC
1635 fi
1636
1637 fi
1638
1639
1640 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1641 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1642    { (exit 1); exit 1; }; }
1643
1644 # Provide some information about the compiler.
1645 echo "$as_me:$LINENO:" \
1646      "checking for C compiler version" >&5
1647 ac_compiler=`set X $ac_compile; echo $2`
1648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1649   (eval $ac_compiler --version </dev/null >&5) 2>&5
1650   ac_status=$?
1651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652   (exit $ac_status); }
1653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1654   (eval $ac_compiler -v </dev/null >&5) 2>&5
1655   ac_status=$?
1656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657   (exit $ac_status); }
1658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1659   (eval $ac_compiler -V </dev/null >&5) 2>&5
1660   ac_status=$?
1661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662   (exit $ac_status); }
1663
1664 cat >conftest.$ac_ext <<_ACEOF
1665 #line $LINENO "configure"
1666 #include "confdefs.h"
1667
1668 #ifdef F77_DUMMY_MAIN
1669 #  ifdef __cplusplus
1670      extern "C"
1671 #  endif
1672    int F77_DUMMY_MAIN() { return 1; }
1673 #endif
1674 int
1675 main ()
1676 {
1677
1678   ;
1679   return 0;
1680 }
1681 _ACEOF
1682 ac_clean_files_save=$ac_clean_files
1683 ac_clean_files="$ac_clean_files a.out a.exe"
1684 # Try to create an executable without -o first, disregard a.out.
1685 # It will help us diagnose broken compilers, and finding out an intuition
1686 # of exeext.
1687 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1688 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1689 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1690 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1691   (eval $ac_link_default) 2>&5
1692   ac_status=$?
1693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694   (exit $ac_status); }; then
1695   # Find the output, starting from the most likely.  This scheme is
1696 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1697 # resort.
1698
1699 # Be careful to initialize this variable, since it used to be cached.
1700 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1701 ac_cv_exeext=
1702 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1703                 ls a.out conftest 2>/dev/null;
1704                 ls a.* conftest.* 2>/dev/null`; do
1705   case $ac_file in
1706     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1707     a.out ) # We found the default executable, but exeext='' is most
1708             # certainly right.
1709             break;;
1710     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1711           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1712           export ac_cv_exeext
1713           break;;
1714     * ) break;;
1715   esac
1716 done
1717 else
1718   echo "$as_me: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1720 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1721 echo "$as_me: error: C compiler cannot create executables" >&2;}
1722    { (exit 77); exit 77; }; }
1723 fi
1724
1725 ac_exeext=$ac_cv_exeext
1726 echo "$as_me:$LINENO: result: $ac_file" >&5
1727 echo "${ECHO_T}$ac_file" >&6
1728
1729 # Check the compiler produces executables we can run.  If not, either
1730 # the compiler is broken, or we cross compile.
1731 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1734 # If not cross compiling, check that we can run a simple program.
1735 if test "$cross_compiling" != yes; then
1736   if { ac_try='./$ac_file'
1737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1738   (eval $ac_try) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }; }; then
1742     cross_compiling=no
1743   else
1744     if test "$cross_compiling" = maybe; then
1745         cross_compiling=yes
1746     else
1747         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1748 If you meant to cross compile, use \`--host'." >&5
1749 echo "$as_me: error: cannot run C compiled programs.
1750 If you meant to cross compile, use \`--host'." >&2;}
1751    { (exit 1); exit 1; }; }
1752     fi
1753   fi
1754 fi
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1757
1758 rm -f a.out a.exe conftest$ac_cv_exeext
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run.  If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1766
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770   (eval $ac_link) 2>&5
1771   ac_status=$?
1772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773   (exit $ac_status); }; then
1774   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1775 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1777 # `rm'.
1778 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1779   case $ac_file in
1780     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1781     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782           export ac_cv_exeext
1783           break;;
1784     * ) break;;
1785   esac
1786 done
1787 else
1788   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1790    { (exit 1); exit 1; }; }
1791 fi
1792
1793 rm -f conftest$ac_cv_exeext
1794 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1795 echo "${ECHO_T}$ac_cv_exeext" >&6
1796
1797 rm -f conftest.$ac_ext
1798 EXEEXT=$ac_cv_exeext
1799 ac_exeext=$EXEEXT
1800 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1802 if test "${ac_cv_objext+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   cat >conftest.$ac_ext <<_ACEOF
1806 #line $LINENO "configure"
1807 #include "confdefs.h"
1808
1809 #ifdef F77_DUMMY_MAIN
1810 #  ifdef __cplusplus
1811      extern "C"
1812 #  endif
1813    int F77_DUMMY_MAIN() { return 1; }
1814 #endif
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825   (eval $ac_compile) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }; then
1829   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1830   case $ac_file in
1831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1832     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1833        break;;
1834   esac
1835 done
1836 else
1837   echo "$as_me: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1840 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1841    { (exit 1); exit 1; }; }
1842 fi
1843
1844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1845 fi
1846 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1847 echo "${ECHO_T}$ac_cv_objext" >&6
1848 OBJEXT=$ac_cv_objext
1849 ac_objext=$OBJEXT
1850 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1857 #include "confdefs.h"
1858
1859 #ifdef F77_DUMMY_MAIN
1860 #  ifdef __cplusplus
1861      extern "C"
1862 #  endif
1863    int F77_DUMMY_MAIN() { return 1; }
1864 #endif
1865 int
1866 main ()
1867 {
1868 #ifndef __GNUC__
1869        choke me
1870 #endif
1871
1872   ;
1873   return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878   (eval $ac_compile) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); } &&
1882          { ac_try='test -s conftest.$ac_objext'
1883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884   (eval $ac_try) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; }; then
1888   ac_compiler_gnu=yes
1889 else
1890   echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 ac_compiler_gnu=no
1893 fi
1894 rm -f conftest.$ac_objext conftest.$ac_ext
1895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1896
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1900 GCC=`test $ac_compiler_gnu = yes && echo yes`
1901 ac_test_CFLAGS=${CFLAGS+set}
1902 ac_save_CFLAGS=$CFLAGS
1903 CFLAGS="-g"
1904 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1905 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1906 if test "${ac_cv_prog_cc_g+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   cat >conftest.$ac_ext <<_ACEOF
1910 #line $LINENO "configure"
1911 #include "confdefs.h"
1912
1913 #ifdef F77_DUMMY_MAIN
1914 #  ifdef __cplusplus
1915      extern "C"
1916 #  endif
1917    int F77_DUMMY_MAIN() { return 1; }
1918 #endif
1919 int
1920 main ()
1921 {
1922
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929   (eval $ac_compile) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); } &&
1933          { ac_try='test -s conftest.$ac_objext'
1934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935   (eval $ac_try) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; }; then
1939   ac_cv_prog_cc_g=yes
1940 else
1941   echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 ac_cv_prog_cc_g=no
1944 fi
1945 rm -f conftest.$ac_objext conftest.$ac_ext
1946 fi
1947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1948 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1949 if test "$ac_test_CFLAGS" = set; then
1950   CFLAGS=$ac_save_CFLAGS
1951 elif test $ac_cv_prog_cc_g = yes; then
1952   if test "$GCC" = yes; then
1953     CFLAGS="-g -O2"
1954   else
1955     CFLAGS="-g"
1956   fi
1957 else
1958   if test "$GCC" = yes; then
1959     CFLAGS="-O2"
1960   else
1961     CFLAGS=
1962   fi
1963 fi
1964 # Some people use a C++ compiler to compile C.  Since we use `exit',
1965 # in C++ we need to declare it.  In case someone uses the same compiler
1966 # for both compiling C and C++ we need to have the C++ compiler decide
1967 # the declaration of exit, since it's the most demanding environment.
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #ifndef __cplusplus
1970   choke me
1971 #endif
1972 _ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); } &&
1979          { ac_try='test -s conftest.$ac_objext'
1980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981   (eval $ac_try) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; }; then
1985   for ac_declaration in \
1986    ''\
1987    '#include <stdlib.h>' \
1988    'extern "C" void std::exit (int) throw (); using std::exit;' \
1989    'extern "C" void std::exit (int); using std::exit;' \
1990    'extern "C" void exit (int) throw ();' \
1991    'extern "C" void exit (int);' \
1992    'void exit (int);'
1993 do
1994   cat >conftest.$ac_ext <<_ACEOF
1995 #line $LINENO "configure"
1996 #include "confdefs.h"
1997 #include <stdlib.h>
1998 $ac_declaration
1999 #ifdef F77_DUMMY_MAIN
2000 #  ifdef __cplusplus
2001      extern "C"
2002 #  endif
2003    int F77_DUMMY_MAIN() { return 1; }
2004 #endif
2005 int
2006 main ()
2007 {
2008 exit (42);
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015   (eval $ac_compile) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); } &&
2019          { ac_try='test -s conftest.$ac_objext'
2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021   (eval $ac_try) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; }; then
2025   :
2026 else
2027   echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 continue
2030 fi
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032   cat >conftest.$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2035 $ac_declaration
2036 #ifdef F77_DUMMY_MAIN
2037 #  ifdef __cplusplus
2038      extern "C"
2039 #  endif
2040    int F77_DUMMY_MAIN() { return 1; }
2041 #endif
2042 int
2043 main ()
2044 {
2045 exit (42);
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052   (eval $ac_compile) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); } &&
2056          { ac_try='test -s conftest.$ac_objext'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; }; then
2062   break
2063 else
2064   echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2066 fi
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 done
2069 rm -f conftest*
2070 if test -n "$ac_declaration"; then
2071   echo '#ifdef __cplusplus' >>confdefs.h
2072   echo $ac_declaration      >>confdefs.h
2073   echo '#endif'             >>confdefs.h
2074 fi
2075
2076 else
2077   echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 fi
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089 if test -z "$LD"; then
2090   if test -n "$ac_tool_prefix"; then
2091   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}ld; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_LD+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$LD"; then
2099   ac_cv_prog_LD="$LD" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108     ac_cv_prog_LD="${ac_tool_prefix}ld"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114
2115 fi
2116 fi
2117 LD=$ac_cv_prog_LD
2118 if test -n "$LD"; then
2119   echo "$as_me:$LINENO: result: $LD" >&5
2120 echo "${ECHO_T}$LD" >&6
2121 else
2122   echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126 fi
2127 if test -z "$ac_cv_prog_LD"; then
2128   ac_ct_LD=$LD
2129   # Extract the first word of "ld", so it can be a program name with args.
2130 set dummy ld; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$ac_ct_LD"; then
2137   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_ac_ct_LD="ld"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2156 if test -n "$ac_ct_LD"; then
2157   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2158 echo "${ECHO_T}$ac_ct_LD" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164   LD=$ac_ct_LD
2165 else
2166   LD="$ac_cv_prog_LD"
2167 fi
2168
2169 fi
2170
2171 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2172 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2173 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176
2177 libfirm_cv_prog_ld_r=no
2178 if test "$LD"; then
2179   cat > conftest.$ac_ext <<EOF
2180 int foo() { return 0; }
2181 EOF
2182   if eval $ac_compile && mv conftest.o conftest2.o; then
2183     cat > conftest.$ac_ext <<EOF
2184 extern int foo();
2185 int main() { return foo(); }
2186 EOF
2187     if eval $ac_compile; then
2188       if $LD -r -o conftest conftest.o conftest2.o; then
2189         libfirm_cv_prog_ld_r=yes
2190       fi
2191     fi
2192   fi
2193 fi
2194 rm -f conftest*
2195 fi
2196 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2197 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2198
2199
2200 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2201   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2202 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 # Extract the first word of "ar", so it can be a program name with args.
2207 set dummy ar; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_AR+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$AR"; then
2214   ac_cv_prog_AR="$AR" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223     ac_cv_prog_AR=""ar""
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229
2230   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2231 fi
2232 fi
2233 AR=$ac_cv_prog_AR
2234 if test -n "$AR"; then
2235   echo "$as_me:$LINENO: result: $AR" >&5
2236 echo "${ECHO_T}$AR" >&6
2237 else
2238   echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2240 fi
2241
2242 if test "$AR" != "ar"; then
2243   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2244 echo "$as_me: error: need ar for creating archives" >&2;}
2245    { (exit 1); exit 1; }; }
2246 fi
2247
2248 # Extract the first word of "tar", so it can be a program name with args.
2249 set dummy tar; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_TAR+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$TAR"; then
2256   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263   for ac_exec_ext in '' $ac_executable_extensions; do
2264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265     ac_cv_prog_TAR=""tar""
2266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267     break 2
2268   fi
2269 done
2270 done
2271
2272   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2273 fi
2274 fi
2275 TAR=$ac_cv_prog_TAR
2276 if test -n "$TAR"; then
2277   echo "$as_me:$LINENO: result: $TAR" >&5
2278 echo "${ECHO_T}$TAR" >&6
2279 else
2280   echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284 if test "$TAR" != "tar"; then
2285   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2286 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290
2291 if test -n "$ac_tool_prefix"; then
2292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_RANLIB+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -n "$RANLIB"; then
2300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315
2316 fi
2317 fi
2318 RANLIB=$ac_cv_prog_RANLIB
2319 if test -n "$RANLIB"; then
2320   echo "$as_me:$LINENO: result: $RANLIB" >&5
2321 echo "${ECHO_T}$RANLIB" >&6
2322 else
2323   echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$ac_cv_prog_RANLIB"; then
2329   ac_ct_RANLIB=$RANLIB
2330   # Extract the first word of "ranlib", so it can be a program name with args.
2331 set dummy ranlib; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_RANLIB"; then
2338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_ac_ct_RANLIB="ranlib"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2355 fi
2356 fi
2357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2358 if test -n "$ac_ct_RANLIB"; then
2359   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2361 else
2362   echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366   RANLIB=$ac_ct_RANLIB
2367 else
2368   RANLIB="$ac_cv_prog_RANLIB"
2369 fi
2370
2371
2372 ac_aux_dir=
2373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2374   if test -f $ac_dir/install-sh; then
2375     ac_aux_dir=$ac_dir
2376     ac_install_sh="$ac_aux_dir/install-sh -c"
2377     break
2378   elif test -f $ac_dir/install.sh; then
2379     ac_aux_dir=$ac_dir
2380     ac_install_sh="$ac_aux_dir/install.sh -c"
2381     break
2382   elif test -f $ac_dir/shtool; then
2383     ac_aux_dir=$ac_dir
2384     ac_install_sh="$ac_aux_dir/shtool install -c"
2385     break
2386   fi
2387 done
2388 if test -z "$ac_aux_dir"; then
2389   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2391    { (exit 1); exit 1; }; }
2392 fi
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2396
2397 # Find a good install program.  We prefer a C program (faster),
2398 # so one script is as good as another.  But avoid the broken or
2399 # incompatible versions:
2400 # SysV /etc/install, /usr/sbin/install
2401 # SunOS /usr/etc/install
2402 # IRIX /sbin/install
2403 # AIX /bin/install
2404 # AmigaOS /C/install, which installs bootblocks on floppy discs
2405 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2411 if test -z "$INSTALL"; then
2412 if test "${ac_cv_path_install+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   # Account for people who put trailing slashes in PATH elements.
2421 case $as_dir/ in
2422   ./ | .// | /cC/* | \
2423   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2424   /usr/ucb/* ) ;;
2425   *)
2426     # OSF1 and SCO ODT 3.0 have their own names for install.
2427     # Don't use installbsd from OSF since it installs stuff as root
2428     # by default.
2429     for ac_prog in ginstall scoinst install; do
2430       for ac_exec_ext in '' $ac_executable_extensions; do
2431         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2432           if test $ac_prog = install &&
2433             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434             # AIX install.  It has an incompatible calling convention.
2435             :
2436           elif test $ac_prog = install &&
2437             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438             # program-specific install script used by HP pwplus--don't use.
2439             :
2440           else
2441             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2442             break 3
2443           fi
2444         fi
2445       done
2446     done
2447     ;;
2448 esac
2449 done
2450
2451
2452 fi
2453   if test "${ac_cv_path_install+set}" = set; then
2454     INSTALL=$ac_cv_path_install
2455   else
2456     # As a last resort, use the slow shell script.  We don't cache a
2457     # path for INSTALL within a source directory, because that will
2458     # break other packages using the cache if that directory is
2459     # removed, or if the path is relative.
2460     INSTALL=$ac_install_sh
2461   fi
2462 fi
2463 echo "$as_me:$LINENO: result: $INSTALL" >&5
2464 echo "${ECHO_T}$INSTALL" >&6
2465
2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2467 # It thinks the first close brace ends the variable substitution.
2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2469
2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2471
2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2473
2474
2475 touch tmp-install.a tmp-install.b
2476 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2477     INSTALL="$INSTALL -C"
2478 fi
2479 rm tmp-install.a tmp-install.b
2480
2481
2482 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2484 LN_S=$as_ln_s
2485 if test "$LN_S" = "ln -s"; then
2486   echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6
2488 else
2489   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2490 echo "${ECHO_T}no, using $LN_S" >&6
2491 fi
2492
2493
2494 if test "$enable_auto_documentation" = yes; then
2495   # Extract the first word of "doxygen", so it can be a program name with args.
2496 set dummy doxygen; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$DOXYGEN"; then
2503   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512     ac_cv_prog_DOXYGEN=""doxygen""
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518
2519   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2520 fi
2521 fi
2522 DOXYGEN=$ac_cv_prog_DOXYGEN
2523 if test -n "$DOXYGEN"; then
2524   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2525 echo "${ECHO_T}$DOXYGEN" >&6
2526 else
2527   echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2529 fi
2530
2531   if test "$DOXYGEN" != "doxygen"; then
2532     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2533 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2534    { (exit 1); exit 1; }; }
2535   fi
2536   # Extract the first word of "dot", so it can be a program name with args.
2537 set dummy dot; ac_word=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_DOT+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   if test -n "$DOT"; then
2544   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_prog_DOT=""dot""
2554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558 done
2559
2560   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2561 fi
2562 fi
2563 DOT=$ac_cv_prog_DOT
2564 if test -n "$DOT"; then
2565   echo "$as_me:$LINENO: result: $DOT" >&5
2566 echo "${ECHO_T}$DOT" >&6
2567 else
2568   echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2570 fi
2571
2572   if test "$DOT" != "dot"; then
2573     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2574 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2575    { (exit 1); exit 1; }; }
2576   fi
2577 fi
2578
2579 if test "$enable_firm_jni" = yes; then
2580   # Extract the first word of "javac", so it can be a program name with args.
2581 set dummy javac; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_JAVAC+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$JAVAC"; then
2588   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597     ac_cv_prog_JAVAC=""javac""
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603
2604   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2605 fi
2606 fi
2607 JAVAC=$ac_cv_prog_JAVAC
2608 if test -n "$JAVAC"; then
2609   echo "$as_me:$LINENO: result: $JAVAC" >&5
2610 echo "${ECHO_T}$JAVAC" >&6
2611 else
2612   echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614 fi
2615
2616   if test "$JAVAC" != "javac"; then
2617     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2618 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2619    { (exit 1); exit 1; }; }
2620   fi
2621   # Extract the first word of "javah", so it can be a program name with args.
2622 set dummy javah; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_JAVAH+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test -n "$JAVAH"; then
2629   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636   for ac_exec_ext in '' $ac_executable_extensions; do
2637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638     ac_cv_prog_JAVAH=""javah""
2639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643 done
2644
2645   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2646 fi
2647 fi
2648 JAVAH=$ac_cv_prog_JAVAH
2649 if test -n "$JAVAH"; then
2650   echo "$as_me:$LINENO: result: $JAVAH" >&5
2651 echo "${ECHO_T}$JAVAH" >&6
2652 else
2653   echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2655 fi
2656
2657   if test "$JAVAH" != "javah"; then
2658     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2659 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2660    { (exit 1); exit 1; }; }
2661   fi
2662 fi
2663
2664
2665
2666
2667 ac_ext=c
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2673 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2674 # On Suns, sometimes $CPP names a directory.
2675 if test -n "$CPP" && test -d "$CPP"; then
2676   CPP=
2677 fi
2678 if test -z "$CPP"; then
2679   if test "${ac_cv_prog_CPP+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682       # Double quotes because CPP needs to be expanded
2683     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2684     do
2685       ac_preproc_ok=false
2686 for ac_c_preproc_warn_flag in '' yes
2687 do
2688   # Use a header file that comes with gcc, so configuring glibc
2689   # with a fresh cross-compiler works.
2690   # On the NeXT, cc -E runs the code through the compiler's parser,
2691   # not just through cpp. "Syntax error" is here to catch this case.
2692   cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 #include "confdefs.h"
2695 #include <assert.h>
2696                      Syntax error
2697 _ACEOF
2698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2700   ac_status=$?
2701   egrep -v '^ *\+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } >/dev/null; then
2706   if test -s conftest.err; then
2707     ac_cpp_err=$ac_c_preproc_warn_flag
2708   else
2709     ac_cpp_err=
2710   fi
2711 else
2712   ac_cpp_err=yes
2713 fi
2714 if test -z "$ac_cpp_err"; then
2715   :
2716 else
2717   echo "$as_me: failed program was:" >&5
2718   cat conftest.$ac_ext >&5
2719   # Broken: fails on valid input.
2720 continue
2721 fi
2722 rm -f conftest.err conftest.$ac_ext
2723
2724   # OK, works on sane cases.  Now check whether non-existent headers
2725   # can be detected and how.
2726   cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2728 #include "confdefs.h"
2729 #include <ac_nonexistent.h>
2730 _ACEOF
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2733   ac_status=$?
2734   egrep -v '^ *\+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } >/dev/null; then
2739   if test -s conftest.err; then
2740     ac_cpp_err=$ac_c_preproc_warn_flag
2741   else
2742     ac_cpp_err=
2743   fi
2744 else
2745   ac_cpp_err=yes
2746 fi
2747 if test -z "$ac_cpp_err"; then
2748   # Broken: success on invalid input.
2749 continue
2750 else
2751   echo "$as_me: failed program was:" >&5
2752   cat conftest.$ac_ext >&5
2753   # Passes both tests.
2754 ac_preproc_ok=:
2755 break
2756 fi
2757 rm -f conftest.err conftest.$ac_ext
2758
2759 done
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2763   break
2764 fi
2765
2766     done
2767     ac_cv_prog_CPP=$CPP
2768
2769 fi
2770   CPP=$ac_cv_prog_CPP
2771 else
2772   ac_cv_prog_CPP=$CPP
2773 fi
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2776 ac_preproc_ok=false
2777 for ac_c_preproc_warn_flag in '' yes
2778 do
2779   # Use a header file that comes with gcc, so configuring glibc
2780   # with a fresh cross-compiler works.
2781   # On the NeXT, cc -E runs the code through the compiler's parser,
2782   # not just through cpp. "Syntax error" is here to catch this case.
2783   cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2785 #include "confdefs.h"
2786 #include <assert.h>
2787                      Syntax error
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   egrep -v '^ *\+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799   else
2800     ac_cpp_err=
2801   fi
2802 else
2803   ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806   :
2807 else
2808   echo "$as_me: failed program was:" >&5
2809   cat conftest.$ac_ext >&5
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 #include "confdefs.h"
2820 #include <ac_nonexistent.h>
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824   ac_status=$?
2825   egrep -v '^ *\+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } >/dev/null; then
2830   if test -s conftest.err; then
2831     ac_cpp_err=$ac_c_preproc_warn_flag
2832   else
2833     ac_cpp_err=
2834   fi
2835 else
2836   ac_cpp_err=yes
2837 fi
2838 if test -z "$ac_cpp_err"; then
2839   # Broken: success on invalid input.
2840 continue
2841 else
2842   echo "$as_me: failed program was:" >&5
2843   cat conftest.$ac_ext >&5
2844   # Passes both tests.
2845 ac_preproc_ok=:
2846 break
2847 fi
2848 rm -f conftest.err conftest.$ac_ext
2849
2850 done
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2854   :
2855 else
2856   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867
2868 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2869 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2870 if test "${ac_cv_header_stdc+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   cat >conftest.$ac_ext <<_ACEOF
2874 #line $LINENO "configure"
2875 #include "confdefs.h"
2876 #include <stdlib.h>
2877 #include <stdarg.h>
2878 #include <string.h>
2879 #include <float.h>
2880
2881 _ACEOF
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2884   ac_status=$?
2885   egrep -v '^ *\+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } >/dev/null; then
2890   if test -s conftest.err; then
2891     ac_cpp_err=$ac_c_preproc_warn_flag
2892   else
2893     ac_cpp_err=
2894   fi
2895 else
2896   ac_cpp_err=yes
2897 fi
2898 if test -z "$ac_cpp_err"; then
2899   ac_cv_header_stdc=yes
2900 else
2901   echo "$as_me: failed program was:" >&5
2902   cat conftest.$ac_ext >&5
2903   ac_cv_header_stdc=no
2904 fi
2905 rm -f conftest.err conftest.$ac_ext
2906
2907 if test $ac_cv_header_stdc = yes; then
2908   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2909   cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 #include "confdefs.h"
2912 #include <string.h>
2913
2914 _ACEOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916   egrep "memchr" >/dev/null 2>&1; then
2917   :
2918 else
2919   ac_cv_header_stdc=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924
2925 if test $ac_cv_header_stdc = yes; then
2926   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2927   cat >conftest.$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2929 #include "confdefs.h"
2930 #include <stdlib.h>
2931
2932 _ACEOF
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934   egrep "free" >/dev/null 2>&1; then
2935   :
2936 else
2937   ac_cv_header_stdc=no
2938 fi
2939 rm -f conftest*
2940
2941 fi
2942
2943 if test $ac_cv_header_stdc = yes; then
2944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2945   if test "$cross_compiling" = yes; then
2946   :
2947 else
2948   cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 #include "confdefs.h"
2951 #include <ctype.h>
2952 #if ((' ' & 0x0FF) == 0x020)
2953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2955 #else
2956 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2957                      || ('j' <= (c) && (c) <= 'r') \
2958                      || ('s' <= (c) && (c) <= 'z'))
2959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2960 #endif
2961
2962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2963 int
2964 main ()
2965 {
2966   int i;
2967   for (i = 0; i < 256; i++)
2968     if (XOR (islower (i), ISLOWER (i))
2969         || toupper (i) != TOUPPER (i))
2970       exit(2);
2971   exit (0);
2972 }
2973 _ACEOF
2974 rm -f conftest$ac_exeext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976   (eval $ac_link) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981   (eval $ac_try) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; }; then
2985   :
2986 else
2987   echo "$as_me: program exited with status $ac_status" >&5
2988 echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 ( exit $ac_status )
2991 ac_cv_header_stdc=no
2992 fi
2993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2994 fi
2995 fi
2996 fi
2997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2999 if test $ac_cv_header_stdc = yes; then
3000
3001 cat >>confdefs.h <<\_ACEOF
3002 #define STDC_HEADERS 1
3003 _ACEOF
3004
3005 fi
3006
3007
3008
3009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3020                   inttypes.h stdint.h unistd.h
3021 do
3022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3023 echo "$as_me:$LINENO: checking for $ac_header" >&5
3024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3031 $ac_includes_default
3032
3033 #include <$ac_header>
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037   (eval $ac_compile) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   eval "$as_ac_Header=yes"
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 eval "$as_ac_Header=no"
3052 fi
3053 rm -f conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058   cat >>confdefs.h <<_ACEOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3060 _ACEOF
3061
3062 fi
3063
3064 done
3065
3066
3067
3068 for ac_header in math.h
3069 do
3070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072   echo "$as_me:$LINENO: checking for $ac_header" >&5
3073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 fi
3077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3079 else
3080   # Is the header compilable?
3081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3085 #include "confdefs.h"
3086 $ac_includes_default
3087 #include <$ac_header>
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } &&
3095          { ac_try='test -s conftest.$ac_objext'
3096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097   (eval $ac_try) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; }; then
3101   ac_header_compiler=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 ac_header_compiler=no
3106 fi
3107 rm -f conftest.$ac_objext conftest.$ac_ext
3108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3109 echo "${ECHO_T}$ac_header_compiler" >&6
3110
3111 # Is the header present?
3112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 #include <$ac_header>
3118 _ACEOF
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121   ac_status=$?
3122   egrep -v '^ *\+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } >/dev/null; then
3127   if test -s conftest.err; then
3128     ac_cpp_err=$ac_c_preproc_warn_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   ac_header_preproc=yes
3137 else
3138   echo "$as_me: failed program was:" >&5
3139   cat conftest.$ac_ext >&5
3140   ac_header_preproc=no
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3144 echo "${ECHO_T}$ac_header_preproc" >&6
3145
3146 # So?  What about this header?
3147 case $ac_header_compiler:$ac_header_preproc in
3148   yes:no )
3149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3153   no:yes )
3154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3156     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3160 esac
3161 echo "$as_me:$LINENO: checking for $ac_header" >&5
3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   eval "$as_ac_Header=$ac_header_preproc"
3167 fi
3168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3170
3171 fi
3172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3173   cat >>confdefs.h <<_ACEOF
3174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3175 _ACEOF
3176  ac_math_headers="yes"
3177 else
3178   ac_math_headers="no"
3179 fi
3180
3181 done
3182
3183 if test "$ac_math_headers" != yes; then
3184     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3185 echo "$as_me: error: \"math header file not found\"" >&2;}
3186    { (exit 1); exit 1; }; }
3187 fi
3188
3189
3190 #dnl check for the gnu multiprecission (gmp) header file
3191
3192 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3193 #if test "$ac_gmp_headers" != yes; then
3194 #  dnl gmp header not found.
3195 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3196 #fi
3197
3198
3199 #AC_FUNC_OBSTACK
3200
3201
3202 for ac_header in obstack.h
3203 do
3204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3206   echo "$as_me:$LINENO: checking for $ac_header" >&5
3207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 fi
3211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3213 else
3214   # Is the header compilable?
3215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 #include "confdefs.h"
3220 $ac_includes_default
3221 #include <$ac_header>
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -s conftest.$ac_objext'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; }; then
3235   ac_header_compiler=yes
3236 else
3237   echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 ac_header_compiler=no
3240 fi
3241 rm -f conftest.$ac_objext conftest.$ac_ext
3242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3243 echo "${ECHO_T}$ac_header_compiler" >&6
3244
3245 # Is the header present?
3246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3251 #include <$ac_header>
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255   ac_status=$?
3256   egrep -v '^ *\+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } >/dev/null; then
3261   if test -s conftest.err; then
3262     ac_cpp_err=$ac_c_preproc_warn_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   ac_header_preproc=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273   cat conftest.$ac_ext >&5
3274   ac_header_preproc=no
3275 fi
3276 rm -f conftest.err conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3278 echo "${ECHO_T}$ac_header_preproc" >&6
3279
3280 # So?  What about this header?
3281 case $ac_header_compiler:$ac_header_preproc in
3282   yes:no )
3283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3287   no:yes )
3288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3290     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3294 esac
3295 echo "$as_me:$LINENO: checking for $ac_header" >&5
3296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   eval "$as_ac_Header=$ac_header_preproc"
3301 fi
3302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3304
3305 fi
3306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3307   cat >>confdefs.h <<_ACEOF
3308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3309 _ACEOF
3310  ac_obstack_headers="yes"
3311 else
3312   ac_obstack_headers="no"
3313 fi
3314
3315 done
3316
3317 if test "$ac_obstack_headers" != yes; then
3318     { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3319 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3320    { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324
3325 for ac_header in alloca.h
3326 do
3327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3329   echo "$as_me:$LINENO: checking for $ac_header" >&5
3330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 fi
3334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336 else
3337   # Is the header compilable?
3338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 #include "confdefs.h"
3343 $ac_includes_default
3344 #include <$ac_header>
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   ac_header_compiler=yes
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 ac_header_compiler=no
3363 fi
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3366 echo "${ECHO_T}$ac_header_compiler" >&6
3367
3368 # Is the header present?
3369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line $LINENO "configure"
3373 #include "confdefs.h"
3374 #include <$ac_header>
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   egrep -v '^ *\+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386   else
3387     ac_cpp_err=
3388   fi
3389 else
3390   ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393   ac_header_preproc=yes
3394 else
3395   echo "$as_me: failed program was:" >&5
3396   cat conftest.$ac_ext >&5
3397   ac_header_preproc=no
3398 fi
3399 rm -f conftest.err conftest.$ac_ext
3400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3401 echo "${ECHO_T}$ac_header_preproc" >&6
3402
3403 # So?  What about this header?
3404 case $ac_header_compiler:$ac_header_preproc in
3405   yes:no )
3406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3410   no:yes )
3411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3413     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3417 esac
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   eval "$as_ac_Header=$ac_header_preproc"
3424 fi
3425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3427
3428 fi
3429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3430   cat >>confdefs.h <<_ACEOF
3431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3432 _ACEOF
3433  ac_alloca_headers="yes"
3434 else
3435   ac_alloca_headers="no"
3436 fi
3437
3438 done
3439
3440 if test "$ac_alloca_headers" = "yes"; then
3441     cat >>confdefs.h <<\_ACEOF
3442 #define HAVE_ALLOCA_H 1
3443 _ACEOF
3444
3445 else
3446   if test "$ac_cv_header_stdc" = "no"; then
3447     { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3448 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3449    { (exit 1); exit 1; }; }
3450   fi
3451 fi
3452
3453
3454
3455 if test "$enable_firm_jni" = yes; then
3456
3457 for ac_header in jni.h
3458 do
3459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3461   echo "$as_me:$LINENO: checking for $ac_header" >&5
3462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 fi
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 else
3469   # Is the header compilable?
3470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 #include "confdefs.h"
3475 $ac_includes_default
3476 #include <$ac_header>
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480   (eval $ac_compile) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } &&
3484          { ac_try='test -s conftest.$ac_objext'
3485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486   (eval $ac_try) 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; }; then
3490   ac_header_compiler=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 ac_header_compiler=no
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3499
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3506 #include <$ac_header>
3507 _ACEOF
3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510   ac_status=$?
3511   egrep -v '^ *\+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } >/dev/null; then
3516   if test -s conftest.err; then
3517     ac_cpp_err=$ac_c_preproc_warn_flag
3518   else
3519     ac_cpp_err=
3520   fi
3521 else
3522   ac_cpp_err=yes
3523 fi
3524 if test -z "$ac_cpp_err"; then
3525   ac_header_preproc=yes
3526 else
3527   echo "$as_me: failed program was:" >&5
3528   cat conftest.$ac_ext >&5
3529   ac_header_preproc=no
3530 fi
3531 rm -f conftest.err conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3533 echo "${ECHO_T}$ac_header_preproc" >&6
3534
3535 # So?  What about this header?
3536 case $ac_header_compiler:$ac_header_preproc in
3537   yes:no )
3538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3542   no:yes )
3543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3545     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3549 esac
3550 echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   eval "$as_ac_Header=$ac_header_preproc"
3556 fi
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559
3560 fi
3561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3562   cat >>confdefs.h <<_ACEOF
3563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3564 _ACEOF
3565  ac_jni_headers="yes"
3566 else
3567   ac_jni_headers="no"
3568 fi
3569
3570 done
3571
3572   if test "$ac_jni_headers" != yes; then
3573     { { 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
3574 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;}
3575    { (exit 1); exit 1; }; }
3576   fi
3577 fi
3578
3579
3580
3581 #dnl check for the gnu multiprecission (gmp) library
3582
3583 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3584 #if test "$ac_gmp_library" != yes; then
3585 #  dnl gmp library not found.
3586 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3587 #fi
3588
3589
3590 echo "$as_me:$LINENO: checking for main in -lm" >&5
3591 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3592 if test "${ac_cv_lib_m_main+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   ac_check_lib_save_LIBS=$LIBS
3596 LIBS="-lm  $LIBS"
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3600
3601
3602 #ifdef F77_DUMMY_MAIN
3603 #  ifdef __cplusplus
3604      extern "C"
3605 #  endif
3606    int F77_DUMMY_MAIN() { return 1; }
3607 #endif
3608 int
3609 main ()
3610 {
3611 main ();
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618   (eval $ac_link) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -s conftest$ac_exeext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   ac_cv_lib_m_main=yes
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_cv_lib_m_main=no
3633 fi
3634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3638 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3639 if test $ac_cv_lib_m_main = yes; then
3640   ac_m_library="yes"
3641 else
3642   ac_m_library="no"
3643 fi
3644
3645 if test "$ac_m_library" != yes; then
3646     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3647 echo "$as_me: error: \"standard math library not found\"" >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651
3652 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3653 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3654 if test "${ac_cv_c_bigendian+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   # See if sys/param.h defines the BYTE_ORDER macro.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3661 #include <sys/types.h>
3662 #include <sys/param.h>
3663
3664 #ifdef F77_DUMMY_MAIN
3665 #  ifdef __cplusplus
3666      extern "C"
3667 #  endif
3668    int F77_DUMMY_MAIN() { return 1; }
3669 #endif
3670 int
3671 main ()
3672 {
3673 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3674  bogus endian macros
3675 #endif
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683   (eval $ac_compile) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } &&
3687          { ac_try='test -s conftest.$ac_objext'
3688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689   (eval $ac_try) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693   # It does; now see whether it defined to BIG_ENDIAN or not.
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3698 #include <sys/param.h>
3699
3700 #ifdef F77_DUMMY_MAIN
3701 #  ifdef __cplusplus
3702      extern "C"
3703 #  endif
3704    int F77_DUMMY_MAIN() { return 1; }
3705 #endif
3706 int
3707 main ()
3708 {
3709 #if BYTE_ORDER != BIG_ENDIAN
3710  not big endian
3711 #endif
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719   (eval $ac_compile) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -s conftest.$ac_objext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   ac_cv_c_bigendian=yes
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_cv_c_bigendian=no
3734 fi
3735 rm -f conftest.$ac_objext conftest.$ac_ext
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3739 # It does not; compile a test program.
3740 if test "$cross_compiling" = yes; then
3741   # try to guess the endianess by grep'ing values into an object file
3742   ac_cv_c_bigendian=unknown
3743   cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3745 #include "confdefs.h"
3746 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3747 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3748 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3749 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3750 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3751 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3752 #ifdef F77_DUMMY_MAIN
3753 #  ifdef __cplusplus
3754      extern "C"
3755 #  endif
3756    int F77_DUMMY_MAIN() { return 1; }
3757 #endif
3758 int
3759 main ()
3760 {
3761  _ascii (); _ebcdic ();
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768   (eval $ac_compile) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); } &&
3772          { ac_try='test -s conftest.$ac_objext'
3773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774   (eval $ac_try) 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }; }; then
3778   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3779   ac_cv_c_bigendian=yes
3780 fi
3781 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3782   if test "$ac_cv_c_bigendian" = unknown; then
3783     ac_cv_c_bigendian=no
3784   else
3785     # finding both strings is unlikely to happen, but who knows?
3786     ac_cv_c_bigendian=unknown
3787   fi
3788 fi
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 fi
3793 rm -f conftest.$ac_objext conftest.$ac_ext
3794 else
3795   cat >conftest.$ac_ext <<_ACEOF
3796 #line $LINENO "configure"
3797 #include "confdefs.h"
3798 int
3799 main ()
3800 {
3801   /* Are we little or big endian?  From Harbison&Steele.  */
3802   union
3803   {
3804     long l;
3805     char c[sizeof (long)];
3806   } u;
3807   u.l = 1;
3808   exit (u.c[sizeof (long) - 1] == 1);
3809 }
3810 _ACEOF
3811 rm -f conftest$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813   (eval $ac_link) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_cv_c_bigendian=no
3823 else
3824   echo "$as_me: program exited with status $ac_status" >&5
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 ( exit $ac_status )
3828 ac_cv_c_bigendian=yes
3829 fi
3830 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3831 fi
3832 fi
3833 rm -f conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3836 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3837 case $ac_cv_c_bigendian in
3838   yes)
3839
3840 cat >>confdefs.h <<\_ACEOF
3841 #define WORDS_BIGENDIAN 1
3842 _ACEOF
3843  ;;
3844   no)
3845      ;;
3846   *)
3847     { { echo "$as_me:$LINENO: error: unknown endianess
3848 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3849 echo "$as_me: error: unknown endianess
3850 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3851    { (exit 1); exit 1; }; } ;;
3852 esac
3853
3854 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
3855 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
3856 if test "${ac_cv_c_long_double+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 #include "confdefs.h"
3862 #include <float.h>
3863           long double foo = 0.0;
3864 #ifdef F77_DUMMY_MAIN
3865 #  ifdef __cplusplus
3866      extern "C"
3867 #  endif
3868    int F77_DUMMY_MAIN() { return 1; }
3869 #endif
3870 int
3871 main ()
3872 {
3873 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
3874           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
3875           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
3876 test_array [0] = 0
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884   (eval $ac_compile) 2>&5
3885   ac_status=$?
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } &&
3888          { ac_try='test -s conftest.$ac_objext'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; }; then
3894   ac_cv_c_long_double=yes
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 ac_cv_c_long_double=no
3899 fi
3900 rm -f conftest.$ac_objext conftest.$ac_ext
3901 fi
3902 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
3903 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3904 if test $ac_cv_c_long_double = yes; then
3905
3906 cat >>confdefs.h <<\_ACEOF
3907 #define HAVE_LONG_DOUBLE 1
3908 _ACEOF
3909
3910 fi
3911
3912
3913
3914
3915 echo "$as_me:$LINENO: checking for strerror" >&5
3916 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3917 if test "${ac_cv_func_strerror+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3922 #include "confdefs.h"
3923 /* System header to define __stub macros and hopefully few prototypes,
3924     which can conflict with char strerror (); below.  */
3925 #include <assert.h>
3926 /* Override any gcc2 internal prototype to avoid an error.  */
3927 #ifdef __cplusplus
3928 extern "C"
3929 #endif
3930 /* We use char because int might match the return type of a gcc2
3931    builtin and then its argument prototype would still apply.  */
3932 char strerror ();
3933 char (*f) ();
3934
3935 #ifdef F77_DUMMY_MAIN
3936 #  ifdef __cplusplus
3937      extern "C"
3938 #  endif
3939    int F77_DUMMY_MAIN() { return 1; }
3940 #endif
3941 int
3942 main ()
3943 {
3944 /* The GNU C library defines this for functions which it implements
3945     to always fail with ENOSYS.  Some functions are actually named
3946     something starting with __ and the normal name is an alias.  */
3947 #if defined (__stub_strerror) || defined (__stub___strerror)
3948 choke me
3949 #else
3950 f = strerror;
3951 #endif
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.$ac_objext conftest$ac_exeext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3959   (eval $ac_link) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } &&
3963          { ac_try='test -s conftest$ac_exeext'
3964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965   (eval $ac_try) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; }; then
3969   ac_cv_func_strerror=yes
3970 else
3971   echo "$as_me: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 ac_cv_func_strerror=no
3974 fi
3975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3976 fi
3977 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3978 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3979 if test $ac_cv_func_strerror = yes; then
3980   :
3981 else
3982   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3983 echo "$as_me: error: \"need strerror function\"" >&2;}
3984    { (exit 1); exit 1; }; }
3985
3986 fi
3987
3988
3989
3990
3991
3992 ac_config_files="$ac_config_files $ac_output_file"
3993 ac_config_commands="$ac_config_commands default"
3994 cat >confcache <<\_ACEOF
3995 # This file is a shell script that caches the results of configure
3996 # tests run on this system so they can be shared between configure
3997 # scripts and configure runs, see configure's option --config-cache.
3998 # It is not useful on other systems.  If it contains results you don't
3999 # want to keep, you may remove or edit it.
4000 #
4001 # config.status only pays attention to the cache file if you give it
4002 # the --recheck option to rerun configure.
4003 #
4004 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4006 # following values.
4007
4008 _ACEOF
4009
4010 # The following way of writing the cache mishandles newlines in values,
4011 # but we know of no workaround that is simple, portable, and efficient.
4012 # So, don't put newlines in cache variables' values.
4013 # Ultrix sh set writes to stderr and can't be redirected directly,
4014 # and sets the high bit in the cache file unless we assign to the vars.
4015 {
4016   (set) 2>&1 |
4017     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4018     *ac_space=\ *)
4019       # `set' does not quote correctly, so add quotes (double-quote
4020       # substitution turns \\\\ into \\, and sed turns \\ into \).
4021       sed -n \
4022         "s/'/'\\\\''/g;
4023           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4024       ;;
4025     *)
4026       # `set' quotes correctly as required by POSIX, so do not add quotes.
4027       sed -n \
4028         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4029       ;;
4030     esac;
4031 } |
4032   sed '
4033      t clear
4034      : clear
4035      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4036      t end
4037      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4038      : end' >>confcache
4039 if cmp -s $cache_file confcache; then :; else
4040   if test -w $cache_file; then
4041     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4042     cat confcache >$cache_file
4043   else
4044     echo "not updating unwritable cache $cache_file"
4045   fi
4046 fi
4047 rm -f confcache
4048
4049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4050 # Let make expand exec_prefix.
4051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4052
4053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4055 # trailing colons and then remove the whole line if VPATH becomes empty
4056 # (actually we leave an empty line to preserve line numbers).
4057 if test "x$srcdir" = x.; then
4058   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4059 s/:*\$(srcdir):*/:/;
4060 s/:*\${srcdir}:*/:/;
4061 s/:*@srcdir@:*/:/;
4062 s/^\([^=]*=[    ]*\):*/\1/;
4063 s/:*$//;
4064 s/^[^=]*=[      ]*$//;
4065 }'
4066 fi
4067
4068 DEFS=-DHAVE_CONFIG_H
4069
4070
4071 : ${CONFIG_STATUS=./config.status}
4072 ac_clean_files_save=$ac_clean_files
4073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4076 cat >$CONFIG_STATUS <<_ACEOF
4077 #! $SHELL
4078 # Generated by $as_me.
4079 # Run this file to recreate the current configuration.
4080 # Compiler output produced by configure, useful for debugging
4081 # configure, is in config.log if it exists.
4082
4083 debug=false
4084 SHELL=\${CONFIG_SHELL-$SHELL}
4085 _ACEOF
4086
4087 cat >>$CONFIG_STATUS <<\_ACEOF
4088
4089 ## --------------------- ##
4090 ## M4sh Initialization.  ##
4091 ## --------------------- ##
4092
4093 # Be Bourne compatible
4094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4095   emulate sh
4096   NULLCMD=:
4097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4098   set -o posix
4099 fi
4100
4101 # NLS nuisances.
4102 # Support unset when possible.
4103 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4104   as_unset=unset
4105 else
4106   as_unset=false
4107 fi
4108
4109 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4110     { $as_unset LANG || test "${LANG+set}" != set; } ||
4111       { LANG=C; export LANG; }
4112 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4113     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4114       { LC_ALL=C; export LC_ALL; }
4115 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4116     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4117       { LC_TIME=C; export LC_TIME; }
4118 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4119     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4120       { LC_CTYPE=C; export LC_CTYPE; }
4121 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4122     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4123       { LANGUAGE=C; export LANGUAGE; }
4124 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4125     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4126       { LC_COLLATE=C; export LC_COLLATE; }
4127 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4128     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4129       { LC_NUMERIC=C; export LC_NUMERIC; }
4130 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4131     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4132       { LC_MESSAGES=C; export LC_MESSAGES; }
4133
4134
4135 # Name of the executable.
4136 as_me=`(basename "$0") 2>/dev/null ||
4137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4138          X"$0" : 'X\(//\)$' \| \
4139          X"$0" : 'X\(/\)$' \| \
4140          .     : '\(.\)' 2>/dev/null ||
4141 echo X/"$0" |
4142     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4143           /^X\/\(\/\/\)$/{ s//\1/; q; }
4144           /^X\/\(\/\).*/{ s//\1/; q; }
4145           s/.*/./; q'`
4146
4147 # PATH needs CR, and LINENO needs CR and PATH.
4148 # Avoid depending upon Character Ranges.
4149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4152 as_cr_digits='0123456789'
4153 as_cr_alnum=$as_cr_Letters$as_cr_digits
4154
4155 # The user is always right.
4156 if test "${PATH_SEPARATOR+set}" != set; then
4157   echo "#! /bin/sh" >conftest.sh
4158   echo  "exit 0"   >>conftest.sh
4159   chmod +x conftest.sh
4160   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4161     PATH_SEPARATOR=';'
4162   else
4163     PATH_SEPARATOR=:
4164   fi
4165   rm -f conftest.sh
4166 fi
4167
4168
4169   as_lineno_1=$LINENO
4170   as_lineno_2=$LINENO
4171   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4172   test "x$as_lineno_1" != "x$as_lineno_2" &&
4173   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4174   # Find who we are.  Look in the path if we contain no path at all
4175   # relative or not.
4176   case $0 in
4177     *[\\/]* ) as_myself=$0 ;;
4178     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4184 done
4185
4186        ;;
4187   esac
4188   # We did not find ourselves, most probably we were run as `sh COMMAND'
4189   # in which case we are not to be found in the path.
4190   if test "x$as_myself" = x; then
4191     as_myself=$0
4192   fi
4193   if test ! -f "$as_myself"; then
4194     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4196    { (exit 1); exit 1; }; }
4197   fi
4198   case $CONFIG_SHELL in
4199   '')
4200     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for as_base in sh bash ksh sh5; do
4206          case $as_dir in
4207          /*)
4208            if ("$as_dir/$as_base" -c '
4209   as_lineno_1=$LINENO
4210   as_lineno_2=$LINENO
4211   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4212   test "x$as_lineno_1" != "x$as_lineno_2" &&
4213   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4214              CONFIG_SHELL=$as_dir/$as_base
4215              export CONFIG_SHELL
4216              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4217            fi;;
4218          esac
4219        done
4220 done
4221 ;;
4222   esac
4223
4224   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4225   # uniformly replaced by the line number.  The first 'sed' inserts a
4226   # line-number line before each line; the second 'sed' does the real
4227   # work.  The second script uses 'N' to pair each line-number line
4228   # with the numbered line, and appends trailing '-' during
4229   # substitution so that $LINENO is not a special case at line end.
4230   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4231   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4232   sed '=' <$as_myself |
4233     sed '
4234       N
4235       s,$,-,
4236       : loop
4237       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4238       t loop
4239       s,-$,,
4240       s,^['$as_cr_digits']*\n,,
4241     ' >$as_me.lineno &&
4242   chmod +x $as_me.lineno ||
4243     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4244 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4245    { (exit 1); exit 1; }; }
4246
4247   # Don't try to exec as it changes $[0], causing all sort of problems
4248   # (the dirname of $[0] is not the place where we might find the
4249   # original and so on.  Autoconf is especially sensible to this).
4250   . ./$as_me.lineno
4251   # Exit status is that of the last command.
4252   exit
4253 }
4254
4255
4256 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4257   *c*,-n*) ECHO_N= ECHO_C='
4258 ' ECHO_T='      ' ;;
4259   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4260   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4261 esac
4262
4263 if expr a : '\(a\)' >/dev/null 2>&1; then
4264   as_expr=expr
4265 else
4266   as_expr=false
4267 fi
4268
4269 rm -f conf$$ conf$$.exe conf$$.file
4270 echo >conf$$.file
4271 if ln -s conf$$.file conf$$ 2>/dev/null; then
4272   # We could just check for DJGPP; but this test a) works b) is more generic
4273   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4274   if test -f conf$$.exe; then
4275     # Don't use ln at all; we don't have any links
4276     as_ln_s='cp -p'
4277   else
4278     as_ln_s='ln -s'
4279   fi
4280 elif ln conf$$.file conf$$ 2>/dev/null; then
4281   as_ln_s=ln
4282 else
4283   as_ln_s='cp -p'
4284 fi
4285 rm -f conf$$ conf$$.exe conf$$.file
4286
4287 as_executable_p="test -f"
4288
4289 # Sed expression to map a string onto a valid CPP name.
4290 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4291
4292 # Sed expression to map a string onto a valid variable name.
4293 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4294
4295
4296 # IFS
4297 # We need space, tab and new line, in precisely that order.
4298 as_nl='
4299 '
4300 IFS="   $as_nl"
4301
4302 # CDPATH.
4303 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4304
4305 exec 6>&1
4306
4307 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4308 # report actual input values of CONFIG_FILES etc. instead of their
4309 # values after options handling.  Logging --version etc. is OK.
4310 exec 5>>config.log
4311 {
4312   echo
4313   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4314 ## Running $as_me. ##
4315 _ASBOX
4316 } >&5
4317 cat >&5 <<_CSEOF
4318
4319 This file was extended by libfirm $as_me 0.3.0, which was
4320 generated by GNU Autoconf 2.53.  Invocation command line was
4321
4322   CONFIG_FILES    = $CONFIG_FILES
4323   CONFIG_HEADERS  = $CONFIG_HEADERS
4324   CONFIG_LINKS    = $CONFIG_LINKS
4325   CONFIG_COMMANDS = $CONFIG_COMMANDS
4326   $ $0 $@
4327
4328 _CSEOF
4329 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4330 echo >&5
4331 _ACEOF
4332
4333 # Files that config.status was made for.
4334 if test -n "$ac_config_files"; then
4335   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4336 fi
4337
4338 if test -n "$ac_config_headers"; then
4339   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4340 fi
4341
4342 if test -n "$ac_config_links"; then
4343   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4344 fi
4345
4346 if test -n "$ac_config_commands"; then
4347   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4348 fi
4349
4350 cat >>$CONFIG_STATUS <<\_ACEOF
4351
4352 ac_cs_usage="\
4353 \`$as_me' instantiates files from templates according to the
4354 current configuration.
4355
4356 Usage: $0 [OPTIONS] [FILE]...
4357
4358   -h, --help       print this help, then exit
4359   -V, --version    print version number, then exit
4360   -d, --debug      don't remove temporary files
4361       --recheck    update $as_me by reconfiguring in the same conditions
4362   --file=FILE[:TEMPLATE]
4363                    instantiate the configuration file FILE
4364   --header=FILE[:TEMPLATE]
4365                    instantiate the configuration header FILE
4366
4367 Configuration files:
4368 $config_files
4369
4370 Configuration headers:
4371 $config_headers
4372
4373 Configuration commands:
4374 $config_commands
4375
4376 Report bugs to <bug-autoconf@gnu.org>."
4377 _ACEOF
4378
4379 cat >>$CONFIG_STATUS <<_ACEOF
4380 ac_cs_version="\\
4381 libfirm config.status 0.3.0
4382 configured by $0, generated by GNU Autoconf 2.53,
4383   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4384
4385 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4386 Free Software Foundation, Inc.
4387 This config.status script is free software; the Free Software Foundation
4388 gives unlimited permission to copy, distribute and modify it."
4389 srcdir=$srcdir
4390 INSTALL="$INSTALL"
4391 _ACEOF
4392
4393 cat >>$CONFIG_STATUS <<\_ACEOF
4394 # If no file are specified by the user, then we need to provide default
4395 # value.  By we need to know if files were specified by the user.
4396 ac_need_defaults=:
4397 while test $# != 0
4398 do
4399   case $1 in
4400   --*=*)
4401     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4402     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4403     shift
4404     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4405     shift
4406     ;;
4407   -*);;
4408   *) # This is not an option, so the user has probably given explicit
4409      # arguments.
4410      ac_need_defaults=false;;
4411   esac
4412
4413   case $1 in
4414   # Handling of the options.
4415 _ACEOF
4416 cat >>$CONFIG_STATUS <<_ACEOF
4417   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4418     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4419     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4420 _ACEOF
4421 cat >>$CONFIG_STATUS <<\_ACEOF
4422   --version | --vers* | -V )
4423     echo "$ac_cs_version"; exit 0 ;;
4424   --he | --h)
4425     # Conflict between --help and --header
4426     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4427 Try \`$0 --help' for more information." >&5
4428 echo "$as_me: error: ambiguous option: $1
4429 Try \`$0 --help' for more information." >&2;}
4430    { (exit 1); exit 1; }; };;
4431   --help | --hel | -h )
4432     echo "$ac_cs_usage"; exit 0 ;;
4433   --debug | --d* | -d )
4434     debug=: ;;
4435   --file | --fil | --fi | --f )
4436     shift
4437     CONFIG_FILES="$CONFIG_FILES $1"
4438     ac_need_defaults=false;;
4439   --header | --heade | --head | --hea )
4440     shift
4441     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4442     ac_need_defaults=false;;
4443
4444   # This is an error.
4445   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4446 Try \`$0 --help' for more information." >&5
4447 echo "$as_me: error: unrecognized option: $1
4448 Try \`$0 --help' for more information." >&2;}
4449    { (exit 1); exit 1; }; } ;;
4450
4451   *) ac_config_targets="$ac_config_targets $1" ;;
4452
4453   esac
4454   shift
4455 done
4456
4457 _ACEOF
4458
4459
4460
4461
4462
4463 cat >>$CONFIG_STATUS <<\_ACEOF
4464 for ac_config_target in $ac_config_targets
4465 do
4466   case "$ac_config_target" in
4467   # Handling of arguments.
4468   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4469   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4470   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4471   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4473    { (exit 1); exit 1; }; };;
4474   esac
4475 done
4476
4477 # If the user did not use the arguments to specify the items to instantiate,
4478 # then the envvar interface is used.  Set only those that are not.
4479 # We use the long form for the default assignment because of an extremely
4480 # bizarre bug on SunOS 4.1.3.
4481 if $ac_need_defaults; then
4482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4483   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4484   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4485 fi
4486
4487 # Create a temporary directory, and hook for its removal unless debugging.
4488 $debug ||
4489 {
4490   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4491   trap '{ (exit 1); exit 1; }' 1 2 13 15
4492 }
4493
4494 # Create a (secure) tmp directory for tmp files.
4495 : ${TMPDIR=/tmp}
4496 {
4497   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4498   test -n "$tmp" && test -d "$tmp"
4499 }  ||
4500 {
4501   tmp=$TMPDIR/cs$$-$RANDOM
4502   (umask 077 && mkdir $tmp)
4503 } ||
4504 {
4505    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4506    { (exit 1); exit 1; }
4507 }
4508
4509 _ACEOF
4510
4511 cat >>$CONFIG_STATUS <<_ACEOF
4512
4513 #
4514 # CONFIG_FILES section.
4515 #
4516
4517 # No need to generate the scripts if there are no CONFIG_FILES.
4518 # This happens for instance when ./config.status config.h
4519 if test -n "\$CONFIG_FILES"; then
4520   # Protect against being on the right side of a sed subst in config.status.
4521   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4522    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4523 s,@SHELL@,$SHELL,;t t
4524 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4525 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4526 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4527 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4528 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4529 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4530 s,@exec_prefix@,$exec_prefix,;t t
4531 s,@prefix@,$prefix,;t t
4532 s,@program_transform_name@,$program_transform_name,;t t
4533 s,@bindir@,$bindir,;t t
4534 s,@sbindir@,$sbindir,;t t
4535 s,@libexecdir@,$libexecdir,;t t
4536 s,@datadir@,$datadir,;t t
4537 s,@sysconfdir@,$sysconfdir,;t t
4538 s,@sharedstatedir@,$sharedstatedir,;t t
4539 s,@localstatedir@,$localstatedir,;t t
4540 s,@libdir@,$libdir,;t t
4541 s,@includedir@,$includedir,;t t
4542 s,@oldincludedir@,$oldincludedir,;t t
4543 s,@infodir@,$infodir,;t t
4544 s,@mandir@,$mandir,;t t
4545 s,@build_alias@,$build_alias,;t t
4546 s,@host_alias@,$host_alias,;t t
4547 s,@target_alias@,$target_alias,;t t
4548 s,@DEFS@,$DEFS,;t t
4549 s,@ECHO_C@,$ECHO_C,;t t
4550 s,@ECHO_N@,$ECHO_N,;t t
4551 s,@ECHO_T@,$ECHO_T,;t t
4552 s,@LIBS@,$LIBS,;t t
4553 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4554 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4555 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4556 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4557 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4558 s,@enable_firm_jni@,$enable_firm_jni,;t t
4559 s,@disable_libiberty@,$disable_libiberty,;t t
4560 s,@enable_statistics@,$enable_statistics,;t t
4561 s,@CC@,$CC,;t t
4562 s,@CFLAGS@,$CFLAGS,;t t
4563 s,@LDFLAGS@,$LDFLAGS,;t t
4564 s,@CPPFLAGS@,$CPPFLAGS,;t t
4565 s,@ac_ct_CC@,$ac_ct_CC,;t t
4566 s,@EXEEXT@,$EXEEXT,;t t
4567 s,@OBJEXT@,$OBJEXT,;t t
4568 s,@LD@,$LD,;t t
4569 s,@ac_ct_LD@,$ac_ct_LD,;t t
4570 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4571 s,@AR@,$AR,;t t
4572 s,@TAR@,$TAR,;t t
4573 s,@RANLIB@,$RANLIB,;t t
4574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4578 s,@LN_S@,$LN_S,;t t
4579 s,@DOXYGEN@,$DOXYGEN,;t t
4580 s,@DOT@,$DOT,;t t
4581 s,@JAVAC@,$JAVAC,;t t
4582 s,@JAVAH@,$JAVAH,;t t
4583 s,@CPP@,$CPP,;t t
4584 CEOF
4585
4586 _ACEOF
4587
4588   cat >>$CONFIG_STATUS <<\_ACEOF
4589   # Split the substitutions into bite-sized pieces for seds with
4590   # small command number limits, like on Digital OSF/1 and HP-UX.
4591   ac_max_sed_lines=48
4592   ac_sed_frag=1 # Number of current file.
4593   ac_beg=1 # First line for current file.
4594   ac_end=$ac_max_sed_lines # Line after last line for current file.
4595   ac_more_lines=:
4596   ac_sed_cmds=
4597   while $ac_more_lines; do
4598     if test $ac_beg -gt 1; then
4599       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4600     else
4601       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4602     fi
4603     if test ! -s $tmp/subs.frag; then
4604       ac_more_lines=false
4605     else
4606       # The purpose of the label and of the branching condition is to
4607       # speed up the sed processing (if there are no `@' at all, there
4608       # is no need to browse any of the substitutions).
4609       # These are the two extra sed commands mentioned above.
4610       (echo ':t
4611   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4612       if test -z "$ac_sed_cmds"; then
4613         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4614       else
4615         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4616       fi
4617       ac_sed_frag=`expr $ac_sed_frag + 1`
4618       ac_beg=$ac_end
4619       ac_end=`expr $ac_end + $ac_max_sed_lines`
4620     fi
4621   done
4622   if test -z "$ac_sed_cmds"; then
4623     ac_sed_cmds=cat
4624   fi
4625 fi # test -n "$CONFIG_FILES"
4626
4627 _ACEOF
4628 cat >>$CONFIG_STATUS <<\_ACEOF
4629 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4630   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4631   case $ac_file in
4632   - | *:- | *:-:* ) # input from stdin
4633         cat >$tmp/stdin
4634         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4635         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4636   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4637         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4638   * )   ac_file_in=$ac_file.in ;;
4639   esac
4640
4641   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4642   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4644          X"$ac_file" : 'X\(//\)[^/]' \| \
4645          X"$ac_file" : 'X\(//\)$' \| \
4646          X"$ac_file" : 'X\(/\)' \| \
4647          .     : '\(.\)' 2>/dev/null ||
4648 echo X"$ac_file" |
4649     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4650           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4651           /^X\(\/\/\)$/{ s//\1/; q; }
4652           /^X\(\/\).*/{ s//\1/; q; }
4653           s/.*/./; q'`
4654   { case "$ac_dir" in
4655   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4656   *)                      as_incr_dir=.;;
4657 esac
4658 as_dummy="$ac_dir"
4659 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4660   case $as_mkdir_dir in
4661     # Skip DOS drivespec
4662     ?:) as_incr_dir=$as_mkdir_dir ;;
4663     *)
4664       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4665       test -d "$as_incr_dir" ||
4666         mkdir "$as_incr_dir" ||
4667         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4668 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4669    { (exit 1); exit 1; }; }
4670     ;;
4671   esac
4672 done; }
4673
4674   ac_builddir=.
4675
4676 if test "$ac_dir" != .; then
4677   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4678   # A "../" for each directory in $ac_dir_suffix.
4679   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4680 else
4681   ac_dir_suffix= ac_top_builddir=
4682 fi
4683
4684 case $srcdir in
4685   .)  # No --srcdir option.  We are building in place.
4686     ac_srcdir=.
4687     if test -z "$ac_top_builddir"; then
4688        ac_top_srcdir=.
4689     else
4690        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4691     fi ;;
4692   [\\/]* | ?:[\\/]* )  # Absolute path.
4693     ac_srcdir=$srcdir$ac_dir_suffix;
4694     ac_top_srcdir=$srcdir ;;
4695   *) # Relative path.
4696     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4697     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4698 esac
4699 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4700 # absolute.
4701 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4702 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4703 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4704 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4705
4706
4707   case $INSTALL in
4708   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4709   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4710   esac
4711
4712   if test x"$ac_file" != x-; then
4713     { echo "$as_me:$LINENO: creating $ac_file" >&5
4714 echo "$as_me: creating $ac_file" >&6;}
4715     rm -f "$ac_file"
4716   fi
4717   # Let's still pretend it is `configure' which instantiates (i.e., don't
4718   # use $as_me), people would be surprised to read:
4719   #    /* config.h.  Generated by config.status.  */
4720   if test x"$ac_file" = x-; then
4721     configure_input=
4722   else
4723     configure_input="$ac_file.  "
4724   fi
4725   configure_input=$configure_input"Generated from `echo $ac_file_in |
4726                                      sed 's,.*/,,'` by configure."
4727
4728   # First look for the input files in the build tree, otherwise in the
4729   # src tree.
4730   ac_file_inputs=`IFS=:
4731     for f in $ac_file_in; do
4732       case $f in
4733       -) echo $tmp/stdin ;;
4734       [\\/$]*)
4735          # Absolute (can't be DOS-style, as IFS=:)
4736          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4737 echo "$as_me: error: cannot find input file: $f" >&2;}
4738    { (exit 1); exit 1; }; }
4739          echo $f;;
4740       *) # Relative
4741          if test -f "$f"; then
4742            # Build tree
4743            echo $f
4744          elif test -f "$srcdir/$f"; then
4745            # Source tree
4746            echo $srcdir/$f
4747          else
4748            # /dev/null tree
4749            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4750 echo "$as_me: error: cannot find input file: $f" >&2;}
4751    { (exit 1); exit 1; }; }
4752          fi;;
4753       esac
4754     done` || { (exit 1); exit 1; }
4755 _ACEOF
4756 cat >>$CONFIG_STATUS <<_ACEOF
4757   sed "$ac_vpsub
4758 $extrasub
4759 _ACEOF
4760 cat >>$CONFIG_STATUS <<\_ACEOF
4761 :t
4762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4763 s,@configure_input@,$configure_input,;t t
4764 s,@srcdir@,$ac_srcdir,;t t
4765 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4766 s,@top_srcdir@,$ac_top_srcdir,;t t
4767 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4768 s,@builddir@,$ac_builddir,;t t
4769 s,@abs_builddir@,$ac_abs_builddir,;t t
4770 s,@top_builddir@,$ac_top_builddir,;t t
4771 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4772 s,@INSTALL@,$ac_INSTALL,;t t
4773 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4774   rm -f $tmp/stdin
4775   if test x"$ac_file" != x-; then
4776     mv $tmp/out $ac_file
4777   else
4778     cat $tmp/out
4779     rm -f $tmp/out
4780   fi
4781
4782 done
4783 _ACEOF
4784 cat >>$CONFIG_STATUS <<\_ACEOF
4785
4786 #
4787 # CONFIG_HEADER section.
4788 #
4789
4790 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4791 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4792 #
4793 # ac_d sets the value in "#define NAME VALUE" lines.
4794 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4795 ac_dB='[        ].*$,\1#\2'
4796 ac_dC=' '
4797 ac_dD=',;t'
4798 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4799 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4800 ac_uB='$,\1#\2define\3'
4801 ac_uC=' '
4802 ac_uD=',;t'
4803
4804 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4805   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4806   case $ac_file in
4807   - | *:- | *:-:* ) # input from stdin
4808         cat >$tmp/stdin
4809         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4810         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4811   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4813   * )   ac_file_in=$ac_file.in ;;
4814   esac
4815
4816   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4817 echo "$as_me: creating $ac_file" >&6;}
4818
4819   # First look for the input files in the build tree, otherwise in the
4820   # src tree.
4821   ac_file_inputs=`IFS=:
4822     for f in $ac_file_in; do
4823       case $f in
4824       -) echo $tmp/stdin ;;
4825       [\\/$]*)
4826          # Absolute (can't be DOS-style, as IFS=:)
4827          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4828 echo "$as_me: error: cannot find input file: $f" >&2;}
4829    { (exit 1); exit 1; }; }
4830          echo $f;;
4831       *) # Relative
4832          if test -f "$f"; then
4833            # Build tree
4834            echo $f
4835          elif test -f "$srcdir/$f"; then
4836            # Source tree
4837            echo $srcdir/$f
4838          else
4839            # /dev/null tree
4840            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4841 echo "$as_me: error: cannot find input file: $f" >&2;}
4842    { (exit 1); exit 1; }; }
4843          fi;;
4844       esac
4845     done` || { (exit 1); exit 1; }
4846   # Remove the trailing spaces.
4847   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4848
4849 _ACEOF
4850
4851 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4852 # `conftest.undefs', that substitutes the proper values into
4853 # config.h.in to produce config.h.  The first handles `#define'
4854 # templates, and the second `#undef' templates.
4855 # And first: Protect against being on the right side of a sed subst in
4856 # config.status.  Protect against being in an unquoted here document
4857 # in config.status.
4858 rm -f conftest.defines conftest.undefs
4859 # Using a here document instead of a string reduces the quoting nightmare.
4860 # Putting comments in sed scripts is not portable.
4861 #
4862 # `end' is used to avoid that the second main sed command (meant for
4863 # 0-ary CPP macros) applies to n-ary macro definitions.
4864 # See the Autoconf documentation for `clear'.
4865 cat >confdef2sed.sed <<\_ACEOF
4866 s/[\\&,]/\\&/g
4867 s,[\\$`],\\&,g
4868 t clear
4869 : clear
4870 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4871 t end
4872 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4873 : end
4874 _ACEOF
4875 # If some macros were called several times there might be several times
4876 # the same #defines, which is useless.  Nevertheless, we may not want to
4877 # sort them, since we want the *last* AC-DEFINE to be honored.
4878 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4879 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4880 rm -f confdef2sed.sed
4881
4882 # This sed command replaces #undef with comments.  This is necessary, for
4883 # example, in the case of _POSIX_SOURCE, which is predefined and required
4884 # on some systems where configure will not decide to define it.
4885 cat >>conftest.undefs <<\_ACEOF
4886 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4887 _ACEOF
4888
4889 # Break up conftest.defines because some shells have a limit on the size
4890 # of here documents, and old seds have small limits too (100 cmds).
4891 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4892 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4893 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4894 echo '  :' >>$CONFIG_STATUS
4895 rm -f conftest.tail
4896 while grep . conftest.defines >/dev/null
4897 do
4898   # Write a limited-size here document to $tmp/defines.sed.
4899   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4900   # Speed up: don't consider the non `#define' lines.
4901   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4902   # Work around the forget-to-reset-the-flag bug.
4903   echo 't clr' >>$CONFIG_STATUS
4904   echo ': clr' >>$CONFIG_STATUS
4905   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4906   echo 'CEOF
4907   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4908   rm -f $tmp/in
4909   mv $tmp/out $tmp/in
4910 ' >>$CONFIG_STATUS
4911   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4912   rm -f conftest.defines
4913   mv conftest.tail conftest.defines
4914 done
4915 rm -f conftest.defines
4916 echo '  fi # egrep' >>$CONFIG_STATUS
4917 echo >>$CONFIG_STATUS
4918
4919 # Break up conftest.undefs because some shells have a limit on the size
4920 # of here documents, and old seds have small limits too (100 cmds).
4921 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4922 rm -f conftest.tail
4923 while grep . conftest.undefs >/dev/null
4924 do
4925   # Write a limited-size here document to $tmp/undefs.sed.
4926   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4927   # Speed up: don't consider the non `#undef'
4928   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4929   # Work around the forget-to-reset-the-flag bug.
4930   echo 't clr' >>$CONFIG_STATUS
4931   echo ': clr' >>$CONFIG_STATUS
4932   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4933   echo 'CEOF
4934   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4935   rm -f $tmp/in
4936   mv $tmp/out $tmp/in
4937 ' >>$CONFIG_STATUS
4938   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4939   rm -f conftest.undefs
4940   mv conftest.tail conftest.undefs
4941 done
4942 rm -f conftest.undefs
4943
4944 cat >>$CONFIG_STATUS <<\_ACEOF
4945   # Let's still pretend it is `configure' which instantiates (i.e., don't
4946   # use $as_me), people would be surprised to read:
4947   #    /* config.h.  Generated by config.status.  */
4948   if test x"$ac_file" = x-; then
4949     echo "/* Generated by configure.  */" >$tmp/config.h
4950   else
4951     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4952   fi
4953   cat $tmp/in >>$tmp/config.h
4954   rm -f $tmp/in
4955   if test x"$ac_file" != x-; then
4956     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4957       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4958 echo "$as_me: $ac_file is unchanged" >&6;}
4959     else
4960       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4962          X"$ac_file" : 'X\(//\)[^/]' \| \
4963          X"$ac_file" : 'X\(//\)$' \| \
4964          X"$ac_file" : 'X\(/\)' \| \
4965          .     : '\(.\)' 2>/dev/null ||
4966 echo X"$ac_file" |
4967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4969           /^X\(\/\/\)$/{ s//\1/; q; }
4970           /^X\(\/\).*/{ s//\1/; q; }
4971           s/.*/./; q'`
4972       { case "$ac_dir" in
4973   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4974   *)                      as_incr_dir=.;;
4975 esac
4976 as_dummy="$ac_dir"
4977 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4978   case $as_mkdir_dir in
4979     # Skip DOS drivespec
4980     ?:) as_incr_dir=$as_mkdir_dir ;;
4981     *)
4982       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4983       test -d "$as_incr_dir" ||
4984         mkdir "$as_incr_dir" ||
4985         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4986 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4987    { (exit 1); exit 1; }; }
4988     ;;
4989   esac
4990 done; }
4991
4992       rm -f $ac_file
4993       mv $tmp/config.h $ac_file
4994     fi
4995   else
4996     cat $tmp/config.h
4997     rm -f $tmp/config.h
4998   fi
4999 done
5000 _ACEOF
5001 cat >>$CONFIG_STATUS <<\_ACEOF
5002
5003 #
5004 # CONFIG_COMMANDS section.
5005 #
5006 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5007   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5008   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5009   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5010 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5011          X"$ac_dest" : 'X\(//\)[^/]' \| \
5012          X"$ac_dest" : 'X\(//\)$' \| \
5013          X"$ac_dest" : 'X\(/\)' \| \
5014          .     : '\(.\)' 2>/dev/null ||
5015 echo X"$ac_dest" |
5016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5017           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5018           /^X\(\/\/\)$/{ s//\1/; q; }
5019           /^X\(\/\).*/{ s//\1/; q; }
5020           s/.*/./; q'`
5021   ac_builddir=.
5022
5023 if test "$ac_dir" != .; then
5024   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5025   # A "../" for each directory in $ac_dir_suffix.
5026   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5027 else
5028   ac_dir_suffix= ac_top_builddir=
5029 fi
5030
5031 case $srcdir in
5032   .)  # No --srcdir option.  We are building in place.
5033     ac_srcdir=.
5034     if test -z "$ac_top_builddir"; then
5035        ac_top_srcdir=.
5036     else
5037        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5038     fi ;;
5039   [\\/]* | ?:[\\/]* )  # Absolute path.
5040     ac_srcdir=$srcdir$ac_dir_suffix;
5041     ac_top_srcdir=$srcdir ;;
5042   *) # Relative path.
5043     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5044     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5045 esac
5046 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5047 # absolute.
5048 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5049 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5050 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5051 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5052
5053
5054   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5055 echo "$as_me: executing $ac_dest commands" >&6;}
5056   case $ac_dest in
5057     default )  touch stamp-h  ;;
5058   esac
5059 done
5060 _ACEOF
5061
5062 cat >>$CONFIG_STATUS <<\_ACEOF
5063
5064 { (exit 0); exit 0; }
5065 _ACEOF
5066 chmod +x $CONFIG_STATUS
5067 ac_clean_files=$ac_clean_files_save
5068
5069
5070 # configure is writing to config.log, and then calls config.status.
5071 # config.status does its own redirection, appending to config.log.
5072 # Unfortunately, on DOS this fails, as config.log is still kept open
5073 # by configure, so config.status won't be able to write to it; its
5074 # output is simply discarded.  So we exec the FD to /dev/null,
5075 # effectively closing config.log, so it can be properly (re)opened and
5076 # appended to by config.status.  When coming back to configure, we
5077 # need to make the FD available again.
5078 if test "$no_create" != yes; then
5079   ac_cs_success=:
5080   exec 5>/dev/null
5081   $SHELL $CONFIG_STATUS || ac_cs_success=false
5082   exec 5>>config.log
5083   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5084   # would make configure fail if this is the last instruction.
5085   $ac_cs_success || { (exit 1); exit 1; }
5086 fi