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 --disable-libiberty disable own libiberty parts
834 --enable-statistics enable Firm statistics
835 --disable-external-effects disable descriptions of external effects in XML
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-includedir=add colon seperated list of directories to include search path
841 --with-libdir=add colon seperated list of directories to linker search path
843 Some influential environment variables:
844 CC C compiler command
845 CFLAGS C compiler flags
846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
847 nonstandard directory <lib dir>
848 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
849 headers in a nonstandard directory <include dir>
852 Use these variables to override the choices made by `configure' or to help
853 it to find libraries and programs with nonstandard names/locations.
858 if test "$ac_init_help" = "recursive"; then
859 # If there are subdirs, report their specific --help.
861 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
862 test -d $ac_dir || continue
865 if test "$ac_dir" != .; then
866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
867 # A "../" for each directory in $ac_dir_suffix.
868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 ac_dir_suffix= ac_top_builddir=
874 .) # No --srcdir option. We are building in place.
876 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 [\\/]* | ?:[\\/]* ) # Absolute path.
882 ac_srcdir=$srcdir$ac_dir_suffix;
883 ac_top_srcdir=$srcdir ;;
885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
891 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
896 # Check for guested configure; otherwise get Cygnus style configure.
897 if test -f $ac_srcdir/configure.gnu; then
899 $SHELL $ac_srcdir/configure.gnu --help=recursive
900 elif test -f $ac_srcdir/configure; then
902 $SHELL $ac_srcdir/configure --help=recursive
903 elif test -f $ac_srcdir/configure.ac ||
904 test -f $ac_srcdir/configure.in; then
908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 test -n "$ac_init_help" && exit 0
915 if $ac_init_version; then
917 libfirm configure 0.3.0
918 generated by GNU Autoconf 2.53
920 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921 Free Software Foundation, Inc.
922 This configure script is free software; the Free Software Foundation
923 gives unlimited permission to copy, distribute and modify it.
929 This file contains any messages produced by compilers while
930 running configure, to aid debugging if configure makes a mistake.
932 It was created by libfirm $as_me 0.3.0, which was
933 generated by GNU Autoconf 2.53. Invocation command line was
944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
967 test -z "$as_dir" && as_dir=.
983 # Keep a trace of the command line.
984 # Strip out --no-create and --no-recursion so they do not pile up.
985 # Also quote any args containing shell meta-characters.
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n ) continue ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
999 case " $ac_configure_args " in
1000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1001 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1004 # Get rid of the leading space.
1007 # When interrupted or exit'd, cleanup temporary files, and complete
1008 # config.log. We remove comments because anyway the quotes in there
1009 # would cause problems or look ugly.
1010 # WARNING: Be sure not to use single quotes in there, as some shells,
1011 # such as our DU 5.0 friend, will then `close' the trap.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1017 ## ---------------- ##
1018 ## Cache variables. ##
1019 ## ---------------- ##
1022 # The following way of writing the cache mishandles newlines in values,
1025 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 if test -s confdefs.h; then
1045 sed "/^$/d" confdefs.h
1048 test "$ac_signal" != 0 &&
1049 echo "$as_me: caught signal $ac_signal"
1050 echo "$as_me: exit $exit_status"
1052 rm -f core core.* *.core &&
1053 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1056 for ac_signal in 1 2 13 15; do
1057 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1062 rm -rf conftest* confdefs.h
1063 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1066 # Predefined preprocessor variables.
1068 cat >>confdefs.h <<_ACEOF
1069 #define PACKAGE_NAME "$PACKAGE_NAME"
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_STRING "$PACKAGE_STRING"
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1093 # Let the site file select an alternate cache file if it wants to.
1094 # Prefer explicitly selected file to automatically selected ones.
1095 if test -z "$CONFIG_SITE"; then
1096 if test "x$prefix" != xNONE; then
1097 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1099 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1102 for ac_site_file in $CONFIG_SITE; do
1103 if test -r "$ac_site_file"; then
1104 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1105 echo "$as_me: loading site script $ac_site_file" >&6;}
1106 sed 's/^/| /' "$ac_site_file" >&5
1111 if test -r "$cache_file"; then
1112 # Some versions of bash will fail to source /dev/null (special
1113 # files actually), so we avoid doing that.
1114 if test -f "$cache_file"; then
1115 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1116 echo "$as_me: loading cache $cache_file" >&6;}
1118 [\\/]* | ?:[\\/]* ) . $cache_file;;
1119 *) . ./$cache_file;;
1123 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1124 echo "$as_me: creating cache $cache_file" >&6;}
1128 # Check that the precious variables saved in the cache have kept the same
1130 ac_cache_corrupted=false
1131 for ac_var in `(set) 2>&1 |
1132 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1134 eval ac_new_set=\$ac_env_${ac_var}_set
1135 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1136 eval ac_new_val="\$ac_env_${ac_var}_value"
1137 case $ac_old_set,$ac_new_set in
1139 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1140 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1141 ac_cache_corrupted=: ;;
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1148 if test "x$ac_old_val" != "x$ac_new_val"; then
1149 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1150 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1151 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1152 echo "$as_me: former value: $ac_old_val" >&2;}
1153 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1154 echo "$as_me: current value: $ac_new_val" >&2;}
1155 ac_cache_corrupted=:
1158 # Pass precious variables to config.status.
1159 if test "$ac_new_set" = set; then
1161 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1162 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1163 *) ac_arg=$ac_var=$ac_new_val ;;
1165 case " $ac_configure_args " in
1166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1167 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1171 if $ac_cache_corrupted; then
1172 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1173 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1174 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1175 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1176 { (exit 1); exit 1; }; }
1180 ac_cpp='$CPP $CPPFLAGS'
1181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1211 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1212 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1213 ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
1214 ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
1215 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1218 ac_config_headers="$ac_config_headers config.h"
1221 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1224 CONF_DIR_NAME=`dirname $0`
1227 # Check whether --with-includedir or --without-includedir was given.
1228 if test "${with_includedir+set}" = set; then
1229 withval="$with_includedir"
1230 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1236 # Check whether --with-libdir or --without-libdir was given.
1237 if test "${with_libdir+set}" = set; then
1238 withval="$with_libdir"
1239 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1245 # Check whether --enable-debug or --disable-debug was given.
1246 if test "${enable_debug+set}" = set; then
1247 enableval="$enable_debug"
1248 if test "$enableval" = yes; then
1249 cat >>confdefs.h <<\_ACEOF
1250 #define DEBUG_libfirm 1
1254 cat >>confdefs.h <<\_ACEOF
1262 # Check whether --enable-inlining or --disable-inlining was given.
1263 if test "${enable_inlining+set}" = set; then
1264 enableval="$enable_inlining"
1265 if test "$enableval" = yes; then
1266 cat >>confdefs.h <<\_ACEOF
1267 #define USE_INLINING 1
1272 cat >>confdefs.h <<\_ACEOF
1273 #define USE_INLINING 1
1279 # Check whether --enable-profile or --disable-profile was given.
1280 if test "${enable_profile+set}" = set; then
1281 enableval="$enable_profile"
1282 if test "$enableval"=yes; then
1283 enable_profile_libfirm=yes
1286 enable_profile_libfirm=no
1290 # Check whether --enable-autodoc or --disable-autodoc was given.
1291 if test "${enable_autodoc+set}" = set; then
1292 enableval="$enable_autodoc"
1293 if test "$enableval"=yes; then
1294 enable_auto_documentation=yes
1297 enable_auto_documentation=no
1302 # Check whether --enable-firmjni or --disable-firmjni was given.
1303 if test "${enable_firmjni+set}" = set; then
1304 enableval="$enable_firmjni"
1305 if test "$enableval"=yes; then
1313 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1314 if test "${enable_heapanalysis+set}" = set; then
1315 enableval="$enable_heapanalysis"
1316 enable_heapanalysis=$enableval
1318 enable_heapanalysis="no"
1320 if test "$enable_heapanalysis" = "no"; then
1321 echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
1322 echo "${ECHO_T}heapanalysis disabled" >&6
1324 cat >>confdefs.h <<\_ACEOF
1325 #define DO_HEAPANALYSIS 1
1328 echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
1329 echo "${ECHO_T}heapanalysis enabled" >&6
1333 # Check whether --enable-libiberty or --disable-libiberty was given.
1334 if test "${enable_libiberty+set}" = set; then
1335 enableval="$enable_libiberty"
1336 if test "$enableval"=yes; then
1337 disable_libiberty_=yes
1340 disable_libiberty=no
1344 # Check whether --enable-statistics or --disable-statistics was given.
1345 if test "${enable_statistics+set}" = set; then
1346 enableval="$enable_statistics"
1347 if test "$enableval"=yes; then
1348 cat >>confdefs.h <<\_ACEOF
1349 #define FIRM_STATISTICS 1
1356 echo "$as_me:$LINENO: checking for using external effects in xml2" >&5
1357 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6
1358 # Check whether --enable-external-effects or --disable-external-effects was given.
1359 if test "${enable_external_effects+set}" = set; then
1360 enableval="$enable_external_effects"
1361 if test "$enableval"="no"; then
1362 enable_external_effects=no
1365 enable_external_effects=yes
1368 if test "$enable_external_effects" == no; then
1369 echo "$as_me:$LINENO: result: disabled" >&5
1370 echo "${ECHO_T}disabled" >&6
1372 echo "$as_me:$LINENO: result: enabled" >&5
1373 echo "${ECHO_T}enabled" >&6
1378 ac_cpp='$CPP $CPPFLAGS'
1379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 if test -n "$CC"; then
1411 echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1419 if test -z "$ac_cv_prog_CC"; then
1421 # Extract the first word of "gcc", so it can be a program name with args.
1422 set dummy gcc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="gcc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1461 if test -z "$CC"; then
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="${ac_tool_prefix}cc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "cc", so it can be a program name with args.
1502 set dummy cc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC="cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 # Extract the first word of "cc", so it can be a program name with args.
1544 set dummy cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1562 ac_prog_rejected=yes
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 if test $ac_prog_rejected = yes; then
1573 # We found a bogon in the path, so make sure we never use it.
1574 set dummy $ac_cv_prog_CC
1576 if test $# != 0; then
1577 # We chose a different compiler from the bogus one.
1578 # However, it has the same basename, so the bogon will be chosen
1579 # first if we set CC to just the basename; use the full file name.
1581 set dummy "$as_dir/$ac_word" ${1+"$@"}
1589 if test -n "$CC"; then
1590 echo "$as_me:$LINENO: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1598 if test -z "$CC"; then
1599 if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 if test -n "$CC"; then
1630 echo "$as_me:$LINENO: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1637 test -n "$CC" && break
1640 if test -z "$CC"; then
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="$ac_prog"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 test -n "$ac_ct_CC" && break
1688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1689 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1690 { (exit 1); exit 1; }; }
1692 # Provide some information about the compiler.
1693 echo "$as_me:$LINENO:" \
1694 "checking for C compiler version" >&5
1695 ac_compiler=`set X $ac_compile; echo $2`
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1697 (eval $ac_compiler --version </dev/null >&5) 2>&5
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1702 (eval $ac_compiler -v </dev/null >&5) 2>&5
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1707 (eval $ac_compiler -V </dev/null >&5) 2>&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1712 cat >conftest.$ac_ext <<_ACEOF
1713 #line $LINENO "configure"
1714 #include "confdefs.h"
1716 #ifdef F77_DUMMY_MAIN
1720 int F77_DUMMY_MAIN() { return 1; }
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1735 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1736 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 # Be careful to initialize this variable, since it used to be cached.
1748 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1750 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1751 ls a.out conftest 2>/dev/null;
1752 ls a.* conftest.* 2>/dev/null`; do
1754 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1755 a.out ) # We found the default executable, but exeext='' is most
1758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1769 echo "$as_me: error: C compiler cannot create executables" >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe; then
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1828 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1845 rm -f conftest.$ac_ext
1846 EXEEXT=$ac_cv_exeext
1848 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 #include "confdefs.h"
1857 #ifdef F77_DUMMY_MAIN
1861 int F77_DUMMY_MAIN() { return 1; }
1871 rm -f conftest.o conftest.obj
1872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; then
1877 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 echo "$as_me: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1888 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1889 { (exit 1); exit 1; }; }
1892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1894 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895 echo "${ECHO_T}$ac_cv_objext" >&6
1896 OBJEXT=$ac_cv_objext
1898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1907 #ifdef F77_DUMMY_MAIN
1911 int F77_DUMMY_MAIN() { return 1; }
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 echo "$as_me: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS=${CFLAGS+set}
1950 ac_save_CFLAGS=$CFLAGS
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1961 #ifdef F77_DUMMY_MAIN
1965 int F77_DUMMY_MAIN() { return 1; }
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1993 rm -f conftest.$ac_objext conftest.$ac_ext
1995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1996 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1997 if test "$ac_test_CFLAGS" = set; then
1998 CFLAGS=$ac_save_CFLAGS
1999 elif test $ac_cv_prog_cc_g = yes; then
2000 if test "$GCC" = yes; then
2006 if test "$GCC" = yes; then
2012 # Some people use a C++ compiler to compile C. Since we use `exit',
2013 # in C++ we need to declare it. In case someone uses the same compiler
2014 # for both compiling C and C++ we need to have the C++ compiler decide
2015 # the declaration of exit, since it's the most demanding environment.
2016 cat >conftest.$ac_ext <<_ACEOF
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2033 for ac_declaration in \
2035 '#include <stdlib.h>' \
2036 'extern "C" void std::exit (int) throw (); using std::exit;' \
2037 'extern "C" void std::exit (int); using std::exit;' \
2038 'extern "C" void exit (int) throw ();' \
2039 'extern "C" void exit (int);' \
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line $LINENO "configure"
2044 #include "confdefs.h"
2047 #ifdef F77_DUMMY_MAIN
2051 int F77_DUMMY_MAIN() { return 1; }
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2084 #ifdef F77_DUMMY_MAIN
2088 int F77_DUMMY_MAIN() { return 1; }
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2115 rm -f conftest.$ac_objext conftest.$ac_ext
2118 if test -n "$ac_declaration"; then
2119 echo '#ifdef __cplusplus' >>confdefs.h
2120 echo $ac_declaration >>confdefs.h
2121 echo '#endif' >>confdefs.h
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 rm -f conftest.$ac_objext conftest.$ac_ext
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -z "$LD"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}ld; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_LD+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$LD"; then
2147 ac_cv_prog_LD="$LD" # Let the user override the test.
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156 ac_cv_prog_LD="${ac_tool_prefix}ld"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 if test -n "$LD"; then
2167 echo "$as_me:$LINENO: result: $LD" >&5
2168 echo "${ECHO_T}$LD" >&6
2170 echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2175 if test -z "$ac_cv_prog_LD"; then
2177 # Extract the first word of "ld", so it can be a program name with args.
2178 set dummy ld; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$ac_ct_LD"; then
2185 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194 ac_cv_prog_ac_ct_LD="ld"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2204 if test -n "$ac_ct_LD"; then
2205 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2206 echo "${ECHO_T}$ac_ct_LD" >&6
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2219 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2220 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2221 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 libfirm_cv_prog_ld_r=no
2227 cat > conftest.$ac_ext <<EOF
2228 int foo() { return 0; }
2230 if eval $ac_compile && mv conftest.o conftest2.o; then
2231 cat > conftest.$ac_ext <<EOF
2233 int main() { return foo(); }
2235 if eval $ac_compile; then
2236 if $LD -r -o conftest conftest.o conftest2.o; then
2237 libfirm_cv_prog_ld_r=yes
2244 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2245 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2248 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2249 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2250 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2251 { (exit 1); exit 1; }; }
2254 # Extract the first word of "ar", so it can be a program name with args.
2255 set dummy ar; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_AR+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$AR"; then
2262 ac_cv_prog_AR="$AR" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_AR=""ar""
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2282 if test -n "$AR"; then
2283 echo "$as_me:$LINENO: result: $AR" >&5
2284 echo "${ECHO_T}$AR" >&6
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 if test "$AR" != "ar"; then
2291 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2292 echo "$as_me: error: need ar for creating archives" >&2;}
2293 { (exit 1); exit 1; }; }
2296 # Extract the first word of "tar", so it can be a program name with args.
2297 set dummy tar; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_TAR+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$TAR"; then
2304 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_TAR=""tar""
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2324 if test -n "$TAR"; then
2325 echo "$as_me:$LINENO: result: $TAR" >&5
2326 echo "${ECHO_T}$TAR" >&6
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 if test "$TAR" != "tar"; then
2333 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2334 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2335 { (exit 1); exit 1; }; }
2339 if test -n "$ac_tool_prefix"; then
2340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2342 echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2344 if test "${ac_cv_prog_RANLIB+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 if test -n "$RANLIB"; then
2348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 RANLIB=$ac_cv_prog_RANLIB
2367 if test -n "$RANLIB"; then
2368 echo "$as_me:$LINENO: result: $RANLIB" >&5
2369 echo "${ECHO_T}$RANLIB" >&6
2371 echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6
2376 if test -z "$ac_cv_prog_RANLIB"; then
2377 ac_ct_RANLIB=$RANLIB
2378 # Extract the first word of "ranlib", so it can be a program name with args.
2379 set dummy ranlib; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$ac_ct_RANLIB"; then
2386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_ac_ct_RANLIB="ranlib"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2406 if test -n "$ac_ct_RANLIB"; then
2407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2414 RANLIB=$ac_ct_RANLIB
2416 RANLIB="$ac_cv_prog_RANLIB"
2421 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2422 if test -f $ac_dir/install-sh; then
2424 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 elif test -f $ac_dir/install.sh; then
2428 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 elif test -f $ac_dir/shtool; then
2432 ac_install_sh="$ac_aux_dir/shtool install -c"
2436 if test -z "$ac_aux_dir"; then
2437 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2438 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2439 { (exit 1); exit 1; }; }
2441 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2442 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2443 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2445 # Find a good install program. We prefer a C program (faster),
2446 # so one script is as good as another. But avoid the broken or
2447 # incompatible versions:
2448 # SysV /etc/install, /usr/sbin/install
2449 # SunOS /usr/etc/install
2450 # IRIX /sbin/install
2452 # AmigaOS /C/install, which installs bootblocks on floppy discs
2453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2459 if test -z "$INSTALL"; then
2460 if test "${ac_cv_path_install+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2470 ./ | .// | /cC/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
2504 # As a last resort, use the slow shell script. We don't cache a
2505 # path for INSTALL within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the path is relative.
2508 INSTALL=$ac_install_sh
2511 echo "$as_me:$LINENO: result: $INSTALL" >&5
2512 echo "${ECHO_T}$INSTALL" >&6
2514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515 # It thinks the first close brace ends the variable substitution.
2516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523 touch tmp-install.a tmp-install.b
2524 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2525 INSTALL="$INSTALL -C"
2527 rm tmp-install.a tmp-install.b
2530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2533 if test "$LN_S" = "ln -s"; then
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2538 echo "${ECHO_T}no, using $LN_S" >&6
2542 if test "$enable_auto_documentation" = yes; then
2543 # Extract the first word of "doxygen", so it can be a program name with args.
2544 set dummy doxygen; ac_word=$2
2545 echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$DOXYGEN"; then
2551 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_DOXYGEN=""doxygen""
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2570 DOXYGEN=$ac_cv_prog_DOXYGEN
2571 if test -n "$DOXYGEN"; then
2572 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2573 echo "${ECHO_T}$DOXYGEN" >&6
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2579 if test "$DOXYGEN" != "doxygen"; then
2580 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2581 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2582 { (exit 1); exit 1; }; }
2584 # Extract the first word of "dot", so it can be a program name with args.
2585 set dummy dot; 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_DOT+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$DOT"; then
2592 ac_cv_prog_DOT="$DOT" # 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_DOT=""dot""
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2612 if test -n "$DOT"; then
2613 echo "$as_me:$LINENO: result: $DOT" >&5
2614 echo "${ECHO_T}$DOT" >&6
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2620 if test "$DOT" != "dot"; then
2621 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2622 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2623 { (exit 1); exit 1; }; }
2627 if test "$enable_firm_jni" = yes; then
2628 # Extract the first word of "javac", so it can be a program name with args.
2629 set dummy javac; ac_word=$2
2630 echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2632 if test "${ac_cv_prog_JAVAC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$JAVAC"; then
2636 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_JAVAC=""javac""
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2655 JAVAC=$ac_cv_prog_JAVAC
2656 if test -n "$JAVAC"; then
2657 echo "$as_me:$LINENO: result: $JAVAC" >&5
2658 echo "${ECHO_T}$JAVAC" >&6
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2664 if test "$JAVAC" != "javac"; then
2665 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2666 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Extract the first word of "javah", so it can be a program name with args.
2670 set dummy javah; 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_JAVAH+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$JAVAH"; then
2677 ac_cv_prog_JAVAH="$JAVAH" # 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_JAVAH=""javah""
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2696 JAVAH=$ac_cv_prog_JAVAH
2697 if test -n "$JAVAH"; then
2698 echo "$as_me:$LINENO: result: $JAVAH" >&5
2699 echo "${ECHO_T}$JAVAH" >&6
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2705 if test "$JAVAH" != "javah"; then
2706 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2707 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2708 { (exit 1); exit 1; }; }
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2721 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2722 # On Suns, sometimes $CPP names a directory.
2723 if test -n "$CPP" && test -d "$CPP"; then
2726 if test -z "$CPP"; then
2727 if test "${ac_cv_prog_CPP+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 # Double quotes because CPP needs to be expanded
2731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2734 for ac_c_preproc_warn_flag in '' yes
2736 # Use a header file that comes with gcc, so configuring glibc
2737 # with a fresh cross-compiler works.
2738 # On the NeXT, cc -E runs the code through the compiler's parser,
2739 # not just through cpp. "Syntax error" is here to catch this case.
2740 cat >conftest.$ac_ext <<_ACEOF
2741 #line $LINENO "configure"
2742 #include "confdefs.h"
2746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2749 egrep -v '^ *\+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } >/dev/null; then
2754 if test -s conftest.err; then
2755 ac_cpp_err=$ac_c_preproc_warn_flag
2762 if test -z "$ac_cpp_err"; then
2765 echo "$as_me: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2767 # Broken: fails on valid input.
2770 rm -f conftest.err conftest.$ac_ext
2772 # OK, works on sane cases. Now check whether non-existent headers
2773 # can be detected and how.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 #include "confdefs.h"
2777 #include <ac_nonexistent.h>
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2782 egrep -v '^ *\+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev/null; then
2787 if test -s conftest.err; then
2788 ac_cpp_err=$ac_c_preproc_warn_flag
2795 if test -z "$ac_cpp_err"; then
2796 # Broken: success on invalid input.
2799 echo "$as_me: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 # Passes both tests.
2805 rm -f conftest.err conftest.$ac_ext
2808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2809 rm -f conftest.err conftest.$ac_ext
2810 if $ac_preproc_ok; then
2822 echo "$as_me:$LINENO: result: $CPP" >&5
2823 echo "${ECHO_T}$CPP" >&6
2825 for ac_c_preproc_warn_flag in '' yes
2827 # Use a header file that comes with gcc, so configuring glibc
2828 # with a fresh cross-compiler works.
2829 # On the NeXT, cc -E runs the code through the compiler's parser,
2830 # not just through cpp. "Syntax error" is here to catch this case.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2833 #include "confdefs.h"
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840 egrep -v '^ *\+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null; then
2845 if test -s conftest.err; then
2846 ac_cpp_err=$ac_c_preproc_warn_flag
2853 if test -z "$ac_cpp_err"; then
2856 echo "$as_me: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2858 # Broken: fails on valid input.
2861 rm -f conftest.err conftest.$ac_ext
2863 # OK, works on sane cases. Now check whether non-existent headers
2864 # can be detected and how.
2865 cat >conftest.$ac_ext <<_ACEOF
2866 #line $LINENO "configure"
2867 #include "confdefs.h"
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 egrep -v '^ *\+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 # Passes both tests.
2896 rm -f conftest.err conftest.$ac_ext
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.$ac_ext
2901 if $ac_preproc_ok; then
2904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2906 { (exit 1); exit 1; }; }
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2918 if test "${ac_cv_header_stdc+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 #include "confdefs.h"
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2933 egrep -v '^ *\+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null; then
2938 if test -s conftest.err; then
2939 ac_cpp_err=$ac_c_preproc_warn_flag
2946 if test -z "$ac_cpp_err"; then
2947 ac_cv_header_stdc=yes
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 ac_cv_header_stdc=no
2953 rm -f conftest.err conftest.$ac_ext
2955 if test $ac_cv_header_stdc = yes; then
2956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 #include "confdefs.h"
2963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2964 egrep "memchr" >/dev/null 2>&1; then
2967 ac_cv_header_stdc=no
2973 if test $ac_cv_header_stdc = yes; then
2974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 #include "confdefs.h"
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "free" >/dev/null 2>&1; then
2985 ac_cv_header_stdc=no
2991 if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 #include "confdefs.h"
3000 #if ((' ' & 0x0FF) == 0x020)
3001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3004 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3005 || ('j' <= (c) && (c) <= 'r') \
3006 || ('s' <= (c) && (c) <= 'z'))
3007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 for (i = 0; i < 256; i++)
3016 if (XOR (islower (i), ISLOWER (i))
3017 || toupper (i) != TOUPPER (i))
3022 rm -f conftest$ac_exeext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024 (eval $ac_link) 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3035 echo "$as_me: program exited with status $ac_status" >&5
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 ac_cv_header_stdc=no
3041 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3045 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3046 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3047 if test $ac_cv_header_stdc = yes; then
3049 cat >>confdefs.h <<\_ACEOF
3050 #define STDC_HEADERS 1
3057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3067 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3068 inttypes.h stdint.h unistd.h
3070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3071 echo "$as_me:$LINENO: checking for $ac_header" >&5
3072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 #include "confdefs.h"
3079 $ac_includes_default
3081 #include <$ac_header>
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 eval "$as_ac_Header=yes"
3097 echo "$as_me: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 eval "$as_ac_Header=no"
3101 rm -f conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3106 cat >>confdefs.h <<_ACEOF
3107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 for ac_header in math.h
3118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3120 echo "$as_me:$LINENO: checking for $ac_header" >&5
3121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3128 # Is the header compilable?
3129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3131 cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 #include "confdefs.h"
3134 $ac_includes_default
3135 #include <$ac_header>
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_header_compiler=yes
3151 echo "$as_me: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3153 ac_header_compiler=no
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3157 echo "${ECHO_T}$ac_header_compiler" >&6
3159 # Is the header present?
3160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3164 #include "confdefs.h"
3165 #include <$ac_header>
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 egrep -v '^ *\+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3183 if test -z "$ac_cpp_err"; then
3184 ac_header_preproc=yes
3186 echo "$as_me: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 ac_header_preproc=no
3190 rm -f conftest.err conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3192 echo "${ECHO_T}$ac_header_preproc" >&6
3194 # So? What about this header?
3195 case $ac_header_compiler:$ac_header_preproc in
3197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3209 echo "$as_me:$LINENO: checking for $ac_header" >&5
3210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 eval "$as_ac_Header=$ac_header_preproc"
3216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3221 cat >>confdefs.h <<_ACEOF
3222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3224 ac_math_headers="yes"
3226 ac_math_headers="no"
3231 if test "$ac_math_headers" != yes; then
3232 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3233 echo "$as_me: error: \"math header file not found\"" >&2;}
3234 { (exit 1); exit 1; }; }
3238 #dnl check for the gnu multiprecission (gmp) header file
3240 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3241 #if test "$ac_gmp_headers" != yes; then
3242 # dnl gmp header not found.
3243 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3250 for ac_header in obstack.h
3252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254 echo "$as_me:$LINENO: checking for $ac_header" >&5
3255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3262 # Is the header compilable?
3263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3265 cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 #include "confdefs.h"
3268 $ac_includes_default
3269 #include <$ac_header>
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_header_compiler=yes
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 ac_header_compiler=no
3289 rm -f conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3291 echo "${ECHO_T}$ac_header_compiler" >&6
3293 # Is the header present?
3294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3296 cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3298 #include "confdefs.h"
3299 #include <$ac_header>
3301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304 egrep -v '^ *\+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3317 if test -z "$ac_cpp_err"; then
3318 ac_header_preproc=yes
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 ac_header_preproc=no
3324 rm -f conftest.err conftest.$ac_ext
3325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3326 echo "${ECHO_T}$ac_header_preproc" >&6
3328 # So? What about this header?
3329 case $ac_header_compiler:$ac_header_preproc in
3331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3343 echo "$as_me:$LINENO: checking for $ac_header" >&5
3344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 eval "$as_ac_Header=$ac_header_preproc"
3350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3355 cat >>confdefs.h <<_ACEOF
3356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3358 ac_obstack_headers="yes"
3360 ac_obstack_headers="no"
3365 if test "$ac_obstack_headers" != yes; then
3366 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3367 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3368 { (exit 1); exit 1; }; }
3373 for ac_header in alloca.h
3375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3377 echo "$as_me:$LINENO: checking for $ac_header" >&5
3378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3385 # Is the header compilable?
3386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #line $LINENO "configure"
3390 #include "confdefs.h"
3391 $ac_includes_default
3392 #include <$ac_header>
3394 rm -f conftest.$ac_objext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_header_compiler=yes
3408 echo "$as_me: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 ac_header_compiler=no
3412 rm -f conftest.$ac_objext conftest.$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3414 echo "${ECHO_T}$ac_header_compiler" >&6
3416 # Is the header present?
3417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3421 #include "confdefs.h"
3422 #include <$ac_header>
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 egrep -v '^ *\+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3440 if test -z "$ac_cpp_err"; then
3441 ac_header_preproc=yes
3443 echo "$as_me: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 ac_header_preproc=no
3447 rm -f conftest.err conftest.$ac_ext
3448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3449 echo "${ECHO_T}$ac_header_preproc" >&6
3451 # So? What about this header?
3452 case $ac_header_compiler:$ac_header_preproc in
3454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3466 echo "$as_me:$LINENO: checking for $ac_header" >&5
3467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 eval "$as_ac_Header=$ac_header_preproc"
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3478 cat >>confdefs.h <<_ACEOF
3479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481 ac_alloca_headers="yes"
3483 ac_alloca_headers="no"
3488 if test "$ac_alloca_headers" = "yes"; then
3489 cat >>confdefs.h <<\_ACEOF
3490 #define HAVE_ALLOCA_H 1
3494 if test "$ac_cv_header_stdc" = "no"; then
3495 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3496 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3497 { (exit 1); exit 1; }; }
3503 if test "$enable_firm_jni" = yes; then
3505 for ac_header in jni.h
3507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo "$as_me:$LINENO: checking for $ac_header" >&5
3510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3517 # Is the header compilable?
3518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3520 cat >conftest.$ac_ext <<_ACEOF
3521 #line $LINENO "configure"
3522 #include "confdefs.h"
3523 $ac_includes_default
3524 #include <$ac_header>
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_header_compiler=yes
3540 echo "$as_me: failed program was:" >&5
3541 cat conftest.$ac_ext >&5
3542 ac_header_compiler=no
3544 rm -f conftest.$ac_objext conftest.$ac_ext
3545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3546 echo "${ECHO_T}$ac_header_compiler" >&6
3548 # Is the header present?
3549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3551 cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3554 #include <$ac_header>
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3559 egrep -v '^ *\+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3572 if test -z "$ac_cpp_err"; then
3573 ac_header_preproc=yes
3575 echo "$as_me: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3577 ac_header_preproc=no
3579 rm -f conftest.err conftest.$ac_ext
3580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3581 echo "${ECHO_T}$ac_header_preproc" >&6
3583 # So? What about this header?
3584 case $ac_header_compiler:$ac_header_preproc in
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 eval "$as_ac_Header=$ac_header_preproc"
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610 cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3613 ac_jni_headers="yes"
3620 if test "$ac_jni_headers" != yes; then
3621 { { 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
3622 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;}
3623 { (exit 1); exit 1; }; }
3628 if test "$enable_external_effects" == "yes"; then
3630 for ac_header in libxml/parser.h
3632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3634 echo "$as_me:$LINENO: checking for $ac_header" >&5
3635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3642 # Is the header compilable?
3643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line $LINENO "configure"
3647 #include "confdefs.h"
3648 $ac_includes_default
3649 #include <$ac_header>
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_header_compiler=yes
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 ac_header_compiler=no
3669 rm -f conftest.$ac_objext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3671 echo "${ECHO_T}$ac_header_compiler" >&6
3673 # Is the header present?
3674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3676 cat >conftest.$ac_ext <<_ACEOF
3677 #line $LINENO "configure"
3678 #include "confdefs.h"
3679 #include <$ac_header>
3681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3684 egrep -v '^ *\+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null; then
3689 if test -s conftest.err; then
3690 ac_cpp_err=$ac_c_preproc_warn_flag
3697 if test -z "$ac_cpp_err"; then
3698 ac_header_preproc=yes
3700 echo "$as_me: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 ac_header_preproc=no
3704 rm -f conftest.err conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3706 echo "${ECHO_T}$ac_header_preproc" >&6
3708 # So? What about this header?
3709 case $ac_header_compiler:$ac_header_preproc in
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3723 echo "$as_me:$LINENO: checking for $ac_header" >&5
3724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 eval "$as_ac_Header=$ac_header_preproc"
3730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3735 cat >>confdefs.h <<_ACEOF
3736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3738 ac_xml_headers="yes"
3745 if test "$ac_xml_headers" != yes; then
3746 { { echo "$as_me:$LINENO: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&5
3747 echo "$as_me: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&2;}
3748 { (exit 1); exit 1; }; }
3753 #dnl check for the gnu multiprecission (gmp) library
3755 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3756 #if test "$ac_gmp_library" != yes; then
3757 # dnl gmp library not found.
3758 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3762 echo "$as_me:$LINENO: checking for main in -lm" >&5
3763 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3764 if test "${ac_cv_lib_m_main+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 ac_check_lib_save_LIBS=$LIBS
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3774 #ifdef F77_DUMMY_MAIN
3778 int F77_DUMMY_MAIN() { return 1; }
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_lib_m_main=yes
3802 echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_check_lib_save_LIBS
3809 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3810 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3811 if test $ac_cv_lib_m_main = yes; then
3817 if test "$ac_m_library" != yes; then
3818 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3819 echo "$as_me: error: \"standard math library not found\"" >&2;}
3820 { (exit 1); exit 1; }; }
3824 if test "$enable_external_effects" == "yes"; then
3825 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
3826 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
3827 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 ac_check_lib_save_LIBS=$LIBS
3832 cat >conftest.$ac_ext <<_ACEOF
3833 #line $LINENO "configure"
3834 #include "confdefs.h"
3836 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char xmlParseFile ();
3843 #ifdef F77_DUMMY_MAIN
3847 int F77_DUMMY_MAIN() { return 1; }
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } &&
3863 { ac_try='test -s conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_lib_xml2_xmlParseFile=yes
3871 echo "$as_me: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 ac_cv_lib_xml2_xmlParseFile=no
3875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3878 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
3879 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
3880 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
3881 ac_xml_library="yes"
3886 if test "$ac_m_library" != yes; then
3887 { { echo "$as_me:$LINENO: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&5
3888 echo "$as_me: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&2;}
3889 { (exit 1); exit 1; }; }
3895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_cv_prog_cc_stdc=no
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line $LINENO "configure"
3904 #include "confdefs.h"
3907 #include <sys/types.h>
3908 #include <sys/stat.h>
3909 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3910 struct buf { int x; };
3911 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3912 static char *e (p, i)
3918 static char *f (char * (*g) (char **, int), char **p, ...)
3923 s = g (p, va_arg (v,int));
3927 int test (int i, double x);
3928 struct s1 {int (*f) (int a);};
3929 struct s2 {int (*f) (double a);};
3930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3933 #ifdef F77_DUMMY_MAIN
3937 int F77_DUMMY_MAIN() { return 1; }
3942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3947 # Don't try gcc -ansi; that turns off useful extensions and
3948 # breaks some systems' header files.
3949 # AIX -qlanglvl=ansi
3950 # Ultrix and OSF/1 -std1
3951 # HP-UX 10.20 and later -Ae
3952 # HP-UX older versions -Aa -D_HPUX_SOURCE
3953 # SVR4 -Xc -D__EXTENSIONS__
3954 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956 CC="$ac_save_CC $ac_arg"
3957 rm -f conftest.$ac_objext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 ac_cv_prog_cc_stdc=$ac_arg
3972 echo "$as_me: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 rm -f conftest.$ac_objext
3977 rm -f conftest.$ac_ext conftest.$ac_objext
3982 case "x$ac_cv_prog_cc_stdc" in
3984 echo "$as_me:$LINENO: result: none needed" >&5
3985 echo "${ECHO_T}none needed" >&6 ;;
3987 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3988 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3989 CC="$CC $ac_cv_prog_cc_stdc" ;;
3992 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3993 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3994 if test "${ac_cv_c_const+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line $LINENO "configure"
3999 #include "confdefs.h"
4001 #ifdef F77_DUMMY_MAIN
4005 int F77_DUMMY_MAIN() { return 1; }
4010 /* FIXME: Include the comments suggested by Paul. */
4012 /* Ultrix mips cc rejects this. */
4013 typedef int charset[2];
4015 /* SunOS 4.1.1 cc rejects this. */
4016 char const *const *ccp;
4018 /* NEC SVR4.0.2 mips cc rejects this. */
4019 struct point {int x, y;};
4020 static struct point const zero = {0,0};
4021 /* AIX XL C 1.02.0.0 rejects this.
4022 It does not let you subtract one const X* pointer from another in
4023 an arm of an if-expression whose if-part is not a constant
4025 const char *g = "string";
4026 ccp = &g + (g ? g-g : 0);
4027 /* HPUX 7.0 cc rejects these. */
4030 ccp = (char const *const *) p;
4031 { /* SCO 3.2v4 cc rejects this. */
4033 char const *s = 0 ? (char *) 0 : (char const *) 0;
4037 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4039 const int *foo = &x[0];
4042 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4043 typedef const int *iptr;
4047 { /* AIX XL C 1.02.0.0 rejects this saying
4048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4049 struct s { int j; const int *ap[3]; };
4050 struct s *b; b->j = 5;
4052 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4075 echo "$as_me: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4079 rm -f conftest.$ac_objext conftest.$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4082 echo "${ECHO_T}$ac_cv_c_const" >&6
4083 if test $ac_cv_c_const = no; then
4085 cat >>confdefs.h <<\_ACEOF
4091 echo "$as_me:$LINENO: checking for working volatile" >&5
4092 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4093 if test "${ac_cv_c_volatile+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4100 #ifdef F77_DUMMY_MAIN
4104 int F77_DUMMY_MAIN() { return 1; }
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_c_volatile=yes
4130 echo "$as_me: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4134 rm -f conftest.$ac_objext conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4137 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4138 if test $ac_cv_c_volatile = no; then
4140 cat >>confdefs.h <<\_ACEOF
4146 echo "$as_me:$LINENO: checking for inline" >&5
4147 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4148 if test "${ac_cv_c_inline+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 for ac_kw in inline __inline__ __inline; do
4153 cat >conftest.$ac_ext <<_ACEOF
4154 #line $LINENO "configure"
4155 #include "confdefs.h"
4157 static $ac_kw int static_foo () {return 0; }
4158 $ac_kw int foo () {return 0; }
4162 rm -f conftest.$ac_objext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_c_inline=$ac_kw; break
4176 echo "$as_me: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4179 rm -f conftest.$ac_objext conftest.$ac_ext
4183 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4184 echo "${ECHO_T}$ac_cv_c_inline" >&6
4185 case $ac_cv_c_inline in
4188 cat >>confdefs.h <<\_ACEOF
4192 *) cat >>confdefs.h <<_ACEOF
4193 #define inline $ac_cv_c_inline
4198 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4199 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4200 if test "${ac_cv_c_bigendian+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 # See if sys/param.h defines the BYTE_ORDER macro.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line $LINENO "configure"
4206 #include "confdefs.h"
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4210 #ifdef F77_DUMMY_MAIN
4214 int F77_DUMMY_MAIN() { return 1; }
4219 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 # It does; now see whether it defined to BIG_ENDIAN or not.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 #include "confdefs.h"
4243 #include <sys/types.h>
4244 #include <sys/param.h>
4246 #ifdef F77_DUMMY_MAIN
4250 int F77_DUMMY_MAIN() { return 1; }
4255 #if BYTE_ORDER != BIG_ENDIAN
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_c_bigendian=yes
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_c_bigendian=no
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4283 echo "$as_me: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 # It does not; compile a test program.
4286 if test "$cross_compiling" = yes; then
4287 # try to guess the endianess by grep'ing values into an object file
4288 ac_cv_c_bigendian=unknown
4289 cat >conftest.$ac_ext <<_ACEOF
4290 #line $LINENO "configure"
4291 #include "confdefs.h"
4292 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4293 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4294 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4295 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4296 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4297 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4298 #ifdef F77_DUMMY_MAIN
4302 int F77_DUMMY_MAIN() { return 1; }
4307 _ascii (); _ebcdic ();
4312 rm -f conftest.$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4325 ac_cv_c_bigendian=yes
4327 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4328 if test "$ac_cv_c_bigendian" = unknown; then
4329 ac_cv_c_bigendian=no
4331 # finding both strings is unlikely to happen, but who knows?
4332 ac_cv_c_bigendian=unknown
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 rm -f conftest.$ac_objext conftest.$ac_ext
4341 cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 #include "confdefs.h"
4347 /* Are we little or big endian? From Harbison&Steele. */
4351 char c[sizeof (long)];
4354 exit (u.c[sizeof (long) - 1] == 1);
4357 rm -f conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_c_bigendian=no
4370 echo "$as_me: program exited with status $ac_status" >&5
4371 echo "$as_me: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 ac_cv_c_bigendian=yes
4376 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4383 case $ac_cv_c_bigendian in
4386 cat >>confdefs.h <<\_ACEOF
4387 #define WORDS_BIGENDIAN 1
4393 { { echo "$as_me:$LINENO: error: unknown endianess
4394 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4395 echo "$as_me: error: unknown endianess
4396 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4397 { (exit 1); exit 1; }; } ;;
4400 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4401 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4402 if test "${ac_cv_c_long_double+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4407 #include "confdefs.h"
4409 long double foo = 0.0;
4410 #ifdef F77_DUMMY_MAIN
4414 int F77_DUMMY_MAIN() { return 1; }
4419 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4420 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4421 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_cv_c_long_double=yes
4442 echo "$as_me: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4444 ac_cv_c_long_double=no
4446 rm -f conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4449 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4450 if test $ac_cv_c_long_double = yes; then
4452 cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_LONG_DOUBLE 1
4461 echo "$as_me:$LINENO: checking for strerror" >&5
4462 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4463 if test "${ac_cv_func_strerror+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line $LINENO "configure"
4468 #include "confdefs.h"
4469 /* System header to define __stub macros and hopefully few prototypes,
4470 which can conflict with char strerror (); below. */
4472 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4481 #ifdef F77_DUMMY_MAIN
4485 int F77_DUMMY_MAIN() { return 1; }
4490 /* The GNU C library defines this for functions which it implements
4491 to always fail with ENOSYS. Some functions are actually named
4492 something starting with __ and the normal name is an alias. */
4493 #if defined (__stub_strerror) || defined (__stub___strerror)
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_func_strerror=yes
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 ac_cv_func_strerror=no
4521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4523 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4524 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4525 if test $ac_cv_func_strerror = yes; then
4528 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4529 echo "$as_me: error: \"need strerror function\"" >&2;}
4530 { (exit 1); exit 1; }; }
4538 ac_config_files="$ac_config_files $ac_output_file"
4539 ac_config_commands="$ac_config_commands default"
4540 cat >confcache <<\_ACEOF
4541 # This file is a shell script that caches the results of configure
4542 # tests run on this system so they can be shared between configure
4543 # scripts and configure runs, see configure's option --config-cache.
4544 # It is not useful on other systems. If it contains results you don't
4545 # want to keep, you may remove or edit it.
4547 # config.status only pays attention to the cache file if you give it
4548 # the --recheck option to rerun configure.
4550 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4556 # The following way of writing the cache mishandles newlines in values,
4557 # but we know of no workaround that is simple, portable, and efficient.
4558 # So, don't put newlines in cache variables' values.
4559 # Ultrix sh set writes to stderr and can't be redirected directly,
4560 # and sets the high bit in the cache file unless we assign to the vars.
4563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4565 # `set' does not quote correctly, so add quotes (double-quote
4566 # substitution turns \\\\ into \\, and sed turns \\ into \).
4569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4572 # `set' quotes correctly as required by POSIX, so do not add quotes.
4574 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4583 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4585 if cmp -s $cache_file confcache; then :; else
4586 if test -w $cache_file; then
4587 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4588 cat confcache >$cache_file
4590 echo "not updating unwritable cache $cache_file"
4595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4596 # Let make expand exec_prefix.
4597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4601 # trailing colons and then remove the whole line if VPATH becomes empty
4602 # (actually we leave an empty line to preserve line numbers).
4603 if test "x$srcdir" = x.; then
4604 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4605 s/:*\$(srcdir):*/:/;
4606 s/:*\${srcdir}:*/:/;
4608 s/^\([^=]*=[ ]*\):*/\1/;
4614 DEFS=-DHAVE_CONFIG_H
4617 : ${CONFIG_STATUS=./config.status}
4618 ac_clean_files_save=$ac_clean_files
4619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4620 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4621 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4622 cat >$CONFIG_STATUS <<_ACEOF
4624 # Generated by $as_me.
4625 # Run this file to recreate the current configuration.
4626 # Compiler output produced by configure, useful for debugging
4627 # configure, is in config.log if it exists.
4630 SHELL=\${CONFIG_SHELL-$SHELL}
4633 cat >>$CONFIG_STATUS <<\_ACEOF
4635 ## --------------------- ##
4636 ## M4sh Initialization. ##
4637 ## --------------------- ##
4639 # Be Bourne compatible
4640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4643 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4648 # Support unset when possible.
4649 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4655 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4656 { $as_unset LANG || test "${LANG+set}" != set; } ||
4657 { LANG=C; export LANG; }
4658 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4659 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4660 { LC_ALL=C; export LC_ALL; }
4661 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4662 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4663 { LC_TIME=C; export LC_TIME; }
4664 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4665 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4666 { LC_CTYPE=C; export LC_CTYPE; }
4667 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4668 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4669 { LANGUAGE=C; export LANGUAGE; }
4670 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4671 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4672 { LC_COLLATE=C; export LC_COLLATE; }
4673 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4674 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4675 { LC_NUMERIC=C; export LC_NUMERIC; }
4676 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4677 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4678 { LC_MESSAGES=C; export LC_MESSAGES; }
4681 # Name of the executable.
4682 as_me=`(basename "$0") 2>/dev/null ||
4683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4684 X"$0" : 'X\(//\)$' \| \
4685 X"$0" : 'X\(/\)$' \| \
4686 . : '\(.\)' 2>/dev/null ||
4688 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4689 /^X\/\(\/\/\)$/{ s//\1/; q; }
4690 /^X\/\(\/\).*/{ s//\1/; q; }
4693 # PATH needs CR, and LINENO needs CR and PATH.
4694 # Avoid depending upon Character Ranges.
4695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4698 as_cr_digits='0123456789'
4699 as_cr_alnum=$as_cr_Letters$as_cr_digits
4701 # The user is always right.
4702 if test "${PATH_SEPARATOR+set}" != set; then
4703 echo "#! /bin/sh" >conftest.sh
4704 echo "exit 0" >>conftest.sh
4705 chmod +x conftest.sh
4706 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4717 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4718 test "x$as_lineno_1" != "x$as_lineno_2" &&
4719 test "x$as_lineno_3" = "x$as_lineno_2" || {
4720 # Find who we are. Look in the path if we contain no path at all
4723 *[\\/]* ) as_myself=$0 ;;
4724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4734 # We did not find ourselves, most probably we were run as `sh COMMAND'
4735 # in which case we are not to be found in the path.
4736 if test "x$as_myself" = x; then
4739 if test ! -f "$as_myself"; then
4740 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4741 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4742 { (exit 1); exit 1; }; }
4744 case $CONFIG_SHELL in
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4750 test -z "$as_dir" && as_dir=.
4751 for as_base in sh bash ksh sh5; do
4754 if ("$as_dir/$as_base" -c '
4757 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4758 test "x$as_lineno_1" != "x$as_lineno_2" &&
4759 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4760 CONFIG_SHELL=$as_dir/$as_base
4762 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4770 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4771 # uniformly replaced by the line number. The first 'sed' inserts a
4772 # line-number line before each line; the second 'sed' does the real
4773 # work. The second script uses 'N' to pair each line-number line
4774 # with the numbered line, and appends trailing '-' during
4775 # substitution so that $LINENO is not a special case at line end.
4776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4777 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4778 sed '=' <$as_myself |
4783 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4786 s,^['$as_cr_digits']*\n,,
4788 chmod +x $as_me.lineno ||
4789 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4790 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4791 { (exit 1); exit 1; }; }
4793 # Don't try to exec as it changes $[0], causing all sort of problems
4794 # (the dirname of $[0] is not the place where we might find the
4795 # original and so on. Autoconf is especially sensible to this).
4797 # Exit status is that of the last command.
4802 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4803 *c*,-n*) ECHO_N= ECHO_C='
4805 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4806 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4809 if expr a : '\(a\)' >/dev/null 2>&1; then
4815 rm -f conf$$ conf$$.exe conf$$.file
4817 if ln -s conf$$.file conf$$ 2>/dev/null; then
4818 # We could just check for DJGPP; but this test a) works b) is more generic
4819 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4820 if test -f conf$$.exe; then
4821 # Don't use ln at all; we don't have any links
4826 elif ln conf$$.file conf$$ 2>/dev/null; then
4831 rm -f conf$$ conf$$.exe conf$$.file
4833 as_executable_p="test -f"
4835 # Sed expression to map a string onto a valid CPP name.
4836 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4838 # Sed expression to map a string onto a valid variable name.
4839 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4843 # We need space, tab and new line, in precisely that order.
4849 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4853 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4854 # report actual input values of CONFIG_FILES etc. instead of their
4855 # values after options handling. Logging --version etc. is OK.
4859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4860 ## Running $as_me. ##
4865 This file was extended by libfirm $as_me 0.3.0, which was
4866 generated by GNU Autoconf 2.53. Invocation command line was
4868 CONFIG_FILES = $CONFIG_FILES
4869 CONFIG_HEADERS = $CONFIG_HEADERS
4870 CONFIG_LINKS = $CONFIG_LINKS
4871 CONFIG_COMMANDS = $CONFIG_COMMANDS
4875 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4879 # Files that config.status was made for.
4880 if test -n "$ac_config_files"; then
4881 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4884 if test -n "$ac_config_headers"; then
4885 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4888 if test -n "$ac_config_links"; then
4889 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4892 if test -n "$ac_config_commands"; then
4893 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4896 cat >>$CONFIG_STATUS <<\_ACEOF
4899 \`$as_me' instantiates files from templates according to the
4900 current configuration.
4902 Usage: $0 [OPTIONS] [FILE]...
4904 -h, --help print this help, then exit
4905 -V, --version print version number, then exit
4906 -d, --debug don't remove temporary files
4907 --recheck update $as_me by reconfiguring in the same conditions
4908 --file=FILE[:TEMPLATE]
4909 instantiate the configuration file FILE
4910 --header=FILE[:TEMPLATE]
4911 instantiate the configuration header FILE
4913 Configuration files:
4916 Configuration headers:
4919 Configuration commands:
4922 Report bugs to <bug-autoconf@gnu.org>."
4925 cat >>$CONFIG_STATUS <<_ACEOF
4927 libfirm config.status 0.3.0
4928 configured by $0, generated by GNU Autoconf 2.53,
4929 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4931 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4932 Free Software Foundation, Inc.
4933 This config.status script is free software; the Free Software Foundation
4934 gives unlimited permission to copy, distribute and modify it."
4939 cat >>$CONFIG_STATUS <<\_ACEOF
4940 # If no file are specified by the user, then we need to provide default
4941 # value. By we need to know if files were specified by the user.
4947 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4948 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4950 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4954 *) # This is not an option, so the user has probably given explicit
4956 ac_need_defaults=false;;
4960 # Handling of the options.
4962 cat >>$CONFIG_STATUS <<_ACEOF
4963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4964 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4965 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4967 cat >>$CONFIG_STATUS <<\_ACEOF
4968 --version | --vers* | -V )
4969 echo "$ac_cs_version"; exit 0 ;;
4971 # Conflict between --help and --header
4972 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4973 Try \`$0 --help' for more information." >&5
4974 echo "$as_me: error: ambiguous option: $1
4975 Try \`$0 --help' for more information." >&2;}
4976 { (exit 1); exit 1; }; };;
4977 --help | --hel | -h )
4978 echo "$ac_cs_usage"; exit 0 ;;
4979 --debug | --d* | -d )
4981 --file | --fil | --fi | --f )
4983 CONFIG_FILES="$CONFIG_FILES $1"
4984 ac_need_defaults=false;;
4985 --header | --heade | --head | --hea )
4987 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4988 ac_need_defaults=false;;
4991 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4992 Try \`$0 --help' for more information." >&5
4993 echo "$as_me: error: unrecognized option: $1
4994 Try \`$0 --help' for more information." >&2;}
4995 { (exit 1); exit 1; }; } ;;
4997 *) ac_config_targets="$ac_config_targets $1" ;;
5009 cat >>$CONFIG_STATUS <<\_ACEOF
5010 for ac_config_target in $ac_config_targets
5012 case "$ac_config_target" in
5013 # Handling of arguments.
5014 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
5015 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5016 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5019 { (exit 1); exit 1; }; };;
5023 # If the user did not use the arguments to specify the items to instantiate,
5024 # then the envvar interface is used. Set only those that are not.
5025 # We use the long form for the default assignment because of an extremely
5026 # bizarre bug on SunOS 4.1.3.
5027 if $ac_need_defaults; then
5028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5033 # Create a temporary directory, and hook for its removal unless debugging.
5036 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5037 trap '{ (exit 1); exit 1; }' 1 2 13 15
5040 # Create a (secure) tmp directory for tmp files.
5043 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5044 test -n "$tmp" && test -d "$tmp"
5047 tmp=$TMPDIR/cs$$-$RANDOM
5048 (umask 077 && mkdir $tmp)
5051 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5052 { (exit 1); exit 1; }
5057 cat >>$CONFIG_STATUS <<_ACEOF
5060 # CONFIG_FILES section.
5063 # No need to generate the scripts if there are no CONFIG_FILES.
5064 # This happens for instance when ./config.status config.h
5065 if test -n "\$CONFIG_FILES"; then
5066 # Protect against being on the right side of a sed subst in config.status.
5067 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5068 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5069 s,@SHELL@,$SHELL,;t t
5070 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5071 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5072 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5073 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5074 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5075 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5076 s,@exec_prefix@,$exec_prefix,;t t
5077 s,@prefix@,$prefix,;t t
5078 s,@program_transform_name@,$program_transform_name,;t t
5079 s,@bindir@,$bindir,;t t
5080 s,@sbindir@,$sbindir,;t t
5081 s,@libexecdir@,$libexecdir,;t t
5082 s,@datadir@,$datadir,;t t
5083 s,@sysconfdir@,$sysconfdir,;t t
5084 s,@sharedstatedir@,$sharedstatedir,;t t
5085 s,@localstatedir@,$localstatedir,;t t
5086 s,@libdir@,$libdir,;t t
5087 s,@includedir@,$includedir,;t t
5088 s,@oldincludedir@,$oldincludedir,;t t
5089 s,@infodir@,$infodir,;t t
5090 s,@mandir@,$mandir,;t t
5091 s,@build_alias@,$build_alias,;t t
5092 s,@host_alias@,$host_alias,;t t
5093 s,@target_alias@,$target_alias,;t t
5095 s,@ECHO_C@,$ECHO_C,;t t
5096 s,@ECHO_N@,$ECHO_N,;t t
5097 s,@ECHO_T@,$ECHO_T,;t t
5099 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
5100 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
5101 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
5102 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
5103 s,@enable_firm_jni@,$enable_firm_jni,;t t
5104 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
5105 s,@disable_libiberty@,$disable_libiberty,;t t
5106 s,@enable_statistics@,$enable_statistics,;t t
5107 s,@enable_external_effects@,$enable_external_effects,;t t
5109 s,@CFLAGS@,$CFLAGS,;t t
5110 s,@LDFLAGS@,$LDFLAGS,;t t
5111 s,@CPPFLAGS@,$CPPFLAGS,;t t
5112 s,@ac_ct_CC@,$ac_ct_CC,;t t
5113 s,@EXEEXT@,$EXEEXT,;t t
5114 s,@OBJEXT@,$OBJEXT,;t t
5116 s,@ac_ct_LD@,$ac_ct_LD,;t t
5117 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
5120 s,@RANLIB@,$RANLIB,;t t
5121 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5126 s,@DOXYGEN@,$DOXYGEN,;t t
5128 s,@JAVAC@,$JAVAC,;t t
5129 s,@JAVAH@,$JAVAH,;t t
5135 cat >>$CONFIG_STATUS <<\_ACEOF
5136 # Split the substitutions into bite-sized pieces for seds with
5137 # small command number limits, like on Digital OSF/1 and HP-UX.
5139 ac_sed_frag=1 # Number of current file.
5140 ac_beg=1 # First line for current file.
5141 ac_end=$ac_max_sed_lines # Line after last line for current file.
5144 while $ac_more_lines; do
5145 if test $ac_beg -gt 1; then
5146 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5148 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5150 if test ! -s $tmp/subs.frag; then
5153 # The purpose of the label and of the branching condition is to
5154 # speed up the sed processing (if there are no `@' at all, there
5155 # is no need to browse any of the substitutions).
5156 # These are the two extra sed commands mentioned above.
5158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5159 if test -z "$ac_sed_cmds"; then
5160 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5162 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5164 ac_sed_frag=`expr $ac_sed_frag + 1`
5166 ac_end=`expr $ac_end + $ac_max_sed_lines`
5169 if test -z "$ac_sed_cmds"; then
5172 fi # test -n "$CONFIG_FILES"
5175 cat >>$CONFIG_STATUS <<\_ACEOF
5176 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5179 - | *:- | *:-:* ) # input from stdin
5181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5185 * ) ac_file_in=$ac_file.in ;;
5188 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5191 X"$ac_file" : 'X\(//\)[^/]' \| \
5192 X"$ac_file" : 'X\(//\)$' \| \
5193 X"$ac_file" : 'X\(/\)' \| \
5194 . : '\(.\)' 2>/dev/null ||
5196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5198 /^X\(\/\/\)$/{ s//\1/; q; }
5199 /^X\(\/\).*/{ s//\1/; q; }
5202 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5206 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5207 case $as_mkdir_dir in
5208 # Skip DOS drivespec
5209 ?:) as_incr_dir=$as_mkdir_dir ;;
5211 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5212 test -d "$as_incr_dir" ||
5213 mkdir "$as_incr_dir" ||
5214 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5215 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5216 { (exit 1); exit 1; }; }
5223 if test "$ac_dir" != .; then
5224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5225 # A "../" for each directory in $ac_dir_suffix.
5226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5228 ac_dir_suffix= ac_top_builddir=
5232 .) # No --srcdir option. We are building in place.
5234 if test -z "$ac_top_builddir"; then
5237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5239 [\\/]* | ?:[\\/]* ) # Absolute path.
5240 ac_srcdir=$srcdir$ac_dir_suffix;
5241 ac_top_srcdir=$srcdir ;;
5243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5246 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5248 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5249 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5250 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5251 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5259 if test x"$ac_file" != x-; then
5260 { echo "$as_me:$LINENO: creating $ac_file" >&5
5261 echo "$as_me: creating $ac_file" >&6;}
5264 # Let's still pretend it is `configure' which instantiates (i.e., don't
5265 # use $as_me), people would be surprised to read:
5266 # /* config.h. Generated by config.status. */
5267 if test x"$ac_file" = x-; then
5270 configure_input="$ac_file. "
5272 configure_input=$configure_input"Generated from `echo $ac_file_in |
5273 sed 's,.*/,,'` by configure."
5275 # First look for the input files in the build tree, otherwise in the
5277 ac_file_inputs=`IFS=:
5278 for f in $ac_file_in; do
5280 -) echo $tmp/stdin ;;
5282 # Absolute (can't be DOS-style, as IFS=:)
5283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5284 echo "$as_me: error: cannot find input file: $f" >&2;}
5285 { (exit 1); exit 1; }; }
5288 if test -f "$f"; then
5291 elif test -f "$srcdir/$f"; then
5296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5297 echo "$as_me: error: cannot find input file: $f" >&2;}
5298 { (exit 1); exit 1; }; }
5301 done` || { (exit 1); exit 1; }
5303 cat >>$CONFIG_STATUS <<_ACEOF
5307 cat >>$CONFIG_STATUS <<\_ACEOF
5309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5310 s,@configure_input@,$configure_input,;t t
5311 s,@srcdir@,$ac_srcdir,;t t
5312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5313 s,@top_srcdir@,$ac_top_srcdir,;t t
5314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5315 s,@builddir@,$ac_builddir,;t t
5316 s,@abs_builddir@,$ac_abs_builddir,;t t
5317 s,@top_builddir@,$ac_top_builddir,;t t
5318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5319 s,@INSTALL@,$ac_INSTALL,;t t
5320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5322 if test x"$ac_file" != x-; then
5323 mv $tmp/out $ac_file
5331 cat >>$CONFIG_STATUS <<\_ACEOF
5334 # CONFIG_HEADER section.
5337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5340 # ac_d sets the value in "#define NAME VALUE" lines.
5341 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5342 ac_dB='[ ].*$,\1#\2'
5345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5346 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5347 ac_uB='$,\1#\2define\3'
5351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5354 - | *:- | *:-:* ) # input from stdin
5356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5360 * ) ac_file_in=$ac_file.in ;;
5363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5364 echo "$as_me: creating $ac_file" >&6;}
5366 # First look for the input files in the build tree, otherwise in the
5368 ac_file_inputs=`IFS=:
5369 for f in $ac_file_in; do
5371 -) echo $tmp/stdin ;;
5373 # Absolute (can't be DOS-style, as IFS=:)
5374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5375 echo "$as_me: error: cannot find input file: $f" >&2;}
5376 { (exit 1); exit 1; }; }
5379 if test -f "$f"; then
5382 elif test -f "$srcdir/$f"; then
5387 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5388 echo "$as_me: error: cannot find input file: $f" >&2;}
5389 { (exit 1); exit 1; }; }
5392 done` || { (exit 1); exit 1; }
5393 # Remove the trailing spaces.
5394 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5398 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5399 # `conftest.undefs', that substitutes the proper values into
5400 # config.h.in to produce config.h. The first handles `#define'
5401 # templates, and the second `#undef' templates.
5402 # And first: Protect against being on the right side of a sed subst in
5403 # config.status. Protect against being in an unquoted here document
5405 rm -f conftest.defines conftest.undefs
5406 # Using a here document instead of a string reduces the quoting nightmare.
5407 # Putting comments in sed scripts is not portable.
5409 # `end' is used to avoid that the second main sed command (meant for
5410 # 0-ary CPP macros) applies to n-ary macro definitions.
5411 # See the Autoconf documentation for `clear'.
5412 cat >confdef2sed.sed <<\_ACEOF
5417 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5419 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5422 # If some macros were called several times there might be several times
5423 # the same #defines, which is useless. Nevertheless, we may not want to
5424 # sort them, since we want the *last* AC-DEFINE to be honored.
5425 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5426 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5427 rm -f confdef2sed.sed
5429 # This sed command replaces #undef with comments. This is necessary, for
5430 # example, in the case of _POSIX_SOURCE, which is predefined and required
5431 # on some systems where configure will not decide to define it.
5432 cat >>conftest.undefs <<\_ACEOF
5433 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5436 # Break up conftest.defines because some shells have a limit on the size
5437 # of here documents, and old seds have small limits too (100 cmds).
5438 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5439 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5440 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5441 echo ' :' >>$CONFIG_STATUS
5443 while grep . conftest.defines >/dev/null
5445 # Write a limited-size here document to $tmp/defines.sed.
5446 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5447 # Speed up: don't consider the non `#define' lines.
5448 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5449 # Work around the forget-to-reset-the-flag bug.
5450 echo 't clr' >>$CONFIG_STATUS
5451 echo ': clr' >>$CONFIG_STATUS
5452 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5454 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5458 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5459 rm -f conftest.defines
5460 mv conftest.tail conftest.defines
5462 rm -f conftest.defines
5463 echo ' fi # egrep' >>$CONFIG_STATUS
5464 echo >>$CONFIG_STATUS
5466 # Break up conftest.undefs because some shells have a limit on the size
5467 # of here documents, and old seds have small limits too (100 cmds).
5468 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5470 while grep . conftest.undefs >/dev/null
5472 # Write a limited-size here document to $tmp/undefs.sed.
5473 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5474 # Speed up: don't consider the non `#undef'
5475 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5476 # Work around the forget-to-reset-the-flag bug.
5477 echo 't clr' >>$CONFIG_STATUS
5478 echo ': clr' >>$CONFIG_STATUS
5479 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5481 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5485 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5486 rm -f conftest.undefs
5487 mv conftest.tail conftest.undefs
5489 rm -f conftest.undefs
5491 cat >>$CONFIG_STATUS <<\_ACEOF
5492 # Let's still pretend it is `configure' which instantiates (i.e., don't
5493 # use $as_me), people would be surprised to read:
5494 # /* config.h. Generated by config.status. */
5495 if test x"$ac_file" = x-; then
5496 echo "/* Generated by configure. */" >$tmp/config.h
5498 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5500 cat $tmp/in >>$tmp/config.h
5502 if test x"$ac_file" != x-; then
5503 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5504 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5505 echo "$as_me: $ac_file is unchanged" >&6;}
5507 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5509 X"$ac_file" : 'X\(//\)[^/]' \| \
5510 X"$ac_file" : 'X\(//\)$' \| \
5511 X"$ac_file" : 'X\(/\)' \| \
5512 . : '\(.\)' 2>/dev/null ||
5514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5516 /^X\(\/\/\)$/{ s//\1/; q; }
5517 /^X\(\/\).*/{ s//\1/; q; }
5520 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5524 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5525 case $as_mkdir_dir in
5526 # Skip DOS drivespec
5527 ?:) as_incr_dir=$as_mkdir_dir ;;
5529 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5530 test -d "$as_incr_dir" ||
5531 mkdir "$as_incr_dir" ||
5532 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5533 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5534 { (exit 1); exit 1; }; }
5540 mv $tmp/config.h $ac_file
5548 cat >>$CONFIG_STATUS <<\_ACEOF
5551 # CONFIG_COMMANDS section.
5553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5554 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5555 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5556 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5558 X"$ac_dest" : 'X\(//\)[^/]' \| \
5559 X"$ac_dest" : 'X\(//\)$' \| \
5560 X"$ac_dest" : 'X\(/\)' \| \
5561 . : '\(.\)' 2>/dev/null ||
5563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5565 /^X\(\/\/\)$/{ s//\1/; q; }
5566 /^X\(\/\).*/{ s//\1/; q; }
5570 if test "$ac_dir" != .; then
5571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5572 # A "../" for each directory in $ac_dir_suffix.
5573 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5575 ac_dir_suffix= ac_top_builddir=
5579 .) # No --srcdir option. We are building in place.
5581 if test -z "$ac_top_builddir"; then
5584 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5586 [\\/]* | ?:[\\/]* ) # Absolute path.
5587 ac_srcdir=$srcdir$ac_dir_suffix;
5588 ac_top_srcdir=$srcdir ;;
5590 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5591 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5593 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5595 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5596 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5597 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5598 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5601 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5602 echo "$as_me: executing $ac_dest commands" >&6;}
5604 default ) touch stamp-h ;;
5609 cat >>$CONFIG_STATUS <<\_ACEOF
5611 { (exit 0); exit 0; }
5613 chmod +x $CONFIG_STATUS
5614 ac_clean_files=$ac_clean_files_save
5617 # configure is writing to config.log, and then calls config.status.
5618 # config.status does its own redirection, appending to config.log.
5619 # Unfortunately, on DOS this fails, as config.log is still kept open
5620 # by configure, so config.status won't be able to write to it; its
5621 # output is simply discarded. So we exec the FD to /dev/null,
5622 # effectively closing config.log, so it can be properly (re)opened and
5623 # appended to by config.status. When coming back to configure, we
5624 # need to make the FD available again.
5625 if test "$no_create" != yes; then
5628 $SHELL $CONFIG_STATUS || ac_cs_success=false
5630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5631 # would make configure fail if this is the last instruction.
5632 $ac_cs_success || { (exit 1); exit 1; }
5636 gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h