3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --with-lib-path=dir1:dir2... set default LIB_PATH"
29 --enable-targets alternative target configurations"
31 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
33 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
35 --enable-build-warnings enable build-time compiler warnings if gcc is used"
37 --disable-nls do not use Native Language Support"
39 --with-included-gettext use the GNU gettext library included here"
41 --enable-maintainer-mode enable make rules and dependencies not useful
42 (and sometimes confusing) to the casual installer"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
65 bindir
='${exec_prefix}/bin'
66 sbindir
='${exec_prefix}/sbin'
67 libexecdir
='${exec_prefix}/libexec'
68 datadir
='${prefix}/share'
69 sysconfdir
='${prefix}/etc'
70 sharedstatedir
='${prefix}/com'
71 localstatedir
='${prefix}/var'
72 libdir
='${exec_prefix}/lib'
73 includedir
='${prefix}/include'
74 oldincludedir
='/usr/include'
75 infodir
='${prefix}/info'
76 mandir
='${prefix}/man'
78 # Initialize some other variables.
81 SHELL
=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
108 bindir
="$ac_optarg" ;;
110 -build |
--build |
--buil |
--bui |
--bu)
112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
113 build
="$ac_optarg" ;;
115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
117 ac_prev
=cache_file
;;
118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
120 cache_file
="$ac_optarg" ;;
122 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
124 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
126 datadir
="$ac_optarg" ;;
128 -disable-* |
--disable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* |
--enable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
152 |
--exec |
--exe |
--ex)
153 ac_prev
=exec_prefix
;;
154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
156 |
--exec=* |
--exe=* |
--ex=*)
157 exec_prefix
="$ac_optarg" ;;
159 -gas |
--gas |
--ga |
--g)
160 # Obsolete; use --with-gas.
163 -help |
--help |
--hel |
--he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host |
--host |
--hos |
--ho)
220 -host=* |
--host=* |
--hos=* |
--ho=*)
223 -includedir |
--includedir |
--includedi |
--included |
--include \
224 |
--includ |
--inclu |
--incl |
--inc)
225 ac_prev
=includedir
;;
226 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
227 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
228 includedir
="$ac_optarg" ;;
230 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
232 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
233 infodir
="$ac_optarg" ;;
235 -libdir |
--libdir |
--libdi |
--libd)
237 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
238 libdir
="$ac_optarg" ;;
240 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
241 |
--libexe |
--libex |
--libe)
242 ac_prev
=libexecdir
;;
243 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
244 |
--libexe=* |
--libex=* |
--libe=*)
245 libexecdir
="$ac_optarg" ;;
247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
248 |
--localstate |
--localstat |
--localsta |
--localst \
249 |
--locals |
--local |
--loca |
--loc |
--lo)
250 ac_prev
=localstatedir
;;
251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
253 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
254 localstatedir
="$ac_optarg" ;;
256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
259 mandir
="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
275 |
--oldin |
--oldi |
--old |
--ol |
--o)
276 ac_prev
=oldincludedir
;;
277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
280 oldincludedir
="$ac_optarg" ;;
282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
285 prefix
="$ac_optarg" ;;
287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
288 |
--program-pre |
--program-pr |
--program-p)
289 ac_prev
=program_prefix
;;
290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
292 program_prefix
="$ac_optarg" ;;
294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
295 |
--program-suf |
--program-su |
--program-s)
296 ac_prev
=program_suffix
;;
297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
299 program_suffix
="$ac_optarg" ;;
301 -program-transform-name |
--program-transform-name \
302 |
--program-transform-nam |
--program-transform-na \
303 |
--program-transform-n |
--program-transform- \
304 |
--program-transform |
--program-transfor \
305 |
--program-transfo |
--program-transf \
306 |
--program-trans |
--program-tran \
307 |
--progr-tra |
--program-tr |
--program-t)
308 ac_prev
=program_transform_name
;;
309 -program-transform-name=* |
--program-transform-name=* \
310 |
--program-transform-nam=* |
--program-transform-na=* \
311 |
--program-transform-n=* |
--program-transform-=* \
312 |
--program-transform=* |
--program-transfor=* \
313 |
--program-transfo=* |
--program-transf=* \
314 |
--program-trans=* |
--program-tran=* \
315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
316 program_transform_name
="$ac_optarg" ;;
318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
319 |
-silent |
--silent |
--silen |
--sile |
--sil)
322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
326 sbindir
="$ac_optarg" ;;
328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
332 ac_prev
=sharedstatedir
;;
333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
337 sharedstatedir
="$ac_optarg" ;;
339 -site |
--site |
--sit)
341 -site=* |
--site=* |
--sit=*)
344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
347 srcdir
="$ac_optarg" ;;
349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
351 ac_prev
=sysconfdir
;;
352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
354 sysconfdir
="$ac_optarg" ;;
356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
359 target
="$ac_optarg" ;;
361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
364 -version |
--version |
--versio |
--versi |
--vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* |
--without-*)
382 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
396 ac_prev
=x_includes
;;
397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
399 x_includes
="$ac_optarg" ;;
401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
403 ac_prev
=x_libraries
;;
404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
406 x_libraries
="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE
; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
457 |
--no-cr |
--no-c) ;;
458 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
459 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
460 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest
* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file
=ldmain.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted
=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted
=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file
in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp
='$CPP $CPPFLAGS'
534 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling
=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
549 ac_n
= ac_c
='\c' ac_t
=
552 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
553 echo "configure:554: checking for Cygwin environment" >&5
554 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 cat > conftest.
$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
564 #define __CYGWIN__ __CYGWIN32__
569 if { (eval echo configure
:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
573 echo "configure: failed program was:" >&5
574 cat conftest.
$ac_ext >&5
582 echo "$ac_t""$ac_cv_cygwin" 1>&6
584 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
585 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
586 echo "configure:587: checking for mingw32 environment" >&5
587 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 cat > conftest.
$ac_ext <<EOF
591 #line 592 "configure"
592 #include "confdefs.h"
598 if { (eval echo configure
:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
602 echo "configure: failed program was:" >&5
603 cat conftest.
$ac_ext >&5
611 echo "$ac_t""$ac_cv_mingw32" 1>&6
613 test "$ac_cv_mingw32" = yes && MINGW32
=yes
617 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
618 if test -f $ac_dir/install-sh
; then
620 ac_install_sh
="$ac_aux_dir/install-sh -c"
622 elif test -f $ac_dir/install.sh
; then
624 ac_install_sh
="$ac_aux_dir/install.sh -c"
628 if test -z "$ac_aux_dir"; then
629 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631 ac_config_guess
=$ac_aux_dir/config.guess
632 ac_config_sub
=$ac_aux_dir/config.sub
633 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
636 # Do some error checking and defaulting for the host and target type.
638 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
641 # 1. You are not allowed to specify --host, --target, and nonopt at the
643 # 2. Host defaults to nonopt.
644 # 3. If nonopt is not specified, then host defaults to the current host,
645 # as determined by config.guess.
646 # 4. Target and build default to nonopt.
647 # 5. If nonopt is not specified, then target and build default to host.
649 # The aliases save the names the user supplied, while $host etc.
650 # will get canonicalized.
651 case $host---$target---$nonopt in
652 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
653 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
657 # Make sure we can run config.sub.
658 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
666 case "$host_alias" in
670 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
671 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
673 *) host_alias
=$nonopt ;;
677 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
678 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
679 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
680 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
681 echo "$ac_t""$host" 1>&6
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
687 case "$target_alias" in
690 NONE
) target_alias
=$host_alias ;;
691 *) target_alias
=$nonopt ;;
695 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
696 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$target" 1>&6
701 echo $ac_n "checking build system type""... $ac_c" 1>&6
702 echo "configure:703: checking build system type" >&5
705 case "$build_alias" in
708 NONE
) build_alias
=$host_alias ;;
709 *) build_alias
=$nonopt ;;
713 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
714 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$build" 1>&6
719 test "$host_alias" != "$target_alias" &&
720 test "$program_prefix$program_suffix$program_transform_name" = \
722 program_prefix
=${target_alias}-
725 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
726 echo "configure:727: checking for strerror in -lcposix" >&5
727 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
732 LIBS
="-lcposix $LIBS"
733 cat > conftest.
$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
736 /* Override any gcc2 internal prototype to avoid an error. */
737 /* We use char because int might match the return type of a gcc2
738 builtin and then its argument prototype would still apply. */
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
747 eval "ac_cv_lib_$ac_lib_var=yes"
749 echo "configure: failed program was:" >&5
750 cat conftest.
$ac_ext >&5
752 eval "ac_cv_lib_$ac_lib_var=no"
758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
759 echo "$ac_t""yes" 1>&6
760 LIBS
="$LIBS -lcposix"
762 echo "$ac_t""no" 1>&6
768 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
769 am__api_version
="1.4"
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
780 # ./install, which can be erroneously created by make from ./install.sh.
781 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
782 echo "configure:783: checking for a BSD compatible install" >&5
783 if test -z "$INSTALL"; then
784 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
788 for ac_dir
in $PATH; do
789 # Account for people who put trailing slashes in PATH elements.
791 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
793 # OSF1 and SCO ODT 3.0 have their own names for install.
794 # Don't use installbsd from OSF since it installs stuff as root
796 for ac_prog
in ginstall scoinst
install; do
797 if test -f $ac_dir/$ac_prog; then
798 if test $ac_prog = install &&
799 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
800 # AIX install. It has an incompatible calling convention.
803 ac_cv_path_install
="$ac_dir/$ac_prog -c"
814 if test "${ac_cv_path_install+set}" = set; then
815 INSTALL
="$ac_cv_path_install"
817 # As a last resort, use the slow shell script. We don't cache a
818 # path for INSTALL within a source directory, because that will
819 # break other packages using the cache if that directory is
820 # removed, or if the path is relative.
821 INSTALL
="$ac_install_sh"
824 echo "$ac_t""$INSTALL" 1>&6
826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
827 # It thinks the first close brace ends the variable substitution.
828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
832 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
834 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
835 echo "configure:836: checking whether build environment is sane" >&5
838 echo timestamp
> conftestfile
839 # Do `set' in a subshell so we don't clobber the current shell's
840 # arguments. Must try -L first in case configure is actually a
841 # symlink; some systems play weird games with the mod time of symlinks
842 # (eg FreeBSD returns the mod time of the symlink's containing
845 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
846 if test "$*" = "X"; then
848 set X
`ls -t $srcdir/configure conftestfile`
850 if test "$*" != "X $srcdir/configure conftestfile" \
851 && test "$*" != "X conftestfile $srcdir/configure"; then
853 # If neither matched, then we have a broken ls. This can happen
854 # if, for instance, CONFIG_SHELL is bash and it inherits a
855 # broken ls alias from the environment. This has actually
856 # happened. Such a system could not be considered "sane".
857 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
858 alias in your environment" 1>&2; exit 1; }
861 test "$2" = conftestfile
867 { echo "configure: error: newly created file is older than distributed files!
868 Check your system clock" 1>&2; exit 1; }
871 echo "$ac_t""yes" 1>&6
872 if test "$program_transform_name" = s
,x
,x
,; then
873 program_transform_name
=
875 # Double any \ or $. echo might interpret backslashes.
876 cat <<\EOF_SED
> conftestsed
877 s
,\\,\\\\,g
; s
,\$
,$$
,g
879 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
882 test "$program_prefix" != NONE
&&
883 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
884 # Use a double $ so make ignores it.
885 test "$program_suffix" != NONE
&&
886 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
888 # sed with no file args requires a program.
889 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
891 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
892 echo "configure:893: checking whether ${MAKE-make} sets \${MAKE}" >&5
893 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
894 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 cat > conftestmake
<<\EOF
899 @
echo 'ac_maketemp="${MAKE}"'
901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
902 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
903 if test -n "$ac_maketemp"; then
904 eval ac_cv_prog_make_
${ac_make}_set
=yes
906 eval ac_cv_prog_make_
${ac_make}_set
=no
910 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
911 echo "$ac_t""yes" 1>&6
914 echo "$ac_t""no" 1>&6
915 SET_MAKE
="MAKE=${MAKE-make}"
921 VERSION
=${BFD_VERSION}
923 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
924 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
926 cat >> confdefs.h
<<EOF
927 #define PACKAGE "$PACKAGE"
930 cat >> confdefs.h
<<EOF
931 #define VERSION "$VERSION"
936 missing_dir
=`cd $ac_aux_dir && pwd`
937 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
938 echo "configure:939: checking for working aclocal-${am__api_version}" >&5
939 # Run test in a subshell; some versions of sh will print an error if
940 # an executable is not found, even if stderr is redirected.
941 # Redirect stdin to placate older versions of autoconf. Sigh.
942 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
943 ACLOCAL
=aclocal-
${am__api_version}
944 echo "$ac_t""found" 1>&6
946 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
947 echo "$ac_t""missing" 1>&6
950 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
951 echo "configure:952: checking for working autoconf" >&5
952 # Run test in a subshell; some versions of sh will print an error if
953 # an executable is not found, even if stderr is redirected.
954 # Redirect stdin to placate older versions of autoconf. Sigh.
955 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
957 echo "$ac_t""found" 1>&6
959 AUTOCONF
="$missing_dir/missing autoconf"
960 echo "$ac_t""missing" 1>&6
963 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
964 echo "configure:965: checking for working automake-${am__api_version}" >&5
965 # Run test in a subshell; some versions of sh will print an error if
966 # an executable is not found, even if stderr is redirected.
967 # Redirect stdin to placate older versions of autoconf. Sigh.
968 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
969 AUTOMAKE
=automake-
${am__api_version}
970 echo "$ac_t""found" 1>&6
972 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
973 echo "$ac_t""missing" 1>&6
976 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
977 echo "configure:978: checking for working autoheader" >&5
978 # Run test in a subshell; some versions of sh will print an error if
979 # an executable is not found, even if stderr is redirected.
980 # Redirect stdin to placate older versions of autoconf. Sigh.
981 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
982 AUTOHEADER
=autoheader
983 echo "$ac_t""found" 1>&6
985 AUTOHEADER
="$missing_dir/missing autoheader"
986 echo "$ac_t""missing" 1>&6
989 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
990 echo "configure:991: checking for working makeinfo" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
996 echo "$ac_t""found" 1>&6
998 MAKEINFO
="$missing_dir/missing makeinfo"
999 echo "$ac_t""missing" 1>&6
1004 # Check whether --enable-shared or --disable-shared was given.
1005 if test "${enable_shared+set}" = set; then
1006 enableval
="$enable_shared"
1007 p
=${PACKAGE-default}
1009 yes) enable_shared
=yes ;;
1010 no
) enable_shared
=no
;;
1013 # Look at the argument we got. We use all the common list separators.
1014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1015 for pkg
in $enableval; do
1016 if test "X$pkg" = "X$p"; then
1027 # Check whether --enable-static or --disable-static was given.
1028 if test "${enable_static+set}" = set; then
1029 enableval
="$enable_static"
1030 p
=${PACKAGE-default}
1032 yes) enable_static
=yes ;;
1033 no
) enable_static
=no
;;
1036 # Look at the argument we got. We use all the common list separators.
1037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1038 for pkg
in $enableval; do
1039 if test "X$pkg" = "X$p"; then
1050 # Check whether --enable-fast-install or --disable-fast-install was given.
1051 if test "${enable_fast_install+set}" = set; then
1052 enableval
="$enable_fast_install"
1053 p
=${PACKAGE-default}
1055 yes) enable_fast_install
=yes ;;
1056 no
) enable_fast_install
=no
;;
1058 enable_fast_install
=no
1059 # Look at the argument we got. We use all the common list separators.
1060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1061 for pkg
in $enableval; do
1062 if test "X$pkg" = "X$p"; then
1063 enable_fast_install
=yes
1070 enable_fast_install
=yes
1073 # Extract the first word of "gcc", so it can be a program name with args.
1074 set dummy gcc
; ac_word
=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC
="$CC" # Let the user override the test.
1083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1085 for ac_dir
in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir
=.
1087 if test -f $ac_dir/$ac_word; then
1096 if test -n "$CC"; then
1097 echo "$ac_t""$CC" 1>&6
1099 echo "$ac_t""no" 1>&6
1102 if test -z "$CC"; then
1103 # Extract the first word of "cc", so it can be a program name with args.
1104 set dummy cc
; ac_word
=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC
="$CC" # Let the user override the test.
1113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1116 for ac_dir
in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir
=.
1118 if test -f $ac_dir/$ac_word; then
1119 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1120 ac_prog_rejected
=yes
1128 if test $ac_prog_rejected = yes; then
1129 # We found a bogon in the path, so make sure we never use it.
1130 set dummy
$ac_cv_prog_CC
1132 if test $# -gt 0; then
1133 # We chose a different compiler from the bogus one.
1134 # However, it has the same basename, so the bogon will be chosen
1135 # first if we set CC to just the basename; use the full file name.
1137 set dummy
"$ac_dir/$ac_word" "$@"
1145 if test -n "$CC"; then
1146 echo "$ac_t""$CC" 1>&6
1148 echo "$ac_t""no" 1>&6
1151 if test -z "$CC"; then
1152 case "`uname -s`" in
1154 # Extract the first word of "cl", so it can be a program name with args.
1155 set dummy cl
; ac_word
=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$CC"; then
1162 ac_cv_prog_CC
="$CC" # Let the user override the test.
1164 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1166 for ac_dir
in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir
=.
1168 if test -f $ac_dir/$ac_word; then
1177 if test -n "$CC"; then
1178 echo "$ac_t""$CC" 1>&6
1180 echo "$ac_t""no" 1>&6
1185 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1193 ac_cpp
='$CPP $CPPFLAGS'
1194 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1195 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1196 cross_compiling
=$ac_cv_prog_cc_cross
1198 cat > conftest.
$ac_ext << EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1205 if { (eval echo configure
:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1206 ac_cv_prog_cc_works
=yes
1207 # If we can't run a trivial program, we are probably using a cross compiler.
1208 if (.
/conftest
; exit) 2>/dev
/null
; then
1209 ac_cv_prog_cc_cross
=no
1211 ac_cv_prog_cc_cross
=yes
1214 echo "configure: failed program was:" >&5
1215 cat conftest.
$ac_ext >&5
1216 ac_cv_prog_cc_works
=no
1220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1221 ac_cpp
='$CPP $CPPFLAGS'
1222 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1223 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1224 cross_compiling
=$ac_cv_prog_cc_cross
1226 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1227 if test $ac_cv_prog_cc_works = no
; then
1228 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1230 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1232 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1233 cross_compiling
=$ac_cv_prog_cc_cross
1235 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether we are using GNU C" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.c
<<EOF
1245 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1252 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1254 if test $ac_cv_prog_gcc = yes; then
1260 ac_test_CFLAGS
="${CFLAGS+set}"
1261 ac_save_CFLAGS
="$CFLAGS"
1263 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1264 echo "configure:1265: checking whether ${CC-cc} accepts -g" >&5
1265 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 echo 'void f(){}' > conftest.c
1269 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1278 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1279 if test "$ac_test_CFLAGS" = set; then
1280 CFLAGS
="$ac_save_CFLAGS"
1281 elif test $ac_cv_prog_cc_g = yes; then
1282 if test "$GCC" = yes; then
1288 if test "$GCC" = yes; then
1295 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1296 if test "${with_gnu_ld+set}" = set; then
1297 withval
="$with_gnu_ld"
1298 test "$withval" = no || with_gnu_ld
=yes
1304 if test "$GCC" = yes; then
1305 # Check if gcc -print-prog-name=ld gives a path.
1306 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1307 echo "configure:1308: checking for ld used by GCC" >&5
1310 # gcc leaves a trailing carriage return which upsets mingw
1311 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1313 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1316 # Accept absolute paths.
1317 [\\/]* |
[A-Za-z
]:[\\/]*)
1318 re_direlt
='/[^/][^/]*/\.\./'
1319 # Canonicalize the path of ld
1320 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1321 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1322 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1324 test -z "$LD" && LD
="$ac_prog"
1327 # If it fails, then pretend we aren't using GCC.
1331 # If it is relative, then search for the first ld in PATH.
1335 elif test "$with_gnu_ld" = yes; then
1336 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1337 echo "configure:1338: checking for GNU ld" >&5
1339 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1340 echo "configure:1341: checking for non-GNU ld" >&5
1342 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 if test -z "$LD"; then
1346 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1347 for ac_dir
in $PATH; do
1348 test -z "$ac_dir" && ac_dir
=.
1349 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1350 lt_cv_path_LD
="$ac_dir/$ac_prog"
1351 # Check to see if the program is GNU ld. I'd rather use --version,
1352 # but apparently some GNU ld's only accept -v.
1353 # Break only if it was the GNU/non-GNU ld that we prefer.
1354 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1355 test "$with_gnu_ld" != no
&& break
1357 test "$with_gnu_ld" != yes && break
1363 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1368 if test -n "$LD"; then
1369 echo "$ac_t""$LD" 1>&6
1371 echo "$ac_t""no" 1>&6
1373 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1374 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1375 echo "configure:1376: checking if the linker ($LD) is GNU ld" >&5
1376 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1380 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1381 lt_cv_prog_gnu_ld
=yes
1383 lt_cv_prog_gnu_ld
=no
1387 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1388 with_gnu_ld
=$lt_cv_prog_gnu_ld
1391 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $LD option to reload object files" >&5
1393 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 lt_cv_ld_reload_flag
='-r'
1399 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1400 reload_flag
=$lt_cv_ld_reload_flag
1401 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1403 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1404 echo "configure:1405: checking for BSD-compatible nm" >&5
1405 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 if test -n "$NM"; then
1409 # Let the user override the test.
1412 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1413 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1414 test -z "$ac_dir" && ac_dir
=.
1415 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1416 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1417 # Check to see if the nm accepts a BSD-compat flag.
1418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1419 # nm: unknown option "B" ignored
1420 # Tru64's nm complains that /dev/null is an invalid object file
1421 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1422 lt_cv_path_NM
="$tmp_nm -B"
1424 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1425 lt_cv_path_NM
="$tmp_nm -p"
1428 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1429 continue # so that we can try to find one that supports BSD flags
1434 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1439 echo "$ac_t""$NM" 1>&6
1441 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether ln -s works" >&5
1443 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1447 if ln -s X conftestdata
2>/dev
/null
1450 ac_cv_prog_LN_S
="ln -s"
1455 LN_S
="$ac_cv_prog_LN_S"
1456 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1457 echo "$ac_t""yes" 1>&6
1459 echo "$ac_t""no" 1>&6
1462 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1463 echo "configure:1464: checking how to recognise dependant libraries" >&5
1464 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1468 lt_cv_file_magic_test_file
=
1469 lt_cv_deplibs_check_method
='unknown'
1470 # Need to set the preceding variable on all platforms that support
1471 # interlibrary dependencies.
1472 # 'none' -- dependencies not supported.
1473 # `unknown' -- same as none, but documents that we really don't know.
1474 # 'pass_all' -- all dependencies passed with no checks.
1475 # 'test_compile' -- check by making test program.
1476 # 'file_magic [regex]' -- check by looking for files in library path
1477 # which responds to the $file_magic_cmd with a given egrep regex.
1478 # If you have `file' or equivalent on your system and you're not sure
1479 # whether `pass_all' will *always* work, you probably want this one.
1483 lt_cv_deplibs_check_method
=pass_all
1487 lt_cv_deplibs_check_method
=pass_all
1491 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1492 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1493 lt_cv_file_magic_test_file
=/shlib
/libc.so
1496 cygwin
* | mingw
* |pw32
*)
1497 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1498 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1501 darwin
* | rhapsody
*)
1502 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1503 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1505 rhapsody
* | darwin1.012
)
1506 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1509 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1514 freebsd
* | kfreebsd
*-gnu)
1515 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1518 # Not sure whether the presence of OpenBSD here was a mistake.
1519 # Let's accept both of them until this is cleared up.
1520 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1521 lt_cv_file_magic_cmd
=/usr
/bin
/file
1522 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1526 lt_cv_deplibs_check_method
=pass_all
1531 lt_cv_deplibs_check_method
=pass_all
1537 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1538 lt_cv_file_magic_cmd
=/usr
/bin
/file
1539 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1542 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1543 lt_cv_file_magic_cmd
=/usr
/bin
/file
1544 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1552 # this will be overridden with pass_all, but let us keep it just in case
1553 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1557 *-32|
*"-32 ") libmagic
=32-bit;;
1558 *-n32|
*"-n32 ") libmagic
=N32
;;
1559 *-64|
*"-64 ") libmagic
=64-bit;;
1560 *) libmagic
=never-match
;;
1562 # this will be overridden with pass_all, but let us keep it just in case
1563 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1566 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1567 lt_cv_deplibs_check_method
=pass_all
1570 # This must be Linux ELF.
1573 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1574 lt_cv_deplibs_check_method
=pass_all
;;
1576 # glibc up to 2.1.1 does not perform some relocations on ARM
1577 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1579 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1582 netbsd
* | knetbsd
*-gnu)
1583 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1584 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1586 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1591 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1592 lt_cv_file_magic_cmd
=/usr
/bin
/file
1593 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1596 osf3
* | osf4
* | osf5
*)
1597 # this will be overridden with pass_all, but let us keep it just in case
1598 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1599 lt_cv_file_magic_test_file
=/shlib
/libc.so
1600 lt_cv_deplibs_check_method
=pass_all
1604 lt_cv_deplibs_check_method
=pass_all
1608 lt_cv_deplibs_check_method
=pass_all
1609 lt_cv_file_magic_test_file
=/lib
/libc.so
1612 sysv5uw
[78]* | sysv4
*uw2
*)
1613 lt_cv_deplibs_check_method
=pass_all
1616 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1617 case $host_vendor in
1619 lt_cv_deplibs_check_method
=pass_all
1622 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1623 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1631 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1632 file_magic_cmd
=$lt_cv_file_magic_cmd
1633 deplibs_check_method
=$lt_cv_deplibs_check_method
1635 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1636 echo "configure:1637: checking for object suffix" >&5
1637 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1641 echo 'int i = 1;' > conftest.
$ac_ext
1642 if { (eval echo configure
:1643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 for ac_file
in conftest.
*; do
1646 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1650 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1655 echo "$ac_t""$ac_cv_objext" 1>&6
1656 OBJEXT
=$ac_cv_objext
1657 ac_objext
=$ac_cv_objext
1661 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1662 echo "configure:1663: checking for executable suffix" >&5
1663 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1670 echo 'int main () { return 0; }' > conftest.
$ac_ext
1672 if { (eval echo configure
:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1673 for file in conftest.
*; do
1675 *.c |
*.o |
*.obj
) ;;
1676 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1680 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1683 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1688 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1689 echo "$ac_t""${ac_cv_exeext}" 1>&6
1692 if test $host != $build; then
1693 ac_tool_prefix
=${host_alias}-
1698 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1700 # Only perform the check for file, if the check method requires it
1701 case $deplibs_check_method in
1703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1704 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1705 echo "configure:1706: checking for ${ac_tool_prefix}file" >&5
1706 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1711 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1714 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1717 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1719 ac_dummy
="/usr/bin:$PATH"
1720 for ac_dir
in $ac_dummy; do
1721 test -z "$ac_dir" && ac_dir
=.
1722 if test -f $ac_dir/${ac_tool_prefix}file; then
1723 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1724 if test -n "$file_magic_test_file"; then
1725 case $deplibs_check_method in
1727 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1728 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1729 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1730 egrep "$file_magic_regex" > /dev
/null
; then
1735 *** Warning: the command libtool uses to detect shared libraries,
1736 *** $file_magic_cmd, produces output that libtool cannot recognize.
1737 *** The result is that libtool may fail to recognize shared libraries
1738 *** as such. This will affect the creation of libtool libraries that
1739 *** depend on shared libraries, but programs linked with such libtool
1740 *** libraries will work regardless of this problem. Nevertheless, you
1741 *** may want to report the problem to your system manager and/or to
1742 *** bug-libtool@gnu.org
1752 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1757 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1758 if test -n "$MAGIC_CMD"; then
1759 echo "$ac_t""$MAGIC_CMD" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 if test -z "$lt_cv_path_MAGIC_CMD"; then
1765 if test -n "$ac_tool_prefix"; then
1766 echo $ac_n "checking for file""... $ac_c" 1>&6
1767 echo "configure:1768: checking for file" >&5
1768 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1776 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1779 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1780 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1781 ac_dummy
="/usr/bin:$PATH"
1782 for ac_dir
in $ac_dummy; do
1783 test -z "$ac_dir" && ac_dir
=.
1784 if test -f $ac_dir/file; then
1785 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1786 if test -n "$file_magic_test_file"; then
1787 case $deplibs_check_method in
1789 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1790 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1791 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1792 egrep "$file_magic_regex" > /dev
/null
; then
1797 *** Warning: the command libtool uses to detect shared libraries,
1798 *** $file_magic_cmd, produces output that libtool cannot recognize.
1799 *** The result is that libtool may fail to recognize shared libraries
1800 *** as such. This will affect the creation of libtool libraries that
1801 *** depend on shared libraries, but programs linked with such libtool
1802 *** libraries will work regardless of this problem. Nevertheless, you
1803 *** may want to report the problem to your system manager and/or to
1804 *** bug-libtool@gnu.org
1814 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1819 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1820 if test -n "$MAGIC_CMD"; then
1821 echo "$ac_t""$MAGIC_CMD" 1>&6
1823 echo "$ac_t""no" 1>&6
1835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1836 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1839 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 if test -n "$RANLIB"; then
1843 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1847 for ac_dir
in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir
=.
1849 if test -f $ac_dir/$ac_word; then
1850 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1857 RANLIB
="$ac_cv_prog_RANLIB"
1858 if test -n "$RANLIB"; then
1859 echo "$ac_t""$RANLIB" 1>&6
1861 echo "$ac_t""no" 1>&6
1865 if test -z "$ac_cv_prog_RANLIB"; then
1866 if test -n "$ac_tool_prefix"; then
1867 # Extract the first word of "ranlib", so it can be a program name with args.
1868 set dummy ranlib
; ac_word
=$2
1869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_word" >&5
1871 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 if test -n "$RANLIB"; then
1875 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1879 for ac_dir
in $ac_dummy; do
1880 test -z "$ac_dir" && ac_dir
=.
1881 if test -f $ac_dir/$ac_word; then
1882 ac_cv_prog_RANLIB
="ranlib"
1887 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1890 RANLIB
="$ac_cv_prog_RANLIB"
1891 if test -n "$RANLIB"; then
1892 echo "$ac_t""$RANLIB" 1>&6
1894 echo "$ac_t""no" 1>&6
1902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1903 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 if test -n "$STRIP"; then
1910 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1914 for ac_dir
in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir
=.
1916 if test -f $ac_dir/$ac_word; then
1917 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1924 STRIP
="$ac_cv_prog_STRIP"
1925 if test -n "$STRIP"; then
1926 echo "$ac_t""$STRIP" 1>&6
1928 echo "$ac_t""no" 1>&6
1932 if test -z "$ac_cv_prog_STRIP"; then
1933 if test -n "$ac_tool_prefix"; then
1934 # Extract the first word of "strip", so it can be a program name with args.
1935 set dummy strip
; ac_word
=$2
1936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_word" >&5
1938 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 if test -n "$STRIP"; then
1942 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1944 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1946 for ac_dir
in $ac_dummy; do
1947 test -z "$ac_dir" && ac_dir
=.
1948 if test -f $ac_dir/$ac_word; then
1949 ac_cv_prog_STRIP
="strip"
1954 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1957 STRIP
="$ac_cv_prog_STRIP"
1958 if test -n "$STRIP"; then
1959 echo "$ac_t""$STRIP" 1>&6
1961 echo "$ac_t""no" 1>&6
1970 # Check for any special flags to pass to ltconfig.
1971 libtool_flags
="--cache-file=$cache_file"
1972 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1973 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1974 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1975 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1976 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1979 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1980 if test "${enable_libtool_lock+set}" = set; then
1981 enableval
="$enable_libtool_lock"
1985 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1986 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1988 # Check whether --with-pic or --without-pic was given.
1989 if test "${with_pic+set}" = set; then
1996 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1997 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1999 # Some flags need to be propagated to the compiler or linker for good
2003 # Find out which ABI we are using.
2004 echo '#line 2005 "configure"' > conftest.
$ac_ext
2005 if { (eval echo configure
:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2006 if test "$lt_cv_prog_gnu_ld" = yes; then
2007 case `/usr/bin/file conftest.$ac_objext` in
2009 LD
="${LD-ld} -melf32bsmip"
2012 LD
="${LD-ld} -melf32bmipn32"
2015 LD
="${LD-ld} -melf64bmip"
2019 case `/usr/bin/file conftest.$ac_objext` in
2036 # Find out which ABI we are using.
2037 echo 'int i;' > conftest.
$ac_ext
2038 if { (eval echo configure
:2039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2039 case "`/usr/bin/file conftest.o`" in
2052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2053 SAVE_CFLAGS
="$CFLAGS"
2054 CFLAGS
="$CFLAGS -belf"
2055 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether the C compiler needs -belf" >&5
2057 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2063 ac_cpp
='$CPP $CPPFLAGS'
2064 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2065 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2066 cross_compiling
=$ac_cv_prog_cc_cross
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2076 if { (eval echo configure
:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2078 lt_cv_cc_needs_belf
=yes
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 lt_cv_cc_needs_belf
=no
2087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2088 ac_cpp
='$CPP $CPPFLAGS'
2089 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2090 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2091 cross_compiling
=$ac_cv_prog_cc_cross
2095 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2096 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2098 CFLAGS
="$SAVE_CFLAGS"
2106 # Save cache, so that ltconfig can load it
2107 cat > confcache
<<\EOF
2108 # This file is a shell script that caches the results of configure
2109 # tests run on this system so they can be shared between configure
2110 # scripts and configure runs. It is not useful on other systems.
2111 # If it contains results you don't want to keep, you may remove or edit it.
2113 # By default, configure uses ./config.cache as the cache file,
2114 # creating it if it does not exist already. You can give configure
2115 # the --cache-file=FILE option to use a different cache file; that is
2116 # what configure does when it calls configure scripts in
2117 # subdirectories, so they share the cache.
2118 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2119 # config.status only pays attention to the cache file if you give it the
2120 # --recheck option to rerun configure.
2123 # The following way of writing the cache mishandles newlines in values,
2124 # but we know of no workaround that is simple, portable, and efficient.
2125 # So, don't put newlines in cache variables' values.
2126 # Ultrix sh set writes to stderr and can't be redirected directly,
2127 # and sets the high bit in the cache file unless we assign to the vars.
2129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2131 # `set' does not quote correctly, so add quotes (double-quote substitution
2132 # turns \\\\ into \\, and sed turns \\ into \).
2134 -e "s/'/'\\\\''/g" \
2135 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2138 # `set' quotes correctly as required by POSIX, so do not add quotes.
2139 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2142 if cmp -s $cache_file confcache
; then
2145 if test -w $cache_file; then
2146 echo "updating cache $cache_file"
2147 cat confcache
> $cache_file
2149 echo "not updating unwritable cache $cache_file"
2155 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2156 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2157 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2158 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2159 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2160 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2161 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2162 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2163 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2164 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2166 # Reload cache, that may have been modified by ltconfig
2167 if test -r "$cache_file"; then
2168 echo "loading cache $cache_file"
2171 echo "creating cache $cache_file"
2176 # This can be used to rebuild libtool when needed
2177 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2179 # Always use our own libtool.
2180 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2182 # Redirect the config.log output again, so that the ltconfig log is not
2183 # clobbered by the next message.
2184 exec 5>>.
/config.log
2192 # Check whether --with-lib-path or --without-lib-path was given.
2193 if test "${with_lib_path+set}" = set; then
2194 withval
="$with_lib_path"
2198 # Check whether --enable-targets or --disable-targets was given.
2199 if test "${enable_targets+set}" = set; then
2200 enableval
="$enable_targets"
2201 case "${enableval}" in
2202 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2204 no
) enable_targets
= ;;
2205 *) enable_targets
=$enableval ;;
2208 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2209 if test "${enable_64_bit_bfd+set}" = set; then
2210 enableval
="$enable_64_bit_bfd"
2211 case "${enableval}" in
2214 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2220 # Check whether --with-sysroot or --without-sysroot was given.
2221 if test "${with_sysroot+set}" = set; then
2222 withval
="$with_sysroot"
2224 case ${with_sysroot} in
2225 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
2226 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2229 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2232 if test "x$exec_prefix" = xNONE
; then
2233 if test "x$prefix" = xNONE
; then
2234 test_prefix
=/usr
/local
2239 test_prefix
=$exec_prefix
2241 case ${TARGET_SYSTEM_ROOT} in
2242 "${test_prefix}"|
"${test_prefix}/"*|\
2243 '${exec_prefix}'|
'${exec_prefix}/'*)
2244 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2245 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2253 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
2261 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2262 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2263 if test "${enable_build_warnings+set}" = set; then
2264 enableval
="$enable_build_warnings"
2265 case "${enableval}" in
2267 no
) build_warnings
="-w";;
2268 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2269 build_warnings
="${build_warnings} ${t}";;
2270 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2271 build_warnings
="${t} ${build_warnings}";;
2272 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2274 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2275 echo "Setting warning flags = $build_warnings" 6>&1
2279 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2280 WARN_CFLAGS
="${build_warnings}"
2288 if test -z "$target" ; then
2289 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2291 if test -z "$host" ; then
2292 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2295 # host-specific stuff:
2297 # Extract the first word of "gcc", so it can be a program name with args.
2298 set dummy gcc
; ac_word
=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC
="$CC" # Let the user override the test.
2307 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2309 for ac_dir
in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir
=.
2311 if test -f $ac_dir/$ac_word; then
2320 if test -n "$CC"; then
2321 echo "$ac_t""$CC" 1>&6
2323 echo "$ac_t""no" 1>&6
2326 if test -z "$CC"; then
2327 # Extract the first word of "cc", so it can be a program name with args.
2328 set dummy cc
; ac_word
=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC
="$CC" # Let the user override the test.
2337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2340 for ac_dir
in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2344 ac_prog_rejected
=yes
2352 if test $ac_prog_rejected = yes; then
2353 # We found a bogon in the path, so make sure we never use it.
2354 set dummy
$ac_cv_prog_CC
2356 if test $# -gt 0; then
2357 # We chose a different compiler from the bogus one.
2358 # However, it has the same basename, so the bogon will be chosen
2359 # first if we set CC to just the basename; use the full file name.
2361 set dummy
"$ac_dir/$ac_word" "$@"
2369 if test -n "$CC"; then
2370 echo "$ac_t""$CC" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 if test -z "$CC"; then
2376 case "`uname -s`" in
2378 # Extract the first word of "cl", so it can be a program name with args.
2379 set dummy cl
; ac_word
=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC
="$CC" # Let the user override the test.
2388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2390 for ac_dir
in $ac_dummy; do
2391 test -z "$ac_dir" && ac_dir
=.
2392 if test -f $ac_dir/$ac_word; then
2401 if test -n "$CC"; then
2402 echo "$ac_t""$CC" 1>&6
2404 echo "$ac_t""no" 1>&6
2409 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2412 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2413 echo "configure:2414: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp
='$CPP $CPPFLAGS'
2418 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling
=$ac_cv_prog_cc_cross
2422 cat > conftest.
$ac_ext << EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2429 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2430 ac_cv_prog_cc_works
=yes
2431 # If we can't run a trivial program, we are probably using a cross compiler.
2432 if (.
/conftest
; exit) 2>/dev
/null
; then
2433 ac_cv_prog_cc_cross
=no
2435 ac_cv_prog_cc_cross
=yes
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2440 ac_cv_prog_cc_works
=no
2444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2445 ac_cpp
='$CPP $CPPFLAGS'
2446 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2447 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2448 cross_compiling
=$ac_cv_prog_cc_cross
2450 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2451 if test $ac_cv_prog_cc_works = no
; then
2452 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2454 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2455 echo "configure:2456: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2456 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2457 cross_compiling
=$ac_cv_prog_cc_cross
2459 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2460 echo "configure:2461: checking whether we are using GNU C" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.c
<<EOF
2469 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2476 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2478 if test $ac_cv_prog_gcc = yes; then
2484 ac_test_CFLAGS
="${CFLAGS+set}"
2485 ac_save_CFLAGS
="$CFLAGS"
2487 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2488 echo "configure:2489: checking whether ${CC-cc} accepts -g" >&5
2489 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 echo 'void f(){}' > conftest.c
2493 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2502 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2503 if test "$ac_test_CFLAGS" = set; then
2504 CFLAGS
="$ac_save_CFLAGS"
2505 elif test $ac_cv_prog_cc_g = yes; then
2506 if test "$GCC" = yes; then
2512 if test "$GCC" = yes; then
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2531 echo "configure:2532: checking for a BSD compatible install" >&5
2532 if test -z "$INSTALL"; then
2533 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2537 for ac_dir
in $PATH; do
2538 # Account for people who put trailing slashes in PATH elements.
2540 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2542 # OSF1 and SCO ODT 3.0 have their own names for install.
2543 # Don't use installbsd from OSF since it installs stuff as root
2545 for ac_prog
in ginstall scoinst
install; do
2546 if test -f $ac_dir/$ac_prog; then
2547 if test $ac_prog = install &&
2548 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2549 # AIX install. It has an incompatible calling convention.
2552 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2563 if test "${ac_cv_path_install+set}" = set; then
2564 INSTALL
="$ac_cv_path_install"
2566 # As a last resort, use the slow shell script. We don't cache a
2567 # path for INSTALL within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the path is relative.
2570 INSTALL
="$ac_install_sh"
2573 echo "$ac_t""$INSTALL" 1>&6
2575 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2576 # It thinks the first close brace ends the variable substitution.
2577 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2579 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2581 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2584 ALL_LINGUAS
="fr sv tr es da"
2585 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2586 echo "configure:2587: checking how to run the C preprocessor" >&5
2587 # On Suns, sometimes $CPP names a directory.
2588 if test -n "$CPP" && test -d "$CPP"; then
2591 if test -z "$CPP"; then
2592 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 # This must be in double quotes, not single quotes, because CPP may get
2596 # substituted into the Makefile and "${CC-cc}" will confuse make.
2598 # On the NeXT, cc -E runs the code through the compiler's parser,
2599 # not just through cpp.
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2606 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2607 { (eval echo configure
:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2608 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2609 if test -z "$ac_err"; then
2613 echo "configure: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2616 CPP
="${CC-cc} -E -traditional-cpp"
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure
:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2626 if test -z "$ac_err"; then
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2633 CPP
="${CC-cc} -nologo -E"
2634 cat > conftest.
$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2640 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2641 { (eval echo configure
:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2642 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2643 if test -z "$ac_err"; then
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2657 ac_cv_prog_CPP
="$CPP"
2659 CPP
="$ac_cv_prog_CPP"
2661 ac_cv_prog_CPP
="$CPP"
2663 echo "$ac_t""$CPP" 1>&6
2665 # Extract the first word of "ranlib", so it can be a program name with args.
2666 set dummy ranlib
; ac_word
=$2
2667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_word" >&5
2669 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 if test -n "$RANLIB"; then
2673 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2677 for ac_dir
in $ac_dummy; do
2678 test -z "$ac_dir" && ac_dir
=.
2679 if test -f $ac_dir/$ac_word; then
2680 ac_cv_prog_RANLIB
="ranlib"
2685 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2688 RANLIB
="$ac_cv_prog_RANLIB"
2689 if test -n "$RANLIB"; then
2690 echo "$ac_t""$RANLIB" 1>&6
2692 echo "$ac_t""no" 1>&6
2695 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2696 echo "configure:2697: checking for ANSI C header files" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.
$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure
:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 ac_cv_header_stdc
=yes
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 ac_cv_header_stdc
=no
2723 if test $ac_cv_header_stdc = yes; then
2724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2725 cat > conftest.
$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2731 egrep "memchr" >/dev
/null
2>&1; then
2735 ac_cv_header_stdc
=no
2741 if test $ac_cv_header_stdc = yes; then
2742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 egrep "free" >/dev
/null
2>&1; then
2753 ac_cv_header_stdc
=no
2759 if test $ac_cv_header_stdc = yes; then
2760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2761 if test "$cross_compiling" = yes; then
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2768 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2769 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2771 int main () { int i; for (i = 0; i < 256; i++)
2772 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2776 if { (eval echo configure
:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 ac_cv_header_stdc
=no
2791 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2792 if test $ac_cv_header_stdc = yes; then
2793 cat >> confdefs.h
<<\EOF
2794 #define STDC_HEADERS 1
2799 echo $ac_n "checking for working const""... $ac_c" 1>&6
2800 echo "configure:2801: checking for working const" >&5
2801 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2810 /* Ultrix mips cc rejects this. */
2811 typedef int charset[2]; const charset x;
2812 /* SunOS 4.1.1 cc rejects this. */
2813 char const *const *ccp;
2815 /* NEC SVR4.0.2 mips cc rejects this. */
2816 struct point {int x, y;};
2817 static struct point const zero = {0,0};
2818 /* AIX XL C 1.02.0.0 rejects this.
2819 It does not let you subtract one const X* pointer from another in an arm
2820 of an if-expression whose if-part is not a constant expression */
2821 const char *g = "string";
2822 ccp = &g + (g ? g-g : 0);
2823 /* HPUX 7.0 cc rejects these. */
2826 ccp = (char const *const *) p;
2827 { /* SCO 3.2v4 cc rejects this. */
2829 char const *s = 0 ? (char *) 0 : (char const *) 0;
2833 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2835 const int *foo = &x[0];
2838 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2839 typedef const int *iptr;
2843 { /* AIX XL C 1.02.0.0 rejects this saying
2844 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2845 struct s { int j; const int *ap[3]; };
2846 struct s *b; b->j = 5;
2848 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2854 if { (eval echo configure
:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2858 echo "configure: failed program was:" >&5
2859 cat conftest.
$ac_ext >&5
2866 echo "$ac_t""$ac_cv_c_const" 1>&6
2867 if test $ac_cv_c_const = no
; then
2868 cat >> confdefs.h
<<\EOF
2874 echo $ac_n "checking for inline""... $ac_c" 1>&6
2875 echo "configure:2876: checking for inline" >&5
2876 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2880 for ac_kw
in inline __inline__ __inline
; do
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 if { (eval echo configure
:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 ac_cv_c_inline
=$ac_kw; break
2893 echo "configure: failed program was:" >&5
2894 cat conftest.
$ac_ext >&5
2901 echo "$ac_t""$ac_cv_c_inline" 1>&6
2902 case "$ac_cv_c_inline" in
2904 no
) cat >> confdefs.h
<<\EOF
2908 *) cat >> confdefs.h
<<EOF
2909 #define inline $ac_cv_c_inline
2914 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2915 echo "configure:2916: checking for off_t" >&5
2916 if eval "test \"`echo '$''{'ac_cv_type_off_t'+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 #include <sys/types.h>
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2931 ac_cv_type_off_t
=yes
2939 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2940 if test $ac_cv_type_off_t = no
; then
2941 cat >> confdefs.h
<<\EOF
2947 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2948 echo "configure:2949: checking for size_t" >&5
2949 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/types.h>
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2964 ac_cv_type_size_t
=yes
2967 ac_cv_type_size_t
=no
2972 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2973 if test $ac_cv_type_size_t = no
; then
2974 cat >> confdefs.h
<<\EOF
2975 #define size_t unsigned
2980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2981 # for constant arguments. Useless!
2982 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2983 echo "configure:2984: checking for working alloca.h" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.
$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2992 char *p = alloca(2 * sizeof(int));
2995 if { (eval echo configure
:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2997 ac_cv_header_alloca_h
=yes
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3002 ac_cv_header_alloca_h
=no
3007 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3008 if test $ac_cv_header_alloca_h = yes; then
3009 cat >> confdefs.h
<<\EOF
3010 #define HAVE_ALLOCA_H 1
3015 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3016 echo "configure:3017: checking for alloca" >&5
3017 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3025 # define alloca __builtin_alloca
3028 # include <malloc.h>
3029 # define alloca _alloca
3032 # include <alloca.h>
3037 # ifndef alloca /* predefined by HP cc +Olibcalls */
3046 char *p = (char *) alloca(1);
3049 if { (eval echo configure
:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3051 ac_cv_func_alloca_works
=yes
3053 echo "configure: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3056 ac_cv_func_alloca_works
=no
3061 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3062 if test $ac_cv_func_alloca_works = yes; then
3063 cat >> confdefs.h
<<\EOF
3064 #define HAVE_ALLOCA 1
3069 if test $ac_cv_func_alloca_works = no
; then
3070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3071 # that cause trouble. Some versions do not even contain alloca or
3072 # contain a buggy version. If you still want to use their alloca,
3073 # use ar to extract alloca.o from them instead of compiling alloca.c.
3074 ALLOCA
=alloca.
${ac_objext}
3075 cat >> confdefs.h
<<\EOF
3080 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3081 echo "configure:3082: checking whether alloca needs Cray hooks" >&5
3082 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 cat > conftest.
$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 #if defined(CRAY) && ! defined(CRAY2)
3095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 egrep "webecray" >/dev
/null
2>&1; then
3107 echo "$ac_t""$ac_cv_os_cray" 1>&6
3108 if test $ac_cv_os_cray = yes; then
3109 for ac_func
in _getb67 GETB67 getb67
; do
3110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_func" >&5
3112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 /* System header to define __stub macros and hopefully few prototypes,
3119 which can conflict with char $ac_func(); below. */
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3128 /* The GNU C library defines this for functions which it implements
3129 to always fail with ENOSYS. Some functions are actually named
3130 something starting with __ and the normal name is an alias. */
3131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3139 if { (eval echo configure
:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3141 eval "ac_cv_func_$ac_func=yes"
3143 echo "configure: failed program was:" >&5
3144 cat conftest.
$ac_ext >&5
3146 eval "ac_cv_func_$ac_func=no"
3151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3153 cat >> confdefs.h
<<EOF
3154 #define CRAY_STACKSEG_END $ac_func
3159 echo "$ac_t""no" 1>&6
3165 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3166 echo "configure:3167: checking stack direction for C alloca" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 if test "$cross_compiling" = yes; then
3171 ac_cv_c_stack_direction
=0
3173 cat > conftest.
$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 find_stack_direction ()
3178 static char *addr = 0;
3183 return find_stack_direction ();
3186 return (&dummy > addr) ? 1 : -1;
3190 exit (find_stack_direction() < 0);
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3195 ac_cv_c_stack_direction
=1
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 ac_cv_c_stack_direction
=-1
3207 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3208 cat >> confdefs.h
<<EOF
3209 #define STACK_DIRECTION $ac_cv_c_stack_direction
3214 for ac_hdr
in unistd.h
3216 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3218 echo "configure:3219: checking for $ac_hdr" >&5
3219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3227 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3228 { (eval echo configure
:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3229 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3230 if test -z "$ac_err"; then
3232 eval "ac_cv_header_$ac_safe=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 eval "ac_cv_header_$ac_safe=no"
3242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3243 echo "$ac_t""yes" 1>&6
3244 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3245 cat >> confdefs.h
<<EOF
3246 #define $ac_tr_hdr 1
3250 echo "$ac_t""no" 1>&6
3254 for ac_func
in getpagesize
3256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_func" >&5
3258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265 which can conflict with char $ac_func(); below. */
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3274 /* The GNU C library defines this for functions which it implements
3275 to always fail with ENOSYS. Some functions are actually named
3276 something starting with __ and the normal name is an alias. */
3277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3285 if { (eval echo configure
:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3287 eval "ac_cv_func_$ac_func=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.
$ac_ext >&5
3292 eval "ac_cv_func_$ac_func=no"
3297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3300 cat >> confdefs.h
<<EOF
3301 #define $ac_tr_func 1
3305 echo "$ac_t""no" 1>&6
3309 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3310 echo "configure:3311: checking for working mmap" >&5
3311 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 if test "$cross_compiling" = yes; then
3315 ac_cv_func_mmap_fixed_mapped
=no
3317 cat > conftest.
$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3321 /* Thanks to Mike Haertel and Jim Avera for this test.
3322 Here is a matrix of mmap possibilities:
3323 mmap private not fixed
3324 mmap private fixed at somewhere currently unmapped
3325 mmap private fixed at somewhere already mapped
3326 mmap shared not fixed
3327 mmap shared fixed at somewhere currently unmapped
3328 mmap shared fixed at somewhere already mapped
3329 For private mappings, we should verify that changes cannot be read()
3330 back from the file, nor mmap's back from the file at a different
3331 address. (There have been systems where private was not correctly
3332 implemented like the infamous i386 svr4.0, and systems where the
3333 VM page cache was not coherent with the filesystem buffer cache
3334 like early versions of FreeBSD and possibly contemporary NetBSD.)
3335 For shared mappings, we should conversely verify that changes get
3336 propogated back to all the places they're supposed to be.
3338 Grep wants private fixed already mapped.
3339 The main things grep needs to know about mmap are:
3340 * does it exist and is it safe to write into the mmap'd area
3341 * how to use it (BSD variants) */
3342 #include <sys/types.h>
3344 #include <sys/mman.h>
3346 /* This mess was copied from the GNU getpagesize.h. */
3347 #ifndef HAVE_GETPAGESIZE
3348 # ifdef HAVE_UNISTD_H
3349 # include <unistd.h>
3352 /* Assume that all systems that can run configure have sys/param.h. */
3353 # ifndef HAVE_SYS_PARAM_H
3354 # define HAVE_SYS_PARAM_H 1
3357 # ifdef _SC_PAGESIZE
3358 # define getpagesize() sysconf(_SC_PAGESIZE)
3359 # else /* no _SC_PAGESIZE */
3360 # ifdef HAVE_SYS_PARAM_H
3361 # include <sys/param.h>
3362 # ifdef EXEC_PAGESIZE
3363 # define getpagesize() EXEC_PAGESIZE
3364 # else /* no EXEC_PAGESIZE */
3366 # define getpagesize() NBPG * CLSIZE
3369 # endif /* no CLSIZE */
3370 # else /* no NBPG */
3372 # define getpagesize() NBPC
3373 # else /* no NBPC */
3375 # define getpagesize() PAGESIZE
3376 # endif /* PAGESIZE */
3377 # endif /* no NBPC */
3378 # endif /* no NBPG */
3379 # endif /* no EXEC_PAGESIZE */
3380 # else /* no HAVE_SYS_PARAM_H */
3381 # define getpagesize() 8192 /* punt totally */
3382 # endif /* no HAVE_SYS_PARAM_H */
3383 # endif /* no _SC_PAGESIZE */
3385 #endif /* no HAVE_GETPAGESIZE */
3388 extern "C" { void *malloc(unsigned); }
3396 char *data, *data2, *data3;
3400 pagesize = getpagesize();
3403 * First, make a file with some known garbage in it.
3405 data = malloc(pagesize);
3408 for (i = 0; i < pagesize; ++i)
3409 *(data + i) = rand();
3411 fd = creat("conftestmmap", 0600);
3414 if (write(fd, data, pagesize) != pagesize)
3419 * Next, try to mmap the file at a fixed address which
3420 * already has something else allocated at it. If we can,
3421 * also make sure that we see the same garbage.
3423 fd = open("conftestmmap", O_RDWR);
3426 data2 = malloc(2 * pagesize);
3429 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3430 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3431 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3433 for (i = 0; i < pagesize; ++i)
3434 if (*(data + i) != *(data2 + i))
3438 * Finally, make sure that changes to the mapped area
3439 * do not percolate back to the file as seen by read().
3440 * (This is a bug on some variants of i386 svr4.0.)
3442 for (i = 0; i < pagesize; ++i)
3443 *(data2 + i) = *(data2 + i) + 1;
3444 data3 = malloc(pagesize);
3447 if (read(fd, data3, pagesize) != pagesize)
3449 for (i = 0; i < pagesize; ++i)
3450 if (*(data + i) != *(data3 + i))
3453 unlink("conftestmmap");
3458 if { (eval echo configure
:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3460 ac_cv_func_mmap_fixed_mapped
=yes
3462 echo "configure: failed program was:" >&5
3463 cat conftest.
$ac_ext >&5
3465 ac_cv_func_mmap_fixed_mapped
=no
3472 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3473 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3474 cat >> confdefs.h
<<\EOF
3481 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3482 unistd.h values.h sys
/param.h
3484 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_hdr" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure
:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3513 cat >> confdefs.h
<<EOF
3514 #define $ac_tr_hdr 1
3518 echo "$ac_t""no" 1>&6
3522 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3523 __argz_count __argz_stringify __argz_next
3525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3526 echo "configure:3527: checking for $ac_func" >&5
3527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 /* System header to define __stub macros and hopefully few prototypes,
3534 which can conflict with char $ac_func(); below. */
3536 /* Override any gcc2 internal prototype to avoid an error. */
3537 /* We use char because int might match the return type of a gcc2
3538 builtin and then its argument prototype would still apply. */
3543 /* The GNU C library defines this for functions which it implements
3544 to always fail with ENOSYS. Some functions are actually named
3545 something starting with __ and the normal name is an alias. */
3546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3554 if { (eval echo configure
:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3556 eval "ac_cv_func_$ac_func=yes"
3558 echo "configure: failed program was:" >&5
3559 cat conftest.
$ac_ext >&5
3561 eval "ac_cv_func_$ac_func=no"
3566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3569 cat >> confdefs.h
<<EOF
3570 #define $ac_tr_func 1
3574 echo "$ac_t""no" 1>&6
3579 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3580 for ac_func
in stpcpy
3582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3583 echo "configure:3584: checking for $ac_func" >&5
3584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 /* System header to define __stub macros and hopefully few prototypes,
3591 which can conflict with char $ac_func(); below. */
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3600 /* The GNU C library defines this for functions which it implements
3601 to always fail with ENOSYS. Some functions are actually named
3602 something starting with __ and the normal name is an alias. */
3603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3611 if { (eval echo configure
:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3613 eval "ac_cv_func_$ac_func=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3618 eval "ac_cv_func_$ac_func=no"
3623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3626 cat >> confdefs.h
<<EOF
3627 #define $ac_tr_func 1
3631 echo "$ac_t""no" 1>&6
3636 if test "${ac_cv_func_stpcpy}" = "yes"; then
3637 cat >> confdefs.h
<<\EOF
3638 #define HAVE_STPCPY 1
3643 if test $ac_cv_header_locale_h = yes; then
3644 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3645 echo "configure:3646: checking for LC_MESSAGES" >&5
3646 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 cat > conftest.
$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3657 if { (eval echo configure
:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3659 am_cv_val_LC_MESSAGES
=yes
3661 echo "configure: failed program was:" >&5
3662 cat conftest.
$ac_ext >&5
3664 am_cv_val_LC_MESSAGES
=no
3669 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3670 if test $am_cv_val_LC_MESSAGES = yes; then
3671 cat >> confdefs.h
<<\EOF
3672 #define HAVE_LC_MESSAGES 1
3677 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3678 echo "configure:3679: checking whether NLS is requested" >&5
3679 # Check whether --enable-nls or --disable-nls was given.
3680 if test "${enable_nls+set}" = set; then
3681 enableval
="$enable_nls"
3687 echo "$ac_t""$USE_NLS" 1>&6
3690 USE_INCLUDED_LIBINTL
=no
3692 if test "$USE_NLS" = "yes"; then
3693 cat >> confdefs.h
<<\EOF
3694 #define ENABLE_NLS 1
3697 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3698 echo "configure:3699: checking whether included gettext is requested" >&5
3699 # Check whether --with-included-gettext or --without-included-gettext was given.
3700 if test "${with_included_gettext+set}" = set; then
3701 withval
="$with_included_gettext"
3702 nls_cv_force_use_gnu_gettext
=$withval
3704 nls_cv_force_use_gnu_gettext
=no
3707 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3709 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3710 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3712 nls_cv_header_libgt
=
3715 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3716 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3717 echo "configure:3718: checking for libintl.h" >&5
3718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 #include <libintl.h>
3726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3727 { (eval echo configure
:3728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3729 if test -z "$ac_err"; then
3731 eval "ac_cv_header_$ac_safe=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.
$ac_ext >&5
3737 eval "ac_cv_header_$ac_safe=no"
3741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3744 echo "configure:3745: checking for gettext in libc" >&5
3745 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.
$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 #include <libintl.h>
3753 return (int) gettext ("")
3756 if { (eval echo configure
:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3758 gt_cv_func_gettext_libc
=yes
3760 echo "configure: failed program was:" >&5
3761 cat conftest.
$ac_ext >&5
3763 gt_cv_func_gettext_libc
=no
3768 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3770 if test "$gt_cv_func_gettext_libc" != "yes"; then
3771 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3772 echo "configure:3773: checking for bindtextdomain in -lintl" >&5
3773 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 ac_save_LIBS
="$LIBS"
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char bindtextdomain();
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS
="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3807 echo "configure:3808: checking for gettext in libintl" >&5
3808 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 cat > conftest.
$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3816 return (int) gettext ("")
3819 if { (eval echo configure
:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3821 gt_cv_func_gettext_libintl
=yes
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 gt_cv_func_gettext_libintl
=no
3831 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3833 echo "$ac_t""no" 1>&6
3838 if test "$gt_cv_func_gettext_libc" = "yes" \
3839 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3840 cat >> confdefs.h
<<\EOF
3841 #define HAVE_GETTEXT 1
3844 # Extract the first word of "msgfmt", so it can be a program name with args.
3845 set dummy msgfmt
; ac_word
=$2
3846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3847 echo "configure:3848: checking for $ac_word" >&5
3848 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3853 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3857 for ac_dir
in $PATH; do
3858 test -z "$ac_dir" && ac_dir
=.
3859 if test -f $ac_dir/$ac_word; then
3860 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3861 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3867 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3871 MSGFMT
="$ac_cv_path_MSGFMT"
3872 if test -n "$MSGFMT"; then
3873 echo "$ac_t""$MSGFMT" 1>&6
3875 echo "$ac_t""no" 1>&6
3877 if test "$MSGFMT" != "no"; then
3878 for ac_func
in dcgettext
3880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3881 echo "configure:3882: checking for $ac_func" >&5
3882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* System header to define __stub macros and hopefully few prototypes,
3889 which can conflict with char $ac_func(); below. */
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3898 /* The GNU C library defines this for functions which it implements
3899 to always fail with ENOSYS. Some functions are actually named
3900 something starting with __ and the normal name is an alias. */
3901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3909 if { (eval echo configure
:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3911 eval "ac_cv_func_$ac_func=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.
$ac_ext >&5
3916 eval "ac_cv_func_$ac_func=no"
3921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3924 cat >> confdefs.h
<<EOF
3925 #define $ac_tr_func 1
3929 echo "$ac_t""no" 1>&6
3933 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3934 set dummy gmsgfmt
; ac_word
=$2
3935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3936 echo "configure:3937: checking for $ac_word" >&5
3937 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3942 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3945 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3950 for ac_dir
in $ac_dummy; do
3951 test -z "$ac_dir" && ac_dir
=.
3952 if test -f $ac_dir/$ac_word; then
3953 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3958 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3962 GMSGFMT
="$ac_cv_path_GMSGFMT"
3963 if test -n "$GMSGFMT"; then
3964 echo "$ac_t""$GMSGFMT" 1>&6
3966 echo "$ac_t""no" 1>&6
3969 # Extract the first word of "xgettext", so it can be a program name with args.
3970 set dummy xgettext
; ac_word
=$2
3971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_word" >&5
3973 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3978 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3982 for ac_dir
in $PATH; do
3983 test -z "$ac_dir" && ac_dir
=.
3984 if test -f $ac_dir/$ac_word; then
3985 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3986 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3992 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3996 XGETTEXT
="$ac_cv_path_XGETTEXT"
3997 if test -n "$XGETTEXT"; then
3998 echo "$ac_t""$XGETTEXT" 1>&6
4000 echo "$ac_t""no" 1>&6
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 extern int _nl_msg_cat_cntr;
4009 return _nl_msg_cat_cntr
4012 if { (eval echo configure
:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4017 echo "configure: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4029 echo "$ac_t""no" 1>&6
4034 if test "$CATOBJEXT" = "NONE"; then
4035 nls_cv_use_gnu_gettext
=yes
4039 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4040 INTLOBJS
="\$(GETTOBJS)"
4041 # Extract the first word of "msgfmt", so it can be a program name with args.
4042 set dummy msgfmt
; ac_word
=$2
4043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_word" >&5
4045 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4050 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4054 for ac_dir
in $PATH; do
4055 test -z "$ac_dir" && ac_dir
=.
4056 if test -f $ac_dir/$ac_word; then
4057 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4058 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4064 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4068 MSGFMT
="$ac_cv_path_MSGFMT"
4069 if test -n "$MSGFMT"; then
4070 echo "$ac_t""$MSGFMT" 1>&6
4072 echo "$ac_t""no" 1>&6
4075 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4076 set dummy gmsgfmt
; ac_word
=$2
4077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_word" >&5
4079 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4084 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4087 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4092 for ac_dir
in $ac_dummy; do
4093 test -z "$ac_dir" && ac_dir
=.
4094 if test -f $ac_dir/$ac_word; then
4095 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4100 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4104 GMSGFMT
="$ac_cv_path_GMSGFMT"
4105 if test -n "$GMSGFMT"; then
4106 echo "$ac_t""$GMSGFMT" 1>&6
4108 echo "$ac_t""no" 1>&6
4111 # Extract the first word of "xgettext", so it can be a program name with args.
4112 set dummy xgettext
; ac_word
=$2
4113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4114 echo "configure:4115: checking for $ac_word" >&5
4115 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4120 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4124 for ac_dir
in $PATH; do
4125 test -z "$ac_dir" && ac_dir
=.
4126 if test -f $ac_dir/$ac_word; then
4127 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4128 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4134 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4138 XGETTEXT
="$ac_cv_path_XGETTEXT"
4139 if test -n "$XGETTEXT"; then
4140 echo "$ac_t""$XGETTEXT" 1>&6
4142 echo "$ac_t""no" 1>&6
4146 USE_INCLUDED_LIBINTL
=yes
4150 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4152 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4153 nls_cv_header_intl
=libintl.h
4154 nls_cv_header_libgt
=libgettext.h
4157 if test "$XGETTEXT" != ":"; then
4158 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4161 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4166 # We need to process the po/ directory.
4170 nls_cv_header_intl
=libintl.h
4171 nls_cv_header_libgt
=libgettext.h
4174 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4175 # because some of the sources are only built for this goal.
4176 if test "$PACKAGE" = gettext; then
4178 USE_INCLUDED_LIBINTL
=yes
4181 for lang
in $ALL_LINGUAS; do
4182 GMOFILES
="$GMOFILES $lang.gmo"
4183 POFILES
="$POFILES $lang.po"
4199 if test "x$CATOBJEXT" != "x"; then
4200 if test "x$ALL_LINGUAS" = "x"; then
4203 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4204 echo "configure:4205: checking for catalogs to be installed" >&5
4206 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4207 case "$ALL_LINGUAS" in
4208 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4211 LINGUAS
=$NEW_LINGUAS
4212 echo "$ac_t""$LINGUAS" 1>&6
4215 if test -n "$LINGUAS"; then
4216 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4220 if test $ac_cv_header_locale_h = yes; then
4221 INCLUDE_LOCALE_H
="#include <locale.h>"
4224 /* The system does not provide the header <locale.h>. Take care yourself. */"
4228 if test -f $srcdir/po2tbl.
sed.
in; then
4229 if test "$CATOBJEXT" = ".cat"; then
4230 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4231 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4232 echo "configure:4233: checking for linux/version.h" >&5
4233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.
$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 #include <linux/version.h>
4241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4242 { (eval echo configure
:4243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4244 if test -z "$ac_err"; then
4246 eval "ac_cv_header_$ac_safe=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.
$ac_ext >&5
4252 eval "ac_cv_header_$ac_safe=no"
4256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4260 echo "$ac_t""no" 1>&6
4265 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4267 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4268 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4271 if test "$PACKAGE" = "gettext"; then
4281 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4287 if test -f $srcdir/po
/POTFILES.
in; then
4288 test -d po || mkdir po
4289 if test "x$srcdir" != "x."; then
4290 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4291 posrcprefix
="$srcdir/"
4293 posrcprefix
="../$srcdir/"
4299 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4300 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4306 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4307 echo "configure:4308: checking for executable suffix" >&5
4308 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4315 echo 'int main () { return 0; }' > conftest.
$ac_ext
4317 if { (eval echo configure
:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4318 for file in conftest.
*; do
4320 *.c |
*.o |
*.obj
) ;;
4321 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4325 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4328 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4333 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4334 echo "$ac_t""${ac_cv_exeext}" 1>&6
4338 for ac_prog
in 'bison -y' byacc
4340 # Extract the first word of "$ac_prog", so it can be a program name with args.
4341 set dummy
$ac_prog; ac_word
=$2
4342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_word" >&5
4344 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 if test -n "$YACC"; then
4348 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4352 for ac_dir
in $ac_dummy; do
4353 test -z "$ac_dir" && ac_dir
=.
4354 if test -f $ac_dir/$ac_word; then
4355 ac_cv_prog_YACC
="$ac_prog"
4362 YACC
="$ac_cv_prog_YACC"
4363 if test -n "$YACC"; then
4364 echo "$ac_t""$YACC" 1>&6
4366 echo "$ac_t""no" 1>&6
4369 test -n "$YACC" && break
4371 test -n "$YACC" || YACC
="yacc"
4373 missing_dir
=`cd $ac_aux_dir && pwd`
4374 for ac_prog
in flex
lex
4376 # Extract the first word of "$ac_prog", so it can be a program name with args.
4377 set dummy
$ac_prog; ac_word
=$2
4378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_word" >&5
4380 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 if test -n "$LEX"; then
4384 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4386 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4388 for ac_dir
in $ac_dummy; do
4389 test -z "$ac_dir" && ac_dir
=.
4390 if test -f $ac_dir/$ac_word; then
4391 ac_cv_prog_LEX
="$ac_prog"
4398 LEX
="$ac_cv_prog_LEX"
4399 if test -n "$LEX"; then
4400 echo "$ac_t""$LEX" 1>&6
4402 echo "$ac_t""no" 1>&6
4405 test -n "$LEX" && break
4407 test -n "$LEX" || LEX
="$missing_dir/missing flex"
4409 # Extract the first word of "flex", so it can be a program name with args.
4410 set dummy flex
; ac_word
=$2
4411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_word" >&5
4413 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 if test -n "$LEX"; then
4417 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4419 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4421 for ac_dir
in $ac_dummy; do
4422 test -z "$ac_dir" && ac_dir
=.
4423 if test -f $ac_dir/$ac_word; then
4424 ac_cv_prog_LEX
="flex"
4429 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4432 LEX
="$ac_cv_prog_LEX"
4433 if test -n "$LEX"; then
4434 echo "$ac_t""$LEX" 1>&6
4436 echo "$ac_t""no" 1>&6
4439 if test -z "$LEXLIB"
4445 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4446 echo "configure:4447: checking for yywrap in -l$ac_lib" >&5
4447 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 ac_save_LIBS
="$LIBS"
4452 LIBS
="-l$ac_lib $LIBS"
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4465 if { (eval echo configure
:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4467 eval "ac_cv_lib_$ac_lib_var=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.
$ac_ext >&5
4472 eval "ac_cv_lib_$ac_lib_var=no"
4475 LIBS
="$ac_save_LIBS"
4478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4482 echo "$ac_t""no" 1>&6
4487 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4488 echo "configure:4489: checking lex output file root" >&5
4489 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 # The minimal lex program is just a single line: %%. But some broken lexes
4493 # (Solaris, I think it was) want two %% lines, so accommodate them.
4496 if test -f lex.yy.c
; then
4497 ac_cv_prog_lex_root
=lex.yy
4498 elif test -f lexyy.c
; then
4499 ac_cv_prog_lex_root
=lexyy
4501 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4505 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4506 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4508 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4509 echo "configure:4510: checking whether yytext is a pointer" >&5
4510 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 # POSIX says lex can declare yytext either as a pointer or an array; the
4514 # default is implementation-dependent. Figure out which it is, since
4515 # not all implementations provide the %pointer and %array declarations.
4516 ac_cv_prog_lex_yytext_pointer
=no
4517 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4518 ac_save_LIBS
="$LIBS"
4519 LIBS
="$LIBS $LEXLIB"
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 `cat $LEX_OUTPUT_ROOT.c`
4528 if { (eval echo configure
:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4530 ac_cv_prog_lex_yytext_pointer
=yes
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4536 LIBS
="$ac_save_LIBS"
4537 rm -f "${LEX_OUTPUT_ROOT}.c"
4541 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4542 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4543 cat >> confdefs.h
<<\EOF
4544 #define YYTEXT_POINTER 1
4550 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4551 echo "configure:4552: checking whether to enable maintainer-specific portions of Makefiles" >&5
4552 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4553 if test "${enable_maintainer_mode+set}" = set; then
4554 enableval
="$enable_maintainer_mode"
4555 USE_MAINTAINER_MODE
=$enableval
4557 USE_MAINTAINER_MODE
=no
4560 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4563 if test $USE_MAINTAINER_MODE = yes; then
4564 MAINTAINER_MODE_TRUE
=
4565 MAINTAINER_MODE_FALSE
='#'
4567 MAINTAINER_MODE_TRUE
='#'
4568 MAINTAINER_MODE_FALSE
=
4570 MAINT
=$MAINTAINER_MODE_TRUE
4574 .
${srcdir}/configure.
host
4581 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4583 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4585 echo "configure:4586: checking for $ac_hdr" >&5
4586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 cat > conftest.
$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4594 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure
:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4597 if test -z "$ac_err"; then
4599 eval "ac_cv_header_$ac_safe=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.
$ac_ext >&5
4605 eval "ac_cv_header_$ac_safe=no"
4609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4612 cat >> confdefs.h
<<EOF
4613 #define $ac_tr_hdr 1
4617 echo "$ac_t""no" 1>&6
4621 for ac_func
in sbrk realpath
4623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4624 echo "configure:4625: checking for $ac_func" >&5
4625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4628 cat > conftest.
$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* System header to define __stub macros and hopefully few prototypes,
4632 which can conflict with char $ac_func(); below. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4641 /* The GNU C library defines this for functions which it implements
4642 to always fail with ENOSYS. Some functions are actually named
4643 something starting with __ and the normal name is an alias. */
4644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4652 if { (eval echo configure
:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4654 eval "ac_cv_func_$ac_func=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4659 eval "ac_cv_func_$ac_func=no"
4664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4667 cat >> confdefs.h
<<EOF
4668 #define $ac_tr_func 1
4672 echo "$ac_t""no" 1>&6
4677 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4679 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4680 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4681 echo "configure:4682: checking for $ac_hdr that defines DIR" >&5
4682 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.
$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 #include <sys/types.h>
4694 if { (eval echo configure
:4695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4696 eval "ac_cv_header_dirent_$ac_safe=yes"
4698 echo "configure: failed program was:" >&5
4699 cat conftest.
$ac_ext >&5
4701 eval "ac_cv_header_dirent_$ac_safe=no"
4705 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4708 cat >> confdefs.h
<<EOF
4709 #define $ac_tr_hdr 1
4711 ac_header_dirent
=$ac_hdr; break
4713 echo "$ac_t""no" 1>&6
4716 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4717 if test $ac_header_dirent = dirent.h
; then
4718 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4719 echo "configure:4720: checking for opendir in -ldir" >&5
4720 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 ac_save_LIBS
="$LIBS"
4726 cat > conftest.
$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4738 if { (eval echo configure
:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4740 eval "ac_cv_lib_$ac_lib_var=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.
$ac_ext >&5
4745 eval "ac_cv_lib_$ac_lib_var=no"
4748 LIBS
="$ac_save_LIBS"
4751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4755 echo "$ac_t""no" 1>&6
4759 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4760 echo "configure:4761: checking for opendir in -lx" >&5
4761 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 ac_save_LIBS
="$LIBS"
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4779 if { (eval echo configure
:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4786 eval "ac_cv_lib_$ac_lib_var=no"
4789 LIBS
="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4796 echo "$ac_t""no" 1>&6
4804 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4805 cat >> confdefs.h
<<\EOF
4806 #define USE_BINARY_FOPEN 1
4811 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4812 echo "configure:4813: checking whether strstr must be declared" >&5
4813 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.
$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4821 #ifdef HAVE_STRING_H
4824 #ifdef HAVE_STRINGS_H
4825 #include <strings.h>
4828 #ifdef HAVE_STDLIB_H
4831 #ifdef HAVE_UNISTD_H
4835 char *(*pfn) = (char *(*)) strstr
4838 if { (eval echo configure
:4839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4840 bfd_cv_decl_needed_strstr
=no
4842 echo "configure: failed program was:" >&5
4843 cat conftest.
$ac_ext >&5
4845 bfd_cv_decl_needed_strstr
=yes
4850 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4851 if test $bfd_cv_decl_needed_strstr = yes; then
4852 cat >> confdefs.h
<<\EOF
4853 #define NEED_DECLARATION_STRSTR 1
4858 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4859 echo "configure:4860: checking whether free must be declared" >&5
4860 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 #ifdef HAVE_STRING_H
4871 #ifdef HAVE_STRINGS_H
4872 #include <strings.h>
4875 #ifdef HAVE_STDLIB_H
4878 #ifdef HAVE_UNISTD_H
4882 char *(*pfn) = (char *(*)) free
4885 if { (eval echo configure
:4886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4887 bfd_cv_decl_needed_free
=no
4889 echo "configure: failed program was:" >&5
4890 cat conftest.
$ac_ext >&5
4892 bfd_cv_decl_needed_free
=yes
4897 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4898 if test $bfd_cv_decl_needed_free = yes; then
4899 cat >> confdefs.h
<<\EOF
4900 #define NEED_DECLARATION_FREE 1
4905 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4906 echo "configure:4907: checking whether sbrk must be declared" >&5
4907 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.
$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4915 #ifdef HAVE_STRING_H
4918 #ifdef HAVE_STRINGS_H
4919 #include <strings.h>
4922 #ifdef HAVE_STDLIB_H
4925 #ifdef HAVE_UNISTD_H
4929 char *(*pfn) = (char *(*)) sbrk
4932 if { (eval echo configure
:4933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4934 bfd_cv_decl_needed_sbrk
=no
4936 echo "configure: failed program was:" >&5
4937 cat conftest.
$ac_ext >&5
4939 bfd_cv_decl_needed_sbrk
=yes
4944 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4945 if test $bfd_cv_decl_needed_sbrk = yes; then
4946 cat >> confdefs.h
<<\EOF
4947 #define NEED_DECLARATION_SBRK 1
4952 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4953 echo "configure:4954: checking whether getenv must be declared" >&5
4954 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4962 #ifdef HAVE_STRING_H
4965 #ifdef HAVE_STRINGS_H
4966 #include <strings.h>
4969 #ifdef HAVE_STDLIB_H
4972 #ifdef HAVE_UNISTD_H
4976 char *(*pfn) = (char *(*)) getenv
4979 if { (eval echo configure
:4980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4981 bfd_cv_decl_needed_getenv
=no
4983 echo "configure: failed program was:" >&5
4984 cat conftest.
$ac_ext >&5
4986 bfd_cv_decl_needed_getenv
=yes
4991 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4992 if test $bfd_cv_decl_needed_getenv = yes; then
4993 cat >> confdefs.h
<<\EOF
4994 #define NEED_DECLARATION_GETENV 1
4999 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5000 echo "configure:5001: checking whether environ must be declared" >&5
5001 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.
$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5009 #ifdef HAVE_STRING_H
5012 #ifdef HAVE_STRINGS_H
5013 #include <strings.h>
5016 #ifdef HAVE_STDLIB_H
5019 #ifdef HAVE_UNISTD_H
5023 char *(*pfn) = (char *(*)) environ
5026 if { (eval echo configure
:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5028 bfd_cv_decl_needed_environ
=no
5030 echo "configure: failed program was:" >&5
5031 cat conftest.
$ac_ext >&5
5033 bfd_cv_decl_needed_environ
=yes
5038 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5039 if test $bfd_cv_decl_needed_environ = yes; then
5040 cat >> confdefs.h
<<\EOF
5041 #define NEED_DECLARATION_ENVIRON 1
5047 # When converting linker scripts into strings for use in emulation
5048 # files, use astring.sed if the compiler supports ANSI string
5049 # concatenation, or ostring.sed otherwise. This is to support the
5050 # broken Microsoft MSVC compiler, which limits the length of string
5051 # constants, while still supporting pre-ANSI compilers which do not
5052 # support string concatenation.
5053 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
5054 echo "configure:5055: checking whether ANSI C string concatenation works" >&5
5055 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 cat > conftest.
$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5066 if { (eval echo configure
:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5068 ld_cv_string_concatenation
=yes
5070 echo "configure: failed program was:" >&5
5071 cat conftest.
$ac_ext >&5
5073 ld_cv_string_concatenation
=no
5078 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
5079 if test "$ld_cv_string_concatenation" = "yes"; then
5080 STRINGIFY
=astring.
sed
5082 STRINGIFY
=ostring.
sed
5086 # target-specific stuff:
5096 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5098 if test "$targ_alias" = "all"; then
5101 # Canonicalize the secondary target names.
5102 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5103 if test -n "$result"; then
5109 .
${srcdir}/configure.tgt
5111 if test "$targ" = "$target"; then
5115 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
5116 case " $all_emuls " in
5119 all_emuls
="$all_emuls e${i}.o"
5120 eval result
=\
$tdir_$i
5121 test -z "$result" && result
=$targ_alias
5122 echo tdir_
$i=$result >> tdirs
5127 for i
in $targ_emul $targ_extra_libpath; do
5128 case " $all_libpath " in
5131 if test -z "$all_libpath"; then
5134 all_libpath
="$all_libpath ${i}"
5140 for i
in $targ_extra_ofiles; do
5141 case " $all_emul_extras " in
5144 all_emul_extras
="$all_emul_extras ${i}"
5156 if test x
${all_targets} = xtrue
; then
5157 if test x
${want64} = xtrue
; then
5158 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5160 EMULATION_OFILES
='$(ALL_EMULATIONS)'
5162 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
5164 EMULATION_OFILES
=$all_emuls
5165 EMUL_EXTRA_OFILES
=$all_emul_extras
5171 EMULATION_LIBPATH
=$all_libpath
5174 if test x
${enable_static} = xno
; then
5175 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5177 TESTBFDLIB
="../bfd/.libs/libbfd.a"
5181 target_vendor
=${target_vendor=$host_vendor}
5182 case "$target_vendor" in
5183 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
5184 *) EXTRA_SHLIB_EXTENSION
= ;;
5187 case "$target_os" in
5188 lynxos
) EXTRA_SHLIB_EXTENSION
=".a" ;;
5191 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
5192 cat >> confdefs.h
<<EOF
5193 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5199 cat > confcache
<<\EOF
5200 # This file is a shell script that caches the results of configure
5201 # tests run on this system so they can be shared between configure
5202 # scripts and configure runs. It is not useful on other systems.
5203 # If it contains results you don't want to keep, you may remove or edit it.
5205 # By default, configure uses ./config.cache as the cache file,
5206 # creating it if it does not exist already. You can give configure
5207 # the --cache-file=FILE option to use a different cache file; that is
5208 # what configure does when it calls configure scripts in
5209 # subdirectories, so they share the cache.
5210 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5211 # config.status only pays attention to the cache file if you give it the
5212 # --recheck option to rerun configure.
5215 # The following way of writing the cache mishandles newlines in values,
5216 # but we know of no workaround that is simple, portable, and efficient.
5217 # So, don't put newlines in cache variables' values.
5218 # Ultrix sh set writes to stderr and can't be redirected directly,
5219 # and sets the high bit in the cache file unless we assign to the vars.
5221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5223 # `set' does not quote correctly, so add quotes (double-quote substitution
5224 # turns \\\\ into \\, and sed turns \\ into \).
5226 -e "s/'/'\\\\''/g" \
5227 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5230 # `set' quotes correctly as required by POSIX, so do not add quotes.
5231 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5234 if cmp -s $cache_file confcache
; then
5237 if test -w $cache_file; then
5238 echo "updating cache $cache_file"
5239 cat confcache
> $cache_file
5241 echo "not updating unwritable cache $cache_file"
5246 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5248 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5249 # Let make expand exec_prefix.
5250 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5252 # Any assignment to VPATH causes Sun make to only execute
5253 # the first set of double-colon rules, so remove it if not needed.
5254 # If there is a colon in the path, we need to keep it.
5255 if test "x$srcdir" = x.
; then
5256 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5259 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5261 DEFS
=-DHAVE_CONFIG_H
5263 # Without the "./", some shells look in PATH for config.status.
5264 : ${CONFIG_STATUS=./config.status}
5266 echo creating
$CONFIG_STATUS
5267 rm -f $CONFIG_STATUS
5268 cat > $CONFIG_STATUS <<EOF
5270 # Generated automatically by configure.
5271 # Run this file to recreate the current configuration.
5272 # This directory was configured as follows,
5273 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5275 # $0 $ac_configure_args
5277 # Compiler output produced by configure, useful for debugging
5278 # configure, is in ./config.log if it exists.
5280 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5283 case "\$ac_option" in
5284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5285 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5286 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5287 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5288 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5290 -help | --help | --hel | --he | --h)
5291 echo "\$ac_cs_usage"; exit 0 ;;
5292 *) echo "\$ac_cs_usage"; exit 1 ;;
5296 ac_given_srcdir=$srcdir
5297 ac_given_INSTALL="$INSTALL"
5299 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5301 cat >> $CONFIG_STATUS <<EOF
5303 # Protect against being on the right side of a sed subst in config.status.
5304 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5305 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5309 s%@CFLAGS@%$CFLAGS%g
5310 s%@CPPFLAGS@%$CPPFLAGS%g
5311 s%@CXXFLAGS@%$CXXFLAGS%g
5312 s%@FFLAGS@%$FFLAGS%g
5314 s%@LDFLAGS@%$LDFLAGS%g
5316 s%@exec_prefix@%$exec_prefix%g
5317 s%@prefix@%$prefix%g
5318 s%@program_transform_name@%$program_transform_name%g
5319 s%@bindir@%$bindir%g
5320 s%@sbindir@%$sbindir%g
5321 s%@libexecdir@%$libexecdir%g
5322 s%@datadir@%$datadir%g
5323 s%@sysconfdir@%$sysconfdir%g
5324 s%@sharedstatedir@%$sharedstatedir%g
5325 s%@localstatedir@%$localstatedir%g
5326 s%@libdir@%$libdir%g
5327 s%@includedir@%$includedir%g
5328 s%@oldincludedir@%$oldincludedir%g
5329 s%@infodir@%$infodir%g
5330 s%@mandir@%$mandir%g
5332 s%@host_alias@%$host_alias%g
5333 s%@host_cpu@%$host_cpu%g
5334 s%@host_vendor@%$host_vendor%g
5335 s%@host_os@%$host_os%g
5336 s%@target@%$target%g
5337 s%@target_alias@%$target_alias%g
5338 s%@target_cpu@%$target_cpu%g
5339 s%@target_vendor@%$target_vendor%g
5340 s%@target_os@%$target_os%g
5342 s%@build_alias@%$build_alias%g
5343 s%@build_cpu@%$build_cpu%g
5344 s%@build_vendor@%$build_vendor%g
5345 s%@build_os@%$build_os%g
5346 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5347 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5348 s%@INSTALL_DATA@%$INSTALL_DATA%g
5349 s%@PACKAGE@%$PACKAGE%g
5350 s%@VERSION@%$VERSION%g
5351 s%@ACLOCAL@%$ACLOCAL%g
5352 s%@AUTOCONF@%$AUTOCONF%g
5353 s%@AUTOMAKE@%$AUTOMAKE%g
5354 s%@AUTOHEADER@%$AUTOHEADER%g
5355 s%@MAKEINFO@%$MAKEINFO%g
5356 s%@SET_MAKE@%$SET_MAKE%g
5359 s%@OBJEXT@%$OBJEXT%g
5360 s%@EXEEXT@%$EXEEXT%g
5361 s%@RANLIB@%$RANLIB%g
5363 s%@LIBTOOL@%$LIBTOOL%g
5364 s%@use_sysroot@%$use_sysroot%g
5365 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
5366 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
5367 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5369 s%@ALLOCA@%$ALLOCA%g
5370 s%@USE_NLS@%$USE_NLS%g
5371 s%@MSGFMT@%$MSGFMT%g
5372 s%@GMSGFMT@%$GMSGFMT%g
5373 s%@XGETTEXT@%$XGETTEXT%g
5374 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5375 s%@CATALOGS@%$CATALOGS%g
5376 s%@CATOBJEXT@%$CATOBJEXT%g
5377 s%@DATADIRNAME@%$DATADIRNAME%g
5378 s%@GMOFILES@%$GMOFILES%g
5379 s%@INSTOBJEXT@%$INSTOBJEXT%g
5380 s%@INTLDEPS@%$INTLDEPS%g
5381 s%@INTLLIBS@%$INTLLIBS%g
5382 s%@INTLOBJS@%$INTLOBJS%g
5383 s%@POFILES@%$POFILES%g
5385 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5387 s%@GT_YES@%$GT_YES%g
5388 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5392 s%@LEXLIB@%$LEXLIB%g
5393 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5394 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5395 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5397 s%@HDEFINES@%$HDEFINES%g
5398 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5399 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5400 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5401 s%@STRINGIFY@%$STRINGIFY%g
5405 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5406 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5407 s%@LIB_PATH@%$LIB_PATH%g
5408 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5409 s%@TESTBFDLIB@%$TESTBFDLIB%g
5414 cat >> $CONFIG_STATUS <<\EOF
5416 # Split the substitutions into bite-sized pieces for seds with
5417 # small command number limits, like on Digital OSF/1 and HP-UX.
5418 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5419 ac_file
=1 # Number of current file.
5420 ac_beg
=1 # First line for current file.
5421 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5424 while $ac_more_lines; do
5425 if test $ac_beg -gt 1; then
5426 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5428 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5430 if test ! -s conftest.s
$ac_file; then
5432 rm -f conftest.s
$ac_file
5434 if test -z "$ac_sed_cmds"; then
5435 ac_sed_cmds
="sed -f conftest.s$ac_file"
5437 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5439 ac_file
=`expr $ac_file + 1`
5441 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5444 if test -z "$ac_sed_cmds"; then
5449 cat >> $CONFIG_STATUS <<EOF
5451 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5453 cat >> $CONFIG_STATUS <<\EOF
5454 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5457 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5458 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5459 *) ac_file_in
="${ac_file}.in" ;;
5462 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5464 # Remove last slash and all that follows it. Not all systems have dirname.
5465 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5467 # The file is in a subdirectory.
5468 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5469 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5470 # A "../" for each directory in $ac_dir_suffix.
5471 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5473 ac_dir_suffix
= ac_dots
=
5476 case "$ac_given_srcdir" in
5478 if test -z "$ac_dots"; then top_srcdir
=.
5479 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5480 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5482 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5483 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5486 case "$ac_given_INSTALL" in
5487 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5488 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5491 echo creating
"$ac_file"
5493 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5495 *Makefile
*) ac_comsub
="1i\\
5496 # $configure_input" ;;
5500 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5502 s%@configure_input@%$configure_input%g
5503 s%@srcdir@%$srcdir%g
5504 s%@top_srcdir@%$top_srcdir%g
5505 s%@INSTALL@%$INSTALL%g
5506 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5510 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5511 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5513 # ac_d sets the value in "#define NAME VALUE" lines.
5514 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5515 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5518 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5519 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5520 ac_uB
='\([ ]\)%\1#\2define\3'
5523 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5524 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5525 ac_eB
='$%\1#\2define\3'
5529 if test "${CONFIG_HEADERS+set}" != set; then
5531 cat >> $CONFIG_STATUS <<EOF
5532 CONFIG_HEADERS="config.h:config.in"
5534 cat >> $CONFIG_STATUS <<\EOF
5536 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5539 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5540 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5541 *) ac_file_in
="${ac_file}.in" ;;
5544 echo creating
$ac_file
5546 rm -f conftest.frag conftest.
in conftest.out
5547 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5548 cat $ac_file_inputs > conftest.
in
5552 # Transform confdefs.h into a sed script conftest.vals that substitutes
5553 # the proper values into config.h.in to produce config.h. And first:
5554 # Protect against being on the right side of a sed subst in config.status.
5555 # Protect against being in an unquoted here document in config.status.
5557 cat > conftest.hdr
<<\EOF
5560 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5564 sed -n -f conftest.hdr confdefs.h > conftest.vals
5567 # This sed command replaces #undef with comments. This is necessary, for
5568 # example, in the case of _POSIX_SOURCE, which is predefined and required
5569 # on some systems where configure will not decide to define it.
5570 cat >> conftest.vals <<\EOF
5571 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5574 # Break up conftest.vals because some shells have a limit on
5575 # the size of here documents, and old seds have small limits too.
5580 ac_lines=`grep -c . conftest.vals
`
5581 # grep -c gives empty output for an empty file on some AIX systems.
5582 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5583 # Write a limited-size here document to conftest.frag.
5584 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5585 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5587 sed -f conftest.frag conftest.in > conftest.out
5589 mv conftest.out conftest.in
5591 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5593 mv conftest.tail conftest.vals
5597 cat >> $CONFIG_STATUS <<\EOF
5598 rm -f conftest.frag conftest.h
5599 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5600 cat conftest.in >> conftest.h
5602 if cmp -s $ac_file conftest.h 2>/dev/null; then
5603 echo "$ac_file is unchanged"
5606 # Remove last slash and all that follows it. Not all systems have dirname.
5607 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5609 # The file is in a subdirectory.
5610 test ! -d "$ac_dir" && mkdir "$ac_dir"
5613 mv conftest.h $ac_file
5618 cat >> $CONFIG_STATUS <<EOF
5622 cat >> $CONFIG_STATUS <<\EOF
5623 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5624 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5627 chmod +x $CONFIG_STATUS
5628 rm -fr confdefs* $ac_clean_files
5629 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1