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