2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
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.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --disable-inlining disable inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --enable-heapanalysis Compile with heap analysis.
833 --enable-backend Compile with backend facility.
834 --disable-libiberty disable own libiberty parts
835 --disable-hooks disable Firm hooks
836 --enable-statistics enable Firm statistics
837 --disable-external-effects disable descriptions of external effects in XML
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-includedir=add colon seperated list of directories to include search path
843 --with-libdir=add colon seperated list of directories to linker search path
844 --with-libxml2=installation prefix of libxml2 (IPD: --with-libxml2=/usr/public/libxml2)
846 Some influential environment variables:
847 CC C compiler command
848 CFLAGS C compiler flags
849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
850 nonstandard directory <lib dir>
851 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
852 headers in a nonstandard directory <include dir>
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
861 if test "$ac_init_help" = "recursive"; then
862 # If there are subdirs, report their specific --help.
864 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865 test -d $ac_dir || continue
868 if test "$ac_dir" != .; then
869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870 # A "../" for each directory in $ac_dir_suffix.
871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 ac_dir_suffix= ac_top_builddir=
877 .) # No --srcdir option. We are building in place.
879 if test -z "$ac_top_builddir"; then
882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 [\\/]* | ?:[\\/]* ) # Absolute path.
885 ac_srcdir=$srcdir$ac_dir_suffix;
886 ac_top_srcdir=$srcdir ;;
888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
894 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
895 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
896 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899 # Check for guested configure; otherwise get Cygnus style configure.
900 if test -f $ac_srcdir/configure.gnu; then
902 $SHELL $ac_srcdir/configure.gnu --help=recursive
903 elif test -f $ac_srcdir/configure; then
905 $SHELL $ac_srcdir/configure --help=recursive
906 elif test -f $ac_srcdir/configure.ac ||
907 test -f $ac_srcdir/configure.in; then
911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
920 libfirm configure 0.3.0
921 generated by GNU Autoconf 2.53
923 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
924 Free Software Foundation, Inc.
925 This configure script is free software; the Free Software Foundation
926 gives unlimited permission to copy, distribute and modify it.
932 This file contains any messages produced by compilers while
933 running configure, to aid debugging if configure makes a mistake.
935 It was created by libfirm $as_me 0.3.0, which was
936 generated by GNU Autoconf 2.53. Invocation command line was
947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
959 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
970 test -z "$as_dir" && as_dir=.
986 # Keep a trace of the command line.
987 # Strip out --no-create and --no-recursion so they do not pile up.
988 # Also quote any args containing shell meta-characters.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n ) continue ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 case " $ac_configure_args " in
1003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1004 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 # Get rid of the leading space.
1010 # When interrupted or exit'd, cleanup temporary files, and complete
1011 # config.log. We remove comments because anyway the quotes in there
1012 # would cause problems or look ugly.
1013 # WARNING: Be sure not to use single quotes in there, as some shells,
1014 # such as our DU 5.0 friend, will then `close' the trap.
1015 trap 'exit_status=$?
1016 # Save into config.log some information that might help in debugging.
1020 ## ---------------- ##
1021 ## Cache variables. ##
1022 ## ---------------- ##
1025 # The following way of writing the cache mishandles newlines in values,
1028 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1031 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041 if test -s confdefs.h; then
1048 sed "/^$/d" confdefs.h
1051 test "$ac_signal" != 0 &&
1052 echo "$as_me: caught signal $ac_signal"
1053 echo "$as_me: exit $exit_status"
1055 rm -f core core.* *.core &&
1056 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1059 for ac_signal in 1 2 13 15; do
1060 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1064 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1065 rm -rf conftest* confdefs.h
1066 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1069 # Predefined preprocessor variables.
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_NAME "$PACKAGE_NAME"
1076 cat >>confdefs.h <<_ACEOF
1077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1081 cat >>confdefs.h <<_ACEOF
1082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_STRING "$PACKAGE_STRING"
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1096 # Let the site file select an alternate cache file if it wants to.
1097 # Prefer explicitly selected file to automatically selected ones.
1098 if test -z "$CONFIG_SITE"; then
1099 if test "x$prefix" != xNONE; then
1100 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1105 for ac_site_file in $CONFIG_SITE; do
1106 if test -r "$ac_site_file"; then
1107 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1108 echo "$as_me: loading site script $ac_site_file" >&6;}
1109 sed 's/^/| /' "$ac_site_file" >&5
1114 if test -r "$cache_file"; then
1115 # Some versions of bash will fail to source /dev/null (special
1116 # files actually), so we avoid doing that.
1117 if test -f "$cache_file"; then
1118 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1119 echo "$as_me: loading cache $cache_file" >&6;}
1121 [\\/]* | ?:[\\/]* ) . $cache_file;;
1122 *) . ./$cache_file;;
1126 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1127 echo "$as_me: creating cache $cache_file" >&6;}
1131 # Check that the precious variables saved in the cache have kept the same
1133 ac_cache_corrupted=false
1134 for ac_var in `(set) 2>&1 |
1135 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1137 eval ac_new_set=\$ac_env_${ac_var}_set
1138 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1139 eval ac_new_val="\$ac_env_${ac_var}_value"
1140 case $ac_old_set,$ac_new_set in
1142 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1143 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1144 ac_cache_corrupted=: ;;
1146 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1147 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1148 ac_cache_corrupted=: ;;
1151 if test "x$ac_old_val" != "x$ac_new_val"; then
1152 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1153 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1154 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1155 echo "$as_me: former value: $ac_old_val" >&2;}
1156 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1157 echo "$as_me: current value: $ac_new_val" >&2;}
1158 ac_cache_corrupted=:
1161 # Pass precious variables to config.status.
1162 if test "$ac_new_set" = set; then
1164 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1165 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1166 *) ac_arg=$ac_var=$ac_new_val ;;
1168 case " $ac_configure_args " in
1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1170 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1174 if $ac_cache_corrupted; then
1175 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1176 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1177 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1178 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1179 { (exit 1); exit 1; }; }
1183 ac_cpp='$CPP $CPPFLAGS'
1184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1215 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1216 ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
1217 ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
1218 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1222 ac_config_headers="$ac_config_headers config.h"
1225 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1228 CONF_DIR_NAME=`dirname $0`
1231 # Check whether --with-includedir or --without-includedir was given.
1232 if test "${with_includedir+set}" = set; then
1233 withval="$with_includedir"
1234 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1238 # Check whether --with-libdir or --without-libdir was given.
1239 if test "${with_libdir+set}" = set; then
1240 withval="$with_libdir"
1241 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1245 # Check whether --with-libxml2 or --without-libxml2 was given.
1246 if test "${with_libxml2+set}" = set; then
1247 withval="$with_libxml2"
1248 LDFLAGS=$LDFLAGS" -L"$withval"/lib";
1249 CPPFLAGS=$CPPFLAGS" -I"$withval"/include/libxml2"
1253 # Check whether --enable-debug or --disable-debug was given.
1254 if test "${enable_debug+set}" = set; then
1255 enableval="$enable_debug"
1256 if test "$enableval" = yes; then
1257 cat >>confdefs.h <<\_ACEOF
1258 #define DEBUG_libfirm 1
1262 cat >>confdefs.h <<\_ACEOF
1270 # Check whether --enable-inlining or --disable-inlining was given.
1271 if test "${enable_inlining+set}" = set; then
1272 enableval="$enable_inlining"
1273 if test "$enableval" = yes; then
1274 cat >>confdefs.h <<\_ACEOF
1275 #define USE_INLINING 1
1280 cat >>confdefs.h <<\_ACEOF
1281 #define USE_INLINING 1
1287 # Check whether --enable-profile or --disable-profile was given.
1288 if test "${enable_profile+set}" = set; then
1289 enableval="$enable_profile"
1290 if test "$enableval"=yes; then
1291 enable_profile_libfirm=yes
1294 enable_profile_libfirm=no
1298 # Check whether --enable-autodoc or --disable-autodoc was given.
1299 if test "${enable_autodoc+set}" = set; then
1300 enableval="$enable_autodoc"
1301 if test "$enableval"=yes; then
1302 enable_auto_documentation=yes
1305 enable_auto_documentation=no
1310 # Check whether --enable-firmjni or --disable-firmjni was given.
1311 if test "${enable_firmjni+set}" = set; then
1312 enableval="$enable_firmjni"
1313 if test "$enableval"=yes; then
1321 echo "$as_me:$LINENO: checking for heapanalysis" >&5
1322 echo $ECHO_N "checking for heapanalysis... $ECHO_C" >&6
1323 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1324 if test "${enable_heapanalysis+set}" = set; then
1325 enableval="$enable_heapanalysis"
1326 enable_heapanalysis=$enableval
1328 enable_heapanalysis="no"
1330 if test "$enable_heapanalysis" = "no"; then
1331 echo "$as_me:$LINENO: result: disabled" >&5
1332 echo "${ECHO_T}disabled" >&6
1334 cat >>confdefs.h <<\_ACEOF
1335 #define DO_HEAPANALYSIS 1
1338 echo "$as_me:$LINENO: result: enabled" >&5
1339 echo "${ECHO_T}enabled" >&6
1343 # Check whether --enable-backend or --disable-backend was given.
1344 if test "${enable_backend+set}" = set; then
1345 enableval="$enable_backend"
1346 if test "$enableval" = "yes"; then
1347 cat >>confdefs.h <<\_ACEOF
1348 #define FIRM_BACKEND 1
1353 enable_backend="yes"
1357 # Check whether --enable-libiberty or --disable-libiberty was given.
1358 if test "${enable_libiberty+set}" = set; then
1359 enableval="$enable_libiberty"
1360 if test "$enableval"=yes; then
1361 disable_libiberty_=yes
1364 disable_libiberty=no
1368 # Check whether --enable-hooks or --disable-hooks was given.
1369 if test "${enable_hooks+set}" = set; then
1370 enableval="$enable_hooks"
1371 if test "$enableval" = yes; then
1372 cat >>confdefs.h <<\_ACEOF
1373 #define FIRM_ENABLE_HOOKS 1
1378 cat >>confdefs.h <<\_ACEOF
1379 #define FIRM_ENABLE_HOOKS 1
1385 # Check whether --enable-statistics or --disable-statistics was given.
1386 if test "${enable_statistics+set}" = set; then
1387 enableval="$enable_statistics"
1388 if test "$enableval"=yes; then
1389 cat >>confdefs.h <<\_ACEOF
1390 #define FIRM_STATISTICS 1
1397 echo "$as_me:$LINENO: checking for using external effects in xml2" >&5
1398 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6
1399 # Check whether --enable-external-effects or --disable-external-effects was given.
1400 if test "${enable_external_effects+set}" = set; then
1401 enableval="$enable_external_effects"
1402 if test "$enableval"="no"; then
1403 enable_external_effects=no
1406 enable_external_effects=yes
1409 if test "$enable_external_effects" == no; then
1410 echo "$as_me:$LINENO: result: disabled" >&5
1411 echo "${ECHO_T}disabled" >&6
1413 echo "$as_me:$LINENO: result: enabled" >&5
1414 echo "${ECHO_T}enabled" >&6
1419 ac_cpp='$CPP $CPPFLAGS'
1420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423 if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC="$CC" # Let the user override the test.
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453 echo "${ECHO_T}$CC" >&6
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1460 if test -z "$ac_cv_prog_CC"; then
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463 set dummy gcc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$ac_ct_CC"; then
1470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_ac_ct_CC="gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489 if test -n "$ac_ct_CC"; then
1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491 echo "${ECHO_T}$ac_ct_CC" >&6
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1502 if test -z "$CC"; then
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505 set dummy ${ac_tool_prefix}cc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC="${ac_tool_prefix}cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1540 if test -z "$ac_cv_prog_CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1583 if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603 ac_prog_rejected=yes
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy $ac_cv_prog_CC
1617 if test $# != 0; then
1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1622 set dummy "$as_dir/$ac_word" ${1+"$@"}
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1639 if test -z "$CC"; then
1640 if test -n "$ac_tool_prefix"; then
1643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$CC" && break
1681 if test -z "$CC"; then
1685 # Extract the first word of "$ac_prog", so it can be a program name with args.
1686 set dummy $ac_prog; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_CC"; then
1693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_CC="$ac_prog"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712 if test -n "$ac_ct_CC"; then
1713 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714 echo "${ECHO_T}$ac_ct_CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1720 test -n "$ac_ct_CC" && break
1729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1730 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1731 { (exit 1); exit 1; }; }
1733 # Provide some information about the compiler.
1734 echo "$as_me:$LINENO:" \
1735 "checking for C compiler version" >&5
1736 ac_compiler=`set X $ac_compile; echo $2`
1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738 (eval $ac_compiler --version </dev/null >&5) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743 (eval $ac_compiler -v </dev/null >&5) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748 (eval $ac_compiler -V </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1753 cat >conftest.$ac_ext <<_ACEOF
1754 #line $LINENO "configure"
1755 #include "confdefs.h"
1757 #ifdef F77_DUMMY_MAIN
1761 int F77_DUMMY_MAIN() { return 1; }
1771 ac_clean_files_save=$ac_clean_files
1772 ac_clean_files="$ac_clean_files a.out a.exe"
1773 # Try to create an executable without -o first, disregard a.out.
1774 # It will help us diagnose broken compilers, and finding out an intuition
1776 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1777 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1778 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1779 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1780 (eval $ac_link_default) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }; then
1784 # Find the output, starting from the most likely. This scheme is
1785 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1788 # Be careful to initialize this variable, since it used to be cached.
1789 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1791 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1792 ls a.out conftest 2>/dev/null;
1793 ls a.* conftest.* 2>/dev/null`; do
1795 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1796 a.out ) # We found the default executable, but exeext='' is most
1799 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1807 echo "$as_me: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1809 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1810 echo "$as_me: error: C compiler cannot create executables" >&2;}
1811 { (exit 77); exit 77; }; }
1814 ac_exeext=$ac_cv_exeext
1815 echo "$as_me:$LINENO: result: $ac_file" >&5
1816 echo "${ECHO_T}$ac_file" >&6
1818 # Check the compiler produces executables we can run. If not, either
1819 # the compiler is broken, or we cross compile.
1820 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1821 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1822 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1823 # If not cross compiling, check that we can run a simple program.
1824 if test "$cross_compiling" != yes; then
1825 if { ac_try='./$ac_file'
1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; }; then
1833 if test "$cross_compiling" = maybe; then
1836 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1837 If you meant to cross compile, use \`--host'." >&5
1838 echo "$as_me: error: cannot run C compiled programs.
1839 If you meant to cross compile, use \`--host'." >&2;}
1840 { (exit 1); exit 1; }; }
1844 echo "$as_me:$LINENO: result: yes" >&5
1845 echo "${ECHO_T}yes" >&6
1847 rm -f a.out a.exe conftest$ac_cv_exeext
1848 ac_clean_files=$ac_clean_files_save
1849 # Check the compiler produces executables we can run. If not, either
1850 # the compiler is broken, or we cross compile.
1851 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1852 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1853 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1854 echo "${ECHO_T}$cross_compiling" >&6
1856 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1857 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1859 (eval $ac_link) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1865 # work properly (i.e., refer to `conftest.exe'), while it won't with
1867 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1869 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1879 { (exit 1); exit 1; }; }
1882 rm -f conftest$ac_cv_exeext
1883 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1884 echo "${ECHO_T}$ac_cv_exeext" >&6
1886 rm -f conftest.$ac_ext
1887 EXEEXT=$ac_cv_exeext
1889 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1891 if test "${ac_cv_objext+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 cat >conftest.$ac_ext <<_ACEOF
1895 #line $LINENO "configure"
1896 #include "confdefs.h"
1898 #ifdef F77_DUMMY_MAIN
1902 int F77_DUMMY_MAIN() { return 1; }
1912 rm -f conftest.o conftest.obj
1913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1914 (eval $ac_compile) 2>&5
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }; then
1918 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926 echo "$as_me: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1930 { (exit 1); exit 1; }; }
1933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1936 echo "${ECHO_T}$ac_cv_objext" >&6
1937 OBJEXT=$ac_cv_objext
1939 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line $LINENO "configure"
1946 #include "confdefs.h"
1948 #ifdef F77_DUMMY_MAIN
1952 int F77_DUMMY_MAIN() { return 1; }
1965 rm -f conftest.$ac_objext
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); } &&
1971 { ac_try='test -s conftest.$ac_objext'
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; }; then
1979 echo "$as_me: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1983 rm -f conftest.$ac_objext conftest.$ac_ext
1984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1987 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1989 GCC=`test $ac_compiler_gnu = yes && echo yes`
1990 ac_test_CFLAGS=${CFLAGS+set}
1991 ac_save_CFLAGS=$CFLAGS
1993 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1995 if test "${ac_cv_prog_cc_g+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 cat >conftest.$ac_ext <<_ACEOF
1999 #line $LINENO "configure"
2000 #include "confdefs.h"
2002 #ifdef F77_DUMMY_MAIN
2006 int F77_DUMMY_MAIN() { return 1; }
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2034 rm -f conftest.$ac_objext conftest.$ac_ext
2036 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2038 if test "$ac_test_CFLAGS" = set; then
2039 CFLAGS=$ac_save_CFLAGS
2040 elif test $ac_cv_prog_cc_g = yes; then
2041 if test "$GCC" = yes; then
2047 if test "$GCC" = yes; then
2053 # Some people use a C++ compiler to compile C. Since we use `exit',
2054 # in C++ we need to declare it. In case someone uses the same compiler
2055 # for both compiling C and C++ we need to have the C++ compiler decide
2056 # the declaration of exit, since it's the most demanding environment.
2057 cat >conftest.$ac_ext <<_ACEOF
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 for ac_declaration in \
2076 '#include <stdlib.h>' \
2077 'extern "C" void std::exit (int) throw (); using std::exit;' \
2078 'extern "C" void std::exit (int); using std::exit;' \
2079 'extern "C" void exit (int) throw ();' \
2080 'extern "C" void exit (int);' \
2083 cat >conftest.$ac_ext <<_ACEOF
2084 #line $LINENO "configure"
2085 #include "confdefs.h"
2088 #ifdef F77_DUMMY_MAIN
2092 int F77_DUMMY_MAIN() { return 1; }
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2120 rm -f conftest.$ac_objext conftest.$ac_ext
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 #include "confdefs.h"
2125 #ifdef F77_DUMMY_MAIN
2129 int F77_DUMMY_MAIN() { return 1; }
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } &&
2145 { ac_try='test -s conftest.$ac_objext'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2153 echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 rm -f conftest.$ac_objext conftest.$ac_ext
2159 if test -n "$ac_declaration"; then
2160 echo '#ifdef __cplusplus' >>confdefs.h
2161 echo $ac_declaration >>confdefs.h
2162 echo '#endif' >>confdefs.h
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 rm -f conftest.$ac_objext conftest.$ac_ext
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -z "$LD"; then
2179 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}ld; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_LD+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$LD"; then
2188 ac_cv_prog_LD="$LD" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_LD="${ac_tool_prefix}ld"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$LD"; then
2208 echo "$as_me:$LINENO: result: $LD" >&5
2209 echo "${ECHO_T}$LD" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2216 if test -z "$ac_cv_prog_LD"; then
2218 # Extract the first word of "ld", so it can be a program name with args.
2219 set dummy ld; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$ac_ct_LD"; then
2226 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_ac_ct_LD="ld"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2245 if test -n "$ac_ct_LD"; then
2246 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2247 echo "${ECHO_T}$ac_ct_LD" >&6
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2260 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2261 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2262 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 libfirm_cv_prog_ld_r=no
2268 cat > conftest.$ac_ext <<EOF
2269 int foo() { return 0; }
2271 if eval $ac_compile && mv conftest.o conftest2.o; then
2272 cat > conftest.$ac_ext <<EOF
2274 int main() { return foo(); }
2276 if eval $ac_compile; then
2277 if $LD -r -o conftest conftest.o conftest2.o; then
2278 libfirm_cv_prog_ld_r=yes
2285 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2286 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2289 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2290 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2291 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2292 { (exit 1); exit 1; }; }
2295 # Extract the first word of "ar", so it can be a program name with args.
2296 set dummy ar; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_AR+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$AR"; then
2303 ac_cv_prog_AR="$AR" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_AR=""ar""
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2323 if test -n "$AR"; then
2324 echo "$as_me:$LINENO: result: $AR" >&5
2325 echo "${ECHO_T}$AR" >&6
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2331 if test "$AR" != "ar"; then
2332 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2333 echo "$as_me: error: need ar for creating archives" >&2;}
2334 { (exit 1); exit 1; }; }
2337 # Extract the first word of "tar", so it can be a program name with args.
2338 set dummy tar; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_TAR+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$TAR"; then
2345 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_TAR=""tar""
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2365 if test -n "$TAR"; then
2366 echo "$as_me:$LINENO: result: $TAR" >&5
2367 echo "${ECHO_T}$TAR" >&6
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 if test "$TAR" != "tar"; then
2374 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2375 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2376 { (exit 1); exit 1; }; }
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2383 echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2385 if test "${ac_cv_prog_RANLIB+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$RANLIB"; then
2389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 RANLIB=$ac_cv_prog_RANLIB
2408 if test -n "$RANLIB"; then
2409 echo "$as_me:$LINENO: result: $RANLIB" >&5
2410 echo "${ECHO_T}$RANLIB" >&6
2412 echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2417 if test -z "$ac_cv_prog_RANLIB"; then
2418 ac_ct_RANLIB=$RANLIB
2419 # Extract the first word of "ranlib", so it can be a program name with args.
2420 set dummy ranlib; ac_word=$2
2421 echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$ac_ct_RANLIB"; then
2427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_ac_ct_RANLIB="ranlib"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2447 if test -n "$ac_ct_RANLIB"; then
2448 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2449 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2451 echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6
2455 RANLIB=$ac_ct_RANLIB
2457 RANLIB="$ac_cv_prog_RANLIB"
2462 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2463 if test -f $ac_dir/install-sh; then
2465 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 elif test -f $ac_dir/install.sh; then
2469 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 elif test -f $ac_dir/shtool; then
2473 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 if test -z "$ac_aux_dir"; then
2478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2479 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2480 { (exit 1); exit 1; }; }
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2484 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2486 # Find a good install program. We prefer a C program (faster),
2487 # so one script is as good as another. But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2511 ./ | .// | /cC/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515 # OSF1 and SCO ODT 3.0 have their own names for install.
2516 # Don't use installbsd from OSF since it installs stuff as root
2518 for ac_prog in ginstall scoinst install; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2521 if test $ac_prog = install &&
2522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2523 # AIX install. It has an incompatible calling convention.
2525 elif test $ac_prog = install &&
2526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # program-specific install script used by HP pwplus--don't use.
2530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 if test "${ac_cv_path_install+set}" = set; then
2543 INSTALL=$ac_cv_path_install
2545 # As a last resort, use the slow shell script. We don't cache a
2546 # path for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the path is relative.
2549 INSTALL=$ac_install_sh
2552 echo "$as_me:$LINENO: result: $INSTALL" >&5
2553 echo "${ECHO_T}$INSTALL" >&6
2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556 # It thinks the first close brace ends the variable substitution.
2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564 touch tmp-install.a tmp-install.b
2565 if eval "$INSTALL tmp-install.a tmp-install.b" ; then
2568 rm tmp-install.a tmp-install.b
2571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2574 if test "$LN_S" = "ln -s"; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2578 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2579 echo "${ECHO_T}no, using $LN_S" >&6
2583 if test "$enable_auto_documentation" = yes; then
2584 # Extract the first word of "doxygen", so it can be a program name with args.
2585 set dummy doxygen; ac_word=$2
2586 echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$DOXYGEN"; then
2592 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_DOXYGEN=""doxygen""
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2611 DOXYGEN=$ac_cv_prog_DOXYGEN
2612 if test -n "$DOXYGEN"; then
2613 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2614 echo "${ECHO_T}$DOXYGEN" >&6
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2620 if test "$DOXYGEN" != "doxygen"; then
2621 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2622 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2623 { (exit 1); exit 1; }; }
2625 # Extract the first word of "dot", so it can be a program name with args.
2626 set dummy dot; ac_word=$2
2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_DOT+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$DOT"; then
2633 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_DOT=""dot""
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2653 if test -n "$DOT"; then
2654 echo "$as_me:$LINENO: result: $DOT" >&5
2655 echo "${ECHO_T}$DOT" >&6
2657 echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2661 if test "$DOT" != "dot"; then
2662 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2663 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2664 { (exit 1); exit 1; }; }
2668 if test "$enable_firm_jni" = yes; then
2669 # Extract the first word of "javac", so it can be a program name with args.
2670 set dummy javac; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_JAVAC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$JAVAC"; then
2677 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_JAVAC=""javac""
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2696 JAVAC=$ac_cv_prog_JAVAC
2697 if test -n "$JAVAC"; then
2698 echo "$as_me:$LINENO: result: $JAVAC" >&5
2699 echo "${ECHO_T}$JAVAC" >&6
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2705 if test "$JAVAC" != "javac"; then
2706 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2707 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2708 { (exit 1); exit 1; }; }
2710 # Extract the first word of "javah", so it can be a program name with args.
2711 set dummy javah; ac_word=$2
2712 echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714 if test "${ac_cv_prog_JAVAH+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 if test -n "$JAVAH"; then
2718 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_JAVAH=""javah""
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2737 JAVAH=$ac_cv_prog_JAVAH
2738 if test -n "$JAVAH"; then
2739 echo "$as_me:$LINENO: result: $JAVAH" >&5
2740 echo "${ECHO_T}$JAVAH" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2746 if test "$JAVAH" != "javah"; then
2747 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2748 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2749 { (exit 1); exit 1; }; }
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2762 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2763 # On Suns, sometimes $CPP names a directory.
2764 if test -n "$CPP" && test -d "$CPP"; then
2767 if test -z "$CPP"; then
2768 if test "${ac_cv_prog_CPP+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 # Double quotes because CPP needs to be expanded
2772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2775 for ac_c_preproc_warn_flag in '' yes
2777 # Use a header file that comes with gcc, so configuring glibc
2778 # with a fresh cross-compiler works.
2779 # On the NeXT, cc -E runs the code through the compiler's parser,
2780 # not just through cpp. "Syntax error" is here to catch this case.
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790 egrep -v '^ *\+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2803 if test -z "$ac_cpp_err"; then
2806 echo "$as_me: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2808 # Broken: fails on valid input.
2811 rm -f conftest.err conftest.$ac_ext
2813 # OK, works on sane cases. Now check whether non-existent headers
2814 # can be detected and how.
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2818 #include <ac_nonexistent.h>
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 egrep -v '^ *\+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2836 if test -z "$ac_cpp_err"; then
2837 # Broken: success on invalid input.
2840 echo "$as_me: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2842 # Passes both tests.
2846 rm -f conftest.err conftest.$ac_ext
2849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2850 rm -f conftest.err conftest.$ac_ext
2851 if $ac_preproc_ok; then
2863 echo "$as_me:$LINENO: result: $CPP" >&5
2864 echo "${ECHO_T}$CPP" >&6
2866 for ac_c_preproc_warn_flag in '' yes
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 #include "confdefs.h"
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 egrep -v '^ *\+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_c_preproc_warn_flag
2894 if test -z "$ac_cpp_err"; then
2897 echo "$as_me: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2899 # Broken: fails on valid input.
2902 rm -f conftest.err conftest.$ac_ext
2904 # OK, works on sane cases. Now check whether non-existent headers
2905 # can be detected and how.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 #include "confdefs.h"
2909 #include <ac_nonexistent.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 egrep -v '^ *\+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2927 if test -z "$ac_cpp_err"; then
2928 # Broken: success on invalid input.
2931 echo "$as_me: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 # Passes both tests.
2937 rm -f conftest.err conftest.$ac_ext
2940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2941 rm -f conftest.err conftest.$ac_ext
2942 if $ac_preproc_ok; then
2945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2947 { (exit 1); exit 1; }; }
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2959 if test "${ac_cv_header_stdc+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 #include "confdefs.h"
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974 egrep -v '^ *\+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null; then
2979 if test -s conftest.err; then
2980 ac_cpp_err=$ac_c_preproc_warn_flag
2987 if test -z "$ac_cpp_err"; then
2988 ac_cv_header_stdc=yes
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_header_stdc=no
2994 rm -f conftest.err conftest.$ac_ext
2996 if test $ac_cv_header_stdc = yes; then
2997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #line $LINENO "configure"
3000 #include "confdefs.h"
3004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005 egrep "memchr" >/dev/null 2>&1; then
3008 ac_cv_header_stdc=no
3014 if test $ac_cv_header_stdc = yes; then
3015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3016 cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3018 #include "confdefs.h"
3022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023 egrep "free" >/dev/null 2>&1; then
3026 ac_cv_header_stdc=no
3032 if test $ac_cv_header_stdc = yes; then
3033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3034 if test "$cross_compiling" = yes; then
3037 cat >conftest.$ac_ext <<_ACEOF
3038 #line $LINENO "configure"
3039 #include "confdefs.h"
3041 #if ((' ' & 0x0FF) == 0x020)
3042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3045 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3046 || ('j' <= (c) && (c) <= 'r') \
3047 || ('s' <= (c) && (c) <= 'z'))
3048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3056 for (i = 0; i < 256; i++)
3057 if (XOR (islower (i), ISLOWER (i))
3058 || toupper (i) != TOUPPER (i))
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065 (eval $ac_link) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3076 echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 ac_cv_header_stdc=no
3082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3086 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3087 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3088 if test $ac_cv_header_stdc = yes; then
3090 cat >>confdefs.h <<\_ACEOF
3091 #define STDC_HEADERS 1
3098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3108 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3109 inttypes.h stdint.h unistd.h
3111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3112 echo "$as_me:$LINENO: checking for $ac_header" >&5
3113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3119 #include "confdefs.h"
3120 $ac_includes_default
3122 #include <$ac_header>
3124 rm -f conftest.$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 eval "$as_ac_Header=yes"
3138 echo "$as_me: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 eval "$as_ac_Header=no"
3142 rm -f conftest.$ac_objext conftest.$ac_ext
3144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3147 cat >>confdefs.h <<_ACEOF
3148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3157 for ac_header in math.h
3159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3161 echo "$as_me:$LINENO: checking for $ac_header" >&5
3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3169 # Is the header compilable?
3170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 #include "confdefs.h"
3175 $ac_includes_default
3176 #include <$ac_header>
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_header_compiler=yes
3192 echo "$as_me: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 ac_header_compiler=no
3196 rm -f conftest.$ac_objext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3198 echo "${ECHO_T}$ac_header_compiler" >&6
3200 # Is the header present?
3201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3203 cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 #include "confdefs.h"
3206 #include <$ac_header>
3208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3211 egrep -v '^ *\+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } >/dev/null; then
3216 if test -s conftest.err; then
3217 ac_cpp_err=$ac_c_preproc_warn_flag
3224 if test -z "$ac_cpp_err"; then
3225 ac_header_preproc=yes
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3229 ac_header_preproc=no
3231 rm -f conftest.err conftest.$ac_ext
3232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3233 echo "${ECHO_T}$ac_header_preproc" >&6
3235 # So? What about this header?
3236 case $ac_header_compiler:$ac_header_preproc in
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3250 echo "$as_me:$LINENO: checking for $ac_header" >&5
3251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 eval "$as_ac_Header=$ac_header_preproc"
3257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3262 cat >>confdefs.h <<_ACEOF
3263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3265 ac_math_headers="yes"
3267 ac_math_headers="no"
3272 if test "$ac_math_headers" != yes; then
3273 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3274 echo "$as_me: error: \"math header file not found\"" >&2;}
3275 { (exit 1); exit 1; }; }
3279 #dnl check for the gnu multiprecission (gmp) header file
3281 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3282 #if test "$ac_gmp_headers" != yes; then
3283 # dnl gmp header not found.
3284 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3291 for ac_header in obstack.h
3293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3295 echo "$as_me:$LINENO: checking for $ac_header" >&5
3296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3303 # Is the header compilable?
3304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3307 #line $LINENO "configure"
3308 #include "confdefs.h"
3309 $ac_includes_default
3310 #include <$ac_header>
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -s conftest.$ac_objext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_header_compiler=yes
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 ac_header_compiler=no
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3332 echo "${ECHO_T}$ac_header_compiler" >&6
3334 # Is the header present?
3335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 #include "confdefs.h"
3340 #include <$ac_header>
3342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345 egrep -v '^ *\+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null; then
3350 if test -s conftest.err; then
3351 ac_cpp_err=$ac_c_preproc_warn_flag
3358 if test -z "$ac_cpp_err"; then
3359 ac_header_preproc=yes
3361 echo "$as_me: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 ac_header_preproc=no
3365 rm -f conftest.err conftest.$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3367 echo "${ECHO_T}$ac_header_preproc" >&6
3369 # So? What about this header?
3370 case $ac_header_compiler:$ac_header_preproc in
3372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3384 echo "$as_me:$LINENO: checking for $ac_header" >&5
3385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 eval "$as_ac_Header=$ac_header_preproc"
3391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3396 cat >>confdefs.h <<_ACEOF
3397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3399 ac_obstack_headers="yes"
3401 ac_obstack_headers="no"
3406 if test "$ac_obstack_headers" != yes; then
3407 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3408 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3409 { (exit 1); exit 1; }; }
3414 for ac_header in alloca.h
3416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3426 # Is the header compilable?
3427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3429 cat >conftest.$ac_ext <<_ACEOF
3430 #line $LINENO "configure"
3431 #include "confdefs.h"
3432 $ac_includes_default
3433 #include <$ac_header>
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_header_compiler=yes
3449 echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_header_compiler=no
3453 rm -f conftest.$ac_objext conftest.$ac_ext
3454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3455 echo "${ECHO_T}$ac_header_compiler" >&6
3457 # Is the header present?
3458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3460 cat >conftest.$ac_ext <<_ACEOF
3461 #line $LINENO "configure"
3462 #include "confdefs.h"
3463 #include <$ac_header>
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 egrep -v '^ *\+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3481 if test -z "$ac_cpp_err"; then
3482 ac_header_preproc=yes
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 ac_header_preproc=no
3488 rm -f conftest.err conftest.$ac_ext
3489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3490 echo "${ECHO_T}$ac_header_preproc" >&6
3492 # So? What about this header?
3493 case $ac_header_compiler:$ac_header_preproc in
3495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3507 echo "$as_me:$LINENO: checking for $ac_header" >&5
3508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 eval "$as_ac_Header=$ac_header_preproc"
3514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3519 cat >>confdefs.h <<_ACEOF
3520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3522 ac_alloca_headers="yes"
3524 ac_alloca_headers="no"
3529 if test "$ac_alloca_headers" = "yes"; then
3530 cat >>confdefs.h <<\_ACEOF
3531 #define HAVE_ALLOCA_H 1
3535 if test "$ac_cv_header_stdc" = "no"; then
3536 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3537 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3538 { (exit 1); exit 1; }; }
3544 if test "$enable_firm_jni" = yes; then
3546 for ac_header in jni.h
3548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550 echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3558 # Is the header compilable?
3559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 #include "confdefs.h"
3564 $ac_includes_default
3565 #include <$ac_header>
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_header_compiler=yes
3581 echo "$as_me: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 ac_header_compiler=no
3585 rm -f conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3587 echo "${ECHO_T}$ac_header_compiler" >&6
3589 # Is the header present?
3590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3595 #include <$ac_header>
3597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600 egrep -v '^ *\+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3613 if test -z "$ac_cpp_err"; then
3614 ac_header_preproc=yes
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 ac_header_preproc=no
3620 rm -f conftest.err conftest.$ac_ext
3621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3622 echo "${ECHO_T}$ac_header_preproc" >&6
3624 # So? What about this header?
3625 case $ac_header_compiler:$ac_header_preproc in
3627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3639 echo "$as_me:$LINENO: checking for $ac_header" >&5
3640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 eval "$as_ac_Header=$ac_header_preproc"
3646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3651 cat >>confdefs.h <<_ACEOF
3652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3654 ac_jni_headers="yes"
3661 if test "$ac_jni_headers" != yes; then
3662 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3663 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3664 { (exit 1); exit 1; }; }
3669 if test "$enable_external_effects" == "yes"; then
3671 for ac_header in libxml/parser.h
3673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3675 echo "$as_me:$LINENO: checking for $ac_header" >&5
3676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3683 # Is the header compilable?
3684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3689 $ac_includes_default
3690 #include <$ac_header>
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_header_compiler=yes
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 ac_header_compiler=no
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3712 echo "${ECHO_T}$ac_header_compiler" >&6
3714 # Is the header present?
3715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3719 #include "confdefs.h"
3720 #include <$ac_header>
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 egrep -v '^ *\+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3738 if test -z "$ac_cpp_err"; then
3739 ac_header_preproc=yes
3741 echo "$as_me: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 ac_header_preproc=no
3745 rm -f conftest.err conftest.$ac_ext
3746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3747 echo "${ECHO_T}$ac_header_preproc" >&6
3749 # So? What about this header?
3750 case $ac_header_compiler:$ac_header_preproc in
3752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3764 echo "$as_me:$LINENO: checking for $ac_header" >&5
3765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 eval "$as_ac_Header=$ac_header_preproc"
3771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3776 cat >>confdefs.h <<_ACEOF
3777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3779 ac_xml_headers="yes"
3786 if test "$ac_xml_headers" != yes; then
3787 { { echo "$as_me:$LINENO: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&5
3788 echo "$as_me: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&2;}
3789 { (exit 1); exit 1; }; }
3794 #dnl check for the gnu multiprecission (gmp) library
3796 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3797 #if test "$ac_gmp_library" != yes; then
3798 # dnl gmp library not found.
3799 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3803 echo "$as_me:$LINENO: checking for main in -lm" >&5
3804 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3805 if test "${ac_cv_lib_m_main+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 ac_check_lib_save_LIBS=$LIBS
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3812 #include "confdefs.h"
3815 #ifdef F77_DUMMY_MAIN
3819 int F77_DUMMY_MAIN() { return 1; }
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -s conftest$ac_exeext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_lib_m_main=yes
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3848 LIBS=$ac_check_lib_save_LIBS
3850 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3851 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3852 if test $ac_cv_lib_m_main = yes; then
3858 if test "$ac_m_library" != yes; then
3859 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3860 echo "$as_me: error: \"standard math library not found\"" >&2;}
3861 { (exit 1); exit 1; }; }
3865 if test "$enable_external_effects" == "yes"; then
3866 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
3867 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
3868 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 ac_check_lib_save_LIBS=$LIBS
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3875 #include "confdefs.h"
3877 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char xmlParseFile ();
3884 #ifdef F77_DUMMY_MAIN
3888 int F77_DUMMY_MAIN() { return 1; }
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -s conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_lib_xml2_xmlParseFile=yes
3912 echo "$as_me: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 ac_cv_lib_xml2_xmlParseFile=no
3916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3917 LIBS=$ac_check_lib_save_LIBS
3919 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
3920 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
3921 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
3922 ac_xml_library="yes"
3927 if test "$ac_m_library" != yes; then
3928 { { echo "$as_me:$LINENO: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&5
3929 echo "$as_me: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&2;}
3930 { (exit 1); exit 1; }; }
3936 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3937 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3938 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 ac_cv_prog_cc_stdc=no
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 #include "confdefs.h"
3948 #include <sys/types.h>
3949 #include <sys/stat.h>
3950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3951 struct buf { int x; };
3952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3953 static char *e (p, i)
3959 static char *f (char * (*g) (char **, int), char **p, ...)
3964 s = g (p, va_arg (v,int));
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3974 #ifdef F77_DUMMY_MAIN
3978 int F77_DUMMY_MAIN() { return 1; }
3983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3988 # Don't try gcc -ansi; that turns off useful extensions and
3989 # breaks some systems' header files.
3990 # AIX -qlanglvl=ansi
3991 # Ultrix and OSF/1 -std1
3992 # HP-UX 10.20 and later -Ae
3993 # HP-UX older versions -Aa -D_HPUX_SOURCE
3994 # SVR4 -Xc -D__EXTENSIONS__
3995 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3997 CC="$ac_save_CC $ac_arg"
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_prog_cc_stdc=$ac_arg
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 rm -f conftest.$ac_objext
4018 rm -f conftest.$ac_ext conftest.$ac_objext
4023 case "x$ac_cv_prog_cc_stdc" in
4025 echo "$as_me:$LINENO: result: none needed" >&5
4026 echo "${ECHO_T}none needed" >&6 ;;
4028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4030 CC="$CC $ac_cv_prog_cc_stdc" ;;
4033 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4034 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4035 if test "${ac_cv_c_const+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4039 #line $LINENO "configure"
4040 #include "confdefs.h"
4042 #ifdef F77_DUMMY_MAIN
4046 int F77_DUMMY_MAIN() { return 1; }
4051 /* FIXME: Include the comments suggested by Paul. */
4053 /* Ultrix mips cc rejects this. */
4054 typedef int charset[2];
4056 /* SunOS 4.1.1 cc rejects this. */
4057 char const *const *ccp;
4059 /* NEC SVR4.0.2 mips cc rejects this. */
4060 struct point {int x, y;};
4061 static struct point const zero = {0,0};
4062 /* AIX XL C 1.02.0.0 rejects this.
4063 It does not let you subtract one const X* pointer from another in
4064 an arm of an if-expression whose if-part is not a constant
4066 const char *g = "string";
4067 ccp = &g + (g ? g-g : 0);
4068 /* HPUX 7.0 cc rejects these. */
4071 ccp = (char const *const *) p;
4072 { /* SCO 3.2v4 cc rejects this. */
4074 char const *s = 0 ? (char *) 0 : (char const *) 0;
4078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4080 const int *foo = &x[0];
4083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4084 typedef const int *iptr;
4088 { /* AIX XL C 1.02.0.0 rejects this saying
4089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4090 struct s { int j; const int *ap[3]; };
4091 struct s *b; b->j = 5;
4093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4120 rm -f conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4123 echo "${ECHO_T}$ac_cv_c_const" >&6
4124 if test $ac_cv_c_const = no; then
4126 cat >>confdefs.h <<\_ACEOF
4132 echo "$as_me:$LINENO: checking for working volatile" >&5
4133 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4134 if test "${ac_cv_c_volatile+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4139 #include "confdefs.h"
4141 #ifdef F77_DUMMY_MAIN
4145 int F77_DUMMY_MAIN() { return 1; }
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_c_volatile=yes
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4175 rm -f conftest.$ac_objext conftest.$ac_ext
4177 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4178 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4179 if test $ac_cv_c_volatile = no; then
4181 cat >>confdefs.h <<\_ACEOF
4187 echo "$as_me:$LINENO: checking for inline" >&5
4188 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4189 if test "${ac_cv_c_inline+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 for ac_kw in inline __inline__ __inline; do
4194 cat >conftest.$ac_ext <<_ACEOF
4195 #line $LINENO "configure"
4196 #include "confdefs.h"
4198 static $ac_kw int static_foo () {return 0; }
4199 $ac_kw int foo () {return 0; }
4203 rm -f conftest.$ac_objext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_c_inline=$ac_kw; break
4217 echo "$as_me: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 rm -f conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4225 echo "${ECHO_T}$ac_cv_c_inline" >&6
4226 case $ac_cv_c_inline in
4229 cat >>confdefs.h <<\_ACEOF
4233 *) cat >>confdefs.h <<_ACEOF
4234 #define inline $ac_cv_c_inline
4239 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4240 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4241 if test "${ac_cv_c_bigendian+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 # See if sys/param.h defines the BYTE_ORDER macro.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 #line $LINENO "configure"
4247 #include "confdefs.h"
4248 #include <sys/types.h>
4249 #include <sys/param.h>
4251 #ifdef F77_DUMMY_MAIN
4255 int F77_DUMMY_MAIN() { return 1; }
4260 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 # It does; now see whether it defined to BIG_ENDIAN or not.
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 #include "confdefs.h"
4284 #include <sys/types.h>
4285 #include <sys/param.h>
4287 #ifdef F77_DUMMY_MAIN
4291 int F77_DUMMY_MAIN() { return 1; }
4296 #if BYTE_ORDER != BIG_ENDIAN
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_cv_c_bigendian=yes
4318 echo "$as_me: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 ac_cv_c_bigendian=no
4322 rm -f conftest.$ac_objext conftest.$ac_ext
4324 echo "$as_me: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4326 # It does not; compile a test program.
4327 if test "$cross_compiling" = yes; then
4328 # try to guess the endianess by grep'ing values into an object file
4329 ac_cv_c_bigendian=unknown
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 #include "confdefs.h"
4333 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339 #ifdef F77_DUMMY_MAIN
4343 int F77_DUMMY_MAIN() { return 1; }
4348 _ascii (); _ebcdic ();
4353 rm -f conftest.$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4366 ac_cv_c_bigendian=yes
4368 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4369 if test "$ac_cv_c_bigendian" = unknown; then
4370 ac_cv_c_bigendian=no
4372 # finding both strings is unlikely to happen, but who knows?
4373 ac_cv_c_bigendian=unknown
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line $LINENO "configure"
4384 #include "confdefs.h"
4388 /* Are we little or big endian? From Harbison&Steele. */
4392 char c[sizeof (long)];
4395 exit (u.c[sizeof (long) - 1] == 1);
4398 rm -f conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400 (eval $ac_link) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 ac_cv_c_bigendian=no
4411 echo "$as_me: program exited with status $ac_status" >&5
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 ac_cv_c_bigendian=yes
4417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 rm -f conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4423 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4424 case $ac_cv_c_bigendian in
4427 cat >>confdefs.h <<\_ACEOF
4428 #define WORDS_BIGENDIAN 1
4434 { { echo "$as_me:$LINENO: error: unknown endianess
4435 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4436 echo "$as_me: error: unknown endianess
4437 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4438 { (exit 1); exit 1; }; } ;;
4441 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4442 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4443 if test "${ac_cv_c_long_double+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 #include "confdefs.h"
4450 long double foo = 0.0;
4451 #ifdef F77_DUMMY_MAIN
4455 int F77_DUMMY_MAIN() { return 1; }
4460 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4461 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4462 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_c_long_double=yes
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 ac_cv_c_long_double=no
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4490 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4491 if test $ac_cv_c_long_double = yes; then
4493 cat >>confdefs.h <<\_ACEOF
4494 #define HAVE_LONG_DOUBLE 1
4502 echo "$as_me:$LINENO: checking for strerror" >&5
4503 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4504 if test "${ac_cv_func_strerror+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511 which can conflict with char strerror (); below. */
4513 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4522 #ifdef F77_DUMMY_MAIN
4526 int F77_DUMMY_MAIN() { return 1; }
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_strerror) || defined (__stub___strerror)
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546 (eval $ac_link) 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -s conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_func_strerror=yes
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4560 ac_cv_func_strerror=no
4562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4564 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4565 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4566 if test $ac_cv_func_strerror = yes; then
4569 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4570 echo "$as_me: error: \"need strerror function\"" >&2;}
4571 { (exit 1); exit 1; }; }
4579 ac_config_files="$ac_config_files $ac_output_file"
4580 ac_config_commands="$ac_config_commands default"
4581 cat >confcache <<\_ACEOF
4582 # This file is a shell script that caches the results of configure
4583 # tests run on this system so they can be shared between configure
4584 # scripts and configure runs, see configure's option --config-cache.
4585 # It is not useful on other systems. If it contains results you don't
4586 # want to keep, you may remove or edit it.
4588 # config.status only pays attention to the cache file if you give it
4589 # the --recheck option to rerun configure.
4591 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4597 # The following way of writing the cache mishandles newlines in values,
4598 # but we know of no workaround that is simple, portable, and efficient.
4599 # So, don't put newlines in cache variables' values.
4600 # Ultrix sh set writes to stderr and can't be redirected directly,
4601 # and sets the high bit in the cache file unless we assign to the vars.
4604 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4606 # `set' does not quote correctly, so add quotes (double-quote
4607 # substitution turns \\\\ into \\, and sed turns \\ into \).
4610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4613 # `set' quotes correctly as required by POSIX, so do not add quotes.
4615 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4624 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4626 if cmp -s $cache_file confcache; then :; else
4627 if test -w $cache_file; then
4628 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4629 cat confcache >$cache_file
4631 echo "not updating unwritable cache $cache_file"
4636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4637 # Let make expand exec_prefix.
4638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4640 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4641 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4642 # trailing colons and then remove the whole line if VPATH becomes empty
4643 # (actually we leave an empty line to preserve line numbers).
4644 if test "x$srcdir" = x.; then
4645 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4646 s/:*\$(srcdir):*/:/;
4647 s/:*\${srcdir}:*/:/;
4649 s/^\([^=]*=[ ]*\):*/\1/;
4655 DEFS=-DHAVE_CONFIG_H
4658 : ${CONFIG_STATUS=./config.status}
4659 ac_clean_files_save=$ac_clean_files
4660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4661 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4662 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4663 cat >$CONFIG_STATUS <<_ACEOF
4665 # Generated by $as_me.
4666 # Run this file to recreate the current configuration.
4667 # Compiler output produced by configure, useful for debugging
4668 # configure, is in config.log if it exists.
4671 SHELL=\${CONFIG_SHELL-$SHELL}
4674 cat >>$CONFIG_STATUS <<\_ACEOF
4676 ## --------------------- ##
4677 ## M4sh Initialization. ##
4678 ## --------------------- ##
4680 # Be Bourne compatible
4681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4684 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4689 # Support unset when possible.
4690 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4696 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4697 { $as_unset LANG || test "${LANG+set}" != set; } ||
4698 { LANG=C; export LANG; }
4699 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4700 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4701 { LC_ALL=C; export LC_ALL; }
4702 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4703 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4704 { LC_TIME=C; export LC_TIME; }
4705 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4706 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4707 { LC_CTYPE=C; export LC_CTYPE; }
4708 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4709 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4710 { LANGUAGE=C; export LANGUAGE; }
4711 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4712 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4713 { LC_COLLATE=C; export LC_COLLATE; }
4714 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4715 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4716 { LC_NUMERIC=C; export LC_NUMERIC; }
4717 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4718 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4719 { LC_MESSAGES=C; export LC_MESSAGES; }
4722 # Name of the executable.
4723 as_me=`(basename "$0") 2>/dev/null ||
4724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4725 X"$0" : 'X\(//\)$' \| \
4726 X"$0" : 'X\(/\)$' \| \
4727 . : '\(.\)' 2>/dev/null ||
4729 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4730 /^X\/\(\/\/\)$/{ s//\1/; q; }
4731 /^X\/\(\/\).*/{ s//\1/; q; }
4734 # PATH needs CR, and LINENO needs CR and PATH.
4735 # Avoid depending upon Character Ranges.
4736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4739 as_cr_digits='0123456789'
4740 as_cr_alnum=$as_cr_Letters$as_cr_digits
4742 # The user is always right.
4743 if test "${PATH_SEPARATOR+set}" != set; then
4744 echo "#! /bin/sh" >conftest.sh
4745 echo "exit 0" >>conftest.sh
4746 chmod +x conftest.sh
4747 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4759 test "x$as_lineno_1" != "x$as_lineno_2" &&
4760 test "x$as_lineno_3" = "x$as_lineno_2" || {
4761 # Find who we are. Look in the path if we contain no path at all
4764 *[\\/]* ) as_myself=$0 ;;
4765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4775 # We did not find ourselves, most probably we were run as `sh COMMAND'
4776 # in which case we are not to be found in the path.
4777 if test "x$as_myself" = x; then
4780 if test ! -f "$as_myself"; then
4781 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4783 { (exit 1); exit 1; }; }
4785 case $CONFIG_SHELL in
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4791 test -z "$as_dir" && as_dir=.
4792 for as_base in sh bash ksh sh5; do
4795 if ("$as_dir/$as_base" -c '
4798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4799 test "x$as_lineno_1" != "x$as_lineno_2" &&
4800 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4801 CONFIG_SHELL=$as_dir/$as_base
4803 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4811 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4812 # uniformly replaced by the line number. The first 'sed' inserts a
4813 # line-number line before each line; the second 'sed' does the real
4814 # work. The second script uses 'N' to pair each line-number line
4815 # with the numbered line, and appends trailing '-' during
4816 # substitution so that $LINENO is not a special case at line end.
4817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4818 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4819 sed '=' <$as_myself |
4824 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4827 s,^['$as_cr_digits']*\n,,
4829 chmod +x $as_me.lineno ||
4830 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4831 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4832 { (exit 1); exit 1; }; }
4834 # Don't try to exec as it changes $[0], causing all sort of problems
4835 # (the dirname of $[0] is not the place where we might find the
4836 # original and so on. Autoconf is especially sensible to this).
4838 # Exit status is that of the last command.
4843 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4844 *c*,-n*) ECHO_N= ECHO_C='
4846 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4847 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4850 if expr a : '\(a\)' >/dev/null 2>&1; then
4856 rm -f conf$$ conf$$.exe conf$$.file
4858 if ln -s conf$$.file conf$$ 2>/dev/null; then
4859 # We could just check for DJGPP; but this test a) works b) is more generic
4860 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4861 if test -f conf$$.exe; then
4862 # Don't use ln at all; we don't have any links
4867 elif ln conf$$.file conf$$ 2>/dev/null; then
4872 rm -f conf$$ conf$$.exe conf$$.file
4874 as_executable_p="test -f"
4876 # Sed expression to map a string onto a valid CPP name.
4877 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4879 # Sed expression to map a string onto a valid variable name.
4880 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4884 # We need space, tab and new line, in precisely that order.
4890 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4894 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4895 # report actual input values of CONFIG_FILES etc. instead of their
4896 # values after options handling. Logging --version etc. is OK.
4900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4901 ## Running $as_me. ##
4906 This file was extended by libfirm $as_me 0.3.0, which was
4907 generated by GNU Autoconf 2.53. Invocation command line was
4909 CONFIG_FILES = $CONFIG_FILES
4910 CONFIG_HEADERS = $CONFIG_HEADERS
4911 CONFIG_LINKS = $CONFIG_LINKS
4912 CONFIG_COMMANDS = $CONFIG_COMMANDS
4916 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4920 # Files that config.status was made for.
4921 if test -n "$ac_config_files"; then
4922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4925 if test -n "$ac_config_headers"; then
4926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4929 if test -n "$ac_config_links"; then
4930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4933 if test -n "$ac_config_commands"; then
4934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4937 cat >>$CONFIG_STATUS <<\_ACEOF
4940 \`$as_me' instantiates files from templates according to the
4941 current configuration.
4943 Usage: $0 [OPTIONS] [FILE]...
4945 -h, --help print this help, then exit
4946 -V, --version print version number, then exit
4947 -d, --debug don't remove temporary files
4948 --recheck update $as_me by reconfiguring in the same conditions
4949 --file=FILE[:TEMPLATE]
4950 instantiate the configuration file FILE
4951 --header=FILE[:TEMPLATE]
4952 instantiate the configuration header FILE
4954 Configuration files:
4957 Configuration headers:
4960 Configuration commands:
4963 Report bugs to <bug-autoconf@gnu.org>."
4966 cat >>$CONFIG_STATUS <<_ACEOF
4968 libfirm config.status 0.3.0
4969 configured by $0, generated by GNU Autoconf 2.53,
4970 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4973 Free Software Foundation, Inc.
4974 This config.status script is free software; the Free Software Foundation
4975 gives unlimited permission to copy, distribute and modify it."
4980 cat >>$CONFIG_STATUS <<\_ACEOF
4981 # If no file are specified by the user, then we need to provide default
4982 # value. By we need to know if files were specified by the user.
4988 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4989 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4991 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4995 *) # This is not an option, so the user has probably given explicit
4997 ac_need_defaults=false;;
5001 # Handling of the options.
5003 cat >>$CONFIG_STATUS <<_ACEOF
5004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5005 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5006 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5008 cat >>$CONFIG_STATUS <<\_ACEOF
5009 --version | --vers* | -V )
5010 echo "$ac_cs_version"; exit 0 ;;
5012 # Conflict between --help and --header
5013 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5014 Try \`$0 --help' for more information." >&5
5015 echo "$as_me: error: ambiguous option: $1
5016 Try \`$0 --help' for more information." >&2;}
5017 { (exit 1); exit 1; }; };;
5018 --help | --hel | -h )
5019 echo "$ac_cs_usage"; exit 0 ;;
5020 --debug | --d* | -d )
5022 --file | --fil | --fi | --f )
5024 CONFIG_FILES="$CONFIG_FILES $1"
5025 ac_need_defaults=false;;
5026 --header | --heade | --head | --hea )
5028 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5029 ac_need_defaults=false;;
5032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5033 Try \`$0 --help' for more information." >&5
5034 echo "$as_me: error: unrecognized option: $1
5035 Try \`$0 --help' for more information." >&2;}
5036 { (exit 1); exit 1; }; } ;;
5038 *) ac_config_targets="$ac_config_targets $1" ;;
5050 cat >>$CONFIG_STATUS <<\_ACEOF
5051 for ac_config_target in $ac_config_targets
5053 case "$ac_config_target" in
5054 # Handling of arguments.
5055 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
5056 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5057 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5060 { (exit 1); exit 1; }; };;
5064 # If the user did not use the arguments to specify the items to instantiate,
5065 # then the envvar interface is used. Set only those that are not.
5066 # We use the long form for the default assignment because of an extremely
5067 # bizarre bug on SunOS 4.1.3.
5068 if $ac_need_defaults; then
5069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5074 # Create a temporary directory, and hook for its removal unless debugging.
5077 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5078 trap '{ (exit 1); exit 1; }' 1 2 13 15
5081 # Create a (secure) tmp directory for tmp files.
5084 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5085 test -n "$tmp" && test -d "$tmp"
5088 tmp=$TMPDIR/cs$$-$RANDOM
5089 (umask 077 && mkdir $tmp)
5092 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5093 { (exit 1); exit 1; }
5098 cat >>$CONFIG_STATUS <<_ACEOF
5101 # CONFIG_FILES section.
5104 # No need to generate the scripts if there are no CONFIG_FILES.
5105 # This happens for instance when ./config.status config.h
5106 if test -n "\$CONFIG_FILES"; then
5107 # Protect against being on the right side of a sed subst in config.status.
5108 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5109 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5110 s,@SHELL@,$SHELL,;t t
5111 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5112 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5113 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5114 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5115 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5116 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5117 s,@exec_prefix@,$exec_prefix,;t t
5118 s,@prefix@,$prefix,;t t
5119 s,@program_transform_name@,$program_transform_name,;t t
5120 s,@bindir@,$bindir,;t t
5121 s,@sbindir@,$sbindir,;t t
5122 s,@libexecdir@,$libexecdir,;t t
5123 s,@datadir@,$datadir,;t t
5124 s,@sysconfdir@,$sysconfdir,;t t
5125 s,@sharedstatedir@,$sharedstatedir,;t t
5126 s,@localstatedir@,$localstatedir,;t t
5127 s,@libdir@,$libdir,;t t
5128 s,@includedir@,$includedir,;t t
5129 s,@oldincludedir@,$oldincludedir,;t t
5130 s,@infodir@,$infodir,;t t
5131 s,@mandir@,$mandir,;t t
5132 s,@build_alias@,$build_alias,;t t
5133 s,@host_alias@,$host_alias,;t t
5134 s,@target_alias@,$target_alias,;t t
5136 s,@ECHO_C@,$ECHO_C,;t t
5137 s,@ECHO_N@,$ECHO_N,;t t
5138 s,@ECHO_T@,$ECHO_T,;t t
5140 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
5141 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
5142 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
5143 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
5144 s,@enable_firm_jni@,$enable_firm_jni,;t t
5145 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
5146 s,@enable_backend@,$enable_backend,;t t
5147 s,@disable_libiberty@,$disable_libiberty,;t t
5148 s,@enable_statistics@,$enable_statistics,;t t
5149 s,@enable_external_effects@,$enable_external_effects,;t t
5151 s,@CFLAGS@,$CFLAGS,;t t
5152 s,@LDFLAGS@,$LDFLAGS,;t t
5153 s,@CPPFLAGS@,$CPPFLAGS,;t t
5154 s,@ac_ct_CC@,$ac_ct_CC,;t t
5155 s,@EXEEXT@,$EXEEXT,;t t
5156 s,@OBJEXT@,$OBJEXT,;t t
5158 s,@ac_ct_LD@,$ac_ct_LD,;t t
5159 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
5162 s,@RANLIB@,$RANLIB,;t t
5163 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5164 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5165 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5166 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5168 s,@DOXYGEN@,$DOXYGEN,;t t
5170 s,@JAVAC@,$JAVAC,;t t
5171 s,@JAVAH@,$JAVAH,;t t
5177 cat >>$CONFIG_STATUS <<\_ACEOF
5178 # Split the substitutions into bite-sized pieces for seds with
5179 # small command number limits, like on Digital OSF/1 and HP-UX.
5181 ac_sed_frag=1 # Number of current file.
5182 ac_beg=1 # First line for current file.
5183 ac_end=$ac_max_sed_lines # Line after last line for current file.
5186 while $ac_more_lines; do
5187 if test $ac_beg -gt 1; then
5188 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5190 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5192 if test ! -s $tmp/subs.frag; then
5195 # The purpose of the label and of the branching condition is to
5196 # speed up the sed processing (if there are no `@' at all, there
5197 # is no need to browse any of the substitutions).
5198 # These are the two extra sed commands mentioned above.
5200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5201 if test -z "$ac_sed_cmds"; then
5202 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5204 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5206 ac_sed_frag=`expr $ac_sed_frag + 1`
5208 ac_end=`expr $ac_end + $ac_max_sed_lines`
5211 if test -z "$ac_sed_cmds"; then
5214 fi # test -n "$CONFIG_FILES"
5217 cat >>$CONFIG_STATUS <<\_ACEOF
5218 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5221 - | *:- | *:-:* ) # input from stdin
5223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5227 * ) ac_file_in=$ac_file.in ;;
5230 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5233 X"$ac_file" : 'X\(//\)[^/]' \| \
5234 X"$ac_file" : 'X\(//\)$' \| \
5235 X"$ac_file" : 'X\(/\)' \| \
5236 . : '\(.\)' 2>/dev/null ||
5238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5240 /^X\(\/\/\)$/{ s//\1/; q; }
5241 /^X\(\/\).*/{ s//\1/; q; }
5244 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5248 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5249 case $as_mkdir_dir in
5250 # Skip DOS drivespec
5251 ?:) as_incr_dir=$as_mkdir_dir ;;
5253 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5254 test -d "$as_incr_dir" ||
5255 mkdir "$as_incr_dir" ||
5256 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5257 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5258 { (exit 1); exit 1; }; }
5265 if test "$ac_dir" != .; then
5266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5267 # A "../" for each directory in $ac_dir_suffix.
5268 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5270 ac_dir_suffix= ac_top_builddir=
5274 .) # No --srcdir option. We are building in place.
5276 if test -z "$ac_top_builddir"; then
5279 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5281 [\\/]* | ?:[\\/]* ) # Absolute path.
5282 ac_srcdir=$srcdir$ac_dir_suffix;
5283 ac_top_srcdir=$srcdir ;;
5285 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5286 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5288 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5290 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5291 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5292 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5293 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5298 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5301 if test x"$ac_file" != x-; then
5302 { echo "$as_me:$LINENO: creating $ac_file" >&5
5303 echo "$as_me: creating $ac_file" >&6;}
5306 # Let's still pretend it is `configure' which instantiates (i.e., don't
5307 # use $as_me), people would be surprised to read:
5308 # /* config.h. Generated by config.status. */
5309 if test x"$ac_file" = x-; then
5312 configure_input="$ac_file. "
5314 configure_input=$configure_input"Generated from `echo $ac_file_in |
5315 sed 's,.*/,,'` by configure."
5317 # First look for the input files in the build tree, otherwise in the
5319 ac_file_inputs=`IFS=:
5320 for f in $ac_file_in; do
5322 -) echo $tmp/stdin ;;
5324 # Absolute (can't be DOS-style, as IFS=:)
5325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5326 echo "$as_me: error: cannot find input file: $f" >&2;}
5327 { (exit 1); exit 1; }; }
5330 if test -f "$f"; then
5333 elif test -f "$srcdir/$f"; then
5338 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5339 echo "$as_me: error: cannot find input file: $f" >&2;}
5340 { (exit 1); exit 1; }; }
5343 done` || { (exit 1); exit 1; }
5345 cat >>$CONFIG_STATUS <<_ACEOF
5349 cat >>$CONFIG_STATUS <<\_ACEOF
5351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5352 s,@configure_input@,$configure_input,;t t
5353 s,@srcdir@,$ac_srcdir,;t t
5354 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5355 s,@top_srcdir@,$ac_top_srcdir,;t t
5356 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5357 s,@builddir@,$ac_builddir,;t t
5358 s,@abs_builddir@,$ac_abs_builddir,;t t
5359 s,@top_builddir@,$ac_top_builddir,;t t
5360 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5361 s,@INSTALL@,$ac_INSTALL,;t t
5362 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5364 if test x"$ac_file" != x-; then
5365 mv $tmp/out $ac_file
5373 cat >>$CONFIG_STATUS <<\_ACEOF
5376 # CONFIG_HEADER section.
5379 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5380 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5382 # ac_d sets the value in "#define NAME VALUE" lines.
5383 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5384 ac_dB='[ ].*$,\1#\2'
5387 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5388 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5389 ac_uB='$,\1#\2define\3'
5393 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5396 - | *:- | *:-:* ) # input from stdin
5398 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5400 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5402 * ) ac_file_in=$ac_file.in ;;
5405 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5406 echo "$as_me: creating $ac_file" >&6;}
5408 # First look for the input files in the build tree, otherwise in the
5410 ac_file_inputs=`IFS=:
5411 for f in $ac_file_in; do
5413 -) echo $tmp/stdin ;;
5415 # Absolute (can't be DOS-style, as IFS=:)
5416 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5417 echo "$as_me: error: cannot find input file: $f" >&2;}
5418 { (exit 1); exit 1; }; }
5421 if test -f "$f"; then
5424 elif test -f "$srcdir/$f"; then
5429 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5430 echo "$as_me: error: cannot find input file: $f" >&2;}
5431 { (exit 1); exit 1; }; }
5434 done` || { (exit 1); exit 1; }
5435 # Remove the trailing spaces.
5436 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5440 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5441 # `conftest.undefs', that substitutes the proper values into
5442 # config.h.in to produce config.h. The first handles `#define'
5443 # templates, and the second `#undef' templates.
5444 # And first: Protect against being on the right side of a sed subst in
5445 # config.status. Protect against being in an unquoted here document
5447 rm -f conftest.defines conftest.undefs
5448 # Using a here document instead of a string reduces the quoting nightmare.
5449 # Putting comments in sed scripts is not portable.
5451 # `end' is used to avoid that the second main sed command (meant for
5452 # 0-ary CPP macros) applies to n-ary macro definitions.
5453 # See the Autoconf documentation for `clear'.
5454 cat >confdef2sed.sed <<\_ACEOF
5459 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5461 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5464 # If some macros were called several times there might be several times
5465 # the same #defines, which is useless. Nevertheless, we may not want to
5466 # sort them, since we want the *last* AC-DEFINE to be honored.
5467 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5468 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5469 rm -f confdef2sed.sed
5471 # This sed command replaces #undef with comments. This is necessary, for
5472 # example, in the case of _POSIX_SOURCE, which is predefined and required
5473 # on some systems where configure will not decide to define it.
5474 cat >>conftest.undefs <<\_ACEOF
5475 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5478 # Break up conftest.defines because some shells have a limit on the size
5479 # of here documents, and old seds have small limits too (100 cmds).
5480 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5481 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5482 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5483 echo ' :' >>$CONFIG_STATUS
5485 while grep . conftest.defines >/dev/null
5487 # Write a limited-size here document to $tmp/defines.sed.
5488 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5489 # Speed up: don't consider the non `#define' lines.
5490 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5491 # Work around the forget-to-reset-the-flag bug.
5492 echo 't clr' >>$CONFIG_STATUS
5493 echo ': clr' >>$CONFIG_STATUS
5494 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5496 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5500 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5501 rm -f conftest.defines
5502 mv conftest.tail conftest.defines
5504 rm -f conftest.defines
5505 echo ' fi # egrep' >>$CONFIG_STATUS
5506 echo >>$CONFIG_STATUS
5508 # Break up conftest.undefs because some shells have a limit on the size
5509 # of here documents, and old seds have small limits too (100 cmds).
5510 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5512 while grep . conftest.undefs >/dev/null
5514 # Write a limited-size here document to $tmp/undefs.sed.
5515 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5516 # Speed up: don't consider the non `#undef'
5517 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5518 # Work around the forget-to-reset-the-flag bug.
5519 echo 't clr' >>$CONFIG_STATUS
5520 echo ': clr' >>$CONFIG_STATUS
5521 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5523 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5527 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5528 rm -f conftest.undefs
5529 mv conftest.tail conftest.undefs
5531 rm -f conftest.undefs
5533 cat >>$CONFIG_STATUS <<\_ACEOF
5534 # Let's still pretend it is `configure' which instantiates (i.e., don't
5535 # use $as_me), people would be surprised to read:
5536 # /* config.h. Generated by config.status. */
5537 if test x"$ac_file" = x-; then
5538 echo "/* Generated by configure. */" >$tmp/config.h
5540 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5542 cat $tmp/in >>$tmp/config.h
5544 if test x"$ac_file" != x-; then
5545 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5546 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5547 echo "$as_me: $ac_file is unchanged" >&6;}
5549 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5551 X"$ac_file" : 'X\(//\)[^/]' \| \
5552 X"$ac_file" : 'X\(//\)$' \| \
5553 X"$ac_file" : 'X\(/\)' \| \
5554 . : '\(.\)' 2>/dev/null ||
5556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5558 /^X\(\/\/\)$/{ s//\1/; q; }
5559 /^X\(\/\).*/{ s//\1/; q; }
5562 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5566 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5567 case $as_mkdir_dir in
5568 # Skip DOS drivespec
5569 ?:) as_incr_dir=$as_mkdir_dir ;;
5571 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5572 test -d "$as_incr_dir" ||
5573 mkdir "$as_incr_dir" ||
5574 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5575 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5576 { (exit 1); exit 1; }; }
5582 mv $tmp/config.h $ac_file
5590 cat >>$CONFIG_STATUS <<\_ACEOF
5593 # CONFIG_COMMANDS section.
5595 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5596 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5597 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5598 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5599 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5600 X"$ac_dest" : 'X\(//\)[^/]' \| \
5601 X"$ac_dest" : 'X\(//\)$' \| \
5602 X"$ac_dest" : 'X\(/\)' \| \
5603 . : '\(.\)' 2>/dev/null ||
5605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5607 /^X\(\/\/\)$/{ s//\1/; q; }
5608 /^X\(\/\).*/{ s//\1/; q; }
5612 if test "$ac_dir" != .; then
5613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5614 # A "../" for each directory in $ac_dir_suffix.
5615 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5617 ac_dir_suffix= ac_top_builddir=
5621 .) # No --srcdir option. We are building in place.
5623 if test -z "$ac_top_builddir"; then
5626 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5628 [\\/]* | ?:[\\/]* ) # Absolute path.
5629 ac_srcdir=$srcdir$ac_dir_suffix;
5630 ac_top_srcdir=$srcdir ;;
5632 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5633 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5635 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5637 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5638 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5639 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5640 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5643 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5644 echo "$as_me: executing $ac_dest commands" >&6;}
5646 default ) touch stamp-h ;;
5651 cat >>$CONFIG_STATUS <<\_ACEOF
5653 { (exit 0); exit 0; }
5655 chmod +x $CONFIG_STATUS
5656 ac_clean_files=$ac_clean_files_save
5659 # configure is writing to config.log, and then calls config.status.
5660 # config.status does its own redirection, appending to config.log.
5661 # Unfortunately, on DOS this fails, as config.log is still kept open
5662 # by configure, so config.status won't be able to write to it; its
5663 # output is simply discarded. So we exec the FD to /dev/null,
5664 # effectively closing config.log, so it can be properly (re)opened and
5665 # appended to by config.status. When coming back to configure, we
5666 # need to make the FD available again.
5667 if test "$no_create" != yes; then
5670 $SHELL $CONFIG_STATUS || ac_cs_success=false
5672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5673 # would make configure fail if this is the last instruction.
5674 $ac_cs_success || { (exit 1); exit 1; }
5678 gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h