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