3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --install-libbfd controls installation of libbfd and related headers"
38 --disable-nls do not use Native Language Support"
40 --with-included-gettext use the GNU gettext library included here"
42 --enable-cgen-maint[=dir] build cgen generated files"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
65 bindir
='${exec_prefix}/bin'
66 sbindir
='${exec_prefix}/sbin'
67 libexecdir
='${exec_prefix}/libexec'
68 datadir
='${prefix}/share'
69 sysconfdir
='${prefix}/etc'
70 sharedstatedir
='${prefix}/com'
71 localstatedir
='${prefix}/var'
72 libdir
='${exec_prefix}/lib'
73 includedir
='${prefix}/include'
74 oldincludedir
='/usr/include'
75 infodir
='${prefix}/info'
76 mandir
='${prefix}/man'
78 # Initialize some other variables.
81 SHELL
=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
108 bindir
="$ac_optarg" ;;
110 -build |
--build |
--buil |
--bui |
--bu)
112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
113 build
="$ac_optarg" ;;
115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
117 ac_prev
=cache_file
;;
118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
120 cache_file
="$ac_optarg" ;;
122 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
124 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
126 datadir
="$ac_optarg" ;;
128 -disable-* |
--disable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* |
--enable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
152 |
--exec |
--exe |
--ex)
153 ac_prev
=exec_prefix
;;
154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
156 |
--exec=* |
--exe=* |
--ex=*)
157 exec_prefix
="$ac_optarg" ;;
159 -gas |
--gas |
--ga |
--g)
160 # Obsolete; use --with-gas.
163 -help |
--help |
--hel |
--he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host |
--host |
--hos |
--ho)
220 -host=* |
--host=* |
--hos=* |
--ho=*)
223 -includedir |
--includedir |
--includedi |
--included |
--include \
224 |
--includ |
--inclu |
--incl |
--inc)
225 ac_prev
=includedir
;;
226 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
227 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
228 includedir
="$ac_optarg" ;;
230 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
232 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
233 infodir
="$ac_optarg" ;;
235 -libdir |
--libdir |
--libdi |
--libd)
237 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
238 libdir
="$ac_optarg" ;;
240 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
241 |
--libexe |
--libex |
--libe)
242 ac_prev
=libexecdir
;;
243 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
244 |
--libexe=* |
--libex=* |
--libe=*)
245 libexecdir
="$ac_optarg" ;;
247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
248 |
--localstate |
--localstat |
--localsta |
--localst \
249 |
--locals |
--local |
--loca |
--loc |
--lo)
250 ac_prev
=localstatedir
;;
251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
253 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
254 localstatedir
="$ac_optarg" ;;
256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
259 mandir
="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
275 |
--oldin |
--oldi |
--old |
--ol |
--o)
276 ac_prev
=oldincludedir
;;
277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
280 oldincludedir
="$ac_optarg" ;;
282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
285 prefix
="$ac_optarg" ;;
287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
288 |
--program-pre |
--program-pr |
--program-p)
289 ac_prev
=program_prefix
;;
290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
292 program_prefix
="$ac_optarg" ;;
294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
295 |
--program-suf |
--program-su |
--program-s)
296 ac_prev
=program_suffix
;;
297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
299 program_suffix
="$ac_optarg" ;;
301 -program-transform-name |
--program-transform-name \
302 |
--program-transform-nam |
--program-transform-na \
303 |
--program-transform-n |
--program-transform- \
304 |
--program-transform |
--program-transfor \
305 |
--program-transfo |
--program-transf \
306 |
--program-trans |
--program-tran \
307 |
--progr-tra |
--program-tr |
--program-t)
308 ac_prev
=program_transform_name
;;
309 -program-transform-name=* |
--program-transform-name=* \
310 |
--program-transform-nam=* |
--program-transform-na=* \
311 |
--program-transform-n=* |
--program-transform-=* \
312 |
--program-transform=* |
--program-transfor=* \
313 |
--program-transfo=* |
--program-transf=* \
314 |
--program-trans=* |
--program-tran=* \
315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
316 program_transform_name
="$ac_optarg" ;;
318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
319 |
-silent |
--silent |
--silen |
--sile |
--sil)
322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
326 sbindir
="$ac_optarg" ;;
328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
332 ac_prev
=sharedstatedir
;;
333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
337 sharedstatedir
="$ac_optarg" ;;
339 -site |
--site |
--sit)
341 -site=* |
--site=* |
--sit=*)
344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
347 srcdir
="$ac_optarg" ;;
349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
351 ac_prev
=sysconfdir
;;
352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
354 sysconfdir
="$ac_optarg" ;;
356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
359 target
="$ac_optarg" ;;
361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
364 -version |
--version |
--versio |
--versi |
--vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* |
--without-*)
382 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
396 ac_prev
=x_includes
;;
397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
399 x_includes
="$ac_optarg" ;;
401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
403 ac_prev
=x_libraries
;;
404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
406 x_libraries
="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE
; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
457 |
--no-cr |
--no-c) ;;
458 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
459 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
460 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest
* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file
=z8k-dis.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted
=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted
=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file
in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp
='$CPP $CPPFLAGS'
534 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling
=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
549 ac_n
= ac_c
='\c' ac_t
=
552 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
553 echo "configure:554: checking for Cygwin environment" >&5
554 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 cat > conftest.
$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
564 #define __CYGWIN__ __CYGWIN32__
569 if { (eval echo configure
:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
573 echo "configure: failed program was:" >&5
574 cat conftest.
$ac_ext >&5
582 echo "$ac_t""$ac_cv_cygwin" 1>&6
584 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
585 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
586 echo "configure:587: checking for mingw32 environment" >&5
587 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 cat > conftest.
$ac_ext <<EOF
591 #line 592 "configure"
592 #include "confdefs.h"
598 if { (eval echo configure
:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
602 echo "configure: failed program was:" >&5
603 cat conftest.
$ac_ext >&5
611 echo "$ac_t""$ac_cv_mingw32" 1>&6
613 test "$ac_cv_mingw32" = yes && MINGW32
=yes
617 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
618 if test -f $ac_dir/install-sh
; then
620 ac_install_sh
="$ac_aux_dir/install-sh -c"
622 elif test -f $ac_dir/install.sh
; then
624 ac_install_sh
="$ac_aux_dir/install.sh -c"
628 if test -z "$ac_aux_dir"; then
629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631 ac_config_guess
=$ac_aux_dir/config.guess
632 ac_config_sub
=$ac_aux_dir/config.sub
633 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
636 # Do some error checking and defaulting for the host and target type.
638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 # 1. You are not allowed to specify --host, --target, and nonopt at the
643 # 2. Host defaults to nonopt.
644 # 3. If nonopt is not specified, then host defaults to the current host,
645 # as determined by config.guess.
646 # 4. Target and build default to nonopt.
647 # 5. If nonopt is not specified, then target and build default to host.
649 # The aliases save the names the user supplied, while $host etc.
650 # will get canonicalized.
651 case $host---$target---$nonopt in
652 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 # Make sure we can run config.sub.
658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
666 case "$host_alias" in
670 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
673 *) host_alias
=$nonopt ;;
677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
678 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$host" 1>&6
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
687 case "$target_alias" in
690 NONE
) target_alias
=$host_alias ;;
691 *) target_alias
=$nonopt ;;
695 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
696 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$target" 1>&6
701 echo $ac_n "checking build system type""... $ac_c" 1>&6
702 echo "configure:703: checking build system type" >&5
705 case "$build_alias" in
708 NONE
) build_alias
=$host_alias ;;
709 *) build_alias
=$nonopt ;;
713 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
714 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$build" 1>&6
719 test "$host_alias" != "$target_alias" &&
720 test "$program_prefix$program_suffix$program_transform_name" = \
722 program_prefix
=${target_alias}-
724 # Extract the first word of "gcc", so it can be a program name with args.
725 set dummy gcc
; ac_word
=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC
="$CC" # Let the user override the test.
734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
736 for ac_dir
in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir
=.
738 if test -f $ac_dir/$ac_word; then
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 if test -z "$CC"; then
754 # Extract the first word of "cc", so it can be a program name with args.
755 set dummy cc
; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC
="$CC" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
767 for ac_dir
in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir
=.
769 if test -f $ac_dir/$ac_word; then
770 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
779 if test $ac_prog_rejected = yes; then
780 # We found a bogon in the path, so make sure we never use it.
781 set dummy
$ac_cv_prog_CC
783 if test $# -gt 0; then
784 # We chose a different compiler from the bogus one.
785 # However, it has the same basename, so the bogon will be chosen
786 # first if we set CC to just the basename; use the full file name.
788 set dummy
"$ac_dir/$ac_word" "$@"
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 if test -z "$CC"; then
805 # Extract the first word of "cl", so it can be a program name with args.
806 set dummy cl
; ac_word
=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC
="$CC" # Let the user override the test.
815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
817 for ac_dir
in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir
=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
844 ac_cpp
='$CPP $CPPFLAGS'
845 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
846 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
847 cross_compiling
=$ac_cv_prog_cc_cross
849 cat > conftest.
$ac_ext << EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 if { (eval echo configure
:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
857 ac_cv_prog_cc_works
=yes
858 # If we can't run a trivial program, we are probably using a cross compiler.
859 if (.
/conftest
; exit) 2>/dev
/null
; then
860 ac_cv_prog_cc_cross
=no
862 ac_cv_prog_cc_cross
=yes
865 echo "configure: failed program was:" >&5
866 cat conftest.
$ac_ext >&5
867 ac_cv_prog_cc_works
=no
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp
='$CPP $CPPFLAGS'
873 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling
=$ac_cv_prog_cc_cross
877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
878 if test $ac_cv_prog_cc_works = no
; then
879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
884 cross_compiling
=$ac_cv_prog_cc_cross
886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
887 echo "configure:888: checking whether we are using GNU C" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 cat > conftest.c
<<EOF
896 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
903 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
905 if test $ac_cv_prog_gcc = yes; then
911 ac_test_CFLAGS
="${CFLAGS+set}"
912 ac_save_CFLAGS
="$CFLAGS"
914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
915 echo "configure:916: checking whether ${CC-cc} accepts -g" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 echo 'void f(){}' > conftest.c
920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
929 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
930 if test "$ac_test_CFLAGS" = set; then
931 CFLAGS
="$ac_save_CFLAGS"
932 elif test $ac_cv_prog_cc_g = yes; then
933 if test "$GCC" = yes; then
939 if test "$GCC" = yes; then
946 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
947 echo "configure:948: checking for POSIXized ISC" >&5
948 if test -d /etc
/conf
/kconfig.d
&&
949 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
951 echo "$ac_t""yes" 1>&6
952 ISC
=yes # If later tests want to check for ISC.
953 cat >> confdefs.h
<<\EOF
954 #define _POSIX_SOURCE 1
957 if test "$GCC" = yes; then
963 echo "$ac_t""no" 1>&6
968 # We currently only use the version number for the name of any shared
969 # library. For user convenience, we always use the same version
970 # number that BFD is using.
971 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
973 # Find a good install program. We prefer a C program (faster),
974 # so one script is as good as another. But avoid the broken or
975 # incompatible versions:
976 # SysV /etc/install, /usr/sbin/install
977 # SunOS /usr/etc/install
980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
983 # ./install, which can be erroneously created by make from ./install.sh.
984 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
985 echo "configure:986: checking for a BSD compatible install" >&5
986 if test -z "$INSTALL"; then
987 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
991 for ac_dir
in $PATH; do
992 # Account for people who put trailing slashes in PATH elements.
994 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
996 # OSF1 and SCO ODT 3.0 have their own names for install.
997 # Don't use installbsd from OSF since it installs stuff as root
999 for ac_prog
in ginstall scoinst
install; do
1000 if test -f $ac_dir/$ac_prog; then
1001 if test $ac_prog = install &&
1002 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1003 # AIX install. It has an incompatible calling convention.
1006 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1017 if test "${ac_cv_path_install+set}" = set; then
1018 INSTALL
="$ac_cv_path_install"
1020 # As a last resort, use the slow shell script. We don't cache a
1021 # path for INSTALL within a source directory, because that will
1022 # break other packages using the cache if that directory is
1023 # removed, or if the path is relative.
1024 INSTALL
="$ac_install_sh"
1027 echo "$ac_t""$INSTALL" 1>&6
1029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1030 # It thinks the first close brace ends the variable substitution.
1031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1033 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1035 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1037 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether build environment is sane" >&5
1041 echo timestamp
> conftestfile
1042 # Do `set' in a subshell so we don't clobber the current shell's
1043 # arguments. Must try -L first in case configure is actually a
1044 # symlink; some systems play weird games with the mod time of symlinks
1045 # (eg FreeBSD returns the mod time of the symlink's containing
1048 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1049 if test "$*" = "X"; then
1051 set X
`ls -t $srcdir/configure conftestfile`
1053 if test "$*" != "X $srcdir/configure conftestfile" \
1054 && test "$*" != "X conftestfile $srcdir/configure"; then
1056 # If neither matched, then we have a broken ls. This can happen
1057 # if, for instance, CONFIG_SHELL is bash and it inherits a
1058 # broken ls alias from the environment. This has actually
1059 # happened. Such a system could not be considered "sane".
1060 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1061 alias in your environment" 1>&2; exit 1; }
1064 test "$2" = conftestfile
1070 { echo "configure: error: newly created file is older than distributed files!
1071 Check your system clock" 1>&2; exit 1; }
1074 echo "$ac_t""yes" 1>&6
1075 if test "$program_transform_name" = s
,x
,x
,; then
1076 program_transform_name
=
1078 # Double any \ or $. echo might interpret backslashes.
1079 cat <<\EOF_SED
> conftestsed
1080 s
,\\,\\\\,g
; s
,\$
,$$
,g
1082 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1085 test "$program_prefix" != NONE
&&
1086 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1087 # Use a double $ so make ignores it.
1088 test "$program_suffix" != NONE
&&
1089 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1091 # sed with no file args requires a program.
1092 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1094 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether ${MAKE-make} sets \${MAKE}" >&5
1096 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1097 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftestmake
<<\EOF
1102 @
echo 'ac_maketemp="${MAKE}"'
1104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1105 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1106 if test -n "$ac_maketemp"; then
1107 eval ac_cv_prog_make_
${ac_make}_set
=yes
1109 eval ac_cv_prog_make_
${ac_make}_set
=no
1113 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1114 echo "$ac_t""yes" 1>&6
1117 echo "$ac_t""no" 1>&6
1118 SET_MAKE
="MAKE=${MAKE-make}"
1124 VERSION
=${BFD_VERSION}
1126 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1127 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1129 cat >> confdefs.h
<<EOF
1130 #define PACKAGE "$PACKAGE"
1133 cat >> confdefs.h
<<EOF
1134 #define VERSION "$VERSION"
1139 missing_dir
=`cd $ac_aux_dir && pwd`
1140 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1141 echo "configure:1142: checking for working aclocal" >&5
1142 # Run test in a subshell; some versions of sh will print an error if
1143 # an executable is not found, even if stderr is redirected.
1144 # Redirect stdin to placate older versions of autoconf. Sigh.
1145 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1147 echo "$ac_t""found" 1>&6
1149 ACLOCAL
="$missing_dir/missing aclocal"
1150 echo "$ac_t""missing" 1>&6
1153 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1154 echo "configure:1155: checking for working autoconf" >&5
1155 # Run test in a subshell; some versions of sh will print an error if
1156 # an executable is not found, even if stderr is redirected.
1157 # Redirect stdin to placate older versions of autoconf. Sigh.
1158 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1160 echo "$ac_t""found" 1>&6
1162 AUTOCONF
="$missing_dir/missing autoconf"
1163 echo "$ac_t""missing" 1>&6
1166 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1167 echo "configure:1168: checking for working automake" >&5
1168 # Run test in a subshell; some versions of sh will print an error if
1169 # an executable is not found, even if stderr is redirected.
1170 # Redirect stdin to placate older versions of autoconf. Sigh.
1171 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1173 echo "$ac_t""found" 1>&6
1175 AUTOMAKE
="$missing_dir/missing automake"
1176 echo "$ac_t""missing" 1>&6
1179 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1180 echo "configure:1181: checking for working autoheader" >&5
1181 # Run test in a subshell; some versions of sh will print an error if
1182 # an executable is not found, even if stderr is redirected.
1183 # Redirect stdin to placate older versions of autoconf. Sigh.
1184 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1185 AUTOHEADER
=autoheader
1186 echo "$ac_t""found" 1>&6
1188 AUTOHEADER
="$missing_dir/missing autoheader"
1189 echo "$ac_t""missing" 1>&6
1192 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1193 echo "configure:1194: checking for working makeinfo" >&5
1194 # Run test in a subshell; some versions of sh will print an error if
1195 # an executable is not found, even if stderr is redirected.
1196 # Redirect stdin to placate older versions of autoconf. Sigh.
1197 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1199 echo "$ac_t""found" 1>&6
1201 MAKEINFO
="$missing_dir/missing makeinfo"
1202 echo "$ac_t""missing" 1>&6
1207 if test $host != $build; then
1208 ac_tool_prefix
=${host_alias}-
1213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1214 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 if test -n "$AR"; then
1221 ac_cv_prog_AR
="$AR" # Let the user override the test.
1223 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1225 for ac_dir
in $ac_dummy; do
1226 test -z "$ac_dir" && ac_dir
=.
1227 if test -f $ac_dir/$ac_word; then
1228 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1233 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1237 if test -n "$AR"; then
1238 echo "$ac_t""$AR" 1>&6
1240 echo "$ac_t""no" 1>&6
1245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1246 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1248 echo "configure:1249: checking for $ac_word" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 if test -n "$RANLIB"; then
1253 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1257 for ac_dir
in $ac_dummy; do
1258 test -z "$ac_dir" && ac_dir
=.
1259 if test -f $ac_dir/$ac_word; then
1260 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1267 RANLIB
="$ac_cv_prog_RANLIB"
1268 if test -n "$RANLIB"; then
1269 echo "$ac_t""$RANLIB" 1>&6
1271 echo "$ac_t""no" 1>&6
1275 if test -z "$ac_cv_prog_RANLIB"; then
1276 if test -n "$ac_tool_prefix"; then
1277 # Extract the first word of "ranlib", so it can be a program name with args.
1278 set dummy ranlib
; ac_word
=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test -n "$RANLIB"; then
1285 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1287 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1289 for ac_dir
in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir
=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_prog_RANLIB
="ranlib"
1297 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1300 RANLIB
="$ac_cv_prog_RANLIB"
1301 if test -n "$RANLIB"; then
1302 echo "$ac_t""$RANLIB" 1>&6
1304 echo "$ac_t""no" 1>&6
1313 # Check whether --enable-shared or --disable-shared was given.
1314 if test "${enable_shared+set}" = set; then
1315 enableval
="$enable_shared"
1316 p
=${PACKAGE-default}
1318 yes) enable_shared
=yes ;;
1319 no
) enable_shared
=no
;;
1322 # Look at the argument we got. We use all the common list separators.
1323 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1324 for pkg
in $enableval; do
1325 if test "X$pkg" = "X$p"; then
1337 # Check whether --enable-static or --disable-static was given.
1338 if test "${enable_static+set}" = set; then
1339 enableval
="$enable_static"
1340 p
=${PACKAGE-default}
1342 yes) enable_static
=yes ;;
1343 no
) enable_static
=no
;;
1346 # Look at the argument we got. We use all the common list separators.
1347 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1348 for pkg
in $enableval; do
1349 if test "X$pkg" = "X$p"; then
1360 # Check whether --enable-fast-install or --disable-fast-install was given.
1361 if test "${enable_fast_install+set}" = set; then
1362 enableval
="$enable_fast_install"
1363 p
=${PACKAGE-default}
1365 yes) enable_fast_install
=yes ;;
1366 no
) enable_fast_install
=no
;;
1368 enable_fast_install
=no
1369 # Look at the argument we got. We use all the common list separators.
1370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1371 for pkg
in $enableval; do
1372 if test "X$pkg" = "X$p"; then
1373 enable_fast_install
=yes
1380 enable_fast_install
=yes
1383 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1384 if test "${with_gnu_ld+set}" = set; then
1385 withval
="$with_gnu_ld"
1386 test "$withval" = no || with_gnu_ld
=yes
1392 if test "$GCC" = yes; then
1393 # Check if gcc -print-prog-name=ld gives a path.
1394 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1395 echo "configure:1396: checking for ld used by GCC" >&5
1398 # gcc leaves a trailing carriage return which upsets mingw
1399 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1401 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1404 # Accept absolute paths.
1405 [\\/]* |
[A-Za-z
]:[\\/]*)
1406 re_direlt
='/[^/][^/]*/\.\./'
1407 # Canonicalize the path of ld
1408 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1409 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1410 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1412 test -z "$LD" && LD
="$ac_prog"
1415 # If it fails, then pretend we aren't using GCC.
1419 # If it is relative, then search for the first ld in PATH.
1423 elif test "$with_gnu_ld" = yes; then
1424 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1425 echo "configure:1426: checking for GNU ld" >&5
1427 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1428 echo "configure:1429: checking for non-GNU ld" >&5
1430 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 if test -z "$LD"; then
1434 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1435 for ac_dir
in $PATH; do
1436 test -z "$ac_dir" && ac_dir
=.
1437 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1438 lt_cv_path_LD
="$ac_dir/$ac_prog"
1439 # Check to see if the program is GNU ld. I'd rather use --version,
1440 # but apparently some GNU ld's only accept -v.
1441 # Break only if it was the GNU/non-GNU ld that we prefer.
1442 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1443 test "$with_gnu_ld" != no
&& break
1445 test "$with_gnu_ld" != yes && break
1451 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1456 if test -n "$LD"; then
1457 echo "$ac_t""$LD" 1>&6
1459 echo "$ac_t""no" 1>&6
1461 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1462 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1463 echo "configure:1464: checking if the linker ($LD) is GNU ld" >&5
1464 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1468 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1469 lt_cv_prog_gnu_ld
=yes
1471 lt_cv_prog_gnu_ld
=no
1475 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1476 with_gnu_ld
=$lt_cv_prog_gnu_ld
1479 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1480 echo "configure:1481: checking for $LD option to reload object files" >&5
1481 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 lt_cv_ld_reload_flag
='-r'
1487 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1488 reload_flag
=$lt_cv_ld_reload_flag
1489 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1491 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1492 echo "configure:1493: checking for BSD-compatible nm" >&5
1493 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 if test -n "$NM"; then
1497 # Let the user override the test.
1500 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1501 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1502 test -z "$ac_dir" && ac_dir
=.
1503 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1504 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1505 # Check to see if the nm accepts a BSD-compat flag.
1506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1507 # nm: unknown option "B" ignored
1508 # Tru64's nm complains that /dev/null is an invalid object file
1509 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1510 lt_cv_path_NM
="$tmp_nm -B"
1512 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1513 lt_cv_path_NM
="$tmp_nm -p"
1516 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1517 continue # so that we can try to find one that supports BSD flags
1522 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1527 echo "$ac_t""$NM" 1>&6
1529 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether ln -s works" >&5
1531 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1535 if ln -s X conftestdata
2>/dev
/null
1538 ac_cv_prog_LN_S
="ln -s"
1543 LN_S
="$ac_cv_prog_LN_S"
1544 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1545 echo "$ac_t""yes" 1>&6
1547 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1551 echo "configure:1552: checking how to recognise dependant libraries" >&5
1552 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1556 lt_cv_file_magic_test_file
=
1557 lt_cv_deplibs_check_method
='unknown'
1558 # Need to set the preceding variable on all platforms that support
1559 # interlibrary dependencies.
1560 # 'none' -- dependencies not supported.
1561 # `unknown' -- same as none, but documents that we really don't know.
1562 # 'pass_all' -- all dependencies passed with no checks.
1563 # 'test_compile' -- check by making test program.
1564 # 'file_magic [regex]' -- check by looking for files in library path
1565 # which responds to the $file_magic_cmd with a given egrep regex.
1566 # If you have `file' or equivalent on your system and you're not sure
1567 # whether `pass_all' will *always* work, you probably want this one.
1571 lt_cv_deplibs_check_method
=pass_all
1575 lt_cv_deplibs_check_method
=pass_all
1579 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1580 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1581 lt_cv_file_magic_test_file
=/shlib
/libc.so
1584 cygwin
* | mingw
* |pw32
*)
1585 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1586 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1589 darwin
* | rhapsody
*)
1590 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1591 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1593 rhapsody
* | darwin1.012
)
1594 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1597 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1603 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1606 # Not sure whether the presence of OpenBSD here was a mistake.
1607 # Let's accept both of them until this is cleared up.
1608 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1609 lt_cv_file_magic_cmd
=/usr
/bin
/file
1610 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1614 lt_cv_deplibs_check_method
=pass_all
1619 lt_cv_deplibs_check_method
=pass_all
1625 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1626 lt_cv_file_magic_cmd
=/usr
/bin
/file
1627 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1630 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1631 lt_cv_file_magic_cmd
=/usr
/bin
/file
1632 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1640 # this will be overridden with pass_all, but let us keep it just in case
1641 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1645 *-32|
*"-32 ") libmagic
=32-bit;;
1646 *-n32|
*"-n32 ") libmagic
=N32
;;
1647 *-64|
*"-64 ") libmagic
=64-bit;;
1648 *) libmagic
=never-match
;;
1650 # this will be overridden with pass_all, but let us keep it just in case
1651 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1654 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1655 lt_cv_deplibs_check_method
=pass_all
1658 # This must be Linux ELF.
1661 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1662 lt_cv_deplibs_check_method
=pass_all
;;
1664 # glibc up to 2.1.1 does not perform some relocations on ARM
1665 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1667 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1671 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1672 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1674 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1679 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1680 lt_cv_file_magic_cmd
=/usr
/bin
/file
1681 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1684 osf3
* | osf4
* | osf5
*)
1685 # this will be overridden with pass_all, but let us keep it just in case
1686 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1687 lt_cv_file_magic_test_file
=/shlib
/libc.so
1688 lt_cv_deplibs_check_method
=pass_all
1692 lt_cv_deplibs_check_method
=pass_all
1696 lt_cv_deplibs_check_method
=pass_all
1697 lt_cv_file_magic_test_file
=/lib
/libc.so
1700 sysv5uw
[78]* | sysv4
*uw2
*)
1701 lt_cv_deplibs_check_method
=pass_all
1704 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1705 case $host_vendor in
1707 lt_cv_deplibs_check_method
=pass_all
1710 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]'
1711 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1719 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1720 file_magic_cmd
=$lt_cv_file_magic_cmd
1721 deplibs_check_method
=$lt_cv_deplibs_check_method
1723 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1724 echo "configure:1725: checking for object suffix" >&5
1725 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1729 echo 'int i = 1;' > conftest.
$ac_ext
1730 if { (eval echo configure
:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1731 for ac_file
in conftest.
*; do
1734 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1738 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1743 echo "$ac_t""$ac_cv_objext" 1>&6
1744 OBJEXT
=$ac_cv_objext
1745 ac_objext
=$ac_cv_objext
1749 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1750 echo "configure:1751: checking for executable suffix" >&5
1751 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1758 echo 'int main () { return 0; }' > conftest.
$ac_ext
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1761 for file in conftest.
*; do
1763 *.c |
*.o |
*.obj
) ;;
1764 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1768 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1771 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1776 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1777 echo "$ac_t""${ac_cv_exeext}" 1>&6
1780 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1782 # Only perform the check for file, if the check method requires it
1783 case $deplibs_check_method in
1785 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1786 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1787 echo "configure:1788: checking for ${ac_tool_prefix}file" >&5
1788 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1793 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1796 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1799 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1801 ac_dummy
="/usr/bin:$PATH"
1802 for ac_dir
in $ac_dummy; do
1803 test -z "$ac_dir" && ac_dir
=.
1804 if test -f $ac_dir/${ac_tool_prefix}file; then
1805 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1806 if test -n "$file_magic_test_file"; then
1807 case $deplibs_check_method in
1809 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1810 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1811 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1812 egrep "$file_magic_regex" > /dev
/null
; then
1817 *** Warning: the command libtool uses to detect shared libraries,
1818 *** $file_magic_cmd, produces output that libtool cannot recognize.
1819 *** The result is that libtool may fail to recognize shared libraries
1820 *** as such. This will affect the creation of libtool libraries that
1821 *** depend on shared libraries, but programs linked with such libtool
1822 *** libraries will work regardless of this problem. Nevertheless, you
1823 *** may want to report the problem to your system manager and/or to
1824 *** bug-libtool@gnu.org
1834 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1839 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1840 if test -n "$MAGIC_CMD"; then
1841 echo "$ac_t""$MAGIC_CMD" 1>&6
1843 echo "$ac_t""no" 1>&6
1846 if test -z "$lt_cv_path_MAGIC_CMD"; then
1847 if test -n "$ac_tool_prefix"; then
1848 echo $ac_n "checking for file""... $ac_c" 1>&6
1849 echo "configure:1850: checking for file" >&5
1850 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1855 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1858 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1861 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1863 ac_dummy
="/usr/bin:$PATH"
1864 for ac_dir
in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir
=.
1866 if test -f $ac_dir/file; then
1867 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1868 if test -n "$file_magic_test_file"; then
1869 case $deplibs_check_method in
1871 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1872 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1873 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1874 egrep "$file_magic_regex" > /dev
/null
; then
1879 *** Warning: the command libtool uses to detect shared libraries,
1880 *** $file_magic_cmd, produces output that libtool cannot recognize.
1881 *** The result is that libtool may fail to recognize shared libraries
1882 *** as such. This will affect the creation of libtool libraries that
1883 *** depend on shared libraries, but programs linked with such libtool
1884 *** libraries will work regardless of this problem. Nevertheless, you
1885 *** may want to report the problem to your system manager and/or to
1886 *** bug-libtool@gnu.org
1896 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1901 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1902 if test -n "$MAGIC_CMD"; then
1903 echo "$ac_t""$MAGIC_CMD" 1>&6
1905 echo "$ac_t""no" 1>&6
1917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1918 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1920 echo "configure:1921: checking for $ac_word" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 if test -n "$RANLIB"; then
1925 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1929 for ac_dir
in $ac_dummy; do
1930 test -z "$ac_dir" && ac_dir
=.
1931 if test -f $ac_dir/$ac_word; then
1932 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1939 RANLIB
="$ac_cv_prog_RANLIB"
1940 if test -n "$RANLIB"; then
1941 echo "$ac_t""$RANLIB" 1>&6
1943 echo "$ac_t""no" 1>&6
1947 if test -z "$ac_cv_prog_RANLIB"; then
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "ranlib", so it can be a program name with args.
1950 set dummy ranlib
; ac_word
=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 if test -n "$RANLIB"; then
1957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1961 for ac_dir
in $ac_dummy; do
1962 test -z "$ac_dir" && ac_dir
=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_RANLIB
="ranlib"
1969 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1972 RANLIB
="$ac_cv_prog_RANLIB"
1973 if test -n "$RANLIB"; then
1974 echo "$ac_t""$RANLIB" 1>&6
1976 echo "$ac_t""no" 1>&6
1984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1985 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1988 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 if test -n "$STRIP"; then
1992 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1996 for ac_dir
in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir
=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2006 STRIP
="$ac_cv_prog_STRIP"
2007 if test -n "$STRIP"; then
2008 echo "$ac_t""$STRIP" 1>&6
2010 echo "$ac_t""no" 1>&6
2014 if test -z "$ac_cv_prog_STRIP"; then
2015 if test -n "$ac_tool_prefix"; then
2016 # Extract the first word of "strip", so it can be a program name with args.
2017 set dummy strip
; ac_word
=$2
2018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_word" >&5
2020 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if test -n "$STRIP"; then
2024 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2028 for ac_dir
in $ac_dummy; do
2029 test -z "$ac_dir" && ac_dir
=.
2030 if test -f $ac_dir/$ac_word; then
2031 ac_cv_prog_STRIP
="strip"
2036 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2039 STRIP
="$ac_cv_prog_STRIP"
2040 if test -n "$STRIP"; then
2041 echo "$ac_t""$STRIP" 1>&6
2043 echo "$ac_t""no" 1>&6
2052 # Check for any special flags to pass to ltconfig.
2053 libtool_flags
="--cache-file=$cache_file"
2054 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2055 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2056 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2057 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2058 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2061 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2062 if test "${enable_libtool_lock+set}" = set; then
2063 enableval
="$enable_libtool_lock"
2067 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2068 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2070 # Check whether --with-pic or --without-pic was given.
2071 if test "${with_pic+set}" = set; then
2078 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2079 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2081 # Some flags need to be propagated to the compiler or linker for good
2085 # Find out which ABI we are using.
2086 echo '#line 2087 "configure"' > conftest.
$ac_ext
2087 if { (eval echo configure
:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088 case `/usr/bin/file conftest.$ac_objext` in
2104 # Find out which ABI we are using.
2105 echo 'int i;' > conftest.
$ac_ext
2106 if { (eval echo configure
:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 case "`/usr/bin/file conftest.o`" in
2120 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2121 SAVE_CFLAGS
="$CFLAGS"
2122 CFLAGS
="$CFLAGS -belf"
2123 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2124 echo "configure:2125: checking whether the C compiler needs -belf" >&5
2125 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2131 ac_cpp
='$CPP $CPPFLAGS'
2132 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2133 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2134 cross_compiling
=$ac_cv_prog_cc_cross
2136 cat > conftest.
$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2144 if { (eval echo configure
:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2146 lt_cv_cc_needs_belf
=yes
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 lt_cv_cc_needs_belf
=no
2155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2156 ac_cpp
='$CPP $CPPFLAGS'
2157 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2158 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2159 cross_compiling
=$ac_cv_prog_cc_cross
2163 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2164 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2165 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2166 CFLAGS
="$SAVE_CFLAGS"
2174 # Save cache, so that ltconfig can load it
2175 cat > confcache
<<\EOF
2176 # This file is a shell script that caches the results of configure
2177 # tests run on this system so they can be shared between configure
2178 # scripts and configure runs. It is not useful on other systems.
2179 # If it contains results you don't want to keep, you may remove or edit it.
2181 # By default, configure uses ./config.cache as the cache file,
2182 # creating it if it does not exist already. You can give configure
2183 # the --cache-file=FILE option to use a different cache file; that is
2184 # what configure does when it calls configure scripts in
2185 # subdirectories, so they share the cache.
2186 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2187 # config.status only pays attention to the cache file if you give it the
2188 # --recheck option to rerun configure.
2191 # The following way of writing the cache mishandles newlines in values,
2192 # but we know of no workaround that is simple, portable, and efficient.
2193 # So, don't put newlines in cache variables' values.
2194 # Ultrix sh set writes to stderr and can't be redirected directly,
2195 # and sets the high bit in the cache file unless we assign to the vars.
2197 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2199 # `set' does not quote correctly, so add quotes (double-quote substitution
2200 # turns \\\\ into \\, and sed turns \\ into \).
2202 -e "s/'/'\\\\''/g" \
2203 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2206 # `set' quotes correctly as required by POSIX, so do not add quotes.
2207 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2210 if cmp -s $cache_file confcache
; then
2213 if test -w $cache_file; then
2214 echo "updating cache $cache_file"
2215 cat confcache
> $cache_file
2217 echo "not updating unwritable cache $cache_file"
2223 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2224 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2225 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2226 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2227 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2228 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2229 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2230 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2231 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2232 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2234 # Reload cache, that may have been modified by ltconfig
2235 if test -r "$cache_file"; then
2236 echo "loading cache $cache_file"
2239 echo "creating cache $cache_file"
2244 # This can be used to rebuild libtool when needed
2245 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2247 # Always use our own libtool.
2248 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2250 # Redirect the config.log output again, so that the ltconfig log is not
2251 # clobbered by the next message.
2252 exec 5>>.
/config.log
2260 # Check whether --enable-targets or --disable-targets was given.
2261 if test "${enable_targets+set}" = set; then
2262 enableval
="$enable_targets"
2263 case "${enableval}" in
2264 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2266 no
) enable_targets
= ;;
2267 *) enable_targets
=$enableval ;;
2270 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2271 if test "${enable_commonbfdlib+set}" = set; then
2272 enableval
="$enable_commonbfdlib"
2273 case "${enableval}" in
2274 yes) commonbfdlib
=true
;;
2275 no
) commonbfdlib
=false
;;
2276 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2280 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2281 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2282 if test "${enable_build_warnings+set}" = set; then
2283 enableval
="$enable_build_warnings"
2284 case "${enableval}" in
2286 no
) build_warnings
="-w";;
2287 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2288 build_warnings
="${build_warnings} ${t}";;
2289 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2290 build_warnings
="${t} ${build_warnings}";;
2291 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2293 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2294 echo "Setting warning flags = $build_warnings" 6>&1
2298 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2299 WARN_CFLAGS
="${build_warnings}"
2307 if test -z "$target" ; then
2308 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2311 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether to enable maintainer-specific portions of Makefiles" >&5
2313 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2314 if test "${enable_maintainer_mode+set}" = set; then
2315 enableval
="$enable_maintainer_mode"
2316 USE_MAINTAINER_MODE
=$enableval
2318 USE_MAINTAINER_MODE
=no
2321 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2324 if test $USE_MAINTAINER_MODE = yes; then
2325 MAINTAINER_MODE_TRUE
=
2326 MAINTAINER_MODE_FALSE
='#'
2328 MAINTAINER_MODE_TRUE
='#'
2329 MAINTAINER_MODE_FALSE
=
2331 MAINT
=$MAINTAINER_MODE_TRUE
2334 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2335 echo "configure:2336: checking whether to install libbfd" >&5
2336 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2337 if test "${enable_install_libbfd+set}" = set; then
2338 enableval
="$enable_install_libbfd"
2339 install_libbfd_p
=$enableval
2341 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2342 install_libbfd_p
=yes
2348 echo "$ac_t""$install_libbfd_p" 1>&6
2351 if test $install_libbfd_p = yes; then
2352 INSTALL_LIBBFD_TRUE
=
2353 INSTALL_LIBBFD_FALSE
='#'
2355 INSTALL_LIBBFD_TRUE
='#'
2356 INSTALL_LIBBFD_FALSE
=
2358 # libbfd.a is a host library containing target dependent code
2359 bfdlibdir
='$(libdir)'
2360 bfdincludedir
='$(includedir)'
2361 if test "${host}" != "${target}"; then
2362 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2363 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2371 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2372 echo "configure:2373: checking for executable suffix" >&5
2373 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2380 echo 'int main () { return 0; }' > conftest.
$ac_ext
2382 if { (eval echo configure
:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2383 for file in conftest.
*; do
2385 *.c |
*.o |
*.obj
) ;;
2386 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2390 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2393 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2398 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2399 echo "$ac_t""${ac_cv_exeext}" 1>&6
2403 # host-specific stuff:
2405 # Extract the first word of "gcc", so it can be a program name with args.
2406 set dummy gcc
; ac_word
=$2
2407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_word" >&5
2409 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC
="$CC" # Let the user override the test.
2415 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2417 for ac_dir
in $ac_dummy; do
2418 test -z "$ac_dir" && ac_dir
=.
2419 if test -f $ac_dir/$ac_word; then
2428 if test -n "$CC"; then
2429 echo "$ac_t""$CC" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 if test -z "$CC"; then
2435 # Extract the first word of "cc", so it can be a program name with args.
2436 set dummy cc
; ac_word
=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC
="$CC" # Let the user override the test.
2445 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2448 for ac_dir
in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir
=.
2450 if test -f $ac_dir/$ac_word; then
2451 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2452 ac_prog_rejected
=yes
2460 if test $ac_prog_rejected = yes; then
2461 # We found a bogon in the path, so make sure we never use it.
2462 set dummy
$ac_cv_prog_CC
2464 if test $# -gt 0; then
2465 # We chose a different compiler from the bogus one.
2466 # However, it has the same basename, so the bogon will be chosen
2467 # first if we set CC to just the basename; use the full file name.
2469 set dummy
"$ac_dir/$ac_word" "$@"
2477 if test -n "$CC"; then
2478 echo "$ac_t""$CC" 1>&6
2480 echo "$ac_t""no" 1>&6
2483 if test -z "$CC"; then
2484 case "`uname -s`" in
2486 # Extract the first word of "cl", so it can be a program name with args.
2487 set dummy cl
; ac_word
=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC
="$CC" # Let the user override the test.
2496 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2498 for ac_dir
in $ac_dummy; do
2499 test -z "$ac_dir" && ac_dir
=.
2500 if test -f $ac_dir/$ac_word; then
2509 if test -n "$CC"; then
2510 echo "$ac_t""$CC" 1>&6
2512 echo "$ac_t""no" 1>&6
2517 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2520 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2521 echo "configure:2522: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2525 ac_cpp
='$CPP $CPPFLAGS'
2526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2528 cross_compiling
=$ac_cv_prog_cc_cross
2530 cat > conftest.
$ac_ext << EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2537 if { (eval echo configure
:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2538 ac_cv_prog_cc_works
=yes
2539 # If we can't run a trivial program, we are probably using a cross compiler.
2540 if (.
/conftest
; exit) 2>/dev
/null
; then
2541 ac_cv_prog_cc_cross
=no
2543 ac_cv_prog_cc_cross
=yes
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2548 ac_cv_prog_cc_works
=no
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp
='$CPP $CPPFLAGS'
2554 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling
=$ac_cv_prog_cc_cross
2558 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2559 if test $ac_cv_prog_cc_works = no
; then
2560 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2562 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2563 echo "configure:2564: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2564 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2565 cross_compiling
=$ac_cv_prog_cc_cross
2567 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2568 echo "configure:2569: checking whether we are using GNU C" >&5
2569 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 cat > conftest.c
<<EOF
2577 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2584 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2586 if test $ac_cv_prog_gcc = yes; then
2592 ac_test_CFLAGS
="${CFLAGS+set}"
2593 ac_save_CFLAGS
="$CFLAGS"
2595 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2596 echo "configure:2597: checking whether ${CC-cc} accepts -g" >&5
2597 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 echo 'void f(){}' > conftest.c
2601 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2610 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2611 if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS
="$ac_save_CFLAGS"
2613 elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2620 if test "$GCC" = yes; then
2628 ALL_LINGUAS
="fr sv tr es da de id pt_BR"
2629 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2630 echo "configure:2631: checking how to run the C preprocessor" >&5
2631 # On Suns, sometimes $CPP names a directory.
2632 if test -n "$CPP" && test -d "$CPP"; then
2635 if test -z "$CPP"; then
2636 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 # This must be in double quotes, not single quotes, because CPP may get
2640 # substituted into the Makefile and "${CC-cc}" will confuse make.
2642 # On the NeXT, cc -E runs the code through the compiler's parser,
2643 # not just through cpp.
2644 cat > conftest.
$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure
:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2660 CPP
="${CC-cc} -E -traditional-cpp"
2661 cat > conftest.
$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure
:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2674 echo "configure: failed program was:" >&5
2675 cat conftest.
$ac_ext >&5
2677 CPP
="${CC-cc} -nologo -E"
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2684 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure
:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2691 echo "configure: failed program was:" >&5
2692 cat conftest.
$ac_ext >&5
2701 ac_cv_prog_CPP
="$CPP"
2703 CPP
="$ac_cv_prog_CPP"
2705 ac_cv_prog_CPP
="$CPP"
2707 echo "$ac_t""$CPP" 1>&6
2709 # Extract the first word of "ranlib", so it can be a program name with args.
2710 set dummy ranlib
; ac_word
=$2
2711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_word" >&5
2713 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 if test -n "$RANLIB"; then
2717 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2719 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2721 for ac_dir
in $ac_dummy; do
2722 test -z "$ac_dir" && ac_dir
=.
2723 if test -f $ac_dir/$ac_word; then
2724 ac_cv_prog_RANLIB
="ranlib"
2729 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2732 RANLIB
="$ac_cv_prog_RANLIB"
2733 if test -n "$RANLIB"; then
2734 echo "$ac_t""$RANLIB" 1>&6
2736 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2740 echo "configure:2741: checking for ANSI C header files" >&5
2741 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure
:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2757 ac_cv_header_stdc
=yes
2760 echo "configure: failed program was:" >&5
2761 cat conftest.
$ac_ext >&5
2763 ac_cv_header_stdc
=no
2767 if test $ac_cv_header_stdc = yes; then
2768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2775 egrep "memchr" >/dev
/null
2>&1; then
2779 ac_cv_header_stdc
=no
2785 if test $ac_cv_header_stdc = yes; then
2786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2787 cat > conftest.
$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2793 egrep "free" >/dev
/null
2>&1; then
2797 ac_cv_header_stdc
=no
2803 if test $ac_cv_header_stdc = yes; then
2804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2805 if test "$cross_compiling" = yes; then
2808 cat > conftest.
$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2812 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2813 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2815 int main () { int i; for (i = 0; i < 256; i++)
2816 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2820 if { (eval echo configure
:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2824 echo "configure: failed program was:" >&5
2825 cat conftest.
$ac_ext >&5
2827 ac_cv_header_stdc
=no
2835 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2836 if test $ac_cv_header_stdc = yes; then
2837 cat >> confdefs.h
<<\EOF
2838 #define STDC_HEADERS 1
2843 echo $ac_n "checking for working const""... $ac_c" 1>&6
2844 echo "configure:2845: checking for working const" >&5
2845 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.
$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2854 /* Ultrix mips cc rejects this. */
2855 typedef int charset[2]; const charset x;
2856 /* SunOS 4.1.1 cc rejects this. */
2857 char const *const *ccp;
2859 /* NEC SVR4.0.2 mips cc rejects this. */
2860 struct point {int x, y;};
2861 static struct point const zero = {0,0};
2862 /* AIX XL C 1.02.0.0 rejects this.
2863 It does not let you subtract one const X* pointer from another in an arm
2864 of an if-expression whose if-part is not a constant expression */
2865 const char *g = "string";
2866 ccp = &g + (g ? g-g : 0);
2867 /* HPUX 7.0 cc rejects these. */
2870 ccp = (char const *const *) p;
2871 { /* SCO 3.2v4 cc rejects this. */
2873 char const *s = 0 ? (char *) 0 : (char const *) 0;
2877 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2879 const int *foo = &x[0];
2882 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2883 typedef const int *iptr;
2887 { /* AIX XL C 1.02.0.0 rejects this saying
2888 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2889 struct s { int j; const int *ap[3]; };
2890 struct s *b; b->j = 5;
2892 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2898 if { (eval echo configure
:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2910 echo "$ac_t""$ac_cv_c_const" 1>&6
2911 if test $ac_cv_c_const = no
; then
2912 cat >> confdefs.h
<<\EOF
2918 echo $ac_n "checking for inline""... $ac_c" 1>&6
2919 echo "configure:2920: checking for inline" >&5
2920 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2924 for ac_kw
in inline __inline__ __inline
; do
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2933 if { (eval echo configure
:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2935 ac_cv_c_inline
=$ac_kw; break
2937 echo "configure: failed program was:" >&5
2938 cat conftest.
$ac_ext >&5
2945 echo "$ac_t""$ac_cv_c_inline" 1>&6
2946 case "$ac_cv_c_inline" in
2948 no
) cat >> confdefs.h
<<\EOF
2952 *) cat >> confdefs.h
<<EOF
2953 #define inline $ac_cv_c_inline
2958 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2959 echo "configure:2960: checking for off_t" >&5
2960 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 #include <sys/types.h>
2972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2973 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2975 ac_cv_type_off_t
=yes
2983 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2984 if test $ac_cv_type_off_t = no
; then
2985 cat >> confdefs.h
<<\EOF
2991 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2992 echo "configure:2993: checking for size_t" >&5
2993 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.
$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 #include <sys/types.h>
3005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3006 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3008 ac_cv_type_size_t
=yes
3011 ac_cv_type_size_t
=no
3016 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3017 if test $ac_cv_type_size_t = no
; then
3018 cat >> confdefs.h
<<\EOF
3019 #define size_t unsigned
3024 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3025 # for constant arguments. Useless!
3026 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working alloca.h" >&5
3028 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3036 char *p = alloca(2 * sizeof(int));
3039 if { (eval echo configure
:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3041 ac_cv_header_alloca_h
=yes
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 ac_cv_header_alloca_h
=no
3051 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3052 if test $ac_cv_header_alloca_h = yes; then
3053 cat >> confdefs.h
<<\EOF
3054 #define HAVE_ALLOCA_H 1
3059 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3060 echo "configure:3061: checking for alloca" >&5
3061 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3069 # define alloca __builtin_alloca
3072 # include <malloc.h>
3073 # define alloca _alloca
3076 # include <alloca.h>
3081 # ifndef alloca /* predefined by HP cc +Olibcalls */
3090 char *p = (char *) alloca(1);
3093 if { (eval echo configure
:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3095 ac_cv_func_alloca_works
=yes
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 ac_cv_func_alloca_works
=no
3105 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3106 if test $ac_cv_func_alloca_works = yes; then
3107 cat >> confdefs.h
<<\EOF
3108 #define HAVE_ALLOCA 1
3113 if test $ac_cv_func_alloca_works = no
; then
3114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3115 # that cause trouble. Some versions do not even contain alloca or
3116 # contain a buggy version. If you still want to use their alloca,
3117 # use ar to extract alloca.o from them instead of compiling alloca.c.
3118 ALLOCA
=alloca.
${ac_objext}
3119 cat >> confdefs.h
<<\EOF
3124 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3125 echo "configure:3126: checking whether alloca needs Cray hooks" >&5
3126 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #if defined(CRAY) && ! defined(CRAY2)
3139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3140 egrep "webecray" >/dev
/null
2>&1; then
3151 echo "$ac_t""$ac_cv_os_cray" 1>&6
3152 if test $ac_cv_os_cray = yes; then
3153 for ac_func
in _getb67 GETB67 getb67
; do
3154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_func" >&5
3156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 /* System header to define __stub macros and hopefully few prototypes,
3163 which can conflict with char $ac_func(); below. */
3165 /* Override any gcc2 internal prototype to avoid an error. */
3166 /* We use char because int might match the return type of a gcc2
3167 builtin and then its argument prototype would still apply. */
3172 /* The GNU C library defines this for functions which it implements
3173 to always fail with ENOSYS. Some functions are actually named
3174 something starting with __ and the normal name is an alias. */
3175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3183 if { (eval echo configure
:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3185 eval "ac_cv_func_$ac_func=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.
$ac_ext >&5
3190 eval "ac_cv_func_$ac_func=no"
3195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3197 cat >> confdefs.h
<<EOF
3198 #define CRAY_STACKSEG_END $ac_func
3203 echo "$ac_t""no" 1>&6
3209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3210 echo "configure:3211: checking stack direction for C alloca" >&5
3211 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 if test "$cross_compiling" = yes; then
3215 ac_cv_c_stack_direction
=0
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 find_stack_direction ()
3222 static char *addr = 0;
3227 return find_stack_direction ();
3230 return (&dummy > addr) ? 1 : -1;
3234 exit (find_stack_direction() < 0);
3237 if { (eval echo configure
:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3239 ac_cv_c_stack_direction
=1
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 ac_cv_c_stack_direction
=-1
3251 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3252 cat >> confdefs.h
<<EOF
3253 #define STACK_DIRECTION $ac_cv_c_stack_direction
3258 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
3260 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3262 echo "configure:3263: checking for $ac_hdr" >&5
3263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3271 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3272 { (eval echo configure
:3273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3273 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3274 if test -z "$ac_err"; then
3276 eval "ac_cv_header_$ac_safe=yes"
3279 echo "configure: failed program was:" >&5
3280 cat conftest.
$ac_ext >&5
3282 eval "ac_cv_header_$ac_safe=no"
3286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3289 cat >> confdefs.h
<<EOF
3290 #define $ac_tr_hdr 1
3294 echo "$ac_t""no" 1>&6
3298 for ac_func
in getpagesize
3300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_func" >&5
3302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 cat > conftest.
$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* System header to define __stub macros and hopefully few prototypes,
3309 which can conflict with char $ac_func(); below. */
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3318 /* The GNU C library defines this for functions which it implements
3319 to always fail with ENOSYS. Some functions are actually named
3320 something starting with __ and the normal name is an alias. */
3321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3329 if { (eval echo configure
:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3331 eval "ac_cv_func_$ac_func=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.
$ac_ext >&5
3336 eval "ac_cv_func_$ac_func=no"
3341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3344 cat >> confdefs.h
<<EOF
3345 #define $ac_tr_func 1
3349 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3354 echo "configure:3355: checking for working mmap" >&5
3355 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 if test "$cross_compiling" = yes; then
3359 ac_cv_func_mmap_fixed_mapped
=no
3361 cat > conftest.
$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3365 /* Thanks to Mike Haertel and Jim Avera for this test.
3366 Here is a matrix of mmap possibilities:
3367 mmap private not fixed
3368 mmap private fixed at somewhere currently unmapped
3369 mmap private fixed at somewhere already mapped
3370 mmap shared not fixed
3371 mmap shared fixed at somewhere currently unmapped
3372 mmap shared fixed at somewhere already mapped
3373 For private mappings, we should verify that changes cannot be read()
3374 back from the file, nor mmap's back from the file at a different
3375 address. (There have been systems where private was not correctly
3376 implemented like the infamous i386 svr4.0, and systems where the
3377 VM page cache was not coherent with the filesystem buffer cache
3378 like early versions of FreeBSD and possibly contemporary NetBSD.)
3379 For shared mappings, we should conversely verify that changes get
3380 propogated back to all the places they're supposed to be.
3382 Grep wants private fixed already mapped.
3383 The main things grep needs to know about mmap are:
3384 * does it exist and is it safe to write into the mmap'd area
3385 * how to use it (BSD variants) */
3386 #include <sys/types.h>
3388 #include <sys/mman.h>
3390 #if HAVE_SYS_TYPES_H
3391 # include <sys/types.h>
3395 # include <stdlib.h>
3399 # include <sys/stat.h>
3403 # include <unistd.h>
3406 /* This mess was copied from the GNU getpagesize.h. */
3407 #ifndef HAVE_GETPAGESIZE
3409 /* Assume that all systems that can run configure have sys/param.h. */
3410 # ifndef HAVE_SYS_PARAM_H
3411 # define HAVE_SYS_PARAM_H 1
3414 # ifdef _SC_PAGESIZE
3415 # define getpagesize() sysconf(_SC_PAGESIZE)
3416 # else /* no _SC_PAGESIZE */
3417 # ifdef HAVE_SYS_PARAM_H
3418 # include <sys/param.h>
3419 # ifdef EXEC_PAGESIZE
3420 # define getpagesize() EXEC_PAGESIZE
3421 # else /* no EXEC_PAGESIZE */
3423 # define getpagesize() NBPG * CLSIZE
3426 # endif /* no CLSIZE */
3427 # else /* no NBPG */
3429 # define getpagesize() NBPC
3430 # else /* no NBPC */
3432 # define getpagesize() PAGESIZE
3433 # endif /* PAGESIZE */
3434 # endif /* no NBPC */
3435 # endif /* no NBPG */
3436 # endif /* no EXEC_PAGESIZE */
3437 # else /* no HAVE_SYS_PARAM_H */
3438 # define getpagesize() 8192 /* punt totally */
3439 # endif /* no HAVE_SYS_PARAM_H */
3440 # endif /* no _SC_PAGESIZE */
3442 #endif /* no HAVE_GETPAGESIZE */
3445 extern "C" { void *malloc(unsigned); }
3453 char *data, *data2, *data3;
3457 pagesize = getpagesize();
3460 * First, make a file with some known garbage in it.
3462 data = malloc(pagesize);
3465 for (i = 0; i < pagesize; ++i)
3466 *(data + i) = rand();
3468 fd = creat("conftestmmap", 0600);
3471 if (write(fd, data, pagesize) != pagesize)
3476 * Next, try to mmap the file at a fixed address which
3477 * already has something else allocated at it. If we can,
3478 * also make sure that we see the same garbage.
3480 fd = open("conftestmmap", O_RDWR);
3483 data2 = malloc(2 * pagesize);
3486 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3487 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3490 for (i = 0; i < pagesize; ++i)
3491 if (*(data + i) != *(data2 + i))
3495 * Finally, make sure that changes to the mapped area
3496 * do not percolate back to the file as seen by read().
3497 * (This is a bug on some variants of i386 svr4.0.)
3499 for (i = 0; i < pagesize; ++i)
3500 *(data2 + i) = *(data2 + i) + 1;
3501 data3 = malloc(pagesize);
3504 if (read(fd, data3, pagesize) != pagesize)
3506 for (i = 0; i < pagesize; ++i)
3507 if (*(data + i) != *(data3 + i))
3510 unlink("conftestmmap");
3515 if { (eval echo configure
:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3517 ac_cv_func_mmap_fixed_mapped
=yes
3519 echo "configure: failed program was:" >&5
3520 cat conftest.
$ac_ext >&5
3522 ac_cv_func_mmap_fixed_mapped
=no
3529 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3531 cat >> confdefs.h
<<\EOF
3538 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3539 unistd.h values.h sys
/param.h
3541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3543 echo "configure:3544: checking for $ac_hdr" >&5
3544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.
$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3553 { (eval echo configure
:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3555 if test -z "$ac_err"; then
3557 eval "ac_cv_header_$ac_safe=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.
$ac_ext >&5
3563 eval "ac_cv_header_$ac_safe=no"
3567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3570 cat >> confdefs.h
<<EOF
3571 #define $ac_tr_hdr 1
3575 echo "$ac_t""no" 1>&6
3579 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3580 __argz_count __argz_stringify __argz_next
3582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3583 echo "configure:3584: checking for $ac_func" >&5
3584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 /* System header to define __stub macros and hopefully few prototypes,
3591 which can conflict with char $ac_func(); below. */
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3600 /* The GNU C library defines this for functions which it implements
3601 to always fail with ENOSYS. Some functions are actually named
3602 something starting with __ and the normal name is an alias. */
3603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3611 if { (eval echo configure
:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3613 eval "ac_cv_func_$ac_func=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3618 eval "ac_cv_func_$ac_func=no"
3623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3626 cat >> confdefs.h
<<EOF
3627 #define $ac_tr_func 1
3631 echo "$ac_t""no" 1>&6
3636 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3637 for ac_func
in stpcpy
3639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3640 echo "configure:3641: checking for $ac_func" >&5
3641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 cat > conftest.
$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 /* System header to define __stub macros and hopefully few prototypes,
3648 which can conflict with char $ac_func(); below. */
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3657 /* The GNU C library defines this for functions which it implements
3658 to always fail with ENOSYS. Some functions are actually named
3659 something starting with __ and the normal name is an alias. */
3660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3668 if { (eval echo configure
:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3670 eval "ac_cv_func_$ac_func=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 eval "ac_cv_func_$ac_func=no"
3680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3683 cat >> confdefs.h
<<EOF
3684 #define $ac_tr_func 1
3688 echo "$ac_t""no" 1>&6
3693 if test "${ac_cv_func_stpcpy}" = "yes"; then
3694 cat >> confdefs.h
<<\EOF
3695 #define HAVE_STPCPY 1
3700 if test $ac_cv_header_locale_h = yes; then
3701 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3702 echo "configure:3703: checking for LC_MESSAGES" >&5
3703 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3716 am_cv_val_LC_MESSAGES
=yes
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3721 am_cv_val_LC_MESSAGES
=no
3726 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3727 if test $am_cv_val_LC_MESSAGES = yes; then
3728 cat >> confdefs.h
<<\EOF
3729 #define HAVE_LC_MESSAGES 1
3734 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3735 echo "configure:3736: checking whether NLS is requested" >&5
3736 # Check whether --enable-nls or --disable-nls was given.
3737 if test "${enable_nls+set}" = set; then
3738 enableval
="$enable_nls"
3744 echo "$ac_t""$USE_NLS" 1>&6
3747 USE_INCLUDED_LIBINTL
=no
3749 if test "$USE_NLS" = "yes"; then
3750 cat >> confdefs.h
<<\EOF
3751 #define ENABLE_NLS 1
3754 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3755 echo "configure:3756: checking whether included gettext is requested" >&5
3756 # Check whether --with-included-gettext or --without-included-gettext was given.
3757 if test "${with_included_gettext+set}" = set; then
3758 withval
="$with_included_gettext"
3759 nls_cv_force_use_gnu_gettext
=$withval
3761 nls_cv_force_use_gnu_gettext
=no
3764 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3766 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3767 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3769 nls_cv_header_libgt
=
3772 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3774 echo "configure:3775: checking for libintl.h" >&5
3775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.
$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <libintl.h>
3783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure
:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3788 eval "ac_cv_header_$ac_safe=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3794 eval "ac_cv_header_$ac_safe=no"
3798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3801 echo "configure:3802: checking for gettext in libc" >&5
3802 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 cat > conftest.
$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 #include <libintl.h>
3810 return (int) gettext ("")
3813 if { (eval echo configure
:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3815 gt_cv_func_gettext_libc
=yes
3817 echo "configure: failed program was:" >&5
3818 cat conftest.
$ac_ext >&5
3820 gt_cv_func_gettext_libc
=no
3825 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3827 if test "$gt_cv_func_gettext_libc" != "yes"; then
3828 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3829 echo "configure:3830: checking for bindtextdomain in -lintl" >&5
3830 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 ac_save_LIBS
="$LIBS"
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char bindtextdomain();
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 eval "ac_cv_lib_$ac_lib_var=no"
3858 LIBS
="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for gettext in libintl" >&5
3865 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 return (int) gettext ("")
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3878 gt_cv_func_gettext_libintl
=yes
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3883 gt_cv_func_gettext_libintl
=no
3888 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3890 echo "$ac_t""no" 1>&6
3895 if test "$gt_cv_func_gettext_libc" = "yes" \
3896 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3897 cat >> confdefs.h
<<\EOF
3898 #define HAVE_GETTEXT 1
3901 # Extract the first word of "msgfmt", so it can be a program name with args.
3902 set dummy msgfmt
; ac_word
=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3914 for ac_dir
in $PATH; do
3915 test -z "$ac_dir" && ac_dir
=.
3916 if test -f $ac_dir/$ac_word; then
3917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3918 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3924 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3928 MSGFMT
="$ac_cv_path_MSGFMT"
3929 if test -n "$MSGFMT"; then
3930 echo "$ac_t""$MSGFMT" 1>&6
3932 echo "$ac_t""no" 1>&6
3934 if test "$MSGFMT" != "no"; then
3935 for ac_func
in dcgettext
3937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_func" >&5
3939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func(); below. */
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3955 /* The GNU C library defines this for functions which it implements
3956 to always fail with ENOSYS. Some functions are actually named
3957 something starting with __ and the normal name is an alias. */
3958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3966 if { (eval echo configure
:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3968 eval "ac_cv_func_$ac_func=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3973 eval "ac_cv_func_$ac_func=no"
3978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3981 cat >> confdefs.h
<<EOF
3982 #define $ac_tr_func 1
3986 echo "$ac_t""no" 1>&6
3990 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3991 set dummy gmsgfmt
; ac_word
=$2
3992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_word" >&5
3994 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4002 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4007 for ac_dir
in $ac_dummy; do
4008 test -z "$ac_dir" && ac_dir
=.
4009 if test -f $ac_dir/$ac_word; then
4010 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4015 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4019 GMSGFMT
="$ac_cv_path_GMSGFMT"
4020 if test -n "$GMSGFMT"; then
4021 echo "$ac_t""$GMSGFMT" 1>&6
4023 echo "$ac_t""no" 1>&6
4026 # Extract the first word of "xgettext", so it can be a program name with args.
4027 set dummy xgettext
; ac_word
=$2
4028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_word" >&5
4030 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4035 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4039 for ac_dir
in $PATH; do
4040 test -z "$ac_dir" && ac_dir
=.
4041 if test -f $ac_dir/$ac_word; then
4042 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4043 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4049 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4053 XGETTEXT
="$ac_cv_path_XGETTEXT"
4054 if test -n "$XGETTEXT"; then
4055 echo "$ac_t""$XGETTEXT" 1>&6
4057 echo "$ac_t""no" 1>&6
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4065 extern int _nl_msg_cat_cntr;
4066 return _nl_msg_cat_cntr
4069 if { (eval echo configure
:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4074 echo "configure: failed program was:" >&5
4075 cat conftest.
$ac_ext >&5
4086 echo "$ac_t""no" 1>&6
4091 if test "$CATOBJEXT" = "NONE"; then
4092 nls_cv_use_gnu_gettext
=yes
4096 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4097 INTLOBJS
="\$(GETTOBJS)"
4098 # Extract the first word of "msgfmt", so it can be a program name with args.
4099 set dummy msgfmt
; ac_word
=$2
4100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_word" >&5
4102 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4107 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4111 for ac_dir
in $PATH; do
4112 test -z "$ac_dir" && ac_dir
=.
4113 if test -f $ac_dir/$ac_word; then
4114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4115 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4121 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4125 MSGFMT
="$ac_cv_path_MSGFMT"
4126 if test -n "$MSGFMT"; then
4127 echo "$ac_t""$MSGFMT" 1>&6
4129 echo "$ac_t""no" 1>&6
4132 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4133 set dummy gmsgfmt
; ac_word
=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4141 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4144 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4149 for ac_dir
in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir
=.
4151 if test -f $ac_dir/$ac_word; then
4152 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4157 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4161 GMSGFMT
="$ac_cv_path_GMSGFMT"
4162 if test -n "$GMSGFMT"; then
4163 echo "$ac_t""$GMSGFMT" 1>&6
4165 echo "$ac_t""no" 1>&6
4168 # Extract the first word of "xgettext", so it can be a program name with args.
4169 set dummy xgettext
; ac_word
=$2
4170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_word" >&5
4172 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4177 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4181 for ac_dir
in $PATH; do
4182 test -z "$ac_dir" && ac_dir
=.
4183 if test -f $ac_dir/$ac_word; then
4184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4185 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4191 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4195 XGETTEXT
="$ac_cv_path_XGETTEXT"
4196 if test -n "$XGETTEXT"; then
4197 echo "$ac_t""$XGETTEXT" 1>&6
4199 echo "$ac_t""no" 1>&6
4203 USE_INCLUDED_LIBINTL
=yes
4207 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4209 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4210 nls_cv_header_intl
=libintl.h
4211 nls_cv_header_libgt
=libgettext.h
4214 if test "$XGETTEXT" != ":"; then
4215 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4218 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4223 # We need to process the po/ directory.
4227 nls_cv_header_intl
=libintl.h
4228 nls_cv_header_libgt
=libgettext.h
4231 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4232 # because some of the sources are only built for this goal.
4233 if test "$PACKAGE" = gettext; then
4235 USE_INCLUDED_LIBINTL
=yes
4238 for lang
in $ALL_LINGUAS; do
4239 GMOFILES
="$GMOFILES $lang.gmo"
4240 POFILES
="$POFILES $lang.po"
4256 if test "x$CATOBJEXT" != "x"; then
4257 if test "x$ALL_LINGUAS" = "x"; then
4260 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4261 echo "configure:4262: checking for catalogs to be installed" >&5
4263 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4264 case "$ALL_LINGUAS" in
4265 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4268 LINGUAS
=$NEW_LINGUAS
4269 echo "$ac_t""$LINGUAS" 1>&6
4272 if test -n "$LINGUAS"; then
4273 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4277 if test $ac_cv_header_locale_h = yes; then
4278 INCLUDE_LOCALE_H
="#include <locale.h>"
4281 /* The system does not provide the header <locale.h>. Take care yourself. */"
4285 if test -f $srcdir/po2tbl.
sed.
in; then
4286 if test "$CATOBJEXT" = ".cat"; then
4287 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4288 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4289 echo "configure:4290: checking for linux/version.h" >&5
4290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 #include <linux/version.h>
4298 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4299 { (eval echo configure
:4300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4300 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4301 if test -z "$ac_err"; then
4303 eval "ac_cv_header_$ac_safe=yes"
4306 echo "configure: failed program was:" >&5
4307 cat conftest.
$ac_ext >&5
4309 eval "ac_cv_header_$ac_safe=no"
4313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4314 echo "$ac_t""yes" 1>&6
4317 echo "$ac_t""no" 1>&6
4322 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4324 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4325 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4328 if test "$PACKAGE" = "gettext"; then
4338 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4344 if test -f $srcdir/po
/POTFILES.
in; then
4345 test -d po || mkdir po
4346 if test "x$srcdir" != "x."; then
4347 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4348 posrcprefix
="$srcdir/"
4350 posrcprefix
="../$srcdir/"
4356 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4357 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4361 .
${srcdir}/..
/bfd
/configure.
host
4363 # Put a plausible default for CC_FOR_BUILD in Makefile.
4364 if test -z "$CC_FOR_BUILD"; then
4365 if test "x$cross_compiling" = "xno"; then
4366 CC_FOR_BUILD
='$(CC)'
4372 # Also set EXEEXT_FOR_BUILD.
4373 if test "x$cross_compiling" = "xno"; then
4374 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4376 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4377 echo "configure:4378: checking for build system executable suffix" >&5
4378 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4382 echo 'int main () { return 0; }' > conftest.c
4383 bfd_cv_build_exeext
=
4384 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4385 for file in conftest.
*; do
4387 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4388 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4392 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4395 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4397 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4402 # Find a good install program. We prefer a C program (faster),
4403 # so one script is as good as another. But avoid the broken or
4404 # incompatible versions:
4405 # SysV /etc/install, /usr/sbin/install
4406 # SunOS /usr/etc/install
4407 # IRIX /sbin/install
4409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4412 # ./install, which can be erroneously created by make from ./install.sh.
4413 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4414 echo "configure:4415: checking for a BSD compatible install" >&5
4415 if test -z "$INSTALL"; then
4416 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4420 for ac_dir
in $PATH; do
4421 # Account for people who put trailing slashes in PATH elements.
4423 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4425 # OSF1 and SCO ODT 3.0 have their own names for install.
4426 # Don't use installbsd from OSF since it installs stuff as root
4428 for ac_prog
in ginstall scoinst
install; do
4429 if test -f $ac_dir/$ac_prog; then
4430 if test $ac_prog = install &&
4431 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4432 # AIX install. It has an incompatible calling convention.
4435 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4446 if test "${ac_cv_path_install+set}" = set; then
4447 INSTALL
="$ac_cv_path_install"
4449 # As a last resort, use the slow shell script. We don't cache a
4450 # path for INSTALL within a source directory, because that will
4451 # break other packages using the cache if that directory is
4452 # removed, or if the path is relative.
4453 INSTALL
="$ac_install_sh"
4456 echo "$ac_t""$INSTALL" 1>&6
4458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4459 # It thinks the first close brace ends the variable substitution.
4460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4464 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4467 for ac_hdr
in string.h
strings.h stdlib.h
4469 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_hdr" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 cat > conftest.
$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4480 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure
:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4483 if test -z "$ac_err"; then
4485 eval "ac_cv_header_$ac_safe=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 eval "ac_cv_header_$ac_safe=no"
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4498 cat >> confdefs.h
<<EOF
4499 #define $ac_tr_hdr 1
4503 echo "$ac_t""no" 1>&6
4509 cgendir
='$(srcdir)/../cgen'
4511 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4512 if test "${enable_cgen_maint+set}" = set; then
4513 enableval
="$enable_cgen_maint"
4514 case "${enableval}" in
4515 yes) cgen_maint
=yes ;;
4516 no
) cgen_maint
=no
;;
4518 # argument is cgen install directory (not implemented yet).
4519 # Having a `share' directory might be more appropriate for the .scm,
4522 cgendir
=${cgen_maint}/lib
/cgen
4528 if test x
${cgen_maint} = xyes
; then
4530 CGEN_MAINT_FALSE
='#'
4539 # Horrible hacks to build DLLs on Windows.
4544 if test "$enable_shared" = "yes"; then
4545 WIN32LDFLAGS
="-no-undefined"
4546 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4553 # target-specific stuff:
4555 # Canonicalize the secondary target names.
4556 if test -n "$enable_targets" ; then
4557 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4559 result
=`$ac_config_sub $targ 2>/dev/null`
4560 if test -n "$result" ; then
4561 canon_targets
="$canon_targets $result"
4563 # Allow targets that config.sub doesn't recognize, like "all".
4564 canon_targets
="$canon_targets $targ"
4571 for targ
in $target $canon_targets
4573 if test "x$targ" = "xall" ; then
4576 .
$srcdir/..
/bfd
/config.bfd
4577 selarchs
="$selarchs $targ_archs"
4581 # Utility var, documents generic cgen support files.
4583 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4585 # We don't do any links based on the target system, just makefile config.
4587 if test x
${all_targets} = xfalse
; then
4589 # Target architecture .o files.
4592 for arch
in $selarchs
4594 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4595 archdefs
="$archdefs -DARCH_$ad"
4597 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
4598 bfd_alliant_arch
) ;;
4599 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
4600 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4601 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
4602 bfd_avr_arch
) ta
="$ta avr-dis.lo" ;;
4604 bfd_cris_arch
) ta
="$ta cris-dis.lo cris-opc.lo" ;;
4605 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
4606 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
4607 bfd_dlx_arch
) ta
="$ta dlx-dis.lo" ;;
4608 bfd_fr30_arch
) ta
="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen
=yes ;;
4609 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
4610 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
4611 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
4612 bfd_i370_arch
) ta
="$ta i370-dis.lo i370-opc.lo" ;;
4613 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
4614 bfd_i860_arch
) ta
="$ta i860-dis.lo" ;;
4615 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
4616 bfd_ia64_arch
) ta
="$ta ia64-dis.lo ia64-opc.lo" ;;
4617 bfd_ip2k_arch
) ta
="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen
=yes ;;
4618 bfd_iq2000_arch
) ta
="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen
=yes ;;
4619 bfd_m32r_arch
) ta
="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen
=yes ;;
4620 bfd_m68hc11_arch
) ta
="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4621 bfd_m68hc12_arch
) ta
="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4622 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
4623 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
4624 bfd_mcore_arch
) ta
="$ta mcore-dis.lo" ;;
4625 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4626 bfd_mmix_arch
) ta
="$ta mmix-dis.lo mmix-opc.lo" ;;
4627 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
4628 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
4629 bfd_msp430_arch
) ta
="$ta msp430-dis.lo" ;;
4630 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
4631 bfd_openrisc_arch
) ta
="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen
=yes ;;
4632 bfd_or32_arch
) ta
="$ta or32-dis.lo or32-opc.lo" using_cgen
=yes ;;
4633 bfd_pdp11_arch
) ta
="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4634 bfd_pj_arch
) ta
="$ta pj-dis.lo pj-opc.lo" ;;
4635 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4636 bfd_powerpc_64_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4637 bfd_pyramid_arch
) ;;
4639 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4640 bfd_s390_arch
) ta
="$ta s390-dis.lo s390-opc.lo" ;;
4642 # We can't decide what we want just from the CPU family.
4643 # We want SH5 support unless a specific version of sh is
4644 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
4645 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
4646 for t
in $target $canon_targets; do
4648 all | sh5
*-* | sh64
*-* | sh-
*-*elf
* | shl
*-*-*elf
* | \
4649 sh-
*-linux* | shl-
*-linux*)
4650 ta
="$ta sh64-dis.lo sh64-opc.lo"
4651 archdefs
="$archdefs -DINCLUDE_SHMEDIA"
4655 ta
="$ta sh-dis.lo" ;;
4656 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
4658 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
4659 bfd_tic4x_arch
) ta
="$ta tic4x-dis.lo" ;;
4660 bfd_tic54x_arch
) ta
="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4661 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
4662 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4663 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4664 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4665 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
4666 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
4668 bfd_xstormy16_arch
) ta
="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen
=yes ;;
4669 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
4670 bfd_frv_arch
) ta
="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen
=yes ;;
4673 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4677 if test $using_cgen = yes ; then
4678 ta
="$ta $cgen_files"
4681 # Weed out duplicate .o files.
4691 # And duplicate -D flags.
4693 for i
in $archdefs ; do
4703 else # all_targets is true
4705 BFD_MACHINES
='$(ALL_MACHINES)'
4712 cat > confcache
<<\EOF
4713 # This file is a shell script that caches the results of configure
4714 # tests run on this system so they can be shared between configure
4715 # scripts and configure runs. It is not useful on other systems.
4716 # If it contains results you don't want to keep, you may remove or edit it.
4718 # By default, configure uses ./config.cache as the cache file,
4719 # creating it if it does not exist already. You can give configure
4720 # the --cache-file=FILE option to use a different cache file; that is
4721 # what configure does when it calls configure scripts in
4722 # subdirectories, so they share the cache.
4723 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4724 # config.status only pays attention to the cache file if you give it the
4725 # --recheck option to rerun configure.
4728 # The following way of writing the cache mishandles newlines in values,
4729 # but we know of no workaround that is simple, portable, and efficient.
4730 # So, don't put newlines in cache variables' values.
4731 # Ultrix sh set writes to stderr and can't be redirected directly,
4732 # and sets the high bit in the cache file unless we assign to the vars.
4734 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4736 # `set' does not quote correctly, so add quotes (double-quote substitution
4737 # turns \\\\ into \\, and sed turns \\ into \).
4739 -e "s/'/'\\\\''/g" \
4740 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4743 # `set' quotes correctly as required by POSIX, so do not add quotes.
4744 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4747 if cmp -s $cache_file confcache
; then
4750 if test -w $cache_file; then
4751 echo "updating cache $cache_file"
4752 cat confcache
> $cache_file
4754 echo "not updating unwritable cache $cache_file"
4759 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4761 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4762 # Let make expand exec_prefix.
4763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4765 # Any assignment to VPATH causes Sun make to only execute
4766 # the first set of double-colon rules, so remove it if not needed.
4767 # If there is a colon in the path, we need to keep it.
4768 if test "x$srcdir" = x.
; then
4769 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4772 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4774 DEFS
=-DHAVE_CONFIG_H
4776 # Without the "./", some shells look in PATH for config.status.
4777 : ${CONFIG_STATUS=./config.status}
4779 echo creating
$CONFIG_STATUS
4780 rm -f $CONFIG_STATUS
4781 cat > $CONFIG_STATUS <<EOF
4783 # Generated automatically by configure.
4784 # Run this file to recreate the current configuration.
4785 # This directory was configured as follows,
4786 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4788 # $0 $ac_configure_args
4790 # Compiler output produced by configure, useful for debugging
4791 # configure, is in ./config.log if it exists.
4793 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4796 case "\$ac_option" in
4797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4798 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4799 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4800 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4801 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4803 -help | --help | --hel | --he | --h)
4804 echo "\$ac_cs_usage"; exit 0 ;;
4805 *) echo "\$ac_cs_usage"; exit 1 ;;
4809 ac_given_srcdir=$srcdir
4810 ac_given_INSTALL="$INSTALL"
4812 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4814 cat >> $CONFIG_STATUS <<EOF
4816 # Protect against being on the right side of a sed subst in config.status.
4817 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4818 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4822 s%@CFLAGS@%$CFLAGS%g
4823 s%@CPPFLAGS@%$CPPFLAGS%g
4824 s%@CXXFLAGS@%$CXXFLAGS%g
4825 s%@FFLAGS@%$FFLAGS%g
4827 s%@LDFLAGS@%$LDFLAGS%g
4829 s%@exec_prefix@%$exec_prefix%g
4830 s%@prefix@%$prefix%g
4831 s%@program_transform_name@%$program_transform_name%g
4832 s%@bindir@%$bindir%g
4833 s%@sbindir@%$sbindir%g
4834 s%@libexecdir@%$libexecdir%g
4835 s%@datadir@%$datadir%g
4836 s%@sysconfdir@%$sysconfdir%g
4837 s%@sharedstatedir@%$sharedstatedir%g
4838 s%@localstatedir@%$localstatedir%g
4839 s%@libdir@%$libdir%g
4840 s%@includedir@%$includedir%g
4841 s%@oldincludedir@%$oldincludedir%g
4842 s%@infodir@%$infodir%g
4843 s%@mandir@%$mandir%g
4845 s%@host_alias@%$host_alias%g
4846 s%@host_cpu@%$host_cpu%g
4847 s%@host_vendor@%$host_vendor%g
4848 s%@host_os@%$host_os%g
4849 s%@target@%$target%g
4850 s%@target_alias@%$target_alias%g
4851 s%@target_cpu@%$target_cpu%g
4852 s%@target_vendor@%$target_vendor%g
4853 s%@target_os@%$target_os%g
4855 s%@build_alias@%$build_alias%g
4856 s%@build_cpu@%$build_cpu%g
4857 s%@build_vendor@%$build_vendor%g
4858 s%@build_os@%$build_os%g
4860 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4861 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4862 s%@INSTALL_DATA@%$INSTALL_DATA%g
4863 s%@PACKAGE@%$PACKAGE%g
4864 s%@VERSION@%$VERSION%g
4865 s%@ACLOCAL@%$ACLOCAL%g
4866 s%@AUTOCONF@%$AUTOCONF%g
4867 s%@AUTOMAKE@%$AUTOMAKE%g
4868 s%@AUTOHEADER@%$AUTOHEADER%g
4869 s%@MAKEINFO@%$MAKEINFO%g
4870 s%@SET_MAKE@%$SET_MAKE%g
4872 s%@RANLIB@%$RANLIB%g
4874 s%@OBJEXT@%$OBJEXT%g
4875 s%@EXEEXT@%$EXEEXT%g
4877 s%@LIBTOOL@%$LIBTOOL%g
4878 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4879 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4880 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4882 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
4883 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
4884 s%@bfdlibdir@%$bfdlibdir%g
4885 s%@bfdincludedir@%$bfdincludedir%g
4887 s%@ALLOCA@%$ALLOCA%g
4888 s%@USE_NLS@%$USE_NLS%g
4889 s%@MSGFMT@%$MSGFMT%g
4890 s%@GMSGFMT@%$GMSGFMT%g
4891 s%@XGETTEXT@%$XGETTEXT%g
4892 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4893 s%@CATALOGS@%$CATALOGS%g
4894 s%@CATOBJEXT@%$CATOBJEXT%g
4895 s%@DATADIRNAME@%$DATADIRNAME%g
4896 s%@GMOFILES@%$GMOFILES%g
4897 s%@INSTOBJEXT@%$INSTOBJEXT%g
4898 s%@INTLDEPS@%$INTLDEPS%g
4899 s%@INTLLIBS@%$INTLLIBS%g
4900 s%@INTLOBJS@%$INTLOBJS%g
4901 s%@POFILES@%$POFILES%g
4903 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4905 s%@GT_YES@%$GT_YES%g
4906 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4908 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4909 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4910 s%@HDEFINES@%$HDEFINES%g
4911 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4912 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4913 s%@cgendir@%$cgendir%g
4914 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4915 s%@WIN32LIBADD@%$WIN32LIBADD%g
4916 s%@archdefs@%$archdefs%g
4917 s%@BFD_MACHINES@%$BFD_MACHINES%g
4922 cat >> $CONFIG_STATUS <<\EOF
4924 # Split the substitutions into bite-sized pieces for seds with
4925 # small command number limits, like on Digital OSF/1 and HP-UX.
4926 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4927 ac_file
=1 # Number of current file.
4928 ac_beg
=1 # First line for current file.
4929 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4932 while $ac_more_lines; do
4933 if test $ac_beg -gt 1; then
4934 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4936 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4938 if test ! -s conftest.s
$ac_file; then
4940 rm -f conftest.s
$ac_file
4942 if test -z "$ac_sed_cmds"; then
4943 ac_sed_cmds
="sed -f conftest.s$ac_file"
4945 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4947 ac_file
=`expr $ac_file + 1`
4949 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4952 if test -z "$ac_sed_cmds"; then
4957 cat >> $CONFIG_STATUS <<EOF
4959 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4961 cat >> $CONFIG_STATUS <<\EOF
4962 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4965 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4966 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4967 *) ac_file_in
="${ac_file}.in" ;;
4970 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4972 # Remove last slash and all that follows it. Not all systems have dirname.
4973 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4974 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4975 # The file is in a subdirectory.
4976 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4977 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4978 # A "../" for each directory in $ac_dir_suffix.
4979 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4981 ac_dir_suffix
= ac_dots
=
4984 case "$ac_given_srcdir" in
4986 if test -z "$ac_dots"; then top_srcdir
=.
4987 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4988 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4990 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4991 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4994 case "$ac_given_INSTALL" in
4995 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4996 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4999 echo creating
"$ac_file"
5001 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5003 *Makefile
*) ac_comsub
="1i\\
5004 # $configure_input" ;;
5008 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5010 s%@configure_input@%$configure_input%g
5011 s%@srcdir@%$srcdir%g
5012 s%@top_srcdir@%$top_srcdir%g
5013 s%@INSTALL@%$INSTALL%g
5014 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5018 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5019 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5021 # ac_d sets the value in "#define NAME VALUE" lines.
5022 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5023 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5026 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5027 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5028 ac_uB
='\([ ]\)%\1#\2define\3'
5031 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5032 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5033 ac_eB
='$%\1#\2define\3'
5037 if test "${CONFIG_HEADERS+set}" != set; then
5039 cat >> $CONFIG_STATUS <<EOF
5040 CONFIG_HEADERS="config.h:config.in"
5042 cat >> $CONFIG_STATUS <<\EOF
5044 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5047 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5048 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5049 *) ac_file_in
="${ac_file}.in" ;;
5052 echo creating
$ac_file
5054 rm -f conftest.frag conftest.
in conftest.out
5055 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5056 cat $ac_file_inputs > conftest.
in
5060 # Transform confdefs.h into a sed script conftest.vals that substitutes
5061 # the proper values into config.h.in to produce config.h. And first:
5062 # Protect against being on the right side of a sed subst in config.status.
5063 # Protect against being in an unquoted here document in config.status.
5065 cat > conftest.hdr
<<\EOF
5068 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5072 sed -n -f conftest.hdr confdefs.h > conftest.vals
5075 # This sed command replaces #undef with comments. This is necessary, for
5076 # example, in the case of _POSIX_SOURCE, which is predefined and required
5077 # on some systems where configure will not decide to define it.
5078 cat >> conftest.vals <<\EOF
5079 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5082 # Break up conftest.vals because some shells have a limit on
5083 # the size of here documents, and old seds have small limits too.
5088 ac_lines=`grep -c . conftest.vals
`
5089 # grep -c gives empty output for an empty file on some AIX systems.
5090 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5091 # Write a limited-size here document to conftest.frag.
5092 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5093 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5095 sed -f conftest.frag conftest.in > conftest.out
5097 mv conftest.out conftest.in
5099 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5101 mv conftest.tail conftest.vals
5105 cat >> $CONFIG_STATUS <<\EOF
5106 rm -f conftest.frag conftest.h
5107 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5108 cat conftest.in >> conftest.h
5110 if cmp -s $ac_file conftest.h 2>/dev/null; then
5111 echo "$ac_file is unchanged"
5114 # Remove last slash and all that follows it. Not all systems have dirname.
5115 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5116 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5117 # The file is in a subdirectory.
5118 test ! -d "$ac_dir" && mkdir "$ac_dir"
5121 mv conftest.h $ac_file
5126 cat >> $CONFIG_STATUS <<EOF
5130 cat >> $CONFIG_STATUS <<\EOF
5131 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5132 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5135 chmod +x $CONFIG_STATUS
5136 rm -fr confdefs* $ac_clean_files
5137 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1