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