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