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 --enable-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
,
66 bindir
='${exec_prefix}/bin'
67 sbindir
='${exec_prefix}/sbin'
68 libexecdir
='${exec_prefix}/libexec'
69 datadir
='${prefix}/share'
70 sysconfdir
='${prefix}/etc'
71 sharedstatedir
='${prefix}/com'
72 localstatedir
='${prefix}/var'
73 libdir
='${exec_prefix}/lib'
74 includedir
='${prefix}/include'
75 oldincludedir
='/usr/include'
76 infodir
='${prefix}/info'
77 mandir
='${prefix}/man'
79 # Initialize some other variables.
82 SHELL
=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
108 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
109 bindir
="$ac_optarg" ;;
111 -build |
--build |
--buil |
--bui |
--bu)
113 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
114 build
="$ac_optarg" ;;
116 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
117 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
118 ac_prev
=cache_file
;;
119 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
120 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
121 cache_file
="$ac_optarg" ;;
123 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
125 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
127 datadir
="$ac_optarg" ;;
129 -disable-* |
--disable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* |
--enable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
152 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
153 |
--exec |
--exe |
--ex)
154 ac_prev
=exec_prefix
;;
155 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
156 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
157 |
--exec=* |
--exe=* |
--ex=*)
158 exec_prefix
="$ac_optarg" ;;
160 -gas |
--gas |
--ga |
--g)
161 # Obsolete; use --with-gas.
164 -help |
--help |
--hel |
--he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
348 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
349 sitefile
="$ac_optarg" ;;
351 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
353 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
354 srcdir
="$ac_optarg" ;;
356 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
357 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
358 ac_prev
=sysconfdir
;;
359 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
360 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
361 sysconfdir
="$ac_optarg" ;;
363 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
365 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
366 target
="$ac_optarg" ;;
368 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
371 -version |
--version |
--versio |
--versi |
--vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* |
--without-*)
389 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
402 |
--x-incl |
--x-inc |
--x-in |
--x-i)
403 ac_prev
=x_includes
;;
404 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
405 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
406 x_includes
="$ac_optarg" ;;
408 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
409 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
410 ac_prev
=x_libraries
;;
411 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
412 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
413 x_libraries
="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE
; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
464 |
--no-cr |
--no-c) ;;
465 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
466 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
467 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest
* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file
=z8k-dis.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted
=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted
=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE
; then
519 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 CONFIG_SITE
="$sitefile"
527 for ac_site_file
in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp
='$CPP $CPPFLAGS'
545 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling
=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
560 ac_n
= ac_c
='\c' ac_t
=
563 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
564 echo "configure:565: checking for Cygwin environment" >&5
565 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 cat > conftest.
$ac_ext <<EOF
569 #line 570 "configure"
570 #include "confdefs.h"
575 #define __CYGWIN__ __CYGWIN32__
580 if { (eval echo configure
:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 echo "configure: failed program was:" >&5
585 cat conftest.
$ac_ext >&5
593 echo "$ac_t""$ac_cv_cygwin" 1>&6
595 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
596 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
597 echo "configure:598: checking for mingw32 environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 cat > conftest.
$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
609 if { (eval echo configure
:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 echo "configure: failed program was:" >&5
614 cat conftest.
$ac_ext >&5
622 echo "$ac_t""$ac_cv_mingw32" 1>&6
624 test "$ac_cv_mingw32" = yes && MINGW32
=yes
628 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
629 if test -f $ac_dir/install-sh
; then
631 ac_install_sh
="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh
; then
635 ac_install_sh
="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642 ac_config_guess
=$ac_aux_dir/config.guess
643 ac_config_sub
=$ac_aux_dir/config.sub
644 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
647 # Do some error checking and defaulting for the host and target type.
649 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
652 # 1. You are not allowed to specify --host, --target, and nonopt at the
654 # 2. Host defaults to nonopt.
655 # 3. If nonopt is not specified, then host defaults to the current host,
656 # as determined by config.guess.
657 # 4. Target and build default to nonopt.
658 # 5. If nonopt is not specified, then target and build default to host.
660 # The aliases save the names the user supplied, while $host etc.
661 # will get canonicalized.
662 case $host---$target---$nonopt in
663 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
664 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
668 # Make sure we can run config.sub.
669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
677 case "$host_alias" in
681 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
684 *) host_alias
=$nonopt ;;
688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
689 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$host" 1>&6
694 echo $ac_n "checking target system type""... $ac_c" 1>&6
695 echo "configure:696: checking target system type" >&5
698 case "$target_alias" in
701 NONE
) target_alias
=$host_alias ;;
702 *) target_alias
=$nonopt ;;
706 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
707 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$target" 1>&6
712 echo $ac_n "checking build system type""... $ac_c" 1>&6
713 echo "configure:714: checking build system type" >&5
716 case "$build_alias" in
719 NONE
) build_alias
=$host_alias ;;
720 *) build_alias
=$nonopt ;;
724 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
725 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$build" 1>&6
730 test "$host_alias" != "$target_alias" &&
731 test "$program_prefix$program_suffix$program_transform_name" = \
733 program_prefix
=${target_alias}-
736 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
737 echo "configure:738: checking for strerror in -lcposix" >&5
738 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
743 LIBS
="-lcposix $LIBS"
744 cat > conftest.
$ac_ext <<EOF
745 #line 746 "configure"
746 #include "confdefs.h"
747 /* Override any gcc2 internal prototype to avoid an error. */
748 /* We use char because int might match the return type of a gcc2
749 builtin and then its argument prototype would still apply. */
756 if { (eval echo configure
:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
758 eval "ac_cv_lib_$ac_lib_var=yes"
760 echo "configure: failed program was:" >&5
761 cat conftest.
$ac_ext >&5
763 eval "ac_cv_lib_$ac_lib_var=no"
769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
771 LIBS
="$LIBS -lcposix"
773 echo "$ac_t""no" 1>&6
779 # We currently only use the version number for the name of any shared
780 # library. For user convenience, we always use the same version
781 # number that BFD is using.
782 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
784 # Find a good install program. We prefer a C program (faster),
785 # so one script is as good as another. But avoid the broken or
786 # incompatible versions:
787 # SysV /etc/install, /usr/sbin/install
788 # SunOS /usr/etc/install
791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794 # ./install, which can be erroneously created by make from ./install.sh.
795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796 echo "configure:797: checking for a BSD compatible install" >&5
797 if test -z "$INSTALL"; then
798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
802 for ac_dir
in $PATH; do
803 # Account for people who put trailing slashes in PATH elements.
805 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
807 # OSF1 and SCO ODT 3.0 have their own names for install.
808 # Don't use installbsd from OSF since it installs stuff as root
810 for ac_prog
in ginstall scoinst
install; do
811 if test -f $ac_dir/$ac_prog; then
812 if test $ac_prog = install &&
813 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
814 # AIX install. It has an incompatible calling convention.
817 ac_cv_path_install
="$ac_dir/$ac_prog -c"
828 if test "${ac_cv_path_install+set}" = set; then
829 INSTALL
="$ac_cv_path_install"
831 # As a last resort, use the slow shell script. We don't cache a
832 # path for INSTALL within a source directory, because that will
833 # break other packages using the cache if that directory is
834 # removed, or if the path is relative.
835 INSTALL
="$ac_install_sh"
838 echo "$ac_t""$INSTALL" 1>&6
840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
841 # It thinks the first close brace ends the variable substitution.
842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
846 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
848 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
849 echo "configure:850: checking whether build environment is sane" >&5
852 echo timestamp
> conftestfile
853 # Do `set' in a subshell so we don't clobber the current shell's
854 # arguments. Must try -L first in case configure is actually a
855 # symlink; some systems play weird games with the mod time of symlinks
856 # (eg FreeBSD returns the mod time of the symlink's containing
859 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
860 if test "$*" = "X"; then
862 set X
`ls -t $srcdir/configure conftestfile`
864 if test "$*" != "X $srcdir/configure conftestfile" \
865 && test "$*" != "X conftestfile $srcdir/configure"; then
867 # If neither matched, then we have a broken ls. This can happen
868 # if, for instance, CONFIG_SHELL is bash and it inherits a
869 # broken ls alias from the environment. This has actually
870 # happened. Such a system could not be considered "sane".
871 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
872 alias in your environment" 1>&2; exit 1; }
875 test "$2" = conftestfile
881 { echo "configure: error: newly created file is older than distributed files!
882 Check your system clock" 1>&2; exit 1; }
885 echo "$ac_t""yes" 1>&6
886 if test "$program_transform_name" = s
,x
,x
,; then
887 program_transform_name
=
889 # Double any \ or $. echo might interpret backslashes.
890 cat <<\EOF_SED
> conftestsed
891 s
,\\,\\\\,g
; s
,\$
,$$
,g
893 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
896 test "$program_prefix" != NONE
&&
897 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
898 # Use a double $ so make ignores it.
899 test "$program_suffix" != NONE
&&
900 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
902 # sed with no file args requires a program.
903 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
905 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
906 echo "configure:907: checking whether ${MAKE-make} sets \${MAKE}" >&5
907 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
908 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftestmake
<<\EOF
913 @
echo 'ac_maketemp="${MAKE}"'
915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
916 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
917 if test -n "$ac_maketemp"; then
918 eval ac_cv_prog_make_
${ac_make}_set
=yes
920 eval ac_cv_prog_make_
${ac_make}_set
=no
924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
925 echo "$ac_t""yes" 1>&6
928 echo "$ac_t""no" 1>&6
929 SET_MAKE
="MAKE=${MAKE-make}"
935 VERSION
=${BFD_VERSION}
937 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
938 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
940 cat >> confdefs.h
<<EOF
941 #define PACKAGE "$PACKAGE"
944 cat >> confdefs.h
<<EOF
945 #define VERSION "$VERSION"
950 missing_dir
=`cd $ac_aux_dir && pwd`
951 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
952 echo "configure:953: checking for working aclocal" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
958 echo "$ac_t""found" 1>&6
960 ACLOCAL
="$missing_dir/missing aclocal"
961 echo "$ac_t""missing" 1>&6
964 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
965 echo "configure:966: checking for working autoconf" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf. Sigh.
969 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
971 echo "$ac_t""found" 1>&6
973 AUTOCONF
="$missing_dir/missing autoconf"
974 echo "$ac_t""missing" 1>&6
977 echo $ac_n "checking for working automake""... $ac_c" 1>&6
978 echo "configure:979: checking for working automake" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf. Sigh.
982 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
984 echo "$ac_t""found" 1>&6
986 AUTOMAKE
="$missing_dir/missing automake"
987 echo "$ac_t""missing" 1>&6
990 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
991 echo "configure:992: checking for working autoheader" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
996 AUTOHEADER
=autoheader
997 echo "$ac_t""found" 1>&6
999 AUTOHEADER
="$missing_dir/missing autoheader"
1000 echo "$ac_t""missing" 1>&6
1003 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working makeinfo" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1010 echo "$ac_t""found" 1>&6
1012 MAKEINFO
="$missing_dir/missing makeinfo"
1013 echo "$ac_t""missing" 1>&6
1018 if test $host != $build; then
1019 ac_tool_prefix
=${host_alias}-
1024 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1025 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 if test -n "$AR"; then
1032 ac_cv_prog_AR
="$AR" # Let the user override the test.
1034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1036 for ac_dir
in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir
=.
1038 if test -f $ac_dir/$ac_word; then
1039 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1044 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1048 if test -n "$AR"; then
1049 echo "$ac_t""$AR" 1>&6
1051 echo "$ac_t""no" 1>&6
1056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1057 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$RANLIB"; then
1064 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1068 for ac_dir
in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir
=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1078 RANLIB
="$ac_cv_prog_RANLIB"
1079 if test -n "$RANLIB"; then
1080 echo "$ac_t""$RANLIB" 1>&6
1082 echo "$ac_t""no" 1>&6
1086 if test -z "$ac_cv_prog_RANLIB"; then
1087 if test -n "$ac_tool_prefix"; then
1088 # Extract the first word of "ranlib", so it can be a program name with args.
1089 set dummy ranlib
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$RANLIB"; then
1096 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1100 for ac_dir
in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir
=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_RANLIB
="ranlib"
1108 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1111 RANLIB
="$ac_cv_prog_RANLIB"
1112 if test -n "$RANLIB"; then
1113 echo "$ac_t""$RANLIB" 1>&6
1115 echo "$ac_t""no" 1>&6
1124 # Check whether --enable-shared or --disable-shared was given.
1125 if test "${enable_shared+set}" = set; then
1126 enableval
="$enable_shared"
1127 p
=${PACKAGE-default}
1129 yes) enable_shared
=yes ;;
1130 no
) enable_shared
=no
;;
1133 # Look at the argument we got. We use all the common list separators.
1134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1135 for pkg
in $enableval; do
1136 if test "X$pkg" = "X$p"; then
1148 # Check whether --enable-static or --disable-static was given.
1149 if test "${enable_static+set}" = set; then
1150 enableval
="$enable_static"
1151 p
=${PACKAGE-default}
1153 yes) enable_static
=yes ;;
1154 no
) enable_static
=no
;;
1157 # Look at the argument we got. We use all the common list separators.
1158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1159 for pkg
in $enableval; do
1160 if test "X$pkg" = "X$p"; then
1171 # Check whether --enable-fast-install or --disable-fast-install was given.
1172 if test "${enable_fast_install+set}" = set; then
1173 enableval
="$enable_fast_install"
1174 p
=${PACKAGE-default}
1176 yes) enable_fast_install
=yes ;;
1177 no
) enable_fast_install
=no
;;
1179 enable_fast_install
=no
1180 # Look at the argument we got. We use all the common list separators.
1181 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1182 for pkg
in $enableval; do
1183 if test "X$pkg" = "X$p"; then
1184 enable_fast_install
=yes
1191 enable_fast_install
=yes
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc
; ac_word
=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC
="$CC" # Let the user override the test.
1204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1206 for ac_dir
in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir
=.
1208 if test -f $ac_dir/$ac_word; then
1217 if test -n "$CC"; then
1218 echo "$ac_t""$CC" 1>&6
1220 echo "$ac_t""no" 1>&6
1223 if test -z "$CC"; then
1224 # Extract the first word of "cc", so it can be a program name with args.
1225 set dummy cc
; ac_word
=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$CC"; then
1232 ac_cv_prog_CC
="$CC" # Let the user override the test.
1234 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1237 for ac_dir
in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir
=.
1239 if test -f $ac_dir/$ac_word; then
1240 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1241 ac_prog_rejected
=yes
1249 if test $ac_prog_rejected = yes; then
1250 # We found a bogon in the path, so make sure we never use it.
1251 set dummy
$ac_cv_prog_CC
1253 if test $# -gt 0; then
1254 # We chose a different compiler from the bogus one.
1255 # However, it has the same basename, so the bogon will be chosen
1256 # first if we set CC to just the basename; use the full file name.
1258 set dummy
"$ac_dir/$ac_word" "$@"
1266 if test -n "$CC"; then
1267 echo "$ac_t""$CC" 1>&6
1269 echo "$ac_t""no" 1>&6
1272 if test -z "$CC"; then
1273 case "`uname -s`" in
1275 # Extract the first word of "cl", so it can be a program name with args.
1276 set dummy cl
; ac_word
=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$CC"; then
1283 ac_cv_prog_CC
="$CC" # Let the user override the test.
1285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1287 for ac_dir
in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir
=.
1289 if test -f $ac_dir/$ac_word; then
1298 if test -n "$CC"; then
1299 echo "$ac_t""$CC" 1>&6
1301 echo "$ac_t""no" 1>&6
1306 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1309 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1314 ac_cpp
='$CPP $CPPFLAGS'
1315 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1316 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1317 cross_compiling
=$ac_cv_prog_cc_cross
1319 cat > conftest.
$ac_ext << EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1326 if { (eval echo configure
:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1327 ac_cv_prog_cc_works
=yes
1328 # If we can't run a trivial program, we are probably using a cross compiler.
1329 if (.
/conftest
; exit) 2>/dev
/null
; then
1330 ac_cv_prog_cc_cross
=no
1332 ac_cv_prog_cc_cross
=yes
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1337 ac_cv_prog_cc_works
=no
1341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1342 ac_cpp
='$CPP $CPPFLAGS'
1343 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1344 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1345 cross_compiling
=$ac_cv_prog_cc_cross
1347 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1348 if test $ac_cv_prog_cc_works = no
; then
1349 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1351 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1353 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1354 cross_compiling
=$ac_cv_prog_cc_cross
1356 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether we are using GNU C" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.c
<<EOF
1366 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1373 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1375 if test $ac_cv_prog_gcc = yes; then
1381 ac_test_CFLAGS
="${CFLAGS+set}"
1382 ac_save_CFLAGS
="$CFLAGS"
1384 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether ${CC-cc} accepts -g" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 echo 'void f(){}' > conftest.c
1390 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1399 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1400 if test "$ac_test_CFLAGS" = set; then
1401 CFLAGS
="$ac_save_CFLAGS"
1402 elif test $ac_cv_prog_cc_g = yes; then
1403 if test "$GCC" = yes; then
1409 if test "$GCC" = yes; then
1416 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1417 if test "${with_gnu_ld+set}" = set; then
1418 withval
="$with_gnu_ld"
1419 test "$withval" = no || with_gnu_ld
=yes
1425 if test "$GCC" = yes; then
1426 # Check if gcc -print-prog-name=ld gives a path.
1427 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1428 echo "configure:1429: checking for ld used by GCC" >&5
1431 # gcc leaves a trailing carriage return which upsets mingw
1432 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1434 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1437 # Accept absolute paths.
1438 [\\/]* |
[A-Za-z
]:[\\/]*)
1439 re_direlt
='/[^/][^/]*/\.\./'
1440 # Canonicalize the path of ld
1441 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1442 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1443 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1445 test -z "$LD" && LD
="$ac_prog"
1448 # If it fails, then pretend we aren't using GCC.
1452 # If it is relative, then search for the first ld in PATH.
1456 elif test "$with_gnu_ld" = yes; then
1457 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1458 echo "configure:1459: checking for GNU ld" >&5
1460 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1461 echo "configure:1462: checking for non-GNU ld" >&5
1463 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 if test -z "$LD"; then
1467 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1468 for ac_dir
in $PATH; do
1469 test -z "$ac_dir" && ac_dir
=.
1470 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1471 lt_cv_path_LD
="$ac_dir/$ac_prog"
1472 # Check to see if the program is GNU ld. I'd rather use --version,
1473 # but apparently some GNU ld's only accept -v.
1474 # Break only if it was the GNU/non-GNU ld that we prefer.
1475 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1476 test "$with_gnu_ld" != no
&& break
1478 test "$with_gnu_ld" != yes && break
1484 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1489 if test -n "$LD"; then
1490 echo "$ac_t""$LD" 1>&6
1492 echo "$ac_t""no" 1>&6
1494 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1495 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1496 echo "configure:1497: checking if the linker ($LD) is GNU ld" >&5
1497 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1501 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1502 lt_cv_prog_gnu_ld
=yes
1504 lt_cv_prog_gnu_ld
=no
1508 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1509 with_gnu_ld
=$lt_cv_prog_gnu_ld
1512 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $LD option to reload object files" >&5
1514 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 lt_cv_ld_reload_flag
='-r'
1520 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1521 reload_flag
=$lt_cv_ld_reload_flag
1522 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1524 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1525 echo "configure:1526: checking for BSD-compatible nm" >&5
1526 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test -n "$NM"; then
1530 # Let the user override the test.
1533 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1534 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1535 test -z "$ac_dir" && ac_dir
=.
1536 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1537 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1538 # Check to see if the nm accepts a BSD-compat flag.
1539 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1540 # nm: unknown option "B" ignored
1541 # Tru64's nm complains that /dev/null is an invalid object file
1542 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1543 lt_cv_path_NM
="$tmp_nm -B"
1545 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1546 lt_cv_path_NM
="$tmp_nm -p"
1549 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1550 continue # so that we can try to find one that supports BSD flags
1555 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1560 echo "$ac_t""$NM" 1>&6
1562 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ln -s works" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1568 if ln -s X conftestdata
2>/dev
/null
1571 ac_cv_prog_LN_S
="ln -s"
1576 LN_S
="$ac_cv_prog_LN_S"
1577 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1578 echo "$ac_t""yes" 1>&6
1580 echo "$ac_t""no" 1>&6
1583 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1584 echo "configure:1585: checking how to recognise dependant libraries" >&5
1585 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1589 lt_cv_file_magic_test_file
=
1590 lt_cv_deplibs_check_method
='unknown'
1591 # Need to set the preceding variable on all platforms that support
1592 # interlibrary dependencies.
1593 # 'none' -- dependencies not supported.
1594 # `unknown' -- same as none, but documents that we really don't know.
1595 # 'pass_all' -- all dependencies passed with no checks.
1596 # 'test_compile' -- check by making test program.
1597 # 'file_magic [regex]' -- check by looking for files in library path
1598 # which responds to the $file_magic_cmd with a given egrep regex.
1599 # If you have `file' or equivalent on your system and you're not sure
1600 # whether `pass_all' will *always* work, you probably want this one.
1604 lt_cv_deplibs_check_method
=pass_all
1608 lt_cv_deplibs_check_method
=pass_all
1612 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1613 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1614 lt_cv_file_magic_test_file
=/shlib
/libc.so
1617 cygwin
* | mingw
* |pw32
*)
1618 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1619 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1622 darwin
* | rhapsody
*)
1623 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1624 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1626 rhapsody
* | darwin1.012
)
1627 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1630 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1636 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1639 # Not sure whether the presence of OpenBSD here was a mistake.
1640 # Let's accept both of them until this is cleared up.
1641 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1642 lt_cv_file_magic_cmd
=/usr
/bin
/file
1643 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1647 lt_cv_deplibs_check_method
=pass_all
1652 lt_cv_deplibs_check_method
=pass_all
1658 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1659 lt_cv_file_magic_cmd
=/usr
/bin
/file
1660 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1663 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1664 lt_cv_file_magic_cmd
=/usr
/bin
/file
1665 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1673 # this will be overridden with pass_all, but let us keep it just in case
1674 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1678 *-32|
*"-32 ") libmagic
=32-bit;;
1679 *-n32|
*"-n32 ") libmagic
=N32
;;
1680 *-64|
*"-64 ") libmagic
=64-bit;;
1681 *) libmagic
=never-match
;;
1683 # this will be overridden with pass_all, but let us keep it just in case
1684 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1687 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1688 lt_cv_deplibs_check_method
=pass_all
1691 # This must be Linux ELF.
1694 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1695 lt_cv_deplibs_check_method
=pass_all
;;
1697 # glibc up to 2.1.1 does not perform some relocations on ARM
1698 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1700 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1704 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1705 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1707 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1712 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1713 lt_cv_file_magic_cmd
=/usr
/bin
/file
1714 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1717 osf3
* | osf4
* | osf5
*)
1718 # this will be overridden with pass_all, but let us keep it just in case
1719 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1720 lt_cv_file_magic_test_file
=/shlib
/libc.so
1721 lt_cv_deplibs_check_method
=pass_all
1725 lt_cv_deplibs_check_method
=pass_all
1729 lt_cv_deplibs_check_method
=pass_all
1730 lt_cv_file_magic_test_file
=/lib
/libc.so
1733 sysv5uw
[78]* | sysv4
*uw2
*)
1734 lt_cv_deplibs_check_method
=pass_all
1737 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1738 case $host_vendor in
1740 lt_cv_deplibs_check_method
=pass_all
1743 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]'
1744 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1752 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1753 file_magic_cmd
=$lt_cv_file_magic_cmd
1754 deplibs_check_method
=$lt_cv_deplibs_check_method
1756 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1757 echo "configure:1758: checking for object suffix" >&5
1758 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1762 echo 'int i = 1;' > conftest.
$ac_ext
1763 if { (eval echo configure
:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1764 for ac_file
in conftest.
*; do
1767 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1771 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1776 echo "$ac_t""$ac_cv_objext" 1>&6
1777 OBJEXT
=$ac_cv_objext
1778 ac_objext
=$ac_cv_objext
1782 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1783 echo "configure:1784: checking for executable suffix" >&5
1784 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1791 echo 'int main () { return 0; }' > conftest.
$ac_ext
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1794 for file in conftest.
*; do
1796 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1797 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1801 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1804 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1809 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1810 echo "$ac_t""${ac_cv_exeext}" 1>&6
1813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1815 # Only perform the check for file, if the check method requires it
1816 case $deplibs_check_method in
1818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1819 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1820 echo "configure:1821: checking for ${ac_tool_prefix}file" >&5
1821 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1826 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1829 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1832 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1834 ac_dummy
="/usr/bin:$PATH"
1835 for ac_dir
in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir
=.
1837 if test -f $ac_dir/${ac_tool_prefix}file; then
1838 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1839 if test -n "$file_magic_test_file"; then
1840 case $deplibs_check_method in
1842 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1843 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1844 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1845 egrep "$file_magic_regex" > /dev
/null
; then
1850 *** Warning: the command libtool uses to detect shared libraries,
1851 *** $file_magic_cmd, produces output that libtool cannot recognize.
1852 *** The result is that libtool may fail to recognize shared libraries
1853 *** as such. This will affect the creation of libtool libraries that
1854 *** depend on shared libraries, but programs linked with such libtool
1855 *** libraries will work regardless of this problem. Nevertheless, you
1856 *** may want to report the problem to your system manager and/or to
1857 *** bug-libtool@gnu.org
1867 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1872 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1873 if test -n "$MAGIC_CMD"; then
1874 echo "$ac_t""$MAGIC_CMD" 1>&6
1876 echo "$ac_t""no" 1>&6
1879 if test -z "$lt_cv_path_MAGIC_CMD"; then
1880 if test -n "$ac_tool_prefix"; then
1881 echo $ac_n "checking for file""... $ac_c" 1>&6
1882 echo "configure:1883: checking for file" >&5
1883 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1888 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1891 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1894 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1896 ac_dummy
="/usr/bin:$PATH"
1897 for ac_dir
in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir
=.
1899 if test -f $ac_dir/file; then
1900 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1901 if test -n "$file_magic_test_file"; then
1902 case $deplibs_check_method in
1904 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1905 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1906 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1907 egrep "$file_magic_regex" > /dev
/null
; then
1912 *** Warning: the command libtool uses to detect shared libraries,
1913 *** $file_magic_cmd, produces output that libtool cannot recognize.
1914 *** The result is that libtool may fail to recognize shared libraries
1915 *** as such. This will affect the creation of libtool libraries that
1916 *** depend on shared libraries, but programs linked with such libtool
1917 *** libraries will work regardless of this problem. Nevertheless, you
1918 *** may want to report the problem to your system manager and/or to
1919 *** bug-libtool@gnu.org
1929 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1934 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1935 if test -n "$MAGIC_CMD"; then
1936 echo "$ac_t""$MAGIC_CMD" 1>&6
1938 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1951 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 if test -n "$RANLIB"; then
1958 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1962 for ac_dir
in $ac_dummy; do
1963 test -z "$ac_dir" && ac_dir
=.
1964 if test -f $ac_dir/$ac_word; then
1965 ac_cv_prog_RANLIB
="${ac_tool_prefix}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
1980 if test -z "$ac_cv_prog_RANLIB"; then
1981 if test -n "$ac_tool_prefix"; then
1982 # Extract the first word of "ranlib", so it can be a program name with args.
1983 set dummy ranlib
; ac_word
=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 if test -n "$RANLIB"; then
1990 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1994 for ac_dir
in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir
=.
1996 if test -f $ac_dir/$ac_word; then
1997 ac_cv_prog_RANLIB
="ranlib"
2002 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2005 RANLIB
="$ac_cv_prog_RANLIB"
2006 if test -n "$RANLIB"; then
2007 echo "$ac_t""$RANLIB" 1>&6
2009 echo "$ac_t""no" 1>&6
2017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2018 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 if test -n "$STRIP"; then
2025 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2029 for ac_dir
in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir
=.
2031 if test -f $ac_dir/$ac_word; then
2032 ac_cv_prog_STRIP
="${ac_tool_prefix}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
2047 if test -z "$ac_cv_prog_STRIP"; then
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "strip", so it can be a program name with args.
2050 set dummy strip
; ac_word
=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 if test -n "$STRIP"; then
2057 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2061 for ac_dir
in $ac_dummy; do
2062 test -z "$ac_dir" && ac_dir
=.
2063 if test -f $ac_dir/$ac_word; then
2064 ac_cv_prog_STRIP
="strip"
2069 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2072 STRIP
="$ac_cv_prog_STRIP"
2073 if test -n "$STRIP"; then
2074 echo "$ac_t""$STRIP" 1>&6
2076 echo "$ac_t""no" 1>&6
2085 # Check for any special flags to pass to ltconfig.
2086 libtool_flags
="--cache-file=$cache_file"
2087 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2088 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2089 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2090 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2091 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2094 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2095 if test "${enable_libtool_lock+set}" = set; then
2096 enableval
="$enable_libtool_lock"
2100 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2101 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2103 # Check whether --with-pic or --without-pic was given.
2104 if test "${with_pic+set}" = set; then
2111 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2112 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2114 # Some flags need to be propagated to the compiler or linker for good
2118 # Find out which ABI we are using.
2119 echo '#line 2120 "configure"' > conftest.
$ac_ext
2120 if { (eval echo configure
:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2121 if test "$lt_cv_prog_gnu_ld" = yes; then
2122 case `/usr/bin/file conftest.$ac_objext` in
2124 LD
="${LD-ld} -melf32bsmip"
2127 LD
="${LD-ld} -melf32bmipn32"
2130 LD
="${LD-ld} -melf64bmip"
2134 case `/usr/bin/file conftest.$ac_objext` in
2151 # Find out which ABI we are using.
2152 echo 'int i;' > conftest.
$ac_ext
2153 if { (eval echo configure
:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154 case "`/usr/bin/file conftest.o`" in
2167 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2168 SAVE_CFLAGS
="$CFLAGS"
2169 CFLAGS
="$CFLAGS -belf"
2170 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2171 echo "configure:2172: checking whether the C compiler needs -belf" >&5
2172 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2178 ac_cpp
='$CPP $CPPFLAGS'
2179 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2180 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2181 cross_compiling
=$ac_cv_prog_cc_cross
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2191 if { (eval echo configure
:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2193 lt_cv_cc_needs_belf
=yes
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2198 lt_cv_cc_needs_belf
=no
2202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2203 ac_cpp
='$CPP $CPPFLAGS'
2204 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2205 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2206 cross_compiling
=$ac_cv_prog_cc_cross
2210 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2211 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2213 CFLAGS
="$SAVE_CFLAGS"
2221 # Save cache, so that ltconfig can load it
2222 cat > confcache
<<\EOF
2223 # This file is a shell script that caches the results of configure
2224 # tests run on this system so they can be shared between configure
2225 # scripts and configure runs. It is not useful on other systems.
2226 # If it contains results you don't want to keep, you may remove or edit it.
2228 # By default, configure uses ./config.cache as the cache file,
2229 # creating it if it does not exist already. You can give configure
2230 # the --cache-file=FILE option to use a different cache file; that is
2231 # what configure does when it calls configure scripts in
2232 # subdirectories, so they share the cache.
2233 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2234 # config.status only pays attention to the cache file if you give it the
2235 # --recheck option to rerun configure.
2238 # The following way of writing the cache mishandles newlines in values,
2239 # but we know of no workaround that is simple, portable, and efficient.
2240 # So, don't put newlines in cache variables' values.
2241 # Ultrix sh set writes to stderr and can't be redirected directly,
2242 # and sets the high bit in the cache file unless we assign to the vars.
2244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2246 # `set' does not quote correctly, so add quotes (double-quote substitution
2247 # turns \\\\ into \\, and sed turns \\ into \).
2249 -e "s/'/'\\\\''/g" \
2250 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2253 # `set' quotes correctly as required by POSIX, so do not add quotes.
2254 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2257 if cmp -s $cache_file confcache
; then
2260 if test -w $cache_file; then
2261 echo "updating cache $cache_file"
2262 cat confcache
> $cache_file
2264 echo "not updating unwritable cache $cache_file"
2270 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2271 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2272 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2273 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2274 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2275 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2276 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2278 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2279 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2281 # Reload cache, that may have been modified by ltconfig
2282 if test -r "$cache_file"; then
2283 echo "loading cache $cache_file"
2286 echo "creating cache $cache_file"
2291 # This can be used to rebuild libtool when needed
2292 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2294 # Always use our own libtool.
2295 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2297 # Redirect the config.log output again, so that the ltconfig log is not
2298 # clobbered by the next message.
2299 exec 5>>.
/config.log
2307 # Check whether --enable-targets or --disable-targets was given.
2308 if test "${enable_targets+set}" = set; then
2309 enableval
="$enable_targets"
2310 case "${enableval}" in
2311 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2313 no
) enable_targets
= ;;
2314 *) enable_targets
=$enableval ;;
2317 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2318 if test "${enable_commonbfdlib+set}" = set; then
2319 enableval
="$enable_commonbfdlib"
2320 case "${enableval}" in
2321 yes) commonbfdlib
=true
;;
2322 no
) commonbfdlib
=false
;;
2323 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2327 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2328 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2329 if test "${enable_build_warnings+set}" = set; then
2330 enableval
="$enable_build_warnings"
2331 case "${enableval}" in
2333 no
) build_warnings
="-w";;
2334 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2335 build_warnings
="${build_warnings} ${t}";;
2336 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2337 build_warnings
="${t} ${build_warnings}";;
2338 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2340 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2341 echo "Setting warning flags = $build_warnings" 6>&1
2345 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2346 WARN_CFLAGS
="${build_warnings}"
2354 if test -z "$target" ; then
2355 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2358 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether to enable maintainer-specific portions of Makefiles" >&5
2360 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2361 if test "${enable_maintainer_mode+set}" = set; then
2362 enableval
="$enable_maintainer_mode"
2363 USE_MAINTAINER_MODE
=$enableval
2365 USE_MAINTAINER_MODE
=no
2368 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2371 if test $USE_MAINTAINER_MODE = yes; then
2372 MAINTAINER_MODE_TRUE
=
2373 MAINTAINER_MODE_FALSE
='#'
2375 MAINTAINER_MODE_TRUE
='#'
2376 MAINTAINER_MODE_FALSE
=
2378 MAINT
=$MAINTAINER_MODE_TRUE
2381 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether to install libbfd" >&5
2383 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2384 if test "${enable_install_libbfd+set}" = set; then
2385 enableval
="$enable_install_libbfd"
2386 install_libbfd_p
=$enableval
2388 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2389 install_libbfd_p
=yes
2395 echo "$ac_t""$install_libbfd_p" 1>&6
2398 if test $install_libbfd_p = yes; then
2399 INSTALL_LIBBFD_TRUE
=
2400 INSTALL_LIBBFD_FALSE
='#'
2402 INSTALL_LIBBFD_TRUE
='#'
2403 INSTALL_LIBBFD_FALSE
=
2405 # libbfd.a is a host library containing target dependent code
2406 bfdlibdir
='$(libdir)'
2407 bfdincludedir
='$(includedir)'
2408 if test "${host}" != "${target}"; then
2409 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2410 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2418 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2419 echo "configure:2420: checking for executable suffix" >&5
2420 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2427 echo 'int main () { return 0; }' > conftest.
$ac_ext
2429 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2430 for file in conftest.
*; do
2432 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2433 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2437 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2440 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2445 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2446 echo "$ac_t""${ac_cv_exeext}" 1>&6
2450 # host-specific stuff:
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc
; ac_word
=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC
="$CC" # Let the user override the test.
2462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2464 for ac_dir
in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir
=.
2466 if test -f $ac_dir/$ac_word; then
2475 if test -n "$CC"; then
2476 echo "$ac_t""$CC" 1>&6
2478 echo "$ac_t""no" 1>&6
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc
; ac_word
=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC
="$CC" # Let the user override the test.
2492 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2495 for ac_dir
in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir
=.
2497 if test -f $ac_dir/$ac_word; then
2498 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2499 ac_prog_rejected
=yes
2507 if test $ac_prog_rejected = yes; then
2508 # We found a bogon in the path, so make sure we never use it.
2509 set dummy
$ac_cv_prog_CC
2511 if test $# -gt 0; then
2512 # We chose a different compiler from the bogus one.
2513 # However, it has the same basename, so the bogon will be chosen
2514 # first if we set CC to just the basename; use the full file name.
2516 set dummy
"$ac_dir/$ac_word" "$@"
2524 if test -n "$CC"; then
2525 echo "$ac_t""$CC" 1>&6
2527 echo "$ac_t""no" 1>&6
2530 if test -z "$CC"; then
2531 case "`uname -s`" in
2533 # Extract the first word of "cl", so it can be a program name with args.
2534 set dummy cl
; ac_word
=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC
="$CC" # Let the user override the test.
2543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2545 for ac_dir
in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir
=.
2547 if test -f $ac_dir/$ac_word; then
2556 if test -n "$CC"; then
2557 echo "$ac_t""$CC" 1>&6
2559 echo "$ac_t""no" 1>&6
2564 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2567 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2568 echo "configure:2569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2572 ac_cpp
='$CPP $CPPFLAGS'
2573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2575 cross_compiling
=$ac_cv_prog_cc_cross
2577 cat > conftest.
$ac_ext << EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2584 if { (eval echo configure
:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2585 ac_cv_prog_cc_works
=yes
2586 # If we can't run a trivial program, we are probably using a cross compiler.
2587 if (.
/conftest
; exit) 2>/dev
/null
; then
2588 ac_cv_prog_cc_cross
=no
2590 ac_cv_prog_cc_cross
=yes
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2595 ac_cv_prog_cc_works
=no
2599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2600 ac_cpp
='$CPP $CPPFLAGS'
2601 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2602 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2603 cross_compiling
=$ac_cv_prog_cc_cross
2605 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2606 if test $ac_cv_prog_cc_works = no
; then
2607 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2609 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2610 echo "configure:2611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2611 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2612 cross_compiling
=$ac_cv_prog_cc_cross
2614 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2615 echo "configure:2616: checking whether we are using GNU C" >&5
2616 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.c
<<EOF
2624 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2631 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2633 if test $ac_cv_prog_gcc = yes; then
2639 ac_test_CFLAGS
="${CFLAGS+set}"
2640 ac_save_CFLAGS
="$CFLAGS"
2642 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2643 echo "configure:2644: checking whether ${CC-cc} accepts -g" >&5
2644 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 echo 'void f(){}' > conftest.c
2648 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2657 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2658 if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS
="$ac_save_CFLAGS"
2660 elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2667 if test "$GCC" = yes; then
2675 ALL_LINGUAS
="fr sv tr es da de id pt_BR ro nl"
2676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2677 echo "configure:2678: checking how to run the C preprocessor" >&5
2678 # On Suns, sometimes $CPP names a directory.
2679 if test -n "$CPP" && test -d "$CPP"; then
2682 if test -z "$CPP"; then
2683 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 # This must be in double quotes, not single quotes, because CPP may get
2687 # substituted into the Makefile and "${CC-cc}" will confuse make.
2689 # On the NeXT, cc -E runs the code through the compiler's parser,
2690 # not just through cpp.
2691 cat > conftest.
$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2697 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure
:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2704 echo "configure: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2707 CPP
="${CC-cc} -E -traditional-cpp"
2708 cat > conftest.
$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2721 echo "configure: failed program was:" >&5
2722 cat conftest.
$ac_ext >&5
2724 CPP
="${CC-cc} -nologo -E"
2725 cat > conftest.
$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure
:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2738 echo "configure: failed program was:" >&5
2739 cat conftest.
$ac_ext >&5
2748 ac_cv_prog_CPP
="$CPP"
2750 CPP
="$ac_cv_prog_CPP"
2752 ac_cv_prog_CPP
="$CPP"
2754 echo "$ac_t""$CPP" 1>&6
2756 # Extract the first word of "ranlib", so it can be a program name with args.
2757 set dummy ranlib
; ac_word
=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 if test -n "$RANLIB"; then
2764 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2768 for ac_dir
in $ac_dummy; do
2769 test -z "$ac_dir" && ac_dir
=.
2770 if test -f $ac_dir/$ac_word; then
2771 ac_cv_prog_RANLIB
="ranlib"
2776 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2779 RANLIB
="$ac_cv_prog_RANLIB"
2780 if test -n "$RANLIB"; then
2781 echo "$ac_t""$RANLIB" 1>&6
2783 echo "$ac_t""no" 1>&6
2786 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2787 echo "configure:2788: checking for ANSI C header files" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.
$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure
:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2804 ac_cv_header_stdc
=yes
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 ac_cv_header_stdc
=no
2814 if test $ac_cv_header_stdc = yes; then
2815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2822 egrep "memchr" >/dev
/null
2>&1; then
2826 ac_cv_header_stdc
=no
2832 if test $ac_cv_header_stdc = yes; then
2833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2834 cat > conftest.
$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2840 egrep "free" >/dev
/null
2>&1; then
2844 ac_cv_header_stdc
=no
2850 if test $ac_cv_header_stdc = yes; then
2851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2852 if test "$cross_compiling" = yes; then
2855 cat > conftest.
$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2859 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2860 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2862 int main () { int i; for (i = 0; i < 256; i++)
2863 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2867 if { (eval echo configure
:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 ac_cv_header_stdc
=no
2882 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2883 if test $ac_cv_header_stdc = yes; then
2884 cat >> confdefs.h
<<\EOF
2885 #define STDC_HEADERS 1
2890 echo $ac_n "checking for working const""... $ac_c" 1>&6
2891 echo "configure:2892: checking for working const" >&5
2892 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2901 /* Ultrix mips cc rejects this. */
2902 typedef int charset[2]; const charset x;
2903 /* SunOS 4.1.1 cc rejects this. */
2904 char const *const *ccp;
2906 /* NEC SVR4.0.2 mips cc rejects this. */
2907 struct point {int x, y;};
2908 static struct point const zero = {0,0};
2909 /* AIX XL C 1.02.0.0 rejects this.
2910 It does not let you subtract one const X* pointer from another in an arm
2911 of an if-expression whose if-part is not a constant expression */
2912 const char *g = "string";
2913 ccp = &g + (g ? g-g : 0);
2914 /* HPUX 7.0 cc rejects these. */
2917 ccp = (char const *const *) p;
2918 { /* SCO 3.2v4 cc rejects this. */
2920 char const *s = 0 ? (char *) 0 : (char const *) 0;
2924 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2926 const int *foo = &x[0];
2929 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2930 typedef const int *iptr;
2934 { /* AIX XL C 1.02.0.0 rejects this saying
2935 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2936 struct s { int j; const int *ap[3]; };
2937 struct s *b; b->j = 5;
2939 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2945 if { (eval echo configure
:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2957 echo "$ac_t""$ac_cv_c_const" 1>&6
2958 if test $ac_cv_c_const = no
; then
2959 cat >> confdefs.h
<<\EOF
2965 echo $ac_n "checking for inline""... $ac_c" 1>&6
2966 echo "configure:2967: checking for inline" >&5
2967 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2971 for ac_kw
in inline __inline__ __inline
; do
2972 cat > conftest.
$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2980 if { (eval echo configure
:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2982 ac_cv_c_inline
=$ac_kw; break
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2992 echo "$ac_t""$ac_cv_c_inline" 1>&6
2993 case "$ac_cv_c_inline" in
2995 no
) cat >> confdefs.h
<<\EOF
2999 *) cat >> confdefs.h
<<EOF
3000 #define inline $ac_cv_c_inline
3005 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3006 echo "configure:3007: checking for off_t" >&5
3007 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.
$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <sys/types.h>
3019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3020 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3022 ac_cv_type_off_t
=yes
3030 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3031 if test $ac_cv_type_off_t = no
; then
3032 cat >> confdefs.h
<<\EOF
3038 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3039 echo "configure:3040: checking for size_t" >&5
3040 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <sys/types.h>
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3055 ac_cv_type_size_t
=yes
3058 ac_cv_type_size_t
=no
3063 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3064 if test $ac_cv_type_size_t = no
; then
3065 cat >> confdefs.h
<<\EOF
3066 #define size_t unsigned
3071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3072 # for constant arguments. Useless!
3073 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3074 echo "configure:3075: checking for working alloca.h" >&5
3075 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3083 char *p = alloca(2 * sizeof(int));
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 ac_cv_header_alloca_h
=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 ac_cv_header_alloca_h
=no
3098 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3099 if test $ac_cv_header_alloca_h = yes; then
3100 cat >> confdefs.h
<<\EOF
3101 #define HAVE_ALLOCA_H 1
3106 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3107 echo "configure:3108: checking for alloca" >&5
3108 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3116 # define alloca __builtin_alloca
3119 # include <malloc.h>
3120 # define alloca _alloca
3123 # include <alloca.h>
3128 # ifndef alloca /* predefined by HP cc +Olibcalls */
3137 char *p = (char *) alloca(1);
3140 if { (eval echo configure
:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3142 ac_cv_func_alloca_works
=yes
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3147 ac_cv_func_alloca_works
=no
3152 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3153 if test $ac_cv_func_alloca_works = yes; then
3154 cat >> confdefs.h
<<\EOF
3155 #define HAVE_ALLOCA 1
3160 if test $ac_cv_func_alloca_works = no
; then
3161 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3162 # that cause trouble. Some versions do not even contain alloca or
3163 # contain a buggy version. If you still want to use their alloca,
3164 # use ar to extract alloca.o from them instead of compiling alloca.c.
3165 ALLOCA
=alloca.
${ac_objext}
3166 cat >> confdefs.h
<<\EOF
3171 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3172 echo "configure:3173: checking whether alloca needs Cray hooks" >&5
3173 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #if defined(CRAY) && ! defined(CRAY2)
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "webecray" >/dev
/null
2>&1; then
3198 echo "$ac_t""$ac_cv_os_cray" 1>&6
3199 if test $ac_cv_os_cray = yes; then
3200 for ac_func
in _getb67 GETB67 getb67
; do
3201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_func" >&5
3203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210 which can conflict with char $ac_func(); below. */
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3219 /* The GNU C library defines this for functions which it implements
3220 to always fail with ENOSYS. Some functions are actually named
3221 something starting with __ and the normal name is an alias. */
3222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3230 if { (eval echo configure
:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3232 eval "ac_cv_func_$ac_func=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 eval "ac_cv_func_$ac_func=no"
3242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3243 echo "$ac_t""yes" 1>&6
3244 cat >> confdefs.h
<<EOF
3245 #define CRAY_STACKSEG_END $ac_func
3250 echo "$ac_t""no" 1>&6
3256 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3257 echo "configure:3258: checking stack direction for C alloca" >&5
3258 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 if test "$cross_compiling" = yes; then
3262 ac_cv_c_stack_direction
=0
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 find_stack_direction ()
3269 static char *addr = 0;
3274 return find_stack_direction ();
3277 return (&dummy > addr) ? 1 : -1;
3281 exit (find_stack_direction() < 0);
3284 if { (eval echo configure
:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3286 ac_cv_c_stack_direction
=1
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 ac_cv_c_stack_direction
=-1
3298 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3299 cat >> confdefs.h
<<EOF
3300 #define STACK_DIRECTION $ac_cv_c_stack_direction
3305 for ac_hdr
in unistd.h
3307 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_hdr" >&5
3310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3319 { (eval echo configure
:3320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3321 if test -z "$ac_err"; then
3323 eval "ac_cv_header_$ac_safe=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 eval "ac_cv_header_$ac_safe=no"
3333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3336 cat >> confdefs.h
<<EOF
3337 #define $ac_tr_hdr 1
3341 echo "$ac_t""no" 1>&6
3345 for ac_func
in getpagesize
3347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_func" >&5
3349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* System header to define __stub macros and hopefully few prototypes,
3356 which can conflict with char $ac_func(); below. */
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3376 if { (eval echo configure
:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3378 eval "ac_cv_func_$ac_func=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.
$ac_ext >&5
3383 eval "ac_cv_func_$ac_func=no"
3388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3391 cat >> confdefs.h
<<EOF
3392 #define $ac_tr_func 1
3396 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3401 echo "configure:3402: checking for working mmap" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 if test "$cross_compiling" = yes; then
3406 ac_cv_func_mmap_fixed_mapped
=no
3408 cat > conftest.
$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3412 /* Thanks to Mike Haertel and Jim Avera for this test.
3413 Here is a matrix of mmap possibilities:
3414 mmap private not fixed
3415 mmap private fixed at somewhere currently unmapped
3416 mmap private fixed at somewhere already mapped
3417 mmap shared not fixed
3418 mmap shared fixed at somewhere currently unmapped
3419 mmap shared fixed at somewhere already mapped
3420 For private mappings, we should verify that changes cannot be read()
3421 back from the file, nor mmap's back from the file at a different
3422 address. (There have been systems where private was not correctly
3423 implemented like the infamous i386 svr4.0, and systems where the
3424 VM page cache was not coherent with the filesystem buffer cache
3425 like early versions of FreeBSD and possibly contemporary NetBSD.)
3426 For shared mappings, we should conversely verify that changes get
3427 propogated back to all the places they're supposed to be.
3429 Grep wants private fixed already mapped.
3430 The main things grep needs to know about mmap are:
3431 * does it exist and is it safe to write into the mmap'd area
3432 * how to use it (BSD variants) */
3433 #include <sys/types.h>
3435 #include <sys/mman.h>
3437 /* This mess was copied from the GNU getpagesize.h. */
3438 #ifndef HAVE_GETPAGESIZE
3439 # ifdef HAVE_UNISTD_H
3440 # include <unistd.h>
3443 /* Assume that all systems that can run configure have sys/param.h. */
3444 # ifndef HAVE_SYS_PARAM_H
3445 # define HAVE_SYS_PARAM_H 1
3448 # ifdef _SC_PAGESIZE
3449 # define getpagesize() sysconf(_SC_PAGESIZE)
3450 # else /* no _SC_PAGESIZE */
3451 # ifdef HAVE_SYS_PARAM_H
3452 # include <sys/param.h>
3453 # ifdef EXEC_PAGESIZE
3454 # define getpagesize() EXEC_PAGESIZE
3455 # else /* no EXEC_PAGESIZE */
3457 # define getpagesize() NBPG * CLSIZE
3460 # endif /* no CLSIZE */
3461 # else /* no NBPG */
3463 # define getpagesize() NBPC
3464 # else /* no NBPC */
3466 # define getpagesize() PAGESIZE
3467 # endif /* PAGESIZE */
3468 # endif /* no NBPC */
3469 # endif /* no NBPG */
3470 # endif /* no EXEC_PAGESIZE */
3471 # else /* no HAVE_SYS_PARAM_H */
3472 # define getpagesize() 8192 /* punt totally */
3473 # endif /* no HAVE_SYS_PARAM_H */
3474 # endif /* no _SC_PAGESIZE */
3476 #endif /* no HAVE_GETPAGESIZE */
3479 extern "C" { void *malloc(unsigned); }
3487 char *data, *data2, *data3;
3491 pagesize = getpagesize();
3494 * First, make a file with some known garbage in it.
3496 data = malloc(pagesize);
3499 for (i = 0; i < pagesize; ++i)
3500 *(data + i) = rand();
3502 fd = creat("conftestmmap", 0600);
3505 if (write(fd, data, pagesize) != pagesize)
3510 * Next, try to mmap the file at a fixed address which
3511 * already has something else allocated at it. If we can,
3512 * also make sure that we see the same garbage.
3514 fd = open("conftestmmap", O_RDWR);
3517 data2 = malloc(2 * pagesize);
3520 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3521 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3522 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3524 for (i = 0; i < pagesize; ++i)
3525 if (*(data + i) != *(data2 + i))
3529 * Finally, make sure that changes to the mapped area
3530 * do not percolate back to the file as seen by read().
3531 * (This is a bug on some variants of i386 svr4.0.)
3533 for (i = 0; i < pagesize; ++i)
3534 *(data2 + i) = *(data2 + i) + 1;
3535 data3 = malloc(pagesize);
3538 if (read(fd, data3, pagesize) != pagesize)
3540 for (i = 0; i < pagesize; ++i)
3541 if (*(data + i) != *(data3 + i))
3544 unlink("conftestmmap");
3549 if { (eval echo configure
:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3551 ac_cv_func_mmap_fixed_mapped
=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 ac_cv_func_mmap_fixed_mapped
=no
3563 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3564 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3565 cat >> confdefs.h
<<\EOF
3572 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3573 unistd.h values.h sys
/param.h
3575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3577 echo "configure:3578: checking for $ac_hdr" >&5
3578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3587 { (eval echo configure
:3588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3589 if test -z "$ac_err"; then
3591 eval "ac_cv_header_$ac_safe=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.
$ac_ext >&5
3597 eval "ac_cv_header_$ac_safe=no"
3601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3604 cat >> confdefs.h
<<EOF
3605 #define $ac_tr_hdr 1
3609 echo "$ac_t""no" 1>&6
3613 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3614 __argz_count __argz_stringify __argz_next
3616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3617 echo "configure:3618: checking for $ac_func" >&5
3618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func(); below. */
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3634 /* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3645 if { (eval echo configure
:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3647 eval "ac_cv_func_$ac_func=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 eval "ac_cv_func_$ac_func=no"
3657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3660 cat >> confdefs.h
<<EOF
3661 #define $ac_tr_func 1
3665 echo "$ac_t""no" 1>&6
3670 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3671 for ac_func
in stpcpy
3673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_func" >&5
3675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.
$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 /* System header to define __stub macros and hopefully few prototypes,
3682 which can conflict with char $ac_func(); below. */
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3691 /* The GNU C library defines this for functions which it implements
3692 to always fail with ENOSYS. Some functions are actually named
3693 something starting with __ and the normal name is an alias. */
3694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3702 if { (eval echo configure
:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3704 eval "ac_cv_func_$ac_func=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 eval "ac_cv_func_$ac_func=no"
3714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3717 cat >> confdefs.h
<<EOF
3718 #define $ac_tr_func 1
3722 echo "$ac_t""no" 1>&6
3727 if test "${ac_cv_func_stpcpy}" = "yes"; then
3728 cat >> confdefs.h
<<\EOF
3729 #define HAVE_STPCPY 1
3734 if test $ac_cv_header_locale_h = yes; then
3735 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3736 echo "configure:3737: checking for LC_MESSAGES" >&5
3737 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.
$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3748 if { (eval echo configure
:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3750 am_cv_val_LC_MESSAGES
=yes
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 am_cv_val_LC_MESSAGES
=no
3760 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3761 if test $am_cv_val_LC_MESSAGES = yes; then
3762 cat >> confdefs.h
<<\EOF
3763 #define HAVE_LC_MESSAGES 1
3768 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether NLS is requested" >&5
3770 # Check whether --enable-nls or --disable-nls was given.
3771 if test "${enable_nls+set}" = set; then
3772 enableval
="$enable_nls"
3778 echo "$ac_t""$USE_NLS" 1>&6
3781 USE_INCLUDED_LIBINTL
=no
3783 if test "$USE_NLS" = "yes"; then
3784 cat >> confdefs.h
<<\EOF
3785 #define ENABLE_NLS 1
3788 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3789 echo "configure:3790: checking whether included gettext is requested" >&5
3790 # Check whether --with-included-gettext or --without-included-gettext was given.
3791 if test "${with_included_gettext+set}" = set; then
3792 withval
="$with_included_gettext"
3793 nls_cv_force_use_gnu_gettext
=$withval
3795 nls_cv_force_use_gnu_gettext
=no
3798 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3800 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3801 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3803 nls_cv_header_libgt
=
3806 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3807 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3808 echo "configure:3809: checking for libintl.h" >&5
3809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <libintl.h>
3817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3818 { (eval echo configure
:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3820 if test -z "$ac_err"; then
3822 eval "ac_cv_header_$ac_safe=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3828 eval "ac_cv_header_$ac_safe=no"
3832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3833 echo "$ac_t""yes" 1>&6
3834 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3835 echo "configure:3836: checking for gettext in libc" >&5
3836 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 #include <libintl.h>
3844 return (int) gettext ("")
3847 if { (eval echo configure
:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3849 gt_cv_func_gettext_libc
=yes
3851 echo "configure: failed program was:" >&5
3852 cat conftest.
$ac_ext >&5
3854 gt_cv_func_gettext_libc
=no
3859 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3861 if test "$gt_cv_func_gettext_libc" != "yes"; then
3862 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3863 echo "configure:3864: checking for bindtextdomain in -lintl" >&5
3864 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS
="$LIBS"
3870 cat > conftest.
$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char bindtextdomain();
3882 if { (eval echo configure
:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.
$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS
="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3898 echo "configure:3899: checking for gettext in libintl" >&5
3899 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3907 return (int) gettext ("")
3910 if { (eval echo configure
:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3912 gt_cv_func_gettext_libintl
=yes
3914 echo "configure: failed program was:" >&5
3915 cat conftest.
$ac_ext >&5
3917 gt_cv_func_gettext_libintl
=no
3922 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3924 echo "$ac_t""no" 1>&6
3929 if test "$gt_cv_func_gettext_libc" = "yes" \
3930 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3931 cat >> confdefs.h
<<\EOF
3932 #define HAVE_GETTEXT 1
3935 # Extract the first word of "msgfmt", so it can be a program name with args.
3936 set dummy msgfmt
; ac_word
=$2
3937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_word" >&5
3939 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3944 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3948 for ac_dir
in $PATH; do
3949 test -z "$ac_dir" && ac_dir
=.
3950 if test -f $ac_dir/$ac_word; then
3951 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3952 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3958 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3962 MSGFMT
="$ac_cv_path_MSGFMT"
3963 if test -n "$MSGFMT"; then
3964 echo "$ac_t""$MSGFMT" 1>&6
3966 echo "$ac_t""no" 1>&6
3968 if test "$MSGFMT" != "no"; then
3969 for ac_func
in dcgettext
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4000 if { (eval echo configure
:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4002 eval "ac_cv_func_$ac_func=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 eval "ac_cv_func_$ac_func=no"
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h
<<EOF
4016 #define $ac_tr_func 1
4020 echo "$ac_t""no" 1>&6
4024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4025 set dummy gmsgfmt
; ac_word
=$2
4026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_word" >&5
4028 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4033 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4036 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4041 for ac_dir
in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir
=.
4043 if test -f $ac_dir/$ac_word; then
4044 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4049 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4053 GMSGFMT
="$ac_cv_path_GMSGFMT"
4054 if test -n "$GMSGFMT"; then
4055 echo "$ac_t""$GMSGFMT" 1>&6
4057 echo "$ac_t""no" 1>&6
4060 # Extract the first word of "xgettext", so it can be a program name with args.
4061 set dummy xgettext
; ac_word
=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4069 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4072 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4073 for ac_dir
in $PATH; do
4074 test -z "$ac_dir" && ac_dir
=.
4075 if test -f $ac_dir/$ac_word; then
4076 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4077 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4083 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4087 XGETTEXT
="$ac_cv_path_XGETTEXT"
4088 if test -n "$XGETTEXT"; then
4089 echo "$ac_t""$XGETTEXT" 1>&6
4091 echo "$ac_t""no" 1>&6
4094 cat > conftest.
$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4099 extern int _nl_msg_cat_cntr;
4100 return _nl_msg_cat_cntr
4103 if { (eval echo configure
:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4120 echo "$ac_t""no" 1>&6
4125 if test "$CATOBJEXT" = "NONE"; then
4126 nls_cv_use_gnu_gettext
=yes
4130 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4131 INTLOBJS
="\$(GETTOBJS)"
4132 # Extract the first word of "msgfmt", so it can be a program name with args.
4133 set dummy msgfmt
; 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_MSGFMT'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4141 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4145 for ac_dir
in $PATH; do
4146 test -z "$ac_dir" && ac_dir
=.
4147 if test -f $ac_dir/$ac_word; then
4148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4149 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4155 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4159 MSGFMT
="$ac_cv_path_MSGFMT"
4160 if test -n "$MSGFMT"; then
4161 echo "$ac_t""$MSGFMT" 1>&6
4163 echo "$ac_t""no" 1>&6
4166 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4167 set dummy gmsgfmt
; ac_word
=$2
4168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4169 echo "configure:4170: checking for $ac_word" >&5
4170 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4175 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4178 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4181 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4183 for ac_dir
in $ac_dummy; do
4184 test -z "$ac_dir" && ac_dir
=.
4185 if test -f $ac_dir/$ac_word; then
4186 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4195 GMSGFMT
="$ac_cv_path_GMSGFMT"
4196 if test -n "$GMSGFMT"; then
4197 echo "$ac_t""$GMSGFMT" 1>&6
4199 echo "$ac_t""no" 1>&6
4202 # Extract the first word of "xgettext", so it can be a program name with args.
4203 set dummy xgettext
; ac_word
=$2
4204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4205 echo "configure:4206: checking for $ac_word" >&5
4206 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4215 for ac_dir
in $PATH; do
4216 test -z "$ac_dir" && ac_dir
=.
4217 if test -f $ac_dir/$ac_word; then
4218 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4219 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4225 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4229 XGETTEXT
="$ac_cv_path_XGETTEXT"
4230 if test -n "$XGETTEXT"; then
4231 echo "$ac_t""$XGETTEXT" 1>&6
4233 echo "$ac_t""no" 1>&6
4237 USE_INCLUDED_LIBINTL
=yes
4241 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4243 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4244 nls_cv_header_intl
=libintl.h
4245 nls_cv_header_libgt
=libgettext.h
4248 if test "$XGETTEXT" != ":"; then
4249 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4252 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4257 # We need to process the po/ directory.
4261 nls_cv_header_intl
=libintl.h
4262 nls_cv_header_libgt
=libgettext.h
4265 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4266 # because some of the sources are only built for this goal.
4267 if test "$PACKAGE" = gettext; then
4269 USE_INCLUDED_LIBINTL
=yes
4272 for lang
in $ALL_LINGUAS; do
4273 GMOFILES
="$GMOFILES $lang.gmo"
4274 POFILES
="$POFILES $lang.po"
4290 if test "x$CATOBJEXT" != "x"; then
4291 if test "x$ALL_LINGUAS" = "x"; then
4294 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4295 echo "configure:4296: checking for catalogs to be installed" >&5
4297 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4298 case "$ALL_LINGUAS" in
4299 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4302 LINGUAS
=$NEW_LINGUAS
4303 echo "$ac_t""$LINGUAS" 1>&6
4306 if test -n "$LINGUAS"; then
4307 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4311 if test $ac_cv_header_locale_h = yes; then
4312 INCLUDE_LOCALE_H
="#include <locale.h>"
4315 /* The system does not provide the header <locale.h>. Take care yourself. */"
4319 if test -f $srcdir/po2tbl.
sed.
in; then
4320 if test "$CATOBJEXT" = ".cat"; then
4321 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4322 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4323 echo "configure:4324: checking for linux/version.h" >&5
4324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 cat > conftest.
$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <linux/version.h>
4332 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4333 { (eval echo configure
:4334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4334 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4335 if test -z "$ac_err"; then
4337 eval "ac_cv_header_$ac_safe=yes"
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4343 eval "ac_cv_header_$ac_safe=no"
4347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4351 echo "$ac_t""no" 1>&6
4356 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4358 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4359 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4362 if test "$PACKAGE" = "gettext"; then
4372 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4378 if test -f $srcdir/po
/POTFILES.
in; then
4379 test -d po || mkdir po
4380 if test "x$srcdir" != "x."; then
4381 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4382 posrcprefix
="$srcdir/"
4384 posrcprefix
="../$srcdir/"
4390 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4391 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4395 .
${srcdir}/..
/bfd
/configure.
host
4397 # Put a plausible default for CC_FOR_BUILD in Makefile.
4398 if test -z "$CC_FOR_BUILD"; then
4399 if test "x$cross_compiling" = "xno"; then
4400 CC_FOR_BUILD
='$(CC)'
4406 # Also set EXEEXT_FOR_BUILD.
4407 if test "x$cross_compiling" = "xno"; then
4408 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4410 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4411 echo "configure:4412: checking for build system executable suffix" >&5
4412 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4416 echo 'int main () { return 0; }' > conftest.c
4417 bfd_cv_build_exeext
=
4418 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4419 for file in conftest.
*; do
4421 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4422 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4426 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4429 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4431 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4436 # Find a good install program. We prefer a C program (faster),
4437 # so one script is as good as another. But avoid the broken or
4438 # incompatible versions:
4439 # SysV /etc/install, /usr/sbin/install
4440 # SunOS /usr/etc/install
4441 # IRIX /sbin/install
4443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4448 echo "configure:4449: checking for a BSD compatible install" >&5
4449 if test -z "$INSTALL"; then
4450 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4454 for ac_dir
in $PATH; do
4455 # Account for people who put trailing slashes in PATH elements.
4457 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4462 for ac_prog
in ginstall scoinst
install; do
4463 if test -f $ac_dir/$ac_prog; then
4464 if test $ac_prog = install &&
4465 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4466 # AIX install. It has an incompatible calling convention.
4469 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4480 if test "${ac_cv_path_install+set}" = set; then
4481 INSTALL
="$ac_cv_path_install"
4483 # As a last resort, use the slow shell script. We don't cache a
4484 # path for INSTALL within a source directory, because that will
4485 # break other packages using the cache if that directory is
4486 # removed, or if the path is relative.
4487 INSTALL
="$ac_install_sh"
4490 echo "$ac_t""$INSTALL" 1>&6
4492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493 # It thinks the first close brace ends the variable substitution.
4494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4498 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4501 for ac_hdr
in string.h
strings.h stdlib.h
4503 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_hdr" >&5
4506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure
:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4519 eval "ac_cv_header_$ac_safe=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 eval "ac_cv_header_$ac_safe=no"
4529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4532 cat >> confdefs.h
<<EOF
4533 #define $ac_tr_hdr 1
4537 echo "$ac_t""no" 1>&6
4543 cgendir
='$(srcdir)/../cgen'
4545 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4546 if test "${enable_cgen_maint+set}" = set; then
4547 enableval
="$enable_cgen_maint"
4548 case "${enableval}" in
4549 yes) cgen_maint
=yes ;;
4550 no
) cgen_maint
=no
;;
4552 # argument is cgen install directory (not implemented yet).
4553 # Having a `share' directory might be more appropriate for the .scm,
4556 cgendir
=${cgen_maint}/lib
/cgen
4562 if test x
${cgen_maint} = xyes
; then
4564 CGEN_MAINT_FALSE
='#'
4573 # Horrible hacks to build DLLs on Windows.
4578 if test "$enable_shared" = "yes"; then
4579 WIN32LDFLAGS
="-no-undefined"
4580 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4587 # target-specific stuff:
4589 # Canonicalize the secondary target names.
4590 if test -n "$enable_targets" ; then
4591 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4593 result
=`$ac_config_sub $targ 2>/dev/null`
4594 if test -n "$result" ; then
4595 canon_targets
="$canon_targets $result"
4597 # Allow targets that config.sub doesn't recognize, like "all".
4598 canon_targets
="$canon_targets $targ"
4605 for targ
in $target $canon_targets
4607 if test "x$targ" = "xall" ; then
4610 .
$srcdir/..
/bfd
/config.bfd
4611 selarchs
="$selarchs $targ_archs"
4615 # Utility var, documents generic cgen support files.
4617 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4619 # We don't do any links based on the target system, just makefile config.
4621 if test x
${all_targets} = xfalse
; then
4623 # Target architecture .o files.
4626 for arch
in $selarchs
4628 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4629 archdefs
="$archdefs -DARCH_$ad"
4631 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
4632 bfd_alliant_arch
) ;;
4633 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
4634 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4635 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
4636 bfd_avr_arch
) ta
="$ta avr-dis.lo" ;;
4638 bfd_cris_arch
) ta
="$ta cris-dis.lo cris-opc.lo" ;;
4639 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
4640 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
4641 bfd_dlx_arch
) ta
="$ta dlx-dis.lo" ;;
4642 bfd_fr30_arch
) ta
="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen
=yes ;;
4643 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
4644 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
4645 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
4646 bfd_i370_arch
) ta
="$ta i370-dis.lo i370-opc.lo" ;;
4647 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
4648 bfd_i860_arch
) ta
="$ta i860-dis.lo" ;;
4649 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
4650 bfd_ia64_arch
) ta
="$ta ia64-dis.lo ia64-opc.lo" ;;
4651 bfd_ip2k_arch
) ta
="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen
=yes ;;
4652 bfd_iq2000_arch
) ta
="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen
=yes ;;
4653 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 ;;
4654 bfd_m68hc11_arch
) ta
="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4655 bfd_m68hc12_arch
) ta
="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4656 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
4657 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
4658 bfd_mcore_arch
) ta
="$ta mcore-dis.lo" ;;
4659 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4660 bfd_mmix_arch
) ta
="$ta mmix-dis.lo mmix-opc.lo" ;;
4661 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
4662 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
4663 bfd_msp430_arch
) ta
="$ta msp430-dis.lo" ;;
4664 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
4665 bfd_openrisc_arch
) ta
="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen
=yes ;;
4666 bfd_or32_arch
) ta
="$ta or32-dis.lo or32-opc.lo" using_cgen
=yes ;;
4667 bfd_pdp11_arch
) ta
="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4668 bfd_pj_arch
) ta
="$ta pj-dis.lo pj-opc.lo" ;;
4669 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4670 bfd_powerpc_64_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4671 bfd_pyramid_arch
) ;;
4673 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
4674 bfd_s390_arch
) ta
="$ta s390-dis.lo s390-opc.lo" ;;
4676 # We can't decide what we want just from the CPU family.
4677 # We want SH5 support unless a specific version of sh is
4678 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
4679 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
4680 for t
in $target $canon_targets; do
4682 all | sh5
*-* | sh64
*-* | sh-
*-*elf
* | shl
*-*-*elf
* | \
4683 sh-
*-linux* | shl-
*-linux*)
4684 ta
="$ta sh64-dis.lo sh64-opc.lo"
4685 archdefs
="$archdefs -DINCLUDE_SHMEDIA"
4689 ta
="$ta sh-dis.lo" ;;
4690 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
4692 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
4693 bfd_tic4x_arch
) ta
="$ta tic4x-dis.lo" ;;
4694 bfd_tic54x_arch
) ta
="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4695 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
4696 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4697 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4698 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
4699 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
4700 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
4702 bfd_xstormy16_arch
) ta
="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen
=yes ;;
4703 bfd_xtensa_arch
) ta
="$ta xtensa-dis.lo" ;;
4704 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
4705 bfd_frv_arch
) ta
="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen
=yes ;;
4708 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4712 if test $using_cgen = yes ; then
4713 ta
="$ta $cgen_files"
4716 # Weed out duplicate .o files.
4726 # And duplicate -D flags.
4728 for i
in $archdefs ; do
4738 else # all_targets is true
4740 BFD_MACHINES
='$(ALL_MACHINES)'
4747 cat > confcache
<<\EOF
4748 # This file is a shell script that caches the results of configure
4749 # tests run on this system so they can be shared between configure
4750 # scripts and configure runs. It is not useful on other systems.
4751 # If it contains results you don't want to keep, you may remove or edit it.
4753 # By default, configure uses ./config.cache as the cache file,
4754 # creating it if it does not exist already. You can give configure
4755 # the --cache-file=FILE option to use a different cache file; that is
4756 # what configure does when it calls configure scripts in
4757 # subdirectories, so they share the cache.
4758 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4759 # config.status only pays attention to the cache file if you give it the
4760 # --recheck option to rerun configure.
4763 # The following way of writing the cache mishandles newlines in values,
4764 # but we know of no workaround that is simple, portable, and efficient.
4765 # So, don't put newlines in cache variables' values.
4766 # Ultrix sh set writes to stderr and can't be redirected directly,
4767 # and sets the high bit in the cache file unless we assign to the vars.
4769 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4771 # `set' does not quote correctly, so add quotes (double-quote substitution
4772 # turns \\\\ into \\, and sed turns \\ into \).
4774 -e "s/'/'\\\\''/g" \
4775 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4778 # `set' quotes correctly as required by POSIX, so do not add quotes.
4779 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4782 if cmp -s $cache_file confcache
; then
4785 if test -w $cache_file; then
4786 echo "updating cache $cache_file"
4787 cat confcache
> $cache_file
4789 echo "not updating unwritable cache $cache_file"
4794 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4796 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4797 # Let make expand exec_prefix.
4798 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4800 # Any assignment to VPATH causes Sun make to only execute
4801 # the first set of double-colon rules, so remove it if not needed.
4802 # If there is a colon in the path, we need to keep it.
4803 if test "x$srcdir" = x.
; then
4804 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4807 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4809 DEFS
=-DHAVE_CONFIG_H
4811 # Without the "./", some shells look in PATH for config.status.
4812 : ${CONFIG_STATUS=./config.status}
4814 echo creating
$CONFIG_STATUS
4815 rm -f $CONFIG_STATUS
4816 cat > $CONFIG_STATUS <<EOF
4818 # Generated automatically by configure.
4819 # Run this file to recreate the current configuration.
4820 # This directory was configured as follows,
4821 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4823 # $0 $ac_configure_args
4825 # Compiler output produced by configure, useful for debugging
4826 # configure, is in ./config.log if it exists.
4828 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4831 case "\$ac_option" in
4832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4833 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4834 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4835 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4836 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4838 -help | --help | --hel | --he | --h)
4839 echo "\$ac_cs_usage"; exit 0 ;;
4840 *) echo "\$ac_cs_usage"; exit 1 ;;
4844 ac_given_srcdir=$srcdir
4845 ac_given_INSTALL="$INSTALL"
4847 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4849 cat >> $CONFIG_STATUS <<EOF
4851 # Protect against being on the right side of a sed subst in config.status.
4852 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4853 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4857 s%@CFLAGS@%$CFLAGS%g
4858 s%@CPPFLAGS@%$CPPFLAGS%g
4859 s%@CXXFLAGS@%$CXXFLAGS%g
4860 s%@FFLAGS@%$FFLAGS%g
4862 s%@LDFLAGS@%$LDFLAGS%g
4864 s%@exec_prefix@%$exec_prefix%g
4865 s%@prefix@%$prefix%g
4866 s%@program_transform_name@%$program_transform_name%g
4867 s%@bindir@%$bindir%g
4868 s%@sbindir@%$sbindir%g
4869 s%@libexecdir@%$libexecdir%g
4870 s%@datadir@%$datadir%g
4871 s%@sysconfdir@%$sysconfdir%g
4872 s%@sharedstatedir@%$sharedstatedir%g
4873 s%@localstatedir@%$localstatedir%g
4874 s%@libdir@%$libdir%g
4875 s%@includedir@%$includedir%g
4876 s%@oldincludedir@%$oldincludedir%g
4877 s%@infodir@%$infodir%g
4878 s%@mandir@%$mandir%g
4880 s%@host_alias@%$host_alias%g
4881 s%@host_cpu@%$host_cpu%g
4882 s%@host_vendor@%$host_vendor%g
4883 s%@host_os@%$host_os%g
4884 s%@target@%$target%g
4885 s%@target_alias@%$target_alias%g
4886 s%@target_cpu@%$target_cpu%g
4887 s%@target_vendor@%$target_vendor%g
4888 s%@target_os@%$target_os%g
4890 s%@build_alias@%$build_alias%g
4891 s%@build_cpu@%$build_cpu%g
4892 s%@build_vendor@%$build_vendor%g
4893 s%@build_os@%$build_os%g
4894 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4895 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4896 s%@INSTALL_DATA@%$INSTALL_DATA%g
4897 s%@PACKAGE@%$PACKAGE%g
4898 s%@VERSION@%$VERSION%g
4899 s%@ACLOCAL@%$ACLOCAL%g
4900 s%@AUTOCONF@%$AUTOCONF%g
4901 s%@AUTOMAKE@%$AUTOMAKE%g
4902 s%@AUTOHEADER@%$AUTOHEADER%g
4903 s%@MAKEINFO@%$MAKEINFO%g
4904 s%@SET_MAKE@%$SET_MAKE%g
4906 s%@RANLIB@%$RANLIB%g
4909 s%@OBJEXT@%$OBJEXT%g
4910 s%@EXEEXT@%$EXEEXT%g
4912 s%@LIBTOOL@%$LIBTOOL%g
4913 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4914 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4915 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4917 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
4918 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
4919 s%@bfdlibdir@%$bfdlibdir%g
4920 s%@bfdincludedir@%$bfdincludedir%g
4922 s%@ALLOCA@%$ALLOCA%g
4923 s%@USE_NLS@%$USE_NLS%g
4924 s%@MSGFMT@%$MSGFMT%g
4925 s%@GMSGFMT@%$GMSGFMT%g
4926 s%@XGETTEXT@%$XGETTEXT%g
4927 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4928 s%@CATALOGS@%$CATALOGS%g
4929 s%@CATOBJEXT@%$CATOBJEXT%g
4930 s%@DATADIRNAME@%$DATADIRNAME%g
4931 s%@GMOFILES@%$GMOFILES%g
4932 s%@INSTOBJEXT@%$INSTOBJEXT%g
4933 s%@INTLDEPS@%$INTLDEPS%g
4934 s%@INTLLIBS@%$INTLLIBS%g
4935 s%@INTLOBJS@%$INTLOBJS%g
4936 s%@POFILES@%$POFILES%g
4938 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4940 s%@GT_YES@%$GT_YES%g
4941 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4943 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4944 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4945 s%@HDEFINES@%$HDEFINES%g
4946 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4947 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4948 s%@cgendir@%$cgendir%g
4949 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4950 s%@WIN32LIBADD@%$WIN32LIBADD%g
4951 s%@archdefs@%$archdefs%g
4952 s%@BFD_MACHINES@%$BFD_MACHINES%g
4957 cat >> $CONFIG_STATUS <<\EOF
4959 # Split the substitutions into bite-sized pieces for seds with
4960 # small command number limits, like on Digital OSF/1 and HP-UX.
4961 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4962 ac_file
=1 # Number of current file.
4963 ac_beg
=1 # First line for current file.
4964 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4967 while $ac_more_lines; do
4968 if test $ac_beg -gt 1; then
4969 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4971 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4973 if test ! -s conftest.s
$ac_file; then
4975 rm -f conftest.s
$ac_file
4977 if test -z "$ac_sed_cmds"; then
4978 ac_sed_cmds
="sed -f conftest.s$ac_file"
4980 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4982 ac_file
=`expr $ac_file + 1`
4984 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4987 if test -z "$ac_sed_cmds"; then
4992 cat >> $CONFIG_STATUS <<EOF
4994 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4996 cat >> $CONFIG_STATUS <<\EOF
4997 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5000 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5001 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5002 *) ac_file_in
="${ac_file}.in" ;;
5005 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5007 # Remove last slash and all that follows it. Not all systems have dirname.
5008 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5010 # The file is in a subdirectory.
5011 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5012 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5013 # A "../" for each directory in $ac_dir_suffix.
5014 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5016 ac_dir_suffix
= ac_dots
=
5019 case "$ac_given_srcdir" in
5021 if test -z "$ac_dots"; then top_srcdir
=.
5022 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5023 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5025 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5026 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5029 case "$ac_given_INSTALL" in
5030 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5031 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5034 echo creating
"$ac_file"
5036 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5038 *Makefile
*) ac_comsub
="1i\\
5039 # $configure_input" ;;
5043 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5045 s%@configure_input@%$configure_input%g
5046 s%@srcdir@%$srcdir%g
5047 s%@top_srcdir@%$top_srcdir%g
5048 s%@INSTALL@%$INSTALL%g
5049 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5053 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5054 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5056 # ac_d sets the value in "#define NAME VALUE" lines.
5057 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5058 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5061 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5062 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5063 ac_uB
='\([ ]\)%\1#\2define\3'
5066 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5067 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5068 ac_eB
='$%\1#\2define\3'
5072 if test "${CONFIG_HEADERS+set}" != set; then
5074 cat >> $CONFIG_STATUS <<EOF
5075 CONFIG_HEADERS="config.h:config.in"
5077 cat >> $CONFIG_STATUS <<\EOF
5079 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5082 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5083 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5084 *) ac_file_in
="${ac_file}.in" ;;
5087 echo creating
$ac_file
5089 rm -f conftest.frag conftest.
in conftest.out
5090 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5091 cat $ac_file_inputs > conftest.
in
5095 # Transform confdefs.h into a sed script conftest.vals that substitutes
5096 # the proper values into config.h.in to produce config.h. And first:
5097 # Protect against being on the right side of a sed subst in config.status.
5098 # Protect against being in an unquoted here document in config.status.
5100 cat > conftest.hdr
<<\EOF
5103 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5107 sed -n -f conftest.hdr confdefs.h > conftest.vals
5110 # This sed command replaces #undef with comments. This is necessary, for
5111 # example, in the case of _POSIX_SOURCE, which is predefined and required
5112 # on some systems where configure will not decide to define it.
5113 cat >> conftest.vals <<\EOF
5114 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5117 # Break up conftest.vals because some shells have a limit on
5118 # the size of here documents, and old seds have small limits too.
5123 ac_lines=`grep -c . conftest.vals
`
5124 # grep -c gives empty output for an empty file on some AIX systems.
5125 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5126 # Write a limited-size here document to conftest.frag.
5127 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5128 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5130 sed -f conftest.frag conftest.in > conftest.out
5132 mv conftest.out conftest.in
5134 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5136 mv conftest.tail conftest.vals
5140 cat >> $CONFIG_STATUS <<\EOF
5141 rm -f conftest.frag conftest.h
5142 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5143 cat conftest.in >> conftest.h
5145 if cmp -s $ac_file conftest.h 2>/dev/null; then
5146 echo "$ac_file is unchanged"
5149 # Remove last slash and all that follows it. Not all systems have dirname.
5150 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5151 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5152 # The file is in a subdirectory.
5153 test ! -d "$ac_dir" && mkdir "$ac_dir"
5156 mv conftest.h $ac_file
5161 cat >> $CONFIG_STATUS <<EOF
5165 cat >> $CONFIG_STATUS <<\EOF
5166 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5167 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5170 chmod +x $CONFIG_STATUS
5171 rm -fr confdefs* $ac_clean_files
5172 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1