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