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