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