2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Support unset when possible.
31 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
39 { LANG
=C
; export LANG
; }
40 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
42 { LC_ALL
=C
; export LC_ALL
; }
43 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
45 { LC_TIME
=C
; export LC_TIME
; }
46 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE
=C
; export LC_CTYPE
; }
49 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE
=C
; export LANGUAGE
; }
52 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE
=C
; export LC_COLLATE
; }
55 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
58 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 CONFIG_SHELL
=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x
$as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c
*,-n*) ECHO_N
= ECHO_C
='
185 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
186 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix
=/usr
/local
247 SHELL
=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file
="as.h"
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 this package 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]
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
822 --build=BUILD configure
for building on BUILD
[guessed
]
823 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
824 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
828 if test -n "$ac_init_help"; then
833 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
834 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
835 --enable-shared=PKGS build shared libraries default
=yes
836 --enable-static=PKGS build static libraries default
=yes
837 --enable-fast-install=PKGS optimize
for fast installation default
=yes
838 --disable-libtool-lock avoid locking
(might
break parallel builds
)
839 --enable-bfd-assembler use BFD back end
for writing object files
840 targets alternative target configurations besides the primary
841 --enable-commonbfdlib build shared BFD
/opcodes
/libiberty library
842 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
843 --disable-nls do not use Native Language Support
844 --enable-maintainer-mode enable make rules and dependencies not useful
845 (and sometimes confusing
) to the casual installer
848 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
849 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
850 --with-gnu-ld assume the C compiler uses GNU ld default
=no
851 --with-pic try to use only PIC
/non-PIC objects default
=use both
852 --with-included-gettext use the GNU
gettext library included here
854 Some influential environment variables
:
855 CC C compiler
command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
858 nonstandard directory
<lib dir
>
859 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
860 headers
in a nonstandard directory
<include dir
>
863 Use these variables to override the choices made by
`configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
869 if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
876 if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
881 ac_dir_suffix= ac_top_builddir=
885 .) # No --srcdir option. We are building in place.
887 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
902 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
904 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
907 # Check for guested configure; otherwise get Cygnus style configure.
908 if test -f $ac_srcdir/configure.gnu; then
910 $SHELL $ac_srcdir/configure.gnu --help=recursive
911 elif test -f $ac_srcdir/configure; then
913 $SHELL $ac_srcdir/configure --help=recursive
914 elif test -f $ac_srcdir/configure.ac ||
915 test -f $ac_srcdir/configure.in; then
919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
925 test -n "$ac_init_help" && exit 0
926 if $ac_init_version; then
929 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
930 Free Software Foundation, Inc.
931 This configure script is free software; the Free Software Foundation
932 gives unlimited permission to copy, distribute and modify it.
938 This file contains any messages produced by compilers while
939 running configure, to aid debugging if configure makes a mistake.
941 It was created by $as_me, which was
942 generated by GNU Autoconf 2.53. Invocation command line was
953 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
954 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
955 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
956 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
957 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
959 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
960 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
962 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
963 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
964 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
965 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
966 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
967 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
968 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
976 test -z "$as_dir" && as_dir=.
992 # Keep a trace of the command line.
993 # Strip out --no-create and --no-recursion so they do not pile up.
994 # Also quote any args containing shell meta-characters.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n ) continue ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1008 case " $ac_configure_args " in
1009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1010 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1013 # Get rid of the leading space.
1016 # When interrupted or exit'd, cleanup temporary files, and complete
1017 # config.log. We remove comments because anyway the quotes in there
1018 # would cause problems or look ugly.
1019 # WARNING: Be sure not to use single quotes in there, as some shells,
1020 # such as our DU 5.0 friend, will then `close
' the trap.
1021 trap 'exit_status
=$?
1022 # Save into config.log some information that might help in debugging.
1026 ## ---------------- ##
1027 ## Cache variables. ##
1028 ## ---------------- ##
1031 # The following way of writing the cache mishandles newlines in values,
1034 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1037 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1042 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1047 if test -s confdefs.h
; then
1054 sed "/^$/d" confdefs.h
1057 test "$ac_signal" != 0 &&
1058 echo "$as_me: caught signal $ac_signal"
1059 echo "$as_me: exit $exit_status"
1061 rm -f core core.
* *.core
&&
1062 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1065 for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1071 rm -rf conftest* confdefs.h
1072 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1075 # Predefined preprocessor variables.
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_NAME "$PACKAGE_NAME"
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_STRING "$PACKAGE_STRING"
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1102 # Let the site file select an alternate cache file if it wants to.
1103 # Prefer explicitly selected file to automatically selected ones.
1104 if test -z "$CONFIG_SITE"; then
1105 if test "x$prefix" != xNONE; then
1106 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1108 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1111 for ac_site_file in $CONFIG_SITE; do
1112 if test -r "$ac_site_file"; then
1113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1114 echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's
/^
/|
/' "$ac_site_file" >&5
1120 if test -r "$cache_file"; then
1121 # Some versions of bash will fail to source /dev/null (special
1122 # files actually), so we avoid doing that.
1123 if test -f "$cache_file"; then
1124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1125 echo "$as_me: loading cache $cache_file" >&6;}
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133 echo "$as_me: creating cache $cache_file" >&6;}
1137 # Check that the precious variables saved in the cache have kept the same
1139 ac_cache_corrupted=false
1140 for ac_var in `(set) 2>&1 |
1141 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1143 eval ac_new_set=\$ac_env_${ac_var}_set
1144 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1145 eval ac_new_val="\$ac_env_${ac_var}_value"
1146 case $ac_old_set,$ac_new_set in
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1150 ac_cache_corrupted=: ;;
1152 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1153 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1154 ac_cache_corrupted=: ;;
1157 if test "x$ac_old_val" != "x$ac_new_val"; then
1158 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1159 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161 echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163 echo "$as_me: current value: $ac_new_val" >&2;}
1164 ac_cache_corrupted=:
1167 # Pass precious variables to config.status.
1168 if test "$ac_new_set" = set; then
1170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1171 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1172 *) ac_arg=$ac_var=$ac_new_val ;;
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1180 if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1183 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1184 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1191 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1213 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1214 if test -f $ac_dir/install-sh; then
1216 ac_install_sh="$ac_aux_dir/install-sh -c"
1218 elif test -f $ac_dir/install.sh; then
1220 ac_install_sh="$ac_aux_dir/install.sh -c"
1222 elif test -f $ac_dir/shtool; then
1224 ac_install_sh="$ac_aux_dir/shtool install -c"
1228 if test -z "$ac_aux_dir"; then
1229 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1230 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1231 { (exit 1); exit 1; }; }
1233 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1234 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1235 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1237 # Make sure we can run config.sub.
1238 $ac_config_sub sun4 >/dev/null 2>&1 ||
1239 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1240 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1241 { (exit 1); exit 1; }; }
1243 echo "$as_me:$LINENO: checking build system type" >&5
1244 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1245 if test "${ac_cv_build+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1248 ac_cv_build_alias=$build_alias
1249 test -z "$ac_cv_build_alias" &&
1250 ac_cv_build_alias=`$ac_config_guess`
1251 test -z "$ac_cv_build_alias" &&
1252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1254 { (exit 1); exit 1; }; }
1255 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1256 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1257 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1258 { (exit 1); exit 1; }; }
1261 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1262 echo "${ECHO_T}$ac_cv_build" >&6
1264 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1265 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1266 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1269 echo "$as_me:$LINENO: checking host system type" >&5
1270 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1271 if test "${ac_cv_host+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 ac_cv_host_alias=$host_alias
1275 test -z "$ac_cv_host_alias" &&
1276 ac_cv_host_alias=$ac_cv_build_alias
1277 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1278 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1279 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1280 { (exit 1); exit 1; }; }
1283 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1284 echo "${ECHO_T}$ac_cv_host" >&6
1286 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1287 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1288 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1291 echo "$as_me:$LINENO: checking target system type" >&5
1292 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1293 if test "${ac_cv_target+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 ac_cv_target_alias=$target_alias
1297 test "x$ac_cv_target_alias" = "x" &&
1298 ac_cv_target_alias=$ac_cv_host_alias
1299 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1300 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1301 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1302 { (exit 1); exit 1; }; }
1305 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1306 echo "${ECHO_T}$ac_cv_target" >&6
1307 target=$ac_cv_target
1308 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1309 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1310 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1313 # The aliases save the names the user supplied, while $host etc.
1314 # will get canonicalized.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1318 program_prefix=${target_alias}-
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1322 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 if test -n "$ac_tool_prefix"; then
1325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1327 echo "$as_me:$LINENO: checking for $ac_word" >&5
1328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329 if test "${ac_cv_prog_CC+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 if test -n "$CC"; then
1333 ac_cv_prog_CC="$CC" # Let the user override the test.
1335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339 test -z "$as_dir" && as_dir=.
1340 for ac_exec_ext in '' $ac_executable_extensions; do
1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1352 if test -n "$CC"; then
1353 echo "$as_me:$LINENO: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:$LINENO: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$ac_cv_prog_CC"; then
1363 # Extract the first word of "gcc", so it can be a program name with args.
1364 set dummy gcc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_ac_ct_CC="gcc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390 if test -n "$ac_ct_CC"; then
1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1392 echo "${ECHO_T}$ac_ct_CC" >&6
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1403 if test -z "$CC"; then
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1406 set dummy ${ac_tool_prefix}cc; ac_word=$2
1407 echo "$as_me:$LINENO: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_prog_CC="${ac_tool_prefix}cc"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 if test -n "$CC"; then
1433 echo "$as_me:$LINENO: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1436 echo "$as_me:$LINENO: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1441 if test -z "$ac_cv_prog_CC"; then
1443 # Extract the first word of "cc", so it can be a program name with args.
1444 set dummy cc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_ac_ct_CC="cc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470 if test -n "$ac_ct_CC"; then
1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1472 echo "${ECHO_T}$ac_ct_CC" >&6
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1484 if test -z "$CC"; then
1485 # Extract the first word of "cc", so it can be a program name with args.
1486 set dummy cc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1504 ac_prog_rejected=yes
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 if test $ac_prog_rejected = yes; then
1515 # We found a bogon in the path, so make sure we never use it.
1516 set dummy $ac_cv_prog_CC
1518 if test $# != 0; then
1519 # We chose a different compiler from the bogus one.
1520 # However, it has the same basename, so the bogon will be chosen
1521 # first if we set CC to just the basename; use the full file name.
1523 set dummy "$as_dir/$ac_word" ${1+"$@"}
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1540 if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 test -n "$CC" && break
1582 if test -z "$CC"; then
1586 # Extract the first word of "$ac_prog", so it can be a program name with args.
1587 set dummy $ac_prog; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_ac_ct_CC="$ac_prog"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613 if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615 echo "${ECHO_T}$ac_ct_CC" >&6
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1621 test -n "$ac_ct_CC" && break
1630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1631 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1632 { (exit 1); exit 1; }; }
1634 # Provide some information about the compiler.
1635 echo "$as_me:$LINENO:" \
1636 "checking for C compiler version" >&5
1637 ac_compiler=`set X $ac_compile; echo $2`
1638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1639 (eval $ac_compiler --version </dev/null >&5) 2>&5
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }
1643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1644 (eval $ac_compiler -v </dev/null >&5) 2>&5
1646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1647 (exit $ac_status); }
1648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1649 (eval $ac_compiler -V </dev/null >&5) 2>&5
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }
1654 cat >conftest.$ac_ext <<_ACEOF
1655 #line $LINENO "configure"
1656 #include "confdefs.h"
1658 #ifdef F77_DUMMY_MAIN
1662 int F77_DUMMY_MAIN() { return 1; }
1672 ac_clean_files_save=$ac_clean_files
1673 ac_clean_files="$ac_clean_files a.out a.exe"
1674 # Try to create an executable without -o first, disregard a.out.
1675 # It will help us diagnose broken compilers, and finding out an intuition
1677 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1678 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1679 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1680 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1681 (eval $ac_link_default) 2>&5
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 # Find the output, starting from the most likely. This scheme is
1686 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1689 # Be careful to initialize this variable, since it used to be cached.
1690 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1692 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1693 ls a.out conftest 2>/dev/null;
1694 ls a.* conftest.* 2>/dev/null`; do
1696 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1697 a.out
) # We found the default executable, but exeext='' is most
1700 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1708 echo "$as_me: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1711 echo "$as_me: error: C compiler cannot create executables" >&2;}
1712 { (exit 77); exit 77; }; }
1715 ac_exeext
=$ac_cv_exeext
1716 echo "$as_me:$LINENO: result: $ac_file" >&5
1717 echo "${ECHO_T}$ac_file" >&6
1719 # Check the compiler produces executables we can run. If not, either
1720 # the compiler is broken, or we cross compile.
1721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1724 # If not cross compiling, check that we can run a simple program.
1725 if test "$cross_compiling" != yes; then
1726 if { ac_try
='./$ac_file'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1734 if test "$cross_compiling" = maybe
; then
1737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1738 If you meant to cross compile, use \`--host'." >&5
1739 echo "$as_me: error: cannot run C compiled programs.
1740 If you meant to cross compile, use \`--host'." >&2;}
1741 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1748 rm -f a.out a.exe conftest
$ac_cv_exeext
1749 ac_clean_files
=$ac_clean_files_save
1750 # Check the compiler produces executables we can run. If not, either
1751 # the compiler is broken, or we cross compile.
1752 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755 echo "${ECHO_T}$cross_compiling" >&6
1757 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760 (eval $ac_link) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1766 # work properly (i.e., refer to `conftest.exe'), while it won't with
1768 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1770 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1771 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1779 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1780 { (exit 1); exit 1; }; }
1783 rm -f conftest
$ac_cv_exeext
1784 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785 echo "${ECHO_T}$ac_cv_exeext" >&6
1787 rm -f conftest.
$ac_ext
1788 EXEEXT
=$ac_cv_exeext
1790 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792 if test "${ac_cv_objext+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 cat >conftest.
$ac_ext <<_ACEOF
1796 #line $LINENO "configure"
1797 #include "confdefs.h"
1799 #ifdef F77_DUMMY_MAIN
1803 int F77_DUMMY_MAIN() { return 1; }
1813 rm -f conftest.o conftest.obj
1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1822 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1827 echo "$as_me: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1830 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1831 { (exit 1); exit 1; }; }
1834 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1836 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837 echo "${ECHO_T}$ac_cv_objext" >&6
1838 OBJEXT
=$ac_cv_objext
1840 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 cat >conftest.
$ac_ext <<_ACEOF
1846 #line $LINENO "configure"
1847 #include "confdefs.h"
1849 #ifdef F77_DUMMY_MAIN
1853 int F77_DUMMY_MAIN() { return 1; }
1866 rm -f conftest.
$ac_objext
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try
='test -s conftest.$ac_objext'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.
$ac_ext >&5
1884 rm -f conftest.
$ac_objext conftest.
$ac_ext
1885 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1888 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1889 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1890 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1891 ac_test_CFLAGS
=${CFLAGS+set}
1892 ac_save_CFLAGS
=$CFLAGS
1894 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1895 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1896 if test "${ac_cv_prog_cc_g+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 cat >conftest.
$ac_ext <<_ACEOF
1900 #line $LINENO "configure"
1901 #include "confdefs.h"
1903 #ifdef F77_DUMMY_MAIN
1907 int F77_DUMMY_MAIN() { return 1; }
1917 rm -f conftest.
$ac_objext
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try
='test -s conftest.$ac_objext'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1935 rm -f conftest.
$ac_objext conftest.
$ac_ext
1937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS
=$ac_save_CFLAGS
1941 elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1948 if test "$GCC" = yes; then
1954 # Some people use a C++ compiler to compile C. Since we use `exit',
1955 # in C++ we need to declare it. In case someone uses the same compiler
1956 # for both compiling C and C++ we need to have the C++ compiler decide
1957 # the declaration of exit, since it's the most demanding environment.
1958 cat >conftest.
$ac_ext <<_ACEOF
1963 rm -f conftest.
$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); } &&
1969 { ac_try
='test -s conftest.$ac_objext'
1970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; }; then
1975 for ac_declaration
in \
1977 '#include <stdlib.h>' \
1978 'extern "C" void std::exit (int) throw (); using std::exit;' \
1979 'extern "C" void std::exit (int); using std::exit;' \
1980 'extern "C" void exit (int) throw ();' \
1981 'extern "C" void exit (int);' \
1984 cat >conftest.
$ac_ext <<_ACEOF
1985 #line $LINENO "configure"
1986 #include "confdefs.h"
1989 #ifdef F77_DUMMY_MAIN
1993 int F77_DUMMY_MAIN() { return 1; }
2003 rm -f conftest.
$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try
='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2021 rm -f conftest.
$ac_objext conftest.
$ac_ext
2022 cat >conftest.
$ac_ext <<_ACEOF
2023 #line $LINENO "configure"
2024 #include "confdefs.h"
2026 #ifdef F77_DUMMY_MAIN
2030 int F77_DUMMY_MAIN() { return 1; }
2040 rm -f conftest.
$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try
='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 rm -f conftest.
$ac_objext conftest.
$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 rm -f conftest.
$ac_objext conftest.
$ac_ext
2072 ac_cpp
='$CPP $CPPFLAGS'
2073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2079 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2080 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2081 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 ac_check_lib_save_LIBS
=$LIBS
2085 LIBS
="-lcposix $LIBS"
2086 cat >conftest.
$ac_ext <<_ACEOF
2087 #line $LINENO "configure"
2088 #include "confdefs.h"
2090 /* Override any gcc2 internal prototype to avoid an error. */
2094 /* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2097 #ifdef F77_DUMMY_MAIN
2101 int F77_DUMMY_MAIN() { return 1; }
2111 rm -f conftest.
$ac_objext conftest
$ac_exeext
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try
='test -s conftest$ac_exeext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_lib_cposix_strerror
=yes
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.
$ac_ext >&5
2127 ac_cv_lib_cposix_strerror
=no
2129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2130 LIBS
=$ac_check_lib_save_LIBS
2132 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2133 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2134 if test $ac_cv_lib_cposix_strerror = yes; then
2135 LIBS
="$LIBS -lcposix"
2141 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2142 # Find a good install program. We prefer a C program (faster),
2143 # so one script is as good as another. But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # ./install, which can be erroneously created by make from ./install.sh.
2154 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2155 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2156 if test -z "$INSTALL"; then
2157 if test "${ac_cv_path_install+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir
=.
2165 # Account for people who put trailing slashes in PATH elements.
2167 .
/ | .
// |
/cC
/* | \
2168 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2171 # OSF1 and SCO ODT 3.0 have their own names for install.
2172 # Don't use installbsd from OSF since it installs stuff as root
2174 for ac_prog
in ginstall scoinst
install; do
2175 for ac_exec_ext
in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2177 if test $ac_prog = install &&
2178 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2179 # AIX install. It has an incompatible calling convention.
2181 elif test $ac_prog = install &&
2182 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2183 # program-specific install script used by HP pwplus--don't use.
2186 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2198 if test "${ac_cv_path_install+set}" = set; then
2199 INSTALL
=$ac_cv_path_install
2201 # As a last resort, use the slow shell script. We don't cache a
2202 # path for INSTALL within a source directory, because that will
2203 # break other packages using the cache if that directory is
2204 # removed, or if the path is relative.
2205 INSTALL
=$ac_install_sh
2208 echo "$as_me:$LINENO: result: $INSTALL" >&5
2209 echo "${ECHO_T}$INSTALL" >&6
2211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2212 # It thinks the first close brace ends the variable substitution.
2213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2217 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2219 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2223 echo timestamp
> conftestfile
2224 # Do `set' in a subshell so we don't clobber the current shell's
2225 # arguments. Must try -L first in case configure is actually a
2226 # symlink; some systems play weird games with the mod time of symlinks
2227 # (eg FreeBSD returns the mod time of the symlink's containing
2230 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2231 if test "$*" = "X"; then
2233 set X
`ls -t $srcdir/configure conftestfile`
2235 if test "$*" != "X $srcdir/configure conftestfile" \
2236 && test "$*" != "X conftestfile $srcdir/configure"; then
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
2242 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
2249 test "$2" = conftestfile
2255 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2264 test "$program_prefix" != NONE
&&
2265 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2266 # Use a double $ so make ignores it.
2267 test "$program_suffix" != NONE
&&
2268 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2269 # Double any \ or $. echo might interpret backslashes.
2270 # By default was `s,x,x', remove it if useless.
2271 cat <<\_ACEOF
>conftest.
sed
2272 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2274 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2277 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2278 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2279 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
2280 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 cat >conftest.
make <<\_ACEOF
2285 @
echo 'ac_maketemp="${MAKE}"'
2287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2288 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2289 if test -n "$ac_maketemp"; then
2290 eval ac_cv_prog_make_
${ac_make}_set
=yes
2292 eval ac_cv_prog_make_
${ac_make}_set
=no
2296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2297 echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2303 SET_MAKE
="MAKE=${MAKE-make}"
2309 VERSION
=${BFD_VERSION}
2311 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
2312 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2313 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2314 { (exit 1); exit 1; }; }
2317 cat >>confdefs.h
<<_ACEOF
2318 #define PACKAGE "$PACKAGE"
2322 cat >>confdefs.h
<<_ACEOF
2323 #define VERSION "$VERSION"
2328 missing_dir
=`cd $ac_aux_dir && pwd`
2329 echo "$as_me:$LINENO: checking for working aclocal" >&5
2330 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
2331 # Run test in a subshell; some versions of sh will print an error if
2332 # an executable is not found, even if stderr is redirected.
2333 # Redirect stdin to placate older versions of autoconf. Sigh.
2334 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
2336 echo "$as_me:$LINENO: result: found" >&5
2337 echo "${ECHO_T}found" >&6
2339 ACLOCAL
="$missing_dir/missing aclocal"
2340 echo "$as_me:$LINENO: result: missing" >&5
2341 echo "${ECHO_T}missing" >&6
2344 echo "$as_me:$LINENO: checking for working autoconf" >&5
2345 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2346 # Run test in a subshell; some versions of sh will print an error if
2347 # an executable is not found, even if stderr is redirected.
2348 # Redirect stdin to placate older versions of autoconf. Sigh.
2349 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
2351 echo "$as_me:$LINENO: result: found" >&5
2352 echo "${ECHO_T}found" >&6
2354 AUTOCONF
="$missing_dir/missing autoconf"
2355 echo "$as_me:$LINENO: result: missing" >&5
2356 echo "${ECHO_T}missing" >&6
2359 echo "$as_me:$LINENO: checking for working automake" >&5
2360 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
2361 # Run test in a subshell; some versions of sh will print an error if
2362 # an executable is not found, even if stderr is redirected.
2363 # Redirect stdin to placate older versions of autoconf. Sigh.
2364 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
2366 echo "$as_me:$LINENO: result: found" >&5
2367 echo "${ECHO_T}found" >&6
2369 AUTOMAKE
="$missing_dir/missing automake"
2370 echo "$as_me:$LINENO: result: missing" >&5
2371 echo "${ECHO_T}missing" >&6
2374 echo "$as_me:$LINENO: checking for working autoheader" >&5
2375 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2376 # Run test in a subshell; some versions of sh will print an error if
2377 # an executable is not found, even if stderr is redirected.
2378 # Redirect stdin to placate older versions of autoconf. Sigh.
2379 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
2380 AUTOHEADER
=autoheader
2381 echo "$as_me:$LINENO: result: found" >&5
2382 echo "${ECHO_T}found" >&6
2384 AUTOHEADER
="$missing_dir/missing autoheader"
2385 echo "$as_me:$LINENO: result: missing" >&5
2386 echo "${ECHO_T}missing" >&6
2389 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2390 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2391 # Run test in a subshell; some versions of sh will print an error if
2392 # an executable is not found, even if stderr is redirected.
2393 # Redirect stdin to placate older versions of autoconf. Sigh.
2394 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
2396 echo "$as_me:$LINENO: result: found" >&5
2397 echo "${ECHO_T}found" >&6
2399 MAKEINFO
="$missing_dir/missing makeinfo"
2400 echo "$as_me:$LINENO: result: missing" >&5
2401 echo "${ECHO_T}missing" >&6
2406 # Check whether --enable-shared or --disable-shared was given.
2407 if test "${enable_shared+set}" = set; then
2408 enableval
="$enable_shared"
2409 p
=${PACKAGE-default}
2411 yes) enable_shared
=yes ;;
2412 no
) enable_shared
=no
;;
2415 # Look at the argument we got. We use all the common list separators.
2416 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2417 for pkg
in $enableval; do
2418 if test "X$pkg" = "X$p"; then
2428 # Check whether --enable-static or --disable-static was given.
2429 if test "${enable_static+set}" = set; then
2430 enableval
="$enable_static"
2431 p
=${PACKAGE-default}
2433 yes) enable_static
=yes ;;
2434 no
) enable_static
=no
;;
2437 # Look at the argument we got. We use all the common list separators.
2438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2439 for pkg
in $enableval; do
2440 if test "X$pkg" = "X$p"; then
2450 # Check whether --enable-fast-install or --disable-fast-install was given.
2451 if test "${enable_fast_install+set}" = set; then
2452 enableval
="$enable_fast_install"
2453 p
=${PACKAGE-default}
2455 yes) enable_fast_install
=yes ;;
2456 no
) enable_fast_install
=no
;;
2458 enable_fast_install
=no
2459 # Look at the argument we got. We use all the common list separators.
2460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2461 for pkg
in $enableval; do
2462 if test "X$pkg" = "X$p"; then
2463 enable_fast_install
=yes
2470 enable_fast_install
=yes
2473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2474 if test "${with_gnu_ld+set}" = set; then
2475 withval
="$with_gnu_ld"
2476 test "$withval" = no || with_gnu_ld
=yes
2481 if test "$GCC" = yes; then
2482 # Check if gcc -print-prog-name=ld gives a path.
2483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2487 # gcc leaves a trailing carriage return which upsets mingw
2488 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2490 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2493 # Accept absolute paths.
2494 [\\/]* |
[A-Za-z
]:[\\/]*)
2495 re_direlt
='/[^/][^/]*/\.\./'
2496 # Canonicalize the path of ld
2497 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2498 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2499 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2501 test -z "$LD" && LD
="$ac_prog"
2504 # If it fails, then pretend we aren't using GCC.
2508 # If it is relative, then search for the first ld in PATH.
2512 elif test "$with_gnu_ld" = yes; then
2513 echo "$as_me:$LINENO: checking for GNU ld" >&5
2514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2519 if test "${lt_cv_path_LD+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -z "$LD"; then
2523 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2524 for ac_dir
in $PATH; do
2525 test -z "$ac_dir" && ac_dir
=.
2526 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2527 lt_cv_path_LD
="$ac_dir/$ac_prog"
2528 # Check to see if the program is GNU ld. I'd rather use --version,
2529 # but apparently some GNU ld's only accept -v.
2530 # Break only if it was the GNU/non-GNU ld that we prefer.
2531 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2532 test "$with_gnu_ld" != no
&& break
2534 test "$with_gnu_ld" != yes && break
2540 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2545 if test -n "$LD"; then
2546 echo "$as_me:$LINENO: result: $LD" >&5
2547 echo "${ECHO_T}$LD" >&6
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2554 { (exit 1); exit 1; }; }
2555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2561 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2562 lt_cv_prog_gnu_ld
=yes
2564 lt_cv_prog_gnu_ld
=no
2567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2569 with_gnu_ld
=$lt_cv_prog_gnu_ld
2572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2574 if test "${lt_cv_ld_reload_flag+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 lt_cv_ld_reload_flag
='-r'
2579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2581 reload_flag
=$lt_cv_ld_reload_flag
2582 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2584 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2586 if test "${lt_cv_path_NM+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$NM"; then
2590 # Let the user override the test.
2593 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2594 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2595 test -z "$ac_dir" && ac_dir
=.
2596 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2597 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2598 # Check to see if the nm accepts a BSD-compat flag.
2599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2600 # nm: unknown option "B" ignored
2601 # Tru64's nm complains that /dev/null is an invalid object file
2602 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2603 lt_cv_path_NM
="$tmp_nm -B"
2605 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2606 lt_cv_path_NM
="$tmp_nm -p"
2609 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2610 continue # so that we can try to find one that supports BSD flags
2615 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2620 echo "$as_me:$LINENO: result: $NM" >&5
2621 echo "${ECHO_T}$NM" >&6
2623 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2624 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2626 if test "$LN_S" = "ln -s"; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2630 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2631 echo "${ECHO_T}no, using $LN_S" >&6
2634 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2635 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2636 if test "${lt_cv_deplibs_check_method+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2640 lt_cv_file_magic_test_file
=
2641 lt_cv_deplibs_check_method
='unknown'
2642 # Need to set the preceding variable on all platforms that support
2643 # interlibrary dependencies.
2644 # 'none' -- dependencies not supported.
2645 # `unknown' -- same as none, but documents that we really don't know.
2646 # 'pass_all' -- all dependencies passed with no checks.
2647 # 'test_compile' -- check by making test program.
2648 # 'file_magic [regex]' -- check by looking for files in library path
2649 # which responds to the $file_magic_cmd with a given egrep regex.
2650 # If you have `file' or equivalent on your system and you're not sure
2651 # whether `pass_all' will *always* work, you probably want this one.
2655 lt_cv_deplibs_check_method
=pass_all
2659 lt_cv_deplibs_check_method
=pass_all
2663 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2664 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2665 lt_cv_file_magic_test_file
=/shlib
/libc.so
2668 cygwin
* | mingw
* |pw32
*)
2669 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2670 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2673 darwin
* | rhapsody
*)
2674 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2675 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2677 rhapsody
* | darwin1.012
)
2678 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
2681 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2687 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2690 # Not sure whether the presence of OpenBSD here was a mistake.
2691 # Let's accept both of them until this is cleared up.
2692 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2693 lt_cv_file_magic_cmd
=/usr
/bin
/file
2694 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2698 lt_cv_deplibs_check_method
=pass_all
2703 lt_cv_deplibs_check_method
=pass_all
2709 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2710 lt_cv_file_magic_cmd
=/usr
/bin
/file
2711 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2714 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2715 lt_cv_file_magic_cmd
=/usr
/bin
/file
2716 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
2724 # this will be overridden with pass_all, but let us keep it just in case
2725 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2729 *-32|
*"-32 ") libmagic
=32-bit;;
2730 *-n32|
*"-n32 ") libmagic
=N32
;;
2731 *-64|
*"-64 ") libmagic
=64-bit;;
2732 *) libmagic
=never-match
;;
2734 # this will be overridden with pass_all, but let us keep it just in case
2735 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2738 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2739 lt_cv_deplibs_check_method
=pass_all
2742 # This must be Linux ELF.
2745 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2746 lt_cv_deplibs_check_method
=pass_all
;;
2748 # glibc up to 2.1.1 does not perform some relocations on ARM
2749 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2751 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2755 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2756 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2758 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2763 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2764 lt_cv_file_magic_cmd
=/usr
/bin
/file
2765 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2768 osf3
* | osf4
* | osf5
*)
2769 # this will be overridden with pass_all, but let us keep it just in case
2770 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2771 lt_cv_file_magic_test_file
=/shlib
/libc.so
2772 lt_cv_deplibs_check_method
=pass_all
2776 lt_cv_deplibs_check_method
=pass_all
2780 lt_cv_deplibs_check_method
=pass_all
2781 lt_cv_file_magic_test_file
=/lib
/libc.so
2784 sysv5uw
[78]* | sysv4
*uw2
*)
2785 lt_cv_deplibs_check_method
=pass_all
2788 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2789 case $host_vendor in
2791 lt_cv_deplibs_check_method
=pass_all
2794 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2795 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2802 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2803 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2804 file_magic_cmd
=$lt_cv_file_magic_cmd
2805 deplibs_check_method
=$lt_cv_deplibs_check_method
2810 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2812 # Only perform the check for file, if the check method requires it
2813 case $deplibs_check_method in
2815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2816 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2817 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2826 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2829 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2831 ac_dummy
="/usr/bin:$PATH"
2832 for ac_dir
in $ac_dummy; do
2833 test -z "$ac_dir" && ac_dir
=.
2834 if test -f $ac_dir/${ac_tool_prefix}file; then
2835 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2836 if test -n "$file_magic_test_file"; then
2837 case $deplibs_check_method in
2839 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2840 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2841 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2842 egrep "$file_magic_regex" > /dev
/null
; then
2847 *** Warning: the command libtool uses to detect shared libraries,
2848 *** $file_magic_cmd, produces output that libtool cannot recognize.
2849 *** The result is that libtool may fail to recognize shared libraries
2850 *** as such. This will affect the creation of libtool libraries that
2851 *** depend on shared libraries, but programs linked with such libtool
2852 *** libraries will work regardless of this problem. Nevertheless, you
2853 *** may want to report the problem to your system manager and/or to
2854 *** bug-libtool@gnu.org
2864 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2869 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2870 if test -n "$MAGIC_CMD"; then
2871 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2872 echo "${ECHO_T}$MAGIC_CMD" >&6
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2878 if test -z "$lt_cv_path_MAGIC_CMD"; then
2879 if test -n "$ac_tool_prefix"; then
2880 echo "$as_me:$LINENO: checking for file" >&5
2881 echo $ECHO_N "checking for file... $ECHO_C" >&6
2882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2890 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2893 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2895 ac_dummy
="/usr/bin:$PATH"
2896 for ac_dir
in $ac_dummy; do
2897 test -z "$ac_dir" && ac_dir
=.
2898 if test -f $ac_dir/file; then
2899 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2900 if test -n "$file_magic_test_file"; then
2901 case $deplibs_check_method in
2903 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2904 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2905 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2906 egrep "$file_magic_regex" > /dev
/null
; then
2911 *** Warning: the command libtool uses to detect shared libraries,
2912 *** $file_magic_cmd, produces output that libtool cannot recognize.
2913 *** The result is that libtool may fail to recognize shared libraries
2914 *** as such. This will affect the creation of libtool libraries that
2915 *** depend on shared libraries, but programs linked with such libtool
2916 *** libraries will work regardless of this problem. Nevertheless, you
2917 *** may want to report the problem to your system manager and/or to
2918 *** bug-libtool@gnu.org
2928 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2933 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2934 if test -n "$MAGIC_CMD"; then
2935 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2936 echo "${ECHO_T}$MAGIC_CMD" >&6
2938 echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2953 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_RANLIB+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$RANLIB"; then
2960 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 RANLIB
=$ac_cv_prog_RANLIB
2979 if test -n "$RANLIB"; then
2980 echo "$as_me:$LINENO: result: $RANLIB" >&5
2981 echo "${ECHO_T}$RANLIB" >&6
2983 echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2988 if test -z "$ac_cv_prog_RANLIB"; then
2989 ac_ct_RANLIB
=$RANLIB
2990 # Extract the first word of "ranlib", so it can be a program name with args.
2991 set dummy ranlib
; ac_word
=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 if test -n "$ac_ct_RANLIB"; then
2998 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir
=.
3005 for ac_exec_ext
in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3017 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3018 if test -n "$ac_ct_RANLIB"; then
3019 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3020 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3026 RANLIB
=$ac_ct_RANLIB
3028 RANLIB
="$ac_cv_prog_RANLIB"
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_STRIP+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir
=.
3047 for ac_exec_ext
in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 STRIP
=$ac_cv_prog_STRIP
3059 if test -n "$STRIP"; then
3060 echo "$as_me:$LINENO: result: $STRIP" >&5
3061 echo "${ECHO_T}$STRIP" >&6
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3068 if test -z "$ac_cv_prog_STRIP"; then
3070 # Extract the first word of "strip", so it can be a program name with args.
3071 set dummy strip
; ac_word
=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$ac_ct_STRIP"; then
3078 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir
=.
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_ac_ct_STRIP
="strip"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3097 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3098 if test -n "$ac_ct_STRIP"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3100 echo "${ECHO_T}$ac_ct_STRIP" >&6
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3108 STRIP
="$ac_cv_prog_STRIP"
3112 # Check for any special flags to pass to ltconfig.
3113 libtool_flags
="--cache-file=$cache_file"
3114 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3115 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3116 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
3117 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
3118 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3121 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3122 if test "${enable_libtool_lock+set}" = set; then
3123 enableval
="$enable_libtool_lock"
3126 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
3127 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
3130 # Check whether --with-pic or --without-pic was given.
3131 if test "${with_pic+set}" = set; then
3137 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
3138 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
3140 # Some flags need to be propagated to the compiler or linker for good
3144 # Find out which ABI we are using.
3145 echo '#line 3145 "configure"' > conftest.
$ac_ext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 case `/usr/bin/file conftest.$ac_objext` in
3167 # Find out which ABI we are using.
3168 echo 'int i;' > conftest.
$ac_ext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 case "`/usr/bin/file conftest.o`" in
3187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3188 SAVE_CFLAGS
="$CFLAGS"
3189 CFLAGS
="$CFLAGS -belf"
3190 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3191 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3192 if test "${lt_cv_cc_needs_belf+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_cpp
='$CPP $CPPFLAGS'
3199 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3203 cat >conftest.
$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 #include "confdefs.h"
3207 #ifdef F77_DUMMY_MAIN
3211 int F77_DUMMY_MAIN() { return 1; }
3221 rm -f conftest.
$ac_objext conftest
$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try
='test -s conftest$ac_exeext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3233 lt_cv_cc_needs_belf
=yes
3235 echo "$as_me: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3237 lt_cv_cc_needs_belf
=no
3239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3241 ac_cpp
='$CPP $CPPFLAGS'
3242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3247 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3248 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3249 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3251 CFLAGS
="$SAVE_CFLAGS"
3259 # Save cache, so that ltconfig can load it
3260 cat >confcache
<<\_ACEOF
3261 # This file is a shell script that caches the results of configure
3262 # tests run on this system so they can be shared between configure
3263 # scripts and configure runs, see configure's option --config-cache.
3264 # It is not useful on other systems. If it contains results you don't
3265 # want to keep, you may remove or edit it.
3267 # config.status only pays attention to the cache file if you give it
3268 # the --recheck option to rerun configure.
3270 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3276 # The following way of writing the cache mishandles newlines in values,
3277 # but we know of no workaround that is simple, portable, and efficient.
3278 # So, don't put newlines in cache variables' values.
3279 # Ultrix sh set writes to stderr and can't be redirected directly,
3280 # and sets the high bit in the cache file unless we assign to the vars.
3283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3285 # `set' does not quote correctly, so add quotes (double-quote
3286 # substitution turns \\\\ into \\, and sed turns \\ into \).
3289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3292 # `set' quotes correctly as required by POSIX, so do not add quotes.
3294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3305 if cmp -s $cache_file confcache
; then :; else
3306 if test -w $cache_file; then
3307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3308 cat confcache
>$cache_file
3310 echo "not updating unwritable cache $cache_file"
3315 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3316 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3317 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
3318 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
3319 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
3320 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
3321 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
3322 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3323 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
3324 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3325 echo "$as_me: error: libtool configure failed" >&2;}
3326 { (exit 1); exit 1; }; }
3328 # Reload cache, that may have been modified by ltconfig
3329 if test -r "$cache_file"; then
3330 # Some versions of bash will fail to source /dev/null (special
3331 # files actually), so we avoid doing that.
3332 if test -f "$cache_file"; then
3333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3334 echo "$as_me: loading cache $cache_file" >&6;}
3336 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
3337 *) . .
/$cache_file;;
3341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3342 echo "$as_me: creating cache $cache_file" >&6;}
3347 # This can be used to rebuild libtool when needed
3348 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3350 # Always use our own libtool.
3351 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3353 # Redirect the config.log output again, so that the ltconfig log is not
3354 # clobbered by the next message.
3355 exec 5>>.
/config.log
3364 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3365 if test "${enable_bfd_assembler+set}" = set; then
3366 enableval
="$enable_bfd_assembler"
3367 case "${enableval}" in
3368 yes) need_bfd
=yes user_bfd_gas
=yes ;;
3369 no
) user_bfd_gas
=no
;;
3370 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3371 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3372 { (exit 1); exit 1; }; } ;;
3374 fi; # Check whether --enable-targets or --disable-targets was given.
3375 if test "${enable_targets+set}" = set; then
3376 enableval
="$enable_targets"
3377 case "${enableval}" in
3378 yes |
"") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3379 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3380 { (exit 1); exit 1; }; }
3382 no
) enable_targets
= ;;
3383 *) enable_targets
=$enableval ;;
3385 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3386 if test "${enable_commonbfdlib+set}" = set; then
3387 enableval
="$enable_commonbfdlib"
3388 case "${enableval}" in
3389 yes) commonbfdlib
=true
;;
3390 no
) commonbfdlib
=false
;;
3391 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3392 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3393 { (exit 1); exit 1; }; } ;;
3398 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3399 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3400 if test "${enable_build_warnings+set}" = set; then
3401 enableval
="$enable_build_warnings"
3402 case "${enableval}" in
3404 no
) build_warnings
="-w";;
3405 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3406 build_warnings
="${build_warnings} ${t}";;
3407 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3408 build_warnings
="${t} ${build_warnings}";;
3409 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3411 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3412 echo "Setting warning flags = $build_warnings" 6>&1
3415 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
3416 WARN_CFLAGS
="${build_warnings}"
3420 # Generate a header file
3422 ac_config_headers
="$ac_config_headers config.h:config.in"
3424 ac_config_commands
="$ac_config_commands default-1"
3427 # If we are on a DOS filesystem, we must use gdb.ini rather than
3431 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
3439 # Makefile target for installing gas in $(tooldir)/bin.
3440 install_tooldir
=install-exec-tooldir
3444 if test -n "$enable_targets" ; then
3445 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
3446 if test $t = "all"; then
3450 result
=`$ac_config_sub $t 2>/dev/null`
3451 if test -n "$result" ; then
3452 canon_targets
="$canon_targets $result"
3454 # # Permit "all", etc. We don't support it yet though.
3455 # canon_targets="$canon_targets $t"
3458 _gas_uniq_list
="$canon_targets"
3459 _gas_uniq_newlist
=""
3460 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
3461 case $_gas_uniq_i in
3463 *) case " $_gas_uniq_newlist " in
3464 *" $_gas_uniq_i "*) ;;
3465 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
3469 canon_targets
=$_gas_uniq_newlist
3475 for this_target
in $target $canon_targets ; do
3477 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3479 # check for architecture variants
3483 alpha
*) cpu_type
=alpha
;;
3484 armeb
) cpu_type
=arm endian
=big
;;
3485 arm
*) cpu_type
=arm endian
=little
;;
3486 armb
*) cpu_type
=arm endian
=little
;;
3487 armv
*l
) cpu_type
=arm endian
=little
;;
3488 armv
*b
) cpu_type
=arm endian
=big
;;
3489 xscale
*) cpu_type
=arm endian
=little
;;
3490 strongarm
*) cpu_type
=arm endian
=little
;;
3491 thumb
*) cpu_type
=arm endian
=little
;;
3492 hppa
*) cpu_type
=hppa
;;
3493 i
[3456]86) cpu_type
=i386 arch
=i386
;;
3494 x86_64
) cpu_type
=i386 arch
=x86_64
;;
3495 ia64
) cpu_type
=ia64
;;
3496 m6811|m6812|m68hc12
) cpu_type
=m68hc11
;;
3497 m680
[012346]0) cpu_type
=m68k
;;
3498 m68008
) cpu_type
=m68k
;;
3499 m683??
) cpu_type
=m68k
;;
3500 m5200
) cpu_type
=m68k
;;
3501 m8
*) cpu_type
=m88k
;;
3502 mips
*el
) cpu_type
=mips endian
=little
;;
3503 mips
*) cpu_type
=mips endian
=big
;;
3504 or32
*) cpu_type
=or32 endian
=big
;;
3505 pjl
*) cpu_type
=pj endian
=little
;;
3506 pj
*) cpu_type
=pj endian
=big
;;
3507 powerpc
*le
*) cpu_type
=ppc endian
=little
;;
3508 powerpc
*) cpu_type
=ppc endian
=big
;;
3509 rs6000
*) cpu_type
=ppc
;;
3510 s390x
*) cpu_type
=s390 arch
=s390x
;;
3511 s390
*) cpu_type
=s390 arch
=s390
;;
3512 sh64
*) cpu_type
=sh64 endian
=big
;;
3513 sh
*le
) cpu_type
=sh endian
=little
;;
3514 sh
*) cpu_type
=sh endian
=big
;;
3515 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
3516 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
3517 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
3518 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
3519 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
3520 v850
*) cpu_type
=v850
;;
3521 *) cpu_type
=${cpu} ;;
3524 if test ${this_target} = $target ; then
3525 target_cpu_type
=${cpu_type}
3526 elif test ${target_cpu_type} != ${cpu_type} ; then
3530 generic_target
=${cpu_type}-$vendor-$os
3536 # assign object format
3537 case ${generic_target} in
3538 a29k-
*-coff) fmt=coff
;;
3539 a29k-amd-udi
) fmt=coff
;;
3540 a29k-amd-ebmon
) fmt=coff
;;
3541 a29k-nyu-sym1
) fmt=coff
;;
3542 a29k-
*-rtems*) fmt=coff
;;
3543 a29k-
*-vxworks*) fmt=coff
;;
3545 alpha
*-*-*vms
*) fmt=evax
;;
3546 alpha
*-*-netware*) fmt=ecoff
;;
3547 alpha
*-*-openbsd*) fmt=ecoff
;;
3548 alpha
*-*-osf*) fmt=ecoff
;;
3549 alpha
*-*-linuxecoff*) fmt=ecoff
;;
3550 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
3551 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
3553 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
3555 arm-
*-aout) fmt=aout
;;
3556 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
3557 arm-
*-rtems | thumb-
*-rtems) fmt=elf
;;
3558 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
3559 arm
*-*-conix*) fmt=elf
;;
3560 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
3561 arm
*-*-linux-gnu* | arm
*-*-uclinux*)
3563 arm-
*-netbsdelf*) fmt=elf em
=nbsd
;;
3564 arm-
*-netbsd* | arm-
*-openbsd*) fmt=aout em
=nbsd
;;
3565 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
3566 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
3567 arm-
*-wince) fmt=coff em
=wince-pe
;;
3568 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
3569 arm-
*-riscix*) fmt=aout em
=riscix
;;
3570 arm-
*-vxworks) fmt=coff
;;
3572 avr-
*-*) fmt=elf bfd_gas
=yes ;;
3574 cris-
*-*) fmt=multi bfd_gas
=yes ;;
3576 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
3577 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
3580 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
3582 hppa-
*-linux-gnu*) case ${cpu} in
3584 fmt=elf em
=hppalinux64
;;
3588 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
3589 hppa-
*-lites*) fmt=elf em
=hppa
;;
3590 hppa-
*-netbsd*) fmt=elf em
=nbsd
;;
3591 hppa-
*-osf*) fmt=som em
=hppa
;;
3592 hppa-
*-rtems*) fmt=elf em
=hppa
;;
3593 hppa-
*-hpux11*) case ${cpu} in
3595 fmt=elf em
=hppa64
;;
3599 hppa-
*-hpux*) fmt=som em
=hppa
;;
3600 hppa-
*-mpeix*) fmt=som em
=hppa
;;
3601 hppa-
*-bsd*) fmt=som em
=hppa
;;
3602 hppa-
*-hiux*) fmt=som em
=hppa
;;
3604 h8300-
*-rtems*) fmt=coff
;;
3605 h8300-
*-coff) fmt=coff
;;
3606 h8300-
*-elf) fmt=elf
;;
3607 h8500-
*-rtems*) fmt=coff
;;
3608 h8500-
*-coff) fmt=coff
;;
3610 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
3611 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
3612 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
3613 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
3614 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
3615 i386-
*-bsd*) fmt=aout em
=386bsd
;;
3616 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
3617 i386-
*-netbsd*) em
=nbsd bfd_gas
=yes
3627 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
3628 i386-
*-linux*aout
* | i386-
*-linux*oldld
) fmt=aout em
=linux
;;
3629 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
3630 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
3631 x86_64-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
3632 i386-
*-lynxos*) fmt=coff em
=lynx
;;
3633 i386-
*-sysv[45]* | i386-
*-solaris* | i386-
*-elf)
3634 fmt=elf bfd_gas
=yes ;;
3635 i386-
*-freebsdaout* | i386-
*-freebsd[12].
* | i386-
*-freebsd[12])
3636 fmt=aout em
=386bsd
;;
3637 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
3639 i386-
*-sco3.2v5
*) fmt=elf
3640 if test ${this_target} = $target; then
3642 cat >>confdefs.h
<<\_ACEOF
3648 i386-
*-sco3.2
*) fmt=coff
;;
3649 i386-
*-vsta) fmt=aout
;;
3650 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
3651 fmt=coff em
=go32 bfd_gas
=yes
3653 cat >>confdefs.h
<<\_ACEOF
3654 #define STRICTCOFF 1
3658 i386-
*-rtemself*) fmt=elf
;;
3659 i386-
*-rtemscoff*) fmt=coff
;;
3660 i386-
*-rtems*) fmt=elf
;;
3661 i386-
*-gnu*) fmt=elf
;;
3663 fmt=aout em
=mach bfd_gas
=yes ;;
3664 i386-
*-msdos*) fmt=aout
;;
3665 i386-
*-moss*) fmt=elf
;;
3666 i386-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
3667 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
3668 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
3669 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
3670 i386-
*-*nt
*) fmt=coff em
=pe bfd_gas
=yes ;;
3671 i386-
*-vxworks*) fmt=aout
;;
3672 i386-
*-chaos) fmt=elf
;;
3673 i860-stardent-sysv4
* | i860-stardent-elf
*)
3674 fmt=elf bfd_gas
=yes endian
=little
3675 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
3676 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
3677 i960-
*-bout) fmt=bout
;;
3678 i960-
*-coff) fmt=coff em
=ic960
;;
3679 i960-
*-rtems*) fmt=coff em
=ic960
;;
3680 i960-
*-nindy*) fmt=bout
;;
3681 i960-
*-vxworks4*) fmt=bout
;;
3682 i960-
*-vxworks5.0
) fmt=bout
;;
3683 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
3684 i960-
*-vxworks*) fmt=bout
;;
3685 i960-
*-elf*) fmt=elf
;;
3687 ia64-
*-elf*) fmt=elf
;;
3688 ia64-
*-aix*) fmt=elf em
=ia64aix
;;
3689 ia64-
*-linux-gnu*) fmt=elf em
=linux
;;
3690 ia64-
*-hpux*) fmt=elf em
=hpux
;;
3691 ia64-
*-netbsd*) fmt=elf em
=nbsd
;;
3693 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
3695 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)fmt=elf bfd_gas
=yes ;;
3697 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
3699 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
3700 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
3701 m68k-apollo-
*) fmt=coff em
=apollo
;;
3702 m68k-
*-sysv4*) # must be before -sysv*
3704 m68k-
*-elf*) fmt=elf
;;
3705 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtemscoff*)
3707 m68k-
*-rtems*) fmt=elf
;;
3708 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
3709 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
3710 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
3711 m68k-
*-gnu*) fmt=elf
;;
3712 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
3713 m68k-
*-netbsdelf*) fmt=elf em
=nbsd bfd_gas
=yes ;;
3714 m68k-
*-netbsdaout* | m68k-
*-netbsd*)
3715 fmt=aout em
=nbsd bfd_gas
=yes ;;
3716 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
3717 m68k-apple-aux
*) fmt=coff em
=aux
;;
3718 m68k-
*-psos*) fmt=elf em
=psos
;;
3720 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
3721 m88k-
*-coff*) fmt=coff
;;
3723 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
3724 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
3726 # don't change em like *-*-bsd does
3727 mips-dec-openbsd
*) fmt=elf endian
=little
;;
3728 mips-dec-bsd
*) fmt=aout endian
=little
;;
3729 mips-sony-bsd
*) fmt=ecoff
;;
3730 mips-
*-bsd*) { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
3731 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
3732 { (exit 1); exit 1; }; } ;;
3733 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
3734 mips-
*-osf*) fmt=ecoff endian
=little
;;
3735 mips-
*-ecoff*) fmt=ecoff
;;
3736 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
3737 mips-
*-irix6*) fmt=elf
;;
3738 mips-
*-irix5*) fmt=elf
;;
3739 mips-
*-irix*) fmt=ecoff
;;
3740 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
3741 mips-
*-riscos*) fmt=ecoff
;;
3742 mips
*-*-linux*) fmt=elf em
=tmips mips_stabs_elf
=y
;;
3743 mips-
*-sysv4*MP
* | mips-
*-gnu*)
3745 mips-
*-sysv*) fmt=ecoff
;;
3746 mips-
*-elf* | mips-
*-rtems* | mips-
*-netbsd* | mips-
*-openbsd*)
3748 mips-
*-vxworks*) fmt=elf mips_stabs_elf
=y
;;
3749 mmix-
*-*) fmt=elf bfd_gas
=yes ;;
3750 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
3751 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
3752 openrisc-
*-*) fmt=elf bfd_gas
=yes ;;
3753 or32-
*-rtems*) fmt=coff
;;
3754 or32-
*-coff) fmt=coff
;;
3755 or32-
*-elf) fmt=elf
;;
3757 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
3759 ppc-
*-aix5*) fmt=coff em
=aix5
;;
3760 ppc-
*-aix*) fmt=coff
;;
3761 ppc-
*-beos*) fmt=coff
;;
3762 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
3764 ppc-
*-linux-gnu*) fmt=elf
3767 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
3768 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
3769 { (exit 1); exit 1; }; } ;;
3772 ppc-
*-solaris*) fmt=elf
3773 if test ${this_target} = $target; then
3775 cat >>confdefs.h
<<\_ACEOF
3776 #define TARGET_SOLARIS_COMMENT 1
3780 if test x
${endian} = xbig
; then
3781 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
3782 echo "$as_me: error: Solaris must be configured little endian" >&2;}
3783 { (exit 1); exit 1; }; }
3786 ppc-
*-rtems*) fmt=elf
;;
3787 ppc-
*-macos* | ppc-
*-mpw*)
3788 fmt=coff em
=macos
;;
3789 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
3790 ppc-
*-vxworks*) fmt=elf
;;
3791 ppc-
*-windiss*) fmt=elf
;;
3793 s390x-
*-linux-gnu*) fmt=elf em
=linux
;;
3794 s390-
*-linux-gnu*) fmt=elf em
=linux
;;
3796 sh
*-*-linux*) fmt=elf em
=linux
3803 sh
*-*-netbsdelf*) fmt=elf em
=nbsd
;;
3804 sh-
*-elf*) fmt=elf
;;
3805 sh-
*-coff*) fmt=coff bfd_gas
=yes;;
3806 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes endian
=little
;;
3807 sh-
*-rtemself*) fmt=elf
;;
3808 sh-
*-rtems*) fmt=coff bfd_gas
=yes;;
3810 sh64-
*-elf*) fmt=elf
;;
3811 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
3812 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
3813 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
3815 sparc-
*-rtemsaout*) fmt=aout
;;
3816 sparc-
*-rtemself*) fmt=elf
;;
3817 sparc-
*-rtems*) fmt=elf
;;
3818 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
3819 sparc-
*-aout | sparc
*-*-vxworks*)
3820 fmt=aout em
=sparcaout
;;
3821 sparc-
*-coff) fmt=coff
;;
3822 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
3823 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
3824 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
3825 sparc-fujitsu-none
) fmt=aout
;;
3826 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
3828 sparc-
*-netbsd*) em
=nbsd bfd_gas
=yes
3830 sparc
) case ${os} in
3837 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
3839 strongarm-
*-coff) fmt=coff
;;
3840 strongarm-
*-elf) fmt=elf
;;
3841 xscale-
*-coff) fmt=coff
;;
3842 xscale-
*-elf) fmt=elf
;;
3844 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
3845 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
3846 tic54x-
*-* | c54x
*-*-*)
3847 fmt=coff bfd_gas
=yes need_libm
=yes;;
3848 tic80-
*-*) fmt=coff
;;
3850 v850-
*-*) fmt=elf bfd_gas
=yes ;;
3851 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
3852 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
3854 vax-
*-bsd* | vax-
*-ultrix*)
3856 vax-
*-vms) fmt=vms
;;
3858 w65-
*-*) fmt=coff
;;
3860 xstormy16-
*-*) fmt=elf bfd_gas
=yes ;;
3862 z8k-
*-coff | z8k-
*-sim)
3865 *-*-aout |
*-*-scout)
3867 *-*-freebsd*) fmt=elf em
=freebsd bfd_gas
=yes ;;
3872 *-*-generic) fmt=generic
;;
3873 *-*-xray |
*-*-hms) fmt=coff
;;
3874 *-*-sim) fmt=coff
;;
3875 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
3876 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is incomplete." >&5
3877 echo "$as_me: WARNING: GAS support for ${generic_target} is incomplete." >&2;}
3879 *-*-vxworks) fmt=aout
;;
3880 *-*-netware) fmt=elf
;;
3883 if test ${this_target} = $target ; then
3885 if test x
${endian} = xbig
; then
3887 elif test x
${endian} = xlittle
; then
3890 if test x
${endian_def} != x
; then
3892 cat >>confdefs.h
<<_ACEOF
3893 #define TARGET_BYTES_BIG_ENDIAN $endian_def
3899 if test x
${mips_stabs_elf} != x
; then
3901 cat >>confdefs.h
<<\_ACEOF
3902 #define MIPS_STABS_ELF 1
3907 case ${cpu_type}-${fmt} in
3908 alpha
*-*) bfd_gas
=yes ;;
3909 arm-
*) bfd_gas
=yes ;;
3911 # i386-aout) bfd_gas=preferred ;;
3912 ia64
*-*) bfd_gas
=yes ;;
3913 mips-
*) bfd_gas
=yes ;;
3914 ns32k-
*) bfd_gas
=yes ;;
3915 pdp11-
*) bfd_gas
=yes ;;
3916 ppc-
*) bfd_gas
=yes ;;
3917 sparc-
*) bfd_gas
=yes ;;
3918 strongarm-
*) bfd_gas
=yes ;;
3919 xscale-
*) bfd_gas
=yes ;;
3920 *-elf) bfd_gas
=yes ;;
3921 *-ecoff) bfd_gas
=yes ;;
3922 *-som) bfd_gas
=yes ;;
3923 #enable bfd for coff and aout to allow testing if a bfd target is
3924 #the primary target, but not for coff or aout as the primary target
3925 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
3926 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
3930 # Other random stuff.
3932 # Do we need the opcodes library?
3940 case "${enable_shared}" in
3941 yes) shared_opcodes
=true
;;
3942 *opcodes
*) shared_opcodes
=true
;;
3943 *) shared_opcodes
=false
;;
3945 if test "${shared_opcodes}" = "true"; then
3946 # A shared libopcodes must be linked against libbfd.
3952 # Any other special object files needed ?
3954 fr30 | m32r | openrisc
)
3959 case ${extra_objects} in
3961 *) extra_objects
="$extra_objects m68k-parse.o" ;;
3966 echo ${extra_objects} |
grep -s "itbl-parse.o"
3967 if test $?
-ne 0 ; then
3968 extra_objects
="$extra_objects itbl-parse.o"
3971 echo ${extra_objects} |
grep -s "itbl-lex.o"
3972 if test $?
-ne 0 ; then
3973 extra_objects
="$extra_objects itbl-lex.o"
3976 echo ${extra_objects} |
grep -s "itbl-ops.o"
3977 if test $?
-ne 0 ; then
3978 extra_objects
="$extra_objects itbl-ops.o"
3982 i386 | s390 | sparc
)
3983 if test $this_target = $target ; then
3985 cat >>confdefs.h
<<_ACEOF
3986 #define DEFAULT_ARCH "${arch}"
4000 if test $using_cgen = yes ; then
4001 case "x${extra_objects}" in
4003 *) extra_objects
="$extra_objects cgen.o" ;;
4007 # See if we really can support this configuration with the emulation code.
4009 if test $this_target = $target ; then
4010 primary_bfd_gas
=$bfd_gas
4014 if test $bfd_gas = no
; then
4015 # Can't support other configurations this way.
4018 elif test $bfd_gas = no
; then
4019 # Can't support this configuration.
4023 # From target name and format, produce a list of supported emulations.
4025 case ${generic_target}-${fmt} in
4026 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4027 mips
*-*-linux*-*) case "$endian" in
4028 big
) emulation
="mipsbelf mipslelf mipself" ;;
4029 *) emulation
="mipslelf mipsbelf mipself" ;;
4031 mips-
*-lnews*-ecoff) ;;
4032 mips-
*-*-ecoff) case "$endian" in
4033 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
4034 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
4036 mips-
*-*-elf) case "$endian" in
4037 big
) emulation
="mipsbelf mipslelf mipself" ;;
4038 *) emulation
="mipslelf mipsbelf mipself" ;;
4040 mips-
*-sysv4*MP
*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4041 # i386-pc-pe-coff != i386-pc-coff.
4043 # Uncommenting the next line will turn on support for i386 AOUT
4044 # for the default linux configuration
4045 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4047 i386-
*-aout) emulation
="i386aout" ;;
4048 i386-
*-coff) emulation
="i386coff" ;;
4049 i386-
*-elf) emulation
="i386elf" ;;
4051 # Always all formats. The first stated emulation becomes the default.
4052 cris-
*-*aout
*) emulation
="crisaout criself" ;;
4053 cris-
*-*) emulation
="criself crisaout" ;;
4056 emulations
="$emulations $emulation"
4060 # Turn on all targets if possible
4061 if test ${all_targets} = "yes"; then
4062 case ${target_cpu_type} in
4064 case ${obj_format} in
4066 emulations
="$emulations i386coff i386elf"
4069 emulations
="$emulations i386aout i386elf"
4072 emulations
="$emulations i386aout i386coff"
4079 # Assign floating point type. Most processors with FP support
4080 # IEEE FP. On those that don't support FP at all, usually IEEE
4082 case ${target_cpu} in
4083 vax | tahoe
) atof
=${target_cpu} ;;
4088 case "${obj_format}" in
4089 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4090 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4091 { (exit 1); exit 1; }; } ;;
4094 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4096 if test $using_cgen = yes ; then
4097 case ${target_cpu} in
4098 *) cgen_cpu_prefix
=${target_cpu} ;;
4102 cat >>confdefs.h
<<\_ACEOF
4103 #define USING_CGEN 1
4109 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
4110 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4111 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4112 { (exit 1); exit 1; }; }
4115 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
4116 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4117 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4118 { (exit 1); exit 1; }; }
4121 case ${user_bfd_gas}-${primary_bfd_gas} in
4123 # We didn't override user's choice.
4126 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4127 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4139 # User specified nothing.
4143 # Some COFF configurations want these random other flags set.
4144 case ${obj_format} in
4146 case ${target_cpu_type} in
4148 cat >>confdefs.h
<<\_ACEOF
4153 cat >>confdefs.h
<<\_ACEOF
4158 cat >>confdefs.h
<<\_ACEOF
4166 # Getting this done right is going to be a bitch. Each configuration specified
4167 # with --enable-targets=... should be checked for environment, format, cpu, and
4170 # For each configuration, the necessary object file support code must be linked
4171 # in. This might be only one, it might be up to four. The necessary emulation
4172 # code needs to be provided, too.
4174 # And then there's "--enable-targets=all"....
4176 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4178 formats
="${obj_format}"
4181 _gas_uniq_list
="$emulations"
4182 _gas_uniq_newlist
=""
4183 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
4184 case $_gas_uniq_i in
4186 *) case " $_gas_uniq_newlist " in
4187 *" $_gas_uniq_i "*) ;;
4188 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
4192 emulations
=$_gas_uniq_newlist
4194 for em
in .
$emulations ; do
4197 mipsbelf | mipslelf | mipself
)
4198 fmt=elf
file=mipself
;;
4199 mipsbecoff | mipslecoff | mipsecoff
)
4200 fmt=ecoff
file=mipsecoff
;;
4202 fmt=coff
file=$em ;;
4204 fmt=aout
file=$em ;;
4208 formats
="$formats $fmt"
4209 emfiles
="$emfiles e-$file.o"
4210 EMULATIONS
="$EMULATIONS &$em,"
4212 _gas_uniq_list
="$formats"
4213 _gas_uniq_newlist
=""
4214 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
4215 case $_gas_uniq_i in
4217 *) case " $_gas_uniq_newlist " in
4218 *" $_gas_uniq_i "*) ;;
4219 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
4223 formats
=$_gas_uniq_newlist
4225 _gas_uniq_list
="$emfiles"
4226 _gas_uniq_newlist
=""
4227 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
4228 case $_gas_uniq_i in
4230 *) case " $_gas_uniq_newlist " in
4231 *" $_gas_uniq_i "*) ;;
4232 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
4236 emfiles
=$_gas_uniq_newlist
4238 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4239 for fmt in $formats ; do
4242 cat >>confdefs.h
<<\_ACEOF
4243 #define OBJ_MAYBE_AOUT 1
4247 cat >>confdefs.h
<<\_ACEOF
4248 #define OBJ_MAYBE_BOUT 1
4252 cat >>confdefs.h
<<\_ACEOF
4253 #define OBJ_MAYBE_COFF 1
4257 cat >>confdefs.h
<<\_ACEOF
4258 #define OBJ_MAYBE_ECOFF 1
4262 cat >>confdefs.h
<<\_ACEOF
4263 #define OBJ_MAYBE_ELF 1
4267 cat >>confdefs.h
<<\_ACEOF
4268 #define OBJ_MAYBE_GENERIC 1
4272 cat >>confdefs.h
<<\_ACEOF
4273 #define OBJ_MAYBE_HP300 1
4277 cat >>confdefs.h
<<\_ACEOF
4278 #define OBJ_MAYBE_IEEE 1
4282 cat >>confdefs.h
<<\_ACEOF
4283 #define OBJ_MAYBE_SOM 1
4287 cat >>confdefs.h
<<\_ACEOF
4288 #define OBJ_MAYBE_VMS 1
4292 extra_objects
="$extra_objects obj-$fmt.o"
4296 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4297 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
4298 # e-mips* has more than one emulation per file, e-i386* has just one at the
4299 # moment. If only one emulation is specified, then don't define
4300 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4301 case "${obj_format}${emfiles}" in
4303 extra_objects
="$extra_objects $emfiles"
4305 cat >>confdefs.h
<<\_ACEOF
4306 #define USE_EMULATIONS 1
4313 cat >>confdefs.h
<<_ACEOF
4314 #define EMULATIONS $EMULATIONS
4318 cat >>confdefs.h
<<_ACEOF
4319 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4323 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4324 yes-
*-coff) need_bfd
=yes ;;
4325 no-
*-coff) need_bfd
=yes
4327 cat >>confdefs.h
<<\_ACEOF
4328 #define MANY_SEGMENTS 1
4333 reject_dev_configs
=yes
4335 case ${reject_dev_configs}-${dev} in
4337 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4338 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4339 { (exit 1); exit 1; }; }
4349 case "${primary_bfd_gas}" in
4351 cat >>confdefs.h
<<\_ACEOF
4352 #define BFD_ASSEMBLER 1
4358 # do we need the opcodes library?
4359 case "${need_opcodes}" in
4361 OPCODES_LIB
=..
/opcodes
/libopcodes.la
4365 case "${need_bfd}" in
4367 BFDLIB
=..
/bfd
/libbfd.la
4368 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
4378 cat >>confdefs.h
<<_ACEOF
4379 #define TARGET_ALIAS "${target_alias}"
4383 cat >>confdefs.h
<<_ACEOF
4384 #define TARGET_CANONICAL "${target}"
4388 cat >>confdefs.h
<<_ACEOF
4389 #define TARGET_CPU "${target_cpu}"
4393 cat >>confdefs.h
<<_ACEOF
4394 #define TARGET_VENDOR "${target_vendor}"
4398 cat >>confdefs.h
<<_ACEOF
4399 #define TARGET_OS "${target_os}"
4404 ac_cpp
='$CPP $CPPFLAGS'
4405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4410 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_CC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test -n "$CC"; then
4417 ac_cv_prog_CC
="$CC" # Let the user override the test.
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_exec_ext
in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 if test -n "$CC"; then
4437 echo "$as_me:$LINENO: result: $CC" >&5
4438 echo "${ECHO_T}$CC" >&6
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4445 if test -z "$ac_cv_prog_CC"; then
4447 # Extract the first word of "gcc", so it can be a program name with args.
4448 set dummy gcc
; ac_word
=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test -n "$ac_ct_CC"; then
4455 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_CC
="gcc"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4474 if test -n "$ac_ct_CC"; then
4475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4476 echo "${ECHO_T}$ac_ct_CC" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4487 if test -z "$CC"; then
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4490 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC
="$CC" # Let the user override the test.
4499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir
=.
4504 for ac_exec_ext
in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$CC"; then
4517 echo "$as_me:$LINENO: result: $CC" >&5
4518 echo "${ECHO_T}$CC" >&6
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4525 if test -z "$ac_cv_prog_CC"; then
4527 # Extract the first word of "cc", so it can be a program name with args.
4528 set dummy cc
; ac_word
=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 if test -n "$ac_ct_CC"; then
4535 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir
=.
4542 for ac_exec_ext
in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_ac_ct_CC
="cc"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4554 if test -n "$ac_ct_CC"; then
4555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4556 echo "${ECHO_T}$ac_ct_CC" >&6
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4568 if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc
; ac_word
=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC
="$CC" # Let the user override the test.
4580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir
=.
4585 for ac_exec_ext
in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected
=yes
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 if test $ac_prog_rejected = yes; then
4599 # We found a bogon in the path, so make sure we never use it.
4600 set dummy
$ac_cv_prog_CC
4602 if test $# != 0; then
4603 # We chose a different compiler from the bogus one.
4604 # However, it has the same basename, so the bogon will be chosen
4605 # first if we set CC to just the basename; use the full file name.
4607 set dummy
"$as_dir/$ac_word" ${1+"$@"}
4615 if test -n "$CC"; then
4616 echo "$as_me:$LINENO: result: $CC" >&5
4617 echo "${ECHO_T}$CC" >&6
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC
="$CC" # Let the user override the test.
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_exec_ext
in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test -n "$CC"; then
4656 echo "$as_me:$LINENO: result: $CC" >&5
4657 echo "${ECHO_T}$CC" >&6
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4663 test -n "$CC" && break
4666 if test -z "$CC"; then
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy
$ac_prog; ac_word
=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_exec_ext
in '' $ac_executable_extensions; do
4686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_CC
="$ac_prog"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699 echo "${ECHO_T}$ac_ct_CC" >&6
4701 echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4705 test -n "$ac_ct_CC" && break
4714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
4715 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
4716 { (exit 1); exit 1; }; }
4718 # Provide some information about the compiler.
4719 echo "$as_me:$LINENO:" \
4720 "checking for C compiler version" >&5
4721 ac_compiler
=`set X $ac_compile; echo $2`
4722 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4723 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }
4727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4728 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }
4732 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4733 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }
4738 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.
$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 #include "confdefs.h"
4747 #ifdef F77_DUMMY_MAIN
4751 int F77_DUMMY_MAIN() { return 1; }
4764 rm -f conftest.
$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 echo "$as_me: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4782 rm -f conftest.
$ac_objext conftest.
$ac_ext
4783 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4786 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4787 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4788 GCC
=`test $ac_compiler_gnu = yes && echo yes`
4789 ac_test_CFLAGS
=${CFLAGS+set}
4790 ac_save_CFLAGS
=$CFLAGS
4792 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4793 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4794 if test "${ac_cv_prog_cc_g+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cat >conftest.
$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 #include "confdefs.h"
4801 #ifdef F77_DUMMY_MAIN
4805 int F77_DUMMY_MAIN() { return 1; }
4815 rm -f conftest.
$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try
='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4829 echo "$as_me: failed program was:" >&5
4830 cat conftest.
$ac_ext >&5
4833 rm -f conftest.
$ac_objext conftest.
$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4837 if test "$ac_test_CFLAGS" = set; then
4838 CFLAGS
=$ac_save_CFLAGS
4839 elif test $ac_cv_prog_cc_g = yes; then
4840 if test "$GCC" = yes; then
4846 if test "$GCC" = yes; then
4852 # Some people use a C++ compiler to compile C. Since we use `exit',
4853 # in C++ we need to declare it. In case someone uses the same compiler
4854 # for both compiling C and C++ we need to have the C++ compiler decide
4855 # the declaration of exit, since it's the most demanding environment.
4856 cat >conftest.
$ac_ext <<_ACEOF
4861 rm -f conftest.
$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try
='test -s conftest.$ac_objext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 for ac_declaration
in \
4875 '#include <stdlib.h>' \
4876 'extern "C" void std::exit (int) throw (); using std::exit;' \
4877 'extern "C" void std::exit (int); using std::exit;' \
4878 'extern "C" void exit (int) throw ();' \
4879 'extern "C" void exit (int);' \
4882 cat >conftest.
$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4887 #ifdef F77_DUMMY_MAIN
4891 int F77_DUMMY_MAIN() { return 1; }
4901 rm -f conftest.
$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try
='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4915 echo "$as_me: failed program was:" >&5
4916 cat conftest.
$ac_ext >&5
4919 rm -f conftest.
$ac_objext conftest.
$ac_ext
4920 cat >conftest.
$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 #include "confdefs.h"
4924 #ifdef F77_DUMMY_MAIN
4928 int F77_DUMMY_MAIN() { return 1; }
4938 rm -f conftest.
$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 echo "$as_me: failed program was:" >&5
4953 cat conftest.
$ac_ext >&5
4955 rm -f conftest.
$ac_objext conftest.
$ac_ext
4958 if test -n "$ac_declaration"; then
4959 echo '#ifdef __cplusplus' >>confdefs.h
4960 echo $ac_declaration >>confdefs.h
4961 echo '#endif' >>confdefs.h
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.
$ac_ext >&5
4968 rm -f conftest.
$ac_objext conftest.
$ac_ext
4970 ac_cpp
='$CPP $CPPFLAGS'
4971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4976 for ac_prog
in 'bison -y' byacc
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy
$ac_prog; ac_word
=$2
4980 echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982 if test "${ac_cv_prog_YACC+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 if test -n "$YACC"; then
4986 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir
=.
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_YACC
="$ac_prog"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 YACC
=$ac_cv_prog_YACC
5005 if test -n "$YACC"; then
5006 echo "$as_me:$LINENO: result: $YACC" >&5
5007 echo "${ECHO_T}$YACC" >&6
5009 echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
5013 test -n "$YACC" && break
5015 test -n "$YACC" || YACC
="yacc"
5017 missing_dir
=`cd $ac_aux_dir && pwd`
5018 for ac_prog
in flex
lex
5020 # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy
$ac_prog; ac_word
=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_LEX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$LEX"; then
5028 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir
=.
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_LEX
="$ac_prog"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 if test -n "$LEX"; then
5048 echo "$as_me:$LINENO: result: $LEX" >&5
5049 echo "${ECHO_T}$LEX" >&6
5051 echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5055 test -n "$LEX" && break
5057 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
5059 for ac_prog
in flex
lex
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy
$ac_prog; ac_word
=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_LEX+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 if test -n "$LEX"; then
5069 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_LEX
="$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$LEX"; then
5089 echo "$as_me:$LINENO: result: $LEX" >&5
5090 echo "${ECHO_T}$LEX" >&6
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5096 test -n "$LEX" && break
5098 test -n "$LEX" || LEX
=":"
5100 if test -z "$LEXLIB"
5102 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5103 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5104 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_check_lib_save_LIBS
=$LIBS
5109 cat >conftest.
$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5113 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5120 #ifdef F77_DUMMY_MAIN
5124 int F77_DUMMY_MAIN() { return 1; }
5134 rm -f conftest.
$ac_objext conftest
$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try
='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_fl_yywrap
=yes
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.
$ac_ext >&5
5150 ac_cv_lib_fl_yywrap
=no
5152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5153 LIBS
=$ac_check_lib_save_LIBS
5155 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5156 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5157 if test $ac_cv_lib_fl_yywrap = yes; then
5160 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5161 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5162 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 ac_check_lib_save_LIBS
=$LIBS
5167 cat >conftest.
$ac_ext <<_ACEOF
5168 #line $LINENO "configure"
5169 #include "confdefs.h"
5171 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5178 #ifdef F77_DUMMY_MAIN
5182 int F77_DUMMY_MAIN() { return 1; }
5192 rm -f conftest.
$ac_objext conftest
$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try
='test -s conftest$ac_exeext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_cv_lib_l_yywrap
=yes
5206 echo "$as_me: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5208 ac_cv_lib_l_yywrap
=no
5210 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5211 LIBS
=$ac_check_lib_save_LIBS
5213 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5214 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5215 if test $ac_cv_lib_l_yywrap = yes; then
5223 if test "x$LEX" != "x:"; then
5224 echo "$as_me:$LINENO: checking lex output file root" >&5
5225 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5226 if test "${ac_cv_prog_lex_root+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 # The minimal lex program is just a single line: %%. But some broken lexes
5230 # (Solaris, I think it was) want two %% lines, so accommodate them.
5231 cat >conftest.l
<<_ACEOF
5235 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5236 (eval $LEX conftest.l
) 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5240 if test -f lex.yy.c
; then
5241 ac_cv_prog_lex_root
=lex.yy
5242 elif test -f lexyy.c
; then
5243 ac_cv_prog_lex_root
=lexyy
5245 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5246 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5247 { (exit 1); exit 1; }; }
5250 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5251 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5253 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5255 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5256 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5257 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 # POSIX says lex can declare yytext either as a pointer or an array; the
5261 # default is implementation-dependent. Figure out which it is, since
5262 # not all implementations provide the %pointer and %array declarations.
5263 ac_cv_prog_lex_yytext_pointer
=no
5264 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5266 LIBS
="$LIBS $LEXLIB"
5267 cat >conftest.
$ac_ext <<_ACEOF
5268 `cat $LEX_OUTPUT_ROOT.c`
5270 rm -f conftest.
$ac_objext conftest
$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try
='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_prog_lex_yytext_pointer
=yes
5284 echo "$as_me: failed program was:" >&5
5285 cat conftest.
$ac_ext >&5
5287 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5289 rm -f "${LEX_OUTPUT_ROOT}.c"
5292 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5293 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5296 cat >>confdefs.h
<<\_ACEOF
5297 #define YYTEXT_POINTER 1
5305 ALL_LINGUAS
="fr tr es"
5306 if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5308 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5309 echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311 if test "${ac_cv_prog_RANLIB+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 if test -n "$RANLIB"; then
5315 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir
=.
5322 for ac_exec_ext
in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 RANLIB
=$ac_cv_prog_RANLIB
5334 if test -n "$RANLIB"; then
5335 echo "$as_me:$LINENO: result: $RANLIB" >&5
5336 echo "${ECHO_T}$RANLIB" >&6
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5343 if test -z "$ac_cv_prog_RANLIB"; then
5344 ac_ct_RANLIB
=$RANLIB
5345 # Extract the first word of "ranlib", so it can be a program name with args.
5346 set dummy ranlib
; ac_word
=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test -n "$ac_ct_RANLIB"; then
5353 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir
=.
5360 for ac_exec_ext
in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5372 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5373 if test -n "$ac_ct_RANLIB"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5381 RANLIB
=$ac_ct_RANLIB
5383 RANLIB
="$ac_cv_prog_RANLIB"
5387 ac_cpp
='$CPP $CPPFLAGS'
5388 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5391 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5393 # On Suns, sometimes $CPP names a directory.
5394 if test -n "$CPP" && test -d "$CPP"; then
5397 if test -z "$CPP"; then
5398 if test "${ac_cv_prog_CPP+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 # Double quotes because CPP needs to be expanded
5402 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5405 for ac_c_preproc_warn_flag
in '' yes
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat >conftest.
$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5418 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5420 egrep -v '^ *\+' conftest.er1
>conftest.err
5422 cat conftest.err
>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev
/null
; then
5425 if test -s conftest.err
; then
5426 ac_cpp_err
=$ac_c_preproc_warn_flag
5433 if test -z "$ac_cpp_err"; then
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.
$ac_ext >&5
5438 # Broken: fails on valid input.
5441 rm -f conftest.err conftest.
$ac_ext
5443 # OK, works on sane cases. Now check whether non-existent headers
5444 # can be detected and how.
5445 cat >conftest.
$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 #include "confdefs.h"
5448 #include <ac_nonexistent.h>
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5453 egrep -v '^ *\+' conftest.er1
>conftest.err
5455 cat conftest.err
>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev
/null
; then
5458 if test -s conftest.err
; then
5459 ac_cpp_err
=$ac_c_preproc_warn_flag
5466 if test -z "$ac_cpp_err"; then
5467 # Broken: success on invalid input.
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.
$ac_ext >&5
5472 # Passes both tests.
5476 rm -f conftest.err conftest.
$ac_ext
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.err conftest.
$ac_ext
5481 if $ac_preproc_ok; then
5493 echo "$as_me:$LINENO: result: $CPP" >&5
5494 echo "${ECHO_T}$CPP" >&6
5496 for ac_c_preproc_warn_flag
in '' yes
5498 # Use a header file that comes with gcc, so configuring glibc
5499 # with a fresh cross-compiler works.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
5502 cat >conftest.
$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5511 egrep -v '^ *\+' conftest.er1
>conftest.err
5513 cat conftest.err
>&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev
/null
; then
5516 if test -s conftest.err
; then
5517 ac_cpp_err
=$ac_c_preproc_warn_flag
5524 if test -z "$ac_cpp_err"; then
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.
$ac_ext >&5
5529 # Broken: fails on valid input.
5532 rm -f conftest.err conftest.
$ac_ext
5534 # OK, works on sane cases. Now check whether non-existent headers
5535 # can be detected and how.
5536 cat >conftest.
$ac_ext <<_ACEOF
5537 #line $LINENO "configure"
5538 #include "confdefs.h"
5539 #include <ac_nonexistent.h>
5541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5544 egrep -v '^ *\+' conftest.er1
>conftest.err
5546 cat conftest.err
>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev
/null
; then
5549 if test -s conftest.err
; then
5550 ac_cpp_err
=$ac_c_preproc_warn_flag
5557 if test -z "$ac_cpp_err"; then
5558 # Broken: success on invalid input.
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.
$ac_ext >&5
5563 # Passes both tests.
5567 rm -f conftest.err conftest.
$ac_ext
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.err conftest.
$ac_ext
5572 if $ac_preproc_ok; then
5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
5576 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5577 { (exit 1); exit 1; }; }
5581 ac_cpp
='$CPP $CPPFLAGS'
5582 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589 if test "${ac_cv_header_stdc+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5604 egrep -v '^ *\+' conftest.er1
>conftest.err
5606 cat conftest.err
>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev
/null
; then
5609 if test -s conftest.err
; then
5610 ac_cpp_err
=$ac_c_preproc_warn_flag
5617 if test -z "$ac_cpp_err"; then
5618 ac_cv_header_stdc
=yes
5620 echo "$as_me: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5622 ac_cv_header_stdc
=no
5624 rm -f conftest.err conftest.
$ac_ext
5626 if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat >conftest.
$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 egrep "memchr" >/dev
/null
2>&1; then
5638 ac_cv_header_stdc
=no
5644 if test $ac_cv_header_stdc = yes; then
5645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5646 cat >conftest.
$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 egrep "free" >/dev
/null
2>&1; then
5656 ac_cv_header_stdc
=no
5662 if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then
5667 cat >conftest.
$ac_ext <<_ACEOF
5668 #line $LINENO "configure"
5669 #include "confdefs.h"
5671 #if ((' ' & 0x0FF) == 0x020)
5672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5676 || ('j' <= (c) && (c) <= 'r') \
5677 || ('s' <= (c) && (c) <= 'z'))
5678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5686 for (i = 0; i < 256; i++)
5687 if (XOR (islower (i), ISLOWER (i))
5688 || toupper (i) != TOUPPER (i))
5693 rm -f conftest
$ac_exeext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5706 echo "$as_me: program exited with status $ac_status" >&5
5707 echo "$as_me: failed program was:" >&5
5708 cat conftest.
$ac_ext >&5
5710 ac_cv_header_stdc
=no
5712 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5718 if test $ac_cv_header_stdc = yes; then
5720 cat >>confdefs.h
<<\_ACEOF
5721 #define STDC_HEADERS 1
5726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 ac_cv_prog_cc_stdc
=no
5733 cat >conftest.
$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5735 #include "confdefs.h"
5738 #include <sys/types.h>
5739 #include <sys/stat.h>
5740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5741 struct buf { int x; };
5742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5743 static char *e (p, i)
5749 static char *f (char * (*g) (char **, int), char **p, ...)
5754 s = g (p, va_arg (v,int));
5758 int test (int i, double x);
5759 struct s1 {int (*f) (int a);};
5760 struct s2 {int (*f) (double a);};
5761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5764 #ifdef F77_DUMMY_MAIN
5768 int F77_DUMMY_MAIN() { return 1; }
5773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5778 # Don't try gcc -ansi; that turns off useful extensions and
5779 # breaks some systems' header files.
5780 # AIX -qlanglvl=ansi
5781 # Ultrix and OSF/1 -std1
5782 # HP-UX 10.20 and later -Ae
5783 # HP-UX older versions -Aa -D_HPUX_SOURCE
5784 # SVR4 -Xc -D__EXTENSIONS__
5785 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5787 CC
="$ac_save_CC $ac_arg"
5788 rm -f conftest.
$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try
='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_prog_cc_stdc
=$ac_arg
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.
$ac_ext >&5
5806 rm -f conftest.
$ac_objext
5808 rm -f conftest.
$ac_ext conftest.
$ac_objext
5813 case "x$ac_cv_prog_cc_stdc" in
5815 echo "$as_me:$LINENO: result: none needed" >&5
5816 echo "${ECHO_T}none needed" >&6 ;;
5818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5819 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5820 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5823 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5825 if test "${ac_cv_c_const+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.
$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5832 #ifdef F77_DUMMY_MAIN
5836 int F77_DUMMY_MAIN() { return 1; }
5841 /* FIXME: Include the comments suggested by Paul. */
5843 /* Ultrix mips cc rejects this. */
5844 typedef int charset[2];
5846 /* SunOS 4.1.1 cc rejects this. */
5847 char const *const *ccp;
5849 /* NEC SVR4.0.2 mips cc rejects this. */
5850 struct point {int x, y;};
5851 static struct point const zero = {0,0};
5852 /* AIX XL C 1.02.0.0 rejects this.
5853 It does not let you subtract one const X* pointer from another in
5854 an arm of an if-expression whose if-part is not a constant
5856 const char *g = "string";
5857 ccp = &g + (g ? g-g : 0);
5858 /* HPUX 7.0 cc rejects these. */
5861 ccp = (char const *const *) p;
5862 { /* SCO 3.2v4 cc rejects this. */
5864 char const *s = 0 ? (char *) 0 : (char const *) 0;
5868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5870 const int *foo = &x[0];
5873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5874 typedef const int *iptr;
5878 { /* AIX XL C 1.02.0.0 rejects this saying
5879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5880 struct s { int j; const int *ap[3]; };
5881 struct s *b; b->j = 5;
5883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5892 rm -f conftest.
$ac_objext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try
='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.
$ac_ext >&5
5910 rm -f conftest.
$ac_objext conftest.
$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5913 echo "${ECHO_T}$ac_cv_c_const" >&6
5914 if test $ac_cv_c_const = no
; then
5916 cat >>confdefs.h
<<\_ACEOF
5922 echo "$as_me:$LINENO: checking for inline" >&5
5923 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5924 if test "${ac_cv_c_inline+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 for ac_kw
in inline __inline__ __inline
; do
5929 cat >conftest.
$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5931 #include "confdefs.h"
5933 static $ac_kw int static_foo () {return 0; }
5934 $ac_kw int foo () {return 0; }
5938 rm -f conftest.
$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_c_inline
=$ac_kw; break
5952 echo "$as_me: failed program was:" >&5
5953 cat conftest.
$ac_ext >&5
5955 rm -f conftest.
$ac_objext conftest.
$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5960 echo "${ECHO_T}$ac_cv_c_inline" >&6
5961 case $ac_cv_c_inline in
5964 cat >>confdefs.h
<<\_ACEOF
5968 *) cat >>confdefs.h
<<_ACEOF
5969 #define inline $ac_cv_c_inline
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5984 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5985 inttypes.h stdint.h unistd.h
5987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.
$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 #include "confdefs.h"
5996 $ac_includes_default
5998 #include <$ac_header>
6000 rm -f conftest.
$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 eval "$as_ac_Header=yes"
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.
$ac_ext >&5
6016 eval "$as_ac_Header=no"
6018 rm -f conftest.
$ac_objext conftest.
$ac_ext
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h
<<_ACEOF
6024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 echo "$as_me:$LINENO: checking for off_t" >&5
6033 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6034 if test "${ac_cv_type_off_t+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 cat >conftest.
$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 #include "confdefs.h"
6040 $ac_includes_default
6041 #ifdef F77_DUMMY_MAIN
6045 int F77_DUMMY_MAIN() { return 1; }
6058 rm -f conftest.
$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try
='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_type_off_t
=yes
6072 echo "$as_me: failed program was:" >&5
6073 cat conftest.
$ac_ext >&5
6076 rm -f conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6079 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6080 if test $ac_cv_type_off_t = yes; then
6084 cat >>confdefs.h
<<_ACEOF
6090 echo "$as_me:$LINENO: checking for size_t" >&5
6091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6092 if test "${ac_cv_type_size_t+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 cat >conftest.
$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 #include "confdefs.h"
6098 $ac_includes_default
6099 #ifdef F77_DUMMY_MAIN
6103 int F77_DUMMY_MAIN() { return 1; }
6110 if (sizeof (size_t))
6116 rm -f conftest.
$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try
='test -s conftest.$ac_objext'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 ac_cv_type_size_t
=yes
6130 echo "$as_me: failed program was:" >&5
6131 cat conftest.
$ac_ext >&5
6132 ac_cv_type_size_t
=no
6134 rm -f conftest.
$ac_objext conftest.
$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6137 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6138 if test $ac_cv_type_size_t = yes; then
6142 cat >>confdefs.h
<<_ACEOF
6143 #define size_t unsigned
6148 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6149 # for constant arguments. Useless!
6150 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6151 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6152 if test "${ac_cv_working_alloca_h+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 cat >conftest.
$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 #include "confdefs.h"
6159 #ifdef F77_DUMMY_MAIN
6163 int F77_DUMMY_MAIN() { return 1; }
6168 char *p = (char *) alloca (2 * sizeof (int));
6173 rm -f conftest.
$ac_objext conftest
$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_working_alloca_h
=yes
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.
$ac_ext >&5
6189 ac_cv_working_alloca_h
=no
6191 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6193 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6194 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6195 if test $ac_cv_working_alloca_h = yes; then
6197 cat >>confdefs.h
<<\_ACEOF
6198 #define HAVE_ALLOCA_H 1
6203 echo "$as_me:$LINENO: checking for alloca" >&5
6204 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6205 if test "${ac_cv_func_alloca_works+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.
$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6210 #include "confdefs.h"
6212 # define alloca __builtin_alloca
6215 # include <malloc.h>
6216 # define alloca _alloca
6219 # include <alloca.h>
6224 # ifndef alloca /* predefined by HP cc +Olibcalls */
6232 #ifdef F77_DUMMY_MAIN
6236 int F77_DUMMY_MAIN() { return 1; }
6241 char *p = (char *) alloca (1);
6246 rm -f conftest.
$ac_objext conftest
$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try
='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_func_alloca_works
=yes
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.
$ac_ext >&5
6262 ac_cv_func_alloca_works
=no
6264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6266 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6267 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6269 if test $ac_cv_func_alloca_works = yes; then
6271 cat >>confdefs.h
<<\_ACEOF
6272 #define HAVE_ALLOCA 1
6276 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6277 # that cause trouble. Some versions do not even contain alloca or
6278 # contain a buggy version. If you still want to use their alloca,
6279 # use ar to extract alloca.o from them instead of compiling alloca.c.
6281 ALLOCA
=alloca.
$ac_objext
6283 cat >>confdefs.h
<<\_ACEOF
6288 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6289 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6290 if test "${ac_cv_os_cray+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.
$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6296 #if defined(CRAY) && ! defined(CRAY2)
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 egrep "webecray" >/dev
/null
2>&1; then
6312 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6313 echo "${ECHO_T}$ac_cv_os_cray" >&6
6314 if test $ac_cv_os_cray = yes; then
6315 for ac_func
in _getb67 GETB67 getb67
; do
6316 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6317 echo "$as_me:$LINENO: checking for $ac_func" >&5
6318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6319 if eval "test \"\${$as_ac_var+set}\" = set"; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.
$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6324 #include "confdefs.h"
6325 /* System header to define __stub macros and hopefully few prototypes,
6326 which can conflict with char $ac_func (); below. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6337 #ifdef F77_DUMMY_MAIN
6341 int F77_DUMMY_MAIN() { return 1; }
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6359 rm -f conftest.
$ac_objext conftest
$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try
='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 eval "$as_ac_var=yes"
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.
$ac_ext >&5
6375 eval "$as_ac_var=no"
6377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6381 if test `eval echo '${'$as_ac_var'}'` = yes; then
6383 cat >>confdefs.h
<<_ACEOF
6384 #define CRAY_STACKSEG_END $ac_func
6393 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6394 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6395 if test "${ac_cv_c_stack_direction+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test "$cross_compiling" = yes; then
6399 ac_cv_c_stack_direction
=0
6401 cat >conftest.
$ac_ext <<_ACEOF
6402 #line $LINENO "configure"
6403 #include "confdefs.h"
6405 find_stack_direction ()
6407 static char *addr = 0;
6412 return find_stack_direction ();
6415 return (&dummy > addr) ? 1 : -1;
6421 exit (find_stack_direction () < 0);
6424 rm -f conftest
$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_c_stack_direction
=1
6437 echo "$as_me: program exited with status $ac_status" >&5
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.
$ac_ext >&5
6441 ac_cv_c_stack_direction
=-1
6443 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6449 cat >>confdefs.h
<<_ACEOF
6450 #define STACK_DIRECTION $ac_cv_c_stack_direction
6458 for ac_header
in stdlib.h unistd.h
6460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 # Is the header compilable?
6471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6473 cat >conftest.
$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6476 $ac_includes_default
6477 #include <$ac_header>
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_header_compiler
=yes
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6495 ac_header_compiler
=no
6497 rm -f conftest.
$ac_objext conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 echo "${ECHO_T}$ac_header_compiler" >&6
6501 # Is the header present?
6502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504 cat >conftest.
$ac_ext <<_ACEOF
6505 #line $LINENO "configure"
6506 #include "confdefs.h"
6507 #include <$ac_header>
6509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6512 egrep -v '^ *\+' conftest.er1
>conftest.err
6514 cat conftest.err
>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev
/null
; then
6517 if test -s conftest.err
; then
6518 ac_cpp_err
=$ac_c_preproc_warn_flag
6525 if test -z "$ac_cpp_err"; then
6526 ac_header_preproc
=yes
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.
$ac_ext >&5
6530 ac_header_preproc
=no
6532 rm -f conftest.err conftest.
$ac_ext
6533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6534 echo "${ECHO_T}$ac_header_preproc" >&6
6536 # So? What about this header?
6537 case $ac_header_compiler:$ac_header_preproc in
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 eval "$as_ac_Header=$ac_header_preproc"
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h
<<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572 for ac_func
in getpagesize
6574 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6575 echo "$as_me:$LINENO: checking for $ac_func" >&5
6576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6577 if eval "test \"\${$as_ac_var+set}\" = set"; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6581 #line $LINENO "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char $ac_func (); below. */
6586 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6595 #ifdef F77_DUMMY_MAIN
6599 int F77_DUMMY_MAIN() { return 1; }
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 rm -f conftest.
$ac_objext conftest
$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try
='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 eval "$as_ac_var=yes"
6631 echo "$as_me: failed program was:" >&5
6632 cat conftest.
$ac_ext >&5
6633 eval "$as_ac_var=no"
6635 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if test `eval echo '${'$as_ac_var'}'` = yes; then
6640 cat >>confdefs.h
<<_ACEOF
6641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6647 echo "$as_me:$LINENO: checking for working mmap" >&5
6648 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6649 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 if test "$cross_compiling" = yes; then
6653 ac_cv_func_mmap_fixed_mapped
=no
6655 cat >conftest.
$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 #include "confdefs.h"
6658 $ac_includes_default
6659 /* malloc might have been renamed as rpl_malloc. */
6662 /* Thanks to Mike Haertel and Jim Avera for this test.
6663 Here is a matrix of mmap possibilities:
6664 mmap private not fixed
6665 mmap private fixed at somewhere currently unmapped
6666 mmap private fixed at somewhere already mapped
6667 mmap shared not fixed
6668 mmap shared fixed at somewhere currently unmapped
6669 mmap shared fixed at somewhere already mapped
6670 For private mappings, we should verify that changes cannot be read()
6671 back from the file, nor mmap's back from the file at a different
6672 address. (There have been systems where private was not correctly
6673 implemented like the infamous i386 svr4.0, and systems where the
6674 VM page cache was not coherent with the file system buffer cache
6675 like early versions of FreeBSD and possibly contemporary NetBSD.)
6676 For shared mappings, we should conversely verify that changes get
6677 propagated back to all the places they're supposed to be.
6679 Grep wants private fixed already mapped.
6680 The main things grep needs to know about mmap are:
6681 * does it exist and is it safe to write into the mmap'd area
6682 * how to use it (BSD variants) */
6685 #include <sys/mman.h>
6687 #if !STDC_HEADERS && !HAVE_STDLIB_H
6691 /* This mess was copied from the GNU getpagesize.h. */
6692 #if !HAVE_GETPAGESIZE
6693 /* Assume that all systems that can run configure have sys/param.h. */
6694 # if !HAVE_SYS_PARAM_H
6695 # define HAVE_SYS_PARAM_H 1
6698 # ifdef _SC_PAGESIZE
6699 # define getpagesize() sysconf(_SC_PAGESIZE)
6700 # else /* no _SC_PAGESIZE */
6701 # if HAVE_SYS_PARAM_H
6702 # include <sys/param.h>
6703 # ifdef EXEC_PAGESIZE
6704 # define getpagesize() EXEC_PAGESIZE
6705 # else /* no EXEC_PAGESIZE */
6707 # define getpagesize() NBPG * CLSIZE
6710 # endif /* no CLSIZE */
6711 # else /* no NBPG */
6713 # define getpagesize() NBPC
6714 # else /* no NBPC */
6716 # define getpagesize() PAGESIZE
6717 # endif /* PAGESIZE */
6718 # endif /* no NBPC */
6719 # endif /* no NBPG */
6720 # endif /* no EXEC_PAGESIZE */
6721 # else /* no HAVE_SYS_PARAM_H */
6722 # define getpagesize() 8192 /* punt totally */
6723 # endif /* no HAVE_SYS_PARAM_H */
6724 # endif /* no _SC_PAGESIZE */
6726 #endif /* no HAVE_GETPAGESIZE */
6731 char *data, *data2, *data3;
6735 pagesize = getpagesize ();
6737 /* First, make a file with some known garbage in it. */
6738 data = (char *) malloc (pagesize);
6741 for (i = 0; i < pagesize; ++i)
6742 *(data + i) = rand ();
6744 fd = creat ("conftest.mmap", 0600);
6747 if (write (fd, data, pagesize) != pagesize)
6751 /* Next, try to mmap the file at a fixed address which already has
6752 something else allocated at it. If we can, also make sure that
6753 we see the same garbage. */
6754 fd = open ("conftest.mmap", O_RDWR);
6757 data2 = (char *) malloc (2 * pagesize);
6760 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6764 for (i = 0; i < pagesize; ++i)
6765 if (*(data + i) != *(data2 + i))
6768 /* Finally, make sure that changes to the mapped area do not
6769 percolate back to the file as seen by read(). (This is a bug on
6770 some variants of i386 svr4.0.) */
6771 for (i = 0; i < pagesize; ++i)
6772 *(data2 + i) = *(data2 + i) + 1;
6773 data3 = (char *) malloc (pagesize);
6776 if (read (fd, data3, pagesize) != pagesize)
6778 for (i = 0; i < pagesize; ++i)
6779 if (*(data + i) != *(data3 + i))
6785 rm -f conftest
$ac_exeext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 ac_cv_func_mmap_fixed_mapped
=yes
6798 echo "$as_me: program exited with status $ac_status" >&5
6799 echo "$as_me: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6802 ac_cv_func_mmap_fixed_mapped
=no
6804 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6808 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6809 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6811 cat >>confdefs.h
<<\_ACEOF
6828 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6829 unistd.h values.h sys
/param.h
6831 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6833 echo "$as_me:$LINENO: checking for $ac_header" >&5
6834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6841 # Is the header compilable?
6842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6844 cat >conftest.
$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 #include "confdefs.h"
6847 $ac_includes_default
6848 #include <$ac_header>
6850 rm -f conftest.
$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try
='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 ac_header_compiler
=yes
6864 echo "$as_me: failed program was:" >&5
6865 cat conftest.
$ac_ext >&5
6866 ac_header_compiler
=no
6868 rm -f conftest.
$ac_objext conftest.
$ac_ext
6869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870 echo "${ECHO_T}$ac_header_compiler" >&6
6872 # Is the header present?
6873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6875 cat >conftest.
$ac_ext <<_ACEOF
6876 #line $LINENO "configure"
6877 #include "confdefs.h"
6878 #include <$ac_header>
6880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6883 egrep -v '^ *\+' conftest.er1
>conftest.err
6885 cat conftest.err
>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } >/dev
/null
; then
6888 if test -s conftest.err
; then
6889 ac_cpp_err
=$ac_c_preproc_warn_flag
6896 if test -z "$ac_cpp_err"; then
6897 ac_header_preproc
=yes
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6901 ac_header_preproc
=no
6903 rm -f conftest.err conftest.
$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6905 echo "${ECHO_T}$ac_header_preproc" >&6
6907 # So? What about this header?
6908 case $ac_header_compiler:$ac_header_preproc in
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6922 echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 eval "$as_ac_Header=$ac_header_preproc"
6929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6934 cat >>confdefs.h
<<_ACEOF
6935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6953 __argz_count __argz_stringify __argz_next
6955 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_func" >&5
6957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 cat >conftest.
$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6964 /* System header to define __stub macros and hopefully few prototypes,
6965 which can conflict with char $ac_func (); below. */
6967 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6976 #ifdef F77_DUMMY_MAIN
6980 int F77_DUMMY_MAIN() { return 1; }
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6998 rm -f conftest.
$ac_objext conftest
$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try
='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 eval "$as_ac_var=yes"
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.
$ac_ext >&5
7014 eval "$as_ac_var=no"
7016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7020 if test `eval echo '${'$as_ac_var'}'` = yes; then
7021 cat >>confdefs.h
<<_ACEOF
7022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7029 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7031 for ac_func
in stpcpy
7033 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034 echo "$as_me:$LINENO: checking for $ac_func" >&5
7035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7036 if eval "test \"\${$as_ac_var+set}\" = set"; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 cat >conftest.
$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 #include "confdefs.h"
7042 /* System header to define __stub macros and hopefully few prototypes,
7043 which can conflict with char $ac_func (); below. */
7045 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7054 #ifdef F77_DUMMY_MAIN
7058 int F77_DUMMY_MAIN() { return 1; }
7063 /* The GNU C library defines this for functions which it implements
7064 to always fail with ENOSYS. Some functions are actually named
7065 something starting with __ and the normal name is an alias. */
7066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7076 rm -f conftest.
$ac_objext conftest
$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try
='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 eval "$as_ac_var=yes"
7090 echo "$as_me: failed program was:" >&5
7091 cat conftest.
$ac_ext >&5
7092 eval "$as_ac_var=no"
7094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098 if test `eval echo '${'$as_ac_var'}'` = yes; then
7099 cat >>confdefs.h
<<_ACEOF
7100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7107 if test "${ac_cv_func_stpcpy}" = "yes"; then
7109 cat >>confdefs.h
<<\_ACEOF
7110 #define HAVE_STPCPY 1
7115 if test $ac_cv_header_locale_h = yes; then
7116 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7117 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7118 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 cat >conftest.
$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7125 #ifdef F77_DUMMY_MAIN
7129 int F77_DUMMY_MAIN() { return 1; }
7139 rm -f conftest.
$ac_objext conftest
$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try
='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 am_cv_val_LC_MESSAGES
=yes
7153 echo "$as_me: failed program was:" >&5
7154 cat conftest.
$ac_ext >&5
7155 am_cv_val_LC_MESSAGES
=no
7157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7159 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7160 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7161 if test $am_cv_val_LC_MESSAGES = yes; then
7163 cat >>confdefs.h
<<\_ACEOF
7164 #define HAVE_LC_MESSAGES 1
7169 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7170 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7171 # Check whether --enable-nls or --disable-nls was given.
7172 if test "${enable_nls+set}" = set; then
7173 enableval
="$enable_nls"
7178 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7179 echo "${ECHO_T}$USE_NLS" >&6
7182 USE_INCLUDED_LIBINTL
=no
7184 if test "$USE_NLS" = "yes"; then
7186 cat >>confdefs.h
<<\_ACEOF
7187 #define ENABLE_NLS 1
7190 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7191 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7193 # Check whether --with-included-gettext or --without-included-gettext was given.
7194 if test "${with_included_gettext+set}" = set; then
7195 withval
="$with_included_gettext"
7196 nls_cv_force_use_gnu_gettext
=$withval
7198 nls_cv_force_use_gnu_gettext
=no
7200 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7201 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7203 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7206 nls_cv_header_libgt
=
7209 if test "${ac_cv_header_libintl_h+set}" = set; then
7210 echo "$as_me:$LINENO: checking for libintl.h" >&5
7211 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7212 if test "${ac_cv_header_libintl_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7216 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7218 # Is the header compilable?
7219 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7220 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7221 cat >conftest.
$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 $ac_includes_default
7225 #include <libintl.h>
7227 rm -f conftest.
$ac_objext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try
='test -s conftest.$ac_objext'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 ac_header_compiler
=yes
7241 echo "$as_me: failed program was:" >&5
7242 cat conftest.
$ac_ext >&5
7243 ac_header_compiler
=no
7245 rm -f conftest.
$ac_objext conftest.
$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7247 echo "${ECHO_T}$ac_header_compiler" >&6
7249 # Is the header present?
7250 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7251 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7252 cat >conftest.
$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 #include <libintl.h>
7257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7260 egrep -v '^ *\+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } >/dev
/null
; then
7265 if test -s conftest.err
; then
7266 ac_cpp_err
=$ac_c_preproc_warn_flag
7273 if test -z "$ac_cpp_err"; then
7274 ac_header_preproc
=yes
7276 echo "$as_me: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7278 ac_header_preproc
=no
7280 rm -f conftest.err conftest.
$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7282 echo "${ECHO_T}$ac_header_preproc" >&6
7284 # So? What about this header?
7285 case $ac_header_compiler:$ac_header_preproc in
7287 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7288 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7290 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7292 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7293 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7295 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7297 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7299 echo "$as_me:$LINENO: checking for libintl.h" >&5
7300 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7301 if test "${ac_cv_header_libintl_h+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_header_libintl_h
=$ac_header_preproc
7306 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7307 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7310 if test $ac_cv_header_libintl_h = yes; then
7311 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7312 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7313 if test "${gt_cv_func_gettext_libc+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 cat >conftest.
$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7318 #include "confdefs.h"
7319 #include <libintl.h>
7320 #ifdef F77_DUMMY_MAIN
7324 int F77_DUMMY_MAIN() { return 1; }
7329 return (int) gettext ("")
7334 rm -f conftest.
$ac_objext conftest
$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } &&
7340 { ac_try
='test -s conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 gt_cv_func_gettext_libc
=yes
7348 echo "$as_me: failed program was:" >&5
7349 cat conftest.
$ac_ext >&5
7350 gt_cv_func_gettext_libc
=no
7352 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7354 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7355 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7357 if test "$gt_cv_func_gettext_libc" != "yes"; then
7358 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7359 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7360 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_check_lib_save_LIBS
=$LIBS
7365 cat >conftest.
$ac_ext <<_ACEOF
7366 #line $LINENO "configure"
7367 #include "confdefs.h"
7369 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7375 char bindtextdomain ();
7376 #ifdef F77_DUMMY_MAIN
7380 int F77_DUMMY_MAIN() { return 1; }
7390 rm -f conftest.
$ac_objext conftest
$ac_exeext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try
='test -s conftest$ac_exeext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_lib_intl_bindtextdomain
=yes
7404 echo "$as_me: failed program was:" >&5
7405 cat conftest.
$ac_ext >&5
7406 ac_cv_lib_intl_bindtextdomain
=no
7408 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7409 LIBS
=$ac_check_lib_save_LIBS
7411 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7412 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7413 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7414 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7415 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7416 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.
$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7423 #ifdef F77_DUMMY_MAIN
7427 int F77_DUMMY_MAIN() { return 1; }
7432 return (int) gettext ("")
7437 rm -f conftest.
$ac_objext conftest
$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try
='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 gt_cv_func_gettext_libintl
=yes
7451 echo "$as_me: failed program was:" >&5
7452 cat conftest.
$ac_ext >&5
7453 gt_cv_func_gettext_libintl
=no
7455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7457 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7458 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7463 if test "$gt_cv_func_gettext_libc" = "yes" \
7464 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7466 cat >>confdefs.h
<<\_ACEOF
7467 #define HAVE_GETTEXT 1
7470 # Extract the first word of "msgfmt", so it can be a program name with args.
7471 set dummy msgfmt
; ac_word
=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_path_MSGFMT+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7482 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7483 for ac_dir
in $PATH; do
7484 test -z "$ac_dir" && ac_dir
=.
7485 if test -f $ac_dir/$ac_word; then
7486 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7487 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7493 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7497 MSGFMT
="$ac_cv_path_MSGFMT"
7498 if test -n "$MSGFMT"; then
7499 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7500 echo "${ECHO_T}$MSGFMT" >&6
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7505 if test "$MSGFMT" != "no"; then
7507 for ac_func
in dcgettext
7509 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7510 echo "$as_me:$LINENO: checking for $ac_func" >&5
7511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_var+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.
$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func (); below. */
7521 /* Override any gcc2 internal prototype to avoid an error. */
7525 /* We use char because int might match the return type of a gcc2
7526 builtin and then its argument prototype would still apply. */
7530 #ifdef F77_DUMMY_MAIN
7534 int F77_DUMMY_MAIN() { return 1; }
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try
='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 eval "$as_ac_var=yes"
7566 echo "$as_me: failed program was:" >&5
7567 cat conftest.
$ac_ext >&5
7568 eval "$as_ac_var=no"
7570 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7574 if test `eval echo '${'$as_ac_var'}'` = yes; then
7575 cat >>confdefs.h
<<_ACEOF
7576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7583 set dummy gmsgfmt
; ac_word
=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir
=.
7599 for ac_exec_ext
in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7612 GMSGFMT
=$ac_cv_path_GMSGFMT
7614 if test -n "$GMSGFMT"; then
7615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7616 echo "${ECHO_T}$GMSGFMT" >&6
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7622 # Extract the first word of "xgettext", so it can be a program name with args.
7623 set dummy xgettext
; ac_word
=$2
7624 echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7635 for ac_dir
in $PATH; do
7636 test -z "$ac_dir" && ac_dir
=.
7637 if test -f $ac_dir/$ac_word; then
7638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7639 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7649 XGETTEXT
="$ac_cv_path_XGETTEXT"
7650 if test -n "$XGETTEXT"; then
7651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7652 echo "${ECHO_T}$XGETTEXT" >&6
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7658 cat >conftest.
$ac_ext <<_ACEOF
7659 #line $LINENO "configure"
7660 #include "confdefs.h"
7662 #ifdef F77_DUMMY_MAIN
7666 int F77_DUMMY_MAIN() { return 1; }
7671 extern int _nl_msg_cat_cntr;
7672 return _nl_msg_cat_cntr
7677 rm -f conftest.
$ac_objext conftest
$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try
='test -s conftest$ac_exeext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.
$ac_ext >&5
7697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7707 if test "$CATOBJEXT" = "NONE"; then
7708 nls_cv_use_gnu_gettext
=yes
7712 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7713 INTLOBJS
="\$(GETTOBJS)"
7714 # Extract the first word of "msgfmt", so it can be a program name with args.
7715 set dummy msgfmt
; ac_word
=$2
7716 echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718 if test "${ac_cv_path_MSGFMT+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7726 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7727 for ac_dir
in $PATH; do
7728 test -z "$ac_dir" && ac_dir
=.
7729 if test -f $ac_dir/$ac_word; then
7730 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7731 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7741 MSGFMT
="$ac_cv_path_MSGFMT"
7742 if test -n "$MSGFMT"; then
7743 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7744 echo "${ECHO_T}$MSGFMT" >&6
7746 echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6
7750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7751 set dummy gmsgfmt
; ac_word
=$2
7752 echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7780 GMSGFMT
=$ac_cv_path_GMSGFMT
7782 if test -n "$GMSGFMT"; then
7783 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7784 echo "${ECHO_T}$GMSGFMT" >&6
7786 echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7790 # Extract the first word of "xgettext", so it can be a program name with args.
7791 set dummy xgettext
; ac_word
=$2
7792 echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7803 for ac_dir
in $PATH; do
7804 test -z "$ac_dir" && ac_dir
=.
7805 if test -f $ac_dir/$ac_word; then
7806 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7807 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7813 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7817 XGETTEXT
="$ac_cv_path_XGETTEXT"
7818 if test -n "$XGETTEXT"; then
7819 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7820 echo "${ECHO_T}$XGETTEXT" >&6
7822 echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7827 USE_INCLUDED_LIBINTL
=yes
7831 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
7833 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7834 nls_cv_header_intl
=libintl.h
7835 nls_cv_header_libgt
=libgettext.h
7838 if test "$XGETTEXT" != ":"; then
7839 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
7842 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7843 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7848 # We need to process the po/ directory.
7852 nls_cv_header_intl
=libintl.h
7853 nls_cv_header_libgt
=libgettext.h
7856 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7857 # because some of the sources are only built for this goal.
7858 if test "$PACKAGE" = gettext; then
7860 USE_INCLUDED_LIBINTL
=yes
7863 for lang
in $ALL_LINGUAS; do
7864 GMOFILES
="$GMOFILES $lang.gmo"
7865 POFILES
="$POFILES $lang.po"
7881 if test "x$CATOBJEXT" != "x"; then
7882 if test "x$ALL_LINGUAS" = "x"; then
7885 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7886 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7888 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
7889 case "$ALL_LINGUAS" in
7890 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
7893 LINGUAS
=$NEW_LINGUAS
7894 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7895 echo "${ECHO_T}$LINGUAS" >&6
7898 if test -n "$LINGUAS"; then
7899 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
7903 if test $ac_cv_header_locale_h = yes; then
7904 INCLUDE_LOCALE_H
="#include <locale.h>"
7907 /* The system does not provide the header <locale.h>. Take care yourself. */"
7911 if test -f $srcdir/po2tbl.
sed.
in; then
7912 if test "$CATOBJEXT" = ".cat"; then
7913 if test "${ac_cv_header_linux_version_h+set}" = set; then
7914 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7915 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7916 if test "${ac_cv_header_linux_version_h+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7922 # Is the header compilable?
7923 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7924 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7925 cat >conftest.
$ac_ext <<_ACEOF
7926 #line $LINENO "configure"
7927 #include "confdefs.h"
7928 $ac_includes_default
7929 #include <linux/version.h>
7931 rm -f conftest.
$ac_objext
7932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try
='test -s conftest.$ac_objext'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 ac_header_compiler
=yes
7945 echo "$as_me: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7947 ac_header_compiler
=no
7949 rm -f conftest.
$ac_objext conftest.
$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951 echo "${ECHO_T}$ac_header_compiler" >&6
7953 # Is the header present?
7954 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7955 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7956 cat >conftest.
$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 #include <linux/version.h>
7961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7964 egrep -v '^ *\+' conftest.er1
>conftest.err
7966 cat conftest.err
>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } >/dev
/null
; then
7969 if test -s conftest.err
; then
7970 ac_cpp_err
=$ac_c_preproc_warn_flag
7977 if test -z "$ac_cpp_err"; then
7978 ac_header_preproc
=yes
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.
$ac_ext >&5
7982 ac_header_preproc
=no
7984 rm -f conftest.err conftest.
$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986 echo "${ECHO_T}$ac_header_preproc" >&6
7988 # So? What about this header?
7989 case $ac_header_compiler:$ac_header_preproc in
7991 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7992 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7994 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
7996 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7997 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7999 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8001 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8003 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8004 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8005 if test "${ac_cv_header_linux_version_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_header_linux_version_h
=$ac_header_preproc
8010 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8014 if test $ac_cv_header_linux_version_h = yes; then
8022 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
8024 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8025 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
8028 if test "$PACKAGE" = "gettext"; then
8038 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
8044 if test -f $srcdir/po
/POTFILES.
in; then
8045 test -d po || mkdir po
8046 if test "x$srcdir" != "x."; then
8047 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8048 posrcprefix
="$srcdir/"
8050 posrcprefix
="../$srcdir/"
8056 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8057 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8061 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8062 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8063 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8064 if test "${enable_maintainer_mode+set}" = set; then
8065 enableval
="$enable_maintainer_mode"
8066 USE_MAINTAINER_MODE
=$enableval
8068 USE_MAINTAINER_MODE
=no
8070 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8071 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8074 if test $USE_MAINTAINER_MODE = yes; then
8075 MAINTAINER_MODE_TRUE
=
8076 MAINTAINER_MODE_FALSE
='#'
8078 MAINTAINER_MODE_TRUE
='#'
8079 MAINTAINER_MODE_FALSE
=
8081 MAINT
=$MAINTAINER_MODE_TRUE
8095 for ac_header
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
8097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8107 # Is the header compilable?
8108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8110 cat >conftest.
$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8113 $ac_includes_default
8114 #include <$ac_header>
8116 rm -f conftest.
$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try
='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler
=yes
8130 echo "$as_me: failed program was:" >&5
8131 cat conftest.
$ac_ext >&5
8132 ac_header_compiler
=no
8134 rm -f conftest.
$ac_objext conftest.
$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136 echo "${ECHO_T}$ac_header_compiler" >&6
8138 # Is the header present?
8139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8141 cat >conftest.
$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8143 #include "confdefs.h"
8144 #include <$ac_header>
8146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8149 egrep -v '^ *\+' conftest.er1
>conftest.err
8151 cat conftest.err
>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } >/dev
/null
; then
8154 if test -s conftest.err
; then
8155 ac_cpp_err
=$ac_c_preproc_warn_flag
8162 if test -z "$ac_cpp_err"; then
8163 ac_header_preproc
=yes
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.
$ac_ext >&5
8167 ac_header_preproc
=no
8169 rm -f conftest.err conftest.
$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8171 echo "${ECHO_T}$ac_header_preproc" >&6
8173 # So? What about this header?
8174 case $ac_header_compiler:$ac_header_preproc in
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8188 echo "$as_me:$LINENO: checking for $ac_header" >&5
8189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 eval "$as_ac_Header=$ac_header_preproc"
8195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h
<<_ACEOF
8201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
8210 # people who are not cross-compiling but are compiling cross-assemblers.
8211 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
8212 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
8213 if test "${host}" = "${target}"; then
8218 cat >>confdefs.h
<<\_ACEOF
8219 #define CROSS_COMPILE 1
8223 echo "$as_me:$LINENO: result: $cross_gas" >&5
8224 echo "${ECHO_T}$cross_gas" >&6
8226 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8227 # for constant arguments. Useless!
8228 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8229 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8230 if test "${ac_cv_working_alloca_h+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 #include "confdefs.h"
8237 #ifdef F77_DUMMY_MAIN
8241 int F77_DUMMY_MAIN() { return 1; }
8246 char *p = (char *) alloca (2 * sizeof (int));
8251 rm -f conftest.
$ac_objext conftest
$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try
='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_working_alloca_h
=yes
8265 echo "$as_me: failed program was:" >&5
8266 cat conftest.
$ac_ext >&5
8267 ac_cv_working_alloca_h
=no
8269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8271 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8272 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8273 if test $ac_cv_working_alloca_h = yes; then
8275 cat >>confdefs.h
<<\_ACEOF
8276 #define HAVE_ALLOCA_H 1
8281 echo "$as_me:$LINENO: checking for alloca" >&5
8282 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8283 if test "${ac_cv_func_alloca_works+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.
$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8290 # define alloca __builtin_alloca
8293 # include <malloc.h>
8294 # define alloca _alloca
8297 # include <alloca.h>
8302 # ifndef alloca /* predefined by HP cc +Olibcalls */
8310 #ifdef F77_DUMMY_MAIN
8314 int F77_DUMMY_MAIN() { return 1; }
8319 char *p = (char *) alloca (1);
8324 rm -f conftest.
$ac_objext conftest
$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try
='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_func_alloca_works
=yes
8338 echo "$as_me: failed program was:" >&5
8339 cat conftest.
$ac_ext >&5
8340 ac_cv_func_alloca_works
=no
8342 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8345 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8347 if test $ac_cv_func_alloca_works = yes; then
8349 cat >>confdefs.h
<<\_ACEOF
8350 #define HAVE_ALLOCA 1
8354 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8355 # that cause trouble. Some versions do not even contain alloca or
8356 # contain a buggy version. If you still want to use their alloca,
8357 # use ar to extract alloca.o from them instead of compiling alloca.c.
8359 ALLOCA
=alloca.
$ac_objext
8361 cat >>confdefs.h
<<\_ACEOF
8366 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8367 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8368 if test "${ac_cv_os_cray+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 cat >conftest.
$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 #include "confdefs.h"
8374 #if defined(CRAY) && ! defined(CRAY2)
8381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8382 egrep "webecray" >/dev
/null
2>&1; then
8390 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8391 echo "${ECHO_T}$ac_cv_os_cray" >&6
8392 if test $ac_cv_os_cray = yes; then
8393 for ac_func
in _getb67 GETB67 getb67
; do
8394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8395 echo "$as_me:$LINENO: checking for $ac_func" >&5
8396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8397 if eval "test \"\${$as_ac_var+set}\" = set"; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.
$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 #include "confdefs.h"
8403 /* System header to define __stub macros and hopefully few prototypes,
8404 which can conflict with char $ac_func (); below. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8410 /* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8415 #ifdef F77_DUMMY_MAIN
8419 int F77_DUMMY_MAIN() { return 1; }
8424 /* The GNU C library defines this for functions which it implements
8425 to always fail with ENOSYS. Some functions are actually named
8426 something starting with __ and the normal name is an alias. */
8427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8437 rm -f conftest.
$ac_objext conftest
$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try
='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 eval "$as_ac_var=yes"
8451 echo "$as_me: failed program was:" >&5
8452 cat conftest.
$ac_ext >&5
8453 eval "$as_ac_var=no"
8455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8459 if test `eval echo '${'$as_ac_var'}'` = yes; then
8461 cat >>confdefs.h
<<_ACEOF
8462 #define CRAY_STACKSEG_END $ac_func
8471 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8472 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8473 if test "${ac_cv_c_stack_direction+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 if test "$cross_compiling" = yes; then
8477 ac_cv_c_stack_direction
=0
8479 cat >conftest.
$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8483 find_stack_direction ()
8485 static char *addr = 0;
8490 return find_stack_direction ();
8493 return (&dummy > addr) ? 1 : -1;
8499 exit (find_stack_direction () < 0);
8502 rm -f conftest
$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_c_stack_direction
=1
8515 echo "$as_me: program exited with status $ac_status" >&5
8516 echo "$as_me: failed program was:" >&5
8517 cat conftest.
$ac_ext >&5
8519 ac_cv_c_stack_direction
=-1
8521 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8525 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8527 cat >>confdefs.h
<<_ACEOF
8528 #define STACK_DIRECTION $ac_cv_c_stack_direction
8534 echo "$as_me:$LINENO: checking for inline" >&5
8535 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8536 if test "${ac_cv_c_inline+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 for ac_kw
in inline __inline__ __inline
; do
8541 cat >conftest.
$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8545 static $ac_kw int static_foo () {return 0; }
8546 $ac_kw int foo () {return 0; }
8550 rm -f conftest.
$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try
='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_c_inline
=$ac_kw; break
8564 echo "$as_me: failed program was:" >&5
8565 cat conftest.
$ac_ext >&5
8567 rm -f conftest.
$ac_objext conftest.
$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8573 case $ac_cv_c_inline in
8576 cat >>confdefs.h
<<\_ACEOF
8580 *) cat >>confdefs.h
<<_ACEOF
8581 #define inline $ac_cv_c_inline
8587 # VMS doesn't have unlink.
8590 for ac_func
in unlink remove
8592 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8593 echo "$as_me:$LINENO: checking for $ac_func" >&5
8594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8595 if eval "test \"\${$as_ac_var+set}\" = set"; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 cat >conftest.
$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 #include "confdefs.h"
8601 /* System header to define __stub macros and hopefully few prototypes,
8602 which can conflict with char $ac_func (); below. */
8604 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8613 #ifdef F77_DUMMY_MAIN
8617 int F77_DUMMY_MAIN() { return 1; }
8622 /* The GNU C library defines this for functions which it implements
8623 to always fail with ENOSYS. Some functions are actually named
8624 something starting with __ and the normal name is an alias. */
8625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8635 rm -f conftest.
$ac_objext conftest
$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try
='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 eval "$as_ac_var=yes"
8649 echo "$as_me: failed program was:" >&5
8650 cat conftest.
$ac_ext >&5
8651 eval "$as_ac_var=no"
8653 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8657 if test `eval echo '${'$as_ac_var'}'` = yes; then
8658 cat >>confdefs.h
<<_ACEOF
8659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8666 # Some systems don't have sbrk().
8670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671 echo "$as_me:$LINENO: checking for $ac_func" >&5
8672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_var+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.
$ac_ext <<_ACEOF
8677 #line $LINENO "configure"
8678 #include "confdefs.h"
8679 /* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char $ac_func (); below. */
8682 /* Override any gcc2 internal prototype to avoid an error. */
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8691 #ifdef F77_DUMMY_MAIN
8695 int F77_DUMMY_MAIN() { return 1; }
8700 /* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8713 rm -f conftest.
$ac_objext conftest
$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try
='test -s conftest$ac_exeext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 eval "$as_ac_var=yes"
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.
$ac_ext >&5
8729 eval "$as_ac_var=no"
8731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735 if test `eval echo '${'$as_ac_var'}'` = yes; then
8736 cat >>confdefs.h
<<_ACEOF
8737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744 # do we need the math library?
8745 case "${need_libm}" in
8749 *-*-beos* |
*-*-cygwin* |
*-*-pw32*)
8750 # These system don't have libm
8753 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
8754 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
8755 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 ac_check_lib_save_LIBS
=$LIBS
8760 cat >conftest.
$ac_ext <<_ACEOF
8761 #line $LINENO "configure"
8762 #include "confdefs.h"
8764 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8770 char _mwvalidcheckl ();
8771 #ifdef F77_DUMMY_MAIN
8775 int F77_DUMMY_MAIN() { return 1; }
8785 rm -f conftest.
$ac_objext conftest
$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try
='test -s conftest$ac_exeext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_lib_mw__mwvalidcheckl
=yes
8799 echo "$as_me: failed program was:" >&5
8800 cat conftest.
$ac_ext >&5
8801 ac_cv_lib_mw__mwvalidcheckl
=no
8803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8804 LIBS
=$ac_check_lib_save_LIBS
8806 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8807 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8808 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
8812 echo "$as_me:$LINENO: checking for main in -lm" >&5
8813 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8814 if test "${ac_cv_lib_m_main+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_check_lib_save_LIBS
=$LIBS
8819 cat >conftest.
$ac_ext <<_ACEOF
8820 #line $LINENO "configure"
8821 #include "confdefs.h"
8824 #ifdef F77_DUMMY_MAIN
8828 int F77_DUMMY_MAIN() { return 1; }
8838 rm -f conftest.
$ac_objext conftest
$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try
='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_lib_m_main
=yes
8852 echo "$as_me: failed program was:" >&5
8853 cat conftest.
$ac_ext >&5
8856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8857 LIBS
=$ac_check_lib_save_LIBS
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8860 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8861 if test $ac_cv_lib_m_main = yes; then
8867 echo "$as_me:$LINENO: checking for main in -lm" >&5
8868 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8869 if test "${ac_cv_lib_m_main+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 ac_check_lib_save_LIBS
=$LIBS
8874 cat >conftest.
$ac_ext <<_ACEOF
8875 #line $LINENO "configure"
8876 #include "confdefs.h"
8879 #ifdef F77_DUMMY_MAIN
8883 int F77_DUMMY_MAIN() { return 1; }
8893 rm -f conftest.
$ac_objext conftest
$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try
='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_lib_m_main
=yes
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.
$ac_ext >&5
8911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8912 LIBS
=$ac_check_lib_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8915 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8916 if test $ac_cv_lib_m_main = yes; then
8927 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
8928 # enough, but on some of those systems, the assert macro relies on requoting
8930 echo "$as_me:$LINENO: checking for working assert macro" >&5
8931 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8932 if test "${gas_cv_assert_ok+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 cat >conftest.
$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8937 #include "confdefs.h"
8940 #ifdef F77_DUMMY_MAIN
8944 int F77_DUMMY_MAIN() { return 1; }
8950 /* check for requoting problems */
8951 static int a, b, c, d;
8953 assert (!strcmp(s, "foo bar baz quux"));
8954 /* check for newline handling */
8962 rm -f conftest.
$ac_objext conftest
$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try
='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 gas_cv_assert_ok
=yes
8976 echo "$as_me: failed program was:" >&5
8977 cat conftest.
$ac_ext >&5
8980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8982 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8983 echo "${ECHO_T}$gas_cv_assert_ok" >&6
8984 test $gas_cv_assert_ok = yes ||
8985 cat >>confdefs.h
<<\_ACEOF
8986 #define BROKEN_ASSERT 1
8991 # On some systems, the system header files may not declare malloc, realloc,
8992 # and free. There are places where gas needs these functions to have been
8993 # declared -- such as when taking their addresses.
8995 #ifdef HAVE_MEMORY_H
8998 #ifdef HAVE_STRING_H
9001 #ifdef HAVE_STRINGS_H
9002 #include <strings.h>
9005 #ifdef HAVE_STDLIB_H
9008 #ifdef HAVE_UNISTD_H
9013 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9014 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9015 if test "${gas_cv_decl_needed_strstr+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.
$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 #include "confdefs.h"
9022 #ifdef F77_DUMMY_MAIN
9026 int F77_DUMMY_MAIN() { return 1; }
9032 typedef char *(*f)();
9040 rm -f conftest.
$ac_objext conftest
$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try
='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 gas_cv_decl_needed_strstr
=no
9054 echo "$as_me: failed program was:" >&5
9055 cat conftest.
$ac_ext >&5
9056 gas_cv_decl_needed_strstr
=yes
9058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9060 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9061 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
9062 if test $gas_cv_decl_needed_strstr = yes; then
9064 cat >>confdefs.h
<<\_ACEOF
9065 #define NEED_DECLARATION_STRSTR 1
9071 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9072 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9073 if test "${gas_cv_decl_needed_malloc+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 cat >conftest.
$ac_ext <<_ACEOF
9077 #line $LINENO "configure"
9078 #include "confdefs.h"
9080 #ifdef F77_DUMMY_MAIN
9084 int F77_DUMMY_MAIN() { return 1; }
9090 typedef char *(*f)();
9098 rm -f conftest.
$ac_objext conftest
$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try
='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 gas_cv_decl_needed_malloc
=no
9112 echo "$as_me: failed program was:" >&5
9113 cat conftest.
$ac_ext >&5
9114 gas_cv_decl_needed_malloc
=yes
9116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9118 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9119 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9120 if test $gas_cv_decl_needed_malloc = yes; then
9122 cat >>confdefs.h
<<\_ACEOF
9123 #define NEED_DECLARATION_MALLOC 1
9129 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9130 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9131 if test "${gas_cv_decl_needed_free+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.
$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9136 #include "confdefs.h"
9138 #ifdef F77_DUMMY_MAIN
9142 int F77_DUMMY_MAIN() { return 1; }
9148 typedef void (*f)();
9156 rm -f conftest.
$ac_objext conftest
$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try
='test -s conftest$ac_exeext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 gas_cv_decl_needed_free
=no
9170 echo "$as_me: failed program was:" >&5
9171 cat conftest.
$ac_ext >&5
9172 gas_cv_decl_needed_free
=yes
9174 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9176 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9177 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
9178 if test $gas_cv_decl_needed_free = yes; then
9180 cat >>confdefs.h
<<\_ACEOF
9181 #define NEED_DECLARATION_FREE 1
9187 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
9188 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
9189 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.
$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 #include "confdefs.h"
9196 #ifdef F77_DUMMY_MAIN
9200 int F77_DUMMY_MAIN() { return 1; }
9206 typedef char *(*f)();
9214 rm -f conftest.
$ac_objext conftest
$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try
='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 gas_cv_decl_needed_sbrk
=no
9228 echo "$as_me: failed program was:" >&5
9229 cat conftest.
$ac_ext >&5
9230 gas_cv_decl_needed_sbrk
=yes
9232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9234 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
9235 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
9236 if test $gas_cv_decl_needed_sbrk = yes; then
9238 cat >>confdefs.h
<<\_ACEOF
9239 #define NEED_DECLARATION_SBRK 1
9245 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
9246 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
9247 if test "${gas_cv_decl_needed_environ+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 cat >conftest.
$ac_ext <<_ACEOF
9251 #line $LINENO "configure"
9252 #include "confdefs.h"
9254 #ifdef F77_DUMMY_MAIN
9258 int F77_DUMMY_MAIN() { return 1; }
9272 rm -f conftest.
$ac_objext conftest
$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try
='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 gas_cv_decl_needed_environ
=no
9286 echo "$as_me: failed program was:" >&5
9287 cat conftest.
$ac_ext >&5
9288 gas_cv_decl_needed_environ
=yes
9290 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9292 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
9293 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
9294 if test $gas_cv_decl_needed_environ = yes; then
9296 cat >>confdefs.h
<<\_ACEOF
9297 #define NEED_DECLARATION_ENVIRON 1
9303 # Does errno.h declare errno, or do we have to add a separate declaration
9306 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
9307 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
9308 if test "${gas_cv_decl_needed_errno+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 cat >conftest.
$ac_ext <<_ACEOF
9312 #line $LINENO "configure"
9313 #include "confdefs.h"
9319 #ifdef F77_DUMMY_MAIN
9323 int F77_DUMMY_MAIN() { return 1; }
9337 rm -f conftest.
$ac_objext conftest
$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try
='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 gas_cv_decl_needed_errno
=no
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.
$ac_ext >&5
9353 gas_cv_decl_needed_errno
=yes
9355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9357 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
9358 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
9359 if test $gas_cv_decl_needed_errno = yes; then
9361 cat >>confdefs.h
<<\_ACEOF
9362 #define NEED_DECLARATION_ERRNO 1
9370 ac_config_files
="$ac_config_files Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"
9371 ac_config_commands
="$ac_config_commands default"
9372 cat >confcache
<<\_ACEOF
9373 # This file is a shell script that caches the results of configure
9374 # tests run on this system so they can be shared between configure
9375 # scripts and configure runs, see configure's option --config-cache.
9376 # It is not useful on other systems. If it contains results you don't
9377 # want to keep, you may remove or edit it.
9379 # config.status only pays attention to the cache file if you give it
9380 # the --recheck option to rerun configure.
9382 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9388 # The following way of writing the cache mishandles newlines in values,
9389 # but we know of no workaround that is simple, portable, and efficient.
9390 # So, don't put newlines in cache variables' values.
9391 # Ultrix sh set writes to stderr and can't be redirected directly,
9392 # and sets the high bit in the cache file unless we assign to the vars.
9395 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9397 # `set' does not quote correctly, so add quotes (double-quote
9398 # substitution turns \\\\ into \\, and sed turns \\ into \).
9401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9404 # `set' quotes correctly as required by POSIX, so do not add quotes.
9406 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9415 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9417 if cmp -s $cache_file confcache
; then :; else
9418 if test -w $cache_file; then
9419 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9420 cat confcache
>$cache_file
9422 echo "not updating unwritable cache $cache_file"
9427 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9428 # Let make expand exec_prefix.
9429 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9433 # trailing colons and then remove the whole line if VPATH becomes empty
9434 # (actually we leave an empty line to preserve line numbers).
9435 if test "x$srcdir" = x.
; then
9436 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9437 s/:*\$(srcdir):*/:/;
9438 s/:*\${srcdir}:*/:/;
9440 s/^\([^=]*=[ ]*\):*/\1/;
9446 DEFS
=-DHAVE_CONFIG_H
9449 : ${CONFIG_STATUS=./config.status}
9450 ac_clean_files_save
=$ac_clean_files
9451 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9452 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9453 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9454 cat >$CONFIG_STATUS <<_ACEOF
9456 # Generated by $as_me.
9457 # Run this file to recreate the current configuration.
9458 # Compiler output produced by configure, useful for debugging
9459 # configure, is in config.log if it exists.
9462 SHELL=\${CONFIG_SHELL-$SHELL}
9465 cat >>$CONFIG_STATUS <<\_ACEOF
9467 ## --------------------- ##
9468 ## M4sh Initialization. ##
9469 ## --------------------- ##
9471 # Be Bourne compatible
9472 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9475 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9480 # Support unset when possible.
9481 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9487 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9488 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
9489 { LANG
=C
; export LANG
; }
9490 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9491 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
9492 { LC_ALL
=C
; export LC_ALL
; }
9493 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9494 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
9495 { LC_TIME
=C
; export LC_TIME
; }
9496 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9497 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
9498 { LC_CTYPE
=C
; export LC_CTYPE
; }
9499 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9500 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
9501 { LANGUAGE
=C
; export LANGUAGE
; }
9502 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9503 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
9504 { LC_COLLATE
=C
; export LC_COLLATE
; }
9505 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9506 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
9507 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9508 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9509 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
9510 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9513 # Name of the executable.
9514 as_me
=`(basename "$0") 2>/dev/null ||
9515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9516 X"$0" : 'X\(//\)$' \| \
9517 X"$0" : 'X\(/\)$' \| \
9518 . : '\(.\)' 2>/dev/null ||
9520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9521 /^X\/\(\/\/\)$/{ s//\1/; q; }
9522 /^X\/\(\/\).*/{ s//\1/; q; }
9525 # PATH needs CR, and LINENO needs CR and PATH.
9526 # Avoid depending upon Character Ranges.
9527 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9528 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9529 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9530 as_cr_digits
='0123456789'
9531 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9533 # The user is always right.
9534 if test "${PATH_SEPARATOR+set}" != set; then
9535 echo "#! /bin/sh" >conftest.sh
9536 echo "exit 0" >>conftest.sh
9537 chmod +x conftest.sh
9538 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9549 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9550 test "x$as_lineno_1" != "x$as_lineno_2" &&
9551 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9552 # Find who we are. Look in the path if we contain no path at all
9555 *[\\/]* ) as_myself
=$0 ;;
9556 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir
=.
9561 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9566 # We did not find ourselves, most probably we were run as `sh COMMAND'
9567 # in which case we are not to be found in the path.
9568 if test "x$as_myself" = x
; then
9571 if test ! -f "$as_myself"; then
9572 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9573 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9574 { (exit 1); exit 1; }; }
9576 case $CONFIG_SHELL in
9578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9579 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9582 test -z "$as_dir" && as_dir
=.
9583 for as_base
in sh bash ksh sh5
; do
9586 if ("$as_dir/$as_base" -c '
9589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9590 test "x$as_lineno_1" != "x$as_lineno_2" &&
9591 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9592 CONFIG_SHELL
=$as_dir/$as_base
9594 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9603 # uniformly replaced by the line number. The first 'sed' inserts a
9604 # line-number line before each line; the second 'sed' does the real
9605 # work. The second script uses 'N' to pair each line-number line
9606 # with the numbered line, and appends trailing '-' during
9607 # substitution so that $LINENO is not a special case at line end.
9608 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9609 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9610 sed '=' <$as_myself |
9615 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9618 s,^['$as_cr_digits']*\n,,
9620 chmod +x
$as_me.lineno ||
9621 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9622 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9623 { (exit 1); exit 1; }; }
9625 # Don't try to exec as it changes $[0], causing all sort of problems
9626 # (the dirname of $[0] is not the place where we might find the
9627 # original and so on. Autoconf is especially sensible to this).
9629 # Exit status is that of the last command.
9634 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9635 *c
*,-n*) ECHO_N
= ECHO_C
='
9637 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9638 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9641 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9647 rm -f conf$$ conf$$.exe conf$$.
file
9649 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9650 # We could just check for DJGPP; but this test a) works b) is more generic
9651 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9652 if test -f conf$$.exe
; then
9653 # Don't use ln at all; we don't have any links
9658 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9663 rm -f conf$$ conf$$.exe conf$$.
file
9665 as_executable_p
="test -f"
9667 # Sed expression to map a string onto a valid CPP name.
9668 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9670 # Sed expression to map a string onto a valid variable name.
9671 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9675 # We need space, tab and new line, in precisely that order.
9681 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9686 # report actual input values of CONFIG_FILES etc. instead of their
9687 # values after options handling. Logging --version etc. is OK.
9691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9692 ## Running $as_me. ##
9697 This file was extended by $as_me, which was
9698 generated by GNU Autoconf 2.53. Invocation command line was
9700 CONFIG_FILES = $CONFIG_FILES
9701 CONFIG_HEADERS = $CONFIG_HEADERS
9702 CONFIG_LINKS = $CONFIG_LINKS
9703 CONFIG_COMMANDS = $CONFIG_COMMANDS
9707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9711 # Files that config.status was made for.
9712 if test -n "$ac_config_files"; then
9713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9716 if test -n "$ac_config_headers"; then
9717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9720 if test -n "$ac_config_links"; then
9721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9724 if test -n "$ac_config_commands"; then
9725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9728 cat >>$CONFIG_STATUS <<\_ACEOF
9731 \`$as_me' instantiates files from templates according to the
9732 current configuration.
9734 Usage: $0 [OPTIONS] [FILE]...
9736 -h, --help print this help, then exit
9737 -V, --version print version number, then exit
9738 -d, --debug don't remove temporary files
9739 --recheck update $as_me by reconfiguring in the same conditions
9740 --file=FILE[:TEMPLATE]
9741 instantiate the configuration file FILE
9742 --header=FILE[:TEMPLATE]
9743 instantiate the configuration header FILE
9745 Configuration files:
9748 Configuration headers:
9751 Configuration commands:
9754 Report bugs to <bug-autoconf@gnu.org>."
9757 cat >>$CONFIG_STATUS <<_ACEOF
9760 configured by $0, generated by GNU Autoconf 2.53,
9761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9763 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9764 Free Software Foundation, Inc.
9765 This config.status script is free software; the Free Software Foundation
9766 gives unlimited permission to copy, distribute and modify it."
9771 cat >>$CONFIG_STATUS <<\_ACEOF
9772 # If no file are specified by the user, then we need to provide default
9773 # value. By we need to know if files were specified by the user.
9779 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9780 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9782 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9786 *) # This is not an option, so the user has probably given explicit
9788 ac_need_defaults
=false
;;
9792 # Handling of the options.
9794 cat >>$CONFIG_STATUS <<_ACEOF
9795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9796 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9797 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9799 cat >>$CONFIG_STATUS <<\_ACEOF
9800 --version |
--vers* |
-V )
9801 echo "$ac_cs_version"; exit 0 ;;
9803 # Conflict between --help and --header
9804 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9805 Try \`$0 --help' for more information." >&5
9806 echo "$as_me: error: ambiguous option: $1
9807 Try \`$0 --help' for more information." >&2;}
9808 { (exit 1); exit 1; }; };;
9809 --help |
--hel |
-h )
9810 echo "$ac_cs_usage"; exit 0 ;;
9811 --debug |
--d* |
-d )
9813 --file |
--fil |
--fi |
--f )
9815 CONFIG_FILES
="$CONFIG_FILES $1"
9816 ac_need_defaults
=false
;;
9817 --header |
--heade |
--head |
--hea )
9819 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9820 ac_need_defaults
=false
;;
9823 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9824 Try \`$0 --help' for more information." >&5
9825 echo "$as_me: error: unrecognized option: $1
9826 Try \`$0 --help' for more information." >&2;}
9827 { (exit 1); exit 1; }; } ;;
9829 *) ac_config_targets
="$ac_config_targets $1" ;;
9837 cat >>$CONFIG_STATUS <<_ACEOF
9839 # INIT-COMMANDS section.
9843 target_cpu_type=${target_cpu_type}
9844 cgen_cpu_prefix=${cgen_cpu_prefix}
9845 obj_format=${obj_format}
9852 cat >>$CONFIG_STATUS <<\_ACEOF
9853 for ac_config_target
in $ac_config_targets
9855 case "$ac_config_target" in
9856 # Handling of arguments.
9857 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9858 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9859 "${GDBINIT}" ) CONFIG_FILES
="$CONFIG_FILES ${GDBINIT}:gdbinit.in" ;;
9860 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9861 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9862 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9863 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9866 { (exit 1); exit 1; }; };;
9870 # If the user did not use the arguments to specify the items to instantiate,
9871 # then the envvar interface is used. Set only those that are not.
9872 # We use the long form for the default assignment because of an extremely
9873 # bizarre bug on SunOS 4.1.3.
9874 if $ac_need_defaults; then
9875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9880 # Create a temporary directory, and hook for its removal unless debugging.
9883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9884 trap '{ (exit 1); exit 1; }' 1 2 13 15
9887 # Create a (secure) tmp directory for tmp files.
9890 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9891 test -n "$tmp" && test -d "$tmp"
9894 tmp
=$TMPDIR/cs$$
-$RANDOM
9895 (umask 077 && mkdir
$tmp)
9898 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9899 { (exit 1); exit 1; }
9904 cat >>$CONFIG_STATUS <<_ACEOF
9907 # CONFIG_FILES section.
9910 # No need to generate the scripts if there are no CONFIG_FILES.
9911 # This happens for instance when ./config.status config.h
9912 if test -n "\$CONFIG_FILES"; then
9913 # Protect against being on the right side of a sed subst in config.status.
9914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9916 s,@SHELL@,$SHELL,;t t
9917 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9918 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9919 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9920 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9921 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9922 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9923 s,@exec_prefix@,$exec_prefix,;t t
9924 s,@prefix@,$prefix,;t t
9925 s,@program_transform_name@,$program_transform_name,;t t
9926 s,@bindir@,$bindir,;t t
9927 s,@sbindir@,$sbindir,;t t
9928 s,@libexecdir@,$libexecdir,;t t
9929 s,@datadir@,$datadir,;t t
9930 s,@sysconfdir@,$sysconfdir,;t t
9931 s,@sharedstatedir@,$sharedstatedir,;t t
9932 s,@localstatedir@,$localstatedir,;t t
9933 s,@libdir@,$libdir,;t t
9934 s,@includedir@,$includedir,;t t
9935 s,@oldincludedir@,$oldincludedir,;t t
9936 s,@infodir@,$infodir,;t t
9937 s,@mandir@,$mandir,;t t
9938 s,@build_alias@,$build_alias,;t t
9939 s,@host_alias@,$host_alias,;t t
9940 s,@target_alias@,$target_alias,;t t
9942 s,@ECHO_C@,$ECHO_C,;t t
9943 s,@ECHO_N@,$ECHO_N,;t t
9944 s,@ECHO_T@,$ECHO_T,;t t
9946 s,@build@,$build,;t t
9947 s,@build_cpu@,$build_cpu,;t t
9948 s,@build_vendor@,$build_vendor,;t t
9949 s,@build_os@,$build_os,;t t
9951 s,@host_cpu@,$host_cpu,;t t
9952 s,@host_vendor@,$host_vendor,;t t
9953 s,@host_os@,$host_os,;t t
9954 s,@target@,$target,;t t
9955 s,@target_cpu@,$target_cpu,;t t
9956 s,@target_vendor@,$target_vendor,;t t
9957 s,@target_os@,$target_os,;t t
9959 s,@CFLAGS@,$CFLAGS,;t t
9960 s,@LDFLAGS@,$LDFLAGS,;t t
9961 s,@CPPFLAGS@,$CPPFLAGS,;t t
9962 s,@ac_ct_CC@,$ac_ct_CC,;t t
9963 s,@EXEEXT@,$EXEEXT,;t t
9964 s,@OBJEXT@,$OBJEXT,;t t
9965 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9966 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9967 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9968 s,@PACKAGE@,$PACKAGE,;t t
9969 s,@VERSION@,$VERSION,;t t
9970 s,@ACLOCAL@,$ACLOCAL,;t t
9971 s,@AUTOCONF@,$AUTOCONF,;t t
9972 s,@AUTOMAKE@,$AUTOMAKE,;t t
9973 s,@AUTOHEADER@,$AUTOHEADER,;t t
9974 s,@MAKEINFO@,$MAKEINFO,;t t
9975 s,@SET_MAKE@,$SET_MAKE,;t t
9977 s,@RANLIB@,$RANLIB,;t t
9978 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9979 s,@STRIP@,$STRIP,;t t
9980 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9981 s,@LIBTOOL@,$LIBTOOL,;t t
9982 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9983 s,@GDBINIT@,$GDBINIT,;t t
9984 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9985 s,@extra_objects@,$extra_objects,;t t
9986 s,@target_cpu_type@,$target_cpu_type,;t t
9987 s,@obj_format@,$obj_format,;t t
9988 s,@te_file@,$te_file,;t t
9989 s,@install_tooldir@,$install_tooldir,;t t
9991 s,@BFDLIB@,$BFDLIB,;t t
9992 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
9993 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
9996 s,@LEXLIB@,$LEXLIB,;t t
9997 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9999 s,@ALLOCA@,$ALLOCA,;t t
10000 s,@USE_NLS@,$USE_NLS,;t t
10001 s,@MSGFMT@,$MSGFMT,;t t
10002 s,@GMSGFMT@,$GMSGFMT,;t t
10003 s,@XGETTEXT@,$XGETTEXT,;t t
10004 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10005 s,@CATALOGS@,$CATALOGS,;t t
10006 s,@CATOBJEXT@,$CATOBJEXT,;t t
10007 s,@DATADIRNAME@,$DATADIRNAME,;t t
10008 s,@GMOFILES@,$GMOFILES,;t t
10009 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10010 s,@INTLDEPS@,$INTLDEPS,;t t
10011 s,@INTLLIBS@,$INTLLIBS,;t t
10012 s,@INTLOBJS@,$INTLOBJS,;t t
10013 s,@POFILES@,$POFILES,;t t
10014 s,@POSUB@,$POSUB,;t t
10015 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10016 s,@GT_NO@,$GT_NO,;t t
10017 s,@GT_YES@,$GT_YES,;t t
10018 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10020 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10021 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10022 s,@MAINT@,$MAINT,;t t
10023 s,@LIBM@,$LIBM,;t t
10028 cat >>$CONFIG_STATUS <<\_ACEOF
10029 # Split the substitutions into bite-sized pieces for seds with
10030 # small command number limits, like on Digital OSF/1 and HP-UX.
10031 ac_max_sed_lines
=48
10032 ac_sed_frag
=1 # Number of current file.
10033 ac_beg
=1 # First line for current file.
10034 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10037 while $ac_more_lines; do
10038 if test $ac_beg -gt 1; then
10039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10041 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10043 if test ! -s $tmp/subs.frag
; then
10044 ac_more_lines
=false
10046 # The purpose of the label and of the branching condition is to
10047 # speed up the sed processing (if there are no `@' at all, there
10048 # is no need to browse any of the substitutions).
10049 # These are the two extra sed commands mentioned above.
10051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10052 if test -z "$ac_sed_cmds"; then
10053 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10055 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10057 ac_sed_frag
=`expr $ac_sed_frag + 1`
10059 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10062 if test -z "$ac_sed_cmds"; then
10065 fi # test -n "$CONFIG_FILES"
10068 cat >>$CONFIG_STATUS <<\_ACEOF
10069 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10072 - |
*:- |
*:-:* ) # input from stdin
10074 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10075 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10076 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10077 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10078 * ) ac_file_in
=$ac_file.
in ;;
10081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10082 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10084 X"$ac_file" : 'X\(//\)[^/]' \| \
10085 X"$ac_file" : 'X\(//\)$' \| \
10086 X"$ac_file" : 'X\(/\)' \| \
10087 . : '\(.\)' 2>/dev/null ||
10089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10091 /^X\(\/\/\)$/{ s//\1/; q; }
10092 /^X\(\/\).*/{ s//\1/; q; }
10094 { case "$ac_dir" in
10095 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10099 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10100 case $as_mkdir_dir in
10101 # Skip DOS drivespec
10102 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10104 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10105 test -d "$as_incr_dir" ||
10106 mkdir
"$as_incr_dir" ||
10107 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10108 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10109 { (exit 1); exit 1; }; }
10116 if test "$ac_dir" != .
; then
10117 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10118 # A "../" for each directory in $ac_dir_suffix.
10119 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10121 ac_dir_suffix
= ac_top_builddir
=
10125 .
) # No --srcdir option. We are building in place.
10127 if test -z "$ac_top_builddir"; then
10130 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10132 [\\/]* | ?
:[\\/]* ) # Absolute path.
10133 ac_srcdir
=$srcdir$ac_dir_suffix;
10134 ac_top_srcdir
=$srcdir ;;
10135 *) # Relative path.
10136 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10137 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10139 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10141 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10142 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10143 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10144 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10148 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10149 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
10152 if test x
"$ac_file" != x-
; then
10153 { echo "$as_me:$LINENO: creating $ac_file" >&5
10154 echo "$as_me: creating $ac_file" >&6;}
10157 # Let's still pretend it is `configure' which instantiates (i.e., don't
10158 # use $as_me), people would be surprised to read:
10159 # /* config.h. Generated by config.status. */
10160 if test x
"$ac_file" = x-
; then
10163 configure_input
="$ac_file. "
10165 configure_input
=$configure_input"Generated from `echo $ac_file_in |
10166 sed 's,.*/,,'` by configure."
10168 # First look for the input files in the build tree, otherwise in the
10170 ac_file_inputs
=`IFS=:
10171 for f in $ac_file_in; do
10173 -) echo $tmp/stdin ;;
10175 # Absolute (can't be DOS-style, as IFS=:)
10176 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10177 echo "$as_me: error: cannot find input file: $f" >&2;}
10178 { (exit 1); exit 1; }; }
10181 if test -f "$f"; then
10184 elif test -f "$srcdir/$f"; then
10189 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10190 echo "$as_me: error: cannot find input file: $f" >&2;}
10191 { (exit 1); exit 1; }; }
10194 done` ||
{ (exit 1); exit 1; }
10196 cat >>$CONFIG_STATUS <<_ACEOF
10200 cat >>$CONFIG_STATUS <<\_ACEOF
10202 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10203 s
,@configure_input@
,$configure_input,;t t
10204 s
,@srcdir@
,$ac_srcdir,;t t
10205 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
10206 s
,@top_srcdir@
,$ac_top_srcdir,;t t
10207 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
10208 s
,@builddir@
,$ac_builddir,;t t
10209 s
,@abs_builddir@
,$ac_abs_builddir,;t t
10210 s
,@top_builddir@
,$ac_top_builddir,;t t
10211 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10212 s
,@INSTALL@
,$ac_INSTALL,;t t
10213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10215 if test x"$ac_file" != x-; then
10216 mv $tmp/out $ac_file
10224 cat >>$CONFIG_STATUS <<\_ACEOF
10227 # CONFIG_HEADER section.
10230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
10231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10233 # ac_d sets the value in "#define NAME VALUE" lines.
10234 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10235 ac_dB
='[ ].*$,\1#\2'
10238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10239 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10240 ac_uB
='$,\1#\2define\3'
10244 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10247 - |
*:- |
*:-:* ) # input from stdin
10249 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10250 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10251 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10252 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10253 * ) ac_file_in
=$ac_file.
in ;;
10256 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
10257 echo "$as_me: creating $ac_file" >&6;}
10259 # First look for the input files in the build tree, otherwise in the
10261 ac_file_inputs
=`IFS=:
10262 for f in $ac_file_in; do
10264 -) echo $tmp/stdin ;;
10266 # Absolute (can't be DOS-style, as IFS=:)
10267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10268 echo "$as_me: error: cannot find input file: $f" >&2;}
10269 { (exit 1); exit 1; }; }
10272 if test -f "$f"; then
10275 elif test -f "$srcdir/$f"; then
10280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10281 echo "$as_me: error: cannot find input file: $f" >&2;}
10282 { (exit 1); exit 1; }; }
10285 done` ||
{ (exit 1); exit 1; }
10286 # Remove the trailing spaces.
10287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10292 # `conftest.undefs', that substitutes the proper values into
10293 # config.h.in to produce config.h. The first handles `#define'
10294 # templates, and the second `#undef' templates.
10295 # And first: Protect against being on the right side of a sed subst in
10296 # config.status. Protect against being in an unquoted here document
10297 # in config.status.
10298 rm -f conftest.defines conftest.undefs
10299 # Using a here document instead of a string reduces the quoting nightmare.
10300 # Putting comments in sed scripts is not portable.
10302 # `end' is used to avoid that the second main sed command (meant for
10303 # 0-ary CPP macros) applies to n-ary macro definitions.
10304 # See the Autoconf documentation for `clear'.
10305 cat >confdef2sed.
sed <<\_ACEOF
10310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10315 # If some macros were called several times there might be several times
10316 # the same #defines, which is useless. Nevertheless, we may not want to
10317 # sort them, since we want the *last* AC-DEFINE to be honored.
10318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10320 rm -f confdef2sed.sed
10322 # This sed command replaces #undef with comments. This is necessary, for
10323 # example, in the case of _POSIX_SOURCE, which is predefined and required
10324 # on some systems where configure will not decide to define it.
10325 cat >>conftest.undefs <<\_ACEOF
10326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10329 # Break up conftest.defines because some shells have a limit on the size
10330 # of here documents, and old seds have small limits too (100 cmds).
10331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10332 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10334 echo ' :' >>$CONFIG_STATUS
10335 rm -f conftest.tail
10336 while grep . conftest.defines >/dev/null
10338 # Write a limited-size here document to $tmp/defines.sed.
10339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10340 # Speed up: don't consider the non `#define' lines.
10341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10342 # Work around the forget-to-reset-the-flag bug.
10343 echo 't clr' >>$CONFIG_STATUS
10344 echo ': clr' >>$CONFIG_STATUS
10345 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10349 mv $tmp/out $tmp/in
10351 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10352 rm -f conftest.defines
10353 mv conftest.
tail conftest.defines
10355 rm -f conftest.defines
10356 echo ' fi # egrep' >>$CONFIG_STATUS
10357 echo >>$CONFIG_STATUS
10359 # Break up conftest.undefs because some shells have a limit on the size
10360 # of here documents, and old seds have small limits too (100 cmds).
10361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10362 rm -f conftest.
tail
10363 while grep . conftest.undefs
>/dev
/null
10365 # Write a limited-size here document to $tmp/undefs.sed.
10366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10367 # Speed up: don't consider the non
`#undef'
10368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10369 # Work around the forget-to-reset-the-flag bug.
10370 echo 't clr' >>$CONFIG_STATUS
10371 echo ': clr' >>$CONFIG_STATUS
10372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10376 mv $tmp/out $tmp/in
10378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10379 rm -f conftest.undefs
10380 mv conftest.tail conftest.undefs
10382 rm -f conftest.undefs
10384 cat >>$CONFIG_STATUS <<\_ACEOF
10385 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10386 # use $as_me), people would be surprised to read:
10387 # /* config.h. Generated by config.status. */
10388 if test x
"$ac_file" = x-
; then
10389 echo "/* Generated by configure. */" >$tmp/config.h
10391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10393 cat $tmp/in >>$tmp/config.h
10395 if test x
"$ac_file" != x-
; then
10396 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10398 echo "$as_me: $ac_file is unchanged" >&6;}
10400 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10402 X"$ac_file" : 'X\(//\)[^/]' \| \
10403 X"$ac_file" : 'X\(//\)$' \| \
10404 X"$ac_file" : 'X\(/\)' \| \
10405 . : '\(.\)' 2>/dev/null ||
10407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10409 /^X\(\/\/\)$/{ s//\1/; q; }
10410 /^X\(\/\).*/{ s//\1/; q; }
10412 { case "$ac_dir" in
10413 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10417 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10418 case $as_mkdir_dir in
10419 # Skip DOS drivespec
10420 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10422 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10423 test -d "$as_incr_dir" ||
10424 mkdir
"$as_incr_dir" ||
10425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10427 { (exit 1); exit 1; }; }
10433 mv $tmp/config.h
$ac_file
10437 rm -f $tmp/config.h
10441 cat >>$CONFIG_STATUS <<\_ACEOF
10444 # CONFIG_COMMANDS section.
10446 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10447 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10448 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10449 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10450 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10451 X"$ac_dest" : 'X\(//\)[^/]' \| \
10452 X"$ac_dest" : 'X\(//\)$' \| \
10453 X"$ac_dest" : 'X\(/\)' \| \
10454 . : '\(.\)' 2>/dev/null ||
10456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10458 /^X\(\/\/\)$/{ s//\1/; q; }
10459 /^X\(\/\).*/{ s//\1/; q; }
10463 if test "$ac_dir" != .
; then
10464 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10465 # A "../" for each directory in $ac_dir_suffix.
10466 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10468 ac_dir_suffix
= ac_top_builddir
=
10472 .
) # No --srcdir option. We are building in place.
10474 if test -z "$ac_top_builddir"; then
10477 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10479 [\\/]* | ?
:[\\/]* ) # Absolute path.
10480 ac_srcdir
=$srcdir$ac_dir_suffix;
10481 ac_top_srcdir
=$srcdir ;;
10482 *) # Relative path.
10483 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10484 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10486 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10488 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10489 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10490 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10491 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10494 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10495 echo "$as_me: executing $ac_dest commands" >&6;}
10497 default-1
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
;;
10498 default
) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
10499 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10500 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10501 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10502 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10503 if test "x$cgen_cpu_prefix" != x
; then
10504 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
10507 sed -e '/POTFILES =/r po/POTFILES' po
/Makefile.
in > po
/Makefile
;;
10512 cat >>$CONFIG_STATUS <<\_ACEOF
10514 { (exit 0); exit 0; }
10516 chmod +x
$CONFIG_STATUS
10517 ac_clean_files
=$ac_clean_files_save
10520 # configure is writing to config.log, and then calls config.status.
10521 # config.status does its own redirection, appending to config.log.
10522 # Unfortunately, on DOS this fails, as config.log is still kept open
10523 # by configure, so config.status won't be able to write to it; its
10524 # output is simply discarded. So we exec the FD to /dev/null,
10525 # effectively closing config.log, so it can be properly (re)opened and
10526 # appended to by config.status. When coming back to configure, we
10527 # need to make the FD available again.
10528 if test "$no_create" != yes; then
10531 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10534 # would make configure fail if this is the last instruction.
10535 $ac_cs_success ||
{ (exit 1); exit 1; }