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 --enable-targets alternative target configurations"
29 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=ldmain.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.
$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
560 #define __CYGWIN__ __CYGWIN32__
565 if { (eval echo configure
:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 echo "configure: failed program was:" >&5
570 cat conftest.
$ac_ext >&5
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
580 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 cat > conftest.
$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
594 if { (eval echo configure
:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 echo "configure: failed program was:" >&5
599 cat conftest.
$ac_ext >&5
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
609 test "$ac_cv_mingw32" = yes && MINGW32
=yes
613 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
614 if test -f $ac_dir/install-sh
; then
616 ac_install_sh
="$ac_aux_dir/install-sh -c"
618 elif test -f $ac_dir/install.sh
; then
620 ac_install_sh
="$ac_aux_dir/install.sh -c"
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
627 ac_config_guess
=$ac_aux_dir/config.guess
628 ac_config_sub
=$ac_aux_dir/config.sub
629 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
632 # Do some error checking and defaulting for the host and target type.
634 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 # as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
662 case "$host_alias" in
666 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) host_alias
=$nonopt ;;
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
683 case "$target_alias" in
686 NONE
) target_alias
=$host_alias ;;
687 *) target_alias
=$nonopt ;;
691 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
701 case "$build_alias" in
704 NONE
) build_alias
=$host_alias ;;
705 *) build_alias
=$nonopt ;;
709 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
715 test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
718 program_prefix
=${target_alias}-
721 # Find a good install program. We prefer a C program (faster),
722 # so one script is as good as another. But avoid the broken or
723 # incompatible versions:
724 # SysV /etc/install, /usr/sbin/install
725 # SunOS /usr/etc/install
728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
731 # ./install, which can be erroneously created by make from ./install.sh.
732 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
733 echo "configure:734: checking for a BSD compatible install" >&5
734 if test -z "$INSTALL"; then
735 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
739 for ac_dir
in $PATH; do
740 # Account for people who put trailing slashes in PATH elements.
742 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
744 # OSF1 and SCO ODT 3.0 have their own names for install.
745 # Don't use installbsd from OSF since it installs stuff as root
747 for ac_prog
in ginstall scoinst
install; do
748 if test -f $ac_dir/$ac_prog; then
749 if test $ac_prog = install &&
750 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
751 # AIX install. It has an incompatible calling convention.
754 ac_cv_path_install
="$ac_dir/$ac_prog -c"
765 if test "${ac_cv_path_install+set}" = set; then
766 INSTALL
="$ac_cv_path_install"
768 # As a last resort, use the slow shell script. We don't cache a
769 # path for INSTALL within a source directory, because that will
770 # break other packages using the cache if that directory is
771 # removed, or if the path is relative.
772 INSTALL
="$ac_install_sh"
775 echo "$ac_t""$INSTALL" 1>&6
777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
778 # It thinks the first close brace ends the variable substitution.
779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
783 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
785 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
786 echo "configure:787: checking whether build environment is sane" >&5
789 echo timestamp
> conftestfile
790 # Do `set' in a subshell so we don't clobber the current shell's
791 # arguments. Must try -L first in case configure is actually a
792 # symlink; some systems play weird games with the mod time of symlinks
793 # (eg FreeBSD returns the mod time of the symlink's containing
796 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
797 if test "$*" = "X"; then
799 set X
`ls -t $srcdir/configure conftestfile`
801 if test "$*" != "X $srcdir/configure conftestfile" \
802 && test "$*" != "X conftestfile $srcdir/configure"; then
804 # If neither matched, then we have a broken ls. This can happen
805 # if, for instance, CONFIG_SHELL is bash and it inherits a
806 # broken ls alias from the environment. This has actually
807 # happened. Such a system could not be considered "sane".
808 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
809 alias in your environment" 1>&2; exit 1; }
812 test "$2" = conftestfile
818 { echo "configure: error: newly created file is older than distributed files!
819 Check your system clock" 1>&2; exit 1; }
822 echo "$ac_t""yes" 1>&6
823 if test "$program_transform_name" = s
,x
,x
,; then
824 program_transform_name
=
826 # Double any \ or $. echo might interpret backslashes.
827 cat <<\EOF_SED
> conftestsed
828 s
,\\,\\\\,g
; s
,\$
,$$
,g
830 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
833 test "$program_prefix" != NONE
&&
834 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
835 # Use a double $ so make ignores it.
836 test "$program_suffix" != NONE
&&
837 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
839 # sed with no file args requires a program.
840 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
842 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
843 echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
844 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
845 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftestmake
<<\EOF
850 @
echo 'ac_maketemp="${MAKE}"'
852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
853 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
854 if test -n "$ac_maketemp"; then
855 eval ac_cv_prog_make_
${ac_make}_set
=yes
857 eval ac_cv_prog_make_
${ac_make}_set
=no
861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
862 echo "$ac_t""yes" 1>&6
865 echo "$ac_t""no" 1>&6
866 SET_MAKE
="MAKE=${MAKE-make}"
874 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
875 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
877 cat >> confdefs.h
<<EOF
878 #define PACKAGE "$PACKAGE"
881 cat >> confdefs.h
<<EOF
882 #define VERSION "$VERSION"
887 missing_dir
=`cd $ac_aux_dir && pwd`
888 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
889 echo "configure:890: checking for working aclocal" >&5
890 # Run test in a subshell; some versions of sh will print an error if
891 # an executable is not found, even if stderr is redirected.
892 # Redirect stdin to placate older versions of autoconf. Sigh.
893 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
895 echo "$ac_t""found" 1>&6
897 ACLOCAL
="$missing_dir/missing aclocal"
898 echo "$ac_t""missing" 1>&6
901 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
902 echo "configure:903: checking for working autoconf" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf. Sigh.
906 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
908 echo "$ac_t""found" 1>&6
910 AUTOCONF
="$missing_dir/missing autoconf"
911 echo "$ac_t""missing" 1>&6
914 echo $ac_n "checking for working automake""... $ac_c" 1>&6
915 echo "configure:916: checking for working automake" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf. Sigh.
919 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
921 echo "$ac_t""found" 1>&6
923 AUTOMAKE
="$missing_dir/missing automake"
924 echo "$ac_t""missing" 1>&6
927 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
928 echo "configure:929: checking for working autoheader" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf. Sigh.
932 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
933 AUTOHEADER
=autoheader
934 echo "$ac_t""found" 1>&6
936 AUTOHEADER
="$missing_dir/missing autoheader"
937 echo "$ac_t""missing" 1>&6
940 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
941 echo "configure:942: checking for working makeinfo" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf. Sigh.
945 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
947 echo "$ac_t""found" 1>&6
949 MAKEINFO
="$missing_dir/missing makeinfo"
950 echo "$ac_t""missing" 1>&6
955 # Check whether --enable-shared or --disable-shared was given.
956 if test "${enable_shared+set}" = set; then
957 enableval
="$enable_shared"
960 yes) enable_shared
=yes ;;
961 no
) enable_shared
=no
;;
964 # Look at the argument we got. We use all the common list separators.
965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
966 for pkg
in $enableval; do
967 if test "X$pkg" = "X$p"; then
978 # Check whether --enable-static or --disable-static was given.
979 if test "${enable_static+set}" = set; then
980 enableval
="$enable_static"
983 yes) enable_static
=yes ;;
984 no
) enable_static
=no
;;
987 # Look at the argument we got. We use all the common list separators.
988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
989 for pkg
in $enableval; do
990 if test "X$pkg" = "X$p"; then
1001 # Check whether --enable-fast-install or --disable-fast-install was given.
1002 if test "${enable_fast_install+set}" = set; then
1003 enableval
="$enable_fast_install"
1004 p
=${PACKAGE-default}
1005 case "$enableval" in
1006 yes) enable_fast_install
=yes ;;
1007 no
) enable_fast_install
=no
;;
1009 enable_fast_install
=no
1010 # Look at the argument we got. We use all the common list separators.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1012 for pkg
in $enableval; do
1013 if test "X$pkg" = "X$p"; then
1014 enable_fast_install
=yes
1021 enable_fast_install
=yes
1024 # Extract the first word of "gcc", so it can be a program name with args.
1025 set dummy gcc
; ac_word
=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 if test -n "$CC"; then
1032 ac_cv_prog_CC
="$CC" # Let the user override the test.
1034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1036 for ac_dir
in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir
=.
1038 if test -f $ac_dir/$ac_word; then
1047 if test -n "$CC"; then
1048 echo "$ac_t""$CC" 1>&6
1050 echo "$ac_t""no" 1>&6
1053 if test -z "$CC"; then
1054 # Extract the first word of "cc", so it can be a program name with args.
1055 set dummy cc
; ac_word
=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$CC"; then
1062 ac_cv_prog_CC
="$CC" # Let the user override the test.
1064 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1067 for ac_dir
in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1070 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1071 ac_prog_rejected
=yes
1079 if test $ac_prog_rejected = yes; then
1080 # We found a bogon in the path, so make sure we never use it.
1081 set dummy
$ac_cv_prog_CC
1083 if test $# -gt 0; then
1084 # We chose a different compiler from the bogus one.
1085 # However, it has the same basename, so the bogon will be chosen
1086 # first if we set CC to just the basename; use the full file name.
1088 set dummy
"$ac_dir/$ac_word" "$@"
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 case "`uname -s`" in
1105 # Extract the first word of "cl", so it can be a program name with args.
1106 set dummy cl
; ac_word
=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 if test -n "$CC"; then
1113 ac_cv_prog_CC
="$CC" # Let the user override the test.
1115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1117 for ac_dir
in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir
=.
1119 if test -f $ac_dir/$ac_word; then
1128 if test -n "$CC"; then
1129 echo "$ac_t""$CC" 1>&6
1131 echo "$ac_t""no" 1>&6
1136 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144 ac_cpp
='$CPP $CPPFLAGS'
1145 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147 cross_compiling
=$ac_cv_prog_cc_cross
1149 cat > conftest.
$ac_ext << EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1156 if { (eval echo configure
:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1157 ac_cv_prog_cc_works
=yes
1158 # If we can't run a trivial program, we are probably using a cross compiler.
1159 if (.
/conftest
; exit) 2>/dev
/null
; then
1160 ac_cv_prog_cc_cross
=no
1162 ac_cv_prog_cc_cross
=yes
1165 echo "configure: failed program was:" >&5
1166 cat conftest.
$ac_ext >&5
1167 ac_cv_prog_cc_works
=no
1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp
='$CPP $CPPFLAGS'
1173 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling
=$ac_cv_prog_cc_cross
1177 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1178 if test $ac_cv_prog_cc_works = no
; then
1179 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1183 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1184 cross_compiling
=$ac_cv_prog_cc_cross
1186 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether we are using GNU C" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftest.c
<<EOF
1196 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1203 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1205 if test $ac_cv_prog_gcc = yes; then
1211 ac_test_CFLAGS
="${CFLAGS+set}"
1212 ac_save_CFLAGS
="$CFLAGS"
1214 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 echo 'void f(){}' > conftest.c
1220 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1229 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1230 if test "$ac_test_CFLAGS" = set; then
1231 CFLAGS
="$ac_save_CFLAGS"
1232 elif test $ac_cv_prog_cc_g = yes; then
1233 if test "$GCC" = yes; then
1239 if test "$GCC" = yes; then
1246 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1247 if test "${with_gnu_ld+set}" = set; then
1248 withval
="$with_gnu_ld"
1249 test "$withval" = no || with_gnu_ld
=yes
1255 if test "$ac_cv_prog_gcc" = yes; then
1256 # Check if gcc -print-prog-name=ld gives a path.
1257 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1258 echo "configure:1259: checking for ld used by GCC" >&5
1261 # gcc leaves a trailing carriage return which upsets mingw
1262 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1264 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1267 # Accept absolute paths.
1268 [\\/]* |
[A-Za-z
]:[\\/]*)
1269 re_direlt
='/[^/][^/]*/\.\./'
1270 # Canonicalize the path of ld
1271 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1272 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1273 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1275 test -z "$LD" && LD
="$ac_prog"
1278 # If it fails, then pretend we aren't using GCC.
1282 # If it is relative, then search for the first ld in PATH.
1286 elif test "$with_gnu_ld" = yes; then
1287 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1288 echo "configure:1289: checking for GNU ld" >&5
1290 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1291 echo "configure:1292: checking for non-GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -z "$LD"; then
1297 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1298 for ac_dir
in $PATH; do
1299 test -z "$ac_dir" && ac_dir
=.
1300 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1301 ac_cv_path_LD
="$ac_dir/$ac_prog"
1302 # Check to see if the program is GNU ld. I'd rather use --version,
1303 # but apparently some GNU ld's only accept -v.
1304 # Break only if it was the GNU/non-GNU ld that we prefer.
1305 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1306 test "$with_gnu_ld" != no
&& break
1308 test "$with_gnu_ld" != yes && break
1314 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1319 if test -n "$LD"; then
1320 echo "$ac_t""$LD" 1>&6
1322 echo "$ac_t""no" 1>&6
1324 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1325 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1326 echo "configure:1327: checking if the linker ($LD) is GNU ld" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1331 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1332 ac_cv_prog_gnu_ld
=yes
1334 ac_cv_prog_gnu_ld
=no
1338 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1339 with_gnu_ld
=$ac_cv_prog_gnu_ld
1342 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1343 echo "configure:1344: checking for $LD option to reload object files" >&5
1344 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 lt_cv_ld_reload_flag
='-r'
1350 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1351 reload_flag
=$lt_cv_ld_reload_flag
1352 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1354 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1355 echo "configure:1356: checking for BSD-compatible nm" >&5
1356 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test -n "$NM"; then
1360 # Let the user override the test.
1363 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1364 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1365 test -z "$ac_dir" && ac_dir
=.
1366 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1367 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1368 # Check to see if the nm accepts a BSD-compat flag.
1369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1370 # nm: unknown option "B" ignored
1371 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1372 ac_cv_path_NM
="$tmp_nm -B"
1374 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1375 ac_cv_path_NM
="$tmp_nm -p"
1378 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1379 continue # so that we can try to find one that supports BSD flags
1384 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1389 echo "$ac_t""$NM" 1>&6
1391 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether ln -s works" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1397 if ln -s X conftestdata
2>/dev
/null
1400 ac_cv_prog_LN_S
="ln -s"
1405 LN_S
="$ac_cv_prog_LN_S"
1406 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1407 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1413 echo "configure:1414: checking how to recognise dependant libraries" >&5
1414 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 lt_cv_file_magic_cmd
='${MAGIC}'
1418 lt_cv_file_magic_test_file
=
1419 lt_cv_deplibs_check_method
='unknown'
1420 # Need to set the preceding variable on all platforms that support
1421 # interlibrary dependencies.
1422 # 'none' -- dependencies not supported.
1423 # `unknown' -- same as none, but documents that we really don't know.
1424 # 'pass_all' -- all dependencies passed with no checks.
1425 # 'test_compile' -- check by making test program.
1426 # 'file_magic [regex]' -- check by looking for files in library path
1427 # which responds to the $file_magic_cmd with a given egrep regex.
1428 # If you have `file' or equivalent on your system and you're not sure
1429 # whether `pass_all' will *always* work, you probably want this one.
1433 lt_cv_deplibs_check_method
=pass_all
1437 lt_cv_deplibs_check_method
=pass_all
1441 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1442 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1443 lt_cv_file_magic_test_file
=/shlib
/libc.so
1447 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1448 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1452 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1455 lt_cv_deplibs_check_method
=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1456 lt_cv_file_magic_cmd
=/usr
/bin
/file
1457 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1461 lt_cv_deplibs_check_method
=pass_all
1466 lt_cv_deplibs_check_method
=pass_all
1470 # TODO: Does this work for hpux-11 too?
1471 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1472 lt_cv_file_magic_cmd
=/usr
/bin
/file
1473 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1479 # this will be overridden with pass_all, but let us keep it just in case
1480 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1484 *-32|
*"-32 ") libmagic
=32-bit;;
1485 *-n32|
*"-n32 ") libmagic
=N32
;;
1486 *-64|
*"-64 ") libmagic
=64-bit;;
1487 *) libmagic
=never-match
;;
1489 # this will be overridden with pass_all, but let us keep it just in case
1490 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1493 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1494 lt_cv_deplibs_check_method
=pass_all
1497 # This must be Linux ELF.
1500 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1501 lt_cv_deplibs_check_method
=pass_all
;;
1503 # glibc up to 2.1.1 does not perform some relocations on ARM
1504 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1506 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1510 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1512 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1513 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1514 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1518 osf3
* | osf4
* | osf5
*)
1519 # this will be overridden with pass_all, but let us keep it just in case
1520 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1521 lt_cv_file_magic_test_file
=/shlib
/libc.so
1522 lt_cv_deplibs_check_method
=pass_all
1526 lt_cv_deplibs_check_method
=pass_all
1530 lt_cv_deplibs_check_method
=pass_all
1531 lt_cv_file_magic_test_file
=/lib
/libc.so
1534 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1535 case "$host_vendor" in
1537 lt_cv_deplibs_check_method
=pass_all
1540 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]'
1541 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1549 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1550 file_magic_cmd
=$lt_cv_file_magic_cmd
1551 deplibs_check_method
=$lt_cv_deplibs_check_method
1553 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for object suffix" >&5
1555 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1559 echo 'int i = 1;' > conftest.
$ac_ext
1560 if { (eval echo configure
:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561 for ac_file
in conftest.
*; do
1564 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1568 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1573 echo "$ac_t""$ac_cv_objext" 1>&6
1574 OBJEXT
=$ac_cv_objext
1575 ac_objext
=$ac_cv_objext
1579 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1580 echo "configure:1581: checking for executable suffix" >&5
1581 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1588 echo 'int main () { return 0; }' > conftest.
$ac_ext
1590 if { (eval echo configure
:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1591 for file in conftest.
*; do
1593 *.c |
*.o |
*.obj
) ;;
1594 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1598 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1601 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1606 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1607 echo "$ac_t""${ac_cv_exeext}" 1>&6
1610 if test $host != $build; then
1611 ac_tool_prefix
=${host_alias}-
1616 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1618 # Only perform the check for file, if the check method requires it
1619 case "$deplibs_check_method" in
1621 if test "$file_magic_cmd" = '${MAGIC}'; then
1622 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1623 echo "configure:1624: checking for ${ac_tool_prefix}file" >&5
1624 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1632 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1635 ac_save_MAGIC
="$MAGIC"
1636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1637 ac_dummy
="/usr/bin:$PATH"
1638 for ac_dir
in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir
=.
1640 if test -f $ac_dir/${ac_tool_prefix}file; then
1641 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1642 if test -n "$file_magic_test_file"; then
1643 case "$deplibs_check_method" in
1645 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1646 MAGIC
="$lt_cv_path_MAGIC"
1647 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1648 egrep "$file_magic_regex" > /dev
/null
; then
1653 *** Warning: the command libtool uses to detect shared libraries,
1654 *** $file_magic_cmd, produces output that libtool cannot recognize.
1655 *** The result is that libtool may fail to recognize shared libraries
1656 *** as such. This will affect the creation of libtool libraries that
1657 *** depend on shared libraries, but programs linked with such libtool
1658 *** libraries will work regardless of this problem. Nevertheless, you
1659 *** may want to report the problem to your system manager and/or to
1660 *** bug-libtool@gnu.org
1670 MAGIC
="$ac_save_MAGIC"
1675 MAGIC
="$lt_cv_path_MAGIC"
1676 if test -n "$MAGIC"; then
1677 echo "$ac_t""$MAGIC" 1>&6
1679 echo "$ac_t""no" 1>&6
1682 if test -z "$lt_cv_path_MAGIC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 echo $ac_n "checking for file""... $ac_c" 1>&6
1685 echo "configure:1686: checking for file" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1691 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1694 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1697 ac_save_MAGIC
="$MAGIC"
1698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1699 ac_dummy
="/usr/bin:$PATH"
1700 for ac_dir
in $ac_dummy; do
1701 test -z "$ac_dir" && ac_dir
=.
1702 if test -f $ac_dir/file; then
1703 lt_cv_path_MAGIC
="$ac_dir/file"
1704 if test -n "$file_magic_test_file"; then
1705 case "$deplibs_check_method" in
1707 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1708 MAGIC
="$lt_cv_path_MAGIC"
1709 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1710 egrep "$file_magic_regex" > /dev
/null
; then
1715 *** Warning: the command libtool uses to detect shared libraries,
1716 *** $file_magic_cmd, produces output that libtool cannot recognize.
1717 *** The result is that libtool may fail to recognize shared libraries
1718 *** as such. This will affect the creation of libtool libraries that
1719 *** depend on shared libraries, but programs linked with such libtool
1720 *** libraries will work regardless of this problem. Nevertheless, you
1721 *** may want to report the problem to your system manager and/or to
1722 *** bug-libtool@gnu.org
1732 MAGIC
="$ac_save_MAGIC"
1737 MAGIC
="$lt_cv_path_MAGIC"
1738 if test -n "$MAGIC"; then
1739 echo "$ac_t""$MAGIC" 1>&6
1741 echo "$ac_t""no" 1>&6
1753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1754 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 if test -n "$RANLIB"; then
1761 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1763 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1765 for ac_dir
in $ac_dummy; do
1766 test -z "$ac_dir" && ac_dir
=.
1767 if test -f $ac_dir/$ac_word; then
1768 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1775 RANLIB
="$ac_cv_prog_RANLIB"
1776 if test -n "$RANLIB"; then
1777 echo "$ac_t""$RANLIB" 1>&6
1779 echo "$ac_t""no" 1>&6
1783 if test -z "$ac_cv_prog_RANLIB"; then
1784 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "ranlib", so it can be a program name with args.
1786 set dummy ranlib
; ac_word
=$2
1787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_word" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 if test -n "$RANLIB"; then
1793 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1795 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1797 for ac_dir
in $ac_dummy; do
1798 test -z "$ac_dir" && ac_dir
=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_prog_RANLIB
="ranlib"
1805 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1808 RANLIB
="$ac_cv_prog_RANLIB"
1809 if test -n "$RANLIB"; then
1810 echo "$ac_t""$RANLIB" 1>&6
1812 echo "$ac_t""no" 1>&6
1820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$STRIP"; then
1828 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1832 for ac_dir
in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir
=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1842 STRIP
="$ac_cv_prog_STRIP"
1843 if test -n "$STRIP"; then
1844 echo "$ac_t""$STRIP" 1>&6
1846 echo "$ac_t""no" 1>&6
1850 if test -z "$ac_cv_prog_STRIP"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip
; ac_word
=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test -n "$STRIP"; then
1860 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1864 for ac_dir
in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir
=.
1866 if test -f $ac_dir/$ac_word; then
1867 ac_cv_prog_STRIP
="strip"
1872 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1875 STRIP
="$ac_cv_prog_STRIP"
1876 if test -n "$STRIP"; then
1877 echo "$ac_t""$STRIP" 1>&6
1879 echo "$ac_t""no" 1>&6
1888 # Check for any special flags to pass to ltconfig.
1889 libtool_flags
="--cache-file=$cache_file"
1890 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1891 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1892 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1893 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1894 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1897 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1898 if test "${enable_libtool_lock+set}" = set; then
1899 enableval
="$enable_libtool_lock"
1903 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1904 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1906 # Check whether --with-pic or --without-pic was given.
1907 if test "${with_pic+set}" = set; then
1914 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1915 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1917 # Some flags need to be propagated to the compiler or linker for good
1921 # Find out which ABI we are using.
1922 echo '#line 1923 "configure"' > conftest.
$ac_ext
1923 if { (eval echo configure
:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 case "`/usr/bin/file conftest.o`" in
1940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1941 SAVE_CFLAGS
="$CFLAGS"
1942 CFLAGS
="$CFLAGS -belf"
1943 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler needs -belf" >&5
1945 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1951 ac_cpp
='$CPP $CPPFLAGS'
1952 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1953 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1954 cross_compiling
=$ac_cv_prog_cc_cross
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1964 if { (eval echo configure
:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1966 lt_cv_cc_needs_belf
=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 lt_cv_cc_needs_belf
=no
1975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1976 ac_cpp
='$CPP $CPPFLAGS'
1977 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1978 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1979 cross_compiling
=$ac_cv_prog_cc_cross
1983 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1984 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1986 CFLAGS
="$SAVE_CFLAGS"
1994 # Save cache, so that ltconfig can load it
1995 cat > confcache
<<\EOF
1996 # This file is a shell script that caches the results of configure
1997 # tests run on this system so they can be shared between configure
1998 # scripts and configure runs. It is not useful on other systems.
1999 # If it contains results you don't want to keep, you may remove or edit it.
2001 # By default, configure uses ./config.cache as the cache file,
2002 # creating it if it does not exist already. You can give configure
2003 # the --cache-file=FILE option to use a different cache file; that is
2004 # what configure does when it calls configure scripts in
2005 # subdirectories, so they share the cache.
2006 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2007 # config.status only pays attention to the cache file if you give it the
2008 # --recheck option to rerun configure.
2011 # The following way of writing the cache mishandles newlines in values,
2012 # but we know of no workaround that is simple, portable, and efficient.
2013 # So, don't put newlines in cache variables' values.
2014 # Ultrix sh set writes to stderr and can't be redirected directly,
2015 # and sets the high bit in the cache file unless we assign to the vars.
2017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2019 # `set' does not quote correctly, so add quotes (double-quote substitution
2020 # turns \\\\ into \\, and sed turns \\ into \).
2022 -e "s/'/'\\\\''/g" \
2023 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2026 # `set' quotes correctly as required by POSIX, so do not add quotes.
2027 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2030 if cmp -s $cache_file confcache
; then
2033 if test -w $cache_file; then
2034 echo "updating cache $cache_file"
2035 cat confcache
> $cache_file
2037 echo "not updating unwritable cache $cache_file"
2043 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2044 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2045 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2046 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2047 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2048 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2049 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2050 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2051 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2052 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2054 # Reload cache, that may have been modified by ltconfig
2055 if test -r "$cache_file"; then
2056 echo "loading cache $cache_file"
2059 echo "creating cache $cache_file"
2064 # This can be used to rebuild libtool when needed
2065 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2067 # Always use our own libtool.
2068 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2070 # Redirect the config.log output again, so that the ltconfig log is not
2071 # clobbered by the next message.
2072 exec 5>>.
/config.log
2080 # Check whether --enable-targets or --disable-targets was given.
2081 if test "${enable_targets+set}" = set; then
2082 enableval
="$enable_targets"
2083 case "${enableval}" in
2084 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2086 no
) enable_targets
= ;;
2087 *) enable_targets
=$enableval ;;
2090 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2091 if test "${enable_64_bit_bfd+set}" = set; then
2092 enableval
="$enable_64_bit_bfd"
2093 case "${enableval}" in
2096 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2102 build_warnings
="-W -Wall"
2103 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2104 if test "${enable_build_warnings+set}" = set; then
2105 enableval
="$enable_build_warnings"
2106 case "${enableval}" in
2108 no
) build_warnings
="-w";;
2109 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2110 build_warnings
="${build_warnings} ${t}";;
2111 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2112 build_warnings
="${t} ${build_warnings}";;
2113 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2115 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2116 echo "Setting warning flags = $build_warnings" 6>&1
2120 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2121 WARN_CFLAGS
="${build_warnings}"
2129 if test -z "$target" ; then
2130 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2132 if test -z "$host" ; then
2133 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2136 # host-specific stuff:
2138 # Extract the first word of "gcc", so it can be a program name with args.
2139 set dummy gcc
; ac_word
=$2
2140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2141 echo "configure:2142: checking for $ac_word" >&5
2142 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC
="$CC" # Let the user override the test.
2148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2150 for ac_dir
in $ac_dummy; do
2151 test -z "$ac_dir" && ac_dir
=.
2152 if test -f $ac_dir/$ac_word; then
2161 if test -n "$CC"; then
2162 echo "$ac_t""$CC" 1>&6
2164 echo "$ac_t""no" 1>&6
2167 if test -z "$CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc
; ac_word
=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC
="$CC" # Let the user override the test.
2178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2181 for ac_dir
in $ac_dummy; do
2182 test -z "$ac_dir" && ac_dir
=.
2183 if test -f $ac_dir/$ac_word; then
2184 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2185 ac_prog_rejected
=yes
2193 if test $ac_prog_rejected = yes; then
2194 # We found a bogon in the path, so make sure we never use it.
2195 set dummy
$ac_cv_prog_CC
2197 if test $# -gt 0; then
2198 # We chose a different compiler from the bogus one.
2199 # However, it has the same basename, so the bogon will be chosen
2200 # first if we set CC to just the basename; use the full file name.
2202 set dummy
"$ac_dir/$ac_word" "$@"
2210 if test -n "$CC"; then
2211 echo "$ac_t""$CC" 1>&6
2213 echo "$ac_t""no" 1>&6
2216 if test -z "$CC"; then
2217 case "`uname -s`" in
2219 # Extract the first word of "cl", so it can be a program name with args.
2220 set dummy cl
; ac_word
=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC
="$CC" # Let the user override the test.
2229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2231 for ac_dir
in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir
=.
2233 if test -f $ac_dir/$ac_word; then
2242 if test -n "$CC"; then
2243 echo "$ac_t""$CC" 1>&6
2245 echo "$ac_t""no" 1>&6
2250 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2253 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2254 echo "configure:2255: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2258 ac_cpp
='$CPP $CPPFLAGS'
2259 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2260 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2261 cross_compiling
=$ac_cv_prog_cc_cross
2263 cat > conftest.
$ac_ext << EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2271 ac_cv_prog_cc_works
=yes
2272 # If we can't run a trivial program, we are probably using a cross compiler.
2273 if (.
/conftest
; exit) 2>/dev
/null
; then
2274 ac_cv_prog_cc_cross
=no
2276 ac_cv_prog_cc_cross
=yes
2279 echo "configure: failed program was:" >&5
2280 cat conftest.
$ac_ext >&5
2281 ac_cv_prog_cc_works
=no
2285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2286 ac_cpp
='$CPP $CPPFLAGS'
2287 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2288 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2289 cross_compiling
=$ac_cv_prog_cc_cross
2291 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2292 if test $ac_cv_prog_cc_works = no
; then
2293 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2295 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2296 echo "configure:2297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2297 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2298 cross_compiling
=$ac_cv_prog_cc_cross
2300 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether we are using GNU C" >&5
2302 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.c
<<EOF
2310 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2317 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2319 if test $ac_cv_prog_gcc = yes; then
2325 ac_test_CFLAGS
="${CFLAGS+set}"
2326 ac_save_CFLAGS
="$CFLAGS"
2328 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2329 echo "configure:2330: checking whether ${CC-cc} accepts -g" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 echo 'void f(){}' > conftest.c
2334 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2343 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2344 if test "$ac_test_CFLAGS" = set; then
2345 CFLAGS
="$ac_save_CFLAGS"
2346 elif test $ac_cv_prog_cc_g = yes; then
2347 if test "$GCC" = yes; then
2353 if test "$GCC" = yes; then
2360 # Find a good install program. We prefer a C program (faster),
2361 # so one script is as good as another. But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2370 # ./install, which can be erroneously created by make from ./install.sh.
2371 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2372 echo "configure:2373: checking for a BSD compatible install" >&5
2373 if test -z "$INSTALL"; then
2374 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2378 for ac_dir
in $PATH; do
2379 # Account for people who put trailing slashes in PATH elements.
2381 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2386 for ac_prog
in ginstall scoinst
install; do
2387 if test -f $ac_dir/$ac_prog; then
2388 if test $ac_prog = install &&
2389 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2390 # AIX install. It has an incompatible calling convention.
2393 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2404 if test "${ac_cv_path_install+set}" = set; then
2405 INSTALL
="$ac_cv_path_install"
2407 # As a last resort, use the slow shell script. We don't cache a
2408 # path for INSTALL within a source directory, because that will
2409 # break other packages using the cache if that directory is
2410 # removed, or if the path is relative.
2411 INSTALL
="$ac_install_sh"
2414 echo "$ac_t""$INSTALL" 1>&6
2416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417 # It thinks the first close brace ends the variable substitution.
2418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2422 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2426 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2427 echo "configure:2428: checking how to run the C preprocessor" >&5
2428 # On Suns, sometimes $CPP names a directory.
2429 if test -n "$CPP" && test -d "$CPP"; then
2432 if test -z "$CPP"; then
2433 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 # This must be in double quotes, not single quotes, because CPP may get
2437 # substituted into the Makefile and "${CC-cc}" will confuse make.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp.
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 CPP
="${CC-cc} -E -traditional-cpp"
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2464 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2465 { (eval echo configure
:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2466 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2467 if test -z "$ac_err"; then
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 CPP
="${CC-cc} -nologo -E"
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure
:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2498 ac_cv_prog_CPP
="$CPP"
2500 CPP
="$ac_cv_prog_CPP"
2502 ac_cv_prog_CPP
="$CPP"
2504 echo "$ac_t""$CPP" 1>&6
2506 # Extract the first word of "ranlib", so it can be a program name with args.
2507 set dummy ranlib
; ac_word
=$2
2508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_word" >&5
2510 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 if test -n "$RANLIB"; then
2514 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2516 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2518 for ac_dir
in $ac_dummy; do
2519 test -z "$ac_dir" && ac_dir
=.
2520 if test -f $ac_dir/$ac_word; then
2521 ac_cv_prog_RANLIB
="ranlib"
2526 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2529 RANLIB
="$ac_cv_prog_RANLIB"
2530 if test -n "$RANLIB"; then
2531 echo "$ac_t""$RANLIB" 1>&6
2533 echo "$ac_t""no" 1>&6
2536 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2537 echo "configure:2538: checking for POSIXized ISC" >&5
2538 if test -d /etc
/conf
/kconfig.d
&&
2539 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2541 echo "$ac_t""yes" 1>&6
2542 ISC
=yes # If later tests want to check for ISC.
2543 cat >> confdefs.h
<<\EOF
2544 #define _POSIX_SOURCE 1
2547 if test "$GCC" = yes; then
2553 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2558 echo "configure:2559: checking for ANSI C header files" >&5
2559 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 cat > conftest.
$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure
:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2575 ac_cv_header_stdc
=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 ac_cv_header_stdc
=no
2585 if test $ac_cv_header_stdc = yes; then
2586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2593 egrep "memchr" >/dev
/null
2>&1; then
2597 ac_cv_header_stdc
=no
2603 if test $ac_cv_header_stdc = yes; then
2604 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2605 cat > conftest.
$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 egrep "free" >/dev
/null
2>&1; then
2615 ac_cv_header_stdc
=no
2621 if test $ac_cv_header_stdc = yes; then
2622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2623 if test "$cross_compiling" = yes; then
2626 cat > conftest.
$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2630 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2631 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2633 int main () { int i; for (i = 0; i < 256; i++)
2634 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2638 if { (eval echo configure
:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2642 echo "configure: failed program was:" >&5
2643 cat conftest.
$ac_ext >&5
2645 ac_cv_header_stdc
=no
2653 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2654 if test $ac_cv_header_stdc = yes; then
2655 cat >> confdefs.h
<<\EOF
2656 #define STDC_HEADERS 1
2661 echo $ac_n "checking for working const""... $ac_c" 1>&6
2662 echo "configure:2663: checking for working const" >&5
2663 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2672 /* Ultrix mips cc rejects this. */
2673 typedef int charset[2]; const charset x;
2674 /* SunOS 4.1.1 cc rejects this. */
2675 char const *const *ccp;
2677 /* NEC SVR4.0.2 mips cc rejects this. */
2678 struct point {int x, y;};
2679 static struct point const zero = {0,0};
2680 /* AIX XL C 1.02.0.0 rejects this.
2681 It does not let you subtract one const X* pointer from another in an arm
2682 of an if-expression whose if-part is not a constant expression */
2683 const char *g = "string";
2684 ccp = &g + (g ? g-g : 0);
2685 /* HPUX 7.0 cc rejects these. */
2688 ccp = (char const *const *) p;
2689 { /* SCO 3.2v4 cc rejects this. */
2691 char const *s = 0 ? (char *) 0 : (char const *) 0;
2695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2697 const int *foo = &x[0];
2700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2701 typedef const int *iptr;
2705 { /* AIX XL C 1.02.0.0 rejects this saying
2706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2707 struct s { int j; const int *ap[3]; };
2708 struct s *b; b->j = 5;
2710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2716 if { (eval echo configure
:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2728 echo "$ac_t""$ac_cv_c_const" 1>&6
2729 if test $ac_cv_c_const = no
; then
2730 cat >> confdefs.h
<<\EOF
2736 echo $ac_n "checking for inline""... $ac_c" 1>&6
2737 echo "configure:2738: checking for inline" >&5
2738 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2742 for ac_kw
in inline __inline__ __inline
; do
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2751 if { (eval echo configure
:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2753 ac_cv_c_inline
=$ac_kw; break
2755 echo "configure: failed program was:" >&5
2756 cat conftest.
$ac_ext >&5
2763 echo "$ac_t""$ac_cv_c_inline" 1>&6
2764 case "$ac_cv_c_inline" in
2766 no
) cat >> confdefs.h
<<\EOF
2770 *) cat >> confdefs.h
<<EOF
2771 #define inline $ac_cv_c_inline
2776 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2777 echo "configure:2778: checking for off_t" >&5
2778 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 #include <sys/types.h>
2790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2791 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2793 ac_cv_type_off_t
=yes
2801 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2802 if test $ac_cv_type_off_t = no
; then
2803 cat >> confdefs.h
<<\EOF
2809 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2810 echo "configure:2811: checking for size_t" >&5
2811 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 #include <sys/types.h>
2823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2824 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2826 ac_cv_type_size_t
=yes
2829 ac_cv_type_size_t
=no
2834 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2835 if test $ac_cv_type_size_t = no
; then
2836 cat >> confdefs.h
<<\EOF
2837 #define size_t unsigned
2842 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2843 # for constant arguments. Useless!
2844 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2845 echo "configure:2846: checking for working alloca.h" >&5
2846 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.
$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 char *p = alloca(2 * sizeof(int));
2857 if { (eval echo configure
:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2859 ac_cv_header_alloca_h
=yes
2861 echo "configure: failed program was:" >&5
2862 cat conftest.
$ac_ext >&5
2864 ac_cv_header_alloca_h
=no
2869 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2870 if test $ac_cv_header_alloca_h = yes; then
2871 cat >> confdefs.h
<<\EOF
2872 #define HAVE_ALLOCA_H 1
2877 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2878 echo "configure:2879: checking for alloca" >&5
2879 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 # define alloca __builtin_alloca
2890 # include <malloc.h>
2891 # define alloca _alloca
2894 # include <alloca.h>
2899 # ifndef alloca /* predefined by HP cc +Olibcalls */
2908 char *p = (char *) alloca(1);
2911 if { (eval echo configure
:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2913 ac_cv_func_alloca_works
=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 ac_cv_func_alloca_works
=no
2923 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2924 if test $ac_cv_func_alloca_works = yes; then
2925 cat >> confdefs.h
<<\EOF
2926 #define HAVE_ALLOCA 1
2931 if test $ac_cv_func_alloca_works = no
; then
2932 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2933 # that cause trouble. Some versions do not even contain alloca or
2934 # contain a buggy version. If you still want to use their alloca,
2935 # use ar to extract alloca.o from them instead of compiling alloca.c.
2936 ALLOCA
=alloca.
${ac_objext}
2937 cat >> confdefs.h
<<\EOF
2942 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2943 echo "configure:2944: checking whether alloca needs Cray hooks" >&5
2944 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #if defined(CRAY) && ! defined(CRAY2)
2957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2958 egrep "webecray" >/dev
/null
2>&1; then
2969 echo "$ac_t""$ac_cv_os_cray" 1>&6
2970 if test $ac_cv_os_cray = yes; then
2971 for ac_func
in _getb67 GETB67 getb67
; do
2972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_func" >&5
2974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* System header to define __stub macros and hopefully few prototypes,
2981 which can conflict with char $ac_func(); below. */
2983 /* Override any gcc2 internal prototype to avoid an error. */
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2990 /* The GNU C library defines this for functions which it implements
2991 to always fail with ENOSYS. Some functions are actually named
2992 something starting with __ and the normal name is an alias. */
2993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3001 if { (eval echo configure
:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3003 eval "ac_cv_func_$ac_func=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3008 eval "ac_cv_func_$ac_func=no"
3013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3014 echo "$ac_t""yes" 1>&6
3015 cat >> confdefs.h
<<EOF
3016 #define CRAY_STACKSEG_END $ac_func
3021 echo "$ac_t""no" 1>&6
3027 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3028 echo "configure:3029: checking stack direction for C alloca" >&5
3029 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test "$cross_compiling" = yes; then
3033 ac_cv_c_stack_direction
=0
3035 cat > conftest.
$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 find_stack_direction ()
3040 static char *addr = 0;
3045 return find_stack_direction ();
3048 return (&dummy > addr) ? 1 : -1;
3052 exit (find_stack_direction() < 0);
3055 if { (eval echo configure
:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3057 ac_cv_c_stack_direction
=1
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 ac_cv_c_stack_direction
=-1
3069 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3070 cat >> confdefs.h
<<EOF
3071 #define STACK_DIRECTION $ac_cv_c_stack_direction
3076 for ac_hdr
in unistd.h
3078 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_hdr" >&5
3081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.
$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3089 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3090 { (eval echo configure
:3091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3091 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3092 if test -z "$ac_err"; then
3094 eval "ac_cv_header_$ac_safe=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 eval "ac_cv_header_$ac_safe=no"
3104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3107 cat >> confdefs.h
<<EOF
3108 #define $ac_tr_hdr 1
3112 echo "$ac_t""no" 1>&6
3116 for ac_func
in getpagesize
3118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3119 echo "configure:3120: checking for $ac_func" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 /* System header to define __stub macros and hopefully few prototypes,
3127 which can conflict with char $ac_func(); below. */
3129 /* Override any gcc2 internal prototype to avoid an error. */
3130 /* We use char because int might match the return type of a gcc2
3131 builtin and then its argument prototype would still apply. */
3136 /* The GNU C library defines this for functions which it implements
3137 to always fail with ENOSYS. Some functions are actually named
3138 something starting with __ and the normal name is an alias. */
3139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3149 eval "ac_cv_func_$ac_func=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "ac_cv_func_$ac_func=no"
3159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3161 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3162 cat >> confdefs.h
<<EOF
3163 #define $ac_tr_func 1
3167 echo "$ac_t""no" 1>&6
3171 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3172 echo "configure:3173: checking for working mmap" >&5
3173 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test "$cross_compiling" = yes; then
3177 ac_cv_func_mmap_fixed_mapped
=no
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3183 /* Thanks to Mike Haertel and Jim Avera for this test.
3184 Here is a matrix of mmap possibilities:
3185 mmap private not fixed
3186 mmap private fixed at somewhere currently unmapped
3187 mmap private fixed at somewhere already mapped
3188 mmap shared not fixed
3189 mmap shared fixed at somewhere currently unmapped
3190 mmap shared fixed at somewhere already mapped
3191 For private mappings, we should verify that changes cannot be read()
3192 back from the file, nor mmap's back from the file at a different
3193 address. (There have been systems where private was not correctly
3194 implemented like the infamous i386 svr4.0, and systems where the
3195 VM page cache was not coherent with the filesystem buffer cache
3196 like early versions of FreeBSD and possibly contemporary NetBSD.)
3197 For shared mappings, we should conversely verify that changes get
3198 propogated back to all the places they're supposed to be.
3200 Grep wants private fixed already mapped.
3201 The main things grep needs to know about mmap are:
3202 * does it exist and is it safe to write into the mmap'd area
3203 * how to use it (BSD variants) */
3204 #include <sys/types.h>
3206 #include <sys/mman.h>
3208 /* This mess was copied from the GNU getpagesize.h. */
3209 #ifndef HAVE_GETPAGESIZE
3210 # ifdef HAVE_UNISTD_H
3211 # include <unistd.h>
3214 /* Assume that all systems that can run configure have sys/param.h. */
3215 # ifndef HAVE_SYS_PARAM_H
3216 # define HAVE_SYS_PARAM_H 1
3219 # ifdef _SC_PAGESIZE
3220 # define getpagesize() sysconf(_SC_PAGESIZE)
3221 # else /* no _SC_PAGESIZE */
3222 # ifdef HAVE_SYS_PARAM_H
3223 # include <sys/param.h>
3224 # ifdef EXEC_PAGESIZE
3225 # define getpagesize() EXEC_PAGESIZE
3226 # else /* no EXEC_PAGESIZE */
3228 # define getpagesize() NBPG * CLSIZE
3231 # endif /* no CLSIZE */
3232 # else /* no NBPG */
3234 # define getpagesize() NBPC
3235 # else /* no NBPC */
3237 # define getpagesize() PAGESIZE
3238 # endif /* PAGESIZE */
3239 # endif /* no NBPC */
3240 # endif /* no NBPG */
3241 # endif /* no EXEC_PAGESIZE */
3242 # else /* no HAVE_SYS_PARAM_H */
3243 # define getpagesize() 8192 /* punt totally */
3244 # endif /* no HAVE_SYS_PARAM_H */
3245 # endif /* no _SC_PAGESIZE */
3247 #endif /* no HAVE_GETPAGESIZE */
3250 extern "C" { void *malloc(unsigned); }
3258 char *data, *data2, *data3;
3262 pagesize = getpagesize();
3265 * First, make a file with some known garbage in it.
3267 data = malloc(pagesize);
3270 for (i = 0; i < pagesize; ++i)
3271 *(data + i) = rand();
3273 fd = creat("conftestmmap", 0600);
3276 if (write(fd, data, pagesize) != pagesize)
3281 * Next, try to mmap the file at a fixed address which
3282 * already has something else allocated at it. If we can,
3283 * also make sure that we see the same garbage.
3285 fd = open("conftestmmap", O_RDWR);
3288 data2 = malloc(2 * pagesize);
3291 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3292 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3293 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3295 for (i = 0; i < pagesize; ++i)
3296 if (*(data + i) != *(data2 + i))
3300 * Finally, make sure that changes to the mapped area
3301 * do not percolate back to the file as seen by read().
3302 * (This is a bug on some variants of i386 svr4.0.)
3304 for (i = 0; i < pagesize; ++i)
3305 *(data2 + i) = *(data2 + i) + 1;
3306 data3 = malloc(pagesize);
3309 if (read(fd, data3, pagesize) != pagesize)
3311 for (i = 0; i < pagesize; ++i)
3312 if (*(data + i) != *(data3 + i))
3315 unlink("conftestmmap");
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3322 ac_cv_func_mmap_fixed_mapped
=yes
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 ac_cv_func_mmap_fixed_mapped
=no
3334 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3335 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3336 cat >> confdefs.h
<<\EOF
3343 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3344 unistd.h values.h sys
/param.h
3346 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_hdr" >&5
3349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3358 { (eval echo configure
:3359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3360 if test -z "$ac_err"; then
3362 eval "ac_cv_header_$ac_safe=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3368 eval "ac_cv_header_$ac_safe=no"
3372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3373 echo "$ac_t""yes" 1>&6
3374 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3375 cat >> confdefs.h
<<EOF
3376 #define $ac_tr_hdr 1
3380 echo "$ac_t""no" 1>&6
3384 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3385 __argz_count __argz_stringify __argz_next
3387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3388 echo "configure:3389: checking for $ac_func" >&5
3389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 cat > conftest.
$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 /* System header to define __stub macros and hopefully few prototypes,
3396 which can conflict with char $ac_func(); below. */
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3405 /* The GNU C library defines this for functions which it implements
3406 to always fail with ENOSYS. Some functions are actually named
3407 something starting with __ and the normal name is an alias. */
3408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3416 if { (eval echo configure
:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3418 eval "ac_cv_func_$ac_func=yes"
3420 echo "configure: failed program was:" >&5
3421 cat conftest.
$ac_ext >&5
3423 eval "ac_cv_func_$ac_func=no"
3428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3431 cat >> confdefs.h
<<EOF
3432 #define $ac_tr_func 1
3436 echo "$ac_t""no" 1>&6
3441 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3442 for ac_func
in stpcpy
3444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_func" >&5
3446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.
$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* System header to define __stub macros and hopefully few prototypes,
3453 which can conflict with char $ac_func(); below. */
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3462 /* The GNU C library defines this for functions which it implements
3463 to always fail with ENOSYS. Some functions are actually named
3464 something starting with __ and the normal name is an alias. */
3465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3473 if { (eval echo configure
:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3475 eval "ac_cv_func_$ac_func=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 eval "ac_cv_func_$ac_func=no"
3485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3487 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3488 cat >> confdefs.h
<<EOF
3489 #define $ac_tr_func 1
3493 echo "$ac_t""no" 1>&6
3498 if test "${ac_cv_func_stpcpy}" = "yes"; then
3499 cat >> confdefs.h
<<\EOF
3500 #define HAVE_STPCPY 1
3505 if test $ac_cv_header_locale_h = yes; then
3506 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3507 echo "configure:3508: checking for LC_MESSAGES" >&5
3508 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.
$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3519 if { (eval echo configure
:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3521 am_cv_val_LC_MESSAGES
=yes
3523 echo "configure: failed program was:" >&5
3524 cat conftest.
$ac_ext >&5
3526 am_cv_val_LC_MESSAGES
=no
3531 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3532 if test $am_cv_val_LC_MESSAGES = yes; then
3533 cat >> confdefs.h
<<\EOF
3534 #define HAVE_LC_MESSAGES 1
3539 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3540 echo "configure:3541: checking whether NLS is requested" >&5
3541 # Check whether --enable-nls or --disable-nls was given.
3542 if test "${enable_nls+set}" = set; then
3543 enableval
="$enable_nls"
3549 echo "$ac_t""$USE_NLS" 1>&6
3552 USE_INCLUDED_LIBINTL
=no
3554 if test "$USE_NLS" = "yes"; then
3555 cat >> confdefs.h
<<\EOF
3556 #define ENABLE_NLS 1
3559 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3560 echo "configure:3561: checking whether included gettext is requested" >&5
3561 # Check whether --with-included-gettext or --without-included-gettext was given.
3562 if test "${with_included_gettext+set}" = set; then
3563 withval
="$with_included_gettext"
3564 nls_cv_force_use_gnu_gettext
=$withval
3566 nls_cv_force_use_gnu_gettext
=no
3569 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3571 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3572 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3574 nls_cv_header_libgt
=
3577 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3578 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3579 echo "configure:3580: checking for libintl.h" >&5
3580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <libintl.h>
3588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure
:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3593 eval "ac_cv_header_$ac_safe=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 eval "ac_cv_header_$ac_safe=no"
3603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3606 echo "configure:3607: checking for gettext in libc" >&5
3607 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <libintl.h>
3615 return (int) gettext ("")
3618 if { (eval echo configure
:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3620 gt_cv_func_gettext_libc
=yes
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3625 gt_cv_func_gettext_libc
=no
3630 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3632 if test "$gt_cv_func_gettext_libc" != "yes"; then
3633 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3634 echo "configure:3635: checking for bindtextdomain in -lintl" >&5
3635 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 ac_save_LIBS
="$LIBS"
3641 cat > conftest.
$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 /* Override any gcc2 internal prototype to avoid an error. */
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647 char bindtextdomain();
3653 if { (eval echo configure
:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3655 eval "ac_cv_lib_$ac_lib_var=yes"
3657 echo "configure: failed program was:" >&5
3658 cat conftest.
$ac_ext >&5
3660 eval "ac_cv_lib_$ac_lib_var=no"
3663 LIBS
="$ac_save_LIBS"
3666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3669 echo "configure:3670: checking for gettext in libintl" >&5
3670 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.
$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3678 return (int) gettext ("")
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3683 gt_cv_func_gettext_libintl
=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 gt_cv_func_gettext_libintl
=no
3693 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3695 echo "$ac_t""no" 1>&6
3700 if test "$gt_cv_func_gettext_libc" = "yes" \
3701 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3702 cat >> confdefs.h
<<\EOF
3703 #define HAVE_GETTEXT 1
3706 # Extract the first word of "msgfmt", so it can be a program name with args.
3707 set dummy msgfmt
; ac_word
=$2
3708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3709 echo "configure:3710: checking for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3715 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3719 for ac_dir
in $PATH; do
3720 test -z "$ac_dir" && ac_dir
=.
3721 if test -f $ac_dir/$ac_word; then
3722 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3723 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3733 MSGFMT
="$ac_cv_path_MSGFMT"
3734 if test -n "$MSGFMT"; then
3735 echo "$ac_t""$MSGFMT" 1>&6
3737 echo "$ac_t""no" 1>&6
3739 if test "$MSGFMT" != "no"; then
3740 for ac_func
in dcgettext
3742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_func" >&5
3744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* System header to define __stub macros and hopefully few prototypes,
3751 which can conflict with char $ac_func(); below. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3760 /* The GNU C library defines this for functions which it implements
3761 to always fail with ENOSYS. Some functions are actually named
3762 something starting with __ and the normal name is an alias. */
3763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3771 if { (eval echo configure
:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3773 eval "ac_cv_func_$ac_func=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 eval "ac_cv_func_$ac_func=no"
3783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3786 cat >> confdefs.h
<<EOF
3787 #define $ac_tr_func 1
3791 echo "$ac_t""no" 1>&6
3795 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3796 set dummy gmsgfmt
; ac_word
=$2
3797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_word" >&5
3799 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3804 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3807 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3812 for ac_dir
in $ac_dummy; do
3813 test -z "$ac_dir" && ac_dir
=.
3814 if test -f $ac_dir/$ac_word; then
3815 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3820 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3824 GMSGFMT
="$ac_cv_path_GMSGFMT"
3825 if test -n "$GMSGFMT"; then
3826 echo "$ac_t""$GMSGFMT" 1>&6
3828 echo "$ac_t""no" 1>&6
3831 # Extract the first word of "xgettext", so it can be a program name with args.
3832 set dummy xgettext
; ac_word
=$2
3833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3834 echo "configure:3835: checking for $ac_word" >&5
3835 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3844 for ac_dir
in $PATH; do
3845 test -z "$ac_dir" && ac_dir
=.
3846 if test -f $ac_dir/$ac_word; then
3847 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3848 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3854 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3858 XGETTEXT
="$ac_cv_path_XGETTEXT"
3859 if test -n "$XGETTEXT"; then
3860 echo "$ac_t""$XGETTEXT" 1>&6
3862 echo "$ac_t""no" 1>&6
3865 cat > conftest.
$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3870 extern int _nl_msg_cat_cntr;
3871 return _nl_msg_cat_cntr
3874 if { (eval echo configure
:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3891 echo "$ac_t""no" 1>&6
3896 if test "$CATOBJEXT" = "NONE"; then
3897 nls_cv_use_gnu_gettext
=yes
3901 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3902 INTLOBJS
="\$(GETTOBJS)"
3903 # Extract the first word of "msgfmt", so it can be a program name with args.
3904 set dummy msgfmt
; ac_word
=$2
3905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_word" >&5
3907 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3915 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3916 for ac_dir
in $PATH; do
3917 test -z "$ac_dir" && ac_dir
=.
3918 if test -f $ac_dir/$ac_word; then
3919 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3920 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3926 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3930 MSGFMT
="$ac_cv_path_MSGFMT"
3931 if test -n "$MSGFMT"; then
3932 echo "$ac_t""$MSGFMT" 1>&6
3934 echo "$ac_t""no" 1>&6
3937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3938 set dummy gmsgfmt
; ac_word
=$2
3939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_word" >&5
3941 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3946 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3949 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3952 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3954 for ac_dir
in $ac_dummy; do
3955 test -z "$ac_dir" && ac_dir
=.
3956 if test -f $ac_dir/$ac_word; then
3957 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3962 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3966 GMSGFMT
="$ac_cv_path_GMSGFMT"
3967 if test -n "$GMSGFMT"; then
3968 echo "$ac_t""$GMSGFMT" 1>&6
3970 echo "$ac_t""no" 1>&6
3973 # Extract the first word of "xgettext", so it can be a program name with args.
3974 set dummy xgettext
; ac_word
=$2
3975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_word" >&5
3977 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3982 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3986 for ac_dir
in $PATH; do
3987 test -z "$ac_dir" && ac_dir
=.
3988 if test -f $ac_dir/$ac_word; then
3989 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3990 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3996 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4000 XGETTEXT
="$ac_cv_path_XGETTEXT"
4001 if test -n "$XGETTEXT"; then
4002 echo "$ac_t""$XGETTEXT" 1>&6
4004 echo "$ac_t""no" 1>&6
4008 USE_INCLUDED_LIBINTL
=yes
4012 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4014 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4015 nls_cv_header_intl
=libintl.h
4016 nls_cv_header_libgt
=libgettext.h
4019 if test "$XGETTEXT" != ":"; then
4020 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4023 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4028 # We need to process the po/ directory.
4032 nls_cv_header_intl
=libintl.h
4033 nls_cv_header_libgt
=libgettext.h
4036 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4037 # because some of the sources are only built for this goal.
4038 if test "$PACKAGE" = gettext; then
4040 USE_INCLUDED_LIBINTL
=yes
4043 for lang
in $ALL_LINGUAS; do
4044 GMOFILES
="$GMOFILES $lang.gmo"
4045 POFILES
="$POFILES $lang.po"
4061 if test "x$CATOBJEXT" != "x"; then
4062 if test "x$ALL_LINGUAS" = "x"; then
4065 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4066 echo "configure:4067: checking for catalogs to be installed" >&5
4068 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4069 case "$ALL_LINGUAS" in
4070 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4073 LINGUAS
=$NEW_LINGUAS
4074 echo "$ac_t""$LINGUAS" 1>&6
4077 if test -n "$LINGUAS"; then
4078 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4082 if test $ac_cv_header_locale_h = yes; then
4083 INCLUDE_LOCALE_H
="#include <locale.h>"
4086 /* The system does not provide the header <locale.h>. Take care yourself. */"
4090 if test -f $srcdir/po2tbl.
sed.
in; then
4091 if test "$CATOBJEXT" = ".cat"; then
4092 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4093 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4094 echo "configure:4095: checking for linux/version.h" >&5
4095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 cat > conftest.
$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4101 #include <linux/version.h>
4103 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4104 { (eval echo configure
:4105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4105 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4106 if test -z "$ac_err"; then
4108 eval "ac_cv_header_$ac_safe=yes"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.
$ac_ext >&5
4114 eval "ac_cv_header_$ac_safe=no"
4118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4122 echo "$ac_t""no" 1>&6
4127 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4129 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4130 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4133 if test "$PACKAGE" = "gettext"; then
4143 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4149 if test -d $srcdir/po
; then
4150 test -d po || mkdir po
4151 if test "x$srcdir" != "x."; then
4152 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4153 posrcprefix
="$srcdir/"
4155 posrcprefix
="../$srcdir/"
4161 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4162 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4168 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4169 echo "configure:4170: checking for executable suffix" >&5
4170 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4173 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4177 echo 'int main () { return 0; }' > conftest.
$ac_ext
4179 if { (eval echo configure
:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4180 for file in conftest.
*; do
4182 *.c |
*.o |
*.obj
) ;;
4183 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4187 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4190 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4195 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4196 echo "$ac_t""${ac_cv_exeext}" 1>&6
4200 for ac_prog
in 'bison -y' byacc
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy
$ac_prog; ac_word
=$2
4204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4205 echo "configure:4206: checking for $ac_word" >&5
4206 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 if test -n "$YACC"; then
4210 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4214 for ac_dir
in $ac_dummy; do
4215 test -z "$ac_dir" && ac_dir
=.
4216 if test -f $ac_dir/$ac_word; then
4217 ac_cv_prog_YACC
="$ac_prog"
4224 YACC
="$ac_cv_prog_YACC"
4225 if test -n "$YACC"; then
4226 echo "$ac_t""$YACC" 1>&6
4228 echo "$ac_t""no" 1>&6
4231 test -n "$YACC" && break
4233 test -n "$YACC" || YACC
="yacc"
4235 missing_dir
=`cd $ac_aux_dir && pwd`
4236 for ac_prog
in flex
lex
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy
$ac_prog; ac_word
=$2
4240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_word" >&5
4242 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 if test -n "$LEX"; then
4246 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4248 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4250 for ac_dir
in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir
=.
4252 if test -f $ac_dir/$ac_word; then
4253 ac_cv_prog_LEX
="$ac_prog"
4260 LEX
="$ac_cv_prog_LEX"
4261 if test -n "$LEX"; then
4262 echo "$ac_t""$LEX" 1>&6
4264 echo "$ac_t""no" 1>&6
4267 test -n "$LEX" && break
4269 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
4271 # Extract the first word of "flex", so it can be a program name with args.
4272 set dummy flex
; ac_word
=$2
4273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4274 echo "configure:4275: checking for $ac_word" >&5
4275 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 if test -n "$LEX"; then
4279 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4281 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4283 for ac_dir
in $ac_dummy; do
4284 test -z "$ac_dir" && ac_dir
=.
4285 if test -f $ac_dir/$ac_word; then
4286 ac_cv_prog_LEX
="flex"
4291 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4294 LEX
="$ac_cv_prog_LEX"
4295 if test -n "$LEX"; then
4296 echo "$ac_t""$LEX" 1>&6
4298 echo "$ac_t""no" 1>&6
4301 if test -z "$LEXLIB"
4307 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4308 echo "configure:4309: checking for yywrap in -l$ac_lib" >&5
4309 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 ac_save_LIBS
="$LIBS"
4314 LIBS
="-l$ac_lib $LIBS"
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4327 if { (eval echo configure
:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4329 eval "ac_cv_lib_$ac_lib_var=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4334 eval "ac_cv_lib_$ac_lib_var=no"
4337 LIBS
="$ac_save_LIBS"
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4344 echo "$ac_t""no" 1>&6
4349 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4350 echo "configure:4351: checking lex output file root" >&5
4351 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 # The minimal lex program is just a single line: %%. But some broken lexes
4355 # (Solaris, I think it was) want two %% lines, so accommodate them.
4358 if test -f lex.yy.c
; then
4359 ac_cv_prog_lex_root
=lex.yy
4360 elif test -f lexyy.c
; then
4361 ac_cv_prog_lex_root
=lexyy
4363 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4367 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4368 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4370 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4371 echo "configure:4372: checking whether yytext is a pointer" >&5
4372 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 # POSIX says lex can declare yytext either as a pointer or an array; the
4376 # default is implementation-dependent. Figure out which it is, since
4377 # not all implementations provide the %pointer and %array declarations.
4378 ac_cv_prog_lex_yytext_pointer
=no
4379 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4380 ac_save_LIBS
="$LIBS"
4381 LIBS
="$LIBS $LEXLIB"
4382 cat > conftest.
$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 `cat $LEX_OUTPUT_ROOT.c`
4390 if { (eval echo configure
:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4392 ac_cv_prog_lex_yytext_pointer
=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.
$ac_ext >&5
4398 LIBS
="$ac_save_LIBS"
4399 rm -f "${LEX_OUTPUT_ROOT}.c"
4403 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4404 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4405 cat >> confdefs.h
<<\EOF
4406 #define YYTEXT_POINTER 1
4412 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4413 echo "configure:4414: checking whether to enable maintainer-specific portions of Makefiles" >&5
4414 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4415 if test "${enable_maintainer_mode+set}" = set; then
4416 enableval
="$enable_maintainer_mode"
4417 USE_MAINTAINER_MODE
=$enableval
4419 USE_MAINTAINER_MODE
=no
4422 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4425 if test $USE_MAINTAINER_MODE = yes; then
4426 MAINTAINER_MODE_TRUE
=
4427 MAINTAINER_MODE_FALSE
='#'
4429 MAINTAINER_MODE_TRUE
='#'
4430 MAINTAINER_MODE_FALSE
=
4432 MAINT
=$MAINTAINER_MODE_TRUE
4436 .
${srcdir}/configure.
host
4443 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4445 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure
:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4461 eval "ac_cv_header_$ac_safe=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 eval "ac_cv_header_$ac_safe=no"
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h
<<EOF
4475 #define $ac_tr_hdr 1
4479 echo "$ac_t""no" 1>&6
4485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4486 echo "configure:4487: checking for $ac_func" >&5
4487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* System header to define __stub macros and hopefully few prototypes,
4494 which can conflict with char $ac_func(); below. */
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4514 if { (eval echo configure
:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4516 eval "ac_cv_func_$ac_func=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.
$ac_ext >&5
4521 eval "ac_cv_func_$ac_func=no"
4526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4527 echo "$ac_t""yes" 1>&6
4528 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4529 cat >> confdefs.h
<<EOF
4530 #define $ac_tr_func 1
4534 echo "$ac_t""no" 1>&6
4539 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_hdr that defines DIR" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.
$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 #include <sys/types.h>
4556 if { (eval echo configure
:4557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4558 eval "ac_cv_header_dirent_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4563 eval "ac_cv_header_dirent_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4570 cat >> confdefs.h
<<EOF
4571 #define $ac_tr_hdr 1
4573 ac_header_dirent
=$ac_hdr; break
4575 echo "$ac_t""no" 1>&6
4578 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4579 if test $ac_header_dirent = dirent.h
; then
4580 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4581 echo "configure:4582: checking for opendir in -ldir" >&5
4582 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 ac_save_LIBS
="$LIBS"
4588 cat > conftest.
$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 /* Override any gcc2 internal prototype to avoid an error. */
4592 /* We use char because int might match the return type of a gcc2
4593 builtin and then its argument prototype would still apply. */
4600 if { (eval echo configure
:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4602 eval "ac_cv_lib_$ac_lib_var=yes"
4604 echo "configure: failed program was:" >&5
4605 cat conftest.
$ac_ext >&5
4607 eval "ac_cv_lib_$ac_lib_var=no"
4610 LIBS
="$ac_save_LIBS"
4613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6
4617 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4622 echo "configure:4623: checking for opendir in -lx" >&5
4623 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS
="$LIBS"
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure
:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.
$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS
="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4658 echo "$ac_t""no" 1>&6
4666 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4667 cat >> confdefs.h
<<\EOF
4668 #define USE_BINARY_FOPEN 1
4673 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether strstr must be declared" >&5
4675 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 #ifdef HAVE_STRING_H
4686 #ifdef HAVE_STRINGS_H
4687 #include <strings.h>
4690 #ifdef HAVE_STDLIB_H
4693 #ifdef HAVE_UNISTD_H
4697 char *(*pfn) = (char *(*)) strstr
4700 if { (eval echo configure
:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4702 bfd_cv_decl_needed_strstr
=no
4704 echo "configure: failed program was:" >&5
4705 cat conftest.
$ac_ext >&5
4707 bfd_cv_decl_needed_strstr
=yes
4712 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4713 if test $bfd_cv_decl_needed_strstr = yes; then
4714 cat >> confdefs.h
<<\EOF
4715 #define NEED_DECLARATION_STRSTR 1
4720 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4721 echo "configure:4722: checking whether free must be declared" >&5
4722 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 cat > conftest.
$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4730 #ifdef HAVE_STRING_H
4733 #ifdef HAVE_STRINGS_H
4734 #include <strings.h>
4737 #ifdef HAVE_STDLIB_H
4740 #ifdef HAVE_UNISTD_H
4744 char *(*pfn) = (char *(*)) free
4747 if { (eval echo configure
:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4749 bfd_cv_decl_needed_free
=no
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 bfd_cv_decl_needed_free
=yes
4759 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4760 if test $bfd_cv_decl_needed_free = yes; then
4761 cat >> confdefs.h
<<\EOF
4762 #define NEED_DECLARATION_FREE 1
4767 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4768 echo "configure:4769: checking whether sbrk must be declared" >&5
4769 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.
$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4777 #ifdef HAVE_STRING_H
4780 #ifdef HAVE_STRINGS_H
4781 #include <strings.h>
4784 #ifdef HAVE_STDLIB_H
4787 #ifdef HAVE_UNISTD_H
4791 char *(*pfn) = (char *(*)) sbrk
4794 if { (eval echo configure
:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4796 bfd_cv_decl_needed_sbrk
=no
4798 echo "configure: failed program was:" >&5
4799 cat conftest.
$ac_ext >&5
4801 bfd_cv_decl_needed_sbrk
=yes
4806 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4807 if test $bfd_cv_decl_needed_sbrk = yes; then
4808 cat >> confdefs.h
<<\EOF
4809 #define NEED_DECLARATION_SBRK 1
4814 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4815 echo "configure:4816: checking whether getenv must be declared" >&5
4816 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.
$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4824 #ifdef HAVE_STRING_H
4827 #ifdef HAVE_STRINGS_H
4828 #include <strings.h>
4831 #ifdef HAVE_STDLIB_H
4834 #ifdef HAVE_UNISTD_H
4838 char *(*pfn) = (char *(*)) getenv
4841 if { (eval echo configure
:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843 bfd_cv_decl_needed_getenv
=no
4845 echo "configure: failed program was:" >&5
4846 cat conftest.
$ac_ext >&5
4848 bfd_cv_decl_needed_getenv
=yes
4853 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4854 if test $bfd_cv_decl_needed_getenv = yes; then
4855 cat >> confdefs.h
<<\EOF
4856 #define NEED_DECLARATION_GETENV 1
4861 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4862 echo "configure:4863: checking whether environ must be declared" >&5
4863 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 cat > conftest.
$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4871 #ifdef HAVE_STRING_H
4874 #ifdef HAVE_STRINGS_H
4875 #include <strings.h>
4878 #ifdef HAVE_STDLIB_H
4881 #ifdef HAVE_UNISTD_H
4885 char *(*pfn) = (char *(*)) environ
4888 if { (eval echo configure
:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4890 bfd_cv_decl_needed_environ
=no
4892 echo "configure: failed program was:" >&5
4893 cat conftest.
$ac_ext >&5
4895 bfd_cv_decl_needed_environ
=yes
4900 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4901 if test $bfd_cv_decl_needed_environ = yes; then
4902 cat >> confdefs.h
<<\EOF
4903 #define NEED_DECLARATION_ENVIRON 1
4909 # When converting linker scripts into strings for use in emulation
4910 # files, use astring.sed if the compiler supports ANSI string
4911 # concatenation, or ostring.sed otherwise. This is to support the
4912 # broken Microsoft MSVC compiler, which limits the length of string
4913 # constants, while still supporting pre-ANSI compilers which do not
4914 # support string concatenation.
4915 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4916 echo "configure:4917: checking whether ANSI C string concatenation works" >&5
4917 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4928 if { (eval echo configure
:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 ld_cv_string_concatenation
=yes
4932 echo "configure: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4935 ld_cv_string_concatenation
=no
4940 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4941 if test "$ld_cv_string_concatenation" = "yes"; then
4942 STRINGIFY
=astring.
sed
4944 STRINGIFY
=ostring.
sed
4948 # target-specific stuff:
4958 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4960 if test "$targ_alias" = "all"; then
4963 # Canonicalize the secondary target names.
4964 result
=`$ac_config_sub $targ_alias 2>/dev/null`
4965 if test -n "$result"; then
4971 .
${srcdir}/configure.tgt
4973 if test "$targ" = "$target"; then
4977 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4978 case " $all_emuls " in
4981 all_emuls
="$all_emuls e${i}.o"
4982 eval result
=\
$tdir_$i
4983 test -z "$result" && result
=$targ_alias
4984 echo tdir_
$i=$result >> tdirs
4989 for i
in $targ_emul $targ_extra_libpath; do
4990 case " $all_libpath " in
4993 if test -z "$all_libpath"; then
4996 all_libpath
="$all_libpath ${i}"
5002 for i
in $targ_extra_ofiles; do
5003 case " $all_emul_extras " in
5006 all_emul_extras
="$all_emul_extras ${i}"
5018 if test x
${all_targets} = xtrue
; then
5019 if test x
${want64} = xtrue
; then
5020 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5022 EMULATION_OFILES
='$(ALL_EMULATIONS)'
5024 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
5026 EMULATION_OFILES
=$all_emuls
5027 EMUL_EXTRA_OFILES
=$all_emul_extras
5032 EMULATION_LIBPATH
=$all_libpath
5035 if test x
${enable_static} = xno
; then
5036 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5038 TESTBFDLIB
="../bfd/.libs/libbfd.a"
5042 target_vendor
=${target_vendor=$host_vendor}
5043 case "$target_vendor" in
5044 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
5045 *) EXTRA_SHLIB_EXTENSION
= ;;
5047 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
5048 cat >> confdefs.h
<<EOF
5049 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5055 cat > confcache
<<\EOF
5056 # This file is a shell script that caches the results of configure
5057 # tests run on this system so they can be shared between configure
5058 # scripts and configure runs. It is not useful on other systems.
5059 # If it contains results you don't want to keep, you may remove or edit it.
5061 # By default, configure uses ./config.cache as the cache file,
5062 # creating it if it does not exist already. You can give configure
5063 # the --cache-file=FILE option to use a different cache file; that is
5064 # what configure does when it calls configure scripts in
5065 # subdirectories, so they share the cache.
5066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5067 # config.status only pays attention to the cache file if you give it the
5068 # --recheck option to rerun configure.
5071 # The following way of writing the cache mishandles newlines in values,
5072 # but we know of no workaround that is simple, portable, and efficient.
5073 # So, don't put newlines in cache variables' values.
5074 # Ultrix sh set writes to stderr and can't be redirected directly,
5075 # and sets the high bit in the cache file unless we assign to the vars.
5077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5079 # `set' does not quote correctly, so add quotes (double-quote substitution
5080 # turns \\\\ into \\, and sed turns \\ into \).
5082 -e "s/'/'\\\\''/g" \
5083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5086 # `set' quotes correctly as required by POSIX, so do not add quotes.
5087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5090 if cmp -s $cache_file confcache
; then
5093 if test -w $cache_file; then
5094 echo "updating cache $cache_file"
5095 cat confcache
> $cache_file
5097 echo "not updating unwritable cache $cache_file"
5102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5104 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5105 # Let make expand exec_prefix.
5106 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5108 # Any assignment to VPATH causes Sun make to only execute
5109 # the first set of double-colon rules, so remove it if not needed.
5110 # If there is a colon in the path, we need to keep it.
5111 if test "x$srcdir" = x.
; then
5112 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5117 DEFS
=-DHAVE_CONFIG_H
5119 # Without the "./", some shells look in PATH for config.status.
5120 : ${CONFIG_STATUS=./config.status}
5122 echo creating
$CONFIG_STATUS
5123 rm -f $CONFIG_STATUS
5124 cat > $CONFIG_STATUS <<EOF
5126 # Generated automatically by configure.
5127 # Run this file to recreate the current configuration.
5128 # This directory was configured as follows,
5129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5131 # $0 $ac_configure_args
5133 # Compiler output produced by configure, useful for debugging
5134 # configure, is in ./config.log if it exists.
5136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5139 case "\$ac_option" in
5140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5141 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5142 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5143 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5144 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5146 -help | --help | --hel | --he | --h)
5147 echo "\$ac_cs_usage"; exit 0 ;;
5148 *) echo "\$ac_cs_usage"; exit 1 ;;
5152 ac_given_srcdir=$srcdir
5153 ac_given_INSTALL="$INSTALL"
5155 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5157 cat >> $CONFIG_STATUS <<EOF
5159 # Protect against being on the right side of a sed subst in config.status.
5160 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5161 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5165 s%@CFLAGS@%$CFLAGS%g
5166 s%@CPPFLAGS@%$CPPFLAGS%g
5167 s%@CXXFLAGS@%$CXXFLAGS%g
5168 s%@FFLAGS@%$FFLAGS%g
5170 s%@LDFLAGS@%$LDFLAGS%g
5172 s%@exec_prefix@%$exec_prefix%g
5173 s%@prefix@%$prefix%g
5174 s%@program_transform_name@%$program_transform_name%g
5175 s%@bindir@%$bindir%g
5176 s%@sbindir@%$sbindir%g
5177 s%@libexecdir@%$libexecdir%g
5178 s%@datadir@%$datadir%g
5179 s%@sysconfdir@%$sysconfdir%g
5180 s%@sharedstatedir@%$sharedstatedir%g
5181 s%@localstatedir@%$localstatedir%g
5182 s%@libdir@%$libdir%g
5183 s%@includedir@%$includedir%g
5184 s%@oldincludedir@%$oldincludedir%g
5185 s%@infodir@%$infodir%g
5186 s%@mandir@%$mandir%g
5188 s%@host_alias@%$host_alias%g
5189 s%@host_cpu@%$host_cpu%g
5190 s%@host_vendor@%$host_vendor%g
5191 s%@host_os@%$host_os%g
5192 s%@target@%$target%g
5193 s%@target_alias@%$target_alias%g
5194 s%@target_cpu@%$target_cpu%g
5195 s%@target_vendor@%$target_vendor%g
5196 s%@target_os@%$target_os%g
5198 s%@build_alias@%$build_alias%g
5199 s%@build_cpu@%$build_cpu%g
5200 s%@build_vendor@%$build_vendor%g
5201 s%@build_os@%$build_os%g
5202 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5203 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5204 s%@INSTALL_DATA@%$INSTALL_DATA%g
5205 s%@PACKAGE@%$PACKAGE%g
5206 s%@VERSION@%$VERSION%g
5207 s%@ACLOCAL@%$ACLOCAL%g
5208 s%@AUTOCONF@%$AUTOCONF%g
5209 s%@AUTOMAKE@%$AUTOMAKE%g
5210 s%@AUTOHEADER@%$AUTOHEADER%g
5211 s%@MAKEINFO@%$MAKEINFO%g
5212 s%@SET_MAKE@%$SET_MAKE%g
5215 s%@OBJEXT@%$OBJEXT%g
5216 s%@EXEEXT@%$EXEEXT%g
5217 s%@RANLIB@%$RANLIB%g
5219 s%@LIBTOOL@%$LIBTOOL%g
5220 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5222 s%@ALLOCA@%$ALLOCA%g
5223 s%@USE_NLS@%$USE_NLS%g
5224 s%@MSGFMT@%$MSGFMT%g
5225 s%@GMSGFMT@%$GMSGFMT%g
5226 s%@XGETTEXT@%$XGETTEXT%g
5227 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5228 s%@CATALOGS@%$CATALOGS%g
5229 s%@CATOBJEXT@%$CATOBJEXT%g
5230 s%@DATADIRNAME@%$DATADIRNAME%g
5231 s%@GMOFILES@%$GMOFILES%g
5232 s%@INSTOBJEXT@%$INSTOBJEXT%g
5233 s%@INTLDEPS@%$INTLDEPS%g
5234 s%@INTLLIBS@%$INTLLIBS%g
5235 s%@INTLOBJS@%$INTLOBJS%g
5236 s%@POFILES@%$POFILES%g
5238 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5240 s%@GT_YES@%$GT_YES%g
5241 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5245 s%@LEXLIB@%$LEXLIB%g
5246 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5247 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5248 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5250 s%@HDEFINES@%$HDEFINES%g
5251 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5252 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5253 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5254 s%@STRINGIFY@%$STRINGIFY%g
5258 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5259 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5260 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5261 s%@TESTBFDLIB@%$TESTBFDLIB%g
5266 cat >> $CONFIG_STATUS <<\EOF
5268 # Split the substitutions into bite-sized pieces for seds with
5269 # small command number limits, like on Digital OSF/1 and HP-UX.
5270 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5271 ac_file
=1 # Number of current file.
5272 ac_beg
=1 # First line for current file.
5273 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5276 while $ac_more_lines; do
5277 if test $ac_beg -gt 1; then
5278 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5280 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5282 if test ! -s conftest.s
$ac_file; then
5284 rm -f conftest.s
$ac_file
5286 if test -z "$ac_sed_cmds"; then
5287 ac_sed_cmds
="sed -f conftest.s$ac_file"
5289 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5291 ac_file
=`expr $ac_file + 1`
5293 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5296 if test -z "$ac_sed_cmds"; then
5301 cat >> $CONFIG_STATUS <<EOF
5303 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5305 cat >> $CONFIG_STATUS <<\EOF
5306 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5309 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5310 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5311 *) ac_file_in
="${ac_file}.in" ;;
5314 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5316 # Remove last slash and all that follows it. Not all systems have dirname.
5317 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5318 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5319 # The file is in a subdirectory.
5320 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5321 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5322 # A "../" for each directory in $ac_dir_suffix.
5323 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5325 ac_dir_suffix
= ac_dots
=
5328 case "$ac_given_srcdir" in
5330 if test -z "$ac_dots"; then top_srcdir
=.
5331 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5332 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5334 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5335 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5338 case "$ac_given_INSTALL" in
5339 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5340 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5343 echo creating
"$ac_file"
5345 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5347 *Makefile
*) ac_comsub
="1i\\
5348 # $configure_input" ;;
5352 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5354 s%@configure_input@%$configure_input%g
5355 s%@srcdir@%$srcdir%g
5356 s%@top_srcdir@%$top_srcdir%g
5357 s%@INSTALL@%$INSTALL%g
5358 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5365 # ac_d sets the value in "#define NAME VALUE" lines.
5366 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5367 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5370 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5371 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5372 ac_uB
='\([ ]\)%\1#\2define\3'
5375 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5376 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5377 ac_eB
='$%\1#\2define\3'
5381 if test "${CONFIG_HEADERS+set}" != set; then
5383 cat >> $CONFIG_STATUS <<EOF
5384 CONFIG_HEADERS="config.h:config.in"
5386 cat >> $CONFIG_STATUS <<\EOF
5388 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5391 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5392 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5393 *) ac_file_in
="${ac_file}.in" ;;
5396 echo creating
$ac_file
5398 rm -f conftest.frag conftest.
in conftest.out
5399 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5400 cat $ac_file_inputs > conftest.
in
5404 # Transform confdefs.h into a sed script conftest.vals that substitutes
5405 # the proper values into config.h.in to produce config.h. And first:
5406 # Protect against being on the right side of a sed subst in config.status.
5407 # Protect against being in an unquoted here document in config.status.
5409 cat > conftest.hdr
<<\EOF
5412 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5416 sed -n -f conftest.hdr confdefs.h > conftest.vals
5419 # This sed command replaces #undef with comments. This is necessary, for
5420 # example, in the case of _POSIX_SOURCE, which is predefined and required
5421 # on some systems where configure will not decide to define it.
5422 cat >> conftest.vals <<\EOF
5423 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5426 # Break up conftest.vals because some shells have a limit on
5427 # the size of here documents, and old seds have small limits too.
5432 ac_lines=`grep -c . conftest.vals
`
5433 # grep -c gives empty output for an empty file on some AIX systems.
5434 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5435 # Write a limited-size here document to conftest.frag.
5436 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5437 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5439 sed -f conftest.frag conftest.in > conftest.out
5441 mv conftest.out conftest.in
5443 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5445 mv conftest.tail conftest.vals
5449 cat >> $CONFIG_STATUS <<\EOF
5450 rm -f conftest.frag conftest.h
5451 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5452 cat conftest.in >> conftest.h
5454 if cmp -s $ac_file conftest.h 2>/dev/null; then
5455 echo "$ac_file is unchanged"
5458 # Remove last slash and all that follows it. Not all systems have dirname.
5459 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5461 # The file is in a subdirectory.
5462 test ! -d "$ac_dir" && mkdir "$ac_dir"
5465 mv conftest.h $ac_file
5470 cat >> $CONFIG_STATUS <<EOF
5474 cat >> $CONFIG_STATUS <<\EOF
5475 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5476 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5479 chmod +x $CONFIG_STATUS
5480 rm -fr confdefs* $ac_clean_files
5481 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1