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