2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 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=dir add directory to include search path
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 ac_dir_suffix= ac_top_builddir=
887 .) # No --srcdir option. We are building in place.
889 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
904 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
930 libfirm configure 0.3.0
931 generated by GNU Autoconf 2.57
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
945 It was created by libfirm $as_me 0.3.0, which was
946 generated by GNU Autoconf 2.57. Invocation command line was
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 test -z "$as_dir" && as_dir=.
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_must_keep_next=false
1011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1021 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022 if test $ac_must_keep_next = true; then
1023 ac_must_keep_next=false # Got value, back to normal.
1026 *=* | --config-cache | -C | -disable-* | --disable-* \
1027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029 | -with-* | --with-* | -without-* | --without-* | --x)
1030 case "$ac_configure_args0 " in
1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 -* ) ac_must_keep_next=true ;;
1037 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038 # Get rid of the leading space.
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1063 # The following way of writing the cache mishandles newlines in values,
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1086 for ac_var in $ac_subst_vars
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1093 if test -n "$ac_subst_files"; then
1100 for ac_var in $ac_subst_files
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1108 if test -s confdefs.h; then
1115 sed "/^$/d" confdefs.h | sort
1118 test "$ac_signal" != 0 &&
1119 echo "$as_me: caught signal $ac_signal"
1120 echo "$as_me: exit $exit_status"
1122 rm -f core core.* *.core &&
1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 for ac_signal in 1 2 13 15; do
1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 # Predefined preprocessor variables.
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166 if test "x$prefix" != xNONE; then
1167 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 for ac_site_file in $CONFIG_SITE; do
1173 if test -r "$ac_site_file"; then
1174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176 sed 's/^/| /' "$ac_site_file" >&5
1181 if test -r "$cache_file"; then
1182 # Some versions of bash will fail to source /dev/null (special
1183 # files actually), so we avoid doing that.
1184 if test -f "$cache_file"; then
1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1188 [\\/]* | ?:[\\/]* ) . $cache_file;;
1189 *) . ./$cache_file;;
1193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1198 # Check that the precious variables saved in the cache have kept the same
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204 eval ac_new_set=\$ac_env_${ac_var}_set
1205 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206 eval ac_new_val="\$ac_env_${ac_var}_value"
1207 case $ac_old_set,$ac_new_set in
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211 ac_cache_corrupted=: ;;
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1218 if test "x$ac_old_val" != "x$ac_new_val"; then
1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222 echo "$as_me: former value: $ac_old_val" >&2;}
1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224 echo "$as_me: current value: $ac_new_val" >&2;}
1225 ac_cache_corrupted=:
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg=$ac_var=$ac_new_val ;;
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 if $ac_cache_corrupted; then
1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246 { (exit 1); exit 1; }; }
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1283 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1284 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1285 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
1287 ac_config_headers="$ac_config_headers config.h"
1290 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1294 # Check whether --with-includedir or --without-includedir was given.
1295 if test "${with_includedir+set}" = set; then
1296 withval="$with_includedir"
1297 CPPFLAGS=$CPPFLAGS" -I"$withval
1303 # Check whether --enable-debug or --disable-debug was given.
1304 if test "${enable_debug+set}" = set; then
1305 enableval="$enable_debug"
1306 if test "$enableval" = yes; then
1307 cat >>confdefs.h <<\_ACEOF
1308 #define DEBUG_libfirm 1
1312 cat >>confdefs.h <<\_ACEOF
1320 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1321 if test "${enable_gcc_inline+set}" = set; then
1322 enableval="$enable_gcc_inline"
1323 if test "$enableval" = yes; then
1324 cat >>confdefs.h <<\_ACEOF
1325 #define USE_GCC_INLINE 1
1333 # Check whether --enable-profile or --disable-profile was given.
1334 if test "${enable_profile+set}" = set; then
1335 enableval="$enable_profile"
1336 if test "$enableval"=yes; then
1337 enable_profile_libfirm=yes
1340 enable_profile_libfirm=no
1344 # Check whether --enable-autodoc or --disable-autodoc was given.
1345 if test "${enable_autodoc+set}" = set; then
1346 enableval="$enable_autodoc"
1347 if test "$enableval"=yes; then
1348 enable_auto_documentation=yes
1351 enable_auto_documentation=no
1356 # Check whether --enable-firmjni or --disable-firmjni was given.
1357 if test "${enable_firmjni+set}" = set; then
1358 enableval="$enable_firmjni"
1359 if test "$enableval"=yes; then
1367 # Check whether --enable-libiberty or --disable-libiberty was given.
1368 if test "${enable_libiberty+set}" = set; then
1369 enableval="$enable_libiberty"
1370 if test "$enableval"=yes; then
1371 disable_libiberty_=yes
1374 disable_libiberty=no
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 if test -n "$CC"; then
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1422 if test -z "$ac_cv_prog_CC"; then
1424 # Extract the first word of "gcc", so it can be a program name with args.
1425 set dummy gcc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_ac_ct_CC="gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1464 if test -z "$CC"; then
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}cc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="${ac_tool_prefix}cc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1502 if test -z "$ac_cv_prog_CC"; then
1504 # Extract the first word of "cc", so it can be a program name with args.
1505 set dummy cc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1545 if test -z "$CC"; then
1546 # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1579 if test $# != 0; then
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1590 if test -n "$CC"; then
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1638 test -n "$CC" && break
1641 if test -z "$CC"; then
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 test -n "$ac_ct_CC" && break
1689 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1690 See \`config.log' for more details." >&5
1691 echo "$as_me: error: no acceptable C compiler found in \$PATH
1692 See \`config.log' for more details." >&2;}
1693 { (exit 1); exit 1; }; }
1695 # Provide some information about the compiler.
1696 echo "$as_me:$LINENO:" \
1697 "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line $LINENO "configure"
1719 cat confdefs.h >>conftest.$ac_ext
1720 cat >>conftest.$ac_ext <<_ACEOF
1721 /* end confdefs.h. */
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748 # Be careful to initialize this variable, since it used to be cached.
1749 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1751 # b.out is created by i960 compilers.
1752 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1754 test -f "$ac_file" || continue
1756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759 # This is the source file.
1762 # We found the default executable, but exeext='' is most
1766 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1767 # FIXME: I believe we export ac_cv_exeext for Libtool,
1768 # but it would be cool to find out if it's true. Does anybody
1769 # maintain Libtool? --akim.
1777 echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1780 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: C compiler cannot create executables
1783 See \`config.log' for more details." >&2;}
1784 { (exit 77); exit 77; }; }
1787 ac_exeext=$ac_cv_exeext
1788 echo "$as_me:$LINENO: result: $ac_file" >&5
1789 echo "${ECHO_T}$ac_file" >&6
1791 # Check the compiler produces executables we can run. If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1796 # If not cross compiling, check that we can run a simple program.
1797 if test "$cross_compiling" != yes; then
1798 if { ac_try='./$ac_file'
1799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; }; then
1806 if test "$cross_compiling" = maybe; then
1809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1810 If you meant to cross compile, use \`--host'.
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: cannot run C compiled programs.
1813 If you meant to cross compile, use \`--host'.
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1823 ac_clean_files=$ac_clean_files_save
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829 echo "${ECHO_T}$cross_compiling" >&6
1831 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834 (eval $ac_link) 2>&5
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then
1838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1840 # work properly (i.e., refer to `conftest.exe'), while it won't with
1842 for ac_file in conftest.exe conftest conftest.*; do
1843 test -f "$ac_file" || continue
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1856 See \`config.log' for more details." >&2;}
1857 { (exit 1); exit 1; }; }
1860 rm -f conftest$ac_cv_exeext
1861 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1862 echo "${ECHO_T}$ac_cv_exeext" >&6
1864 rm -f conftest.$ac_ext
1865 EXEEXT=$ac_cv_exeext
1867 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1868 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1869 if test "${ac_cv_objext+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line $LINENO "configure"
1876 cat confdefs.h >>conftest.$ac_ext
1877 cat >>conftest.$ac_ext <<_ACEOF
1878 /* end confdefs.h. */
1888 rm -f conftest.o conftest.obj
1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }; then
1894 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902 echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1915 echo "${ECHO_T}$ac_cv_objext" >&6
1916 OBJEXT=$ac_cv_objext
1918 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.$ac_ext <<_ACEOF
1924 #line $LINENO "configure"
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 rm -f conftest.$ac_objext conftest.$ac_ext
1962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1965 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1967 GCC=`test $ac_compiler_gnu = yes && echo yes`
1968 ac_test_CFLAGS=${CFLAGS+set}
1969 ac_save_CFLAGS=$CFLAGS
1971 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_g+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 cat >conftest.$ac_ext <<_ACEOF
1977 #line $LINENO "configure"
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2006 echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2013 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2014 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2015 if test "$ac_test_CFLAGS" = set; then
2016 CFLAGS=$ac_save_CFLAGS
2017 elif test $ac_cv_prog_cc_g = yes; then
2018 if test "$GCC" = yes; then
2024 if test "$GCC" = yes; then
2030 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2031 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 ac_cv_prog_cc_stdc=no
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2046 #include <sys/types.h>
2047 #include <sys/stat.h>
2048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2049 struct buf { int x; };
2050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2051 static char *e (p, i)
2057 static char *f (char * (*g) (char **, int), char **p, ...)
2062 s = g (p, va_arg (v,int));
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX -qlanglvl=ansi
2083 # Ultrix and OSF/1 -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions -Aa -D_HPUX_SOURCE
2086 # SVR4 -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2089 CC="$ac_save_CC $ac_arg"
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_cv_prog_cc_stdc=$ac_arg
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.$ac_objext
2111 rm -f conftest.$ac_ext conftest.$ac_objext
2116 case "x$ac_cv_prog_cc_stdc" in
2118 echo "$as_me:$LINENO: result: none needed" >&5
2119 echo "${ECHO_T}none needed" >&6 ;;
2121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2123 CC="$CC $ac_cv_prog_cc_stdc" ;;
2126 # Some people use a C++ compiler to compile C. Since we use `exit',
2127 # in C++ we need to declare it. In case someone uses the same compiler
2128 # for both compiling C and C++ we need to have the C++ compiler decide
2129 # the declaration of exit, since it's the most demanding environment.
2130 cat >conftest.$ac_ext <<_ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 for ac_declaration in \
2149 '#include <stdlib.h>' \
2150 'extern "C" void std::exit (int) throw (); using std::exit;' \
2151 'extern "C" void std::exit (int); using std::exit;' \
2152 'extern "C" void exit (int) throw ();' \
2153 'extern "C" void exit (int);' \
2156 cat >conftest.$ac_ext <<_ACEOF
2157 #line $LINENO "configure"
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.$ac_objext conftest.$ac_ext
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2230 if test -n "$ac_declaration"; then
2231 echo '#ifdef __cplusplus' >>confdefs.h
2232 echo $ac_declaration >>confdefs.h
2233 echo '#endif' >>confdefs.h
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 if test -z "$LD"; then
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}ld; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_LD+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$LD"; then
2260 ac_cv_prog_LD="$LD" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_LD="${ac_tool_prefix}ld"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$LD"; then
2280 echo "$as_me:$LINENO: result: $LD" >&5
2281 echo "${ECHO_T}$LD" >&6
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2288 if test -z "$ac_cv_prog_LD"; then
2290 # Extract the first word of "ld", so it can be a program name with args.
2291 set dummy ld; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$ac_ct_LD"; then
2298 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_ac_ct_LD="ld"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2317 if test -n "$ac_ct_LD"; then
2318 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2319 echo "${ECHO_T}$ac_ct_LD" >&6
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2332 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2333 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2334 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 libfirm_cv_prog_ld_r=no
2340 cat > conftest.$ac_ext <<EOF
2341 int foo() { return 0; }
2343 if eval $ac_compile && mv conftest.o conftest2.o; then
2344 cat > conftest.$ac_ext <<EOF
2346 int main() { return foo(); }
2348 if eval $ac_compile; then
2349 if $LD -r -o conftest conftest.o conftest2.o; then
2350 libfirm_cv_prog_ld_r=yes
2357 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2358 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2361 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2362 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2363 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2364 { (exit 1); exit 1; }; }
2367 # Extract the first word of "ar", so it can be a program name with args.
2368 set dummy ar; ac_word=$2
2369 echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371 if test "${ac_cv_prog_AR+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$AR"; then
2375 ac_cv_prog_AR="$AR" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384 ac_cv_prog_AR=""ar""
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2395 if test -n "$AR"; then
2396 echo "$as_me:$LINENO: result: $AR" >&5
2397 echo "${ECHO_T}$AR" >&6
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2403 if test "$AR" != "ar"; then
2404 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2405 echo "$as_me: error: need ar for creating archives" >&2;}
2406 { (exit 1); exit 1; }; }
2409 # Extract the first word of "tar", so it can be a program name with args.
2410 set dummy tar; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_TAR+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$TAR"; then
2417 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_TAR=""tar""
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2437 if test -n "$TAR"; then
2438 echo "$as_me:$LINENO: result: $TAR" >&5
2439 echo "${ECHO_T}$TAR" >&6
2441 echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2445 if test "$TAR" != "tar"; then
2446 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2447 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2448 { (exit 1); exit 1; }; }
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_RANLIB+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$RANLIB"; then
2461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 RANLIB=$ac_cv_prog_RANLIB
2480 if test -n "$RANLIB"; then
2481 echo "$as_me:$LINENO: result: $RANLIB" >&5
2482 echo "${ECHO_T}$RANLIB" >&6
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2489 if test -z "$ac_cv_prog_RANLIB"; then
2490 ac_ct_RANLIB=$RANLIB
2491 # Extract the first word of "ranlib", so it can be a program name with args.
2492 set dummy ranlib; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$ac_ct_RANLIB"; then
2499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_RANLIB="ranlib"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2519 if test -n "$ac_ct_RANLIB"; then
2520 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2521 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 RANLIB=$ac_ct_RANLIB
2529 RANLIB="$ac_cv_prog_RANLIB"
2534 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2535 if test -f $ac_dir/install-sh; then
2537 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 elif test -f $ac_dir/install.sh; then
2541 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 elif test -f $ac_dir/shtool; then
2545 ac_install_sh="$ac_aux_dir/shtool install -c"
2549 if test -z "$ac_aux_dir"; then
2550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2551 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2552 { (exit 1); exit 1; }; }
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2558 # Find a good install program. We prefer a C program (faster),
2559 # so one script is as good as another. But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # ./install, which can be erroneously created by make from ./install.sh.
2570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2572 if test -z "$INSTALL"; then
2573 if test "${ac_cv_path_install+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 # Account for people who put trailing slashes in PATH elements.
2583 ./ | .// | /cC/* | \
2584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 # OSF1 and SCO ODT 3.0 have their own names for install.
2588 # Don't use installbsd from OSF since it installs stuff as root
2590 for ac_prog in ginstall scoinst install; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593 if test $ac_prog = install &&
2594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595 # AIX install. It has an incompatible calling convention.
2597 elif test $ac_prog = install &&
2598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # program-specific install script used by HP pwplus--don't use.
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL=$ac_cv_path_install
2617 # As a last resort, use the slow shell script. We don't cache a
2618 # path for INSTALL within a source directory, because that will
2619 # break other packages using the cache if that directory is
2620 # removed, or if the path is relative.
2621 INSTALL=$ac_install_sh
2624 echo "$as_me:$LINENO: result: $INSTALL" >&5
2625 echo "${ECHO_T}$INSTALL" >&6
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2637 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2639 if test "$LN_S" = "ln -s"; then
2640 echo "$as_me:$LINENO: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2644 echo "${ECHO_T}no, using $LN_S" >&6
2648 if test "$enable_auto_documentation" = yes; then
2649 # Extract the first word of "doxygen", so it can be a program name with args.
2650 set dummy doxygen; ac_word=$2
2651 echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2653 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$DOXYGEN"; then
2657 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_DOXYGEN=""doxygen""
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2676 DOXYGEN=$ac_cv_prog_DOXYGEN
2677 if test -n "$DOXYGEN"; then
2678 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2679 echo "${ECHO_T}$DOXYGEN" >&6
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2685 if test "$DOXYGEN" != "doxygen"; then
2686 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2687 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2688 { (exit 1); exit 1; }; }
2690 # Extract the first word of "dot", so it can be a program name with args.
2691 set dummy dot; ac_word=$2
2692 echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694 if test "${ac_cv_prog_DOT+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if test -n "$DOT"; then
2698 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_DOT=""dot""
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2718 if test -n "$DOT"; then
2719 echo "$as_me:$LINENO: result: $DOT" >&5
2720 echo "${ECHO_T}$DOT" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2726 if test "$DOT" != "dot"; then
2727 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2728 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2729 { (exit 1); exit 1; }; }
2733 if test "$enable_firm_jni" = yes; then
2734 # Extract the first word of "javac", so it can be a program name with args.
2735 set dummy javac; ac_word=$2
2736 echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_JAVAC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$JAVAC"; then
2742 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_JAVAC=""javac""
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2761 JAVAC=$ac_cv_prog_JAVAC
2762 if test -n "$JAVAC"; then
2763 echo "$as_me:$LINENO: result: $JAVAC" >&5
2764 echo "${ECHO_T}$JAVAC" >&6
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2770 if test "$JAVAC" != "javac"; then
2771 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2772 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2773 { (exit 1); exit 1; }; }
2775 # Extract the first word of "javah", so it can be a program name with args.
2776 set dummy javah; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_JAVAH+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$JAVAH"; then
2783 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_JAVAH=""javah""
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2802 JAVAH=$ac_cv_prog_JAVAH
2803 if test -n "$JAVAH"; then
2804 echo "$as_me:$LINENO: result: $JAVAH" >&5
2805 echo "${ECHO_T}$JAVAH" >&6
2807 echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2811 if test "$JAVAH" != "javah"; then
2812 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2813 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2814 { (exit 1); exit 1; }; }
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2827 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2828 # On Suns, sometimes $CPP names a directory.
2829 if test -n "$CPP" && test -d "$CPP"; then
2832 if test -z "$CPP"; then
2833 if test "${ac_cv_prog_CPP+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 # Double quotes because CPP needs to be expanded
2837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2840 for ac_c_preproc_warn_flag in '' yes
2842 # Use a header file that comes with gcc, so configuring glibc
2843 # with a fresh cross-compiler works.
2844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2845 # <limits.h> exists even on freestanding compilers.
2846 # On the NeXT, cc -E runs the code through the compiler's parser,
2847 # not just through cpp. "Syntax error" is here to catch this case.
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2856 # include <limits.h>
2858 # include <assert.h>
2862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } >/dev/null; then
2870 if test -s conftest.err; then
2871 ac_cpp_err=$ac_c_preproc_warn_flag
2878 if test -z "$ac_cpp_err"; then
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 # Broken: fails on valid input.
2887 rm -f conftest.err conftest.$ac_ext
2889 # OK, works on sane cases. Now check whether non-existent headers
2890 # can be detected and how.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #include <ac_nonexistent.h>
2900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } >/dev/null; then
2908 if test -s conftest.err; then
2909 ac_cpp_err=$ac_c_preproc_warn_flag
2916 if test -z "$ac_cpp_err"; then
2917 # Broken: success on invalid input.
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 # Passes both tests.
2927 rm -f conftest.err conftest.$ac_ext
2930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2931 rm -f conftest.err conftest.$ac_ext
2932 if $ac_preproc_ok; then
2944 echo "$as_me:$LINENO: result: $CPP" >&5
2945 echo "${ECHO_T}$CPP" >&6
2947 for ac_c_preproc_warn_flag in '' yes
2949 # Use a header file that comes with gcc, so configuring glibc
2950 # with a fresh cross-compiler works.
2951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2952 # <limits.h> exists even on freestanding compilers.
2953 # On the NeXT, cc -E runs the code through the compiler's parser,
2954 # not just through cpp. "Syntax error" is here to catch this case.
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2963 # include <limits.h>
2965 # include <assert.h>
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_c_preproc_warn_flag
2985 if test -z "$ac_cpp_err"; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 # Broken: fails on valid input.
2994 rm -f conftest.err conftest.$ac_ext
2996 # OK, works on sane cases. Now check whether non-existent headers
2997 # can be detected and how.
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #line $LINENO "configure"
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <ac_nonexistent.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3023 if test -z "$ac_cpp_err"; then
3024 # Broken: success on invalid input.
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 # Passes both tests.
3034 rm -f conftest.err conftest.$ac_ext
3037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3038 rm -f conftest.err conftest.$ac_ext
3039 if $ac_preproc_ok; then
3042 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3045 See \`config.log' for more details." >&2;}
3046 { (exit 1); exit 1; }; }
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 echo "$as_me:$LINENO: checking for egrep" >&5
3057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3058 if test "${ac_cv_prog_egrep+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3062 then ac_cv_prog_egrep='grep -E'
3063 else ac_cv_prog_egrep='egrep'
3066 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3067 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3068 EGREP=$ac_cv_prog_egrep
3071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3073 if test "${ac_cv_header_stdc+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 ac_cv_header_stdc=yes
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 ac_cv_header_stdc=no
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3117 if test $ac_cv_header_stdc = yes; then
3118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "memchr" >/dev/null 2>&1; then
3133 ac_cv_header_stdc=no
3139 if test $ac_cv_header_stdc = yes; then
3140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 $EGREP "free" >/dev/null 2>&1; then
3155 ac_cv_header_stdc=no
3161 if test $ac_cv_header_stdc = yes; then
3162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3163 if test "$cross_compiling" = yes; then
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3174 #if ((' ' & 0x0FF) == 0x020)
3175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3178 # define ISLOWER(c) \
3179 (('a' <= (c) && (c) <= 'i') \
3180 || ('j' <= (c) && (c) <= 'r') \
3181 || ('s' <= (c) && (c) <= 'z'))
3182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3190 for (i = 0; i < 256; i++)
3191 if (XOR (islower (i), ISLOWER (i))
3192 || toupper (i) != TOUPPER (i))
3197 rm -f conftest$ac_exeext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3199 (eval $ac_link) 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3210 echo "$as_me: program exited with status $ac_status" >&5
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 ac_cv_header_stdc=no
3217 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3222 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3223 if test $ac_cv_header_stdc = yes; then
3225 cat >>confdefs.h <<\_ACEOF
3226 #define STDC_HEADERS 1
3233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3244 inttypes.h stdint.h unistd.h
3246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 $ac_includes_default
3261 #include <$ac_header>
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 eval "$as_ac_Header=yes"
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3297 for ac_header in math.h
3299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3301 echo "$as_me:$LINENO: checking for $ac_header" >&5
3302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3309 # Is the header compilable?
3310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 $ac_includes_default
3320 #include <$ac_header>
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_header_compiler=yes
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_header_compiler=no
3341 rm -f conftest.$ac_objext conftest.$ac_ext
3342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3343 echo "${ECHO_T}$ac_header_compiler" >&6
3345 # Is the header present?
3346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3348 cat >conftest.$ac_ext <<_ACEOF
3349 #line $LINENO "configure"
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <$ac_header>
3357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3373 if test -z "$ac_cpp_err"; then
3374 ac_header_preproc=yes
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 ac_header_preproc=no
3381 rm -f conftest.err conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3383 echo "${ECHO_T}$ac_header_preproc" >&6
3385 # So? What about this header?
3386 case $ac_header_compiler:$ac_header_preproc in
3388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3394 ## ------------------------------------ ##
3395 ## Report this to bug-autoconf@gnu.org. ##
3396 ## ------------------------------------ ##
3399 sed "s/^/$as_me: WARNING: /" >&2
3402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3410 ## ------------------------------------ ##
3411 ## Report this to bug-autoconf@gnu.org. ##
3412 ## ------------------------------------ ##
3415 sed "s/^/$as_me: WARNING: /" >&2
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 eval "$as_ac_Header=$ac_header_preproc"
3425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3430 cat >>confdefs.h <<_ACEOF
3431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 ac_math_headers="yes"
3435 ac_math_headers="no"
3440 if test "$ac_math_headers" != yes; then
3441 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3442 echo "$as_me: error: \"math header file not found\"" >&2;}
3443 { (exit 1); exit 1; }; }
3447 #dnl check for the gnu multiprecission (gmp) header file
3449 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3450 #if test "$ac_gmp_headers" != yes; then
3451 # dnl gmp header not found.
3452 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3458 for ac_header in obstack.h
3460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3462 echo "$as_me:$LINENO: checking for $ac_header" >&5
3463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3470 # Is the header compilable?
3471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_includes_default
3481 #include <$ac_header>
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_header_compiler=yes
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_header_compiler=no
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3504 echo "${ECHO_T}$ac_header_compiler" >&6
3506 # Is the header present?
3507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <$ac_header>
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3534 if test -z "$ac_cpp_err"; then
3535 ac_header_preproc=yes
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_header_preproc=no
3542 rm -f conftest.err conftest.$ac_ext
3543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3544 echo "${ECHO_T}$ac_header_preproc" >&6
3546 # So? What about this header?
3547 case $ac_header_compiler:$ac_header_preproc in
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3555 ## ------------------------------------ ##
3556 ## Report this to bug-autoconf@gnu.org. ##
3557 ## ------------------------------------ ##
3560 sed "s/^/$as_me: WARNING: /" >&2
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3571 ## ------------------------------------ ##
3572 ## Report this to bug-autoconf@gnu.org. ##
3573 ## ------------------------------------ ##
3576 sed "s/^/$as_me: WARNING: /" >&2
3579 echo "$as_me:$LINENO: checking for $ac_header" >&5
3580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 eval "$as_ac_Header=$ac_header_preproc"
3586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3591 cat >>confdefs.h <<_ACEOF
3592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3594 ac_obstack_headers="yes"
3596 ac_obstack_headers="no"
3601 if test "$ac_obstack_headers" != yes; then
3602 { { echo "$as_me:$LINENO: error: \"obstack header file not found\"" >&5
3603 echo "$as_me: error: \"obstack header file not found\"" >&2;}
3604 { (exit 1); exit 1; }; }
3609 if test "$enable_firm_jni" = yes; then
3611 for ac_header in jni.h
3613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo "$as_me:$LINENO: checking for $ac_header" >&5
3616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623 # Is the header compilable?
3624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 $ac_includes_default
3634 #include <$ac_header>
3636 rm -f conftest.$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_header_compiler=yes
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_header_compiler=no
3655 rm -f conftest.$ac_objext conftest.$ac_ext
3656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3657 echo "${ECHO_T}$ac_header_compiler" >&6
3659 # Is the header present?
3660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <$ac_header>
3671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3687 if test -z "$ac_cpp_err"; then
3688 ac_header_preproc=yes
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_header_preproc=no
3695 rm -f conftest.err conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3697 echo "${ECHO_T}$ac_header_preproc" >&6
3699 # So? What about this header?
3700 case $ac_header_compiler:$ac_header_preproc in
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3708 ## ------------------------------------ ##
3709 ## Report this to bug-autoconf@gnu.org. ##
3710 ## ------------------------------------ ##
3713 sed "s/^/$as_me: WARNING: /" >&2
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3724 ## ------------------------------------ ##
3725 ## Report this to bug-autoconf@gnu.org. ##
3726 ## ------------------------------------ ##
3729 sed "s/^/$as_me: WARNING: /" >&2
3732 echo "$as_me:$LINENO: checking for $ac_header" >&5
3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 eval "$as_ac_Header=$ac_header_preproc"
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3744 cat >>confdefs.h <<_ACEOF
3745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3747 ac_jni_headers="yes"
3754 if test "$ac_jni_headers" != yes; then
3755 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&5
3756 echo "$as_me: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&2;}
3757 { (exit 1); exit 1; }; }
3763 #dnl check for the gnu multiprecission (gmp) library
3765 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3766 #if test "$ac_gmp_library" != yes; then
3767 # dnl gmp library not found.
3768 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3772 echo "$as_me:$LINENO: checking for main in -lm" >&5
3773 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3774 if test "${ac_cv_lib_m_main+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 ac_check_lib_save_LIBS=$LIBS
3779 cat >conftest.$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3796 rm -f conftest.$ac_objext conftest$ac_exeext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798 (eval $ac_link) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -s conftest$ac_exeext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_lib_m_main=yes
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3816 LIBS=$ac_check_lib_save_LIBS
3818 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3819 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3820 if test $ac_cv_lib_m_main = yes; then
3826 if test "$ac_m_library" != yes; then
3827 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3828 echo "$as_me: error: \"standard math library not found\"" >&2;}
3829 { (exit 1); exit 1; }; }
3837 echo "$as_me:$LINENO: checking for strerror" >&5
3838 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3839 if test "${ac_cv_func_strerror+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 /* System header to define __stub macros and hopefully few prototypes,
3850 which can conflict with char strerror (); below.
3851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852 <limits.h> exists even on freestanding compilers. */
3854 # include <limits.h>
3856 # include <assert.h>
3858 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3866 /* The GNU C library defines this for functions which it implements
3867 to always fail with ENOSYS. Some functions are actually named
3868 something starting with __ and the normal name is an alias. */
3869 #if defined (__stub_strerror) || defined (__stub___strerror)
3872 char (*f) () = strerror;
3881 return f != strerror;
3886 rm -f conftest.$ac_objext conftest$ac_exeext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888 (eval $ac_link) 2>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_func_strerror=yes
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_cv_func_strerror=no
3905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3907 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3908 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3909 if test $ac_cv_func_strerror = yes; then
3912 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3913 echo "$as_me: error: \"need strerror function\"" >&2;}
3914 { (exit 1); exit 1; }; }
3922 ac_config_files="$ac_config_files $ac_output_file"
3923 ac_config_commands="$ac_config_commands default"
3924 cat >confcache <<\_ACEOF
3925 # This file is a shell script that caches the results of configure
3926 # tests run on this system so they can be shared between configure
3927 # scripts and configure runs, see configure's option --config-cache.
3928 # It is not useful on other systems. If it contains results you don't
3929 # want to keep, you may remove or edit it.
3931 # config.status only pays attention to the cache file if you give it
3932 # the --recheck option to rerun configure.
3934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3940 # The following way of writing the cache mishandles newlines in values,
3941 # but we know of no workaround that is simple, portable, and efficient.
3942 # So, don't put newlines in cache variables' values.
3943 # Ultrix sh set writes to stderr and can't be redirected directly,
3944 # and sets the high bit in the cache file unless we assign to the vars.
3947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3949 # `set' does not quote correctly, so add quotes (double-quote
3950 # substitution turns \\\\ into \\, and sed turns \\ into \).
3953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3956 # `set' quotes correctly as required by POSIX, so do not add quotes.
3958 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3967 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3969 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3970 if test -w $cache_file; then
3971 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3972 cat confcache >$cache_file
3974 echo "not updating unwritable cache $cache_file"
3979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3980 # Let make expand exec_prefix.
3981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3985 # trailing colons and then remove the whole line if VPATH becomes empty
3986 # (actually we leave an empty line to preserve line numbers).
3987 if test "x$srcdir" = x.; then
3988 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3989 s/:*\$(srcdir):*/:/;
3990 s/:*\${srcdir}:*/:/;
3992 s/^\([^=]*=[ ]*\):*/\1/;
3998 DEFS=-DHAVE_CONFIG_H
4002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4003 # 1. Remove the extension, and $U if already installed.
4004 ac_i=`echo "$ac_i" |
4005 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4007 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4008 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4012 LTLIBOBJS=$ac_ltlibobjs
4016 : ${CONFIG_STATUS=./config.status}
4017 ac_clean_files_save=$ac_clean_files
4018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4019 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4020 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4021 cat >$CONFIG_STATUS <<_ACEOF
4023 # Generated by $as_me.
4024 # Run this file to recreate the current configuration.
4025 # Compiler output produced by configure, useful for debugging
4026 # configure, is in config.log if it exists.
4031 SHELL=\${CONFIG_SHELL-$SHELL}
4034 cat >>$CONFIG_STATUS <<\_ACEOF
4035 ## --------------------- ##
4036 ## M4sh Initialization. ##
4037 ## --------------------- ##
4039 # Be Bourne compatible
4040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4043 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4044 # is contrary to our usage. Disable this feature.
4045 alias -g '${1+"$@"}'='"$@"'
4046 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4050 # Support unset when possible.
4051 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4058 # Work around bugs in pre-3.0 UWIN ksh.
4059 $as_unset ENV MAIL MAILPATH
4066 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4067 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4068 LC_TELEPHONE LC_TIME
4070 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4071 eval $as_var=C; export $as_var
4077 # Required to use basename.
4078 if expr a : '\(a\)' >/dev/null 2>&1; then
4084 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4085 as_basename=basename
4091 # Name of the executable.
4092 as_me=`$as_basename "$0" ||
4093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4094 X"$0" : 'X\(//\)$' \| \
4095 X"$0" : 'X\(/\)$' \| \
4096 . : '\(.\)' 2>/dev/null ||
4098 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4099 /^X\/\(\/\/\)$/{ s//\1/; q; }
4100 /^X\/\(\/\).*/{ s//\1/; q; }
4104 # PATH needs CR, and LINENO needs CR and PATH.
4105 # Avoid depending upon Character Ranges.
4106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4109 as_cr_digits='0123456789'
4110 as_cr_alnum=$as_cr_Letters$as_cr_digits
4112 # The user is always right.
4113 if test "${PATH_SEPARATOR+set}" != set; then
4114 echo "#! /bin/sh" >conf$$.sh
4115 echo "exit 0" >>conf$$.sh
4117 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4128 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4129 test "x$as_lineno_1" != "x$as_lineno_2" &&
4130 test "x$as_lineno_3" = "x$as_lineno_2" || {
4131 # Find who we are. Look in the path if we contain no path at all
4134 *[\\/]* ) as_myself=$0 ;;
4135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4145 # We did not find ourselves, most probably we were run as `sh COMMAND'
4146 # in which case we are not to be found in the path.
4147 if test "x$as_myself" = x; then
4150 if test ! -f "$as_myself"; then
4151 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4152 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4153 { (exit 1); exit 1; }; }
4155 case $CONFIG_SHELL in
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4161 test -z "$as_dir" && as_dir=.
4162 for as_base in sh bash ksh sh5; do
4165 if ("$as_dir/$as_base" -c '
4168 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4169 test "x$as_lineno_1" != "x$as_lineno_2" &&
4170 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4171 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4172 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4173 CONFIG_SHELL=$as_dir/$as_base
4175 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4183 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4184 # uniformly replaced by the line number. The first 'sed' inserts a
4185 # line-number line before each line; the second 'sed' does the real
4186 # work. The second script uses 'N' to pair each line-number line
4187 # with the numbered line, and appends trailing '-' during
4188 # substitution so that $LINENO is not a special case at line end.
4189 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4190 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4191 sed '=' <$as_myself |
4196 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4199 s,^['$as_cr_digits']*\n,,
4201 chmod +x $as_me.lineno ||
4202 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4203 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4204 { (exit 1); exit 1; }; }
4206 # Don't try to exec as it changes $[0], causing all sort of problems
4207 # (the dirname of $[0] is not the place where we might find the
4208 # original and so on. Autoconf is especially sensible to this).
4210 # Exit status is that of the last command.
4215 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4216 *c*,-n*) ECHO_N= ECHO_C='
4218 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4219 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4222 if expr a : '\(a\)' >/dev/null 2>&1; then
4228 rm -f conf$$ conf$$.exe conf$$.file
4230 if ln -s conf$$.file conf$$ 2>/dev/null; then
4231 # We could just check for DJGPP; but this test a) works b) is more generic
4232 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4233 if test -f conf$$.exe; then
4234 # Don't use ln at all; we don't have any links
4239 elif ln conf$$.file conf$$ 2>/dev/null; then
4244 rm -f conf$$ conf$$.exe conf$$.file
4246 if mkdir -p . 2>/dev/null; then
4252 as_executable_p="test -f"
4254 # Sed expression to map a string onto a valid CPP name.
4255 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4257 # Sed expression to map a string onto a valid variable name.
4258 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4262 # We need space, tab and new line, in precisely that order.
4272 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4273 # report actual input values of CONFIG_FILES etc. instead of their
4274 # values after options handling. Logging --version etc. is OK.
4278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4279 ## Running $as_me. ##
4284 This file was extended by libfirm $as_me 0.3.0, which was
4285 generated by GNU Autoconf 2.57. Invocation command line was
4287 CONFIG_FILES = $CONFIG_FILES
4288 CONFIG_HEADERS = $CONFIG_HEADERS
4289 CONFIG_LINKS = $CONFIG_LINKS
4290 CONFIG_COMMANDS = $CONFIG_COMMANDS
4294 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4298 # Files that config.status was made for.
4299 if test -n "$ac_config_files"; then
4300 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4303 if test -n "$ac_config_headers"; then
4304 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4307 if test -n "$ac_config_links"; then
4308 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4311 if test -n "$ac_config_commands"; then
4312 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4315 cat >>$CONFIG_STATUS <<\_ACEOF
4318 \`$as_me' instantiates files from templates according to the
4319 current configuration.
4321 Usage: $0 [OPTIONS] [FILE]...
4323 -h, --help print this help, then exit
4324 -V, --version print version number, then exit
4325 -q, --quiet do not print progress messages
4326 -d, --debug don't remove temporary files
4327 --recheck update $as_me by reconfiguring in the same conditions
4328 --file=FILE[:TEMPLATE]
4329 instantiate the configuration file FILE
4330 --header=FILE[:TEMPLATE]
4331 instantiate the configuration header FILE
4333 Configuration files:
4336 Configuration headers:
4339 Configuration commands:
4342 Report bugs to <bug-autoconf@gnu.org>."
4345 cat >>$CONFIG_STATUS <<_ACEOF
4347 libfirm config.status 0.3.0
4348 configured by $0, generated by GNU Autoconf 2.57,
4349 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4351 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4352 Free Software Foundation, Inc.
4353 This config.status script is free software; the Free Software Foundation
4354 gives unlimited permission to copy, distribute and modify it."
4359 cat >>$CONFIG_STATUS <<\_ACEOF
4360 # If no file are specified by the user, then we need to provide default
4361 # value. By we need to know if files were specified by the user.
4367 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4368 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4376 *) # This is not an option, so the user has probably given explicit
4379 ac_need_defaults=false;;
4383 # Handling of the options.
4385 cat >>$CONFIG_STATUS <<\_ACEOF
4386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4388 --version | --vers* | -V )
4389 echo "$ac_cs_version"; exit 0 ;;
4391 # Conflict between --help and --header
4392 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4393 Try \`$0 --help' for more information." >&5
4394 echo "$as_me: error: ambiguous option: $1
4395 Try \`$0 --help' for more information." >&2;}
4396 { (exit 1); exit 1; }; };;
4397 --help | --hel | -h )
4398 echo "$ac_cs_usage"; exit 0 ;;
4399 --debug | --d* | -d )
4401 --file | --fil | --fi | --f )
4403 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4404 ac_need_defaults=false;;
4405 --header | --heade | --head | --hea )
4407 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4408 ac_need_defaults=false;;
4409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4414 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4415 Try \`$0 --help' for more information." >&5
4416 echo "$as_me: error: unrecognized option: $1
4417 Try \`$0 --help' for more information." >&2;}
4418 { (exit 1); exit 1; }; } ;;
4420 *) ac_config_targets="$ac_config_targets $1" ;;
4426 ac_configure_extra_args=
4428 if $ac_cs_silent; then
4430 ac_configure_extra_args="$ac_configure_extra_args --silent"
4434 cat >>$CONFIG_STATUS <<_ACEOF
4435 if \$ac_cs_recheck; then
4436 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4437 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4446 cat >>$CONFIG_STATUS <<\_ACEOF
4447 for ac_config_target in $ac_config_targets
4449 case "$ac_config_target" in
4450 # Handling of arguments.
4451 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4452 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4453 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4454 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4455 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4456 { (exit 1); exit 1; }; };;
4460 # If the user did not use the arguments to specify the items to instantiate,
4461 # then the envvar interface is used. Set only those that are not.
4462 # We use the long form for the default assignment because of an extremely
4463 # bizarre bug on SunOS 4.1.3.
4464 if $ac_need_defaults; then
4465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4470 # Have a temporary directory for convenience. Make it in the build tree
4471 # simply because there is no reason to put it here, and in addition,
4472 # creating and moving files from /tmp can sometimes cause problems.
4473 # Create a temporary directory, and hook for its removal unless debugging.
4476 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4477 trap '{ (exit 1); exit 1; }' 1 2 13 15
4480 # Create a (secure) tmp directory for tmp files.
4483 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4484 test -n "$tmp" && test -d "$tmp"
4487 tmp=./confstat$$-$RANDOM
4488 (umask 077 && mkdir $tmp)
4491 echo "$me: cannot create a temporary directory in ." >&2
4492 { (exit 1); exit 1; }
4497 cat >>$CONFIG_STATUS <<_ACEOF
4500 # CONFIG_FILES section.
4503 # No need to generate the scripts if there are no CONFIG_FILES.
4504 # This happens for instance when ./config.status config.h
4505 if test -n "\$CONFIG_FILES"; then
4506 # Protect against being on the right side of a sed subst in config.status.
4507 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4508 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4509 s,@SHELL@,$SHELL,;t t
4510 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4511 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4512 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4513 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4514 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4515 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4516 s,@exec_prefix@,$exec_prefix,;t t
4517 s,@prefix@,$prefix,;t t
4518 s,@program_transform_name@,$program_transform_name,;t t
4519 s,@bindir@,$bindir,;t t
4520 s,@sbindir@,$sbindir,;t t
4521 s,@libexecdir@,$libexecdir,;t t
4522 s,@datadir@,$datadir,;t t
4523 s,@sysconfdir@,$sysconfdir,;t t
4524 s,@sharedstatedir@,$sharedstatedir,;t t
4525 s,@localstatedir@,$localstatedir,;t t
4526 s,@libdir@,$libdir,;t t
4527 s,@includedir@,$includedir,;t t
4528 s,@oldincludedir@,$oldincludedir,;t t
4529 s,@infodir@,$infodir,;t t
4530 s,@mandir@,$mandir,;t t
4531 s,@build_alias@,$build_alias,;t t
4532 s,@host_alias@,$host_alias,;t t
4533 s,@target_alias@,$target_alias,;t t
4535 s,@ECHO_C@,$ECHO_C,;t t
4536 s,@ECHO_N@,$ECHO_N,;t t
4537 s,@ECHO_T@,$ECHO_T,;t t
4539 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4540 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4541 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4542 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4543 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4544 s,@enable_firm_jni@,$enable_firm_jni,;t t
4545 s,@disable_libiberty@,$disable_libiberty,;t t
4547 s,@CFLAGS@,$CFLAGS,;t t
4548 s,@LDFLAGS@,$LDFLAGS,;t t
4549 s,@CPPFLAGS@,$CPPFLAGS,;t t
4550 s,@ac_ct_CC@,$ac_ct_CC,;t t
4551 s,@EXEEXT@,$EXEEXT,;t t
4552 s,@OBJEXT@,$OBJEXT,;t t
4554 s,@ac_ct_LD@,$ac_ct_LD,;t t
4555 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4558 s,@RANLIB@,$RANLIB,;t t
4559 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4560 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4561 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4562 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4564 s,@DOXYGEN@,$DOXYGEN,;t t
4566 s,@JAVAC@,$JAVAC,;t t
4567 s,@JAVAH@,$JAVAH,;t t
4569 s,@EGREP@,$EGREP,;t t
4570 s,@LIBOBJS@,$LIBOBJS,;t t
4571 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4576 cat >>$CONFIG_STATUS <<\_ACEOF
4577 # Split the substitutions into bite-sized pieces for seds with
4578 # small command number limits, like on Digital OSF/1 and HP-UX.
4580 ac_sed_frag=1 # Number of current file.
4581 ac_beg=1 # First line for current file.
4582 ac_end=$ac_max_sed_lines # Line after last line for current file.
4585 while $ac_more_lines; do
4586 if test $ac_beg -gt 1; then
4587 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4589 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4591 if test ! -s $tmp/subs.frag; then
4594 # The purpose of the label and of the branching condition is to
4595 # speed up the sed processing (if there are no `@' at all, there
4596 # is no need to browse any of the substitutions).
4597 # These are the two extra sed commands mentioned above.
4599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4600 if test -z "$ac_sed_cmds"; then
4601 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4603 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4605 ac_sed_frag=`expr $ac_sed_frag + 1`
4607 ac_end=`expr $ac_end + $ac_max_sed_lines`
4610 if test -z "$ac_sed_cmds"; then
4613 fi # test -n "$CONFIG_FILES"
4616 cat >>$CONFIG_STATUS <<\_ACEOF
4617 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4618 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4620 - | *:- | *:-:* ) # input from stdin
4622 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4624 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4626 * ) ac_file_in=$ac_file.in ;;
4629 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4630 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4632 X"$ac_file" : 'X\(//\)[^/]' \| \
4633 X"$ac_file" : 'X\(//\)$' \| \
4634 X"$ac_file" : 'X\(/\)' \| \
4635 . : '\(.\)' 2>/dev/null ||
4637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4639 /^X\(\/\/\)$/{ s//\1/; q; }
4640 /^X\(\/\).*/{ s//\1/; q; }
4642 { if $as_mkdir_p; then
4647 while test ! -d "$as_dir"; do
4648 as_dirs="$as_dir $as_dirs"
4649 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4651 X"$as_dir" : 'X\(//\)[^/]' \| \
4652 X"$as_dir" : 'X\(//\)$' \| \
4653 X"$as_dir" : 'X\(/\)' \| \
4654 . : '\(.\)' 2>/dev/null ||
4656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4658 /^X\(\/\/\)$/{ s//\1/; q; }
4659 /^X\(\/\).*/{ s//\1/; q; }
4662 test ! -n "$as_dirs" || mkdir $as_dirs
4663 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4664 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4665 { (exit 1); exit 1; }; }; }
4669 if test "$ac_dir" != .; then
4670 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4671 # A "../" for each directory in $ac_dir_suffix.
4672 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4674 ac_dir_suffix= ac_top_builddir=
4678 .) # No --srcdir option. We are building in place.
4680 if test -z "$ac_top_builddir"; then
4683 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4685 [\\/]* | ?:[\\/]* ) # Absolute path.
4686 ac_srcdir=$srcdir$ac_dir_suffix;
4687 ac_top_srcdir=$srcdir ;;
4689 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4690 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4692 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4694 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4695 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4696 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4697 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4702 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4705 if test x"$ac_file" != x-; then
4706 { echo "$as_me:$LINENO: creating $ac_file" >&5
4707 echo "$as_me: creating $ac_file" >&6;}
4710 # Let's still pretend it is `configure' which instantiates (i.e., don't
4711 # use $as_me), people would be surprised to read:
4712 # /* config.h. Generated by config.status. */
4713 if test x"$ac_file" = x-; then
4716 configure_input="$ac_file. "
4718 configure_input=$configure_input"Generated from `echo $ac_file_in |
4719 sed 's,.*/,,'` by configure."
4721 # First look for the input files in the build tree, otherwise in the
4723 ac_file_inputs=`IFS=:
4724 for f in $ac_file_in; do
4726 -) echo $tmp/stdin ;;
4728 # Absolute (can't be DOS-style, as IFS=:)
4729 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4730 echo "$as_me: error: cannot find input file: $f" >&2;}
4731 { (exit 1); exit 1; }; }
4734 if test -f "$f"; then
4737 elif test -f "$srcdir/$f"; then
4742 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4743 echo "$as_me: error: cannot find input file: $f" >&2;}
4744 { (exit 1); exit 1; }; }
4747 done` || { (exit 1); exit 1; }
4749 cat >>$CONFIG_STATUS <<_ACEOF
4753 cat >>$CONFIG_STATUS <<\_ACEOF
4755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4756 s,@configure_input@,$configure_input,;t t
4757 s,@srcdir@,$ac_srcdir,;t t
4758 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4759 s,@top_srcdir@,$ac_top_srcdir,;t t
4760 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4761 s,@builddir@,$ac_builddir,;t t
4762 s,@abs_builddir@,$ac_abs_builddir,;t t
4763 s,@top_builddir@,$ac_top_builddir,;t t
4764 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4765 s,@INSTALL@,$ac_INSTALL,;t t
4766 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4768 if test x"$ac_file" != x-; then
4769 mv $tmp/out $ac_file
4777 cat >>$CONFIG_STATUS <<\_ACEOF
4780 # CONFIG_HEADER section.
4783 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4784 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4786 # ac_d sets the value in "#define NAME VALUE" lines.
4787 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4788 ac_dB='[ ].*$,\1#\2'
4791 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4792 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4793 ac_uB='$,\1#\2define\3'
4797 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4800 - | *:- | *:-:* ) # input from stdin
4802 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4804 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4806 * ) ac_file_in=$ac_file.in ;;
4809 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4810 echo "$as_me: creating $ac_file" >&6;}
4812 # First look for the input files in the build tree, otherwise in the
4814 ac_file_inputs=`IFS=:
4815 for f in $ac_file_in; do
4817 -) echo $tmp/stdin ;;
4819 # Absolute (can't be DOS-style, as IFS=:)
4820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4821 echo "$as_me: error: cannot find input file: $f" >&2;}
4822 { (exit 1); exit 1; }; }
4825 if test -f "$f"; then
4828 elif test -f "$srcdir/$f"; then
4833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4834 echo "$as_me: error: cannot find input file: $f" >&2;}
4835 { (exit 1); exit 1; }; }
4838 done` || { (exit 1); exit 1; }
4839 # Remove the trailing spaces.
4840 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4844 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4845 # `conftest.undefs', that substitutes the proper values into
4846 # config.h.in to produce config.h. The first handles `#define'
4847 # templates, and the second `#undef' templates.
4848 # And first: Protect against being on the right side of a sed subst in
4849 # config.status. Protect against being in an unquoted here document
4851 rm -f conftest.defines conftest.undefs
4852 # Using a here document instead of a string reduces the quoting nightmare.
4853 # Putting comments in sed scripts is not portable.
4855 # `end' is used to avoid that the second main sed command (meant for
4856 # 0-ary CPP macros) applies to n-ary macro definitions.
4857 # See the Autoconf documentation for `clear'.
4858 cat >confdef2sed.sed <<\_ACEOF
4863 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4865 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4868 # If some macros were called several times there might be several times
4869 # the same #defines, which is useless. Nevertheless, we may not want to
4870 # sort them, since we want the *last* AC-DEFINE to be honored.
4871 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4872 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4873 rm -f confdef2sed.sed
4875 # This sed command replaces #undef with comments. This is necessary, for
4876 # example, in the case of _POSIX_SOURCE, which is predefined and required
4877 # on some systems where configure will not decide to define it.
4878 cat >>conftest.undefs <<\_ACEOF
4879 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4882 # Break up conftest.defines because some shells have a limit on the size
4883 # of here documents, and old seds have small limits too (100 cmds).
4884 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4885 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4886 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4887 echo ' :' >>$CONFIG_STATUS
4889 while grep . conftest.defines >/dev/null
4891 # Write a limited-size here document to $tmp/defines.sed.
4892 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4893 # Speed up: don't consider the non `#define' lines.
4894 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4895 # Work around the forget-to-reset-the-flag bug.
4896 echo 't clr' >>$CONFIG_STATUS
4897 echo ': clr' >>$CONFIG_STATUS
4898 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4900 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4904 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4905 rm -f conftest.defines
4906 mv conftest.tail conftest.defines
4908 rm -f conftest.defines
4909 echo ' fi # grep' >>$CONFIG_STATUS
4910 echo >>$CONFIG_STATUS
4912 # Break up conftest.undefs because some shells have a limit on the size
4913 # of here documents, and old seds have small limits too (100 cmds).
4914 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4916 while grep . conftest.undefs >/dev/null
4918 # Write a limited-size here document to $tmp/undefs.sed.
4919 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4920 # Speed up: don't consider the non `#undef'
4921 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4922 # Work around the forget-to-reset-the-flag bug.
4923 echo 't clr' >>$CONFIG_STATUS
4924 echo ': clr' >>$CONFIG_STATUS
4925 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4927 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4931 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4932 rm -f conftest.undefs
4933 mv conftest.tail conftest.undefs
4935 rm -f conftest.undefs
4937 cat >>$CONFIG_STATUS <<\_ACEOF
4938 # Let's still pretend it is `configure' which instantiates (i.e., don't
4939 # use $as_me), people would be surprised to read:
4940 # /* config.h. Generated by config.status. */
4941 if test x"$ac_file" = x-; then
4942 echo "/* Generated by configure. */" >$tmp/config.h
4944 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4946 cat $tmp/in >>$tmp/config.h
4948 if test x"$ac_file" != x-; then
4949 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4950 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4951 echo "$as_me: $ac_file is unchanged" >&6;}
4953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4955 X"$ac_file" : 'X\(//\)[^/]' \| \
4956 X"$ac_file" : 'X\(//\)$' \| \
4957 X"$ac_file" : 'X\(/\)' \| \
4958 . : '\(.\)' 2>/dev/null ||
4960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4962 /^X\(\/\/\)$/{ s//\1/; q; }
4963 /^X\(\/\).*/{ s//\1/; q; }
4965 { if $as_mkdir_p; then
4970 while test ! -d "$as_dir"; do
4971 as_dirs="$as_dir $as_dirs"
4972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4974 X"$as_dir" : 'X\(//\)[^/]' \| \
4975 X"$as_dir" : 'X\(//\)$' \| \
4976 X"$as_dir" : 'X\(/\)' \| \
4977 . : '\(.\)' 2>/dev/null ||
4979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4981 /^X\(\/\/\)$/{ s//\1/; q; }
4982 /^X\(\/\).*/{ s//\1/; q; }
4985 test ! -n "$as_dirs" || mkdir $as_dirs
4986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4988 { (exit 1); exit 1; }; }; }
4991 mv $tmp/config.h $ac_file
4999 cat >>$CONFIG_STATUS <<\_ACEOF
5002 # CONFIG_COMMANDS section.
5004 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5005 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5006 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5007 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5008 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5009 X"$ac_dest" : 'X\(//\)[^/]' \| \
5010 X"$ac_dest" : 'X\(//\)$' \| \
5011 X"$ac_dest" : 'X\(/\)' \| \
5012 . : '\(.\)' 2>/dev/null ||
5014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5016 /^X\(\/\/\)$/{ s//\1/; q; }
5017 /^X\(\/\).*/{ s//\1/; q; }
5021 if test "$ac_dir" != .; then
5022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5023 # A "../" for each directory in $ac_dir_suffix.
5024 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5026 ac_dir_suffix= ac_top_builddir=
5030 .) # No --srcdir option. We are building in place.
5032 if test -z "$ac_top_builddir"; then
5035 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5037 [\\/]* | ?:[\\/]* ) # Absolute path.
5038 ac_srcdir=$srcdir$ac_dir_suffix;
5039 ac_top_srcdir=$srcdir ;;
5041 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5042 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5044 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5046 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5047 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5048 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5049 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5052 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5053 echo "$as_me: executing $ac_dest commands" >&6;}
5055 default ) touch stamp-h ;;
5060 cat >>$CONFIG_STATUS <<\_ACEOF
5062 { (exit 0); exit 0; }
5064 chmod +x $CONFIG_STATUS
5065 ac_clean_files=$ac_clean_files_save
5068 # configure is writing to config.log, and then calls config.status.
5069 # config.status does its own redirection, appending to config.log.
5070 # Unfortunately, on DOS this fails, as config.log is still kept open
5071 # by configure, so config.status won't be able to write to it; its
5072 # output is simply discarded. So we exec the FD to /dev/null,
5073 # effectively closing config.log, so it can be properly (re)opened and
5074 # appended to by config.status. When coming back to configure, we
5075 # need to make the FD available again.
5076 if test "$no_create" != yes; then
5078 ac_config_status_args=
5079 test "$silent" = yes &&
5080 ac_config_status_args="$ac_config_status_args --quiet"
5082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5085 # would make configure fail if this is the last instruction.
5086 $ac_cs_success || { (exit 1); exit 1; }