2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.56 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libfirm'
269 PACKAGE_TARNAME='libfirm'
270 PACKAGE_VERSION='0.3.0'
271 PACKAGE_STRING='libfirm 0.3.0'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libfirm_conf_env enable_debug_libfirm enable_gcc_inline enable_profile_libfirm enable_auto_documentation enable_firm_jni disable_libiberty CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S DOXYGEN DOT JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-debug enable assertions and additional debugging routines
845 --enable-gcc_inline enable gcc inline C-extension
846 --enable-profile enable profiling
847 --enable-autodoc enable auto documentation
848 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
849 --disable-libiberty disable own libiberty parts
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includedir=add colon seperated list of directories to include search path
855 --with-libdir=add colon seperated list of directories to linker search path
857 Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 ac_dir_suffix= ac_top_builddir=
888 .) # No --srcdir option. We are building in place.
890 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
931 libfirm configure 0.3.0
932 generated by GNU Autoconf 2.56
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by libfirm $as_me 0.3.0, which was
947 generated by GNU Autoconf 2.56. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1006 ac_must_keep_next=false
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035 -* ) ac_must_keep_next=true ;;
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1064 # The following way of writing the cache mishandles newlines in values,
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1087 for ac_var in $ac_subst_vars
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1094 if test -n "$ac_subst_files"; then
1101 for ac_var in $ac_subst_files
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -s confdefs.h; then
1116 sed "/^$/d" confdefs.h | sort
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1123 rm -f core core.* *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1199 # Check that the precious variables saved in the cache have kept the same
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1284 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1285 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1286 firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
1288 ac_config_headers="$ac_config_headers config.h"
1291 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1295 # Check whether --with-includedir or --without-includedir was given.
1296 if test "${with_includedir+set}" = set; then
1297 withval="$with_includedir"
1298 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1304 # Check whether --with-libdir or --without-libdir was given.
1305 if test "${with_libdir+set}" = set; then
1306 withval="$with_libdir"
1307 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1314 # Check whether --enable-debug or --disable-debug was given.
1315 if test "${enable_debug+set}" = set; then
1316 enableval="$enable_debug"
1317 if test "$enableval" = yes; then
1318 cat >>confdefs.h <<\_ACEOF
1319 #define DEBUG_libfirm 1
1323 cat >>confdefs.h <<\_ACEOF
1331 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1332 if test "${enable_gcc_inline+set}" = set; then
1333 enableval="$enable_gcc_inline"
1334 if test "$enableval" = yes; then
1335 cat >>confdefs.h <<\_ACEOF
1336 #define USE_GCC_INLINE 1
1344 # Check whether --enable-profile or --disable-profile was given.
1345 if test "${enable_profile+set}" = set; then
1346 enableval="$enable_profile"
1347 if test "$enableval"=yes; then
1348 enable_profile_libfirm=yes
1351 enable_profile_libfirm=no
1355 # Check whether --enable-autodoc or --disable-autodoc was given.
1356 if test "${enable_autodoc+set}" = set; then
1357 enableval="$enable_autodoc"
1358 if test "$enableval"=yes; then
1359 enable_auto_documentation=yes
1362 enable_auto_documentation=no
1367 # Check whether --enable-firmjni or --disable-firmjni was given.
1368 if test "${enable_firmjni+set}" = set; then
1369 enableval="$enable_firmjni"
1370 if test "$enableval"=yes; then
1378 # Check whether --enable-libiberty or --disable-libiberty was given.
1379 if test "${enable_libiberty+set}" = set; then
1380 enableval="$enable_libiberty"
1381 if test "$enableval"=yes; then
1382 disable_libiberty_=yes
1385 disable_libiberty=no
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 if test -n "$CC"; then
1425 echo "$as_me:$LINENO: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1433 if test -z "$ac_cv_prog_CC"; then
1435 # Extract the first word of "gcc", so it can be a program name with args.
1436 set dummy gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_CC="${ac_tool_prefix}cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 if test -n "$CC"; then
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1513 if test -z "$ac_cv_prog_CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_ac_ct_CC="cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1576 ac_prog_rejected=yes
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1610 if test -z "$CC"; then
1611 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$CC" && break
1652 if test -z "$CC"; then
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$ac_ct_CC" && break
1700 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: no acceptable C compiler found in \$PATH
1703 See \`config.log' for more details." >&2;}
1704 { (exit 1); exit 1; }; }
1706 # Provide some information about the compiler.
1707 echo "$as_me:$LINENO:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line $LINENO "configure"
1730 cat confdefs.h >>conftest.$ac_ext
1731 cat >>conftest.$ac_ext <<_ACEOF
1732 /* end confdefs.h. */
1742 ac_clean_files_save=$ac_clean_files
1743 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1744 # Try to create an executable without -o first, disregard a.out.
1745 # It will help us diagnose broken compilers, and finding out an intuition
1747 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1748 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1749 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1751 (eval $ac_link_default) 2>&5
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }; then
1755 # Find the output, starting from the most likely. This scheme is
1756 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1759 # Be careful to initialize this variable, since it used to be cached.
1760 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1762 # b.out is created by i960 compilers.
1763 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1765 test -f "$ac_file" || continue
1767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1770 # This is the source file.
1773 # We found the default executable, but exeext='' is most
1777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778 # FIXME: I believe we export ac_cv_exeext for Libtool,
1779 # but it would be cool to find out if it's true. Does anybody
1780 # maintain Libtool? --akim.
1788 echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: C compiler cannot create executables
1794 See \`config.log' for more details." >&2;}
1795 { (exit 77); exit 77; }; }
1798 ac_exeext=$ac_cv_exeext
1799 echo "$as_me:$LINENO: result: $ac_file" >&5
1800 echo "${ECHO_T}$ac_file" >&6
1802 # Check the compiler produces executables we can run. If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1807 # If not cross compiling, check that we can run a simple program.
1808 if test "$cross_compiling" != yes; then
1809 if { ac_try='./$ac_file'
1810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; }; then
1817 if test "$cross_compiling" = maybe; then
1820 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1821 If you meant to cross compile, use \`--host'.
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'.
1825 See \`config.log' for more details." >&2;}
1826 { (exit 1); exit 1; }; }
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1833 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1834 ac_clean_files=$ac_clean_files_save
1835 # Check the compiler produces executables we can run. If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1838 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1839 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1840 echo "${ECHO_T}$cross_compiling" >&6
1842 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1843 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1845 (eval $ac_link) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1850 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1851 # work properly (i.e., refer to `conftest.exe'), while it won't with
1853 for ac_file in conftest.exe conftest conftest.*; do
1854 test -f "$ac_file" || continue
1856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1864 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1867 See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1871 rm -f conftest$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1873 echo "${ECHO_T}$ac_cv_exeext" >&6
1875 rm -f conftest.$ac_ext
1876 EXEEXT=$ac_cv_exeext
1878 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1879 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1880 if test "${ac_cv_objext+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1887 cat confdefs.h >>conftest.$ac_ext
1888 cat >>conftest.$ac_ext <<_ACEOF
1889 /* end confdefs.h. */
1899 rm -f conftest.o conftest.obj
1900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; then
1905 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1913 echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1919 See \`config.log' for more details." >&2;}
1920 { (exit 1); exit 1; }; }
1923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1925 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1926 echo "${ECHO_T}$ac_cv_objext" >&6
1927 OBJEXT=$ac_cv_objext
1929 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1953 rm -f conftest.$ac_objext
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try='test -s conftest.$ac_objext'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1976 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1978 GCC=`test $ac_compiler_gnu = yes && echo yes`
1979 ac_test_CFLAGS=${CFLAGS+set}
1980 ac_save_CFLAGS=$CFLAGS
1982 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1984 if test "${ac_cv_prog_cc_g+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 cat >conftest.$ac_ext <<_ACEOF
1988 #line $LINENO "configure"
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2017 echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2022 rm -f conftest.$ac_objext conftest.$ac_ext
2024 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2026 if test "$ac_test_CFLAGS" = set; then
2027 CFLAGS=$ac_save_CFLAGS
2028 elif test $ac_cv_prog_cc_g = yes; then
2029 if test "$GCC" = yes; then
2035 if test "$GCC" = yes; then
2041 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2042 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2043 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 ac_cv_prog_cc_stdc=no
2048 cat >conftest.$ac_ext <<_ACEOF
2049 #line $LINENO "configure"
2052 cat confdefs.h >>conftest.$ac_ext
2053 cat >>conftest.$ac_ext <<_ACEOF
2054 /* end confdefs.h. */
2057 #include <sys/types.h>
2058 #include <sys/stat.h>
2059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2060 struct buf { int x; };
2061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062 static char *e (p, i)
2068 static char *f (char * (*g) (char **, int), char **p, ...)
2073 s = g (p, va_arg (v,int));
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX -qlanglvl=ansi
2094 # Ultrix and OSF/1 -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions -Aa -D_HPUX_SOURCE
2097 # SVR4 -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2113 ac_cv_prog_cc_stdc=$ac_arg
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2120 rm -f conftest.$ac_objext
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2127 case "x$ac_cv_prog_cc_stdc" in
2129 echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2132 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134 CC="$CC $ac_cv_prog_cc_stdc" ;;
2137 # Some people use a C++ compiler to compile C. Since we use `exit',
2138 # in C++ we need to declare it. In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 for ac_declaration in \
2160 '#include <stdlib.h>' \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h. */
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2204 cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.$ac_objext conftest.$ac_ext
2241 if test -n "$ac_declaration"; then
2242 echo '#ifdef __cplusplus' >>confdefs.h
2243 echo $ac_declaration >>confdefs.h
2244 echo '#endif' >>confdefs.h
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 if test -z "$LD"; then
2262 if test -n "$ac_tool_prefix"; then
2263 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2264 set dummy ${ac_tool_prefix}ld; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_LD+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 if test -n "$LD"; then
2271 ac_cv_prog_LD="$LD" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 ac_cv_prog_LD="${ac_tool_prefix}ld"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 if test -n "$LD"; then
2291 echo "$as_me:$LINENO: result: $LD" >&5
2292 echo "${ECHO_T}$LD" >&6
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2299 if test -z "$ac_cv_prog_LD"; then
2301 # Extract the first word of "ld", so it can be a program name with args.
2302 set dummy ld; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$ac_ct_LD"; then
2309 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 ac_cv_prog_ac_ct_LD="ld"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2328 if test -n "$ac_ct_LD"; then
2329 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2330 echo "${ECHO_T}$ac_ct_LD" >&6
2332 echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2343 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2344 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2345 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 libfirm_cv_prog_ld_r=no
2351 cat > conftest.$ac_ext <<EOF
2352 int foo() { return 0; }
2354 if eval $ac_compile && mv conftest.o conftest2.o; then
2355 cat > conftest.$ac_ext <<EOF
2357 int main() { return foo(); }
2359 if eval $ac_compile; then
2360 if $LD -r -o conftest conftest.o conftest2.o; then
2361 libfirm_cv_prog_ld_r=yes
2368 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2369 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2372 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2373 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2374 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2375 { (exit 1); exit 1; }; }
2378 # Extract the first word of "ar", so it can be a program name with args.
2379 set dummy ar; 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_AR+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$AR"; then
2386 ac_cv_prog_AR="$AR" # 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_AR=""ar""
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2406 if test -n "$AR"; then
2407 echo "$as_me:$LINENO: result: $AR" >&5
2408 echo "${ECHO_T}$AR" >&6
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2414 if test "$AR" != "ar"; then
2415 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2416 echo "$as_me: error: need ar for creating archives" >&2;}
2417 { (exit 1); exit 1; }; }
2420 # Extract the first word of "tar", so it can be a program name with args.
2421 set dummy tar; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_TAR+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$TAR"; then
2428 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_TAR=""tar""
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2448 if test -n "$TAR"; then
2449 echo "$as_me:$LINENO: result: $TAR" >&5
2450 echo "${ECHO_T}$TAR" >&6
2452 echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2456 if test "$TAR" != "tar"; then
2457 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2458 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2459 { (exit 1); exit 1; }; }
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_RANLIB+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$RANLIB"; then
2472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 RANLIB=$ac_cv_prog_RANLIB
2491 if test -n "$RANLIB"; then
2492 echo "$as_me:$LINENO: result: $RANLIB" >&5
2493 echo "${ECHO_T}$RANLIB" >&6
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2500 if test -z "$ac_cv_prog_RANLIB"; then
2501 ac_ct_RANLIB=$RANLIB
2502 # Extract the first word of "ranlib", so it can be a program name with args.
2503 set dummy ranlib; ac_word=$2
2504 echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$ac_ct_RANLIB"; then
2510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_RANLIB="ranlib"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2530 if test -n "$ac_ct_RANLIB"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2532 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 RANLIB=$ac_ct_RANLIB
2540 RANLIB="$ac_cv_prog_RANLIB"
2545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2546 if test -f $ac_dir/install-sh; then
2548 ac_install_sh="$ac_aux_dir/install-sh -c"
2550 elif test -f $ac_dir/install.sh; then
2552 ac_install_sh="$ac_aux_dir/install.sh -c"
2554 elif test -f $ac_dir/shtool; then
2556 ac_install_sh="$ac_aux_dir/shtool install -c"
2560 if test -z "$ac_aux_dir"; then
2561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2563 { (exit 1); exit 1; }; }
2565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2569 # Find a good install program. We prefer a C program (faster),
2570 # so one script is as good as another. But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2582 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2583 if test -z "$INSTALL"; then
2584 if test "${ac_cv_path_install+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 # Account for people who put trailing slashes in PATH elements.
2594 ./ | .// | /cC/* | \
2595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL=$ac_cv_path_install
2628 # As a last resort, use the slow shell script. We don't cache a
2629 # path for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the path is relative.
2632 INSTALL=$ac_install_sh
2635 echo "$as_me:$LINENO: result: $INSTALL" >&5
2636 echo "${ECHO_T}$INSTALL" >&6
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2647 touch tmp-install.a tmp-install.b
2648 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2649 INSTALL="$INSTALL -C"
2651 rm tmp-install.a tmp-install.b
2654 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2657 if test "$LN_S" = "ln -s"; then
2658 echo "$as_me:$LINENO: result: yes" >&5
2659 echo "${ECHO_T}yes" >&6
2661 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2662 echo "${ECHO_T}no, using $LN_S" >&6
2666 if test "$enable_auto_documentation" = yes; then
2667 # Extract the first word of "doxygen", so it can be a program name with args.
2668 set dummy doxygen; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$DOXYGEN"; then
2675 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_DOXYGEN=""doxygen""
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2694 DOXYGEN=$ac_cv_prog_DOXYGEN
2695 if test -n "$DOXYGEN"; then
2696 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2697 echo "${ECHO_T}$DOXYGEN" >&6
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2703 if test "$DOXYGEN" != "doxygen"; then
2704 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2705 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2706 { (exit 1); exit 1; }; }
2708 # Extract the first word of "dot", so it can be a program name with args.
2709 set dummy dot; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_DOT+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$DOT"; then
2716 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_DOT=""dot""
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2736 if test -n "$DOT"; then
2737 echo "$as_me:$LINENO: result: $DOT" >&5
2738 echo "${ECHO_T}$DOT" >&6
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2744 if test "$DOT" != "dot"; then
2745 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2746 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2747 { (exit 1); exit 1; }; }
2751 if test "$enable_firm_jni" = yes; then
2752 # Extract the first word of "javac", so it can be a program name with args.
2753 set dummy javac; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_JAVAC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$JAVAC"; then
2760 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_JAVAC=""javac""
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2779 JAVAC=$ac_cv_prog_JAVAC
2780 if test -n "$JAVAC"; then
2781 echo "$as_me:$LINENO: result: $JAVAC" >&5
2782 echo "${ECHO_T}$JAVAC" >&6
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2788 if test "$JAVAC" != "javac"; then
2789 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2790 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2791 { (exit 1); exit 1; }; }
2793 # Extract the first word of "javah", so it can be a program name with args.
2794 set dummy javah; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_JAVAH+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$JAVAH"; then
2801 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_JAVAH=""javah""
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2820 JAVAH=$ac_cv_prog_JAVAH
2821 if test -n "$JAVAH"; then
2822 echo "$as_me:$LINENO: result: $JAVAH" >&5
2823 echo "${ECHO_T}$JAVAH" >&6
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2829 if test "$JAVAH" != "javah"; then
2830 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2831 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2832 { (exit 1); exit 1; }; }
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2845 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2846 # On Suns, sometimes $CPP names a directory.
2847 if test -n "$CPP" && test -d "$CPP"; then
2850 if test -z "$CPP"; then
2851 if test "${ac_cv_prog_CPP+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 # Double quotes because CPP needs to be expanded
2855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2858 for ac_c_preproc_warn_flag in '' yes
2860 # Use a header file that comes with gcc, so configuring glibc
2861 # with a fresh cross-compiler works.
2862 # On the NeXT, cc -E runs the code through the compiler's parser,
2863 # not just through cpp. "Syntax error" is here to catch this case.
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2890 if test -z "$ac_cpp_err"; then
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 # Broken: fails on valid input.
2899 rm -f conftest.err conftest.$ac_ext
2901 # OK, works on sane cases. Now check whether non-existent headers
2902 # can be detected and how.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1 >conftest.err
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2928 if test -z "$ac_cpp_err"; then
2929 # Broken: success on invalid input.
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 # Passes both tests.
2939 rm -f conftest.err conftest.$ac_ext
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2956 echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2966 #line $LINENO "configure"
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } >/dev/null; then
2983 if test -s conftest.err; then
2984 ac_cpp_err=$ac_c_preproc_warn_flag
2991 if test -z "$ac_cpp_err"; then
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 # Broken: fails on valid input.
3000 rm -f conftest.err conftest.$ac_ext
3002 # OK, works on sane cases. Now check whether non-existent headers
3003 # can be detected and how.
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <ac_nonexistent.h>
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3029 if test -z "$ac_cpp_err"; then
3030 # Broken: success on invalid input.
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Passes both tests.
3040 rm -f conftest.err conftest.$ac_ext
3043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 rm -f conftest.err conftest.$ac_ext
3045 if $ac_preproc_ok; then
3048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3051 See \`config.log' for more details." >&2;}
3052 { (exit 1); exit 1; }; }
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 echo "$as_me:$LINENO: checking for egrep" >&5
3063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3064 if test "${ac_cv_prog_egrep+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3068 then ac_cv_prog_egrep='grep -E'
3069 else ac_cv_prog_egrep='egrep'
3072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3074 EGREP=$ac_cv_prog_egrep
3077 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3079 if test "${ac_cv_header_stdc+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3083 #line $LINENO "configure"
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -s conftest.$ac_objext'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 ac_cv_header_stdc=yes
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cv_header_stdc=no
3121 rm -f conftest.$ac_objext conftest.$ac_ext
3123 if test $ac_cv_header_stdc = yes; then
3124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3125 cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3136 $EGREP "memchr" >/dev/null 2>&1; then
3139 ac_cv_header_stdc=no
3145 if test $ac_cv_header_stdc = yes; then
3146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158 $EGREP "free" >/dev/null 2>&1; then
3161 ac_cv_header_stdc=no
3167 if test $ac_cv_header_stdc = yes; then
3168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3169 if test "$cross_compiling" = yes; then
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3180 #if ((' ' & 0x0FF) == 0x020)
3181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3184 # define ISLOWER(c) \
3185 (('a' <= (c) && (c) <= 'i') \
3186 || ('j' <= (c) && (c) <= 'r') \
3187 || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3196 for (i = 0; i < 256; i++)
3197 if (XOR (islower (i), ISLOWER (i))
3198 || toupper (i) != TOUPPER (i))
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205 (eval $ac_link) 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3221 ac_cv_header_stdc=no
3223 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3227 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3228 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3229 if test $ac_cv_header_stdc = yes; then
3231 cat >>confdefs.h <<\_ACEOF
3232 #define STDC_HEADERS 1
3239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3250 inttypes.h stdint.h unistd.h
3252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3253 echo "$as_me:$LINENO: checking for $ac_header" >&5
3254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 $ac_includes_default
3267 #include <$ac_header>
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 eval "$as_ac_Header=yes"
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 eval "$as_ac_Header=no"
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3293 cat >>confdefs.h <<_ACEOF
3294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3303 for ac_header in math.h
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307 echo "$as_me:$LINENO: checking for $ac_header" >&5
3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315 # Is the header compilable?
3316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 $ac_includes_default
3326 #include <$ac_header>
3328 rm -f conftest.$ac_objext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_header_compiler=yes
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 ac_header_compiler=no
3347 rm -f conftest.$ac_objext conftest.$ac_ext
3348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3349 echo "${ECHO_T}$ac_header_compiler" >&6
3351 # Is the header present?
3352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361 #include <$ac_header>
3363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } >/dev/null; then
3371 if test -s conftest.err; then
3372 ac_cpp_err=$ac_c_preproc_warn_flag
3379 if test -z "$ac_cpp_err"; then
3380 ac_header_preproc=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_header_preproc=no
3387 rm -f conftest.err conftest.$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3389 echo "${ECHO_T}$ac_header_preproc" >&6
3391 # So? What about this header?
3392 case $ac_header_compiler:$ac_header_preproc in
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 ## ------------------------------------ ##
3401 ## Report this to bug-autoconf@gnu.org. ##
3402 ## ------------------------------------ ##
3405 sed "s/^/$as_me: WARNING: /" >&2
3408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3416 ## ------------------------------------ ##
3417 ## Report this to bug-autoconf@gnu.org. ##
3418 ## ------------------------------------ ##
3421 sed "s/^/$as_me: WARNING: /" >&2
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 eval "$as_ac_Header=$ac_header_preproc"
3431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436 cat >>confdefs.h <<_ACEOF
3437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3439 ac_math_headers="yes"
3441 ac_math_headers="no"
3446 if test "$ac_math_headers" != yes; then
3447 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3448 echo "$as_me: error: \"math header file not found\"" >&2;}
3449 { (exit 1); exit 1; }; }
3453 #dnl check for the gnu multiprecission (gmp) header file
3455 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3456 #if test "$ac_gmp_headers" != yes; then
3457 # dnl gmp header not found.
3458 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3465 for ac_header in obstack.h
3467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469 echo "$as_me:$LINENO: checking for $ac_header" >&5
3470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3477 # Is the header compilable?
3478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3481 #line $LINENO "configure"
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 $ac_includes_default
3488 #include <$ac_header>
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_header_compiler=yes
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_header_compiler=no
3509 rm -f conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3511 echo "${ECHO_T}$ac_header_compiler" >&6
3513 # Is the header present?
3514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <$ac_header>
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3541 if test -z "$ac_cpp_err"; then
3542 ac_header_preproc=yes
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_header_preproc=no
3549 rm -f conftest.err conftest.$ac_ext
3550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3551 echo "${ECHO_T}$ac_header_preproc" >&6
3553 # So? What about this header?
3554 case $ac_header_compiler:$ac_header_preproc in
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3562 ## ------------------------------------ ##
3563 ## Report this to bug-autoconf@gnu.org. ##
3564 ## ------------------------------------ ##
3567 sed "s/^/$as_me: WARNING: /" >&2
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3583 sed "s/^/$as_me: WARNING: /" >&2
3586 echo "$as_me:$LINENO: checking for $ac_header" >&5
3587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 eval "$as_ac_Header=$ac_header_preproc"
3593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3598 cat >>confdefs.h <<_ACEOF
3599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 ac_obstack_headers="yes"
3603 ac_obstack_headers="no"
3608 if test "$ac_obstack_headers" != yes; then
3609 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3610 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3611 { (exit 1); exit 1; }; }
3616 if test "$enable_firm_jni" = yes; then
3618 for ac_header in jni.h
3620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3622 echo "$as_me:$LINENO: checking for $ac_header" >&5
3623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3630 # Is the header compilable?
3631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line $LINENO "configure"
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 $ac_includes_default
3641 #include <$ac_header>
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -s conftest.$ac_objext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 ac_header_compiler=yes
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_header_compiler=no
3662 rm -f conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3664 echo "${ECHO_T}$ac_header_compiler" >&6
3666 # Is the header present?
3667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line $LINENO "configure"
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <$ac_header>
3678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } >/dev/null; then
3686 if test -s conftest.err; then
3687 ac_cpp_err=$ac_c_preproc_warn_flag
3694 if test -z "$ac_cpp_err"; then
3695 ac_header_preproc=yes
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_header_preproc=no
3702 rm -f conftest.err conftest.$ac_ext
3703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3704 echo "${ECHO_T}$ac_header_preproc" >&6
3706 # So? What about this header?
3707 case $ac_header_compiler:$ac_header_preproc in
3709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3715 ## ------------------------------------ ##
3716 ## Report this to bug-autoconf@gnu.org. ##
3717 ## ------------------------------------ ##
3720 sed "s/^/$as_me: WARNING: /" >&2
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3731 ## ------------------------------------ ##
3732 ## Report this to bug-autoconf@gnu.org. ##
3733 ## ------------------------------------ ##
3736 sed "s/^/$as_me: WARNING: /" >&2
3739 echo "$as_me:$LINENO: checking for $ac_header" >&5
3740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 eval "$as_ac_Header=$ac_header_preproc"
3746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3751 cat >>confdefs.h <<_ACEOF
3752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754 ac_jni_headers="yes"
3761 if test "$ac_jni_headers" != yes; then
3762 { { 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
3763 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;}
3764 { (exit 1); exit 1; }; }
3770 #dnl check for the gnu multiprecission (gmp) library
3772 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3773 #if test "$ac_gmp_library" != yes; then
3774 # dnl gmp library not found.
3775 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3779 echo "$as_me:$LINENO: checking for main in -lm" >&5
3780 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3781 if test "${ac_cv_lib_m_main+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_check_lib_save_LIBS=$LIBS
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_lib_m_main=yes
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_check_lib_save_LIBS
3825 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3826 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3827 if test $ac_cv_lib_m_main = yes; then
3833 if test "$ac_m_library" != yes; then
3834 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3835 echo "$as_me: error: \"standard math library not found\"" >&2;}
3836 { (exit 1); exit 1; }; }
3840 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3841 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3842 if test "${ac_cv_c_bigendian+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 # See if sys/param.h defines the BYTE_ORDER macro.
3846 cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <sys/types.h>
3854 #include <sys/param.h>
3859 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 # It does; now see whether it defined to BIG_ENDIAN or not.
3880 cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <sys/types.h>
3888 #include <sys/param.h>
3893 #if BYTE_ORDER != BIG_ENDIAN
3901 rm -f conftest.$ac_objext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_c_bigendian=yes
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 ac_cv_c_bigendian=no
3920 rm -f conftest.$ac_objext conftest.$ac_ext
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 # It does not; compile a test program.
3926 if test "$cross_compiling" = yes; then
3927 # try to guess the endianness by grepping values into an object file
3928 ac_cv_c_bigendian=unknown
3929 cat >conftest.$ac_ext <<_ACEOF
3930 #line $LINENO "configure"
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3937 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3938 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3939 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3940 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3941 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3945 _ascii (); _ebcdic ();
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3963 ac_cv_c_bigendian=yes
3965 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3966 if test "$ac_cv_c_bigendian" = unknown; then
3967 ac_cv_c_bigendian=no
3969 # finding both strings is unlikely to happen, but who knows?
3970 ac_cv_c_bigendian=unknown
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.$ac_objext conftest.$ac_ext
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3990 /* Are we little or big endian? From Harbison&Steele. */
3994 char c[sizeof (long)];
3997 exit (u.c[sizeof (long) - 1] == 1);
4000 rm -f conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_c_bigendian=no
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_c_bigendian=yes
4020 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 rm -f conftest.$ac_objext conftest.$ac_ext
4025 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4026 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4027 case $ac_cv_c_bigendian in
4030 cat >>confdefs.h <<\_ACEOF
4031 #define WORDS_BIGENDIAN 1
4037 { { echo "$as_me:$LINENO: error: unknown endianness
4038 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4039 echo "$as_me: error: unknown endianness
4040 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4041 { (exit 1); exit 1; }; } ;;
4044 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4045 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4046 if test "${ac_cv_c_long_double+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 cat >conftest.$ac_ext <<_ACEOF
4050 #line $LINENO "configure"
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4057 long double foo = 0.0;
4061 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4062 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4063 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_c_long_double=yes
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 ac_cv_c_long_double=no
4089 rm -f conftest.$ac_objext conftest.$ac_ext
4091 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4092 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4093 if test $ac_cv_c_long_double = yes; then
4095 cat >>confdefs.h <<\_ACEOF
4096 #define HAVE_LONG_DOUBLE 1
4104 echo "$as_me:$LINENO: checking for strerror" >&5
4105 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4106 if test "${ac_cv_func_strerror+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4110 #line $LINENO "configure"
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char strerror (); below. */
4119 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_strerror) || defined (__stub___strerror)
4133 char (*f) () = strerror;
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -s conftest$ac_exeext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_cv_func_strerror=yes
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_cv_func_strerror=no
4166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4169 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4170 if test $ac_cv_func_strerror = yes; then
4173 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4174 echo "$as_me: error: \"need strerror function\"" >&2;}
4175 { (exit 1); exit 1; }; }
4183 ac_config_files="$ac_config_files $ac_output_file"
4184 ac_config_commands="$ac_config_commands default"
4185 cat >confcache <<\_ACEOF
4186 # This file is a shell script that caches the results of configure
4187 # tests run on this system so they can be shared between configure
4188 # scripts and configure runs, see configure's option --config-cache.
4189 # It is not useful on other systems. If it contains results you don't
4190 # want to keep, you may remove or edit it.
4192 # config.status only pays attention to the cache file if you give it
4193 # the --recheck option to rerun configure.
4195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4201 # The following way of writing the cache mishandles newlines in values,
4202 # but we know of no workaround that is simple, portable, and efficient.
4203 # So, don't put newlines in cache variables' values.
4204 # Ultrix sh set writes to stderr and can't be redirected directly,
4205 # and sets the high bit in the cache file unless we assign to the vars.
4208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4210 # `set' does not quote correctly, so add quotes (double-quote
4211 # substitution turns \\\\ into \\, and sed turns \\ into \).
4214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4217 # `set' quotes correctly as required by POSIX, so do not add quotes.
4219 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4228 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4231 if test -w $cache_file; then
4232 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4233 cat confcache >$cache_file
4235 echo "not updating unwritable cache $cache_file"
4240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4241 # Let make expand exec_prefix.
4242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4246 # trailing colons and then remove the whole line if VPATH becomes empty
4247 # (actually we leave an empty line to preserve line numbers).
4248 if test "x$srcdir" = x.; then
4249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4250 s/:*\$(srcdir):*/:/;
4251 s/:*\${srcdir}:*/:/;
4253 s/^\([^=]*=[ ]*\):*/\1/;
4259 DEFS=-DHAVE_CONFIG_H
4263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4264 # 1. Remove the extension, and $U if already installed.
4265 ac_i=`echo "$ac_i" |
4266 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4268 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4269 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4273 LTLIBOBJS=$ac_ltlibobjs
4277 : ${CONFIG_STATUS=./config.status}
4278 ac_clean_files_save=$ac_clean_files
4279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4280 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4281 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4282 cat >$CONFIG_STATUS <<_ACEOF
4284 # Generated by $as_me.
4285 # Run this file to recreate the current configuration.
4286 # Compiler output produced by configure, useful for debugging
4287 # configure, is in config.log if it exists.
4292 SHELL=\${CONFIG_SHELL-$SHELL}
4295 cat >>$CONFIG_STATUS <<\_ACEOF
4296 ## --------------------- ##
4297 ## M4sh Initialization. ##
4298 ## --------------------- ##
4300 # Be Bourne compatible
4301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4305 # is contrary to our usage. Disable this feature.
4306 alias -g '${1+"$@"}'='"$@"'
4307 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4311 # Support unset when possible.
4312 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4319 # Work around bugs in pre-3.0 UWIN ksh.
4320 $as_unset ENV MAIL MAILPATH
4327 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4328 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4329 LC_TELEPHONE LC_TIME
4331 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4332 eval $as_var=C; export $as_var
4338 # Required to use basename.
4339 if expr a : '\(a\)' >/dev/null 2>&1; then
4345 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4346 as_basename=basename
4352 # Name of the executable.
4353 as_me=`$as_basename "$0" ||
4354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4355 X"$0" : 'X\(//\)$' \| \
4356 X"$0" : 'X\(/\)$' \| \
4357 . : '\(.\)' 2>/dev/null ||
4359 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4360 /^X\/\(\/\/\)$/{ s//\1/; q; }
4361 /^X\/\(\/\).*/{ s//\1/; q; }
4365 # PATH needs CR, and LINENO needs CR and PATH.
4366 # Avoid depending upon Character Ranges.
4367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4370 as_cr_digits='0123456789'
4371 as_cr_alnum=$as_cr_Letters$as_cr_digits
4373 # The user is always right.
4374 if test "${PATH_SEPARATOR+set}" != set; then
4375 echo "#! /bin/sh" >conf$$.sh
4376 echo "exit 0" >>conf$$.sh
4378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4389 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4390 test "x$as_lineno_1" != "x$as_lineno_2" &&
4391 test "x$as_lineno_3" = "x$as_lineno_2" || {
4392 # Find who we are. Look in the path if we contain no path at all
4395 *[\\/]* ) as_myself=$0 ;;
4396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4406 # We did not find ourselves, most probably we were run as `sh COMMAND'
4407 # in which case we are not to be found in the path.
4408 if test "x$as_myself" = x; then
4411 if test ! -f "$as_myself"; then
4412 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4413 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4414 { (exit 1); exit 1; }; }
4416 case $CONFIG_SHELL in
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4422 test -z "$as_dir" && as_dir=.
4423 for as_base in sh bash ksh sh5; do
4426 if ("$as_dir/$as_base" -c '
4429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4430 test "x$as_lineno_1" != "x$as_lineno_2" &&
4431 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4432 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4433 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4434 CONFIG_SHELL=$as_dir/$as_base
4436 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4444 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4445 # uniformly replaced by the line number. The first 'sed' inserts a
4446 # line-number line before each line; the second 'sed' does the real
4447 # work. The second script uses 'N' to pair each line-number line
4448 # with the numbered line, and appends trailing '-' during
4449 # substitution so that $LINENO is not a special case at line end.
4450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4451 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4452 sed '=' <$as_myself |
4457 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4460 s,^['$as_cr_digits']*\n,,
4462 chmod +x $as_me.lineno ||
4463 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4464 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4465 { (exit 1); exit 1; }; }
4467 # Don't try to exec as it changes $[0], causing all sort of problems
4468 # (the dirname of $[0] is not the place where we might find the
4469 # original and so on. Autoconf is especially sensible to this).
4471 # Exit status is that of the last command.
4476 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4477 *c*,-n*) ECHO_N= ECHO_C='
4479 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4480 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4483 if expr a : '\(a\)' >/dev/null 2>&1; then
4489 rm -f conf$$ conf$$.exe conf$$.file
4491 if ln -s conf$$.file conf$$ 2>/dev/null; then
4492 # We could just check for DJGPP; but this test a) works b) is more generic
4493 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4494 if test -f conf$$.exe; then
4495 # Don't use ln at all; we don't have any links
4500 elif ln conf$$.file conf$$ 2>/dev/null; then
4505 rm -f conf$$ conf$$.exe conf$$.file
4507 if mkdir -p . 2>/dev/null; then
4513 as_executable_p="test -f"
4515 # Sed expression to map a string onto a valid CPP name.
4516 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4518 # Sed expression to map a string onto a valid variable name.
4519 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4523 # We need space, tab and new line, in precisely that order.
4533 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4534 # report actual input values of CONFIG_FILES etc. instead of their
4535 # values after options handling. Logging --version etc. is OK.
4539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4540 ## Running $as_me. ##
4545 This file was extended by libfirm $as_me 0.3.0, which was
4546 generated by GNU Autoconf 2.56. Invocation command line was
4548 CONFIG_FILES = $CONFIG_FILES
4549 CONFIG_HEADERS = $CONFIG_HEADERS
4550 CONFIG_LINKS = $CONFIG_LINKS
4551 CONFIG_COMMANDS = $CONFIG_COMMANDS
4555 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4559 # Files that config.status was made for.
4560 if test -n "$ac_config_files"; then
4561 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4564 if test -n "$ac_config_headers"; then
4565 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4568 if test -n "$ac_config_links"; then
4569 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4572 if test -n "$ac_config_commands"; then
4573 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4576 cat >>$CONFIG_STATUS <<\_ACEOF
4579 \`$as_me' instantiates files from templates according to the
4580 current configuration.
4582 Usage: $0 [OPTIONS] [FILE]...
4584 -h, --help print this help, then exit
4585 -V, --version print version number, then exit
4586 -q, --quiet do not print progress messages
4587 -d, --debug don't remove temporary files
4588 --recheck update $as_me by reconfiguring in the same conditions
4589 --file=FILE[:TEMPLATE]
4590 instantiate the configuration file FILE
4591 --header=FILE[:TEMPLATE]
4592 instantiate the configuration header FILE
4594 Configuration files:
4597 Configuration headers:
4600 Configuration commands:
4603 Report bugs to <bug-autoconf@gnu.org>."
4606 cat >>$CONFIG_STATUS <<_ACEOF
4608 libfirm config.status 0.3.0
4609 configured by $0, generated by GNU Autoconf 2.56,
4610 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4612 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4613 Free Software Foundation, Inc.
4614 This config.status script is free software; the Free Software Foundation
4615 gives unlimited permission to copy, distribute and modify it."
4620 cat >>$CONFIG_STATUS <<\_ACEOF
4621 # If no file are specified by the user, then we need to provide default
4622 # value. By we need to know if files were specified by the user.
4628 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4629 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4637 *) # This is not an option, so the user has probably given explicit
4640 ac_need_defaults=false;;
4644 # Handling of the options.
4646 cat >>$CONFIG_STATUS <<\_ACEOF
4647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4649 --version | --vers* | -V )
4650 echo "$ac_cs_version"; exit 0 ;;
4652 # Conflict between --help and --header
4653 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4654 Try \`$0 --help' for more information." >&5
4655 echo "$as_me: error: ambiguous option: $1
4656 Try \`$0 --help' for more information." >&2;}
4657 { (exit 1); exit 1; }; };;
4658 --help | --hel | -h )
4659 echo "$ac_cs_usage"; exit 0 ;;
4660 --debug | --d* | -d )
4662 --file | --fil | --fi | --f )
4664 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4665 ac_need_defaults=false;;
4666 --header | --heade | --head | --hea )
4668 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4669 ac_need_defaults=false;;
4670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4675 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4676 Try \`$0 --help' for more information." >&5
4677 echo "$as_me: error: unrecognized option: $1
4678 Try \`$0 --help' for more information." >&2;}
4679 { (exit 1); exit 1; }; } ;;
4681 *) ac_config_targets="$ac_config_targets $1" ;;
4687 ac_configure_extra_args=
4689 if $ac_cs_silent; then
4691 ac_configure_extra_args="$ac_configure_extra_args --silent"
4695 cat >>$CONFIG_STATUS <<_ACEOF
4696 if \$ac_cs_recheck; then
4697 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4698 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4707 cat >>$CONFIG_STATUS <<\_ACEOF
4708 for ac_config_target in $ac_config_targets
4710 case "$ac_config_target" in
4711 # Handling of arguments.
4712 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4713 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4714 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4717 { (exit 1); exit 1; }; };;
4721 # If the user did not use the arguments to specify the items to instantiate,
4722 # then the envvar interface is used. Set only those that are not.
4723 # We use the long form for the default assignment because of an extremely
4724 # bizarre bug on SunOS 4.1.3.
4725 if $ac_need_defaults; then
4726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4731 # Have a temporary directory for convenience. Make it in the build tree
4732 # simply because there is no reason to put it here, and in addition,
4733 # creating and moving files from /tmp can sometimes cause problems.
4734 # Create a temporary directory, and hook for its removal unless debugging.
4737 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4738 trap '{ (exit 1); exit 1; }' 1 2 13 15
4741 # Create a (secure) tmp directory for tmp files.
4744 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4745 test -n "$tmp" && test -d "$tmp"
4748 tmp=./confstat$$-$RANDOM
4749 (umask 077 && mkdir $tmp)
4752 echo "$me: cannot create a temporary directory in ." >&2
4753 { (exit 1); exit 1; }
4758 cat >>$CONFIG_STATUS <<_ACEOF
4761 # CONFIG_FILES section.
4764 # No need to generate the scripts if there are no CONFIG_FILES.
4765 # This happens for instance when ./config.status config.h
4766 if test -n "\$CONFIG_FILES"; then
4767 # Protect against being on the right side of a sed subst in config.status.
4768 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4769 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4770 s,@SHELL@,$SHELL,;t t
4771 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4772 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4773 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4774 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4775 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4776 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4777 s,@exec_prefix@,$exec_prefix,;t t
4778 s,@prefix@,$prefix,;t t
4779 s,@program_transform_name@,$program_transform_name,;t t
4780 s,@bindir@,$bindir,;t t
4781 s,@sbindir@,$sbindir,;t t
4782 s,@libexecdir@,$libexecdir,;t t
4783 s,@datadir@,$datadir,;t t
4784 s,@sysconfdir@,$sysconfdir,;t t
4785 s,@sharedstatedir@,$sharedstatedir,;t t
4786 s,@localstatedir@,$localstatedir,;t t
4787 s,@libdir@,$libdir,;t t
4788 s,@includedir@,$includedir,;t t
4789 s,@oldincludedir@,$oldincludedir,;t t
4790 s,@infodir@,$infodir,;t t
4791 s,@mandir@,$mandir,;t t
4792 s,@build_alias@,$build_alias,;t t
4793 s,@host_alias@,$host_alias,;t t
4794 s,@target_alias@,$target_alias,;t t
4796 s,@ECHO_C@,$ECHO_C,;t t
4797 s,@ECHO_N@,$ECHO_N,;t t
4798 s,@ECHO_T@,$ECHO_T,;t t
4800 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4801 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4802 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4803 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4804 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4805 s,@enable_firm_jni@,$enable_firm_jni,;t t
4806 s,@disable_libiberty@,$disable_libiberty,;t t
4808 s,@CFLAGS@,$CFLAGS,;t t
4809 s,@LDFLAGS@,$LDFLAGS,;t t
4810 s,@CPPFLAGS@,$CPPFLAGS,;t t
4811 s,@ac_ct_CC@,$ac_ct_CC,;t t
4812 s,@EXEEXT@,$EXEEXT,;t t
4813 s,@OBJEXT@,$OBJEXT,;t t
4815 s,@ac_ct_LD@,$ac_ct_LD,;t t
4816 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4819 s,@RANLIB@,$RANLIB,;t t
4820 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4821 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4822 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4823 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4825 s,@DOXYGEN@,$DOXYGEN,;t t
4827 s,@JAVAC@,$JAVAC,;t t
4828 s,@JAVAH@,$JAVAH,;t t
4830 s,@EGREP@,$EGREP,;t t
4831 s,@LIBOBJS@,$LIBOBJS,;t t
4832 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4837 cat >>$CONFIG_STATUS <<\_ACEOF
4838 # Split the substitutions into bite-sized pieces for seds with
4839 # small command number limits, like on Digital OSF/1 and HP-UX.
4841 ac_sed_frag=1 # Number of current file.
4842 ac_beg=1 # First line for current file.
4843 ac_end=$ac_max_sed_lines # Line after last line for current file.
4846 while $ac_more_lines; do
4847 if test $ac_beg -gt 1; then
4848 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4850 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4852 if test ! -s $tmp/subs.frag; then
4855 # The purpose of the label and of the branching condition is to
4856 # speed up the sed processing (if there are no `@' at all, there
4857 # is no need to browse any of the substitutions).
4858 # These are the two extra sed commands mentioned above.
4860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4861 if test -z "$ac_sed_cmds"; then
4862 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4864 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4866 ac_sed_frag=`expr $ac_sed_frag + 1`
4868 ac_end=`expr $ac_end + $ac_max_sed_lines`
4871 if test -z "$ac_sed_cmds"; then
4874 fi # test -n "$CONFIG_FILES"
4877 cat >>$CONFIG_STATUS <<\_ACEOF
4878 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4881 - | *:- | *:-:* ) # input from stdin
4883 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4885 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4887 * ) ac_file_in=$ac_file.in ;;
4890 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4891 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4893 X"$ac_file" : 'X\(//\)[^/]' \| \
4894 X"$ac_file" : 'X\(//\)$' \| \
4895 X"$ac_file" : 'X\(/\)' \| \
4896 . : '\(.\)' 2>/dev/null ||
4898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4900 /^X\(\/\/\)$/{ s//\1/; q; }
4901 /^X\(\/\).*/{ s//\1/; q; }
4903 { if $as_mkdir_p; then
4908 while test ! -d "$as_dir"; do
4909 as_dirs="$as_dir $as_dirs"
4910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4912 X"$as_dir" : 'X\(//\)[^/]' \| \
4913 X"$as_dir" : 'X\(//\)$' \| \
4914 X"$as_dir" : 'X\(/\)' \| \
4915 . : '\(.\)' 2>/dev/null ||
4917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4919 /^X\(\/\/\)$/{ s//\1/; q; }
4920 /^X\(\/\).*/{ s//\1/; q; }
4923 test ! -n "$as_dirs" || mkdir $as_dirs
4924 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4926 { (exit 1); exit 1; }; }; }
4930 if test "$ac_dir" != .; then
4931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4932 # A "../" for each directory in $ac_dir_suffix.
4933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4935 ac_dir_suffix= ac_top_builddir=
4939 .) # No --srcdir option. We are building in place.
4941 if test -z "$ac_top_builddir"; then
4944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4946 [\\/]* | ?:[\\/]* ) # Absolute path.
4947 ac_srcdir=$srcdir$ac_dir_suffix;
4948 ac_top_srcdir=$srcdir ;;
4950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4963 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4966 if test x"$ac_file" != x-; then
4967 { echo "$as_me:$LINENO: creating $ac_file" >&5
4968 echo "$as_me: creating $ac_file" >&6;}
4971 # Let's still pretend it is `configure' which instantiates (i.e., don't
4972 # use $as_me), people would be surprised to read:
4973 # /* config.h. Generated by config.status. */
4974 if test x"$ac_file" = x-; then
4977 configure_input="$ac_file. "
4979 configure_input=$configure_input"Generated from `echo $ac_file_in |
4980 sed 's,.*/,,'` by configure."
4982 # First look for the input files in the build tree, otherwise in the
4984 ac_file_inputs=`IFS=:
4985 for f in $ac_file_in; do
4987 -) echo $tmp/stdin ;;
4989 # Absolute (can't be DOS-style, as IFS=:)
4990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4991 echo "$as_me: error: cannot find input file: $f" >&2;}
4992 { (exit 1); exit 1; }; }
4995 if test -f "$f"; then
4998 elif test -f "$srcdir/$f"; then
5003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5004 echo "$as_me: error: cannot find input file: $f" >&2;}
5005 { (exit 1); exit 1; }; }
5008 done` || { (exit 1); exit 1; }
5010 cat >>$CONFIG_STATUS <<_ACEOF
5014 cat >>$CONFIG_STATUS <<\_ACEOF
5016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5017 s,@configure_input@,$configure_input,;t t
5018 s,@srcdir@,$ac_srcdir,;t t
5019 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5020 s,@top_srcdir@,$ac_top_srcdir,;t t
5021 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5022 s,@builddir@,$ac_builddir,;t t
5023 s,@abs_builddir@,$ac_abs_builddir,;t t
5024 s,@top_builddir@,$ac_top_builddir,;t t
5025 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5026 s,@INSTALL@,$ac_INSTALL,;t t
5027 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5029 if test x"$ac_file" != x-; then
5030 mv $tmp/out $ac_file
5038 cat >>$CONFIG_STATUS <<\_ACEOF
5041 # CONFIG_HEADER section.
5044 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5045 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5047 # ac_d sets the value in "#define NAME VALUE" lines.
5048 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5049 ac_dB='[ ].*$,\1#\2'
5052 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5053 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5054 ac_uB='$,\1#\2define\3'
5058 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5061 - | *:- | *:-:* ) # input from stdin
5063 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5065 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5067 * ) ac_file_in=$ac_file.in ;;
5070 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5071 echo "$as_me: creating $ac_file" >&6;}
5073 # First look for the input files in the build tree, otherwise in the
5075 ac_file_inputs=`IFS=:
5076 for f in $ac_file_in; do
5078 -) echo $tmp/stdin ;;
5080 # Absolute (can't be DOS-style, as IFS=:)
5081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5082 echo "$as_me: error: cannot find input file: $f" >&2;}
5083 { (exit 1); exit 1; }; }
5086 if test -f "$f"; then
5089 elif test -f "$srcdir/$f"; then
5094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5095 echo "$as_me: error: cannot find input file: $f" >&2;}
5096 { (exit 1); exit 1; }; }
5099 done` || { (exit 1); exit 1; }
5100 # Remove the trailing spaces.
5101 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5105 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5106 # `conftest.undefs', that substitutes the proper values into
5107 # config.h.in to produce config.h. The first handles `#define'
5108 # templates, and the second `#undef' templates.
5109 # And first: Protect against being on the right side of a sed subst in
5110 # config.status. Protect against being in an unquoted here document
5112 rm -f conftest.defines conftest.undefs
5113 # Using a here document instead of a string reduces the quoting nightmare.
5114 # Putting comments in sed scripts is not portable.
5116 # `end' is used to avoid that the second main sed command (meant for
5117 # 0-ary CPP macros) applies to n-ary macro definitions.
5118 # See the Autoconf documentation for `clear'.
5119 cat >confdef2sed.sed <<\_ACEOF
5124 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5126 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5129 # If some macros were called several times there might be several times
5130 # the same #defines, which is useless. Nevertheless, we may not want to
5131 # sort them, since we want the *last* AC-DEFINE to be honored.
5132 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5133 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5134 rm -f confdef2sed.sed
5136 # This sed command replaces #undef with comments. This is necessary, for
5137 # example, in the case of _POSIX_SOURCE, which is predefined and required
5138 # on some systems where configure will not decide to define it.
5139 cat >>conftest.undefs <<\_ACEOF
5140 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5143 # Break up conftest.defines because some shells have a limit on the size
5144 # of here documents, and old seds have small limits too (100 cmds).
5145 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5146 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5147 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5148 echo ' :' >>$CONFIG_STATUS
5150 while grep . conftest.defines >/dev/null
5152 # Write a limited-size here document to $tmp/defines.sed.
5153 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5154 # Speed up: don't consider the non `#define' lines.
5155 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5156 # Work around the forget-to-reset-the-flag bug.
5157 echo 't clr' >>$CONFIG_STATUS
5158 echo ': clr' >>$CONFIG_STATUS
5159 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5161 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5165 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5166 rm -f conftest.defines
5167 mv conftest.tail conftest.defines
5169 rm -f conftest.defines
5170 echo ' fi # grep' >>$CONFIG_STATUS
5171 echo >>$CONFIG_STATUS
5173 # Break up conftest.undefs because some shells have a limit on the size
5174 # of here documents, and old seds have small limits too (100 cmds).
5175 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5177 while grep . conftest.undefs >/dev/null
5179 # Write a limited-size here document to $tmp/undefs.sed.
5180 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5181 # Speed up: don't consider the non `#undef'
5182 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5183 # Work around the forget-to-reset-the-flag bug.
5184 echo 't clr' >>$CONFIG_STATUS
5185 echo ': clr' >>$CONFIG_STATUS
5186 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5188 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5192 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5193 rm -f conftest.undefs
5194 mv conftest.tail conftest.undefs
5196 rm -f conftest.undefs
5198 cat >>$CONFIG_STATUS <<\_ACEOF
5199 # Let's still pretend it is `configure' which instantiates (i.e., don't
5200 # use $as_me), people would be surprised to read:
5201 # /* config.h. Generated by config.status. */
5202 if test x"$ac_file" = x-; then
5203 echo "/* Generated by configure. */" >$tmp/config.h
5205 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5207 cat $tmp/in >>$tmp/config.h
5209 if test x"$ac_file" != x-; then
5210 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5211 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5212 echo "$as_me: $ac_file is unchanged" >&6;}
5214 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5216 X"$ac_file" : 'X\(//\)[^/]' \| \
5217 X"$ac_file" : 'X\(//\)$' \| \
5218 X"$ac_file" : 'X\(/\)' \| \
5219 . : '\(.\)' 2>/dev/null ||
5221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5223 /^X\(\/\/\)$/{ s//\1/; q; }
5224 /^X\(\/\).*/{ s//\1/; q; }
5226 { if $as_mkdir_p; then
5231 while test ! -d "$as_dir"; do
5232 as_dirs="$as_dir $as_dirs"
5233 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5235 X"$as_dir" : 'X\(//\)[^/]' \| \
5236 X"$as_dir" : 'X\(//\)$' \| \
5237 X"$as_dir" : 'X\(/\)' \| \
5238 . : '\(.\)' 2>/dev/null ||
5240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5242 /^X\(\/\/\)$/{ s//\1/; q; }
5243 /^X\(\/\).*/{ s//\1/; q; }
5246 test ! -n "$as_dirs" || mkdir $as_dirs
5247 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5248 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5249 { (exit 1); exit 1; }; }; }
5252 mv $tmp/config.h $ac_file
5260 cat >>$CONFIG_STATUS <<\_ACEOF
5263 # CONFIG_COMMANDS section.
5265 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5266 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5267 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5268 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5269 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5270 X"$ac_dest" : 'X\(//\)[^/]' \| \
5271 X"$ac_dest" : 'X\(//\)$' \| \
5272 X"$ac_dest" : 'X\(/\)' \| \
5273 . : '\(.\)' 2>/dev/null ||
5275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5277 /^X\(\/\/\)$/{ s//\1/; q; }
5278 /^X\(\/\).*/{ s//\1/; q; }
5282 if test "$ac_dir" != .; then
5283 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5284 # A "../" for each directory in $ac_dir_suffix.
5285 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5287 ac_dir_suffix= ac_top_builddir=
5291 .) # No --srcdir option. We are building in place.
5293 if test -z "$ac_top_builddir"; then
5296 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5298 [\\/]* | ?:[\\/]* ) # Absolute path.
5299 ac_srcdir=$srcdir$ac_dir_suffix;
5300 ac_top_srcdir=$srcdir ;;
5302 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5303 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5313 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5314 echo "$as_me: executing $ac_dest commands" >&6;}
5316 default ) touch stamp-h ;;
5321 cat >>$CONFIG_STATUS <<\_ACEOF
5323 { (exit 0); exit 0; }
5325 chmod +x $CONFIG_STATUS
5326 ac_clean_files=$ac_clean_files_save
5329 # configure is writing to config.log, and then calls config.status.
5330 # config.status does its own redirection, appending to config.log.
5331 # Unfortunately, on DOS this fails, as config.log is still kept open
5332 # by configure, so config.status won't be able to write to it; its
5333 # output is simply discarded. So we exec the FD to /dev/null,
5334 # effectively closing config.log, so it can be properly (re)opened and
5335 # appended to by config.status. When coming back to configure, we
5336 # need to make the FD available again.
5337 if test "$no_create" != yes; then
5339 ac_config_status_args=
5340 test "$silent" = yes &&
5341 ac_config_status_args="$ac_config_status_args --quiet"
5343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5346 # would make configure fail if this is the last instruction.
5347 $ac_cs_success || { (exit 1); exit 1; }