2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --enable-gcc_inline enable gcc inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
833 Some influential environment variables:
834 CC C compiler command
835 CFLAGS C compiler flags
836 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
837 nonstandard directory <lib dir>
838 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
839 headers in a nonstandard directory <include dir>
842 Use these variables to override the choices made by `configure' or to help
843 it to find libraries and programs with nonstandard names/locations.
848 if test "$ac_init_help" = "recursive"; then
849 # If there are subdirs, report their specific --help.
851 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
852 test -d $ac_dir || continue
855 if test "$ac_dir" != .; then
856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
857 # A "../" for each directory in $ac_dir_suffix.
858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
860 ac_dir_suffix= ac_top_builddir=
864 .) # No --srcdir option. We are building in place.
866 if test -z "$ac_top_builddir"; then
869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
871 [\\/]* | ?:[\\/]* ) # Absolute path.
872 ac_srcdir=$srcdir$ac_dir_suffix;
873 ac_top_srcdir=$srcdir ;;
875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
886 # Check for guested configure; otherwise get Cygnus style configure.
887 if test -f $ac_srcdir/configure.gnu; then
889 $SHELL $ac_srcdir/configure.gnu --help=recursive
890 elif test -f $ac_srcdir/configure; then
892 $SHELL $ac_srcdir/configure --help=recursive
893 elif test -f $ac_srcdir/configure.ac ||
894 test -f $ac_srcdir/configure.in; then
898 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
904 test -n "$ac_init_help" && exit 0
905 if $ac_init_version; then
907 libfirm configure 0.3.0
908 generated by GNU Autoconf 2.53
910 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
911 Free Software Foundation, Inc.
912 This configure script is free software; the Free Software Foundation
913 gives unlimited permission to copy, distribute and modify it.
919 This file contains any messages produced by compilers while
920 running configure, to aid debugging if configure makes a mistake.
922 It was created by libfirm $as_me 0.3.0, which was
923 generated by GNU Autoconf 2.53. Invocation command line was
934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
946 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
957 test -z "$as_dir" && as_dir=.
973 # Keep a trace of the command line.
974 # Strip out --no-create and --no-recursion so they do not pile up.
975 # Also quote any args containing shell meta-characters.
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n ) continue ;;
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
987 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
989 case " $ac_configure_args " in
990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
991 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
994 # Get rid of the leading space.
997 # When interrupted or exit'd, cleanup temporary files, and complete
998 # config.log. We remove comments because anyway the quotes in there
999 # would cause problems or look ugly.
1000 # WARNING: Be sure not to use single quotes in there, as some shells,
1001 # such as our DU 5.0 friend, will then `close' the trap.
1002 trap 'exit_status=$?
1003 # Save into config.log some information that might help in debugging.
1007 ## ---------------- ##
1008 ## Cache variables. ##
1009 ## ---------------- ##
1012 # The following way of writing the cache mishandles newlines in values,
1015 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1018 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028 if test -s confdefs.h; then
1035 sed "/^$/d" confdefs.h
1038 test "$ac_signal" != 0 &&
1039 echo "$as_me: caught signal $ac_signal"
1040 echo "$as_me: exit $exit_status"
1042 rm -f core core.* *.core &&
1043 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1046 for ac_signal in 1 2 13 15; do
1047 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1052 rm -rf conftest* confdefs.h
1053 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1056 # Predefined preprocessor variables.
1058 cat >>confdefs.h <<_ACEOF
1059 #define PACKAGE_NAME "$PACKAGE_NAME"
1063 cat >>confdefs.h <<_ACEOF
1064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1068 cat >>confdefs.h <<_ACEOF
1069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_STRING "$PACKAGE_STRING"
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1083 # Let the site file select an alternate cache file if it wants to.
1084 # Prefer explicitly selected file to automatically selected ones.
1085 if test -z "$CONFIG_SITE"; then
1086 if test "x$prefix" != xNONE; then
1087 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1089 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1092 for ac_site_file in $CONFIG_SITE; do
1093 if test -r "$ac_site_file"; then
1094 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1095 echo "$as_me: loading site script $ac_site_file" >&6;}
1096 sed 's/^/| /' "$ac_site_file" >&5
1101 if test -r "$cache_file"; then
1102 # Some versions of bash will fail to source /dev/null (special
1103 # files actually), so we avoid doing that.
1104 if test -f "$cache_file"; then
1105 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1106 echo "$as_me: loading cache $cache_file" >&6;}
1108 [\\/]* | ?:[\\/]* ) . $cache_file;;
1109 *) . ./$cache_file;;
1113 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1114 echo "$as_me: creating cache $cache_file" >&6;}
1118 # Check that the precious variables saved in the cache have kept the same
1120 ac_cache_corrupted=false
1121 for ac_var in `(set) 2>&1 |
1122 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1124 eval ac_new_set=\$ac_env_${ac_var}_set
1125 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1126 eval ac_new_val="\$ac_env_${ac_var}_value"
1127 case $ac_old_set,$ac_new_set in
1129 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1130 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1131 ac_cache_corrupted=: ;;
1133 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1134 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1135 ac_cache_corrupted=: ;;
1138 if test "x$ac_old_val" != "x$ac_new_val"; then
1139 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1140 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1141 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1142 echo "$as_me: former value: $ac_old_val" >&2;}
1143 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1144 echo "$as_me: current value: $ac_new_val" >&2;}
1145 ac_cache_corrupted=:
1148 # Pass precious variables to config.status.
1149 if test "$ac_new_set" = set; then
1151 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1152 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1153 *) ac_arg=$ac_var=$ac_new_val ;;
1155 case " $ac_configure_args " in
1156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1157 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1161 if $ac_cache_corrupted; then
1162 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1164 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1166 { (exit 1); exit 1; }; }
1170 ac_cpp='$CPP $CPPFLAGS'
1171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1202 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1203 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1204 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
1206 ac_config_headers="$ac_config_headers config.h"
1209 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1214 # Check whether --enable-debug or --disable-debug was given.
1215 if test "${enable_debug+set}" = set; then
1216 enableval="$enable_debug"
1217 if test "$enableval" = yes; then
1218 cat >>confdefs.h <<\_ACEOF
1219 #define DEBUG_libfirm 1
1223 cat >>confdefs.h <<\_ACEOF
1231 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1232 if test "${enable_gcc_inline+set}" = set; then
1233 enableval="$enable_gcc_inline"
1234 if test "$enableval" = yes; then
1235 cat >>confdefs.h <<\_ACEOF
1236 #define USE_GCC_INLINE 1
1244 # Check whether --enable-profile or --disable-profile was given.
1245 if test "${enable_profile+set}" = set; then
1246 enableval="$enable_profile"
1247 if test "$enableval"=yes; then
1248 enable_profile_libfirm=yes
1251 enable_profile_libfirm=no
1255 # Check whether --enable-autodoc or --disable-autodoc was given.
1256 if test "${enable_autodoc+set}" = set; then
1257 enableval="$enable_autodoc"
1258 if test "$enableval"=yes; then
1259 enable_auto_documentation=yes
1262 enable_auto_documentation=no
1267 # Check whether --enable-firmjni or --disable-firmjni was given.
1268 if test "${enable_firmjni+set}" = set; then
1269 enableval="$enable_firmjni"
1270 if test "$enableval"=yes; then
1281 ac_cpp='$CPP $CPPFLAGS'
1282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285 if test -n "$ac_tool_prefix"; then
1286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1288 echo "$as_me:$LINENO: checking for $ac_word" >&5
1289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1290 if test "${ac_cv_prog_CC+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 if test -n "$CC"; then
1294 ac_cv_prog_CC="$CC" # Let the user override the test.
1296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1300 test -z "$as_dir" && as_dir=.
1301 for ac_exec_ext in '' $ac_executable_extensions; do
1302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1313 if test -n "$CC"; then
1314 echo "$as_me:$LINENO: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1317 echo "$as_me:$LINENO: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1322 if test -z "$ac_cv_prog_CC"; then
1324 # Extract the first word of "gcc", so it can be a program name with args.
1325 set dummy gcc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 if test -n "$ac_ct_CC"; then
1332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_ac_ct_CC="gcc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1351 if test -n "$ac_ct_CC"; then
1352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1353 echo "${ECHO_T}$ac_ct_CC" >&6
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1364 if test -z "$CC"; then
1365 if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}cc; ac_word=$2
1368 echo "$as_me:$LINENO: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 test -z "$as_dir" && as_dir=.
1381 for ac_exec_ext in '' $ac_executable_extensions; do
1382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383 ac_cv_prog_CC="${ac_tool_prefix}cc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1397 echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1402 if test -z "$ac_cv_prog_CC"; then
1404 # Extract the first word of "cc", so it can be a program name with args.
1405 set dummy cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_ac_ct_CC="cc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431 if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433 echo "${ECHO_T}$ac_ct_CC" >&6
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1445 if test -z "$CC"; then
1446 # Extract the first word of "cc", so it can be a program name with args.
1447 set dummy cc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1465 ac_prog_rejected=yes
1469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 if test $ac_prog_rejected = yes; then
1476 # We found a bogon in the path, so make sure we never use it.
1477 set dummy $ac_cv_prog_CC
1479 if test $# != 0; then
1480 # We chose a different compiler from the bogus one.
1481 # However, it has the same basename, so the bogon will be chosen
1482 # first if we set CC to just the basename; use the full file name.
1484 set dummy "$as_dir/$ac_word" ${1+"$@"}
1492 if test -n "$CC"; then
1493 echo "$as_me:$LINENO: result: $CC" >&5
1494 echo "${ECHO_T}$CC" >&6
1496 echo "$as_me:$LINENO: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1501 if test -z "$CC"; then
1502 if test -n "$ac_tool_prefix"; then
1505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 if test -n "$CC"; then
1513 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 if test -n "$CC"; then
1533 echo "$as_me:$LINENO: result: $CC" >&5
1534 echo "${ECHO_T}$CC" >&6
1536 echo "$as_me:$LINENO: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1540 test -n "$CC" && break
1543 if test -z "$CC"; then
1547 # Extract the first word of "$ac_prog", so it can be a program name with args.
1548 set dummy $ac_prog; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_ac_ct_CC="$ac_prog"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1582 test -n "$ac_ct_CC" && break
1591 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1592 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1593 { (exit 1); exit 1; }; }
1595 # Provide some information about the compiler.
1596 echo "$as_me:$LINENO:" \
1597 "checking for C compiler version" >&5
1598 ac_compiler=`set X $ac_compile; echo $2`
1599 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1600 (eval $ac_compiler --version </dev/null >&5) 2>&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }
1604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1605 (eval $ac_compiler -v </dev/null >&5) 2>&5
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }
1609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1610 (eval $ac_compiler -V </dev/null >&5) 2>&5
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); }
1615 cat >conftest.$ac_ext <<_ACEOF
1616 #line $LINENO "configure"
1617 #include "confdefs.h"
1619 #ifdef F77_DUMMY_MAIN
1623 int F77_DUMMY_MAIN() { return 1; }
1633 ac_clean_files_save=$ac_clean_files
1634 ac_clean_files="$ac_clean_files a.out a.exe"
1635 # Try to create an executable without -o first, disregard a.out.
1636 # It will help us diagnose broken compilers, and finding out an intuition
1638 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1639 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1640 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1641 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1642 (eval $ac_link_default) 2>&5
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }; then
1646 # Find the output, starting from the most likely. This scheme is
1647 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1650 # Be careful to initialize this variable, since it used to be cached.
1651 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1653 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1654 ls a.out conftest 2>/dev/null;
1655 ls a.* conftest.* 2>/dev/null`; do
1657 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1658 a.out ) # We found the default executable, but exeext='' is most
1661 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1669 echo "$as_me: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1672 echo "$as_me: error: C compiler cannot create executables" >&2;}
1673 { (exit 77); exit 77; }; }
1676 ac_exeext=$ac_cv_exeext
1677 echo "$as_me:$LINENO: result: $ac_file" >&5
1678 echo "${ECHO_T}$ac_file" >&6
1680 # Check the compiler produces executables we can run. If not, either
1681 # the compiler is broken, or we cross compile.
1682 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1683 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1684 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1685 # If not cross compiling, check that we can run a simple program.
1686 if test "$cross_compiling" != yes; then
1687 if { ac_try='./$ac_file'
1688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }; }; then
1695 if test "$cross_compiling" = maybe; then
1698 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1699 If you meant to cross compile, use \`--host'." >&5
1700 echo "$as_me: error: cannot run C compiled programs.
1701 If you meant to cross compile, use \`--host'." >&2;}
1702 { (exit 1); exit 1; }; }
1706 echo "$as_me:$LINENO: result: yes" >&5
1707 echo "${ECHO_T}yes" >&6
1709 rm -f a.out a.exe conftest$ac_cv_exeext
1710 ac_clean_files=$ac_clean_files_save
1711 # Check the compiler produces executables we can run. If not, either
1712 # the compiler is broken, or we cross compile.
1713 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1714 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1715 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1716 echo "${ECHO_T}$cross_compiling" >&6
1718 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1719 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1721 (eval $ac_link) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1726 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1727 # work properly (i.e., refer to `conftest.exe'), while it won't with
1729 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1731 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1732 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1739 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1740 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1741 { (exit 1); exit 1; }; }
1744 rm -f conftest$ac_cv_exeext
1745 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1746 echo "${ECHO_T}$ac_cv_exeext" >&6
1748 rm -f conftest.$ac_ext
1749 EXEEXT=$ac_cv_exeext
1751 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1752 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1753 if test "${ac_cv_objext+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #line $LINENO "configure"
1758 #include "confdefs.h"
1760 #ifdef F77_DUMMY_MAIN
1764 int F77_DUMMY_MAIN() { return 1; }
1774 rm -f conftest.o conftest.obj
1775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1776 (eval $ac_compile) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; then
1780 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1788 echo "$as_me: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1790 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1791 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1792 { (exit 1); exit 1; }; }
1795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1797 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1798 echo "${ECHO_T}$ac_cv_objext" >&6
1799 OBJEXT=$ac_cv_objext
1801 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 cat >conftest.$ac_ext <<_ACEOF
1807 #line $LINENO "configure"
1808 #include "confdefs.h"
1810 #ifdef F77_DUMMY_MAIN
1814 int F77_DUMMY_MAIN() { return 1; }
1827 rm -f conftest.$ac_objext
1828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1829 (eval $ac_compile) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); } &&
1833 { ac_try='test -s conftest.$ac_objext'
1834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }; }; then
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1845 rm -f conftest.$ac_objext conftest.$ac_ext
1846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1849 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1850 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1851 GCC=`test $ac_compiler_gnu = yes && echo yes`
1852 ac_test_CFLAGS=${CFLAGS+set}
1853 ac_save_CFLAGS=$CFLAGS
1855 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1856 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1857 if test "${ac_cv_prog_cc_g+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 cat >conftest.$ac_ext <<_ACEOF
1861 #line $LINENO "configure"
1862 #include "confdefs.h"
1864 #ifdef F77_DUMMY_MAIN
1868 int F77_DUMMY_MAIN() { return 1; }
1878 rm -f conftest.$ac_objext
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1892 echo "$as_me: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1896 rm -f conftest.$ac_objext conftest.$ac_ext
1898 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1899 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1900 if test "$ac_test_CFLAGS" = set; then
1901 CFLAGS=$ac_save_CFLAGS
1902 elif test $ac_cv_prog_cc_g = yes; then
1903 if test "$GCC" = yes; then
1909 if test "$GCC" = yes; then
1915 # Some people use a C++ compiler to compile C. Since we use `exit',
1916 # in C++ we need to declare it. In case someone uses the same compiler
1917 # for both compiling C and C++ we need to have the C++ compiler decide
1918 # the declaration of exit, since it's the most demanding environment.
1919 cat >conftest.$ac_ext <<_ACEOF
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1936 for ac_declaration in \
1938 '#include <stdlib.h>' \
1939 'extern "C" void std::exit (int) throw (); using std::exit;' \
1940 'extern "C" void std::exit (int); using std::exit;' \
1941 'extern "C" void exit (int) throw ();' \
1942 'extern "C" void exit (int);' \
1945 cat >conftest.$ac_ext <<_ACEOF
1946 #line $LINENO "configure"
1947 #include "confdefs.h"
1950 #ifdef F77_DUMMY_MAIN
1954 int F77_DUMMY_MAIN() { return 1; }
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1978 echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1982 rm -f conftest.$ac_objext conftest.$ac_ext
1983 cat >conftest.$ac_ext <<_ACEOF
1984 #line $LINENO "configure"
1985 #include "confdefs.h"
1987 #ifdef F77_DUMMY_MAIN
1991 int F77_DUMMY_MAIN() { return 1; }
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 rm -f conftest.$ac_objext conftest.$ac_ext
2021 if test -n "$ac_declaration"; then
2022 echo '#ifdef __cplusplus' >>confdefs.h
2023 echo $ac_declaration >>confdefs.h
2024 echo '#endif' >>confdefs.h
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 if test -z "$LD" && test "$GCC" = yes; then
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gld; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_LD+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$LD"; then
2049 ac_cv_prog_LD="$LD" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_LD="${ac_tool_prefix}gld"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 if test -n "$LD"; then
2069 echo "$as_me:$LINENO: result: $LD" >&5
2070 echo "${ECHO_T}$LD" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2077 if test -z "$ac_cv_prog_LD"; then
2079 # Extract the first word of "gld", so it can be a program name with args.
2080 set dummy gld; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_LD"; then
2087 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_LD="gld"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD=""""
2106 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2107 if test -n "$ac_ct_LD"; then
2108 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2109 echo "${ECHO_T}$ac_ct_LD" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2121 if test -z "$LD"; then
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}ld; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_LD+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$LD"; then
2131 ac_cv_prog_LD="$LD" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_LD="${ac_tool_prefix}ld"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test -n "$LD"; then
2151 echo "$as_me:$LINENO: result: $LD" >&5
2152 echo "${ECHO_T}$LD" >&6
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2159 if test -z "$ac_cv_prog_LD"; then
2161 # Extract the first word of "ld", so it can be a program name with args.
2162 set dummy ld; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test -n "$ac_ct_LD"; then
2169 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_ac_ct_LD="ld"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2188 if test -n "$ac_ct_LD"; then
2189 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2190 echo "${ECHO_T}$ac_ct_LD" >&6
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2203 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2204 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2205 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 libfirm_cv_prog_ld_r=no
2211 cat > conftest.$ac_ext <<EOF
2212 int foo() { return 0; }
2214 if eval $ac_compile && mv conftest.o conftest2.o; then
2215 cat > conftest.$ac_ext <<EOF
2216 int main() { return foo(); }
2218 if eval $ac_compile; then
2219 if $LD -r -o conftest conftest.o conftest2.o; then
2220 libfirm_cv_prog_ld_r=yes
2227 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2228 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2231 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2232 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2233 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2234 { (exit 1); exit 1; }; }
2237 # Extract the first word of "ar", so it can be a program name with args.
2238 set dummy ar; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_AR+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$AR"; then
2245 ac_cv_prog_AR="$AR" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_AR=""ar""
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2265 if test -n "$AR"; then
2266 echo "$as_me:$LINENO: result: $AR" >&5
2267 echo "${ECHO_T}$AR" >&6
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2273 if test "$AR" != "ar"; then
2274 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2275 echo "$as_me: error: need ar for creating archives" >&2;}
2276 { (exit 1); exit 1; }; }
2279 # Extract the first word of "tar", so it can be a program name with args.
2280 set dummy tar; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_TAR+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 if test -n "$TAR"; then
2287 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_TAR=""tar""
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2307 if test -n "$TAR"; then
2308 echo "$as_me:$LINENO: result: $TAR" >&5
2309 echo "${ECHO_T}$TAR" >&6
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2315 if test "$TAR" != "tar"; then
2316 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2317 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2318 { (exit 1); exit 1; }; }
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_RANLIB+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$RANLIB"; then
2331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 RANLIB=$ac_cv_prog_RANLIB
2350 if test -n "$RANLIB"; then
2351 echo "$as_me:$LINENO: result: $RANLIB" >&5
2352 echo "${ECHO_T}$RANLIB" >&6
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_RANLIB"; then
2360 ac_ct_RANLIB=$RANLIB
2361 # Extract the first word of "ranlib", so it can be a program name with args.
2362 set dummy ranlib; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_RANLIB"; then
2369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_RANLIB="ranlib"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2389 if test -n "$ac_ct_RANLIB"; then
2390 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2391 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2397 RANLIB=$ac_ct_RANLIB
2399 RANLIB="$ac_cv_prog_RANLIB"
2404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2405 if test -f $ac_dir/install-sh; then
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2409 elif test -f $ac_dir/install.sh; then
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2413 elif test -f $ac_dir/shtool; then
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 if test -z "$ac_aux_dir"; then
2420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2422 { (exit 1); exit 1; }; }
2424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2428 # Find a good install program. We prefer a C program (faster),
2429 # so one script is as good as another. But avoid the broken or
2430 # incompatible versions:
2431 # SysV /etc/install, /usr/sbin/install
2432 # SunOS /usr/etc/install
2433 # IRIX /sbin/install
2435 # AmigaOS /C/install, which installs bootblocks on floppy discs
2436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2453 ./ | .// | /cC/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2487 # As a last resort, use the slow shell script. We don't cache a
2488 # path for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the path is relative.
2491 INSTALL=$ac_install_sh
2494 echo "$as_me:$LINENO: result: $INSTALL" >&5
2495 echo "${ECHO_T}$INSTALL" >&6
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2507 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2509 if test "$LN_S" = "ln -s"; then
2510 echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6
2513 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2514 echo "${ECHO_T}no, using $LN_S" >&6
2518 if test "$enable_auto_documentation" = yes; then
2519 # Extract the first word of "robodoc", so it can be a program name with args.
2520 set dummy robodoc; ac_word=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_ROBODOC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$ROBODOC"; then
2527 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ROBODOC=""robodoc""
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
2546 ROBODOC=$ac_cv_prog_ROBODOC
2547 if test -n "$ROBODOC"; then
2548 echo "$as_me:$LINENO: result: $ROBODOC" >&5
2549 echo "${ECHO_T}$ROBODOC" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 if test "$ROBODOC" != "robodoc"; then
2556 { { echo "$as_me:$LINENO: error: need robodoc for auto documentation (IPD: module add robodoc)" >&5
2557 echo "$as_me: error: need robodoc for auto documentation (IPD: module add robodoc)" >&2;}
2558 { (exit 1); exit 1; }; }
2563 if test "$enable_firm_jni" = yes; then
2564 # Extract the first word of "javac", so it can be a program name with args.
2565 set dummy javac; ac_word=$2
2566 echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_JAVAC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$JAVAC"; then
2572 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_JAVAC=""javac""
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2591 JAVAC=$ac_cv_prog_JAVAC
2592 if test -n "$JAVAC"; then
2593 echo "$as_me:$LINENO: result: $JAVAC" >&5
2594 echo "${ECHO_T}$JAVAC" >&6
2596 echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2600 if test "$JAVAC" != "javac"; then
2601 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2602 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2603 { (exit 1); exit 1; }; }
2605 # Extract the first word of "javah", so it can be a program name with args.
2606 set dummy javah; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_JAVAH+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$JAVAH"; then
2613 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_JAVAH=""javah""
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2632 JAVAH=$ac_cv_prog_JAVAH
2633 if test -n "$JAVAH"; then
2634 echo "$as_me:$LINENO: result: $JAVAH" >&5
2635 echo "${ECHO_T}$JAVAH" >&6
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2641 if test "$JAVAH" != "javah"; then
2642 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2643 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2644 { (exit 1); exit 1; }; }
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2658 # On Suns, sometimes $CPP names a directory.
2659 if test -n "$CPP" && test -d "$CPP"; then
2662 if test -z "$CPP"; then
2663 if test "${ac_cv_prog_CPP+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 # Double quotes because CPP needs to be expanded
2667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2670 for ac_c_preproc_warn_flag in '' yes
2672 # Use a header file that comes with gcc, so configuring glibc
2673 # with a fresh cross-compiler works.
2674 # On the NeXT, cc -E runs the code through the compiler's parser,
2675 # not just through cpp. "Syntax error" is here to catch this case.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 #include "confdefs.h"
2682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2685 egrep -v '^ *\+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } >/dev/null; then
2690 if test -s conftest.err; then
2691 ac_cpp_err=$ac_c_preproc_warn_flag
2698 if test -z "$ac_cpp_err"; then
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 # Broken: fails on valid input.
2706 rm -f conftest.err conftest.$ac_ext
2708 # OK, works on sane cases. Now check whether non-existent headers
2709 # can be detected and how.
2710 cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2712 #include "confdefs.h"
2713 #include <ac_nonexistent.h>
2715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2718 egrep -v '^ *\+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } >/dev/null; then
2723 if test -s conftest.err; then
2724 ac_cpp_err=$ac_c_preproc_warn_flag
2731 if test -z "$ac_cpp_err"; then
2732 # Broken: success on invalid input.
2735 echo "$as_me: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 # Passes both tests.
2741 rm -f conftest.err conftest.$ac_ext
2744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2745 rm -f conftest.err conftest.$ac_ext
2746 if $ac_preproc_ok; then
2758 echo "$as_me:$LINENO: result: $CPP" >&5
2759 echo "${ECHO_T}$CPP" >&6
2761 for ac_c_preproc_warn_flag in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # On the NeXT, cc -E runs the code through the compiler's parser,
2766 # not just through cpp. "Syntax error" is here to catch this case.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line $LINENO "configure"
2769 #include "confdefs.h"
2773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2776 egrep -v '^ *\+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev/null; then
2781 if test -s conftest.err; then
2782 ac_cpp_err=$ac_c_preproc_warn_flag
2789 if test -z "$ac_cpp_err"; then
2792 echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 # Broken: fails on valid input.
2797 rm -f conftest.err conftest.$ac_ext
2799 # OK, works on sane cases. Now check whether non-existent headers
2800 # can be detected and how.
2801 cat >conftest.$ac_ext <<_ACEOF
2802 #line $LINENO "configure"
2803 #include "confdefs.h"
2804 #include <ac_nonexistent.h>
2806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2809 egrep -v '^ *\+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } >/dev/null; then
2814 if test -s conftest.err; then
2815 ac_cpp_err=$ac_c_preproc_warn_flag
2822 if test -z "$ac_cpp_err"; then
2823 # Broken: success on invalid input.
2826 echo "$as_me: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 # Passes both tests.
2832 rm -f conftest.err conftest.$ac_ext
2835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2836 rm -f conftest.err conftest.$ac_ext
2837 if $ac_preproc_ok; then
2840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2841 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2842 { (exit 1); exit 1; }; }
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2854 if test "${ac_cv_header_stdc+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 cat >conftest.$ac_ext <<_ACEOF
2858 #line $LINENO "configure"
2859 #include "confdefs.h"
2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2869 egrep -v '^ *\+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_c_preproc_warn_flag
2882 if test -z "$ac_cpp_err"; then
2883 ac_cv_header_stdc=yes
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_cv_header_stdc=no
2889 rm -f conftest.err conftest.$ac_ext
2891 if test $ac_cv_header_stdc = yes; then
2892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 #include "confdefs.h"
2899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2900 egrep "memchr" >/dev/null 2>&1; then
2903 ac_cv_header_stdc=no
2909 if test $ac_cv_header_stdc = yes; then
2910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2911 cat >conftest.$ac_ext <<_ACEOF
2912 #line $LINENO "configure"
2913 #include "confdefs.h"
2917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2918 egrep "free" >/dev/null 2>&1; then
2921 ac_cv_header_stdc=no
2927 if test $ac_cv_header_stdc = yes; then
2928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2929 if test "$cross_compiling" = yes; then
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 #include "confdefs.h"
2936 #if ((' ' & 0x0FF) == 0x020)
2937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2941 || ('j' <= (c) && (c) <= 'r') \
2942 || ('s' <= (c) && (c) <= 'z'))
2943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2951 for (i = 0; i < 256; i++)
2952 if (XOR (islower (i), ISLOWER (i))
2953 || toupper (i) != TOUPPER (i))
2958 rm -f conftest$ac_exeext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960 (eval $ac_link) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: program exited with status $ac_status" >&5
2972 echo "$as_me: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 ac_cv_header_stdc=no
2977 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2982 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2983 if test $ac_cv_header_stdc = yes; then
2985 cat >>confdefs.h <<\_ACEOF
2986 #define STDC_HEADERS 1
2993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3004 inttypes.h stdint.h unistd.h
3006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3007 echo "$as_me:$LINENO: checking for $ac_header" >&5
3008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 #include "confdefs.h"
3015 $ac_includes_default
3017 #include <$ac_header>
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 eval "$as_ac_Header=yes"
3033 echo "$as_me: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 eval "$as_ac_Header=no"
3037 rm -f conftest.$ac_objext conftest.$ac_ext
3039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3052 for ac_header in math.h
3054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3056 echo "$as_me:$LINENO: checking for $ac_header" >&5
3057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3064 # Is the header compilable?
3065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 #include "confdefs.h"
3070 $ac_includes_default
3071 #include <$ac_header>
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -s conftest.$ac_objext'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_header_compiler=yes
3087 echo "$as_me: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 ac_header_compiler=no
3091 rm -f conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3093 echo "${ECHO_T}$ac_header_compiler" >&6
3095 # Is the header present?
3096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3098 cat >conftest.$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3100 #include "confdefs.h"
3101 #include <$ac_header>
3103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 egrep -v '^ *\+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } >/dev/null; then
3111 if test -s conftest.err; then
3112 ac_cpp_err=$ac_c_preproc_warn_flag
3119 if test -z "$ac_cpp_err"; then
3120 ac_header_preproc=yes
3122 echo "$as_me: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 ac_header_preproc=no
3126 rm -f conftest.err conftest.$ac_ext
3127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3128 echo "${ECHO_T}$ac_header_preproc" >&6
3130 # So? What about this header?
3131 case $ac_header_compiler:$ac_header_preproc in
3133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3145 echo "$as_me:$LINENO: checking for $ac_header" >&5
3146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 eval "$as_ac_Header=$ac_header_preproc"
3152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3157 cat >>confdefs.h <<_ACEOF
3158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3160 ac_math_headers="yes"
3162 ac_math_headers="no"
3167 if test "$ac_math_headers" != yes; then
3168 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3169 echo "$as_me: error: \"math header file not found\"" >&2;}
3170 { (exit 1); exit 1; }; }
3176 for ac_header in gmp.h
3178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3180 echo "$as_me:$LINENO: checking for $ac_header" >&5
3181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3188 # Is the header compilable?
3189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line $LINENO "configure"
3193 #include "confdefs.h"
3194 $ac_includes_default
3195 #include <$ac_header>
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_header_compiler=yes
3211 echo "$as_me: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 ac_header_compiler=no
3215 rm -f conftest.$ac_objext conftest.$ac_ext
3216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3217 echo "${ECHO_T}$ac_header_compiler" >&6
3219 # Is the header present?
3220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line $LINENO "configure"
3224 #include "confdefs.h"
3225 #include <$ac_header>
3227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230 egrep -v '^ *\+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null; then
3235 if test -s conftest.err; then
3236 ac_cpp_err=$ac_c_preproc_warn_flag
3243 if test -z "$ac_cpp_err"; then
3244 ac_header_preproc=yes
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 ac_header_preproc=no
3250 rm -f conftest.err conftest.$ac_ext
3251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3252 echo "${ECHO_T}$ac_header_preproc" >&6
3254 # So? What about this header?
3255 case $ac_header_compiler:$ac_header_preproc in
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3269 echo "$as_me:$LINENO: checking for $ac_header" >&5
3270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 eval "$as_ac_Header=$ac_header_preproc"
3276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3281 cat >>confdefs.h <<_ACEOF
3282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3284 ac_gmp_headers="yes"
3291 if test "$ac_gmp_headers" != yes; then
3292 { { echo "$as_me:$LINENO: error: \"GNU multiprecission gmp header file not found\"" >&5
3293 echo "$as_me: error: \"GNU multiprecission gmp header file not found\"" >&2;}
3294 { (exit 1); exit 1; }; }
3300 for ac_header in obstack.h
3302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3304 echo "$as_me:$LINENO: checking for $ac_header" >&5
3305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 # Is the header compilable?
3313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3315 cat >conftest.$ac_ext <<_ACEOF
3316 #line $LINENO "configure"
3317 #include "confdefs.h"
3318 $ac_includes_default
3319 #include <$ac_header>
3321 rm -f conftest.$ac_objext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323 (eval $ac_compile) 2>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_header_compiler=yes
3335 echo "$as_me: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 ac_header_compiler=no
3339 rm -f conftest.$ac_objext conftest.$ac_ext
3340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3341 echo "${ECHO_T}$ac_header_compiler" >&6
3343 # Is the header present?
3344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3347 #line $LINENO "configure"
3348 #include "confdefs.h"
3349 #include <$ac_header>
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3354 egrep -v '^ *\+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3367 if test -z "$ac_cpp_err"; then
3368 ac_header_preproc=yes
3370 echo "$as_me: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3372 ac_header_preproc=no
3374 rm -f conftest.err conftest.$ac_ext
3375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3376 echo "${ECHO_T}$ac_header_preproc" >&6
3378 # So? What about this header?
3379 case $ac_header_compiler:$ac_header_preproc in
3381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3393 echo "$as_me:$LINENO: checking for $ac_header" >&5
3394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 eval "$as_ac_Header=$ac_header_preproc"
3400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3405 cat >>confdefs.h <<_ACEOF
3406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3408 ac_obstack_headers="yes"
3410 ac_obstack_headers="no"
3415 if test "$ac_obstack_headers" != yes; then
3416 { { echo "$as_me:$LINENO: error: \"obstack header file not found\"" >&5
3417 echo "$as_me: error: \"obstack header file not found\"" >&2;}
3418 { (exit 1); exit 1; }; }
3423 if test "$enable_firm_jni" = yes; then
3425 for ac_header in jni.h
3427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3429 echo "$as_me:$LINENO: checking for $ac_header" >&5
3430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437 # Is the header compilable?
3438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 #include "confdefs.h"
3443 $ac_includes_default
3444 #include <$ac_header>
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_header_compiler=yes
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 ac_header_compiler=no
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3466 echo "${ECHO_T}$ac_header_compiler" >&6
3468 # Is the header present?
3469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3473 #include "confdefs.h"
3474 #include <$ac_header>
3476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479 egrep -v '^ *\+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3492 if test -z "$ac_cpp_err"; then
3493 ac_header_preproc=yes
3495 echo "$as_me: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 ac_header_preproc=no
3499 rm -f conftest.err conftest.$ac_ext
3500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3501 echo "${ECHO_T}$ac_header_preproc" >&6
3503 # So? What about this header?
3504 case $ac_header_compiler:$ac_header_preproc in
3506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3518 echo "$as_me:$LINENO: checking for $ac_header" >&5
3519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 eval "$as_ac_Header=$ac_header_preproc"
3525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3530 cat >>confdefs.h <<_ACEOF
3531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3533 ac_jni_headers="yes"
3540 if test "$ac_jni_headers" != yes; then
3541 { { 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
3542 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;}
3543 { (exit 1); exit 1; }; }
3550 echo "$as_me:$LINENO: checking for main in -lgmp" >&5
3551 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
3552 if test "${ac_cv_lib_gmp_main+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_check_lib_save_LIBS=$LIBS
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 #include "confdefs.h"
3562 #ifdef F77_DUMMY_MAIN
3566 int F77_DUMMY_MAIN() { return 1; }
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578 (eval $ac_link) 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -s conftest$ac_exeext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_lib_gmp_main=yes
3590 echo "$as_me: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 ac_cv_lib_gmp_main=no
3594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3595 LIBS=$ac_check_lib_save_LIBS
3597 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
3598 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
3599 if test $ac_cv_lib_gmp_main = yes; then
3600 ac_gmp_library="yes"
3605 if test "$ac_gmp_library" != yes; then
3606 { { echo "$as_me:$LINENO: error: \"GNU multiprecission gmp library not found\"" >&5
3607 echo "$as_me: error: \"GNU multiprecission gmp library not found\"" >&2;}
3608 { (exit 1); exit 1; }; }
3612 echo "$as_me:$LINENO: checking for main in -lm" >&5
3613 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3614 if test "${ac_cv_lib_m_main+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 ac_check_lib_save_LIBS=$LIBS
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 #include "confdefs.h"
3624 #ifdef F77_DUMMY_MAIN
3628 int F77_DUMMY_MAIN() { return 1; }
3638 rm -f conftest.$ac_objext conftest$ac_exeext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640 (eval $ac_link) 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -s conftest$ac_exeext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_lib_m_main=yes
3652 echo "$as_me: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3657 LIBS=$ac_check_lib_save_LIBS
3659 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3660 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3661 if test $ac_cv_lib_m_main = yes; then
3667 if test "$ac_m_library" != yes; then
3668 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3669 echo "$as_me: error: \"standard math library not found\"" >&2;}
3670 { (exit 1); exit 1; }; }
3678 echo "$as_me:$LINENO: checking for strerror" >&5
3679 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3680 if test "${ac_cv_func_strerror+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 #include "confdefs.h"
3686 /* System header to define __stub macros and hopefully few prototypes,
3687 which can conflict with char strerror (); below. */
3689 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3698 #ifdef F77_DUMMY_MAIN
3702 int F77_DUMMY_MAIN() { return 1; }
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_strerror) || defined (__stub___strerror)
3720 rm -f conftest.$ac_objext conftest$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -s conftest$ac_exeext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_func_strerror=yes
3734 echo "$as_me: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 ac_cv_func_strerror=no
3738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3740 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3741 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3742 if test $ac_cv_func_strerror = yes; then
3745 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3746 echo "$as_me: error: \"need strerror function\"" >&2;}
3747 { (exit 1); exit 1; }; }
3755 ac_config_files="$ac_config_files $ac_output_file"
3756 ac_config_commands="$ac_config_commands default"
3757 cat >confcache <<\_ACEOF
3758 # This file is a shell script that caches the results of configure
3759 # tests run on this system so they can be shared between configure
3760 # scripts and configure runs, see configure's option --config-cache.
3761 # It is not useful on other systems. If it contains results you don't
3762 # want to keep, you may remove or edit it.
3764 # config.status only pays attention to the cache file if you give it
3765 # the --recheck option to rerun configure.
3767 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3773 # The following way of writing the cache mishandles newlines in values,
3774 # but we know of no workaround that is simple, portable, and efficient.
3775 # So, don't put newlines in cache variables' values.
3776 # Ultrix sh set writes to stderr and can't be redirected directly,
3777 # and sets the high bit in the cache file unless we assign to the vars.
3780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3782 # `set' does not quote correctly, so add quotes (double-quote
3783 # substitution turns \\\\ into \\, and sed turns \\ into \).
3786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3789 # `set' quotes correctly as required by POSIX, so do not add quotes.
3791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3802 if cmp -s $cache_file confcache; then :; else
3803 if test -w $cache_file; then
3804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3805 cat confcache >$cache_file
3807 echo "not updating unwritable cache $cache_file"
3812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3813 # Let make expand exec_prefix.
3814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3818 # trailing colons and then remove the whole line if VPATH becomes empty
3819 # (actually we leave an empty line to preserve line numbers).
3820 if test "x$srcdir" = x.; then
3821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3822 s/:*\$(srcdir):*/:/;
3823 s/:*\${srcdir}:*/:/;
3825 s/^\([^=]*=[ ]*\):*/\1/;
3831 DEFS=-DHAVE_CONFIG_H
3834 : ${CONFIG_STATUS=./config.status}
3835 ac_clean_files_save=$ac_clean_files
3836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3837 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3838 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3839 cat >$CONFIG_STATUS <<_ACEOF
3841 # Generated by $as_me.
3842 # Run this file to recreate the current configuration.
3843 # Compiler output produced by configure, useful for debugging
3844 # configure, is in config.log if it exists.
3847 SHELL=\${CONFIG_SHELL-$SHELL}
3850 cat >>$CONFIG_STATUS <<\_ACEOF
3852 ## --------------------- ##
3853 ## M4sh Initialization. ##
3854 ## --------------------- ##
3856 # Be Bourne compatible
3857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3860 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3865 # Support unset when possible.
3866 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3872 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3873 { $as_unset LANG || test "${LANG+set}" != set; } ||
3874 { LANG=C; export LANG; }
3875 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3876 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3877 { LC_ALL=C; export LC_ALL; }
3878 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3879 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3880 { LC_TIME=C; export LC_TIME; }
3881 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3882 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3883 { LC_CTYPE=C; export LC_CTYPE; }
3884 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3885 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3886 { LANGUAGE=C; export LANGUAGE; }
3887 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3888 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3889 { LC_COLLATE=C; export LC_COLLATE; }
3890 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3891 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3892 { LC_NUMERIC=C; export LC_NUMERIC; }
3893 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3894 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3895 { LC_MESSAGES=C; export LC_MESSAGES; }
3898 # Name of the executable.
3899 as_me=`(basename "$0") 2>/dev/null ||
3900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3901 X"$0" : 'X\(//\)$' \| \
3902 X"$0" : 'X\(/\)$' \| \
3903 . : '\(.\)' 2>/dev/null ||
3905 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3906 /^X\/\(\/\/\)$/{ s//\1/; q; }
3907 /^X\/\(\/\).*/{ s//\1/; q; }
3910 # PATH needs CR, and LINENO needs CR and PATH.
3911 # Avoid depending upon Character Ranges.
3912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3915 as_cr_digits='0123456789'
3916 as_cr_alnum=$as_cr_Letters$as_cr_digits
3918 # The user is always right.
3919 if test "${PATH_SEPARATOR+set}" != set; then
3920 echo "#! /bin/sh" >conftest.sh
3921 echo "exit 0" >>conftest.sh
3922 chmod +x conftest.sh
3923 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3935 test "x$as_lineno_1" != "x$as_lineno_2" &&
3936 test "x$as_lineno_3" = "x$as_lineno_2" || {
3937 # Find who we are. Look in the path if we contain no path at all
3940 *[\\/]* ) as_myself=$0 ;;
3941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3951 # We did not find ourselves, most probably we were run as `sh COMMAND'
3952 # in which case we are not to be found in the path.
3953 if test "x$as_myself" = x; then
3956 if test ! -f "$as_myself"; then
3957 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3958 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3959 { (exit 1); exit 1; }; }
3961 case $CONFIG_SHELL in
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3967 test -z "$as_dir" && as_dir=.
3968 for as_base in sh bash ksh sh5; do
3971 if ("$as_dir/$as_base" -c '
3974 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3975 test "x$as_lineno_1" != "x$as_lineno_2" &&
3976 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3977 CONFIG_SHELL=$as_dir/$as_base
3979 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3988 # uniformly replaced by the line number. The first 'sed' inserts a
3989 # line-number line before each line; the second 'sed' does the real
3990 # work. The second script uses 'N' to pair each line-number line
3991 # with the numbered line, and appends trailing '-' during
3992 # substitution so that $LINENO is not a special case at line end.
3993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3994 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3995 sed '=' <$as_myself |
4000 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4003 s,^['$as_cr_digits']*\n,,
4005 chmod +x $as_me.lineno ||
4006 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4007 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4008 { (exit 1); exit 1; }; }
4010 # Don't try to exec as it changes $[0], causing all sort of problems
4011 # (the dirname of $[0] is not the place where we might find the
4012 # original and so on. Autoconf is especially sensible to this).
4014 # Exit status is that of the last command.
4019 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4020 *c*,-n*) ECHO_N= ECHO_C='
4022 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4023 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4026 if expr a : '\(a\)' >/dev/null 2>&1; then
4032 rm -f conf$$ conf$$.exe conf$$.file
4034 if ln -s conf$$.file conf$$ 2>/dev/null; then
4035 # We could just check for DJGPP; but this test a) works b) is more generic
4036 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4037 if test -f conf$$.exe; then
4038 # Don't use ln at all; we don't have any links
4043 elif ln conf$$.file conf$$ 2>/dev/null; then
4048 rm -f conf$$ conf$$.exe conf$$.file
4050 as_executable_p="test -f"
4052 # Sed expression to map a string onto a valid CPP name.
4053 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4055 # Sed expression to map a string onto a valid variable name.
4056 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4060 # We need space, tab and new line, in precisely that order.
4066 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4070 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4071 # report actual input values of CONFIG_FILES etc. instead of their
4072 # values after options handling. Logging --version etc. is OK.
4076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4077 ## Running $as_me. ##
4082 This file was extended by libfirm $as_me 0.3.0, which was
4083 generated by GNU Autoconf 2.53. Invocation command line was
4085 CONFIG_FILES = $CONFIG_FILES
4086 CONFIG_HEADERS = $CONFIG_HEADERS
4087 CONFIG_LINKS = $CONFIG_LINKS
4088 CONFIG_COMMANDS = $CONFIG_COMMANDS
4092 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4096 # Files that config.status was made for.
4097 if test -n "$ac_config_files"; then
4098 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4101 if test -n "$ac_config_headers"; then
4102 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4105 if test -n "$ac_config_links"; then
4106 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4109 if test -n "$ac_config_commands"; then
4110 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4113 cat >>$CONFIG_STATUS <<\_ACEOF
4116 \`$as_me' instantiates files from templates according to the
4117 current configuration.
4119 Usage: $0 [OPTIONS] [FILE]...
4121 -h, --help print this help, then exit
4122 -V, --version print version number, then exit
4123 -d, --debug don't remove temporary files
4124 --recheck update $as_me by reconfiguring in the same conditions
4125 --file=FILE[:TEMPLATE]
4126 instantiate the configuration file FILE
4127 --header=FILE[:TEMPLATE]
4128 instantiate the configuration header FILE
4130 Configuration files:
4133 Configuration headers:
4136 Configuration commands:
4139 Report bugs to <bug-autoconf@gnu.org>."
4142 cat >>$CONFIG_STATUS <<_ACEOF
4144 libfirm config.status 0.3.0
4145 configured by $0, generated by GNU Autoconf 2.53,
4146 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4148 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4149 Free Software Foundation, Inc.
4150 This config.status script is free software; the Free Software Foundation
4151 gives unlimited permission to copy, distribute and modify it."
4156 cat >>$CONFIG_STATUS <<\_ACEOF
4157 # If no file are specified by the user, then we need to provide default
4158 # value. By we need to know if files were specified by the user.
4164 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4165 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4167 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4171 *) # This is not an option, so the user has probably given explicit
4173 ac_need_defaults=false;;
4177 # Handling of the options.
4179 cat >>$CONFIG_STATUS <<_ACEOF
4180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4181 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4182 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4184 cat >>$CONFIG_STATUS <<\_ACEOF
4185 --version | --vers* | -V )
4186 echo "$ac_cs_version"; exit 0 ;;
4188 # Conflict between --help and --header
4189 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4190 Try \`$0 --help' for more information." >&5
4191 echo "$as_me: error: ambiguous option: $1
4192 Try \`$0 --help' for more information." >&2;}
4193 { (exit 1); exit 1; }; };;
4194 --help | --hel | -h )
4195 echo "$ac_cs_usage"; exit 0 ;;
4196 --debug | --d* | -d )
4198 --file | --fil | --fi | --f )
4200 CONFIG_FILES="$CONFIG_FILES $1"
4201 ac_need_defaults=false;;
4202 --header | --heade | --head | --hea )
4204 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4205 ac_need_defaults=false;;
4208 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4209 Try \`$0 --help' for more information." >&5
4210 echo "$as_me: error: unrecognized option: $1
4211 Try \`$0 --help' for more information." >&2;}
4212 { (exit 1); exit 1; }; } ;;
4214 *) ac_config_targets="$ac_config_targets $1" ;;
4226 cat >>$CONFIG_STATUS <<\_ACEOF
4227 for ac_config_target in $ac_config_targets
4229 case "$ac_config_target" in
4230 # Handling of arguments.
4231 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4232 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4233 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4234 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4235 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4236 { (exit 1); exit 1; }; };;
4240 # If the user did not use the arguments to specify the items to instantiate,
4241 # then the envvar interface is used. Set only those that are not.
4242 # We use the long form for the default assignment because of an extremely
4243 # bizarre bug on SunOS 4.1.3.
4244 if $ac_need_defaults; then
4245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4250 # Create a temporary directory, and hook for its removal unless debugging.
4253 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4254 trap '{ (exit 1); exit 1; }' 1 2 13 15
4257 # Create a (secure) tmp directory for tmp files.
4260 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4261 test -n "$tmp" && test -d "$tmp"
4264 tmp=$TMPDIR/cs$$-$RANDOM
4265 (umask 077 && mkdir $tmp)
4268 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4269 { (exit 1); exit 1; }
4274 cat >>$CONFIG_STATUS <<_ACEOF
4277 # CONFIG_FILES section.
4280 # No need to generate the scripts if there are no CONFIG_FILES.
4281 # This happens for instance when ./config.status config.h
4282 if test -n "\$CONFIG_FILES"; then
4283 # Protect against being on the right side of a sed subst in config.status.
4284 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4285 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4286 s,@SHELL@,$SHELL,;t t
4287 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4288 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4289 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4290 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4291 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4292 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4293 s,@exec_prefix@,$exec_prefix,;t t
4294 s,@prefix@,$prefix,;t t
4295 s,@program_transform_name@,$program_transform_name,;t t
4296 s,@bindir@,$bindir,;t t
4297 s,@sbindir@,$sbindir,;t t
4298 s,@libexecdir@,$libexecdir,;t t
4299 s,@datadir@,$datadir,;t t
4300 s,@sysconfdir@,$sysconfdir,;t t
4301 s,@sharedstatedir@,$sharedstatedir,;t t
4302 s,@localstatedir@,$localstatedir,;t t
4303 s,@libdir@,$libdir,;t t
4304 s,@includedir@,$includedir,;t t
4305 s,@oldincludedir@,$oldincludedir,;t t
4306 s,@infodir@,$infodir,;t t
4307 s,@mandir@,$mandir,;t t
4308 s,@build_alias@,$build_alias,;t t
4309 s,@host_alias@,$host_alias,;t t
4310 s,@target_alias@,$target_alias,;t t
4312 s,@ECHO_C@,$ECHO_C,;t t
4313 s,@ECHO_N@,$ECHO_N,;t t
4314 s,@ECHO_T@,$ECHO_T,;t t
4316 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4317 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4318 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4319 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4320 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4321 s,@enable_firm_jni@,$enable_firm_jni,;t t
4323 s,@CFLAGS@,$CFLAGS,;t t
4324 s,@LDFLAGS@,$LDFLAGS,;t t
4325 s,@CPPFLAGS@,$CPPFLAGS,;t t
4326 s,@ac_ct_CC@,$ac_ct_CC,;t t
4327 s,@EXEEXT@,$EXEEXT,;t t
4328 s,@OBJEXT@,$OBJEXT,;t t
4330 s,@ac_ct_LD@,$ac_ct_LD,;t t
4331 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4334 s,@RANLIB@,$RANLIB,;t t
4335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4336 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4337 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4338 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4340 s,@ROBODOC@,$ROBODOC,;t t
4341 s,@JAVAC@,$JAVAC,;t t
4342 s,@JAVAH@,$JAVAH,;t t
4348 cat >>$CONFIG_STATUS <<\_ACEOF
4349 # Split the substitutions into bite-sized pieces for seds with
4350 # small command number limits, like on Digital OSF/1 and HP-UX.
4352 ac_sed_frag=1 # Number of current file.
4353 ac_beg=1 # First line for current file.
4354 ac_end=$ac_max_sed_lines # Line after last line for current file.
4357 while $ac_more_lines; do
4358 if test $ac_beg -gt 1; then
4359 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4361 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4363 if test ! -s $tmp/subs.frag; then
4366 # The purpose of the label and of the branching condition is to
4367 # speed up the sed processing (if there are no `@' at all, there
4368 # is no need to browse any of the substitutions).
4369 # These are the two extra sed commands mentioned above.
4371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4372 if test -z "$ac_sed_cmds"; then
4373 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4375 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4377 ac_sed_frag=`expr $ac_sed_frag + 1`
4379 ac_end=`expr $ac_end + $ac_max_sed_lines`
4382 if test -z "$ac_sed_cmds"; then
4385 fi # test -n "$CONFIG_FILES"
4388 cat >>$CONFIG_STATUS <<\_ACEOF
4389 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4392 - | *:- | *:-:* ) # input from stdin
4394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4398 * ) ac_file_in=$ac_file.in ;;
4401 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4402 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4404 X"$ac_file" : 'X\(//\)[^/]' \| \
4405 X"$ac_file" : 'X\(//\)$' \| \
4406 X"$ac_file" : 'X\(/\)' \| \
4407 . : '\(.\)' 2>/dev/null ||
4409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4411 /^X\(\/\/\)$/{ s//\1/; q; }
4412 /^X\(\/\).*/{ s//\1/; q; }
4415 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4419 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4420 case $as_mkdir_dir in
4421 # Skip DOS drivespec
4422 ?:) as_incr_dir=$as_mkdir_dir ;;
4424 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4425 test -d "$as_incr_dir" ||
4426 mkdir "$as_incr_dir" ||
4427 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4428 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4429 { (exit 1); exit 1; }; }
4436 if test "$ac_dir" != .; then
4437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4438 # A "../" for each directory in $ac_dir_suffix.
4439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4441 ac_dir_suffix= ac_top_builddir=
4445 .) # No --srcdir option. We are building in place.
4447 if test -z "$ac_top_builddir"; then
4450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4452 [\\/]* | ?:[\\/]* ) # Absolute path.
4453 ac_srcdir=$srcdir$ac_dir_suffix;
4454 ac_top_srcdir=$srcdir ;;
4456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4459 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4461 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4462 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4463 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4464 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4469 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4472 if test x"$ac_file" != x-; then
4473 { echo "$as_me:$LINENO: creating $ac_file" >&5
4474 echo "$as_me: creating $ac_file" >&6;}
4477 # Let's still pretend it is `configure' which instantiates (i.e., don't
4478 # use $as_me), people would be surprised to read:
4479 # /* config.h. Generated by config.status. */
4480 if test x"$ac_file" = x-; then
4483 configure_input="$ac_file. "
4485 configure_input=$configure_input"Generated from `echo $ac_file_in |
4486 sed 's,.*/,,'` by configure."
4488 # First look for the input files in the build tree, otherwise in the
4490 ac_file_inputs=`IFS=:
4491 for f in $ac_file_in; do
4493 -) echo $tmp/stdin ;;
4495 # Absolute (can't be DOS-style, as IFS=:)
4496 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4497 echo "$as_me: error: cannot find input file: $f" >&2;}
4498 { (exit 1); exit 1; }; }
4501 if test -f "$f"; then
4504 elif test -f "$srcdir/$f"; then
4509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4510 echo "$as_me: error: cannot find input file: $f" >&2;}
4511 { (exit 1); exit 1; }; }
4514 done` || { (exit 1); exit 1; }
4516 cat >>$CONFIG_STATUS <<_ACEOF
4520 cat >>$CONFIG_STATUS <<\_ACEOF
4522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4523 s,@configure_input@,$configure_input,;t t
4524 s,@srcdir@,$ac_srcdir,;t t
4525 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4526 s,@top_srcdir@,$ac_top_srcdir,;t t
4527 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4528 s,@builddir@,$ac_builddir,;t t
4529 s,@abs_builddir@,$ac_abs_builddir,;t t
4530 s,@top_builddir@,$ac_top_builddir,;t t
4531 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4532 s,@INSTALL@,$ac_INSTALL,;t t
4533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4535 if test x"$ac_file" != x-; then
4536 mv $tmp/out $ac_file
4544 cat >>$CONFIG_STATUS <<\_ACEOF
4547 # CONFIG_HEADER section.
4550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4553 # ac_d sets the value in "#define NAME VALUE" lines.
4554 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4555 ac_dB='[ ].*$,\1#\2'
4558 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4559 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4560 ac_uB='$,\1#\2define\3'
4564 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4567 - | *:- | *:-:* ) # input from stdin
4569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4573 * ) ac_file_in=$ac_file.in ;;
4576 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4577 echo "$as_me: creating $ac_file" >&6;}
4579 # First look for the input files in the build tree, otherwise in the
4581 ac_file_inputs=`IFS=:
4582 for f in $ac_file_in; do
4584 -) echo $tmp/stdin ;;
4586 # Absolute (can't be DOS-style, as IFS=:)
4587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4588 echo "$as_me: error: cannot find input file: $f" >&2;}
4589 { (exit 1); exit 1; }; }
4592 if test -f "$f"; then
4595 elif test -f "$srcdir/$f"; then
4600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4601 echo "$as_me: error: cannot find input file: $f" >&2;}
4602 { (exit 1); exit 1; }; }
4605 done` || { (exit 1); exit 1; }
4606 # Remove the trailing spaces.
4607 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4611 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4612 # `conftest.undefs', that substitutes the proper values into
4613 # config.h.in to produce config.h. The first handles `#define'
4614 # templates, and the second `#undef' templates.
4615 # And first: Protect against being on the right side of a sed subst in
4616 # config.status. Protect against being in an unquoted here document
4618 rm -f conftest.defines conftest.undefs
4619 # Using a here document instead of a string reduces the quoting nightmare.
4620 # Putting comments in sed scripts is not portable.
4622 # `end' is used to avoid that the second main sed command (meant for
4623 # 0-ary CPP macros) applies to n-ary macro definitions.
4624 # See the Autoconf documentation for `clear'.
4625 cat >confdef2sed.sed <<\_ACEOF
4630 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4632 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4635 # If some macros were called several times there might be several times
4636 # the same #defines, which is useless. Nevertheless, we may not want to
4637 # sort them, since we want the *last* AC-DEFINE to be honored.
4638 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4639 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4640 rm -f confdef2sed.sed
4642 # This sed command replaces #undef with comments. This is necessary, for
4643 # example, in the case of _POSIX_SOURCE, which is predefined and required
4644 # on some systems where configure will not decide to define it.
4645 cat >>conftest.undefs <<\_ACEOF
4646 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4649 # Break up conftest.defines because some shells have a limit on the size
4650 # of here documents, and old seds have small limits too (100 cmds).
4651 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4652 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4653 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4654 echo ' :' >>$CONFIG_STATUS
4656 while grep . conftest.defines >/dev/null
4658 # Write a limited-size here document to $tmp/defines.sed.
4659 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4660 # Speed up: don't consider the non `#define' lines.
4661 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4662 # Work around the forget-to-reset-the-flag bug.
4663 echo 't clr' >>$CONFIG_STATUS
4664 echo ': clr' >>$CONFIG_STATUS
4665 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4667 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4671 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4672 rm -f conftest.defines
4673 mv conftest.tail conftest.defines
4675 rm -f conftest.defines
4676 echo ' fi # egrep' >>$CONFIG_STATUS
4677 echo >>$CONFIG_STATUS
4679 # Break up conftest.undefs because some shells have a limit on the size
4680 # of here documents, and old seds have small limits too (100 cmds).
4681 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4683 while grep . conftest.undefs >/dev/null
4685 # Write a limited-size here document to $tmp/undefs.sed.
4686 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4687 # Speed up: don't consider the non `#undef'
4688 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4689 # Work around the forget-to-reset-the-flag bug.
4690 echo 't clr' >>$CONFIG_STATUS
4691 echo ': clr' >>$CONFIG_STATUS
4692 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4694 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4698 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4699 rm -f conftest.undefs
4700 mv conftest.tail conftest.undefs
4702 rm -f conftest.undefs
4704 cat >>$CONFIG_STATUS <<\_ACEOF
4705 # Let's still pretend it is `configure' which instantiates (i.e., don't
4706 # use $as_me), people would be surprised to read:
4707 # /* config.h. Generated by config.status. */
4708 if test x"$ac_file" = x-; then
4709 echo "/* Generated by configure. */" >$tmp/config.h
4711 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4713 cat $tmp/in >>$tmp/config.h
4715 if test x"$ac_file" != x-; then
4716 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4717 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4718 echo "$as_me: $ac_file is unchanged" >&6;}
4720 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4722 X"$ac_file" : 'X\(//\)[^/]' \| \
4723 X"$ac_file" : 'X\(//\)$' \| \
4724 X"$ac_file" : 'X\(/\)' \| \
4725 . : '\(.\)' 2>/dev/null ||
4727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4729 /^X\(\/\/\)$/{ s//\1/; q; }
4730 /^X\(\/\).*/{ s//\1/; q; }
4733 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4737 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4738 case $as_mkdir_dir in
4739 # Skip DOS drivespec
4740 ?:) as_incr_dir=$as_mkdir_dir ;;
4742 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4743 test -d "$as_incr_dir" ||
4744 mkdir "$as_incr_dir" ||
4745 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4746 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4747 { (exit 1); exit 1; }; }
4753 mv $tmp/config.h $ac_file
4761 cat >>$CONFIG_STATUS <<\_ACEOF
4764 # CONFIG_COMMANDS section.
4766 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4767 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4768 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4769 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4770 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4771 X"$ac_dest" : 'X\(//\)[^/]' \| \
4772 X"$ac_dest" : 'X\(//\)$' \| \
4773 X"$ac_dest" : 'X\(/\)' \| \
4774 . : '\(.\)' 2>/dev/null ||
4776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4778 /^X\(\/\/\)$/{ s//\1/; q; }
4779 /^X\(\/\).*/{ s//\1/; q; }
4783 if test "$ac_dir" != .; then
4784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4785 # A "../" for each directory in $ac_dir_suffix.
4786 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4788 ac_dir_suffix= ac_top_builddir=
4792 .) # No --srcdir option. We are building in place.
4794 if test -z "$ac_top_builddir"; then
4797 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4799 [\\/]* | ?:[\\/]* ) # Absolute path.
4800 ac_srcdir=$srcdir$ac_dir_suffix;
4801 ac_top_srcdir=$srcdir ;;
4803 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4804 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4806 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4808 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4809 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4810 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4811 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4814 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4815 echo "$as_me: executing $ac_dest commands" >&6;}
4817 default ) touch stamp-h ;;
4822 cat >>$CONFIG_STATUS <<\_ACEOF
4824 { (exit 0); exit 0; }
4826 chmod +x $CONFIG_STATUS
4827 ac_clean_files=$ac_clean_files_save
4830 # configure is writing to config.log, and then calls config.status.
4831 # config.status does its own redirection, appending to config.log.
4832 # Unfortunately, on DOS this fails, as config.log is still kept open
4833 # by configure, so config.status won't be able to write to it; its
4834 # output is simply discarded. So we exec the FD to /dev/null,
4835 # effectively closing config.log, so it can be properly (re)opened and
4836 # appended to by config.status. When coming back to configure, we
4837 # need to make the FD available again.
4838 if test "$no_create" != yes; then
4841 $SHELL $CONFIG_STATUS || ac_cs_success=false
4843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4844 # would make configure fail if this is the last instruction.
4845 $ac_cs_success || { (exit 1); exit 1; }