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=no]"
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-commonbfdlib build shared BFD/opcodes/libiberty library"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 --disable-nls do not use Native Language Support"
30 --with-included-gettext use the GNU gettext library included here"
32 --enable-cgen-maint[=dir] build cgen generated files"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.12.2"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file
=z8k-dis.c
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
652 # Extract the first word of "gcc", so it can be a program name with args.
653 set dummy gcc
; ac_word
=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 if test -n "$CC"; then
660 ac_cv_prog_CC
="$CC" # Let the user override the test.
662 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
663 for ac_dir
in $PATH; do
664 test -z "$ac_dir" && ac_dir
=.
665 if test -f $ac_dir/$ac_word; then
674 if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
677 echo "$ac_t""no" 1>&6
680 if test -z "$CC"; then
681 # Extract the first word of "cc", so it can be a program name with args.
682 set dummy cc
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $PATH; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy
$ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy
"$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl
; ac_word
=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC
="$CC" # Let the user override the test.
741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
742 for ac_dir
in $PATH; do
743 test -z "$ac_dir" && ac_dir
=.
744 if test -f $ac_dir/$ac_word; then
753 if test -n "$CC"; then
754 echo "$ac_t""$CC" 1>&6
756 echo "$ac_t""no" 1>&6
761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp
='$CPP $CPPFLAGS'
770 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling
=$ac_cv_prog_cc_cross
774 cat > conftest.
$ac_ext <<EOF
775 #line 776 "configure"
776 #include "confdefs.h"
779 if { (eval echo configure
:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
780 ac_cv_prog_cc_works
=yes
781 # If we can't run a trivial program, we are probably using a cross compiler.
782 if (.
/conftest
; exit) 2>/dev
/null
; then
783 ac_cv_prog_cc_cross
=no
785 ac_cv_prog_cc_cross
=yes
788 echo "configure: failed program was:" >&5
789 cat conftest.
$ac_ext >&5
790 ac_cv_prog_cc_works
=no
794 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
795 if test $ac_cv_prog_cc_works = no
; then
796 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
798 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
799 echo "configure:800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
800 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
801 cross_compiling
=$ac_cv_prog_cc_cross
803 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
804 echo "configure:805: checking whether we are using GNU C" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 cat > conftest.c
<<EOF
813 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
820 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
822 if test $ac_cv_prog_gcc = yes; then
828 ac_test_CFLAGS
="${CFLAGS+set}"
829 ac_save_CFLAGS
="$CFLAGS"
831 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
832 echo "configure:833: checking whether ${CC-cc} accepts -g" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 echo 'void f(){}' > conftest.c
837 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
846 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
847 if test "$ac_test_CFLAGS" = set; then
848 CFLAGS
="$ac_save_CFLAGS"
849 elif test $ac_cv_prog_cc_g = yes; then
850 if test "$GCC" = yes; then
856 if test "$GCC" = yes; then
863 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
864 echo "configure:865: checking for POSIXized ISC" >&5
865 if test -d /etc
/conf
/kconfig.d
&&
866 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
868 echo "$ac_t""yes" 1>&6
869 ISC
=yes # If later tests want to check for ISC.
870 cat >> confdefs.h
<<\EOF
871 #define _POSIX_SOURCE 1
874 if test "$GCC" = yes; then
880 echo "$ac_t""no" 1>&6
885 # We currently only use the version number for the name of any shared
886 # library. For user convenience, we always use the same version
887 # number that BFD is using.
888 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
890 # Find a good install program. We prefer a C program (faster),
891 # so one script is as good as another. But avoid the broken or
892 # incompatible versions:
893 # SysV /etc/install, /usr/sbin/install
894 # SunOS /usr/etc/install
897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
900 # ./install, which can be erroneously created by make from ./install.sh.
901 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
902 echo "configure:903: checking for a BSD compatible install" >&5
903 if test -z "$INSTALL"; then
904 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
908 for ac_dir
in $PATH; do
909 # Account for people who put trailing slashes in PATH elements.
911 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
913 # OSF1 and SCO ODT 3.0 have their own names for install.
914 # Don't use installbsd from OSF since it installs stuff as root
916 for ac_prog
in ginstall scoinst
install; do
917 if test -f $ac_dir/$ac_prog; then
918 if test $ac_prog = install &&
919 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
920 # AIX install. It has an incompatible calling convention.
923 ac_cv_path_install
="$ac_dir/$ac_prog -c"
934 if test "${ac_cv_path_install+set}" = set; then
935 INSTALL
="$ac_cv_path_install"
937 # As a last resort, use the slow shell script. We don't cache a
938 # path for INSTALL within a source directory, because that will
939 # break other packages using the cache if that directory is
940 # removed, or if the path is relative.
941 INSTALL
="$ac_install_sh"
944 echo "$ac_t""$INSTALL" 1>&6
946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
947 # It thinks the first close brace ends the variable substitution.
948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
950 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
955 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
956 echo "configure:957: checking whether build environment is sane" >&5
959 echo timestamp
> conftestfile
960 # Do `set' in a subshell so we don't clobber the current shell's
961 # arguments. Must try -L first in case configure is actually a
962 # symlink; some systems play weird games with the mod time of symlinks
963 # (eg FreeBSD returns the mod time of the symlink's containing
966 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
967 if test "$*" = "X"; then
969 set X
`ls -t $srcdir/configure conftestfile`
971 if test "$*" != "X $srcdir/configure conftestfile" \
972 && test "$*" != "X conftestfile $srcdir/configure"; then
974 # If neither matched, then we have a broken ls. This can happen
975 # if, for instance, CONFIG_SHELL is bash and it inherits a
976 # broken ls alias from the environment. This has actually
977 # happened. Such a system could not be considered "sane".
978 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
979 alias in your environment" 1>&2; exit 1; }
982 test "$2" = conftestfile
988 { echo "configure: error: newly created file is older than distributed files!
989 Check your system clock" 1>&2; exit 1; }
992 echo "$ac_t""yes" 1>&6
993 if test "$program_transform_name" = s
,x
,x
,; then
994 program_transform_name
=
996 # Double any \ or $. echo might interpret backslashes.
997 cat <<\EOF_SED
> conftestsed
998 s
,\\,\\\\,g
; s
,\$
,$$
,g
1000 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1003 test "$program_prefix" != NONE
&&
1004 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1005 # Use a double $ so make ignores it.
1006 test "$program_suffix" != NONE
&&
1007 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1009 # sed with no file args requires a program.
1010 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1012 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether ${MAKE-make} sets \${MAKE}" >&5
1014 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1015 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftestmake
<<\EOF
1020 @
echo 'ac_maketemp="${MAKE}"'
1022 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1023 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1024 if test -n "$ac_maketemp"; then
1025 eval ac_cv_prog_make_
${ac_make}_set
=yes
1027 eval ac_cv_prog_make_
${ac_make}_set
=no
1031 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1032 echo "$ac_t""yes" 1>&6
1035 echo "$ac_t""no" 1>&6
1036 SET_MAKE
="MAKE=${MAKE-make}"
1042 VERSION
=${BFD_VERSION}
1044 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1045 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1047 cat >> confdefs.h
<<EOF
1048 #define PACKAGE "$PACKAGE"
1051 cat >> confdefs.h
<<EOF
1052 #define VERSION "$VERSION"
1057 missing_dir
=`cd $ac_aux_dir && pwd`
1058 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working aclocal" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 ACLOCAL
="$missing_dir/missing aclocal"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoconf" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOCONF
="$missing_dir/missing autoconf"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working automake" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 AUTOMAKE
="$missing_dir/missing automake"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working autoheader" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1103 AUTOHEADER
=autoheader
1104 echo "$ac_t""found" 1>&6
1106 AUTOHEADER
="$missing_dir/missing autoheader"
1107 echo "$ac_t""missing" 1>&6
1110 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1111 echo "configure:1112: checking for working makeinfo" >&5
1112 # Run test in a subshell; some versions of sh will print an error if
1113 # an executable is not found, even if stderr is redirected.
1114 # Redirect stdin to placate older versions of autoconf. Sigh.
1115 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1117 echo "$ac_t""found" 1>&6
1119 MAKEINFO
="$missing_dir/missing makeinfo"
1120 echo "$ac_t""missing" 1>&6
1125 if test $host != $build; then
1126 ac_tool_prefix
=${host_alias}-
1131 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1132 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$AR"; then
1139 ac_cv_prog_AR
="$AR" # Let the user override the test.
1141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1142 for ac_dir
in $PATH; do
1143 test -z "$ac_dir" && ac_dir
=.
1144 if test -f $ac_dir/$ac_word; then
1145 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1150 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1154 if test -n "$AR"; then
1155 echo "$ac_t""$AR" 1>&6
1157 echo "$ac_t""no" 1>&6
1162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$RANLIB"; then
1170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1173 for ac_dir
in $PATH; do
1174 test -z "$ac_dir" && ac_dir
=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1183 RANLIB
="$ac_cv_prog_RANLIB"
1184 if test -n "$RANLIB"; then
1185 echo "$ac_t""$RANLIB" 1>&6
1187 echo "$ac_t""no" 1>&6
1191 if test -z "$ac_cv_prog_RANLIB"; then
1192 if test -n "$ac_tool_prefix"; then
1193 # Extract the first word of "ranlib", so it can be a program name with args.
1194 set dummy ranlib
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$RANLIB"; then
1201 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1204 for ac_dir
in $PATH; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_RANLIB
="ranlib"
1212 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1215 RANLIB
="$ac_cv_prog_RANLIB"
1216 if test -n "$RANLIB"; then
1217 echo "$ac_t""$RANLIB" 1>&6
1219 echo "$ac_t""no" 1>&6
1228 # Check whether --enable-shared or --disable-shared was given.
1229 if test "${enable_shared+set}" = set; then
1230 enableval
="$enable_shared"
1231 p
=${PACKAGE-default}
1232 case "$enableval" in
1233 yes) enable_shared
=yes ;;
1234 no
) enable_shared
=no
;;
1237 # Look at the argument we got. We use all the common list separators.
1238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1239 for pkg
in $enableval; do
1240 if test "X$pkg" = "X$p"; then
1252 # Check whether --enable-static or --disable-static was given.
1253 if test "${enable_static+set}" = set; then
1254 enableval
="$enable_static"
1255 p
=${PACKAGE-default}
1256 case "$enableval" in
1257 yes) enable_static
=yes ;;
1258 no
) enable_static
=no
;;
1261 # Look at the argument we got. We use all the common list separators.
1262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1263 for pkg
in $enableval; do
1264 if test "X$pkg" = "X$p"; then
1275 # Extract the first word of "ranlib", so it can be a program name with args.
1276 set dummy ranlib
; ac_word
=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$RANLIB"; then
1283 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1286 for ac_dir
in $PATH; do
1287 test -z "$ac_dir" && ac_dir
=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_RANLIB
="ranlib"
1294 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1297 RANLIB
="$ac_cv_prog_RANLIB"
1298 if test -n "$RANLIB"; then
1299 echo "$ac_t""$RANLIB" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1305 if test "${with_gnu_ld+set}" = set; then
1306 withval
="$with_gnu_ld"
1307 test "$withval" = no || with_gnu_ld
=yes
1314 if test "$ac_cv_prog_gcc" = yes; then
1315 # Check if gcc -print-prog-name=ld gives a path.
1316 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1317 echo "configure:1318: checking for ld used by GCC" >&5
1318 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1320 # Accept absolute paths.
1322 test -z "$LD" && LD
="$ac_prog"
1325 # If it fails, then pretend we aren't using GCC.
1329 # If it is relative, then search for the first ld in PATH.
1333 elif test "$with_gnu_ld" = yes; then
1334 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1335 echo "configure:1336: checking for GNU ld" >&5
1337 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1338 echo "configure:1339: checking for non-GNU ld" >&5
1340 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test -z "$LD"; then
1344 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1345 for ac_dir
in $PATH; do
1346 test -z "$ac_dir" && ac_dir
=.
1347 if test -f "$ac_dir/$ac_prog"; then
1348 ac_cv_path_LD
="$ac_dir/$ac_prog"
1349 # Check to see if the program is GNU ld. I'd rather use --version,
1350 # but apparently some GNU ld's only accept -v.
1351 # Break only if it was the GNU/non-GNU ld that we prefer.
1352 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1353 test "$with_gnu_ld" != no
&& break
1355 test "$with_gnu_ld" != yes && break
1361 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1366 if test -n "$LD"; then
1367 echo "$ac_t""$LD" 1>&6
1369 echo "$ac_t""no" 1>&6
1371 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1373 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1374 echo "configure:1375: checking if the linker ($LD) is GNU ld" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1379 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1380 ac_cv_prog_gnu_ld
=yes
1382 ac_cv_prog_gnu_ld
=no
1386 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1389 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1390 echo "configure:1391: checking for BSD-compatible nm" >&5
1391 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 if test -n "$NM"; then
1395 # Let the user override the test.
1398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1399 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1400 test -z "$ac_dir" && ac_dir
=.
1401 if test -f $ac_dir/nm
; then
1402 # Check to see if the nm accepts a BSD-compat flag.
1403 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1404 # nm: unknown option "B" ignored
1405 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1406 ac_cv_path_NM
="$ac_dir/nm -B"
1407 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1408 ac_cv_path_NM
="$ac_dir/nm -p"
1410 ac_cv_path_NM
="$ac_dir/nm"
1416 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1421 echo "$ac_t""$NM" 1>&6
1424 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether ln -s works" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1430 if ln -s X conftestdata
2>/dev
/null
1433 ac_cv_prog_LN_S
="ln -s"
1438 LN_S
="$ac_cv_prog_LN_S"
1439 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1440 echo "$ac_t""yes" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 # Always use our own libtool.
1446 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1448 # Check for any special flags to pass to ltconfig.
1450 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1451 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1452 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1453 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1454 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1456 # Some flags need to be propagated to the compiler or linker for good
1460 # Find out which ABI we are using.
1461 echo '#line 1462 "configure"' > conftest.
$ac_ext
1462 if { (eval echo configure
:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1463 case "`/usr/bin/file conftest.o`" in
1479 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1480 CFLAGS
="$CFLAGS -belf"
1484 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1485 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 if test -n "$DLLTOOL"; then
1492 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1494 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1495 for ac_dir
in $PATH; do
1496 test -z "$ac_dir" && ac_dir
=.
1497 if test -f $ac_dir/$ac_word; then
1498 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1505 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1506 if test -n "$DLLTOOL"; then
1507 echo "$ac_t""$DLLTOOL" 1>&6
1509 echo "$ac_t""no" 1>&6
1513 if test -z "$ac_cv_prog_DLLTOOL"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "dlltool", so it can be a program name with args.
1516 set dummy dlltool
; ac_word
=$2
1517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1518 echo "configure:1519: checking for $ac_word" >&5
1519 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 if test -n "$DLLTOOL"; then
1523 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1525 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1526 for ac_dir
in $PATH; do
1527 test -z "$ac_dir" && ac_dir
=.
1528 if test -f $ac_dir/$ac_word; then
1529 ac_cv_prog_DLLTOOL
="dlltool"
1534 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1537 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1538 if test -n "$DLLTOOL"; then
1539 echo "$ac_t""$DLLTOOL" 1>&6
1541 echo "$ac_t""no" 1>&6
1549 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1550 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$AS"; then
1557 ac_cv_prog_AS
="$AS" # Let the user override the test.
1559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1560 for ac_dir
in $PATH; do
1561 test -z "$ac_dir" && ac_dir
=.
1562 if test -f $ac_dir/$ac_word; then
1563 ac_cv_prog_AS
="${ac_tool_prefix}as"
1571 if test -n "$AS"; then
1572 echo "$ac_t""$AS" 1>&6
1574 echo "$ac_t""no" 1>&6
1578 if test -z "$ac_cv_prog_AS"; then
1579 if test -n "$ac_tool_prefix"; then
1580 # Extract the first word of "as", so it can be a program name with args.
1581 set dummy as
; ac_word
=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test -n "$AS"; then
1588 ac_cv_prog_AS
="$AS" # Let the user override the test.
1590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1591 for ac_dir
in $PATH; do
1592 test -z "$ac_dir" && ac_dir
=.
1593 if test -f $ac_dir/$ac_word; then
1599 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1603 if test -n "$AS"; then
1604 echo "$ac_t""$AS" 1>&6
1606 echo "$ac_t""no" 1>&6
1619 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1620 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1621 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1622 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1623 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1624 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1625 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1627 # Redirect the config.log output again, so that the ltconfig log is not
1628 # clobbered by the next message.
1629 exec 5>>.
/config.log
1632 # Check whether --enable-targets or --disable-targets was given.
1633 if test "${enable_targets+set}" = set; then
1634 enableval
="$enable_targets"
1635 case "${enableval}" in
1636 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1638 no
) enable_targets
= ;;
1639 *) enable_targets
=$enableval ;;
1642 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1643 if test "${enable_commonbfdlib+set}" = set; then
1644 enableval
="$enable_commonbfdlib"
1645 case "${enableval}" in
1646 yes) commonbfdlib
=true
;;
1647 no
) commonbfdlib
=false
;;
1648 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1656 if test -z "$target" ; then
1657 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1659 if test "$program_transform_name" = s
,x
,x
,; then
1660 program_transform_name
=
1662 # Double any \ or $. echo might interpret backslashes.
1663 cat <<\EOF_SED
> conftestsed
1664 s
,\\,\\\\,g
; s
,\$
,$$
,g
1666 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1669 test "$program_prefix" != NONE
&&
1670 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1671 # Use a double $ so make ignores it.
1672 test "$program_suffix" != NONE
&&
1673 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1675 # sed with no file args requires a program.
1676 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1679 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether to enable maintainer-specific portions of Makefiles" >&5
1681 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1682 if test "${enable_maintainer_mode+set}" = set; then
1683 enableval
="$enable_maintainer_mode"
1684 USE_MAINTAINER_MODE
=$enableval
1686 USE_MAINTAINER_MODE
=no
1689 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1690 if test $USE_MAINTAINER_MODE = yes; then
1697 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1698 echo "configure:1699: checking for Cygwin32 environment" >&5
1699 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1707 return __CYGWIN32__;
1710 if { (eval echo configure
:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1723 echo "$ac_t""$am_cv_cygwin32" 1>&6
1725 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1726 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1727 echo "configure:1728: checking for Mingw32 environment" >&5
1728 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1739 if { (eval echo configure
:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1752 echo "$ac_t""$am_cv_mingw32" 1>&6
1754 test "$am_cv_mingw32" = yes && MINGW32
=yes
1757 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1758 echo "configure:1759: checking for executable suffix" >&5
1759 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1765 cat > am_c_test.c
<< 'EOF'
1767 /* Nothing needed here
*/
1770 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1772 for file in am_c_test.
*; do
1776 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
1782 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1785 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1786 echo "$ac_t""${am_cv_exeext}" 1>&6
1789 # host-specific stuff:
1791 # Extract the first word of "gcc", so it can be a program name with args.
1792 set dummy gcc
; ac_word
=$2
1793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_word" >&5
1795 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC
="$CC" # Let the user override the test.
1801 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1802 for ac_dir
in $PATH; do
1803 test -z "$ac_dir" && ac_dir
=.
1804 if test -f $ac_dir/$ac_word; then
1813 if test -n "$CC"; then
1814 echo "$ac_t""$CC" 1>&6
1816 echo "$ac_t""no" 1>&6
1819 if test -z "$CC"; then
1820 # Extract the first word of "cc", so it can be a program name with args.
1821 set dummy cc
; ac_word
=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC
="$CC" # Let the user override the test.
1830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1832 for ac_dir
in $PATH; do
1833 test -z "$ac_dir" && ac_dir
=.
1834 if test -f $ac_dir/$ac_word; then
1835 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1836 ac_prog_rejected
=yes
1844 if test $ac_prog_rejected = yes; then
1845 # We found a bogon in the path, so make sure we never use it.
1846 set dummy
$ac_cv_prog_CC
1848 if test $# -gt 0; then
1849 # We chose a different compiler from the bogus one.
1850 # However, it has the same basename, so the bogon will be chosen
1851 # first if we set CC to just the basename; use the full file name.
1853 set dummy
"$ac_dir/$ac_word" "$@"
1861 if test -n "$CC"; then
1862 echo "$ac_t""$CC" 1>&6
1864 echo "$ac_t""no" 1>&6
1867 if test -z "$CC"; then
1868 case "`uname -s`" in
1870 # Extract the first word of "cl", so it can be a program name with args.
1871 set dummy cl
; ac_word
=$2
1872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_word" >&5
1874 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC
="$CC" # Let the user override the test.
1880 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1881 for ac_dir
in $PATH; do
1882 test -z "$ac_dir" && ac_dir
=.
1883 if test -f $ac_dir/$ac_word; then
1892 if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1895 echo "$ac_t""no" 1>&6
1900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1908 ac_cpp
='$CPP $CPPFLAGS'
1909 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1910 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1911 cross_compiling
=$ac_cv_prog_cc_cross
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1918 if { (eval echo configure
:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1919 ac_cv_prog_cc_works
=yes
1920 # If we can't run a trivial program, we are probably using a cross compiler.
1921 if (.
/conftest
; exit) 2>/dev
/null
; then
1922 ac_cv_prog_cc_cross
=no
1924 ac_cv_prog_cc_cross
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1929 ac_cv_prog_cc_works
=no
1933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1934 if test $ac_cv_prog_cc_works = no
; then
1935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1940 cross_compiling
=$ac_cv_prog_cc_cross
1942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether we are using GNU C" >&5
1944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 cat > conftest.c
<<EOF
1952 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1961 if test $ac_cv_prog_gcc = yes; then
1967 ac_test_CFLAGS
="${CFLAGS+set}"
1968 ac_save_CFLAGS
="$CFLAGS"
1970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether ${CC-cc} accepts -g" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 echo 'void f(){}' > conftest.c
1976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1986 if test "$ac_test_CFLAGS" = set; then
1987 CFLAGS
="$ac_save_CFLAGS"
1988 elif test $ac_cv_prog_cc_g = yes; then
1989 if test "$GCC" = yes; then
1995 if test "$GCC" = yes; then
2004 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2005 echo "configure:2006: checking how to run the C preprocessor" >&5
2006 # On Suns, sometimes $CPP names a directory.
2007 if test -n "$CPP" && test -d "$CPP"; then
2010 if test -z "$CPP"; then
2011 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 # This must be in double quotes, not single quotes, because CPP may get
2015 # substituted into the Makefile and "${CC-cc}" will confuse make.
2017 # On the NeXT, cc -E runs the code through the compiler's parser,
2018 # not just through cpp.
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2025 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure
:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028 if test -z "$ac_err"; then
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 CPP
="${CC-cc} -E -traditional-cpp"
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure
:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2052 CPP
="${CC-cc} -nologo -E"
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2059 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure
:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2076 ac_cv_prog_CPP
="$CPP"
2078 CPP
="$ac_cv_prog_CPP"
2080 ac_cv_prog_CPP
="$CPP"
2082 echo "$ac_t""$CPP" 1>&6
2084 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2085 echo "configure:2086: checking for ANSI C header files" >&5
2086 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure
:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2100 if test -z "$ac_err"; then
2102 ac_cv_header_stdc
=yes
2105 echo "configure: failed program was:" >&5
2106 cat conftest.
$ac_ext >&5
2108 ac_cv_header_stdc
=no
2112 if test $ac_cv_header_stdc = yes; then
2113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2120 egrep "memchr" >/dev
/null
2>&1; then
2124 ac_cv_header_stdc
=no
2130 if test $ac_cv_header_stdc = yes; then
2131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2138 egrep "free" >/dev
/null
2>&1; then
2142 ac_cv_header_stdc
=no
2148 if test $ac_cv_header_stdc = yes; then
2149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2150 if test "$cross_compiling" = yes; then
2153 cat > conftest.
$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2157 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2158 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2160 int main () { int i; for (i = 0; i < 256; i++)
2161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2165 if { (eval echo configure
:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2169 echo "configure: failed program was:" >&5
2170 cat conftest.
$ac_ext >&5
2172 ac_cv_header_stdc
=no
2180 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2181 if test $ac_cv_header_stdc = yes; then
2182 cat >> confdefs.h
<<\EOF
2183 #define STDC_HEADERS 1
2188 echo $ac_n "checking for working const""... $ac_c" 1>&6
2189 echo "configure:2190: checking for working const" >&5
2190 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2199 /* Ultrix mips cc rejects this. */
2200 typedef int charset[2]; const charset x;
2201 /* SunOS 4.1.1 cc rejects this. */
2202 char const *const *ccp;
2204 /* NEC SVR4.0.2 mips cc rejects this. */
2205 struct point {int x, y;};
2206 static struct point const zero = {0,0};
2207 /* AIX XL C 1.02.0.0 rejects this.
2208 It does not let you subtract one const X* pointer from another in an arm
2209 of an if-expression whose if-part is not a constant expression */
2210 const char *g = "string";
2211 ccp = &g + (g ? g-g : 0);
2212 /* HPUX 7.0 cc rejects these. */
2215 ccp = (char const *const *) p;
2216 { /* SCO 3.2v4 cc rejects this. */
2218 char const *s = 0 ? (char *) 0 : (char const *) 0;
2222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2224 const int *foo = &x[0];
2227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2228 typedef const int *iptr;
2232 { /* AIX XL C 1.02.0.0 rejects this saying
2233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2234 struct s { int j; const int *ap[3]; };
2235 struct s *b; b->j = 5;
2237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2243 if { (eval echo configure
:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2255 echo "$ac_t""$ac_cv_c_const" 1>&6
2256 if test $ac_cv_c_const = no
; then
2257 cat >> confdefs.h
<<\EOF
2263 echo $ac_n "checking for inline""... $ac_c" 1>&6
2264 echo "configure:2265: checking for inline" >&5
2265 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2269 for ac_kw
in inline __inline__ __inline
; do
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2278 if { (eval echo configure
:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 ac_cv_c_inline
=$ac_kw; break
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2290 echo "$ac_t""$ac_cv_c_inline" 1>&6
2291 case "$ac_cv_c_inline" in
2293 no
) cat >> confdefs.h
<<\EOF
2297 *) cat >> confdefs.h
<<EOF
2298 #define inline $ac_cv_c_inline
2303 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2304 echo "configure:2305: checking for off_t" >&5
2305 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <sys/types.h>
2317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2318 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2320 ac_cv_type_off_t
=yes
2328 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2329 if test $ac_cv_type_off_t = no
; then
2330 cat >> confdefs.h
<<\EOF
2336 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2337 echo "configure:2338: checking for size_t" >&5
2338 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <sys/types.h>
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2353 ac_cv_type_size_t
=yes
2356 ac_cv_type_size_t
=no
2361 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2362 if test $ac_cv_type_size_t = no
; then
2363 cat >> confdefs.h
<<\EOF
2364 #define size_t unsigned
2369 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2370 # for constant arguments. Useless!
2371 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2372 echo "configure:2373: checking for working alloca.h" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2381 char *p = alloca(2 * sizeof(int));
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2386 ac_cv_header_alloca_h
=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 ac_cv_header_alloca_h
=no
2396 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2397 if test $ac_cv_header_alloca_h = yes; then
2398 cat >> confdefs.h
<<\EOF
2399 #define HAVE_ALLOCA_H 1
2404 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2405 echo "configure:2406: checking for alloca" >&5
2406 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.
$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2414 # define alloca __builtin_alloca
2417 # include <malloc.h>
2418 # define alloca _alloca
2421 # include <alloca.h>
2426 # ifndef alloca /* predefined by HP cc +Olibcalls */
2435 char *p = (char *) alloca(1);
2438 if { (eval echo configure
:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2440 ac_cv_func_alloca_works
=yes
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 ac_cv_func_alloca_works
=no
2450 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2451 if test $ac_cv_func_alloca_works = yes; then
2452 cat >> confdefs.h
<<\EOF
2453 #define HAVE_ALLOCA 1
2458 if test $ac_cv_func_alloca_works = no
; then
2459 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2460 # that cause trouble. Some versions do not even contain alloca or
2461 # contain a buggy version. If you still want to use their alloca,
2462 # use ar to extract alloca.o from them instead of compiling alloca.c.
2463 ALLOCA
=alloca.
${ac_objext}
2464 cat >> confdefs.h
<<\EOF
2469 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether alloca needs Cray hooks" >&5
2471 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #if defined(CRAY) && ! defined(CRAY2)
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "webecray" >/dev
/null
2>&1; then
2496 echo "$ac_t""$ac_cv_os_cray" 1>&6
2497 if test $ac_cv_os_cray = yes; then
2498 for ac_func
in _getb67 GETB67 getb67
; do
2499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_func" >&5
2501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 /* System header to define __stub macros and hopefully few prototypes,
2508 which can conflict with char $ac_func(); below. */
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 /* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2517 /* The GNU C library defines this for functions which it implements
2518 to always fail with ENOSYS. Some functions are actually named
2519 something starting with __ and the normal name is an alias. */
2520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2528 if { (eval echo configure
:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2530 eval "ac_cv_func_$ac_func=yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 eval "ac_cv_func_$ac_func=no"
2540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 cat >> confdefs.h
<<EOF
2543 #define CRAY_STACKSEG_END $ac_func
2548 echo "$ac_t""no" 1>&6
2554 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2555 echo "configure:2556: checking stack direction for C alloca" >&5
2556 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 if test "$cross_compiling" = yes; then
2560 ac_cv_c_stack_direction
=0
2562 cat > conftest.
$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2565 find_stack_direction ()
2567 static char *addr = 0;
2572 return find_stack_direction ();
2575 return (&dummy > addr) ? 1 : -1;
2579 exit (find_stack_direction() < 0);
2582 if { (eval echo configure
:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2584 ac_cv_c_stack_direction
=1
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 ac_cv_c_stack_direction
=-1
2596 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2597 cat >> confdefs.h
<<EOF
2598 #define STACK_DIRECTION $ac_cv_c_stack_direction
2603 for ac_hdr
in unistd.h
2605 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2607 echo "configure:2608: checking for $ac_hdr" >&5
2608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.
$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2616 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2617 { (eval echo configure
:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2618 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2619 if test -z "$ac_err"; then
2621 eval "ac_cv_header_$ac_safe=yes"
2624 echo "configure: failed program was:" >&5
2625 cat conftest.
$ac_ext >&5
2627 eval "ac_cv_header_$ac_safe=no"
2631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2634 cat >> confdefs.h
<<EOF
2635 #define $ac_tr_hdr 1
2639 echo "$ac_t""no" 1>&6
2643 for ac_func
in getpagesize
2645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_func" >&5
2647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.
$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 /* System header to define __stub macros and hopefully few prototypes,
2654 which can conflict with char $ac_func(); below. */
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2674 if { (eval echo configure
:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2676 eval "ac_cv_func_$ac_func=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.
$ac_ext >&5
2681 eval "ac_cv_func_$ac_func=no"
2686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2689 cat >> confdefs.h
<<EOF
2690 #define $ac_tr_func 1
2694 echo "$ac_t""no" 1>&6
2698 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2699 echo "configure:2700: checking for working mmap" >&5
2700 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 if test "$cross_compiling" = yes; then
2704 ac_cv_func_mmap_fixed_mapped
=no
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2710 /* Thanks to Mike Haertel and Jim Avera for this test.
2711 Here is a matrix of mmap possibilities:
2712 mmap private not fixed
2713 mmap private fixed at somewhere currently unmapped
2714 mmap private fixed at somewhere already mapped
2715 mmap shared not fixed
2716 mmap shared fixed at somewhere currently unmapped
2717 mmap shared fixed at somewhere already mapped
2718 For private mappings, we should verify that changes cannot be read()
2719 back from the file, nor mmap's back from the file at a different
2720 address. (There have been systems where private was not correctly
2721 implemented like the infamous i386 svr4.0, and systems where the
2722 VM page cache was not coherent with the filesystem buffer cache
2723 like early versions of FreeBSD and possibly contemporary NetBSD.)
2724 For shared mappings, we should conversely verify that changes get
2725 propogated back to all the places they're supposed to be.
2727 Grep wants private fixed already mapped.
2728 The main things grep needs to know about mmap are:
2729 * does it exist and is it safe to write into the mmap'd area
2730 * how to use it (BSD variants) */
2731 #include <sys/types.h>
2733 #include <sys/mman.h>
2735 /* This mess was copied from the GNU getpagesize.h. */
2736 #ifndef HAVE_GETPAGESIZE
2737 # ifdef HAVE_UNISTD_H
2738 # include <unistd.h>
2741 /* Assume that all systems that can run configure have sys/param.h. */
2742 # ifndef HAVE_SYS_PARAM_H
2743 # define HAVE_SYS_PARAM_H 1
2746 # ifdef _SC_PAGESIZE
2747 # define getpagesize() sysconf(_SC_PAGESIZE)
2748 # else /* no _SC_PAGESIZE */
2749 # ifdef HAVE_SYS_PARAM_H
2750 # include <sys/param.h>
2751 # ifdef EXEC_PAGESIZE
2752 # define getpagesize() EXEC_PAGESIZE
2753 # else /* no EXEC_PAGESIZE */
2755 # define getpagesize() NBPG * CLSIZE
2758 # endif /* no CLSIZE */
2759 # else /* no NBPG */
2761 # define getpagesize() NBPC
2762 # else /* no NBPC */
2764 # define getpagesize() PAGESIZE
2765 # endif /* PAGESIZE */
2766 # endif /* no NBPC */
2767 # endif /* no NBPG */
2768 # endif /* no EXEC_PAGESIZE */
2769 # else /* no HAVE_SYS_PARAM_H */
2770 # define getpagesize() 8192 /* punt totally */
2771 # endif /* no HAVE_SYS_PARAM_H */
2772 # endif /* no _SC_PAGESIZE */
2774 #endif /* no HAVE_GETPAGESIZE */
2777 extern "C" { void *malloc(unsigned); }
2785 char *data, *data2, *data3;
2789 pagesize = getpagesize();
2792 * First, make a file with some known garbage in it.
2794 data = malloc(pagesize);
2797 for (i = 0; i < pagesize; ++i)
2798 *(data + i) = rand();
2800 fd = creat("conftestmmap", 0600);
2803 if (write(fd, data, pagesize) != pagesize)
2808 * Next, try to mmap the file at a fixed address which
2809 * already has something else allocated at it. If we can,
2810 * also make sure that we see the same garbage.
2812 fd = open("conftestmmap", O_RDWR);
2815 data2 = malloc(2 * pagesize);
2818 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2819 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2820 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2822 for (i = 0; i < pagesize; ++i)
2823 if (*(data + i) != *(data2 + i))
2827 * Finally, make sure that changes to the mapped area
2828 * do not percolate back to the file as seen by read().
2829 * (This is a bug on some variants of i386 svr4.0.)
2831 for (i = 0; i < pagesize; ++i)
2832 *(data2 + i) = *(data2 + i) + 1;
2833 data3 = malloc(pagesize);
2836 if (read(fd, data3, pagesize) != pagesize)
2838 for (i = 0; i < pagesize; ++i)
2839 if (*(data + i) != *(data3 + i))
2842 unlink("conftestmmap");
2847 if { (eval echo configure
:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2849 ac_cv_func_mmap_fixed_mapped
=yes
2851 echo "configure: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 ac_cv_func_mmap_fixed_mapped
=no
2861 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2862 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2863 cat >> confdefs.h
<<\EOF
2870 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2871 unistd.h values.h sys
/param.h
2873 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_hdr" >&5
2876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.
$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure
:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2889 eval "ac_cv_header_$ac_safe=yes"
2892 echo "configure: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2895 eval "ac_cv_header_$ac_safe=no"
2899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2902 cat >> confdefs.h
<<EOF
2903 #define $ac_tr_hdr 1
2907 echo "$ac_t""no" 1>&6
2911 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2912 __argz_count __argz_stringify __argz_next
2914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_func" >&5
2916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 cat > conftest.
$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 /* System header to define __stub macros and hopefully few prototypes,
2923 which can conflict with char $ac_func(); below. */
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 /* We use char because int might match the return type of a gcc2
2927 builtin and then its argument prototype would still apply. */
2932 /* The GNU C library defines this for functions which it implements
2933 to always fail with ENOSYS. Some functions are actually named
2934 something starting with __ and the normal name is an alias. */
2935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2943 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2945 eval "ac_cv_func_$ac_func=yes"
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 eval "ac_cv_func_$ac_func=no"
2955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2956 echo "$ac_t""yes" 1>&6
2957 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2958 cat >> confdefs.h
<<EOF
2959 #define $ac_tr_func 1
2963 echo "$ac_t""no" 1>&6
2968 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2969 for ac_func
in stpcpy
2971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_func" >&5
2973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.
$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 /* System header to define __stub macros and hopefully few prototypes,
2980 which can conflict with char $ac_func(); below. */
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2989 /* The GNU C library defines this for functions which it implements
2990 to always fail with ENOSYS. Some functions are actually named
2991 something starting with __ and the normal name is an alias. */
2992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3000 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3002 eval "ac_cv_func_$ac_func=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 eval "ac_cv_func_$ac_func=no"
3012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3015 cat >> confdefs.h
<<EOF
3016 #define $ac_tr_func 1
3020 echo "$ac_t""no" 1>&6
3025 if test "${ac_cv_func_stpcpy}" = "yes"; then
3026 cat >> confdefs.h
<<\EOF
3027 #define HAVE_STPCPY 1
3032 if test $ac_cv_header_locale_h = yes; then
3033 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3034 echo "configure:3035: checking for LC_MESSAGES" >&5
3035 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 cat > conftest.
$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3046 if { (eval echo configure
:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3048 am_cv_val_LC_MESSAGES
=yes
3050 echo "configure: failed program was:" >&5
3051 cat conftest.
$ac_ext >&5
3053 am_cv_val_LC_MESSAGES
=no
3058 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3059 if test $am_cv_val_LC_MESSAGES = yes; then
3060 cat >> confdefs.h
<<\EOF
3061 #define HAVE_LC_MESSAGES 1
3066 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3067 echo "configure:3068: checking whether NLS is requested" >&5
3068 # Check whether --enable-nls or --disable-nls was given.
3069 if test "${enable_nls+set}" = set; then
3070 enableval
="$enable_nls"
3076 echo "$ac_t""$USE_NLS" 1>&6
3079 USE_INCLUDED_LIBINTL
=no
3081 if test "$USE_NLS" = "yes"; then
3082 cat >> confdefs.h
<<\EOF
3083 #define ENABLE_NLS 1
3086 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3087 echo "configure:3088: checking whether included gettext is requested" >&5
3088 # Check whether --with-included-gettext or --without-included-gettext was given.
3089 if test "${with_included_gettext+set}" = set; then
3090 withval
="$with_included_gettext"
3091 nls_cv_force_use_gnu_gettext
=$withval
3093 nls_cv_force_use_gnu_gettext
=no
3096 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3098 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3099 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3101 nls_cv_header_libgt
=
3104 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3105 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3106 echo "configure:3107: checking for libintl.h" >&5
3107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.
$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 #include <libintl.h>
3115 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3116 { (eval echo configure
:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3117 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3118 if test -z "$ac_err"; then
3120 eval "ac_cv_header_$ac_safe=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.
$ac_ext >&5
3126 eval "ac_cv_header_$ac_safe=no"
3130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3131 echo "$ac_t""yes" 1>&6
3132 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3133 echo "configure:3134: checking for gettext in libc" >&5
3134 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.
$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 #include <libintl.h>
3142 return (int) gettext ("")
3145 if { (eval echo configure
:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3147 gt_cv_func_gettext_libc
=yes
3149 echo "configure: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3152 gt_cv_func_gettext_libc
=no
3157 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3159 if test "$gt_cv_func_gettext_libc" != "yes"; then
3160 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3161 echo "configure:3162: checking for bindtextdomain in -lintl" >&5
3162 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 ac_save_LIBS
="$LIBS"
3168 cat > conftest.
$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3174 char bindtextdomain();
3180 if { (eval echo configure
:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3184 echo "configure: failed program was:" >&5
3185 cat conftest.
$ac_ext >&5
3187 eval "ac_cv_lib_$ac_lib_var=no"
3190 LIBS
="$ac_save_LIBS"
3193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3196 echo "configure:3197: checking for gettext in libintl" >&5
3197 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3205 return (int) gettext ("")
3208 if { (eval echo configure
:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3210 gt_cv_func_gettext_libintl
=yes
3212 echo "configure: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3215 gt_cv_func_gettext_libintl
=no
3220 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3222 echo "$ac_t""no" 1>&6
3227 if test "$gt_cv_func_gettext_libc" = "yes" \
3228 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3229 cat >> confdefs.h
<<\EOF
3230 #define HAVE_GETTEXT 1
3233 # Extract the first word of "msgfmt", so it can be a program name with args.
3234 set dummy msgfmt
; ac_word
=$2
3235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_word" >&5
3237 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3242 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3245 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3246 for ac_dir
in $PATH; do
3247 test -z "$ac_dir" && ac_dir
=.
3248 if test -f $ac_dir/$ac_word; then
3249 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3250 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3256 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3260 MSGFMT
="$ac_cv_path_MSGFMT"
3261 if test -n "$MSGFMT"; then
3262 echo "$ac_t""$MSGFMT" 1>&6
3264 echo "$ac_t""no" 1>&6
3266 if test "$MSGFMT" != "no"; then
3267 for ac_func
in dcgettext
3269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3270 echo "configure:3271: checking for $ac_func" >&5
3271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 /* System header to define __stub macros and hopefully few prototypes,
3278 which can conflict with char $ac_func(); below. */
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3287 /* The GNU C library defines this for functions which it implements
3288 to always fail with ENOSYS. Some functions are actually named
3289 something starting with __ and the normal name is an alias. */
3290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3300 eval "ac_cv_func_$ac_func=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 eval "ac_cv_func_$ac_func=no"
3310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3313 cat >> confdefs.h
<<EOF
3314 #define $ac_tr_func 1
3318 echo "$ac_t""no" 1>&6
3322 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3323 set dummy gmsgfmt
; ac_word
=$2
3324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_word" >&5
3326 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3331 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3334 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3338 for ac_dir
in $PATH; do
3339 test -z "$ac_dir" && ac_dir
=.
3340 if test -f $ac_dir/$ac_word; then
3341 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3346 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3350 GMSGFMT
="$ac_cv_path_GMSGFMT"
3351 if test -n "$GMSGFMT"; then
3352 echo "$ac_t""$GMSGFMT" 1>&6
3354 echo "$ac_t""no" 1>&6
3357 # Extract the first word of "xgettext", so it can be a program name with args.
3358 set dummy xgettext
; ac_word
=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3366 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3370 for ac_dir
in $PATH; do
3371 test -z "$ac_dir" && ac_dir
=.
3372 if test -f $ac_dir/$ac_word; then
3373 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3374 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3380 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3384 XGETTEXT
="$ac_cv_path_XGETTEXT"
3385 if test -n "$XGETTEXT"; then
3386 echo "$ac_t""$XGETTEXT" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3396 extern int _nl_msg_cat_cntr;
3397 return _nl_msg_cat_cntr
3400 if { (eval echo configure
:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3405 echo "configure: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3417 echo "$ac_t""no" 1>&6
3422 if test "$CATOBJEXT" = "NONE"; then
3423 nls_cv_use_gnu_gettext
=yes
3427 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3428 INTLOBJS
="\$(GETTOBJS)"
3429 # Extract the first word of "msgfmt", so it can be a program name with args.
3430 set dummy msgfmt
; ac_word
=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3438 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3442 for ac_dir
in $PATH; do
3443 test -z "$ac_dir" && ac_dir
=.
3444 if test -f $ac_dir/$ac_word; then
3445 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3446 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3452 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3456 MSGFMT
="$ac_cv_path_MSGFMT"
3457 if test -n "$MSGFMT"; then
3458 echo "$ac_t""$MSGFMT" 1>&6
3460 echo "$ac_t""no" 1>&6
3463 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3464 set dummy gmsgfmt
; ac_word
=$2
3465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_word" >&5
3467 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3475 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3479 for ac_dir
in $PATH; do
3480 test -z "$ac_dir" && ac_dir
=.
3481 if test -f $ac_dir/$ac_word; then
3482 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3487 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3491 GMSGFMT
="$ac_cv_path_GMSGFMT"
3492 if test -n "$GMSGFMT"; then
3493 echo "$ac_t""$GMSGFMT" 1>&6
3495 echo "$ac_t""no" 1>&6
3498 # Extract the first word of "xgettext", so it can be a program name with args.
3499 set dummy xgettext
; ac_word
=$2
3500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3501 echo "configure:3502: checking for $ac_word" >&5
3502 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3507 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3510 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3511 for ac_dir
in $PATH; do
3512 test -z "$ac_dir" && ac_dir
=.
3513 if test -f $ac_dir/$ac_word; then
3514 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3515 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3521 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3525 XGETTEXT
="$ac_cv_path_XGETTEXT"
3526 if test -n "$XGETTEXT"; then
3527 echo "$ac_t""$XGETTEXT" 1>&6
3529 echo "$ac_t""no" 1>&6
3533 USE_INCLUDED_LIBINTL
=yes
3537 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3539 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3540 nls_cv_header_intl
=libintl.h
3541 nls_cv_header_libgt
=libgettext.h
3544 if test "$XGETTEXT" != ":"; then
3545 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3548 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3553 # We need to process the po/ directory.
3557 nls_cv_header_intl
=libintl.h
3558 nls_cv_header_libgt
=libgettext.h
3561 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3562 # because some of the sources are only built for this goal.
3563 if test "$PACKAGE" = gettext; then
3565 USE_INCLUDED_LIBINTL
=yes
3568 for lang
in $ALL_LINGUAS; do
3569 GMOFILES
="$GMOFILES $lang.gmo"
3570 POFILES
="$POFILES $lang.po"
3586 if test "x$CATOBJEXT" != "x"; then
3587 if test "x$ALL_LINGUAS" = "x"; then
3590 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3591 echo "configure:3592: checking for catalogs to be installed" >&5
3593 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3594 case "$ALL_LINGUAS" in
3595 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3598 LINGUAS
=$NEW_LINGUAS
3599 echo "$ac_t""$LINGUAS" 1>&6
3602 if test -n "$LINGUAS"; then
3603 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3607 if test $ac_cv_header_locale_h = yes; then
3608 INCLUDE_LOCALE_H
="#include <locale.h>"
3611 /* The system does not provide the header <locale.h>. Take care yourself. */"
3615 if test -f $srcdir/po2tbl.
sed.
in; then
3616 if test "$CATOBJEXT" = ".cat"; then
3617 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3618 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3619 echo "configure:3620: checking for linux/version.h" >&5
3620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <linux/version.h>
3628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3629 { (eval echo configure
:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3631 if test -z "$ac_err"; then
3633 eval "ac_cv_header_$ac_safe=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.
$ac_ext >&5
3639 eval "ac_cv_header_$ac_safe=no"
3643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3647 echo "$ac_t""no" 1>&6
3652 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3654 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3655 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3658 if test "$PACKAGE" = "gettext"; then
3668 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3674 if test -d $srcdir/po
; then
3675 test -d po || mkdir po
3676 if test "x$srcdir" != "x."; then
3677 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3678 posrcprefix
="$srcdir/"
3680 posrcprefix
="../$srcdir/"
3686 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3687 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3691 .
${srcdir}/..
/bfd
/configure.
host
3695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3698 for ac_hdr
in string.h
strings.h stdlib.h
3700 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_hdr" >&5
3703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3711 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3712 { (eval echo configure
:3713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3713 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3714 if test -z "$ac_err"; then
3716 eval "ac_cv_header_$ac_safe=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 eval "ac_cv_header_$ac_safe=no"
3726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3729 cat >> confdefs.h
<<EOF
3730 #define $ac_tr_hdr 1
3734 echo "$ac_t""no" 1>&6
3739 # start-sanitize-cygnus
3741 # Default is to use one in build tree.
3743 cgendir
='$(srcdir)/../cgen'
3744 # Having --enable-maintainer-mode take arguments is another way to go.
3745 # ??? One can argue --with is more appropriate if one wants to specify
3746 # a directory name, but what we're doing here is an enable/disable kind
3747 # of thing and specifying both --enable and --with is klunky.
3748 # If you reeely want this to be --with, go ahead and change it.
3749 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3750 if test "${enable_cgen_maint+set}" = set; then
3751 enableval
="$enable_cgen_maint"
3752 case "${enableval}" in
3753 yes) cgen_maint
=yes ;;
3754 no
) cgen_maint
=no
;;
3756 # argument is cgen install directory (not implemented yet).
3757 # Having a `share' directory might be more appropriate for the .scm,
3760 cgendir
=${cgen_maint}/lib
/cgen
3761 cgen
=${cgendir}/bin
/cgen
3767 if test x
${cgen_maint} = xyes
; then
3769 CGEN_MAINT_FALSE
='#'
3776 # end-sanitize-cygnus
3778 # Horrible hacks to build DLLs on Windows.
3783 if test "$enable_shared" = "yes"; then
3784 WIN32LDFLAGS
="-no-undefined"
3785 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3792 # target-specific stuff:
3794 # Canonicalize the secondary target names.
3795 if test -n "$enable_targets" ; then
3796 for targ
in `echo $enable_targets | sed 's/,/ /g'`
3798 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
3799 if test -n "$result" ; then
3800 canon_targets
="$canon_targets $result"
3802 # Allow targets that config.sub doesn't recognize, like "all".
3803 canon_targets
="$canon_targets $targ"
3810 for targ
in $target $canon_targets
3812 if test "x$targ" = "xall" ; then
3815 .
$srcdir/..
/bfd
/config.bfd
3816 selarchs
="$selarchs $targ_archs"
3820 # Utility var, documents generic cgen support files.
3822 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3824 # We don't do any links based on the target system, just makefile config.
3826 if test x
${all_targets} = xfalse
; then
3828 # Target architecture .o files.
3831 for arch
in $selarchs
3833 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3834 archdefs
="$archdefs -DARCH_$ad"
3836 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
3837 bfd_alliant_arch
) ;;
3838 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
3839 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
3840 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
3842 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
3843 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
3844 bfd_fr30_arch
) ta
="$ta $cgen_files fr30-opc.lo fr30-asm.lo fr30-dis.lo" ;;
3845 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
3846 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
3847 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
3848 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
3850 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
3851 bfd_m32r_arch
) ta
="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
3852 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
3853 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
3854 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3855 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
3856 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
3857 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
3858 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
3859 bfd_pyramid_arch
) ;;
3861 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
3862 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
3863 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
3865 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
3866 # start-sanitize-tic80
3867 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
3868 # end-sanitize-tic80
3869 # start-sanitize-sky
3870 bfd_dvp_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
3872 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3873 # start-sanitize-v850e
3874 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3875 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3876 # end-sanitize-v850e
3877 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
3878 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
3880 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
3883 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3887 # Weed out duplicate .o files.
3897 # And duplicate -D flags.
3899 for i
in $archdefs ; do
3909 else # all_targets is true
3911 BFD_MACHINES
='$(ALL_MACHINES)'
3918 cat > confcache
<<\EOF
3919 # This file is a shell script that caches the results of configure
3920 # tests run on this system so they can be shared between configure
3921 # scripts and configure runs. It is not useful on other systems.
3922 # If it contains results you don't want to keep, you may remove or edit it.
3924 # By default, configure uses ./config.cache as the cache file,
3925 # creating it if it does not exist already. You can give configure
3926 # the --cache-file=FILE option to use a different cache file; that is
3927 # what configure does when it calls configure scripts in
3928 # subdirectories, so they share the cache.
3929 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3930 # config.status only pays attention to the cache file if you give it the
3931 # --recheck option to rerun configure.
3934 # The following way of writing the cache mishandles newlines in values,
3935 # but we know of no workaround that is simple, portable, and efficient.
3936 # So, don't put newlines in cache variables' values.
3937 # Ultrix sh set writes to stderr and can't be redirected directly,
3938 # and sets the high bit in the cache file unless we assign to the vars.
3940 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3942 # `set' does not quote correctly, so add quotes (double-quote substitution
3943 # turns \\\\ into \\, and sed turns \\ into \).
3945 -e "s/'/'\\\\''/g" \
3946 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3949 # `set' quotes correctly as required by POSIX, so do not add quotes.
3950 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3953 if cmp -s $cache_file confcache
; then
3956 if test -w $cache_file; then
3957 echo "updating cache $cache_file"
3958 cat confcache
> $cache_file
3960 echo "not updating unwritable cache $cache_file"
3965 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3967 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3968 # Let make expand exec_prefix.
3969 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3971 # Any assignment to VPATH causes Sun make to only execute
3972 # the first set of double-colon rules, so remove it if not needed.
3973 # If there is a colon in the path, we need to keep it.
3974 if test "x$srcdir" = x.
; then
3975 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3978 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3980 DEFS
=-DHAVE_CONFIG_H
3982 # Without the "./", some shells look in PATH for config.status.
3983 : ${CONFIG_STATUS=./config.status}
3985 echo creating
$CONFIG_STATUS
3986 rm -f $CONFIG_STATUS
3987 cat > $CONFIG_STATUS <<EOF
3989 # Generated automatically by configure.
3990 # Run this file to recreate the current configuration.
3991 # This directory was configured as follows,
3992 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3994 # $0 $ac_configure_args
3996 # Compiler output produced by configure, useful for debugging
3997 # configure, is in ./config.log if it exists.
3999 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4002 case "\$ac_option" in
4003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4004 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4005 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4006 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4007 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4009 -help | --help | --hel | --he | --h)
4010 echo "\$ac_cs_usage"; exit 0 ;;
4011 *) echo "\$ac_cs_usage"; exit 1 ;;
4015 ac_given_srcdir=$srcdir
4016 ac_given_INSTALL="$INSTALL"
4018 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4020 cat >> $CONFIG_STATUS <<EOF
4022 # Protect against being on the right side of a sed subst in config.status.
4023 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4024 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4028 s%@CFLAGS@%$CFLAGS%g
4029 s%@CPPFLAGS@%$CPPFLAGS%g
4030 s%@CXXFLAGS@%$CXXFLAGS%g
4032 s%@LDFLAGS@%$LDFLAGS%g
4034 s%@exec_prefix@%$exec_prefix%g
4035 s%@prefix@%$prefix%g
4036 s%@program_transform_name@%$program_transform_name%g
4037 s%@bindir@%$bindir%g
4038 s%@sbindir@%$sbindir%g
4039 s%@libexecdir@%$libexecdir%g
4040 s%@datadir@%$datadir%g
4041 s%@sysconfdir@%$sysconfdir%g
4042 s%@sharedstatedir@%$sharedstatedir%g
4043 s%@localstatedir@%$localstatedir%g
4044 s%@libdir@%$libdir%g
4045 s%@includedir@%$includedir%g
4046 s%@oldincludedir@%$oldincludedir%g
4047 s%@infodir@%$infodir%g
4048 s%@mandir@%$mandir%g
4050 s%@host_alias@%$host_alias%g
4051 s%@host_cpu@%$host_cpu%g
4052 s%@host_vendor@%$host_vendor%g
4053 s%@host_os@%$host_os%g
4054 s%@target@%$target%g
4055 s%@target_alias@%$target_alias%g
4056 s%@target_cpu@%$target_cpu%g
4057 s%@target_vendor@%$target_vendor%g
4058 s%@target_os@%$target_os%g
4060 s%@build_alias@%$build_alias%g
4061 s%@build_cpu@%$build_cpu%g
4062 s%@build_vendor@%$build_vendor%g
4063 s%@build_os@%$build_os%g
4065 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4066 s%@INSTALL_DATA@%$INSTALL_DATA%g
4067 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4068 s%@PACKAGE@%$PACKAGE%g
4069 s%@VERSION@%$VERSION%g
4070 s%@ACLOCAL@%$ACLOCAL%g
4071 s%@AUTOCONF@%$AUTOCONF%g
4072 s%@AUTOMAKE@%$AUTOMAKE%g
4073 s%@AUTOHEADER@%$AUTOHEADER%g
4074 s%@MAKEINFO@%$MAKEINFO%g
4075 s%@SET_MAKE@%$SET_MAKE%g
4077 s%@RANLIB@%$RANLIB%g
4081 s%@LIBTOOL@%$LIBTOOL%g
4082 s%@DLLTOOL@%$DLLTOOL%g
4085 s%@EXEEXT@%$EXEEXT%g
4087 s%@ALLOCA@%$ALLOCA%g
4088 s%@USE_NLS@%$USE_NLS%g
4089 s%@MSGFMT@%$MSGFMT%g
4090 s%@GMSGFMT@%$GMSGFMT%g
4091 s%@XGETTEXT@%$XGETTEXT%g
4092 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4093 s%@CATALOGS@%$CATALOGS%g
4094 s%@CATOBJEXT@%$CATOBJEXT%g
4095 s%@DATADIRNAME@%$DATADIRNAME%g
4096 s%@GMOFILES@%$GMOFILES%g
4097 s%@INSTOBJEXT@%$INSTOBJEXT%g
4098 s%@INTLDEPS@%$INTLDEPS%g
4099 s%@INTLLIBS@%$INTLLIBS%g
4100 s%@INTLOBJS@%$INTLOBJS%g
4101 s%@POFILES@%$POFILES%g
4103 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4105 s%@GT_YES@%$GT_YES%g
4106 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4108 s%@HDEFINES@%$HDEFINES%g
4109 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4110 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4111 s%@cgendir@%$cgendir%g
4113 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4114 s%@WIN32LIBADD@%$WIN32LIBADD%g
4115 s%@archdefs@%$archdefs%g
4116 s%@BFD_MACHINES@%$BFD_MACHINES%g
4121 cat >> $CONFIG_STATUS <<\EOF
4123 # Split the substitutions into bite-sized pieces for seds with
4124 # small command number limits, like on Digital OSF/1 and HP-UX.
4125 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4126 ac_file
=1 # Number of current file.
4127 ac_beg
=1 # First line for current file.
4128 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4131 while $ac_more_lines; do
4132 if test $ac_beg -gt 1; then
4133 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4135 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4137 if test ! -s conftest.s
$ac_file; then
4139 rm -f conftest.s
$ac_file
4141 if test -z "$ac_sed_cmds"; then
4142 ac_sed_cmds
="sed -f conftest.s$ac_file"
4144 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4146 ac_file
=`expr $ac_file + 1`
4148 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4151 if test -z "$ac_sed_cmds"; then
4156 cat >> $CONFIG_STATUS <<EOF
4158 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4160 cat >> $CONFIG_STATUS <<\EOF
4161 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4164 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4165 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4166 *) ac_file_in
="${ac_file}.in" ;;
4169 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4171 # Remove last slash and all that follows it. Not all systems have dirname.
4172 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4173 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4174 # The file is in a subdirectory.
4175 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4176 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4177 # A "../" for each directory in $ac_dir_suffix.
4178 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4180 ac_dir_suffix
= ac_dots
=
4183 case "$ac_given_srcdir" in
4185 if test -z "$ac_dots"; then top_srcdir
=.
4186 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4187 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4189 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4190 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4193 case "$ac_given_INSTALL" in
4194 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4195 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4198 echo creating
"$ac_file"
4200 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4202 *Makefile
*) ac_comsub
="1i\\
4203 # $configure_input" ;;
4207 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4209 s%@configure_input@%$configure_input%g
4210 s%@srcdir@%$srcdir%g
4211 s%@top_srcdir@%$top_srcdir%g
4212 s%@INSTALL@%$INSTALL%g
4213 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4220 # ac_d sets the value in "#define NAME VALUE" lines.
4221 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4222 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4225 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4226 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4227 ac_uB
='\([ ]\)%\1#\2define\3'
4230 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4231 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4232 ac_eB
='$%\1#\2define\3'
4236 if test "${CONFIG_HEADERS+set}" != set; then
4238 cat >> $CONFIG_STATUS <<EOF
4239 CONFIG_HEADERS="config.h:config.in"
4241 cat >> $CONFIG_STATUS <<\EOF
4243 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4246 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4247 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4248 *) ac_file_in
="${ac_file}.in" ;;
4251 echo creating
$ac_file
4253 rm -f conftest.frag conftest.
in conftest.out
4254 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4255 cat $ac_file_inputs > conftest.
in
4259 # Transform confdefs.h into a sed script conftest.vals that substitutes
4260 # the proper values into config.h.in to produce config.h. And first:
4261 # Protect against being on the right side of a sed subst in config.status.
4262 # Protect against being in an unquoted here document in config.status.
4264 cat > conftest.hdr
<<\EOF
4267 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4271 sed -n -f conftest.hdr confdefs.h > conftest.vals
4274 # This sed command replaces #undef with comments. This is necessary, for
4275 # example, in the case of _POSIX_SOURCE, which is predefined and required
4276 # on some systems where configure will not decide to define it.
4277 cat >> conftest.vals <<\EOF
4278 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4281 # Break up conftest.vals because some shells have a limit on
4282 # the size of here documents, and old seds have small limits too.
4287 ac_lines=`grep -c . conftest.vals
`
4288 # grep -c gives empty output for an empty file on some AIX systems.
4289 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4290 # Write a limited-size here document to conftest.frag.
4291 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4292 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4294 sed -f conftest.frag conftest.in > conftest.out
4296 mv conftest.out conftest.in
4298 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4300 mv conftest.tail conftest.vals
4304 cat >> $CONFIG_STATUS <<\EOF
4305 rm -f conftest.frag conftest.h
4306 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4307 cat conftest.in >> conftest.h
4309 if cmp -s $ac_file conftest.h 2>/dev/null; then
4310 echo "$ac_file is unchanged"
4313 # Remove last slash and all that follows it. Not all systems have dirname.
4314 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4315 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4316 # The file is in a subdirectory.
4317 test ! -d "$ac_dir" && mkdir "$ac_dir"
4320 mv conftest.h $ac_file
4325 cat >> $CONFIG_STATUS <<EOF
4329 cat >> $CONFIG_STATUS <<\EOF
4330 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4331 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4334 chmod +x $CONFIG_STATUS
4335 rm -fr confdefs* $ac_clean_files
4336 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1