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