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