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