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