2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.56 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libfirm'
269 PACKAGE_TARNAME='libfirm'
270 PACKAGE_VERSION='0.3.0'
271 PACKAGE_STRING='libfirm 0.3.0'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libfirm_conf_env enable_debug_libfirm enable_gcc_inline enable_profile_libfirm enable_auto_documentation enable_firm_jni CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ROBODOC JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS'
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
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-includedir=dir add directory to include search path
855 Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 ac_dir_suffix= ac_top_builddir=
886 .) # No --srcdir option. We are building in place.
888 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
902 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
903 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
904 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
905 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
908 # Check for guested configure; otherwise get Cygnus style configure.
909 if test -f $ac_srcdir/configure.gnu; then
911 $SHELL $ac_srcdir/configure.gnu --help=recursive
912 elif test -f $ac_srcdir/configure; then
914 $SHELL $ac_srcdir/configure --help=recursive
915 elif test -f $ac_srcdir/configure.ac ||
916 test -f $ac_srcdir/configure.in; then
920 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 test -n "$ac_init_help" && exit 0
927 if $ac_init_version; then
929 libfirm configure 0.3.0
930 generated by GNU Autoconf 2.56
932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
933 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
944 It was created by libfirm $as_me 0.3.0, which was
945 generated by GNU Autoconf 2.56. Invocation command line was
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 test -z "$as_dir" && as_dir=.
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_must_keep_next=false
1010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021 if test $ac_must_keep_next = true; then
1022 ac_must_keep_next=false # Got value, back to normal.
1025 *=* | --config-cache | -C | -disable-* | --disable-* \
1026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028 | -with-* | --with-* | -without-* | --without-* | --x)
1029 case "$ac_configure_args0 " in
1030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033 -* ) ac_must_keep_next=true ;;
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1085 for ac_var in $ac_subst_vars
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1092 if test -n "$ac_subst_files"; then
1099 for ac_var in $ac_subst_files
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -s confdefs.h; then
1114 sed "/^$/d" confdefs.h | sort
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1121 rm -f core core.* *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 # Predefined preprocessor variables.
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1197 # Check that the precious variables saved in the cache have kept the same
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1282 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1283 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1284 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
1286 ac_config_headers="$ac_config_headers config.h"
1289 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1293 # Check whether --with-includedir or --without-includedir was given.
1294 if test "${with_includedir+set}" = set; then
1295 withval="$with_includedir"
1296 CPPFLAGS=$CPPFLAGS" -I"$withval
1302 # Check whether --enable-debug or --disable-debug was given.
1303 if test "${enable_debug+set}" = set; then
1304 enableval="$enable_debug"
1305 if test "$enableval" = yes; then
1306 cat >>confdefs.h <<\_ACEOF
1307 #define DEBUG_libfirm 1
1311 cat >>confdefs.h <<\_ACEOF
1319 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1320 if test "${enable_gcc_inline+set}" = set; then
1321 enableval="$enable_gcc_inline"
1322 if test "$enableval" = yes; then
1323 cat >>confdefs.h <<\_ACEOF
1324 #define USE_GCC_INLINE 1
1332 # Check whether --enable-profile or --disable-profile was given.
1333 if test "${enable_profile+set}" = set; then
1334 enableval="$enable_profile"
1335 if test "$enableval"=yes; then
1336 enable_profile_libfirm=yes
1339 enable_profile_libfirm=no
1343 # Check whether --enable-autodoc or --disable-autodoc was given.
1344 if test "${enable_autodoc+set}" = set; then
1345 enableval="$enable_autodoc"
1346 if test "$enableval"=yes; then
1347 enable_auto_documentation=yes
1350 enable_auto_documentation=no
1355 # Check whether --enable-firmjni or --disable-firmjni was given.
1356 if test "${enable_firmjni+set}" = set; then
1357 enableval="$enable_firmjni"
1358 if test "$enableval"=yes; then
1369 ac_cpp='$CPP $CPPFLAGS'
1370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1412 # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1452 if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 if test -n "$CC"; then
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1490 if test -z "$ac_cv_prog_CC"; then
1492 # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1567 if test $# != 0; then
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1626 test -n "$CC" && break
1629 if test -z "$CC"; then
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1668 test -n "$ac_ct_CC" && break
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686 ac_compiler=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #line $LINENO "configure"
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h. */
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1724 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1725 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736 # Be careful to initialize this variable, since it used to be cached.
1737 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739 # b.out is created by i960 compilers.
1740 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1742 test -f "$ac_file" || continue
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1747 # This is the source file.
1750 # We found the default executable, but exeext='' is most
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1765 echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe; then
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1819 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1848 rm -f conftest$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850 echo "${ECHO_T}$ac_cv_exeext" >&6
1852 rm -f conftest.$ac_ext
1853 EXEEXT=$ac_cv_exeext
1855 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857 if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 cat >conftest.$ac_ext <<_ACEOF
1861 #line $LINENO "configure"
1864 cat confdefs.h >>conftest.$ac_ext
1865 cat >>conftest.$ac_ext <<_ACEOF
1866 /* end confdefs.h. */
1876 rm -f conftest.o conftest.obj
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1890 echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1902 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903 echo "${ECHO_T}$ac_cv_objext" >&6
1904 OBJEXT=$ac_cv_objext
1906 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 cat >conftest.$ac_ext <<_ACEOF
1912 #line $LINENO "configure"
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h. */
1930 rm -f conftest.$ac_objext
1931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -s conftest.$ac_objext'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1949 rm -f conftest.$ac_objext conftest.$ac_ext
1950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1953 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1954 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1955 GCC=`test $ac_compiler_gnu = yes && echo yes`
1956 ac_test_CFLAGS=${CFLAGS+set}
1957 ac_save_CFLAGS=$CFLAGS
1959 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1960 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1961 if test "${ac_cv_prog_cc_g+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1994 echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 rm -f conftest.$ac_objext conftest.$ac_ext
2001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2002 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2003 if test "$ac_test_CFLAGS" = set; then
2004 CFLAGS=$ac_save_CFLAGS
2005 elif test $ac_cv_prog_cc_g = yes; then
2006 if test "$GCC" = yes; then
2012 if test "$GCC" = yes; then
2018 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2019 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2020 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 ac_cv_prog_cc_stdc=no
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2034 #include <sys/types.h>
2035 #include <sys/stat.h>
2036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2037 struct buf { int x; };
2038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2039 static char *e (p, i)
2045 static char *f (char * (*g) (char **, int), char **p, ...)
2050 s = g (p, va_arg (v,int));
2054 int test (int i, double x);
2055 struct s1 {int (*f) (int a);};
2056 struct s2 {int (*f) (double a);};
2057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2068 # Don't try gcc -ansi; that turns off useful extensions and
2069 # breaks some systems' header files.
2070 # AIX -qlanglvl=ansi
2071 # Ultrix and OSF/1 -std1
2072 # HP-UX 10.20 and later -Ae
2073 # HP-UX older versions -Aa -D_HPUX_SOURCE
2074 # SVR4 -Xc -D__EXTENSIONS__
2075 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2077 CC="$ac_save_CC $ac_arg"
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_cv_prog_cc_stdc=$ac_arg
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2097 rm -f conftest.$ac_objext
2099 rm -f conftest.$ac_ext conftest.$ac_objext
2104 case "x$ac_cv_prog_cc_stdc" in
2106 echo "$as_me:$LINENO: result: none needed" >&5
2107 echo "${ECHO_T}none needed" >&6 ;;
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2111 CC="$CC $ac_cv_prog_cc_stdc" ;;
2114 # Some people use a C++ compiler to compile C. Since we use `exit',
2115 # in C++ we need to declare it. In case someone uses the same compiler
2116 # for both compiling C and C++ we need to have the C++ compiler decide
2117 # the declaration of exit, since it's the most demanding environment.
2118 cat >conftest.$ac_ext <<_ACEOF
2123 rm -f conftest.$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 for ac_declaration in \
2137 '#include <stdlib.h>' \
2138 'extern "C" void std::exit (int) throw (); using std::exit;' \
2139 'extern "C" void std::exit (int); using std::exit;' \
2140 'extern "C" void exit (int) throw ();' \
2141 'extern "C" void exit (int);' \
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #line $LINENO "configure"
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2180 rm -f conftest.$ac_objext conftest.$ac_ext
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2218 if test -n "$ac_declaration"; then
2219 echo '#ifdef __cplusplus' >>confdefs.h
2220 echo $ac_declaration >>confdefs.h
2221 echo '#endif' >>confdefs.h
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.$ac_objext conftest.$ac_ext
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238 if test -z "$LD"; then
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}ld; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_LD+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$LD"; then
2248 ac_cv_prog_LD="$LD" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 ac_cv_prog_LD="${ac_tool_prefix}ld"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test -n "$LD"; then
2268 echo "$as_me:$LINENO: result: $LD" >&5
2269 echo "${ECHO_T}$LD" >&6
2271 echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2276 if test -z "$ac_cv_prog_LD"; then
2278 # Extract the first word of "ld", so it can be a program name with args.
2279 set dummy ld; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$ac_ct_LD"; then
2286 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_ac_ct_LD="ld"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2305 if test -n "$ac_ct_LD"; then
2306 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2307 echo "${ECHO_T}$ac_ct_LD" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2320 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2321 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2322 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 libfirm_cv_prog_ld_r=no
2328 cat > conftest.$ac_ext <<EOF
2329 int foo() { return 0; }
2331 if eval $ac_compile && mv conftest.o conftest2.o; then
2332 cat > conftest.$ac_ext <<EOF
2334 int main() { return foo(); }
2336 if eval $ac_compile; then
2337 if $LD -r -o conftest conftest.o conftest2.o; then
2338 libfirm_cv_prog_ld_r=yes
2345 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2346 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2349 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2350 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2351 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2352 { (exit 1); exit 1; }; }
2355 # Extract the first word of "ar", so it can be a program name with args.
2356 set dummy ar; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_AR+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$AR"; then
2363 ac_cv_prog_AR="$AR" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_AR=""ar""
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2383 if test -n "$AR"; then
2384 echo "$as_me:$LINENO: result: $AR" >&5
2385 echo "${ECHO_T}$AR" >&6
2387 echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2391 if test "$AR" != "ar"; then
2392 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2393 echo "$as_me: error: need ar for creating archives" >&2;}
2394 { (exit 1); exit 1; }; }
2397 # Extract the first word of "tar", so it can be a program name with args.
2398 set dummy tar; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_TAR+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$TAR"; then
2405 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_TAR=""tar""
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2425 if test -n "$TAR"; then
2426 echo "$as_me:$LINENO: result: $TAR" >&5
2427 echo "${ECHO_T}$TAR" >&6
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 if test "$TAR" != "tar"; then
2434 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2435 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2436 { (exit 1); exit 1; }; }
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_RANLIB+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$RANLIB"; then
2449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 RANLIB=$ac_cv_prog_RANLIB
2468 if test -n "$RANLIB"; then
2469 echo "$as_me:$LINENO: result: $RANLIB" >&5
2470 echo "${ECHO_T}$RANLIB" >&6
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2477 if test -z "$ac_cv_prog_RANLIB"; then
2478 ac_ct_RANLIB=$RANLIB
2479 # Extract the first word of "ranlib", so it can be a program name with args.
2480 set dummy ranlib; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$ac_ct_RANLIB"; then
2487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_ac_ct_RANLIB="ranlib"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2507 if test -n "$ac_ct_RANLIB"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2509 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2515 RANLIB=$ac_ct_RANLIB
2517 RANLIB="$ac_cv_prog_RANLIB"
2522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2523 if test -f $ac_dir/install-sh; then
2525 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 elif test -f $ac_dir/install.sh; then
2529 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 elif test -f $ac_dir/shtool; then
2533 ac_install_sh="$ac_aux_dir/shtool install -c"
2537 if test -z "$ac_aux_dir"; then
2538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2540 { (exit 1); exit 1; }; }
2542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2560 if test -z "$INSTALL"; then
2561 if test "${ac_cv_path_install+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 # Account for people who put trailing slashes in PATH elements.
2571 ./ | .// | /cC/* | \
2572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 # OSF1 and SCO ODT 3.0 have their own names for install.
2576 # Don't use installbsd from OSF since it installs stuff as root
2578 for ac_prog in ginstall scoinst install; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2581 if test $ac_prog = install &&
2582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583 # AIX install. It has an incompatible calling convention.
2585 elif test $ac_prog = install &&
2586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2587 # program-specific install script used by HP pwplus--don't use.
2590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2602 if test "${ac_cv_path_install+set}" = set; then
2603 INSTALL=$ac_cv_path_install
2605 # As a last resort, use the slow shell script. We don't cache a
2606 # path for INSTALL within a source directory, because that will
2607 # break other packages using the cache if that directory is
2608 # removed, or if the path is relative.
2609 INSTALL=$ac_install_sh
2612 echo "$as_me:$LINENO: result: $INSTALL" >&5
2613 echo "${ECHO_T}$INSTALL" >&6
2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616 # It thinks the first close brace ends the variable substitution.
2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2624 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2627 if test "$LN_S" = "ln -s"; then
2628 echo "$as_me:$LINENO: result: yes" >&5
2629 echo "${ECHO_T}yes" >&6
2631 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2632 echo "${ECHO_T}no, using $LN_S" >&6
2636 if test "$enable_auto_documentation" = yes; then
2637 # Extract the first word of "robodoc", so it can be a program name with args.
2638 set dummy robodoc; ac_word=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_ROBODOC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$ROBODOC"; then
2645 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_ROBODOC=""robodoc""
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
2664 ROBODOC=$ac_cv_prog_ROBODOC
2665 if test -n "$ROBODOC"; then
2666 echo "$as_me:$LINENO: result: $ROBODOC" >&5
2667 echo "${ECHO_T}$ROBODOC" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 if test "$ROBODOC" != "robodoc"; then
2674 { { echo "$as_me:$LINENO: error: need robodoc for auto documentation (IPD: module add robodoc)" >&5
2675 echo "$as_me: error: need robodoc for auto documentation (IPD: module add robodoc)" >&2;}
2676 { (exit 1); exit 1; }; }
2681 if test "$enable_firm_jni" = yes; then
2682 # Extract the first word of "javac", so it can be a program name with args.
2683 set dummy javac; ac_word=$2
2684 echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_JAVAC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 if test -n "$JAVAC"; then
2690 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_JAVAC=""javac""
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2709 JAVAC=$ac_cv_prog_JAVAC
2710 if test -n "$JAVAC"; then
2711 echo "$as_me:$LINENO: result: $JAVAC" >&5
2712 echo "${ECHO_T}$JAVAC" >&6
2714 echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6
2718 if test "$JAVAC" != "javac"; then
2719 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2720 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2721 { (exit 1); exit 1; }; }
2723 # Extract the first word of "javah", so it can be a program name with args.
2724 set dummy javah; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_JAVAH+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -n "$JAVAH"; then
2731 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_JAVAH=""javah""
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2750 JAVAH=$ac_cv_prog_JAVAH
2751 if test -n "$JAVAH"; then
2752 echo "$as_me:$LINENO: result: $JAVAH" >&5
2753 echo "${ECHO_T}$JAVAH" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2759 if test "$JAVAH" != "javah"; then
2760 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2761 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2762 { (exit 1); exit 1; }; }
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2776 # On Suns, sometimes $CPP names a directory.
2777 if test -n "$CPP" && test -d "$CPP"; then
2780 if test -z "$CPP"; then
2781 if test "${ac_cv_prog_CPP+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 # Double quotes because CPP needs to be expanded
2785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2788 for ac_c_preproc_warn_flag in '' yes
2790 # Use a header file that comes with gcc, so configuring glibc
2791 # with a fresh cross-compiler works.
2792 # On the NeXT, cc -E runs the code through the compiler's parser,
2793 # not just through cpp. "Syntax error" is here to catch this case.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 #line $LINENO "configure"
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } >/dev/null; then
2812 if test -s conftest.err; then
2813 ac_cpp_err=$ac_c_preproc_warn_flag
2820 if test -z "$ac_cpp_err"; then
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 # Broken: fails on valid input.
2829 rm -f conftest.err conftest.$ac_ext
2831 # OK, works on sane cases. Now check whether non-existent headers
2832 # can be detected and how.
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 #include <ac_nonexistent.h>
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev/null; then
2850 if test -s conftest.err; then
2851 ac_cpp_err=$ac_c_preproc_warn_flag
2858 if test -z "$ac_cpp_err"; then
2859 # Broken: success on invalid input.
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 # Passes both tests.
2869 rm -f conftest.err conftest.$ac_ext
2872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2873 rm -f conftest.err conftest.$ac_ext
2874 if $ac_preproc_ok; then
2886 echo "$as_me:$LINENO: result: $CPP" >&5
2887 echo "${ECHO_T}$CPP" >&6
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2921 if test -z "$ac_cpp_err"; then
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 # Broken: fails on valid input.
2930 rm -f conftest.err conftest.$ac_ext
2932 # OK, works on sane cases. Now check whether non-existent headers
2933 # can be detected and how.
2934 cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2959 if test -z "$ac_cpp_err"; then
2960 # Broken: success on invalid input.
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 # Passes both tests.
2970 rm -f conftest.err conftest.$ac_ext
2973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2974 rm -f conftest.err conftest.$ac_ext
2975 if $ac_preproc_ok; then
2978 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 echo "$as_me:$LINENO: checking for egrep" >&5
2993 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2994 if test "${ac_cv_prog_egrep+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2998 then ac_cv_prog_egrep='grep -E'
2999 else ac_cv_prog_egrep='egrep'
3002 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3003 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3004 EGREP=$ac_cv_prog_egrep
3007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3009 if test "${ac_cv_header_stdc+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_header_stdc=yes
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 ac_cv_header_stdc=no
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3053 if test $ac_cv_header_stdc = yes; then
3054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066 $EGREP "memchr" >/dev/null 2>&1; then
3069 ac_cv_header_stdc=no
3075 if test $ac_cv_header_stdc = yes; then
3076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "free" >/dev/null 2>&1; then
3091 ac_cv_header_stdc=no
3097 if test $ac_cv_header_stdc = yes; then
3098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3099 if test "$cross_compiling" = yes; then
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3110 #if ((' ' & 0x0FF) == 0x020)
3111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3114 # define ISLOWER(c) \
3115 (('a' <= (c) && (c) <= 'i') \
3116 || ('j' <= (c) && (c) <= 'r') \
3117 || ('s' <= (c) && (c) <= 'z'))
3118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3126 for (i = 0; i < 256; i++)
3127 if (XOR (islower (i), ISLOWER (i))
3128 || toupper (i) != TOUPPER (i))
3133 rm -f conftest$ac_exeext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3135 (eval $ac_link) 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3146 echo "$as_me: program exited with status $ac_status" >&5
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 ac_cv_header_stdc=no
3153 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3158 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3159 if test $ac_cv_header_stdc = yes; then
3161 cat >>confdefs.h <<\_ACEOF
3162 #define STDC_HEADERS 1
3169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3179 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3180 inttypes.h stdint.h unistd.h
3182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3183 echo "$as_me:$LINENO: checking for $ac_header" >&5
3184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 $ac_includes_default
3197 #include <$ac_header>
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 eval "$as_ac_Header=yes"
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 eval "$as_ac_Header=no"
3218 rm -f conftest.$ac_objext conftest.$ac_ext
3220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3223 cat >>confdefs.h <<_ACEOF
3224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3233 for ac_header in math.h
3235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo "$as_me:$LINENO: checking for $ac_header" >&5
3238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3245 # Is the header compilable?
3246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 $ac_includes_default
3256 #include <$ac_header>
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_header_compiler=yes
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_header_compiler=no
3277 rm -f conftest.$ac_objext conftest.$ac_ext
3278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3279 echo "${ECHO_T}$ac_header_compiler" >&6
3281 # Is the header present?
3282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <$ac_header>
3293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3309 if test -z "$ac_cpp_err"; then
3310 ac_header_preproc=yes
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 ac_header_preproc=no
3317 rm -f conftest.err conftest.$ac_ext
3318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3319 echo "${ECHO_T}$ac_header_preproc" >&6
3321 # So? What about this header?
3322 case $ac_header_compiler:$ac_header_preproc in
3324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3330 ## ------------------------------------ ##
3331 ## Report this to bug-autoconf@gnu.org. ##
3332 ## ------------------------------------ ##
3335 sed "s/^/$as_me: WARNING: /" >&2
3338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3346 ## ------------------------------------ ##
3347 ## Report this to bug-autoconf@gnu.org. ##
3348 ## ------------------------------------ ##
3351 sed "s/^/$as_me: WARNING: /" >&2
3354 echo "$as_me:$LINENO: checking for $ac_header" >&5
3355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 eval "$as_ac_Header=$ac_header_preproc"
3361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3366 cat >>confdefs.h <<_ACEOF
3367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3369 ac_math_headers="yes"
3371 ac_math_headers="no"
3376 if test "$ac_math_headers" != yes; then
3377 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3378 echo "$as_me: error: \"math header file not found\"" >&2;}
3379 { (exit 1); exit 1; }; }
3383 #dnl check for the gnu multiprecission (gmp) header file
3385 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3386 #if test "$ac_gmp_headers" != yes; then
3387 # dnl gmp header not found.
3388 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3394 for ac_header in obstack.h
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398 echo "$as_me:$LINENO: checking for $ac_header" >&5
3399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3406 # Is the header compilable?
3407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3409 cat >conftest.$ac_ext <<_ACEOF
3410 #line $LINENO "configure"
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 $ac_includes_default
3417 #include <$ac_header>
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_header_compiler=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_header_compiler=no
3438 rm -f conftest.$ac_objext conftest.$ac_ext
3439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3440 echo "${ECHO_T}$ac_header_compiler" >&6
3442 # Is the header present?
3443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <$ac_header>
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3470 if test -z "$ac_cpp_err"; then
3471 ac_header_preproc=yes
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 ac_header_preproc=no
3478 rm -f conftest.err conftest.$ac_ext
3479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3480 echo "${ECHO_T}$ac_header_preproc" >&6
3482 # So? What about this header?
3483 case $ac_header_compiler:$ac_header_preproc in
3485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3491 ## ------------------------------------ ##
3492 ## Report this to bug-autoconf@gnu.org. ##
3493 ## ------------------------------------ ##
3496 sed "s/^/$as_me: WARNING: /" >&2
3499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3507 ## ------------------------------------ ##
3508 ## Report this to bug-autoconf@gnu.org. ##
3509 ## ------------------------------------ ##
3512 sed "s/^/$as_me: WARNING: /" >&2
3515 echo "$as_me:$LINENO: checking for $ac_header" >&5
3516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 eval "$as_ac_Header=$ac_header_preproc"
3522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3530 ac_obstack_headers="yes"
3532 ac_obstack_headers="no"
3537 if test "$ac_obstack_headers" != yes; then
3538 { { echo "$as_me:$LINENO: error: \"obstack header file not found\"" >&5
3539 echo "$as_me: error: \"obstack header file not found\"" >&2;}
3540 { (exit 1); exit 1; }; }
3545 if test "$enable_firm_jni" = yes; then
3547 for ac_header in jni.h
3549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551 echo "$as_me:$LINENO: checking for $ac_header" >&5
3552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 # Is the header compilable?
3560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #line $LINENO "configure"
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_includes_default
3570 #include <$ac_header>
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_header_compiler=yes
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_header_compiler=no
3591 rm -f conftest.$ac_objext conftest.$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3593 echo "${ECHO_T}$ac_header_compiler" >&6
3595 # Is the header present?
3596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <$ac_header>
3607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3623 if test -z "$ac_cpp_err"; then
3624 ac_header_preproc=yes
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_header_preproc=no
3631 rm -f conftest.err conftest.$ac_ext
3632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3633 echo "${ECHO_T}$ac_header_preproc" >&6
3635 # So? What about this header?
3636 case $ac_header_compiler:$ac_header_preproc in
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3644 ## ------------------------------------ ##
3645 ## Report this to bug-autoconf@gnu.org. ##
3646 ## ------------------------------------ ##
3649 sed "s/^/$as_me: WARNING: /" >&2
3652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3660 ## ------------------------------------ ##
3661 ## Report this to bug-autoconf@gnu.org. ##
3662 ## ------------------------------------ ##
3665 sed "s/^/$as_me: WARNING: /" >&2
3668 echo "$as_me:$LINENO: checking for $ac_header" >&5
3669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 eval "$as_ac_Header=$ac_header_preproc"
3675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3680 cat >>confdefs.h <<_ACEOF
3681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683 ac_jni_headers="yes"
3690 if test "$ac_jni_headers" != yes; then
3691 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&5
3692 echo "$as_me: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&2;}
3693 { (exit 1); exit 1; }; }
3699 #dnl check for the gnu multiprecission (gmp) library
3701 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3702 #if test "$ac_gmp_library" != yes; then
3703 # dnl gmp library not found.
3704 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3708 echo "$as_me:$LINENO: checking for main in -lm" >&5
3709 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3710 if test "${ac_cv_lib_m_main+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_check_lib_save_LIBS=$LIBS
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3732 rm -f conftest.$ac_objext conftest$ac_exeext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3734 (eval $ac_link) 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -s conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_lib_m_main=yes
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752 LIBS=$ac_check_lib_save_LIBS
3754 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3755 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3756 if test $ac_cv_lib_m_main = yes; then
3762 if test "$ac_m_library" != yes; then
3763 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3764 echo "$as_me: error: \"standard math library not found\"" >&2;}
3765 { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: checking for strerror" >&5
3774 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3775 if test "${ac_cv_func_strerror+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 /* System header to define __stub macros and hopefully few prototypes,
3786 which can conflict with char strerror (); below. */
3788 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_strerror) || defined (__stub___strerror)
3802 char (*f) () = strerror;
3816 rm -f conftest.$ac_objext conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -s conftest$ac_exeext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_func_strerror=yes
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 ac_cv_func_strerror=no
3835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3837 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3838 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3839 if test $ac_cv_func_strerror = yes; then
3842 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3843 echo "$as_me: error: \"need strerror function\"" >&2;}
3844 { (exit 1); exit 1; }; }
3852 ac_config_files="$ac_config_files $ac_output_file"
3853 ac_config_commands="$ac_config_commands default"
3854 cat >confcache <<\_ACEOF
3855 # This file is a shell script that caches the results of configure
3856 # tests run on this system so they can be shared between configure
3857 # scripts and configure runs, see configure's option --config-cache.
3858 # It is not useful on other systems. If it contains results you don't
3859 # want to keep, you may remove or edit it.
3861 # config.status only pays attention to the cache file if you give it
3862 # the --recheck option to rerun configure.
3864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3870 # The following way of writing the cache mishandles newlines in values,
3871 # but we know of no workaround that is simple, portable, and efficient.
3872 # So, don't put newlines in cache variables' values.
3873 # Ultrix sh set writes to stderr and can't be redirected directly,
3874 # and sets the high bit in the cache file unless we assign to the vars.
3877 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3879 # `set' does not quote correctly, so add quotes (double-quote
3880 # substitution turns \\\\ into \\, and sed turns \\ into \).
3883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3886 # `set' quotes correctly as required by POSIX, so do not add quotes.
3888 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3897 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3899 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3900 if test -w $cache_file; then
3901 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3902 cat confcache >$cache_file
3904 echo "not updating unwritable cache $cache_file"
3909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3910 # Let make expand exec_prefix.
3911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3913 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3914 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3915 # trailing colons and then remove the whole line if VPATH becomes empty
3916 # (actually we leave an empty line to preserve line numbers).
3917 if test "x$srcdir" = x.; then
3918 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3919 s/:*\$(srcdir):*/:/;
3920 s/:*\${srcdir}:*/:/;
3922 s/^\([^=]*=[ ]*\):*/\1/;
3928 DEFS=-DHAVE_CONFIG_H
3932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3933 # 1. Remove the extension, and $U if already installed.
3934 ac_i=`echo "$ac_i" |
3935 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3937 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3938 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3942 LTLIBOBJS=$ac_ltlibobjs
3946 : ${CONFIG_STATUS=./config.status}
3947 ac_clean_files_save=$ac_clean_files
3948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3949 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3950 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3951 cat >$CONFIG_STATUS <<_ACEOF
3953 # Generated by $as_me.
3954 # Run this file to recreate the current configuration.
3955 # Compiler output produced by configure, useful for debugging
3956 # configure, is in config.log if it exists.
3961 SHELL=\${CONFIG_SHELL-$SHELL}
3964 cat >>$CONFIG_STATUS <<\_ACEOF
3965 ## --------------------- ##
3966 ## M4sh Initialization. ##
3967 ## --------------------- ##
3969 # Be Bourne compatible
3970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3973 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3974 # is contrary to our usage. Disable this feature.
3975 alias -g '${1+"$@"}'='"$@"'
3976 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3980 # Support unset when possible.
3981 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3988 # Work around bugs in pre-3.0 UWIN ksh.
3989 $as_unset ENV MAIL MAILPATH
3996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3998 LC_TELEPHONE LC_TIME
4000 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4001 eval $as_var=C; export $as_var
4007 # Required to use basename.
4008 if expr a : '\(a\)' >/dev/null 2>&1; then
4014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4015 as_basename=basename
4021 # Name of the executable.
4022 as_me=`$as_basename "$0" ||
4023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4024 X"$0" : 'X\(//\)$' \| \
4025 X"$0" : 'X\(/\)$' \| \
4026 . : '\(.\)' 2>/dev/null ||
4028 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4029 /^X\/\(\/\/\)$/{ s//\1/; q; }
4030 /^X\/\(\/\).*/{ s//\1/; q; }
4034 # PATH needs CR, and LINENO needs CR and PATH.
4035 # Avoid depending upon Character Ranges.
4036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4039 as_cr_digits='0123456789'
4040 as_cr_alnum=$as_cr_Letters$as_cr_digits
4042 # The user is always right.
4043 if test "${PATH_SEPARATOR+set}" != set; then
4044 echo "#! /bin/sh" >conf$$.sh
4045 echo "exit 0" >>conf$$.sh
4047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4059 test "x$as_lineno_1" != "x$as_lineno_2" &&
4060 test "x$as_lineno_3" = "x$as_lineno_2" || {
4061 # Find who we are. Look in the path if we contain no path at all
4064 *[\\/]* ) as_myself=$0 ;;
4065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4075 # We did not find ourselves, most probably we were run as `sh COMMAND'
4076 # in which case we are not to be found in the path.
4077 if test "x$as_myself" = x; then
4080 if test ! -f "$as_myself"; then
4081 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4083 { (exit 1); exit 1; }; }
4085 case $CONFIG_SHELL in
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4091 test -z "$as_dir" && as_dir=.
4092 for as_base in sh bash ksh sh5; do
4095 if ("$as_dir/$as_base" -c '
4098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4099 test "x$as_lineno_1" != "x$as_lineno_2" &&
4100 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4101 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4102 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4103 CONFIG_SHELL=$as_dir/$as_base
4105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4114 # uniformly replaced by the line number. The first 'sed' inserts a
4115 # line-number line before each line; the second 'sed' does the real
4116 # work. The second script uses 'N' to pair each line-number line
4117 # with the numbered line, and appends trailing '-' during
4118 # substitution so that $LINENO is not a special case at line end.
4119 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4120 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4121 sed '=' <$as_myself |
4126 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4129 s,^['$as_cr_digits']*\n,,
4131 chmod +x $as_me.lineno ||
4132 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4134 { (exit 1); exit 1; }; }
4136 # Don't try to exec as it changes $[0], causing all sort of problems
4137 # (the dirname of $[0] is not the place where we might find the
4138 # original and so on. Autoconf is especially sensible to this).
4140 # Exit status is that of the last command.
4145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4146 *c*,-n*) ECHO_N= ECHO_C='
4148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4152 if expr a : '\(a\)' >/dev/null 2>&1; then
4158 rm -f conf$$ conf$$.exe conf$$.file
4160 if ln -s conf$$.file conf$$ 2>/dev/null; then
4161 # We could just check for DJGPP; but this test a) works b) is more generic
4162 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4163 if test -f conf$$.exe; then
4164 # Don't use ln at all; we don't have any links
4169 elif ln conf$$.file conf$$ 2>/dev/null; then
4174 rm -f conf$$ conf$$.exe conf$$.file
4176 if mkdir -p . 2>/dev/null; then
4182 as_executable_p="test -f"
4184 # Sed expression to map a string onto a valid CPP name.
4185 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4187 # Sed expression to map a string onto a valid variable name.
4188 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4192 # We need space, tab and new line, in precisely that order.
4202 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4203 # report actual input values of CONFIG_FILES etc. instead of their
4204 # values after options handling. Logging --version etc. is OK.
4208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4209 ## Running $as_me. ##
4214 This file was extended by libfirm $as_me 0.3.0, which was
4215 generated by GNU Autoconf 2.56. Invocation command line was
4217 CONFIG_FILES = $CONFIG_FILES
4218 CONFIG_HEADERS = $CONFIG_HEADERS
4219 CONFIG_LINKS = $CONFIG_LINKS
4220 CONFIG_COMMANDS = $CONFIG_COMMANDS
4224 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4228 # Files that config.status was made for.
4229 if test -n "$ac_config_files"; then
4230 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4233 if test -n "$ac_config_headers"; then
4234 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4237 if test -n "$ac_config_links"; then
4238 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4241 if test -n "$ac_config_commands"; then
4242 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4245 cat >>$CONFIG_STATUS <<\_ACEOF
4248 \`$as_me' instantiates files from templates according to the
4249 current configuration.
4251 Usage: $0 [OPTIONS] [FILE]...
4253 -h, --help print this help, then exit
4254 -V, --version print version number, then exit
4255 -q, --quiet do not print progress messages
4256 -d, --debug don't remove temporary files
4257 --recheck update $as_me by reconfiguring in the same conditions
4258 --file=FILE[:TEMPLATE]
4259 instantiate the configuration file FILE
4260 --header=FILE[:TEMPLATE]
4261 instantiate the configuration header FILE
4263 Configuration files:
4266 Configuration headers:
4269 Configuration commands:
4272 Report bugs to <bug-autoconf@gnu.org>."
4275 cat >>$CONFIG_STATUS <<_ACEOF
4277 libfirm config.status 0.3.0
4278 configured by $0, generated by GNU Autoconf 2.56,
4279 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4281 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4282 Free Software Foundation, Inc.
4283 This config.status script is free software; the Free Software Foundation
4284 gives unlimited permission to copy, distribute and modify it."
4289 cat >>$CONFIG_STATUS <<\_ACEOF
4290 # If no file are specified by the user, then we need to provide default
4291 # value. By we need to know if files were specified by the user.
4297 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4298 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4306 *) # This is not an option, so the user has probably given explicit
4309 ac_need_defaults=false;;
4313 # Handling of the options.
4315 cat >>$CONFIG_STATUS <<\_ACEOF
4316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4318 --version | --vers* | -V )
4319 echo "$ac_cs_version"; exit 0 ;;
4321 # Conflict between --help and --header
4322 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4323 Try \`$0 --help' for more information." >&5
4324 echo "$as_me: error: ambiguous option: $1
4325 Try \`$0 --help' for more information." >&2;}
4326 { (exit 1); exit 1; }; };;
4327 --help | --hel | -h )
4328 echo "$ac_cs_usage"; exit 0 ;;
4329 --debug | --d* | -d )
4331 --file | --fil | --fi | --f )
4333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4334 ac_need_defaults=false;;
4335 --header | --heade | --head | --hea )
4337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4338 ac_need_defaults=false;;
4339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4344 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4345 Try \`$0 --help' for more information." >&5
4346 echo "$as_me: error: unrecognized option: $1
4347 Try \`$0 --help' for more information." >&2;}
4348 { (exit 1); exit 1; }; } ;;
4350 *) ac_config_targets="$ac_config_targets $1" ;;
4356 ac_configure_extra_args=
4358 if $ac_cs_silent; then
4360 ac_configure_extra_args="$ac_configure_extra_args --silent"
4364 cat >>$CONFIG_STATUS <<_ACEOF
4365 if \$ac_cs_recheck; then
4366 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4367 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4376 cat >>$CONFIG_STATUS <<\_ACEOF
4377 for ac_config_target in $ac_config_targets
4379 case "$ac_config_target" in
4380 # Handling of arguments.
4381 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4382 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4383 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4384 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4386 { (exit 1); exit 1; }; };;
4390 # If the user did not use the arguments to specify the items to instantiate,
4391 # then the envvar interface is used. Set only those that are not.
4392 # We use the long form for the default assignment because of an extremely
4393 # bizarre bug on SunOS 4.1.3.
4394 if $ac_need_defaults; then
4395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4400 # Have a temporary directory for convenience. Make it in the build tree
4401 # simply because there is no reason to put it here, and in addition,
4402 # creating and moving files from /tmp can sometimes cause problems.
4403 # Create a temporary directory, and hook for its removal unless debugging.
4406 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4407 trap '{ (exit 1); exit 1; }' 1 2 13 15
4410 # Create a (secure) tmp directory for tmp files.
4413 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4414 test -n "$tmp" && test -d "$tmp"
4417 tmp=./confstat$$-$RANDOM
4418 (umask 077 && mkdir $tmp)
4421 echo "$me: cannot create a temporary directory in ." >&2
4422 { (exit 1); exit 1; }
4427 cat >>$CONFIG_STATUS <<_ACEOF
4430 # CONFIG_FILES section.
4433 # No need to generate the scripts if there are no CONFIG_FILES.
4434 # This happens for instance when ./config.status config.h
4435 if test -n "\$CONFIG_FILES"; then
4436 # Protect against being on the right side of a sed subst in config.status.
4437 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4438 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4439 s,@SHELL@,$SHELL,;t t
4440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4441 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4442 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4443 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4444 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4445 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4446 s,@exec_prefix@,$exec_prefix,;t t
4447 s,@prefix@,$prefix,;t t
4448 s,@program_transform_name@,$program_transform_name,;t t
4449 s,@bindir@,$bindir,;t t
4450 s,@sbindir@,$sbindir,;t t
4451 s,@libexecdir@,$libexecdir,;t t
4452 s,@datadir@,$datadir,;t t
4453 s,@sysconfdir@,$sysconfdir,;t t
4454 s,@sharedstatedir@,$sharedstatedir,;t t
4455 s,@localstatedir@,$localstatedir,;t t
4456 s,@libdir@,$libdir,;t t
4457 s,@includedir@,$includedir,;t t
4458 s,@oldincludedir@,$oldincludedir,;t t
4459 s,@infodir@,$infodir,;t t
4460 s,@mandir@,$mandir,;t t
4461 s,@build_alias@,$build_alias,;t t
4462 s,@host_alias@,$host_alias,;t t
4463 s,@target_alias@,$target_alias,;t t
4465 s,@ECHO_C@,$ECHO_C,;t t
4466 s,@ECHO_N@,$ECHO_N,;t t
4467 s,@ECHO_T@,$ECHO_T,;t t
4469 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4470 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4471 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4472 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4473 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4474 s,@enable_firm_jni@,$enable_firm_jni,;t t
4476 s,@CFLAGS@,$CFLAGS,;t t
4477 s,@LDFLAGS@,$LDFLAGS,;t t
4478 s,@CPPFLAGS@,$CPPFLAGS,;t t
4479 s,@ac_ct_CC@,$ac_ct_CC,;t t
4480 s,@EXEEXT@,$EXEEXT,;t t
4481 s,@OBJEXT@,$OBJEXT,;t t
4483 s,@ac_ct_LD@,$ac_ct_LD,;t t
4484 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4487 s,@RANLIB@,$RANLIB,;t t
4488 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4489 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4490 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4491 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4493 s,@ROBODOC@,$ROBODOC,;t t
4494 s,@JAVAC@,$JAVAC,;t t
4495 s,@JAVAH@,$JAVAH,;t t
4497 s,@EGREP@,$EGREP,;t t
4498 s,@LIBOBJS@,$LIBOBJS,;t t
4499 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4504 cat >>$CONFIG_STATUS <<\_ACEOF
4505 # Split the substitutions into bite-sized pieces for seds with
4506 # small command number limits, like on Digital OSF/1 and HP-UX.
4508 ac_sed_frag=1 # Number of current file.
4509 ac_beg=1 # First line for current file.
4510 ac_end=$ac_max_sed_lines # Line after last line for current file.
4513 while $ac_more_lines; do
4514 if test $ac_beg -gt 1; then
4515 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4517 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4519 if test ! -s $tmp/subs.frag; then
4522 # The purpose of the label and of the branching condition is to
4523 # speed up the sed processing (if there are no `@' at all, there
4524 # is no need to browse any of the substitutions).
4525 # These are the two extra sed commands mentioned above.
4527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4528 if test -z "$ac_sed_cmds"; then
4529 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4531 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4533 ac_sed_frag=`expr $ac_sed_frag + 1`
4535 ac_end=`expr $ac_end + $ac_max_sed_lines`
4538 if test -z "$ac_sed_cmds"; then
4541 fi # test -n "$CONFIG_FILES"
4544 cat >>$CONFIG_STATUS <<\_ACEOF
4545 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4548 - | *:- | *:-:* ) # input from stdin
4550 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4552 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4554 * ) ac_file_in=$ac_file.in ;;
4557 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4560 X"$ac_file" : 'X\(//\)[^/]' \| \
4561 X"$ac_file" : 'X\(//\)$' \| \
4562 X"$ac_file" : 'X\(/\)' \| \
4563 . : '\(.\)' 2>/dev/null ||
4565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4567 /^X\(\/\/\)$/{ s//\1/; q; }
4568 /^X\(\/\).*/{ s//\1/; q; }
4570 { if $as_mkdir_p; then
4575 while test ! -d "$as_dir"; do
4576 as_dirs="$as_dir $as_dirs"
4577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4579 X"$as_dir" : 'X\(//\)[^/]' \| \
4580 X"$as_dir" : 'X\(//\)$' \| \
4581 X"$as_dir" : 'X\(/\)' \| \
4582 . : '\(.\)' 2>/dev/null ||
4584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4586 /^X\(\/\/\)$/{ s//\1/; q; }
4587 /^X\(\/\).*/{ s//\1/; q; }
4590 test ! -n "$as_dirs" || mkdir $as_dirs
4591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4593 { (exit 1); exit 1; }; }; }
4597 if test "$ac_dir" != .; then
4598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4599 # A "../" for each directory in $ac_dir_suffix.
4600 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4602 ac_dir_suffix= ac_top_builddir=
4606 .) # No --srcdir option. We are building in place.
4608 if test -z "$ac_top_builddir"; then
4611 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4613 [\\/]* | ?:[\\/]* ) # Absolute path.
4614 ac_srcdir=$srcdir$ac_dir_suffix;
4615 ac_top_srcdir=$srcdir ;;
4617 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4618 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4620 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4622 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4623 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4624 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4625 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4630 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4633 if test x"$ac_file" != x-; then
4634 { echo "$as_me:$LINENO: creating $ac_file" >&5
4635 echo "$as_me: creating $ac_file" >&6;}
4638 # Let's still pretend it is `configure' which instantiates (i.e., don't
4639 # use $as_me), people would be surprised to read:
4640 # /* config.h. Generated by config.status. */
4641 if test x"$ac_file" = x-; then
4644 configure_input="$ac_file. "
4646 configure_input=$configure_input"Generated from `echo $ac_file_in |
4647 sed 's,.*/,,'` by configure."
4649 # First look for the input files in the build tree, otherwise in the
4651 ac_file_inputs=`IFS=:
4652 for f in $ac_file_in; do
4654 -) echo $tmp/stdin ;;
4656 # Absolute (can't be DOS-style, as IFS=:)
4657 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4658 echo "$as_me: error: cannot find input file: $f" >&2;}
4659 { (exit 1); exit 1; }; }
4662 if test -f "$f"; then
4665 elif test -f "$srcdir/$f"; then
4670 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4671 echo "$as_me: error: cannot find input file: $f" >&2;}
4672 { (exit 1); exit 1; }; }
4675 done` || { (exit 1); exit 1; }
4677 cat >>$CONFIG_STATUS <<_ACEOF
4681 cat >>$CONFIG_STATUS <<\_ACEOF
4683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4684 s,@configure_input@,$configure_input,;t t
4685 s,@srcdir@,$ac_srcdir,;t t
4686 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4687 s,@top_srcdir@,$ac_top_srcdir,;t t
4688 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4689 s,@builddir@,$ac_builddir,;t t
4690 s,@abs_builddir@,$ac_abs_builddir,;t t
4691 s,@top_builddir@,$ac_top_builddir,;t t
4692 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4693 s,@INSTALL@,$ac_INSTALL,;t t
4694 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4696 if test x"$ac_file" != x-; then
4697 mv $tmp/out $ac_file
4705 cat >>$CONFIG_STATUS <<\_ACEOF
4708 # CONFIG_HEADER section.
4711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4714 # ac_d sets the value in "#define NAME VALUE" lines.
4715 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4716 ac_dB='[ ].*$,\1#\2'
4719 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4720 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4721 ac_uB='$,\1#\2define\3'
4725 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4728 - | *:- | *:-:* ) # input from stdin
4730 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4732 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4734 * ) ac_file_in=$ac_file.in ;;
4737 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4738 echo "$as_me: creating $ac_file" >&6;}
4740 # First look for the input files in the build tree, otherwise in the
4742 ac_file_inputs=`IFS=:
4743 for f in $ac_file_in; do
4745 -) echo $tmp/stdin ;;
4747 # Absolute (can't be DOS-style, as IFS=:)
4748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4749 echo "$as_me: error: cannot find input file: $f" >&2;}
4750 { (exit 1); exit 1; }; }
4753 if test -f "$f"; then
4756 elif test -f "$srcdir/$f"; then
4761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4762 echo "$as_me: error: cannot find input file: $f" >&2;}
4763 { (exit 1); exit 1; }; }
4766 done` || { (exit 1); exit 1; }
4767 # Remove the trailing spaces.
4768 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4772 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4773 # `conftest.undefs', that substitutes the proper values into
4774 # config.h.in to produce config.h. The first handles `#define'
4775 # templates, and the second `#undef' templates.
4776 # And first: Protect against being on the right side of a sed subst in
4777 # config.status. Protect against being in an unquoted here document
4779 rm -f conftest.defines conftest.undefs
4780 # Using a here document instead of a string reduces the quoting nightmare.
4781 # Putting comments in sed scripts is not portable.
4783 # `end' is used to avoid that the second main sed command (meant for
4784 # 0-ary CPP macros) applies to n-ary macro definitions.
4785 # See the Autoconf documentation for `clear'.
4786 cat >confdef2sed.sed <<\_ACEOF
4791 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4793 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4796 # If some macros were called several times there might be several times
4797 # the same #defines, which is useless. Nevertheless, we may not want to
4798 # sort them, since we want the *last* AC-DEFINE to be honored.
4799 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4800 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4801 rm -f confdef2sed.sed
4803 # This sed command replaces #undef with comments. This is necessary, for
4804 # example, in the case of _POSIX_SOURCE, which is predefined and required
4805 # on some systems where configure will not decide to define it.
4806 cat >>conftest.undefs <<\_ACEOF
4807 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4810 # Break up conftest.defines because some shells have a limit on the size
4811 # of here documents, and old seds have small limits too (100 cmds).
4812 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4813 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4814 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4815 echo ' :' >>$CONFIG_STATUS
4817 while grep . conftest.defines >/dev/null
4819 # Write a limited-size here document to $tmp/defines.sed.
4820 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4821 # Speed up: don't consider the non `#define' lines.
4822 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4823 # Work around the forget-to-reset-the-flag bug.
4824 echo 't clr' >>$CONFIG_STATUS
4825 echo ': clr' >>$CONFIG_STATUS
4826 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4828 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4832 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4833 rm -f conftest.defines
4834 mv conftest.tail conftest.defines
4836 rm -f conftest.defines
4837 echo ' fi # grep' >>$CONFIG_STATUS
4838 echo >>$CONFIG_STATUS
4840 # Break up conftest.undefs because some shells have a limit on the size
4841 # of here documents, and old seds have small limits too (100 cmds).
4842 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4844 while grep . conftest.undefs >/dev/null
4846 # Write a limited-size here document to $tmp/undefs.sed.
4847 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4848 # Speed up: don't consider the non `#undef'
4849 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4850 # Work around the forget-to-reset-the-flag bug.
4851 echo 't clr' >>$CONFIG_STATUS
4852 echo ': clr' >>$CONFIG_STATUS
4853 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4855 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4859 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4860 rm -f conftest.undefs
4861 mv conftest.tail conftest.undefs
4863 rm -f conftest.undefs
4865 cat >>$CONFIG_STATUS <<\_ACEOF
4866 # Let's still pretend it is `configure' which instantiates (i.e., don't
4867 # use $as_me), people would be surprised to read:
4868 # /* config.h. Generated by config.status. */
4869 if test x"$ac_file" = x-; then
4870 echo "/* Generated by configure. */" >$tmp/config.h
4872 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4874 cat $tmp/in >>$tmp/config.h
4876 if test x"$ac_file" != x-; then
4877 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4878 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4879 echo "$as_me: $ac_file is unchanged" >&6;}
4881 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4883 X"$ac_file" : 'X\(//\)[^/]' \| \
4884 X"$ac_file" : 'X\(//\)$' \| \
4885 X"$ac_file" : 'X\(/\)' \| \
4886 . : '\(.\)' 2>/dev/null ||
4888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4890 /^X\(\/\/\)$/{ s//\1/; q; }
4891 /^X\(\/\).*/{ s//\1/; q; }
4893 { if $as_mkdir_p; then
4898 while test ! -d "$as_dir"; do
4899 as_dirs="$as_dir $as_dirs"
4900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4902 X"$as_dir" : 'X\(//\)[^/]' \| \
4903 X"$as_dir" : 'X\(//\)$' \| \
4904 X"$as_dir" : 'X\(/\)' \| \
4905 . : '\(.\)' 2>/dev/null ||
4907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4909 /^X\(\/\/\)$/{ s//\1/; q; }
4910 /^X\(\/\).*/{ s//\1/; q; }
4913 test ! -n "$as_dirs" || mkdir $as_dirs
4914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4915 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4916 { (exit 1); exit 1; }; }; }
4919 mv $tmp/config.h $ac_file
4927 cat >>$CONFIG_STATUS <<\_ACEOF
4930 # CONFIG_COMMANDS section.
4932 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4933 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4934 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4936 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4937 X"$ac_dest" : 'X\(//\)[^/]' \| \
4938 X"$ac_dest" : 'X\(//\)$' \| \
4939 X"$ac_dest" : 'X\(/\)' \| \
4940 . : '\(.\)' 2>/dev/null ||
4942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4944 /^X\(\/\/\)$/{ s//\1/; q; }
4945 /^X\(\/\).*/{ s//\1/; q; }
4949 if test "$ac_dir" != .; then
4950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4951 # A "../" for each directory in $ac_dir_suffix.
4952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4954 ac_dir_suffix= ac_top_builddir=
4958 .) # No --srcdir option. We are building in place.
4960 if test -z "$ac_top_builddir"; then
4963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4965 [\\/]* | ?:[\\/]* ) # Absolute path.
4966 ac_srcdir=$srcdir$ac_dir_suffix;
4967 ac_top_srcdir=$srcdir ;;
4969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4981 echo "$as_me: executing $ac_dest commands" >&6;}
4983 default ) touch stamp-h ;;
4988 cat >>$CONFIG_STATUS <<\_ACEOF
4990 { (exit 0); exit 0; }
4992 chmod +x $CONFIG_STATUS
4993 ac_clean_files=$ac_clean_files_save
4996 # configure is writing to config.log, and then calls config.status.
4997 # config.status does its own redirection, appending to config.log.
4998 # Unfortunately, on DOS this fails, as config.log is still kept open
4999 # by configure, so config.status won't be able to write to it; its
5000 # output is simply discarded. So we exec the FD to /dev/null,
5001 # effectively closing config.log, so it can be properly (re)opened and
5002 # appended to by config.status. When coming back to configure, we
5003 # need to make the FD available again.
5004 if test "$no_create" != yes; then
5006 ac_config_status_args=
5007 test "$silent" = yes &&
5008 ac_config_status_args="$ac_config_status_args --quiet"
5010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5013 # would make configure fail if this is the last instruction.
5014 $ac_cs_success || { (exit 1); exit 1; }