3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-targets alternative target configurations"
23 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
25 --disable-nls do not use Native Language Support"
27 --with-included-gettext use the GNU gettext library included here"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 SHELL
=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.12.2"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=ldmain.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
543 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
562 # Do some error checking and defaulting for the host and target type.
564 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 # as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583 # Make sure we can run config.sub.
584 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
589 echo "configure:590: checking host system type" >&5
592 case "$host_alias" in
596 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 *) host_alias
=$nonopt ;;
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
613 case "$target_alias" in
616 NONE
) target_alias
=$host_alias ;;
617 *) target_alias
=$nonopt ;;
621 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
631 case "$build_alias" in
634 NONE
) build_alias
=$host_alias ;;
635 *) build_alias
=$nonopt ;;
639 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
648 program_prefix
=${target_alias}-
651 # Find a good install program. We prefer a C program (faster),
652 # so one script is as good as another. But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
661 # ./install, which can be erroneously created by make from ./install.sh.
662 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
663 echo "configure:664: checking for a BSD compatible install" >&5
664 if test -z "$INSTALL"; then
665 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
669 for ac_dir
in $PATH; do
670 # Account for people who put trailing slashes in PATH elements.
672 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
674 # OSF1 and SCO ODT 3.0 have their own names for install.
675 # Don't use installbsd from OSF since it installs stuff as root
677 for ac_prog
in ginstall scoinst
install; do
678 if test -f $ac_dir/$ac_prog; then
679 if test $ac_prog = install &&
680 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
681 # AIX install. It has an incompatible calling convention.
684 ac_cv_path_install
="$ac_dir/$ac_prog -c"
695 if test "${ac_cv_path_install+set}" = set; then
696 INSTALL
="$ac_cv_path_install"
698 # As a last resort, use the slow shell script. We don't cache a
699 # path for INSTALL within a source directory, because that will
700 # break other packages using the cache if that directory is
701 # removed, or if the path is relative.
702 INSTALL
="$ac_install_sh"
705 echo "$ac_t""$INSTALL" 1>&6
707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
708 # It thinks the first close brace ends the variable substitution.
709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
711 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
716 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
717 echo "configure:718: checking whether build environment is sane" >&5
720 echo timestamp
> conftestfile
721 # Do `set' in a subshell so we don't clobber the current shell's
722 # arguments. Must try -L first in case configure is actually a
723 # symlink; some systems play weird games with the mod time of symlinks
724 # (eg FreeBSD returns the mod time of the symlink's containing
727 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
728 if test "$*" = "X"; then
730 set X
`ls -t $srcdir/configure conftestfile`
732 if test "$*" != "X $srcdir/configure conftestfile" \
733 && test "$*" != "X conftestfile $srcdir/configure"; then
735 # If neither matched, then we have a broken ls. This can happen
736 # if, for instance, CONFIG_SHELL is bash and it inherits a
737 # broken ls alias from the environment. This has actually
738 # happened. Such a system could not be considered "sane".
739 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
740 alias in your environment" 1>&2; exit 1; }
743 test "$2" = conftestfile
749 { echo "configure: error: newly created file is older than distributed files!
750 Check your system clock" 1>&2; exit 1; }
753 echo "$ac_t""yes" 1>&6
754 if test "$program_transform_name" = s
,x
,x
,; then
755 program_transform_name
=
757 # Double any \ or $. echo might interpret backslashes.
758 cat <<\EOF_SED
> conftestsed
759 s
,\\,\\\\,g
; s
,\$
,$$
,g
761 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
764 test "$program_prefix" != NONE
&&
765 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
766 # Use a double $ so make ignores it.
767 test "$program_suffix" != NONE
&&
768 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
770 # sed with no file args requires a program.
771 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake
<<\EOF
781 @
echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_
${ac_make}_set
=yes
788 eval ac_cv_prog_make_
${ac_make}_set
=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE
="MAKE=${MAKE-make}"
805 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
806 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
808 cat >> confdefs.h
<<EOF
809 #define PACKAGE "$PACKAGE"
812 cat >> confdefs.h
<<EOF
813 #define VERSION "$VERSION"
818 missing_dir
=`cd $ac_aux_dir && pwd`
819 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
820 echo "configure:821: checking for working aclocal" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
826 echo "$ac_t""found" 1>&6
828 ACLOCAL
="$missing_dir/missing aclocal"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
833 echo "configure:834: checking for working autoconf" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
839 echo "$ac_t""found" 1>&6
841 AUTOCONF
="$missing_dir/missing autoconf"
842 echo "$ac_t""missing" 1>&6
845 echo $ac_n "checking for working automake""... $ac_c" 1>&6
846 echo "configure:847: checking for working automake" >&5
847 # Run test in a subshell; some versions of sh will print an error if
848 # an executable is not found, even if stderr is redirected.
849 # Redirect stdin to placate older versions of autoconf. Sigh.
850 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
852 echo "$ac_t""found" 1>&6
854 AUTOMAKE
="$missing_dir/missing automake"
855 echo "$ac_t""missing" 1>&6
858 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
859 echo "configure:860: checking for working autoheader" >&5
860 # Run test in a subshell; some versions of sh will print an error if
861 # an executable is not found, even if stderr is redirected.
862 # Redirect stdin to placate older versions of autoconf. Sigh.
863 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
864 AUTOHEADER
=autoheader
865 echo "$ac_t""found" 1>&6
867 AUTOHEADER
="$missing_dir/missing autoheader"
868 echo "$ac_t""missing" 1>&6
871 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
872 echo "configure:873: checking for working makeinfo" >&5
873 # Run test in a subshell; some versions of sh will print an error if
874 # an executable is not found, even if stderr is redirected.
875 # Redirect stdin to placate older versions of autoconf. Sigh.
876 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
878 echo "$ac_t""found" 1>&6
880 MAKEINFO
="$missing_dir/missing makeinfo"
881 echo "$ac_t""missing" 1>&6
886 # Check whether --enable-shared or --disable-shared was given.
887 if test "${enable_shared+set}" = set; then
888 enableval
="$enable_shared"
891 yes) enable_shared
=yes ;;
892 no
) enable_shared
=no
;;
895 # Look at the argument we got. We use all the common list separators.
896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
897 for pkg
in $enableval; do
898 if test "X$pkg" = "X$p"; then
909 # Check whether --enable-static or --disable-static was given.
910 if test "${enable_static+set}" = set; then
911 enableval
="$enable_static"
914 yes) enable_static
=yes ;;
915 no
) enable_static
=no
;;
918 # Look at the argument we got. We use all the common list separators.
919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
920 for pkg
in $enableval; do
921 if test "X$pkg" = "X$p"; then
932 # Extract the first word of "ranlib", so it can be a program name with args.
933 set dummy ranlib
; ac_word
=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$RANLIB"; then
940 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
943 for ac_dir
in $PATH; do
944 test -z "$ac_dir" && ac_dir
=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_RANLIB
="ranlib"
951 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
954 RANLIB
="$ac_cv_prog_RANLIB"
955 if test -n "$RANLIB"; then
956 echo "$ac_t""$RANLIB" 1>&6
958 echo "$ac_t""no" 1>&6
961 # Extract the first word of "gcc", so it can be a program name with args.
962 set dummy gcc
; ac_word
=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test -n "$CC"; then
969 ac_cv_prog_CC
="$CC" # Let the user override the test.
971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
972 for ac_dir
in $PATH; do
973 test -z "$ac_dir" && ac_dir
=.
974 if test -f $ac_dir/$ac_word; then
983 if test -n "$CC"; then
984 echo "$ac_t""$CC" 1>&6
986 echo "$ac_t""no" 1>&6
989 if test -z "$CC"; then
990 # Extract the first word of "cc", so it can be a program name with args.
991 set dummy cc
; ac_word
=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC
="$CC" # Let the user override the test.
1000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1002 for ac_dir
in $PATH; do
1003 test -z "$ac_dir" && ac_dir
=.
1004 if test -f $ac_dir/$ac_word; then
1005 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1006 ac_prog_rejected
=yes
1014 if test $ac_prog_rejected = yes; then
1015 # We found a bogon in the path, so make sure we never use it.
1016 set dummy
$ac_cv_prog_CC
1018 if test $# -gt 0; then
1019 # We chose a different compiler from the bogus one.
1020 # However, it has the same basename, so the bogon will be chosen
1021 # first if we set CC to just the basename; use the full file name.
1023 set dummy
"$ac_dir/$ac_word" "$@"
1031 if test -n "$CC"; then
1032 echo "$ac_t""$CC" 1>&6
1034 echo "$ac_t""no" 1>&6
1037 if test -z "$CC"; then
1038 case "`uname -s`" in
1040 # Extract the first word of "cl", so it can be a program name with args.
1041 set dummy cl
; ac_word
=$2
1042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043 echo "configure:1044: checking for $ac_word" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 if test -n "$CC"; then
1048 ac_cv_prog_CC
="$CC" # Let the user override the test.
1050 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1051 for ac_dir
in $PATH; do
1052 test -z "$ac_dir" && ac_dir
=.
1053 if test -f $ac_dir/$ac_word; then
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1070 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1073 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1078 ac_cpp
='$CPP $CPPFLAGS'
1079 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1080 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1081 cross_compiling
=$ac_cv_prog_cc_cross
1083 cat > conftest.
$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1088 if { (eval echo configure
:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1089 ac_cv_prog_cc_works
=yes
1090 # If we can't run a trivial program, we are probably using a cross compiler.
1091 if (.
/conftest
; exit) 2>/dev
/null
; then
1092 ac_cv_prog_cc_cross
=no
1094 ac_cv_prog_cc_cross
=yes
1097 echo "configure: failed program was:" >&5
1098 cat conftest.
$ac_ext >&5
1099 ac_cv_prog_cc_works
=no
1103 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1104 if test $ac_cv_prog_cc_works = no
; then
1105 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1109 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1110 cross_compiling
=$ac_cv_prog_cc_cross
1112 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether we are using GNU C" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.c
<<EOF
1122 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1129 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1131 if test $ac_cv_prog_gcc = yes; then
1137 ac_test_CFLAGS
="${CFLAGS+set}"
1138 ac_save_CFLAGS
="$CFLAGS"
1140 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CC-cc} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 echo 'void f(){}' > conftest.c
1146 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1155 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1156 if test "$ac_test_CFLAGS" = set; then
1157 CFLAGS
="$ac_save_CFLAGS"
1158 elif test $ac_cv_prog_cc_g = yes; then
1159 if test "$GCC" = yes; then
1165 if test "$GCC" = yes; then
1172 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1173 if test "${with_gnu_ld+set}" = set; then
1174 withval
="$with_gnu_ld"
1175 test "$withval" = no || with_gnu_ld
=yes
1182 if test "$ac_cv_prog_gcc" = yes; then
1183 # Check if gcc -print-prog-name=ld gives a path.
1184 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1185 echo "configure:1186: checking for ld used by GCC" >&5
1186 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1188 # Accept absolute paths.
1190 test -z "$LD" && LD
="$ac_prog"
1193 # If it fails, then pretend we aren't using GCC.
1197 # If it is relative, then search for the first ld in PATH.
1201 elif test "$with_gnu_ld" = yes; then
1202 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1203 echo "configure:1204: checking for GNU ld" >&5
1205 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1206 echo "configure:1207: checking for non-GNU ld" >&5
1208 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -z "$LD"; then
1212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1213 for ac_dir
in $PATH; do
1214 test -z "$ac_dir" && ac_dir
=.
1215 if test -f "$ac_dir/$ac_prog"; then
1216 ac_cv_path_LD
="$ac_dir/$ac_prog"
1217 # Check to see if the program is GNU ld. I'd rather use --version,
1218 # but apparently some GNU ld's only accept -v.
1219 # Break only if it was the GNU/non-GNU ld that we prefer.
1220 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1221 test "$with_gnu_ld" != no
&& break
1223 test "$with_gnu_ld" != yes && break
1229 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1234 if test -n "$LD"; then
1235 echo "$ac_t""$LD" 1>&6
1237 echo "$ac_t""no" 1>&6
1239 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1241 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1247 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1248 ac_cv_prog_gnu_ld
=yes
1250 ac_cv_prog_gnu_ld
=no
1254 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1257 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1258 echo "configure:1259: checking for BSD-compatible nm" >&5
1259 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 if test -n "$NM"; then
1263 # Let the user override the test.
1266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1267 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1268 test -z "$ac_dir" && ac_dir
=.
1269 if test -f $ac_dir/nm
; then
1270 # Check to see if the nm accepts a BSD-compat flag.
1271 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1272 # nm: unknown option "B" ignored
1273 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1274 ac_cv_path_NM
="$ac_dir/nm -B"
1275 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1276 ac_cv_path_NM
="$ac_dir/nm -p"
1278 ac_cv_path_NM
="$ac_dir/nm"
1284 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1289 echo "$ac_t""$NM" 1>&6
1292 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ln -s works" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1298 if ln -s X conftestdata
2>/dev
/null
1301 ac_cv_prog_LN_S
="ln -s"
1306 LN_S
="$ac_cv_prog_LN_S"
1307 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1308 echo "$ac_t""yes" 1>&6
1310 echo "$ac_t""no" 1>&6
1313 if test $host != $build; then
1314 ac_tool_prefix
=${host_alias}-
1319 # Always use our own libtool.
1320 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1322 # Check for any special flags to pass to ltconfig.
1324 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1325 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1326 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1327 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1328 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1330 # Some flags need to be propagated to the compiler or linker for good
1334 # Find out which ABI we are using.
1335 echo '#line 1336 "configure"' > conftest.
$ac_ext
1336 if { (eval echo configure
:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337 case "`/usr/bin/file conftest.o`" in
1353 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1354 CFLAGS
="$CFLAGS -belf"
1358 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1359 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1361 echo "configure:1362: checking for $ac_word" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1365 if test -n "$DLLTOOL"; then
1366 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1369 for ac_dir
in $PATH; do
1370 test -z "$ac_dir" && ac_dir
=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1379 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1380 if test -n "$DLLTOOL"; then
1381 echo "$ac_t""$DLLTOOL" 1>&6
1383 echo "$ac_t""no" 1>&6
1387 if test -z "$ac_cv_prog_DLLTOOL"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "dlltool", so it can be a program name with args.
1390 set dummy dlltool
; ac_word
=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 if test -n "$DLLTOOL"; then
1397 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1400 for ac_dir
in $PATH; do
1401 test -z "$ac_dir" && ac_dir
=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_DLLTOOL
="dlltool"
1408 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1411 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1412 if test -n "$DLLTOOL"; then
1413 echo "$ac_t""$DLLTOOL" 1>&6
1415 echo "$ac_t""no" 1>&6
1423 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1424 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1426 echo "configure:1427: checking for $ac_word" >&5
1427 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 if test -n "$AS"; then
1431 ac_cv_prog_AS
="$AS" # Let the user override the test.
1433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1434 for ac_dir
in $PATH; do
1435 test -z "$ac_dir" && ac_dir
=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_AS
="${ac_tool_prefix}as"
1445 if test -n "$AS"; then
1446 echo "$ac_t""$AS" 1>&6
1448 echo "$ac_t""no" 1>&6
1452 if test -z "$ac_cv_prog_AS"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "as", so it can be a program name with args.
1455 set dummy as
; ac_word
=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test -n "$AS"; then
1462 ac_cv_prog_AS
="$AS" # Let the user override the test.
1464 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1465 for ac_dir
in $PATH; do
1466 test -z "$ac_dir" && ac_dir
=.
1467 if test -f $ac_dir/$ac_word; then
1473 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1477 if test -n "$AS"; then
1478 echo "$ac_t""$AS" 1>&6
1480 echo "$ac_t""no" 1>&6
1493 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1494 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1495 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1496 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1497 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1498 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1499 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1501 # Redirect the config.log output again, so that the ltconfig log is not
1502 # clobbered by the next message.
1503 exec 5>>.
/config.log
1506 # Check whether --enable-targets or --disable-targets was given.
1507 if test "${enable_targets+set}" = set; then
1508 enableval
="$enable_targets"
1509 case "${enableval}" in
1510 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1512 no
) enable_targets
= ;;
1513 *) enable_targets
=$enableval ;;
1516 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1517 if test "${enable_64_bit_bfd+set}" = set; then
1518 enableval
="$enable_64_bit_bfd"
1519 case "${enableval}" in
1522 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1532 if test -z "$target" ; then
1533 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1535 if test -z "$host" ; then
1536 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1539 # host-specific stuff:
1541 # Extract the first word of "gcc", so it can be a program name with args.
1542 set dummy gcc
; ac_word
=$2
1543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1544 echo "configure:1545: checking for $ac_word" >&5
1545 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC
="$CC" # Let the user override the test.
1551 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1552 for ac_dir
in $PATH; do
1553 test -z "$ac_dir" && ac_dir
=.
1554 if test -f $ac_dir/$ac_word; then
1563 if test -n "$CC"; then
1564 echo "$ac_t""$CC" 1>&6
1566 echo "$ac_t""no" 1>&6
1569 if test -z "$CC"; then
1570 # Extract the first word of "cc", so it can be a program name with args.
1571 set dummy cc
; ac_word
=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -n "$CC"; then
1578 ac_cv_prog_CC
="$CC" # Let the user override the test.
1580 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1582 for ac_dir
in $PATH; do
1583 test -z "$ac_dir" && ac_dir
=.
1584 if test -f $ac_dir/$ac_word; then
1585 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1586 ac_prog_rejected
=yes
1594 if test $ac_prog_rejected = yes; then
1595 # We found a bogon in the path, so make sure we never use it.
1596 set dummy
$ac_cv_prog_CC
1598 if test $# -gt 0; then
1599 # We chose a different compiler from the bogus one.
1600 # However, it has the same basename, so the bogon will be chosen
1601 # first if we set CC to just the basename; use the full file name.
1603 set dummy
"$ac_dir/$ac_word" "$@"
1611 if test -n "$CC"; then
1612 echo "$ac_t""$CC" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 if test -z "$CC"; then
1618 case "`uname -s`" in
1620 # Extract the first word of "cl", so it can be a program name with args.
1621 set dummy cl
; ac_word
=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC
="$CC" # Let the user override the test.
1630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1631 for ac_dir
in $PATH; do
1632 test -z "$ac_dir" && ac_dir
=.
1633 if test -f $ac_dir/$ac_word; then
1642 if test -n "$CC"; then
1643 echo "$ac_t""$CC" 1>&6
1645 echo "$ac_t""no" 1>&6
1650 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1654 echo "configure:1655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1658 ac_cpp
='$CPP $CPPFLAGS'
1659 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1660 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1661 cross_compiling
=$ac_cv_prog_cc_cross
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1668 if { (eval echo configure
:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1669 ac_cv_prog_cc_works
=yes
1670 # If we can't run a trivial program, we are probably using a cross compiler.
1671 if (.
/conftest
; exit) 2>/dev
/null
; then
1672 ac_cv_prog_cc_cross
=no
1674 ac_cv_prog_cc_cross
=yes
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1679 ac_cv_prog_cc_works
=no
1683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1684 if test $ac_cv_prog_cc_works = no
; then
1685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1690 cross_compiling
=$ac_cv_prog_cc_cross
1692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1693 echo "configure:1694: checking whether we are using GNU C" >&5
1694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 cat > conftest.c
<<EOF
1702 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1711 if test $ac_cv_prog_gcc = yes; then
1717 ac_test_CFLAGS
="${CFLAGS+set}"
1718 ac_save_CFLAGS
="$CFLAGS"
1720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1721 echo "configure:1722: checking whether ${CC-cc} accepts -g" >&5
1722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 echo 'void f(){}' > conftest.c
1726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1736 if test "$ac_test_CFLAGS" = set; then
1737 CFLAGS
="$ac_save_CFLAGS"
1738 elif test $ac_cv_prog_cc_g = yes; then
1739 if test "$GCC" = yes; then
1745 if test "$GCC" = yes; then
1753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1757 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1758 echo "configure:1759: checking how to run the C preprocessor" >&5
1759 # On Suns, sometimes $CPP names a directory.
1760 if test -n "$CPP" && test -d "$CPP"; then
1763 if test -z "$CPP"; then
1764 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 # This must be in double quotes, not single quotes, because CPP may get
1768 # substituted into the Makefile and "${CC-cc}" will confuse make.
1770 # On the NeXT, cc -E runs the code through the compiler's parser,
1771 # not just through cpp.
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1779 { (eval echo configure
:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1781 if test -z "$ac_err"; then
1785 echo "configure: failed program was:" >&5
1786 cat conftest.
$ac_ext >&5
1788 CPP
="${CC-cc} -E -traditional-cpp"
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1795 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1796 { (eval echo configure
:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1797 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1798 if test -z "$ac_err"; then
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 CPP
="${CC-cc} -nologo -E"
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1812 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1813 { (eval echo configure
:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1814 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1815 if test -z "$ac_err"; then
1819 echo "configure: failed program was:" >&5
1820 cat conftest.
$ac_ext >&5
1829 ac_cv_prog_CPP
="$CPP"
1831 CPP
="$ac_cv_prog_CPP"
1833 ac_cv_prog_CPP
="$CPP"
1835 echo "$ac_t""$CPP" 1>&6
1837 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1838 echo "configure:1839: checking for POSIXized ISC" >&5
1839 if test -d /etc
/conf
/kconfig.d
&&
1840 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1842 echo "$ac_t""yes" 1>&6
1843 ISC
=yes # If later tests want to check for ISC.
1844 cat >> confdefs.h
<<\EOF
1845 #define _POSIX_SOURCE 1
1848 if test "$GCC" = yes; then
1854 echo "$ac_t""no" 1>&6
1858 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1859 echo "configure:1860: checking for ANSI C header files" >&5
1860 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1872 { (eval echo configure
:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1874 if test -z "$ac_err"; then
1876 ac_cv_header_stdc
=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1882 ac_cv_header_stdc
=no
1886 if test $ac_cv_header_stdc = yes; then
1887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1888 cat > conftest.
$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1894 egrep "memchr" >/dev
/null
2>&1; then
1898 ac_cv_header_stdc
=no
1904 if test $ac_cv_header_stdc = yes; then
1905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1906 cat > conftest.
$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1912 egrep "free" >/dev
/null
2>&1; then
1916 ac_cv_header_stdc
=no
1922 if test $ac_cv_header_stdc = yes; then
1923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1924 if test "$cross_compiling" = yes; then
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1931 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1932 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1934 int main () { int i; for (i = 0; i < 256; i++)
1935 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1939 if { (eval echo configure
:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1943 echo "configure: failed program was:" >&5
1944 cat conftest.
$ac_ext >&5
1946 ac_cv_header_stdc
=no
1954 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1955 if test $ac_cv_header_stdc = yes; then
1956 cat >> confdefs.h
<<\EOF
1957 #define STDC_HEADERS 1
1962 echo $ac_n "checking for working const""... $ac_c" 1>&6
1963 echo "configure:1964: checking for working const" >&5
1964 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1973 /* Ultrix mips cc rejects this. */
1974 typedef int charset[2]; const charset x;
1975 /* SunOS 4.1.1 cc rejects this. */
1976 char const *const *ccp;
1978 /* NEC SVR4.0.2 mips cc rejects this. */
1979 struct point {int x, y;};
1980 static struct point const zero = {0,0};
1981 /* AIX XL C 1.02.0.0 rejects this.
1982 It does not let you subtract one const X* pointer from another in an arm
1983 of an if-expression whose if-part is not a constant expression */
1984 const char *g = "string";
1985 ccp = &g + (g ? g-g : 0);
1986 /* HPUX 7.0 cc rejects these. */
1989 ccp = (char const *const *) p;
1990 { /* SCO 3.2v4 cc rejects this. */
1992 char const *s = 0 ? (char *) 0 : (char const *) 0;
1996 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1998 const int *foo = &x[0];
2001 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2002 typedef const int *iptr;
2006 { /* AIX XL C 1.02.0.0 rejects this saying
2007 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2008 struct s { int j; const int *ap[3]; };
2009 struct s *b; b->j = 5;
2011 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2017 if { (eval echo configure
:2018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2021 echo "configure: failed program was:" >&5
2022 cat conftest.
$ac_ext >&5
2029 echo "$ac_t""$ac_cv_c_const" 1>&6
2030 if test $ac_cv_c_const = no
; then
2031 cat >> confdefs.h
<<\EOF
2037 echo $ac_n "checking for inline""... $ac_c" 1>&6
2038 echo "configure:2039: checking for inline" >&5
2039 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2043 for ac_kw
in inline __inline__ __inline
; do
2044 cat > conftest.
$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2052 if { (eval echo configure
:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054 ac_cv_c_inline
=$ac_kw; break
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2064 echo "$ac_t""$ac_cv_c_inline" 1>&6
2065 case "$ac_cv_c_inline" in
2067 no
) cat >> confdefs.h
<<\EOF
2071 *) cat >> confdefs.h
<<EOF
2072 #define inline $ac_cv_c_inline
2077 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2078 echo "configure:2079: checking for off_t" >&5
2079 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 #include <sys/types.h>
2091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2092 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2094 ac_cv_type_off_t
=yes
2102 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2103 if test $ac_cv_type_off_t = no
; then
2104 cat >> confdefs.h
<<\EOF
2110 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2111 echo "configure:2112: checking for size_t" >&5
2112 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.
$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 #include <sys/types.h>
2124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2125 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2127 ac_cv_type_size_t
=yes
2130 ac_cv_type_size_t
=no
2135 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2136 if test $ac_cv_type_size_t = no
; then
2137 cat >> confdefs.h
<<\EOF
2138 #define size_t unsigned
2143 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2144 # for constant arguments. Useless!
2145 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2146 echo "configure:2147: checking for working alloca.h" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.
$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2155 char *p = alloca(2 * sizeof(int));
2158 if { (eval echo configure
:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2160 ac_cv_header_alloca_h
=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 ac_cv_header_alloca_h
=no
2170 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2171 if test $ac_cv_header_alloca_h = yes; then
2172 cat >> confdefs.h
<<\EOF
2173 #define HAVE_ALLOCA_H 1
2178 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2179 echo "configure:2180: checking for alloca" >&5
2180 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2188 # define alloca __builtin_alloca
2191 # include <malloc.h>
2192 # define alloca _alloca
2195 # include <alloca.h>
2200 # ifndef alloca /* predefined by HP cc +Olibcalls */
2209 char *p = (char *) alloca(1);
2212 if { (eval echo configure
:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2214 ac_cv_func_alloca_works
=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 ac_cv_func_alloca_works
=no
2224 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2225 if test $ac_cv_func_alloca_works = yes; then
2226 cat >> confdefs.h
<<\EOF
2227 #define HAVE_ALLOCA 1
2232 if test $ac_cv_func_alloca_works = no
; then
2233 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2234 # that cause trouble. Some versions do not even contain alloca or
2235 # contain a buggy version. If you still want to use their alloca,
2236 # use ar to extract alloca.o from them instead of compiling alloca.c.
2237 ALLOCA
=alloca.
${ac_objext}
2238 cat >> confdefs.h
<<\EOF
2243 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2244 echo "configure:2245: checking whether alloca needs Cray hooks" >&5
2245 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2251 #if defined(CRAY) && ! defined(CRAY2)
2258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2259 egrep "webecray" >/dev
/null
2>&1; then
2270 echo "$ac_t""$ac_cv_os_cray" 1>&6
2271 if test $ac_cv_os_cray = yes; then
2272 for ac_func
in _getb67 GETB67 getb67
; do
2273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_func" >&5
2275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.
$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char $ac_func(); below. */
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2302 if { (eval echo configure
:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2304 eval "ac_cv_func_$ac_func=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 eval "ac_cv_func_$ac_func=no"
2314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 cat >> confdefs.h
<<EOF
2317 #define CRAY_STACKSEG_END $ac_func
2322 echo "$ac_t""no" 1>&6
2328 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2329 echo "configure:2330: checking stack direction for C alloca" >&5
2330 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test "$cross_compiling" = yes; then
2334 ac_cv_c_stack_direction
=0
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 find_stack_direction ()
2341 static char *addr = 0;
2346 return find_stack_direction ();
2349 return (&dummy > addr) ? 1 : -1;
2353 exit (find_stack_direction() < 0);
2356 if { (eval echo configure
:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2358 ac_cv_c_stack_direction
=1
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 ac_cv_c_stack_direction
=-1
2370 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2371 cat >> confdefs.h
<<EOF
2372 #define STACK_DIRECTION $ac_cv_c_stack_direction
2377 for ac_hdr
in unistd.h
2379 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_hdr" >&5
2382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2390 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2391 { (eval echo configure
:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2392 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2393 if test -z "$ac_err"; then
2395 eval "ac_cv_header_$ac_safe=yes"
2398 echo "configure: failed program was:" >&5
2399 cat conftest.
$ac_ext >&5
2401 eval "ac_cv_header_$ac_safe=no"
2405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2408 cat >> confdefs.h
<<EOF
2409 #define $ac_tr_hdr 1
2413 echo "$ac_t""no" 1>&6
2417 for ac_func
in getpagesize
2419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_func" >&5
2421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 /* System header to define __stub macros and hopefully few prototypes,
2428 which can conflict with char $ac_func(); below. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2437 /* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2448 if { (eval echo configure
:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2450 eval "ac_cv_func_$ac_func=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 eval "ac_cv_func_$ac_func=no"
2460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2463 cat >> confdefs.h
<<EOF
2464 #define $ac_tr_func 1
2468 echo "$ac_t""no" 1>&6
2472 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2473 echo "configure:2474: checking for working mmap" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 if test "$cross_compiling" = yes; then
2478 ac_cv_func_mmap_fixed_mapped
=no
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2484 /* Thanks to Mike Haertel and Jim Avera for this test.
2485 Here is a matrix of mmap possibilities:
2486 mmap private not fixed
2487 mmap private fixed at somewhere currently unmapped
2488 mmap private fixed at somewhere already mapped
2489 mmap shared not fixed
2490 mmap shared fixed at somewhere currently unmapped
2491 mmap shared fixed at somewhere already mapped
2492 For private mappings, we should verify that changes cannot be read()
2493 back from the file, nor mmap's back from the file at a different
2494 address. (There have been systems where private was not correctly
2495 implemented like the infamous i386 svr4.0, and systems where the
2496 VM page cache was not coherent with the filesystem buffer cache
2497 like early versions of FreeBSD and possibly contemporary NetBSD.)
2498 For shared mappings, we should conversely verify that changes get
2499 propogated back to all the places they're supposed to be.
2501 Grep wants private fixed already mapped.
2502 The main things grep needs to know about mmap are:
2503 * does it exist and is it safe to write into the mmap'd area
2504 * how to use it (BSD variants) */
2505 #include <sys/types.h>
2507 #include <sys/mman.h>
2509 /* This mess was copied from the GNU getpagesize.h. */
2510 #ifndef HAVE_GETPAGESIZE
2511 # ifdef HAVE_UNISTD_H
2512 # include <unistd.h>
2515 /* Assume that all systems that can run configure have sys/param.h. */
2516 # ifndef HAVE_SYS_PARAM_H
2517 # define HAVE_SYS_PARAM_H 1
2520 # ifdef _SC_PAGESIZE
2521 # define getpagesize() sysconf(_SC_PAGESIZE)
2522 # else /* no _SC_PAGESIZE */
2523 # ifdef HAVE_SYS_PARAM_H
2524 # include <sys/param.h>
2525 # ifdef EXEC_PAGESIZE
2526 # define getpagesize() EXEC_PAGESIZE
2527 # else /* no EXEC_PAGESIZE */
2529 # define getpagesize() NBPG * CLSIZE
2532 # endif /* no CLSIZE */
2533 # else /* no NBPG */
2535 # define getpagesize() NBPC
2536 # else /* no NBPC */
2538 # define getpagesize() PAGESIZE
2539 # endif /* PAGESIZE */
2540 # endif /* no NBPC */
2541 # endif /* no NBPG */
2542 # endif /* no EXEC_PAGESIZE */
2543 # else /* no HAVE_SYS_PARAM_H */
2544 # define getpagesize() 8192 /* punt totally */
2545 # endif /* no HAVE_SYS_PARAM_H */
2546 # endif /* no _SC_PAGESIZE */
2548 #endif /* no HAVE_GETPAGESIZE */
2551 extern "C" { void *malloc(unsigned); }
2559 char *data, *data2, *data3;
2563 pagesize = getpagesize();
2566 * First, make a file with some known garbage in it.
2568 data = malloc(pagesize);
2571 for (i = 0; i < pagesize; ++i)
2572 *(data + i) = rand();
2574 fd = creat("conftestmmap", 0600);
2577 if (write(fd, data, pagesize) != pagesize)
2582 * Next, try to mmap the file at a fixed address which
2583 * already has something else allocated at it. If we can,
2584 * also make sure that we see the same garbage.
2586 fd = open("conftestmmap", O_RDWR);
2589 data2 = malloc(2 * pagesize);
2592 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2593 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2594 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2596 for (i = 0; i < pagesize; ++i)
2597 if (*(data + i) != *(data2 + i))
2601 * Finally, make sure that changes to the mapped area
2602 * do not percolate back to the file as seen by read().
2603 * (This is a bug on some variants of i386 svr4.0.)
2605 for (i = 0; i < pagesize; ++i)
2606 *(data2 + i) = *(data2 + i) + 1;
2607 data3 = malloc(pagesize);
2610 if (read(fd, data3, pagesize) != pagesize)
2612 for (i = 0; i < pagesize; ++i)
2613 if (*(data + i) != *(data3 + i))
2616 unlink("conftestmmap");
2621 if { (eval echo configure
:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2623 ac_cv_func_mmap_fixed_mapped
=yes
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 ac_cv_func_mmap_fixed_mapped
=no
2635 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2636 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2637 cat >> confdefs.h
<<\EOF
2644 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2645 unistd.h values.h sys
/param.h
2647 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_hdr" >&5
2650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure
:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2661 if test -z "$ac_err"; then
2663 eval "ac_cv_header_$ac_safe=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 eval "ac_cv_header_$ac_safe=no"
2673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2676 cat >> confdefs.h
<<EOF
2677 #define $ac_tr_hdr 1
2681 echo "$ac_t""no" 1>&6
2685 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2686 __argz_count __argz_stringify __argz_next
2688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_func" >&5
2690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* System header to define __stub macros and hopefully few prototypes,
2697 which can conflict with char $ac_func(); below. */
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2717 if { (eval echo configure
:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2719 eval "ac_cv_func_$ac_func=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.
$ac_ext >&5
2724 eval "ac_cv_func_$ac_func=no"
2729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2732 cat >> confdefs.h
<<EOF
2733 #define $ac_tr_func 1
2737 echo "$ac_t""no" 1>&6
2742 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2743 for ac_func
in stpcpy
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2774 if { (eval echo configure
:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2776 eval "ac_cv_func_$ac_func=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 eval "ac_cv_func_$ac_func=no"
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2789 cat >> confdefs.h
<<EOF
2790 #define $ac_tr_func 1
2794 echo "$ac_t""no" 1>&6
2799 if test "${ac_cv_func_stpcpy}" = "yes"; then
2800 cat >> confdefs.h
<<\EOF
2801 #define HAVE_STPCPY 1
2806 if test $ac_cv_header_locale_h = yes; then
2807 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2808 echo "configure:2809: checking for LC_MESSAGES" >&5
2809 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 cat > conftest.
$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2820 if { (eval echo configure
:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2822 am_cv_val_LC_MESSAGES
=yes
2824 echo "configure: failed program was:" >&5
2825 cat conftest.
$ac_ext >&5
2827 am_cv_val_LC_MESSAGES
=no
2832 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2833 if test $am_cv_val_LC_MESSAGES = yes; then
2834 cat >> confdefs.h
<<\EOF
2835 #define HAVE_LC_MESSAGES 1
2840 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2841 echo "configure:2842: checking whether NLS is requested" >&5
2842 # Check whether --enable-nls or --disable-nls was given.
2843 if test "${enable_nls+set}" = set; then
2844 enableval
="$enable_nls"
2850 echo "$ac_t""$USE_NLS" 1>&6
2853 USE_INCLUDED_LIBINTL
=no
2855 if test "$USE_NLS" = "yes"; then
2856 cat >> confdefs.h
<<\EOF
2857 #define ENABLE_NLS 1
2860 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2861 echo "configure:2862: checking whether included gettext is requested" >&5
2862 # Check whether --with-included-gettext or --without-included-gettext was given.
2863 if test "${with_included_gettext+set}" = set; then
2864 withval
="$with_included_gettext"
2865 nls_cv_force_use_gnu_gettext
=$withval
2867 nls_cv_force_use_gnu_gettext
=no
2870 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2872 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2873 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2875 nls_cv_header_libgt
=
2878 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2879 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2880 echo "configure:2881: checking for libintl.h" >&5
2881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 #include <libintl.h>
2889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2890 { (eval echo configure
:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2892 if test -z "$ac_err"; then
2894 eval "ac_cv_header_$ac_safe=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.
$ac_ext >&5
2900 eval "ac_cv_header_$ac_safe=no"
2904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2907 echo "configure:2908: checking for gettext in libc" >&5
2908 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 cat > conftest.
$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 #include <libintl.h>
2916 return (int) gettext ("")
2919 if { (eval echo configure
:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2921 gt_cv_func_gettext_libc
=yes
2923 echo "configure: failed program was:" >&5
2924 cat conftest.
$ac_ext >&5
2926 gt_cv_func_gettext_libc
=no
2931 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2933 if test "$gt_cv_func_gettext_libc" != "yes"; then
2934 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2935 echo "configure:2936: checking for bindtextdomain in -lintl" >&5
2936 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 ac_save_LIBS
="$LIBS"
2942 cat > conftest.
$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2948 char bindtextdomain();
2954 if { (eval echo configure
:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2956 eval "ac_cv_lib_$ac_lib_var=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_lib_$ac_lib_var=no"
2964 LIBS
="$ac_save_LIBS"
2967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2970 echo "configure:2971: checking for gettext in libintl" >&5
2971 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2979 return (int) gettext ("")
2982 if { (eval echo configure
:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2984 gt_cv_func_gettext_libintl
=yes
2986 echo "configure: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2989 gt_cv_func_gettext_libintl
=no
2994 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2996 echo "$ac_t""no" 1>&6
3001 if test "$gt_cv_func_gettext_libc" = "yes" \
3002 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3003 cat >> confdefs.h
<<\EOF
3004 #define HAVE_GETTEXT 1
3007 # Extract the first word of "msgfmt", so it can be a program name with args.
3008 set dummy msgfmt
; ac_word
=$2
3009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_word" >&5
3011 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3020 for ac_dir
in $PATH; do
3021 test -z "$ac_dir" && ac_dir
=.
3022 if test -f $ac_dir/$ac_word; then
3023 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3024 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3030 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3034 MSGFMT
="$ac_cv_path_MSGFMT"
3035 if test -n "$MSGFMT"; then
3036 echo "$ac_t""$MSGFMT" 1>&6
3038 echo "$ac_t""no" 1>&6
3040 if test "$MSGFMT" != "no"; then
3041 for ac_func
in dcgettext
3043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3044 echo "configure:3045: checking for $ac_func" >&5
3045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 cat > conftest.
$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 /* System header to define __stub macros and hopefully few prototypes,
3052 which can conflict with char $ac_func(); below. */
3054 /* Override any gcc2 internal prototype to avoid an error. */
3055 /* We use char because int might match the return type of a gcc2
3056 builtin and then its argument prototype would still apply. */
3061 /* The GNU C library defines this for functions which it implements
3062 to always fail with ENOSYS. Some functions are actually named
3063 something starting with __ and the normal name is an alias. */
3064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3072 if { (eval echo configure
:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3074 eval "ac_cv_func_$ac_func=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3079 eval "ac_cv_func_$ac_func=no"
3084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3087 cat >> confdefs.h
<<EOF
3088 #define $ac_tr_func 1
3092 echo "$ac_t""no" 1>&6
3096 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3097 set dummy gmsgfmt
; ac_word
=$2
3098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_word" >&5
3100 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3105 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3108 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3112 for ac_dir
in $PATH; do
3113 test -z "$ac_dir" && ac_dir
=.
3114 if test -f $ac_dir/$ac_word; then
3115 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3120 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3124 GMSGFMT
="$ac_cv_path_GMSGFMT"
3125 if test -n "$GMSGFMT"; then
3126 echo "$ac_t""$GMSGFMT" 1>&6
3128 echo "$ac_t""no" 1>&6
3131 # Extract the first word of "xgettext", so it can be a program name with args.
3132 set dummy xgettext
; ac_word
=$2
3133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3134 echo "configure:3135: checking for $ac_word" >&5
3135 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3140 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3144 for ac_dir
in $PATH; do
3145 test -z "$ac_dir" && ac_dir
=.
3146 if test -f $ac_dir/$ac_word; then
3147 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3148 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3154 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3158 XGETTEXT
="$ac_cv_path_XGETTEXT"
3159 if test -n "$XGETTEXT"; then
3160 echo "$ac_t""$XGETTEXT" 1>&6
3162 echo "$ac_t""no" 1>&6
3165 cat > conftest.
$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3170 extern int _nl_msg_cat_cntr;
3171 return _nl_msg_cat_cntr
3174 if { (eval echo configure
:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3179 echo "configure: failed program was:" >&5
3180 cat conftest.
$ac_ext >&5
3191 echo "$ac_t""no" 1>&6
3196 if test "$CATOBJEXT" = "NONE"; then
3197 nls_cv_use_gnu_gettext
=yes
3201 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3202 INTLOBJS
="\$(GETTOBJS)"
3203 # Extract the first word of "msgfmt", so it can be a program name with args.
3204 set dummy msgfmt
; ac_word
=$2
3205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_word" >&5
3207 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3212 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3216 for ac_dir
in $PATH; do
3217 test -z "$ac_dir" && ac_dir
=.
3218 if test -f $ac_dir/$ac_word; then
3219 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3220 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3226 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3230 MSGFMT
="$ac_cv_path_MSGFMT"
3231 if test -n "$MSGFMT"; then
3232 echo "$ac_t""$MSGFMT" 1>&6
3234 echo "$ac_t""no" 1>&6
3237 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3238 set dummy gmsgfmt
; ac_word
=$2
3239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_word" >&5
3241 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3246 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3249 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3253 for ac_dir
in $PATH; do
3254 test -z "$ac_dir" && ac_dir
=.
3255 if test -f $ac_dir/$ac_word; then
3256 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3261 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3265 GMSGFMT
="$ac_cv_path_GMSGFMT"
3266 if test -n "$GMSGFMT"; then
3267 echo "$ac_t""$GMSGFMT" 1>&6
3269 echo "$ac_t""no" 1>&6
3272 # Extract the first word of "xgettext", so it can be a program name with args.
3273 set dummy xgettext
; ac_word
=$2
3274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_word" >&5
3276 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3281 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3285 for ac_dir
in $PATH; do
3286 test -z "$ac_dir" && ac_dir
=.
3287 if test -f $ac_dir/$ac_word; then
3288 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3289 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3295 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3299 XGETTEXT
="$ac_cv_path_XGETTEXT"
3300 if test -n "$XGETTEXT"; then
3301 echo "$ac_t""$XGETTEXT" 1>&6
3303 echo "$ac_t""no" 1>&6
3307 USE_INCLUDED_LIBINTL
=yes
3311 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3313 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3314 nls_cv_header_intl
=libintl.h
3315 nls_cv_header_libgt
=libgettext.h
3318 if test "$XGETTEXT" != ":"; then
3319 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3322 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3327 # We need to process the po/ directory.
3331 nls_cv_header_intl
=libintl.h
3332 nls_cv_header_libgt
=libgettext.h
3335 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3336 # because some of the sources are only built for this goal.
3337 if test "$PACKAGE" = gettext; then
3339 USE_INCLUDED_LIBINTL
=yes
3342 for lang
in $ALL_LINGUAS; do
3343 GMOFILES
="$GMOFILES $lang.gmo"
3344 POFILES
="$POFILES $lang.po"
3360 if test "x$CATOBJEXT" != "x"; then
3361 if test "x$ALL_LINGUAS" = "x"; then
3364 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3365 echo "configure:3366: checking for catalogs to be installed" >&5
3367 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3368 case "$ALL_LINGUAS" in
3369 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3372 LINGUAS
=$NEW_LINGUAS
3373 echo "$ac_t""$LINGUAS" 1>&6
3376 if test -n "$LINGUAS"; then
3377 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3381 if test $ac_cv_header_locale_h = yes; then
3382 INCLUDE_LOCALE_H
="#include <locale.h>"
3385 /* The system does not provide the header <locale.h>. Take care yourself. */"
3389 if test -f $srcdir/po2tbl.
sed.
in; then
3390 if test "$CATOBJEXT" = ".cat"; then
3391 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3392 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3393 echo "configure:3394: checking for linux/version.h" >&5
3394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <linux/version.h>
3402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure
:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 eval "ac_cv_header_$ac_safe=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 eval "ac_cv_header_$ac_safe=no"
3417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
3421 echo "$ac_t""no" 1>&6
3426 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3429 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3432 if test "$PACKAGE" = "gettext"; then
3442 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3448 if test -d $srcdir/po
; then
3449 test -d po || mkdir po
3450 if test "x$srcdir" != "x."; then
3451 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3452 posrcprefix
="$srcdir/"
3454 posrcprefix
="../$srcdir/"
3460 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3461 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3465 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3466 echo "configure:3467: checking for Cygwin environment" >&5
3467 if eval "test \"`echo '$''{'am_cv_cygwin'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3475 return __CYGWIN32__;
3478 if { (eval echo configure
:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3482 echo "configure: failed program was:" >&5
3483 cat conftest.
$ac_ext >&5
3491 echo "$ac_t""$am_cv_cygwin" 1>&6
3493 test "$am_cv_cygwin" = yes && CYGWIN
=yes
3494 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3495 echo "configure:3496: checking for Mingw32 environment" >&5
3496 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3507 if { (eval echo configure
:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3520 echo "$ac_t""$am_cv_mingw32" 1>&6
3522 test "$am_cv_mingw32" = yes && MINGW32
=yes
3525 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3526 echo "configure:3527: checking for executable suffix" >&5
3527 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3533 cat > am_c_test.c
<< 'EOF'
3535 /* Nothing needed here
*/
3538 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3540 for file in am_c_test.
*; do
3544 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
3550 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3553 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3554 echo "$ac_t""${am_cv_exeext}" 1>&6
3557 for ac_prog
in 'bison -y' byacc
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy
$ac_prog; ac_word
=$2
3561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3562 echo "configure:3563: checking for $ac_word" >&5
3563 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 if test -n "$YACC"; then
3567 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3569 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3570 for ac_dir
in $PATH; do
3571 test -z "$ac_dir" && ac_dir
=.
3572 if test -f $ac_dir/$ac_word; then
3573 ac_cv_prog_YACC
="$ac_prog"
3580 YACC
="$ac_cv_prog_YACC"
3581 if test -n "$YACC"; then
3582 echo "$ac_t""$YACC" 1>&6
3584 echo "$ac_t""no" 1>&6
3587 test -n "$YACC" && break
3589 test -n "$YACC" || YACC
="yacc"
3591 missing_dir
=`cd $ac_aux_dir && pwd`
3592 for ac_prog
in flex
lex
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy
$ac_prog; ac_word
=$2
3596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3597 echo "configure:3598: checking for $ac_word" >&5
3598 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 if test -n "$LEX"; then
3602 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3605 for ac_dir
in $PATH; do
3606 test -z "$ac_dir" && ac_dir
=.
3607 if test -f $ac_dir/$ac_word; then
3608 ac_cv_prog_LEX
="$ac_prog"
3615 LEX
="$ac_cv_prog_LEX"
3616 if test -n "$LEX"; then
3617 echo "$ac_t""$LEX" 1>&6
3619 echo "$ac_t""no" 1>&6
3622 test -n "$LEX" && break
3624 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3626 # Extract the first word of "flex", so it can be a program name with args.
3627 set dummy flex
; ac_word
=$2
3628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3629 echo "configure:3630: checking for $ac_word" >&5
3630 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 if test -n "$LEX"; then
3634 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3637 for ac_dir
in $PATH; do
3638 test -z "$ac_dir" && ac_dir
=.
3639 if test -f $ac_dir/$ac_word; then
3640 ac_cv_prog_LEX
="flex"
3645 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3648 LEX
="$ac_cv_prog_LEX"
3649 if test -n "$LEX"; then
3650 echo "$ac_t""$LEX" 1>&6
3652 echo "$ac_t""no" 1>&6
3655 if test -z "$LEXLIB"
3661 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3662 echo "configure:3663: checking for yywrap in -l$ac_lib" >&5
3663 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 ac_save_LIBS
="$LIBS"
3668 LIBS
="-l$ac_lib $LIBS"
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3683 eval "ac_cv_lib_$ac_lib_var=yes"
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 eval "ac_cv_lib_$ac_lib_var=no"
3691 LIBS
="$ac_save_LIBS"
3694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3698 echo "$ac_t""no" 1>&6
3703 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3704 echo "configure:3705: checking lex output file root" >&5
3705 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 # The minimal lex program is just a single line: %%. But some broken lexes
3709 # (Solaris, I think it was) want two %% lines, so accommodate them.
3712 if test -f lex.yy.c
; then
3713 ac_cv_prog_lex_root
=lex.yy
3714 elif test -f lexyy.c
; then
3715 ac_cv_prog_lex_root
=lexyy
3717 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3721 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3722 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3724 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3725 echo "configure:3726: checking whether yytext is a pointer" >&5
3726 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 # POSIX says lex can declare yytext either as a pointer or an array; the
3730 # default is implementation-dependent. Figure out which it is, since
3731 # not all implementations provide the %pointer and %array declarations.
3732 ac_cv_prog_lex_yytext_pointer
=no
3733 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3734 ac_save_LIBS
="$LIBS"
3735 LIBS
="$LIBS $LEXLIB"
3736 cat > conftest.
$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 `cat $LEX_OUTPUT_ROOT.c`
3744 if { (eval echo configure
:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3746 ac_cv_prog_lex_yytext_pointer
=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3752 LIBS
="$ac_save_LIBS"
3753 rm -f "${LEX_OUTPUT_ROOT}.c"
3757 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3758 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3759 cat >> confdefs.h
<<\EOF
3760 #define YYTEXT_POINTER 1
3766 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3767 echo "configure:3768: checking whether to enable maintainer-specific portions of Makefiles" >&5
3768 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3769 if test "${enable_maintainer_mode+set}" = set; then
3770 enableval
="$enable_maintainer_mode"
3771 USE_MAINTAINER_MODE
=$enableval
3773 USE_MAINTAINER_MODE
=no
3776 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3777 if test $USE_MAINTAINER_MODE = yes; then
3785 .
${srcdir}/configure.
host
3792 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
3794 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3796 echo "configure:3797: checking for $ac_hdr" >&5
3797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3805 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3806 { (eval echo configure
:3807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3807 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3808 if test -z "$ac_err"; then
3810 eval "ac_cv_header_$ac_safe=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 eval "ac_cv_header_$ac_safe=no"
3820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3823 cat >> confdefs.h
<<EOF
3824 #define $ac_tr_hdr 1
3828 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3835 echo "configure:3836: checking for $ac_func" >&5
3836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
3843 which can conflict with char $ac_func(); below. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3852 /* The GNU C library defines this for functions which it implements
3853 to always fail with ENOSYS. Some functions are actually named
3854 something starting with __ and the normal name is an alias. */
3855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3863 if { (eval echo configure
:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3865 eval "ac_cv_func_$ac_func=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.
$ac_ext >&5
3870 eval "ac_cv_func_$ac_func=no"
3875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3878 cat >> confdefs.h
<<EOF
3879 #define $ac_tr_func 1
3883 echo "$ac_t""no" 1>&6
3888 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3890 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3891 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3892 echo "configure:3893: checking for $ac_hdr that defines DIR" >&5
3893 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 cat > conftest.
$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 #include <sys/types.h>
3905 if { (eval echo configure
:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 eval "ac_cv_header_dirent_$ac_safe=yes"
3909 echo "configure: failed program was:" >&5
3910 cat conftest.
$ac_ext >&5
3912 eval "ac_cv_header_dirent_$ac_safe=no"
3916 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3919 cat >> confdefs.h
<<EOF
3920 #define $ac_tr_hdr 1
3922 ac_header_dirent
=$ac_hdr; break
3924 echo "$ac_t""no" 1>&6
3927 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3928 if test $ac_header_dirent = dirent.h
; then
3929 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3930 echo "configure:3931: checking for opendir in -ldir" >&5
3931 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 ac_save_LIBS
="$LIBS"
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3949 if { (eval echo configure
:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3951 eval "ac_cv_lib_$ac_lib_var=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.
$ac_ext >&5
3956 eval "ac_cv_lib_$ac_lib_var=no"
3959 LIBS
="$ac_save_LIBS"
3962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3966 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3971 echo "configure:3972: checking for opendir in -lx" >&5
3972 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 ac_save_LIBS
="$LIBS"
3978 cat > conftest.
$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3990 if { (eval echo configure
:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3992 eval "ac_cv_lib_$ac_lib_var=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 eval "ac_cv_lib_$ac_lib_var=no"
4000 LIBS
="$ac_save_LIBS"
4003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4007 echo "$ac_t""no" 1>&6
4015 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin* |
*-*-windows)
4016 cat >> confdefs.h
<<\EOF
4017 #define USE_BINARY_FOPEN 1
4022 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4023 echo "configure:4024: checking whether strstr must be declared" >&5
4024 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.
$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4032 #ifdef HAVE_STRING_H
4035 #ifdef HAVE_STRINGS_H
4036 #include <strings.h>
4039 #ifdef HAVE_STDLIB_H
4042 #ifdef HAVE_UNISTD_H
4046 char *(*pfn) = (char *(*)) strstr
4049 if { (eval echo configure
:4050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 bfd_cv_decl_needed_strstr
=no
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 bfd_cv_decl_needed_strstr
=yes
4061 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4062 if test $bfd_cv_decl_needed_strstr = yes; then
4063 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064 cat >> confdefs.h
<<EOF
4065 #define $bfd_tr_decl 1
4070 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4071 echo "configure:4072: checking whether free must be declared" >&5
4072 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.
$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4080 #ifdef HAVE_STRING_H
4083 #ifdef HAVE_STRINGS_H
4084 #include <strings.h>
4087 #ifdef HAVE_STDLIB_H
4090 #ifdef HAVE_UNISTD_H
4094 char *(*pfn) = (char *(*)) free
4097 if { (eval echo configure
:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 bfd_cv_decl_needed_free
=no
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 bfd_cv_decl_needed_free
=yes
4109 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4110 if test $bfd_cv_decl_needed_free = yes; then
4111 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4112 cat >> confdefs.h
<<EOF
4113 #define $bfd_tr_decl 1
4118 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4119 echo "configure:4120: checking whether sbrk must be declared" >&5
4120 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.
$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4128 #ifdef HAVE_STRING_H
4131 #ifdef HAVE_STRINGS_H
4132 #include <strings.h>
4135 #ifdef HAVE_STDLIB_H
4138 #ifdef HAVE_UNISTD_H
4142 char *(*pfn) = (char *(*)) sbrk
4145 if { (eval echo configure
:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 bfd_cv_decl_needed_sbrk
=no
4149 echo "configure: failed program was:" >&5
4150 cat conftest.
$ac_ext >&5
4152 bfd_cv_decl_needed_sbrk
=yes
4157 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4158 if test $bfd_cv_decl_needed_sbrk = yes; then
4159 bfd_tr_decl
=NEED_DECLARATION_
`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4160 cat >> confdefs.h
<<EOF
4161 #define $bfd_tr_decl 1
4166 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4167 echo "configure:4168: checking whether getenv must be declared" >&5
4168 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4176 #ifdef HAVE_STRING_H
4179 #ifdef HAVE_STRINGS_H
4180 #include <strings.h>
4183 #ifdef HAVE_STDLIB_H
4186 #ifdef HAVE_UNISTD_H
4190 char *(*pfn) = (char *(*)) getenv
4193 if { (eval echo configure
:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4195 bfd_cv_decl_needed_getenv
=no
4197 echo "configure: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4200 bfd_cv_decl_needed_getenv
=yes
4205 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4206 if test $bfd_cv_decl_needed_getenv = yes; then
4207 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4208 cat >> confdefs.h
<<EOF
4209 #define $bfd_tr_decl 1
4215 # target-specific stuff:
4224 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4226 if test "$targ_alias" = "all"; then
4229 # Canonicalize the secondary target names.
4230 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
4231 if test -n "$result"; then
4237 .
${srcdir}/configure.tgt
4239 if test "$targ" = "$target"; then
4243 for i
in $targ_emul $targ_extra_emuls; do
4244 case " $all_emuls " in
4247 all_emuls
="$all_emuls e${i}.o"
4248 eval result
=\
$tdir_$i
4249 test -z "$result" && result
=$targ_alias
4250 echo tdir_
$i=$result >> tdirs
4255 for i
in $targ_extra_ofiles; do
4256 case " $all_emul_extras " in
4259 all_emul_extras
="$all_emul_extras ${i}"
4271 if test x
${all_targets} = xtrue
; then
4272 if test x
${want64} = xtrue
; then
4273 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4275 EMULATION_OFILES
='$(ALL_EMULATIONS)'
4277 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
4279 EMULATION_OFILES
=$all_emuls
4280 EMUL_EXTRA_OFILES
=$all_emul_extras
4285 if test x
${enable_static} = xno
; then
4286 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4288 TESTBFDLIB
="../bfd/.libs/libbfd.a"
4293 cat > confcache
<<\EOF
4294 # This file is a shell script that caches the results of configure
4295 # tests run on this system so they can be shared between configure
4296 # scripts and configure runs. It is not useful on other systems.
4297 # If it contains results you don't want to keep, you may remove or edit it.
4299 # By default, configure uses ./config.cache as the cache file,
4300 # creating it if it does not exist already. You can give configure
4301 # the --cache-file=FILE option to use a different cache file; that is
4302 # what configure does when it calls configure scripts in
4303 # subdirectories, so they share the cache.
4304 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4305 # config.status only pays attention to the cache file if you give it the
4306 # --recheck option to rerun configure.
4309 # The following way of writing the cache mishandles newlines in values,
4310 # but we know of no workaround that is simple, portable, and efficient.
4311 # So, don't put newlines in cache variables' values.
4312 # Ultrix sh set writes to stderr and can't be redirected directly,
4313 # and sets the high bit in the cache file unless we assign to the vars.
4315 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4317 # `set' does not quote correctly, so add quotes (double-quote substitution
4318 # turns \\\\ into \\, and sed turns \\ into \).
4320 -e "s/'/'\\\\''/g" \
4321 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4324 # `set' quotes correctly as required by POSIX, so do not add quotes.
4325 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4328 if cmp -s $cache_file confcache
; then
4331 if test -w $cache_file; then
4332 echo "updating cache $cache_file"
4333 cat confcache
> $cache_file
4335 echo "not updating unwritable cache $cache_file"
4340 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4342 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4343 # Let make expand exec_prefix.
4344 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4346 # Any assignment to VPATH causes Sun make to only execute
4347 # the first set of double-colon rules, so remove it if not needed.
4348 # If there is a colon in the path, we need to keep it.
4349 if test "x$srcdir" = x.
; then
4350 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4353 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4355 DEFS
=-DHAVE_CONFIG_H
4357 # Without the "./", some shells look in PATH for config.status.
4358 : ${CONFIG_STATUS=./config.status}
4360 echo creating
$CONFIG_STATUS
4361 rm -f $CONFIG_STATUS
4362 cat > $CONFIG_STATUS <<EOF
4364 # Generated automatically by configure.
4365 # Run this file to recreate the current configuration.
4366 # This directory was configured as follows,
4367 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4369 # $0 $ac_configure_args
4371 # Compiler output produced by configure, useful for debugging
4372 # configure, is in ./config.log if it exists.
4374 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4377 case "\$ac_option" in
4378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4379 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4380 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4381 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4382 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4384 -help | --help | --hel | --he | --h)
4385 echo "\$ac_cs_usage"; exit 0 ;;
4386 *) echo "\$ac_cs_usage"; exit 1 ;;
4390 ac_given_srcdir=$srcdir
4391 ac_given_INSTALL="$INSTALL"
4393 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4395 cat >> $CONFIG_STATUS <<EOF
4397 # Protect against being on the right side of a sed subst in config.status.
4398 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4399 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4403 s%@CFLAGS@%$CFLAGS%g
4404 s%@CPPFLAGS@%$CPPFLAGS%g
4405 s%@CXXFLAGS@%$CXXFLAGS%g
4407 s%@LDFLAGS@%$LDFLAGS%g
4409 s%@exec_prefix@%$exec_prefix%g
4410 s%@prefix@%$prefix%g
4411 s%@program_transform_name@%$program_transform_name%g
4412 s%@bindir@%$bindir%g
4413 s%@sbindir@%$sbindir%g
4414 s%@libexecdir@%$libexecdir%g
4415 s%@datadir@%$datadir%g
4416 s%@sysconfdir@%$sysconfdir%g
4417 s%@sharedstatedir@%$sharedstatedir%g
4418 s%@localstatedir@%$localstatedir%g
4419 s%@libdir@%$libdir%g
4420 s%@includedir@%$includedir%g
4421 s%@oldincludedir@%$oldincludedir%g
4422 s%@infodir@%$infodir%g
4423 s%@mandir@%$mandir%g
4425 s%@host_alias@%$host_alias%g
4426 s%@host_cpu@%$host_cpu%g
4427 s%@host_vendor@%$host_vendor%g
4428 s%@host_os@%$host_os%g
4429 s%@target@%$target%g
4430 s%@target_alias@%$target_alias%g
4431 s%@target_cpu@%$target_cpu%g
4432 s%@target_vendor@%$target_vendor%g
4433 s%@target_os@%$target_os%g
4435 s%@build_alias@%$build_alias%g
4436 s%@build_cpu@%$build_cpu%g
4437 s%@build_vendor@%$build_vendor%g
4438 s%@build_os@%$build_os%g
4439 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4440 s%@INSTALL_DATA@%$INSTALL_DATA%g
4441 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4442 s%@PACKAGE@%$PACKAGE%g
4443 s%@VERSION@%$VERSION%g
4444 s%@ACLOCAL@%$ACLOCAL%g
4445 s%@AUTOCONF@%$AUTOCONF%g
4446 s%@AUTOMAKE@%$AUTOMAKE%g
4447 s%@AUTOHEADER@%$AUTOHEADER%g
4448 s%@MAKEINFO@%$MAKEINFO%g
4449 s%@SET_MAKE@%$SET_MAKE%g
4450 s%@RANLIB@%$RANLIB%g
4455 s%@LIBTOOL@%$LIBTOOL%g
4456 s%@DLLTOOL@%$DLLTOOL%g
4459 s%@ALLOCA@%$ALLOCA%g
4460 s%@USE_NLS@%$USE_NLS%g
4461 s%@MSGFMT@%$MSGFMT%g
4462 s%@GMSGFMT@%$GMSGFMT%g
4463 s%@XGETTEXT@%$XGETTEXT%g
4464 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4465 s%@CATALOGS@%$CATALOGS%g
4466 s%@CATOBJEXT@%$CATOBJEXT%g
4467 s%@DATADIRNAME@%$DATADIRNAME%g
4468 s%@GMOFILES@%$GMOFILES%g
4469 s%@INSTOBJEXT@%$INSTOBJEXT%g
4470 s%@INTLDEPS@%$INTLDEPS%g
4471 s%@INTLLIBS@%$INTLLIBS%g
4472 s%@INTLOBJS@%$INTLOBJS%g
4473 s%@POFILES@%$POFILES%g
4475 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4477 s%@GT_YES@%$GT_YES%g
4478 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4480 s%@EXEEXT@%$EXEEXT%g
4483 s%@LEXLIB@%$LEXLIB%g
4484 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4486 s%@HDEFINES@%$HDEFINES%g
4487 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4488 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4489 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4493 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4494 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
4495 s%@TESTBFDLIB@%$TESTBFDLIB%g
4500 cat >> $CONFIG_STATUS <<\EOF
4502 # Split the substitutions into bite-sized pieces for seds with
4503 # small command number limits, like on Digital OSF/1 and HP-UX.
4504 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4505 ac_file
=1 # Number of current file.
4506 ac_beg
=1 # First line for current file.
4507 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4510 while $ac_more_lines; do
4511 if test $ac_beg -gt 1; then
4512 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4514 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4516 if test ! -s conftest.s
$ac_file; then
4518 rm -f conftest.s
$ac_file
4520 if test -z "$ac_sed_cmds"; then
4521 ac_sed_cmds
="sed -f conftest.s$ac_file"
4523 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4525 ac_file
=`expr $ac_file + 1`
4527 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4530 if test -z "$ac_sed_cmds"; then
4535 cat >> $CONFIG_STATUS <<EOF
4537 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4539 cat >> $CONFIG_STATUS <<\EOF
4540 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4543 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4544 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4545 *) ac_file_in
="${ac_file}.in" ;;
4548 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4550 # Remove last slash and all that follows it. Not all systems have dirname.
4551 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4553 # The file is in a subdirectory.
4554 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4555 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4556 # A "../" for each directory in $ac_dir_suffix.
4557 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4559 ac_dir_suffix
= ac_dots
=
4562 case "$ac_given_srcdir" in
4564 if test -z "$ac_dots"; then top_srcdir
=.
4565 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4566 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4568 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4569 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4572 case "$ac_given_INSTALL" in
4573 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4574 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4577 echo creating
"$ac_file"
4579 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4581 *Makefile
*) ac_comsub
="1i\\
4582 # $configure_input" ;;
4586 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4588 s%@configure_input@%$configure_input%g
4589 s%@srcdir@%$srcdir%g
4590 s%@top_srcdir@%$top_srcdir%g
4591 s%@INSTALL@%$INSTALL%g
4592 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4599 # ac_d sets the value in "#define NAME VALUE" lines.
4600 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4601 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4604 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4605 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4606 ac_uB
='\([ ]\)%\1#\2define\3'
4609 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4610 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4611 ac_eB
='$%\1#\2define\3'
4615 if test "${CONFIG_HEADERS+set}" != set; then
4617 cat >> $CONFIG_STATUS <<EOF
4618 CONFIG_HEADERS="config.h:config.in"
4620 cat >> $CONFIG_STATUS <<\EOF
4622 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4625 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4626 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4627 *) ac_file_in
="${ac_file}.in" ;;
4630 echo creating
$ac_file
4632 rm -f conftest.frag conftest.
in conftest.out
4633 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4634 cat $ac_file_inputs > conftest.
in
4638 # Transform confdefs.h into a sed script conftest.vals that substitutes
4639 # the proper values into config.h.in to produce config.h. And first:
4640 # Protect against being on the right side of a sed subst in config.status.
4641 # Protect against being in an unquoted here document in config.status.
4643 cat > conftest.hdr
<<\EOF
4646 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4650 sed -n -f conftest.hdr confdefs.h > conftest.vals
4653 # This sed command replaces #undef with comments. This is necessary, for
4654 # example, in the case of _POSIX_SOURCE, which is predefined and required
4655 # on some systems where configure will not decide to define it.
4656 cat >> conftest.vals <<\EOF
4657 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4660 # Break up conftest.vals because some shells have a limit on
4661 # the size of here documents, and old seds have small limits too.
4666 ac_lines=`grep -c . conftest.vals
`
4667 # grep -c gives empty output for an empty file on some AIX systems.
4668 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4669 # Write a limited-size here document to conftest.frag.
4670 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4671 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4673 sed -f conftest.frag conftest.in > conftest.out
4675 mv conftest.out conftest.in
4677 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4679 mv conftest.tail conftest.vals
4683 cat >> $CONFIG_STATUS <<\EOF
4684 rm -f conftest.frag conftest.h
4685 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4686 cat conftest.in >> conftest.h
4688 if cmp -s $ac_file conftest.h 2>/dev/null; then
4689 echo "$ac_file is unchanged"
4692 # Remove last slash and all that follows it. Not all systems have dirname.
4693 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4694 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4695 # The file is in a subdirectory.
4696 test ! -d "$ac_dir" && mkdir "$ac_dir"
4699 mv conftest.h $ac_file
4704 cat >> $CONFIG_STATUS <<EOF
4708 cat >> $CONFIG_STATUS <<\EOF
4709 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4710 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4713 chmod +x $CONFIG_STATUS
4714 rm -fr confdefs* $ac_clean_files
4715 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1