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 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 SHELL
=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
100 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
101 bindir
="$ac_optarg" ;;
103 -build |
--build |
--buil |
--bui |
--bu)
105 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
106 build
="$ac_optarg" ;;
108 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
109 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
110 ac_prev
=cache_file
;;
111 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
112 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
113 cache_file
="$ac_optarg" ;;
115 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
119 datadir
="$ac_optarg" ;;
121 -disable-* |
--disable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* |
--enable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
145 |
--exec |
--exe |
--ex)
146 ac_prev
=exec_prefix
;;
147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
149 |
--exec=* |
--exe=* |
--ex=*)
150 exec_prefix
="$ac_optarg" ;;
152 -gas |
--gas |
--ga |
--g)
153 # Obsolete; use --with-gas.
156 -help |
--help |
--hel |
--he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
340 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
341 sitefile
="$ac_optarg" ;;
343 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
345 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
346 srcdir
="$ac_optarg" ;;
348 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
349 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
350 ac_prev
=sysconfdir
;;
351 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
352 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
353 sysconfdir
="$ac_optarg" ;;
355 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
357 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
358 target
="$ac_optarg" ;;
360 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
363 -version |
--version |
--versio |
--versi |
--vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* |
--without-*)
381 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
394 |
--x-incl |
--x-inc |
--x-in |
--x-i)
395 ac_prev
=x_includes
;;
396 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
397 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
398 x_includes
="$ac_optarg" ;;
400 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
401 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
402 ac_prev
=x_libraries
;;
403 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
404 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
405 x_libraries
="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE
; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
456 |
--no-cr |
--no-c) ;;
457 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
458 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
459 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest
* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file
=gprof.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted
=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted
=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE
="$sitefile"
519 for ac_site_file
in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp
='$CPP $CPPFLAGS'
537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling
=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
552 ac_n
= ac_c
='\c' ac_t
=
555 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
556 echo "configure:557: checking for Cygwin environment" >&5
557 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 cat > conftest.
$ac_ext <<EOF
561 #line 562 "configure"
562 #include "confdefs.h"
567 #define __CYGWIN__ __CYGWIN32__
572 if { (eval echo configure
:573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
576 echo "configure: failed program was:" >&5
577 cat conftest.
$ac_ext >&5
585 echo "$ac_t""$ac_cv_cygwin" 1>&6
587 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
588 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
589 echo "configure:590: checking for mingw32 environment" >&5
590 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
593 cat > conftest.
$ac_ext <<EOF
594 #line 595 "configure"
595 #include "confdefs.h"
601 if { (eval echo configure
:602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
605 echo "configure: failed program was:" >&5
606 cat conftest.
$ac_ext >&5
614 echo "$ac_t""$ac_cv_mingw32" 1>&6
616 test "$ac_cv_mingw32" = yes && MINGW32
=yes
620 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
621 if test -f $ac_dir/install-sh
; then
623 ac_install_sh
="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh
; then
627 ac_install_sh
="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess
=$ac_aux_dir/config.guess
635 ac_config_sub
=$ac_aux_dir/config.sub
636 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
639 # Do some error checking and defaulting for the host and target type.
641 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
644 # 1. You are not allowed to specify --host, --target, and nonopt at the
646 # 2. Host defaults to nonopt.
647 # 3. If nonopt is not specified, then host defaults to the current host,
648 # as determined by config.guess.
649 # 4. Target and build default to nonopt.
650 # 5. If nonopt is not specified, then target and build default to host.
652 # The aliases save the names the user supplied, while $host etc.
653 # will get canonicalized.
654 case $host---$target---$nonopt in
655 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
656 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
660 # Make sure we can run config.sub.
661 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
662 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
665 echo $ac_n "checking host system type""... $ac_c" 1>&6
666 echo "configure:667: checking host system type" >&5
669 case "$host_alias" in
673 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
674 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
676 *) host_alias
=$nonopt ;;
680 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
681 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$host" 1>&6
686 echo $ac_n "checking target system type""... $ac_c" 1>&6
687 echo "configure:688: checking target system type" >&5
690 case "$target_alias" in
693 NONE
) target_alias
=$host_alias ;;
694 *) target_alias
=$nonopt ;;
698 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
699 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$target" 1>&6
704 echo $ac_n "checking build system type""... $ac_c" 1>&6
705 echo "configure:706: checking build system type" >&5
708 case "$build_alias" in
711 NONE
) build_alias
=$host_alias ;;
712 *) build_alias
=$nonopt ;;
716 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
717 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$build" 1>&6
722 test "$host_alias" != "$target_alias" &&
723 test "$program_prefix$program_suffix$program_transform_name" = \
725 program_prefix
=${target_alias}-
727 # Extract the first word of "gcc", so it can be a program name with args.
728 set dummy gcc
; ac_word
=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC
="$CC" # Let the user override the test.
737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
739 for ac_dir
in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir
=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
756 if test -z "$CC"; then
757 # Extract the first word of "cc", so it can be a program name with args.
758 set dummy cc
; ac_word
=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC
="$CC" # Let the user override the test.
767 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
770 for ac_dir
in $ac_dummy; do
771 test -z "$ac_dir" && ac_dir
=.
772 if test -f $ac_dir/$ac_word; then
773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
782 if test $ac_prog_rejected = yes; then
783 # We found a bogon in the path, so make sure we never use it.
784 set dummy
$ac_cv_prog_CC
786 if test $# -gt 0; then
787 # We chose a different compiler from the bogus one.
788 # However, it has the same basename, so the bogon will be chosen
789 # first if we set CC to just the basename; use the full file name.
791 set dummy
"$ac_dir/$ac_word" "$@"
799 if test -n "$CC"; then
800 echo "$ac_t""$CC" 1>&6
802 echo "$ac_t""no" 1>&6
805 if test -z "$CC"; then
808 # Extract the first word of "cl", so it can be a program name with args.
809 set dummy cl
; ac_word
=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC
="$CC" # Let the user override the test.
818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
820 for ac_dir
in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir
=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp
='$CPP $CPPFLAGS'
848 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling
=$ac_cv_prog_cc_cross
852 cat > conftest.
$ac_ext << EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 if { (eval echo configure
:860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
860 ac_cv_prog_cc_works
=yes
861 # If we can't run a trivial program, we are probably using a cross compiler.
862 if (.
/conftest
; exit) 2>/dev
/null
; then
863 ac_cv_prog_cc_cross
=no
865 ac_cv_prog_cc_cross
=yes
868 echo "configure: failed program was:" >&5
869 cat conftest.
$ac_ext >&5
870 ac_cv_prog_cc_works
=no
874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
875 ac_cpp
='$CPP $CPPFLAGS'
876 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
877 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
878 cross_compiling
=$ac_cv_prog_cc_cross
880 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
881 if test $ac_cv_prog_cc_works = no
; then
882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
885 echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
886 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
887 cross_compiling
=$ac_cv_prog_cc_cross
889 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
890 echo "configure:891: checking whether we are using GNU C" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 cat > conftest.c
<<EOF
899 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
908 if test $ac_cv_prog_gcc = yes; then
914 ac_test_CFLAGS
="${CFLAGS+set}"
915 ac_save_CFLAGS
="$CFLAGS"
917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
918 echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 echo 'void f(){}' > conftest.c
923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
933 if test "$ac_test_CFLAGS" = set; then
934 CFLAGS
="$ac_save_CFLAGS"
935 elif test $ac_cv_prog_cc_g = yes; then
936 if test "$GCC" = yes; then
942 if test "$GCC" = yes; then
949 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
950 echo "configure:951: checking for POSIXized ISC" >&5
951 if test -d /etc
/conf
/kconfig.d
&&
952 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
954 echo "$ac_t""yes" 1>&6
955 ISC
=yes # If later tests want to check for ISC.
956 cat >> confdefs.h
<<\EOF
957 #define _POSIX_SOURCE 1
960 if test "$GCC" = yes; then
966 echo "$ac_t""no" 1>&6
971 # Find a good install program. We prefer a C program (faster),
972 # so one script is as good as another. But avoid the broken or
973 # incompatible versions:
974 # SysV /etc/install, /usr/sbin/install
975 # SunOS /usr/etc/install
978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
981 # ./install, which can be erroneously created by make from ./install.sh.
982 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
983 echo "configure:984: checking for a BSD compatible install" >&5
984 if test -z "$INSTALL"; then
985 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
989 for ac_dir
in $PATH; do
990 # Account for people who put trailing slashes in PATH elements.
992 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
994 # OSF1 and SCO ODT 3.0 have their own names for install.
995 # Don't use installbsd from OSF since it installs stuff as root
997 for ac_prog
in ginstall scoinst
install; do
998 if test -f $ac_dir/$ac_prog; then
999 if test $ac_prog = install &&
1000 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1001 # AIX install. It has an incompatible calling convention.
1004 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1015 if test "${ac_cv_path_install+set}" = set; then
1016 INSTALL
="$ac_cv_path_install"
1018 # As a last resort, use the slow shell script. We don't cache a
1019 # path for INSTALL within a source directory, because that will
1020 # break other packages using the cache if that directory is
1021 # removed, or if the path is relative.
1022 INSTALL
="$ac_install_sh"
1025 echo "$ac_t""$INSTALL" 1>&6
1027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1028 # It thinks the first close brace ends the variable substitution.
1029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1033 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1035 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether build environment is sane" >&5
1039 echo timestamp
> conftestfile
1040 # Do `set' in a subshell so we don't clobber the current shell's
1041 # arguments. Must try -L first in case configure is actually a
1042 # symlink; some systems play weird games with the mod time of symlinks
1043 # (eg FreeBSD returns the mod time of the symlink's containing
1046 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1047 if test "$*" = "X"; then
1049 set X
`ls -t $srcdir/configure conftestfile`
1051 if test "$*" != "X $srcdir/configure conftestfile" \
1052 && test "$*" != "X conftestfile $srcdir/configure"; then
1054 # If neither matched, then we have a broken ls. This can happen
1055 # if, for instance, CONFIG_SHELL is bash and it inherits a
1056 # broken ls alias from the environment. This has actually
1057 # happened. Such a system could not be considered "sane".
1058 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1059 alias in your environment" 1>&2; exit 1; }
1062 test "$2" = conftestfile
1068 { echo "configure: error: newly created file is older than distributed files!
1069 Check your system clock" 1>&2; exit 1; }
1072 echo "$ac_t""yes" 1>&6
1073 if test "$program_transform_name" = s
,x
,x
,; then
1074 program_transform_name
=
1076 # Double any \ or $. echo might interpret backslashes.
1077 cat <<\EOF_SED
> conftestsed
1078 s
,\\,\\\\,g
; s
,\$
,$$
,g
1080 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1083 test "$program_prefix" != NONE
&&
1084 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1085 # Use a double $ so make ignores it.
1086 test "$program_suffix" != NONE
&&
1087 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1089 # sed with no file args requires a program.
1090 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1092 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether ${MAKE-make} sets \${MAKE}" >&5
1094 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 cat > conftestmake
<<\EOF
1100 @
echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_
${ac_make}_set
=yes
1107 eval ac_cv_prog_make_
${ac_make}_set
=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1115 echo "$ac_t""no" 1>&6
1116 SET_MAKE
="MAKE=${MAKE-make}"
1124 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1125 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1127 cat >> confdefs.h
<<EOF
1128 #define PACKAGE "$PACKAGE"
1131 cat >> confdefs.h
<<EOF
1132 #define VERSION "$VERSION"
1137 missing_dir
=`cd $ac_aux_dir && pwd`
1138 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1139 echo "configure:1140: checking for working aclocal" >&5
1140 # Run test in a subshell; some versions of sh will print an error if
1141 # an executable is not found, even if stderr is redirected.
1142 # Redirect stdin to placate older versions of autoconf. Sigh.
1143 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1145 echo "$ac_t""found" 1>&6
1147 ACLOCAL
="$missing_dir/missing aclocal"
1148 echo "$ac_t""missing" 1>&6
1151 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1152 echo "configure:1153: checking for working autoconf" >&5
1153 # Run test in a subshell; some versions of sh will print an error if
1154 # an executable is not found, even if stderr is redirected.
1155 # Redirect stdin to placate older versions of autoconf. Sigh.
1156 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1158 echo "$ac_t""found" 1>&6
1160 AUTOCONF
="$missing_dir/missing autoconf"
1161 echo "$ac_t""missing" 1>&6
1164 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1165 echo "configure:1166: checking for working automake" >&5
1166 # Run test in a subshell; some versions of sh will print an error if
1167 # an executable is not found, even if stderr is redirected.
1168 # Redirect stdin to placate older versions of autoconf. Sigh.
1169 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1171 echo "$ac_t""found" 1>&6
1173 AUTOMAKE
="$missing_dir/missing automake"
1174 echo "$ac_t""missing" 1>&6
1177 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1178 echo "configure:1179: checking for working autoheader" >&5
1179 # Run test in a subshell; some versions of sh will print an error if
1180 # an executable is not found, even if stderr is redirected.
1181 # Redirect stdin to placate older versions of autoconf. Sigh.
1182 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1183 AUTOHEADER
=autoheader
1184 echo "$ac_t""found" 1>&6
1186 AUTOHEADER
="$missing_dir/missing autoheader"
1187 echo "$ac_t""missing" 1>&6
1190 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1191 echo "configure:1192: checking for working makeinfo" >&5
1192 # Run test in a subshell; some versions of sh will print an error if
1193 # an executable is not found, even if stderr is redirected.
1194 # Redirect stdin to placate older versions of autoconf. Sigh.
1195 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1197 echo "$ac_t""found" 1>&6
1199 MAKEINFO
="$missing_dir/missing makeinfo"
1200 echo "$ac_t""missing" 1>&6
1205 # Check whether --enable-shared or --disable-shared was given.
1206 if test "${enable_shared+set}" = set; then
1207 enableval
="$enable_shared"
1208 p
=${PACKAGE-default}
1209 case "$enableval" in
1210 yes) enable_shared
=yes ;;
1211 no
) enable_shared
=no
;;
1214 # Look at the argument we got. We use all the common list separators.
1215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1216 for pkg
in $enableval; do
1217 if test "X$pkg" = "X$p"; then
1228 # Check whether --enable-static or --disable-static was given.
1229 if test "${enable_static+set}" = set; then
1230 enableval
="$enable_static"
1231 p
=${PACKAGE-default}
1232 case "$enableval" in
1233 yes) enable_static
=yes ;;
1234 no
) enable_static
=no
;;
1237 # Look at the argument we got. We use all the common list separators.
1238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1239 for pkg
in $enableval; do
1240 if test "X$pkg" = "X$p"; then
1251 # Check whether --enable-fast-install or --disable-fast-install was given.
1252 if test "${enable_fast_install+set}" = set; then
1253 enableval
="$enable_fast_install"
1254 p
=${PACKAGE-default}
1255 case "$enableval" in
1256 yes) enable_fast_install
=yes ;;
1257 no
) enable_fast_install
=no
;;
1259 enable_fast_install
=no
1260 # Look at the argument we got. We use all the common list separators.
1261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1262 for pkg
in $enableval; do
1263 if test "X$pkg" = "X$p"; then
1264 enable_fast_install
=yes
1271 enable_fast_install
=yes
1274 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1275 if test "${with_gnu_ld+set}" = set; then
1276 withval
="$with_gnu_ld"
1277 test "$withval" = no || with_gnu_ld
=yes
1283 if test "$ac_cv_prog_gcc" = yes; then
1284 # Check if gcc -print-prog-name=ld gives a path.
1285 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1286 echo "configure:1287: checking for ld used by GCC" >&5
1289 # gcc leaves a trailing carriage return which upsets mingw
1290 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1292 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1295 # Accept absolute paths.
1296 [\\/]* |
[A-Za-z
]:[\\/]*)
1297 re_direlt
='/[^/][^/]*/\.\./'
1298 # Canonicalize the path of ld
1299 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1300 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1301 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1303 test -z "$LD" && LD
="$ac_prog"
1306 # If it fails, then pretend we aren't using GCC.
1310 # If it is relative, then search for the first ld in PATH.
1314 elif test "$with_gnu_ld" = yes; then
1315 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1316 echo "configure:1317: checking for GNU ld" >&5
1318 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1319 echo "configure:1320: checking for non-GNU ld" >&5
1321 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -z "$LD"; then
1325 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1326 for ac_dir
in $PATH; do
1327 test -z "$ac_dir" && ac_dir
=.
1328 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1329 ac_cv_path_LD
="$ac_dir/$ac_prog"
1330 # Check to see if the program is GNU ld. I'd rather use --version,
1331 # but apparently some GNU ld's only accept -v.
1332 # Break only if it was the GNU/non-GNU ld that we prefer.
1333 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1334 test "$with_gnu_ld" != no
&& break
1336 test "$with_gnu_ld" != yes && break
1342 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1347 if test -n "$LD"; then
1348 echo "$ac_t""$LD" 1>&6
1350 echo "$ac_t""no" 1>&6
1352 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1353 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1354 echo "configure:1355: checking if the linker ($LD) is GNU ld" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1359 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1360 ac_cv_prog_gnu_ld
=yes
1362 ac_cv_prog_gnu_ld
=no
1366 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1367 with_gnu_ld
=$ac_cv_prog_gnu_ld
1370 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $LD option to reload object files" >&5
1372 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 lt_cv_ld_reload_flag
='-r'
1378 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1379 reload_flag
=$lt_cv_ld_reload_flag
1380 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1382 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1383 echo "configure:1384: checking for BSD-compatible nm" >&5
1384 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 if test -n "$NM"; then
1388 # Let the user override the test.
1391 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1392 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1393 test -z "$ac_dir" && ac_dir
=.
1394 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1395 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1396 # Check to see if the nm accepts a BSD-compat flag.
1397 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1398 # nm: unknown option "B" ignored
1399 # Tru64's nm complains that /dev/null is an invalid object file
1400 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1401 ac_cv_path_NM
="$tmp_nm -B"
1403 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1404 ac_cv_path_NM
="$tmp_nm -p"
1407 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1408 continue # so that we can try to find one that supports BSD flags
1413 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1418 echo "$ac_t""$NM" 1>&6
1420 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ln -s works" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1426 if ln -s X conftestdata
2>/dev
/null
1429 ac_cv_prog_LN_S
="ln -s"
1434 LN_S
="$ac_cv_prog_LN_S"
1435 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1436 echo "$ac_t""yes" 1>&6
1438 echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1442 echo "configure:1443: checking how to recognise dependant libraries" >&5
1443 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 lt_cv_file_magic_cmd
='${MAGIC}'
1447 lt_cv_file_magic_test_file
=
1448 lt_cv_deplibs_check_method
='unknown'
1449 # Need to set the preceding variable on all platforms that support
1450 # interlibrary dependencies.
1451 # 'none' -- dependencies not supported.
1452 # `unknown' -- same as none, but documents that we really don't know.
1453 # 'pass_all' -- all dependencies passed with no checks.
1454 # 'test_compile' -- check by making test program.
1455 # 'file_magic [regex]' -- check by looking for files in library path
1456 # which responds to the $file_magic_cmd with a given egrep regex.
1457 # If you have `file' or equivalent on your system and you're not sure
1458 # whether `pass_all' will *always* work, you probably want this one.
1462 lt_cv_deplibs_check_method
=pass_all
1466 lt_cv_deplibs_check_method
=pass_all
1470 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1471 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1472 lt_cv_file_magic_test_file
=/shlib
/libc.so
1476 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1477 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1481 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1484 # Not sure whether the presence of OpenBSD here was a mistake.
1485 # Let's accept both of them until this is cleared up.
1486 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1487 lt_cv_file_magic_cmd
=/usr
/bin
/file
1488 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1492 lt_cv_deplibs_check_method
=pass_all
1497 lt_cv_deplibs_check_method
=pass_all
1501 # TODO: Does this work for hpux-11 too?
1502 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1503 lt_cv_file_magic_cmd
=/usr
/bin
/file
1504 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1510 # this will be overridden with pass_all, but let us keep it just in case
1511 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1515 *-32|
*"-32 ") libmagic
=32-bit;;
1516 *-n32|
*"-n32 ") libmagic
=N32
;;
1517 *-64|
*"-64 ") libmagic
=64-bit;;
1518 *) libmagic
=never-match
;;
1520 # this will be overridden with pass_all, but let us keep it just in case
1521 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1524 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1525 lt_cv_deplibs_check_method
=pass_all
1528 # This must be Linux ELF.
1531 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1532 lt_cv_deplibs_check_method
=pass_all
;;
1534 # glibc up to 2.1.1 does not perform some relocations on ARM
1535 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1537 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1541 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1543 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1544 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1545 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1549 osf3
* | osf4
* | osf5
*)
1550 # this will be overridden with pass_all, but let us keep it just in case
1551 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1552 lt_cv_file_magic_test_file
=/shlib
/libc.so
1553 lt_cv_deplibs_check_method
=pass_all
1557 lt_cv_deplibs_check_method
=pass_all
1561 lt_cv_deplibs_check_method
=pass_all
1562 lt_cv_file_magic_test_file
=/lib
/libc.so
1565 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1566 case "$host_vendor" in
1568 lt_cv_deplibs_check_method
=pass_all
1571 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]'
1572 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1580 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1581 file_magic_cmd
=$lt_cv_file_magic_cmd
1582 deplibs_check_method
=$lt_cv_deplibs_check_method
1584 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1585 echo "configure:1586: checking for object suffix" >&5
1586 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1590 echo 'int i = 1;' > conftest.
$ac_ext
1591 if { (eval echo configure
:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1592 for ac_file
in conftest.
*; do
1595 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1599 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1604 echo "$ac_t""$ac_cv_objext" 1>&6
1605 OBJEXT
=$ac_cv_objext
1606 ac_objext
=$ac_cv_objext
1610 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1611 echo "configure:1612: checking for executable suffix" >&5
1612 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1619 echo 'int main () { return 0; }' > conftest.
$ac_ext
1621 if { (eval echo configure
:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1622 for file in conftest.
*; do
1624 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1625 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1629 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1632 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1637 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1638 echo "$ac_t""${ac_cv_exeext}" 1>&6
1641 if test $host != $build; then
1642 ac_tool_prefix
=${host_alias}-
1647 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1649 # Only perform the check for file, if the check method requires it
1650 case "$deplibs_check_method" in
1652 if test "$file_magic_cmd" = '${MAGIC}'; then
1653 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1654 echo "configure:1655: checking for ${ac_tool_prefix}file" >&5
1655 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1660 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1663 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1666 ac_save_MAGIC
="$MAGIC"
1667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1668 ac_dummy
="/usr/bin:$PATH"
1669 for ac_dir
in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir
=.
1671 if test -f $ac_dir/${ac_tool_prefix}file; then
1672 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1673 if test -n "$file_magic_test_file"; then
1674 case "$deplibs_check_method" in
1676 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1677 MAGIC
="$lt_cv_path_MAGIC"
1678 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1679 egrep "$file_magic_regex" > /dev
/null
; then
1684 *** Warning: the command libtool uses to detect shared libraries,
1685 *** $file_magic_cmd, produces output that libtool cannot recognize.
1686 *** The result is that libtool may fail to recognize shared libraries
1687 *** as such. This will affect the creation of libtool libraries that
1688 *** depend on shared libraries, but programs linked with such libtool
1689 *** libraries will work regardless of this problem. Nevertheless, you
1690 *** may want to report the problem to your system manager and/or to
1691 *** bug-libtool@gnu.org
1701 MAGIC
="$ac_save_MAGIC"
1706 MAGIC
="$lt_cv_path_MAGIC"
1707 if test -n "$MAGIC"; then
1708 echo "$ac_t""$MAGIC" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$lt_cv_path_MAGIC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 echo $ac_n "checking for file""... $ac_c" 1>&6
1716 echo "configure:1717: checking for file" >&5
1717 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1722 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1725 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1728 ac_save_MAGIC
="$MAGIC"
1729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1730 ac_dummy
="/usr/bin:$PATH"
1731 for ac_dir
in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir
=.
1733 if test -f $ac_dir/file; then
1734 lt_cv_path_MAGIC
="$ac_dir/file"
1735 if test -n "$file_magic_test_file"; then
1736 case "$deplibs_check_method" in
1738 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1739 MAGIC
="$lt_cv_path_MAGIC"
1740 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1741 egrep "$file_magic_regex" > /dev
/null
; then
1746 *** Warning: the command libtool uses to detect shared libraries,
1747 *** $file_magic_cmd, produces output that libtool cannot recognize.
1748 *** The result is that libtool may fail to recognize shared libraries
1749 *** as such. This will affect the creation of libtool libraries that
1750 *** depend on shared libraries, but programs linked with such libtool
1751 *** libraries will work regardless of this problem. Nevertheless, you
1752 *** may want to report the problem to your system manager and/or to
1753 *** bug-libtool@gnu.org
1763 MAGIC
="$ac_save_MAGIC"
1768 MAGIC
="$lt_cv_path_MAGIC"
1769 if test -n "$MAGIC"; then
1770 echo "$ac_t""$MAGIC" 1>&6
1772 echo "$ac_t""no" 1>&6
1784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1785 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -n "$RANLIB"; then
1792 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1796 for ac_dir
in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir
=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1806 RANLIB
="$ac_cv_prog_RANLIB"
1807 if test -n "$RANLIB"; then
1808 echo "$ac_t""$RANLIB" 1>&6
1810 echo "$ac_t""no" 1>&6
1814 if test -z "$ac_cv_prog_RANLIB"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "ranlib", so it can be a program name with args.
1817 set dummy ranlib
; ac_word
=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$RANLIB"; then
1824 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1828 for ac_dir
in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir
=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_RANLIB
="ranlib"
1836 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1839 RANLIB
="$ac_cv_prog_RANLIB"
1840 if test -n "$RANLIB"; then
1841 echo "$ac_t""$RANLIB" 1>&6
1843 echo "$ac_t""no" 1>&6
1851 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_word" >&5
1855 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 if test -n "$STRIP"; then
1859 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1863 for ac_dir
in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir
=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1873 STRIP
="$ac_cv_prog_STRIP"
1874 if test -n "$STRIP"; then
1875 echo "$ac_t""$STRIP" 1>&6
1877 echo "$ac_t""no" 1>&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip
; ac_word
=$2
1885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_word" >&5
1887 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 if test -n "$STRIP"; then
1891 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1895 for ac_dir
in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir
=.
1897 if test -f $ac_dir/$ac_word; then
1898 ac_cv_prog_STRIP
="strip"
1903 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1906 STRIP
="$ac_cv_prog_STRIP"
1907 if test -n "$STRIP"; then
1908 echo "$ac_t""$STRIP" 1>&6
1910 echo "$ac_t""no" 1>&6
1919 # Check for any special flags to pass to ltconfig.
1920 libtool_flags
="--cache-file=$cache_file"
1921 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1922 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1923 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1924 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1925 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1928 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1929 if test "${enable_libtool_lock+set}" = set; then
1930 enableval
="$enable_libtool_lock"
1934 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1935 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1937 # Check whether --with-pic or --without-pic was given.
1938 if test "${with_pic+set}" = set; then
1945 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1946 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1948 # Some flags need to be propagated to the compiler or linker for good
1952 # Find out which ABI we are using.
1953 echo '#line 1954 "configure"' > conftest.
$ac_ext
1954 if { (eval echo configure
:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1955 case "`/usr/bin/file conftest.o`" in
1971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1972 SAVE_CFLAGS
="$CFLAGS"
1973 CFLAGS
="$CFLAGS -belf"
1974 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether the C compiler needs -belf" >&5
1976 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1982 ac_cpp
='$CPP $CPPFLAGS'
1983 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1984 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1985 cross_compiling
=$ac_cv_prog_cc_cross
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1997 lt_cv_cc_needs_belf
=yes
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 lt_cv_cc_needs_belf
=no
2006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2007 ac_cpp
='$CPP $CPPFLAGS'
2008 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2009 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2010 cross_compiling
=$ac_cv_prog_cc_cross
2014 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2015 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2017 CFLAGS
="$SAVE_CFLAGS"
2025 # Save cache, so that ltconfig can load it
2026 cat > confcache
<<\EOF
2027 # This file is a shell script that caches the results of configure
2028 # tests run on this system so they can be shared between configure
2029 # scripts and configure runs. It is not useful on other systems.
2030 # If it contains results you don't want to keep, you may remove or edit it.
2032 # By default, configure uses ./config.cache as the cache file,
2033 # creating it if it does not exist already. You can give configure
2034 # the --cache-file=FILE option to use a different cache file; that is
2035 # what configure does when it calls configure scripts in
2036 # subdirectories, so they share the cache.
2037 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2038 # config.status only pays attention to the cache file if you give it the
2039 # --recheck option to rerun configure.
2042 # The following way of writing the cache mishandles newlines in values,
2043 # but we know of no workaround that is simple, portable, and efficient.
2044 # So, don't put newlines in cache variables' values.
2045 # Ultrix sh set writes to stderr and can't be redirected directly,
2046 # and sets the high bit in the cache file unless we assign to the vars.
2048 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2050 # `set' does not quote correctly, so add quotes (double-quote substitution
2051 # turns \\\\ into \\, and sed turns \\ into \).
2053 -e "s/'/'\\\\''/g" \
2054 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2057 # `set' quotes correctly as required by POSIX, so do not add quotes.
2058 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2061 if cmp -s $cache_file confcache
; then
2064 if test -w $cache_file; then
2065 echo "updating cache $cache_file"
2066 cat confcache
> $cache_file
2068 echo "not updating unwritable cache $cache_file"
2074 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2075 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2076 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2077 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2078 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2079 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2080 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2081 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2082 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2083 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2085 # Reload cache, that may have been modified by ltconfig
2086 if test -r "$cache_file"; then
2087 echo "loading cache $cache_file"
2090 echo "creating cache $cache_file"
2095 # This can be used to rebuild libtool when needed
2096 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2098 # Always use our own libtool.
2099 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2101 # Redirect the config.log output again, so that the ltconfig log is not
2102 # clobbered by the next message.
2103 exec 5>>.
/config.log
2115 # Extract the first word of "gcc", so it can be a program name with args.
2116 set dummy gcc
; ac_word
=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5
2119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC
="$CC" # Let the user override the test.
2125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2127 for ac_dir
in $ac_dummy; do
2128 test -z "$ac_dir" && ac_dir
=.
2129 if test -f $ac_dir/$ac_word; then
2138 if test -n "$CC"; then
2139 echo "$ac_t""$CC" 1>&6
2141 echo "$ac_t""no" 1>&6
2144 if test -z "$CC"; then
2145 # Extract the first word of "cc", so it can be a program name with args.
2146 set dummy cc
; ac_word
=$2
2147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_word" >&5
2149 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC
="$CC" # Let the user override the test.
2155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2158 for ac_dir
in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir
=.
2160 if test -f $ac_dir/$ac_word; then
2161 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2162 ac_prog_rejected
=yes
2170 if test $ac_prog_rejected = yes; then
2171 # We found a bogon in the path, so make sure we never use it.
2172 set dummy
$ac_cv_prog_CC
2174 if test $# -gt 0; then
2175 # We chose a different compiler from the bogus one.
2176 # However, it has the same basename, so the bogon will be chosen
2177 # first if we set CC to just the basename; use the full file name.
2179 set dummy
"$ac_dir/$ac_word" "$@"
2187 if test -n "$CC"; then
2188 echo "$ac_t""$CC" 1>&6
2190 echo "$ac_t""no" 1>&6
2193 if test -z "$CC"; then
2194 case "`uname -s`" in
2196 # Extract the first word of "cl", so it can be a program name with args.
2197 set dummy cl
; ac_word
=$2
2198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_word" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 if test -n "$CC"; then
2204 ac_cv_prog_CC
="$CC" # Let the user override the test.
2206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2208 for ac_dir
in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir
=.
2210 if test -f $ac_dir/$ac_word; then
2219 if test -n "$CC"; then
2220 echo "$ac_t""$CC" 1>&6
2222 echo "$ac_t""no" 1>&6
2227 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2230 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2235 ac_cpp
='$CPP $CPPFLAGS'
2236 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2237 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2238 cross_compiling
=$ac_cv_prog_cc_cross
2240 cat > conftest.
$ac_ext << EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2247 if { (eval echo configure
:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2248 ac_cv_prog_cc_works
=yes
2249 # If we can't run a trivial program, we are probably using a cross compiler.
2250 if (.
/conftest
; exit) 2>/dev
/null
; then
2251 ac_cv_prog_cc_cross
=no
2253 ac_cv_prog_cc_cross
=yes
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2258 ac_cv_prog_cc_works
=no
2262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2263 ac_cpp
='$CPP $CPPFLAGS'
2264 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2265 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2266 cross_compiling
=$ac_cv_prog_cc_cross
2268 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2269 if test $ac_cv_prog_cc_works = no
; then
2270 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2272 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2273 echo "configure:2274: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2274 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2275 cross_compiling
=$ac_cv_prog_cc_cross
2277 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2278 echo "configure:2279: checking whether we are using GNU C" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.c
<<EOF
2287 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2294 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2296 if test $ac_cv_prog_gcc = yes; then
2302 ac_test_CFLAGS
="${CFLAGS+set}"
2303 ac_save_CFLAGS
="$CFLAGS"
2305 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2306 echo "configure:2307: checking whether ${CC-cc} accepts -g" >&5
2307 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 echo 'void f(){}' > conftest.c
2311 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2320 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2321 if test "$ac_test_CFLAGS" = set; then
2322 CFLAGS
="$ac_save_CFLAGS"
2323 elif test $ac_cv_prog_cc_g = yes; then
2324 if test "$GCC" = yes; then
2330 if test "$GCC" = yes; then
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2347 # ./install, which can be erroneously created by make from ./install.sh.
2348 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2349 echo "configure:2350: checking for a BSD compatible install" >&5
2350 if test -z "$INSTALL"; then
2351 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2355 for ac_dir
in $PATH; do
2356 # Account for people who put trailing slashes in PATH elements.
2358 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2363 for ac_prog
in ginstall scoinst
install; do
2364 if test -f $ac_dir/$ac_prog; then
2365 if test $ac_prog = install &&
2366 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2367 # AIX install. It has an incompatible calling convention.
2370 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2381 if test "${ac_cv_path_install+set}" = set; then
2382 INSTALL
="$ac_cv_path_install"
2384 # As a last resort, use the slow shell script. We don't cache a
2385 # path for INSTALL within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the path is relative.
2388 INSTALL
="$ac_install_sh"
2391 echo "$ac_t""$INSTALL" 1>&6
2393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2394 # It thinks the first close brace ends the variable substitution.
2395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2399 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2402 for ac_func
in setmode
2404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_func" >&5
2406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.
$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 /* System header to define __stub macros and hopefully few prototypes,
2413 which can conflict with char $ac_func(); below. */
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2422 /* The GNU C library defines this for functions which it implements
2423 to always fail with ENOSYS. Some functions are actually named
2424 something starting with __ and the normal name is an alias. */
2425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2433 if { (eval echo configure
:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2435 eval "ac_cv_func_$ac_func=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2440 eval "ac_cv_func_$ac_func=no"
2445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2448 cat >> confdefs.h
<<EOF
2449 #define $ac_tr_func 1
2453 echo "$ac_t""no" 1>&6
2459 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C preprocessor" >&5
2461 # On Suns, sometimes $CPP names a directory.
2462 if test -n "$CPP" && test -d "$CPP"; then
2465 if test -z "$CPP"; then
2466 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 # This must be in double quotes, not single quotes, because CPP may get
2470 # substituted into the Makefile and "${CC-cc}" will confuse make.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp.
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2480 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2481 { (eval echo configure
:2482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2482 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2483 if test -z "$ac_err"; then
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2490 CPP
="${CC-cc} -E -traditional-cpp"
2491 cat > conftest.
$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure
:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2500 if test -z "$ac_err"; then
2504 echo "configure: failed program was:" >&5
2505 cat conftest.
$ac_ext >&5
2507 CPP
="${CC-cc} -nologo -E"
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2515 { (eval echo configure
:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2517 if test -z "$ac_err"; then
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2531 ac_cv_prog_CPP
="$CPP"
2533 CPP
="$ac_cv_prog_CPP"
2535 ac_cv_prog_CPP
="$CPP"
2537 echo "$ac_t""$CPP" 1>&6
2539 # Extract the first word of "ranlib", so it can be a program name with args.
2540 set dummy ranlib
; ac_word
=$2
2541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_word" >&5
2543 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 if test -n "$RANLIB"; then
2547 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2549 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2551 for ac_dir
in $ac_dummy; do
2552 test -z "$ac_dir" && ac_dir
=.
2553 if test -f $ac_dir/$ac_word; then
2554 ac_cv_prog_RANLIB
="ranlib"
2559 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2562 RANLIB
="$ac_cv_prog_RANLIB"
2563 if test -n "$RANLIB"; then
2564 echo "$ac_t""$RANLIB" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2570 echo "configure:2571: checking for ANSI C header files" >&5
2571 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.
$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2582 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2583 { (eval echo configure
:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2584 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2585 if test -z "$ac_err"; then
2587 ac_cv_header_stdc
=yes
2590 echo "configure: failed program was:" >&5
2591 cat conftest.
$ac_ext >&5
2593 ac_cv_header_stdc
=no
2597 if test $ac_cv_header_stdc = yes; then
2598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2599 cat > conftest.
$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2605 egrep "memchr" >/dev
/null
2>&1; then
2609 ac_cv_header_stdc
=no
2615 if test $ac_cv_header_stdc = yes; then
2616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2623 egrep "free" >/dev
/null
2>&1; then
2627 ac_cv_header_stdc
=no
2633 if test $ac_cv_header_stdc = yes; then
2634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2635 if test "$cross_compiling" = yes; then
2638 cat > conftest.
$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2642 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2643 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2645 int main () { int i; for (i = 0; i < 256; i++)
2646 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2650 if { (eval echo configure
:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 ac_cv_header_stdc
=no
2665 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2666 if test $ac_cv_header_stdc = yes; then
2667 cat >> confdefs.h
<<\EOF
2668 #define STDC_HEADERS 1
2673 echo $ac_n "checking for working const""... $ac_c" 1>&6
2674 echo "configure:2675: checking for working const" >&5
2675 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2684 /* Ultrix mips cc rejects this. */
2685 typedef int charset[2]; const charset x;
2686 /* SunOS 4.1.1 cc rejects this. */
2687 char const *const *ccp;
2689 /* NEC SVR4.0.2 mips cc rejects this. */
2690 struct point {int x, y;};
2691 static struct point const zero = {0,0};
2692 /* AIX XL C 1.02.0.0 rejects this.
2693 It does not let you subtract one const X* pointer from another in an arm
2694 of an if-expression whose if-part is not a constant expression */
2695 const char *g = "string";
2696 ccp = &g + (g ? g-g : 0);
2697 /* HPUX 7.0 cc rejects these. */
2700 ccp = (char const *const *) p;
2701 { /* SCO 3.2v4 cc rejects this. */
2703 char const *s = 0 ? (char *) 0 : (char const *) 0;
2707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2709 const int *foo = &x[0];
2712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2713 typedef const int *iptr;
2717 { /* AIX XL C 1.02.0.0 rejects this saying
2718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2719 struct s { int j; const int *ap[3]; };
2720 struct s *b; b->j = 5;
2722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2728 if { (eval echo configure
:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 echo "configure: failed program was:" >&5
2733 cat conftest.
$ac_ext >&5
2740 echo "$ac_t""$ac_cv_c_const" 1>&6
2741 if test $ac_cv_c_const = no
; then
2742 cat >> confdefs.h
<<\EOF
2748 echo $ac_n "checking for inline""... $ac_c" 1>&6
2749 echo "configure:2750: checking for inline" >&5
2750 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2754 for ac_kw
in inline __inline__ __inline
; do
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2763 if { (eval echo configure
:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765 ac_cv_c_inline
=$ac_kw; break
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2775 echo "$ac_t""$ac_cv_c_inline" 1>&6
2776 case "$ac_cv_c_inline" in
2778 no
) cat >> confdefs.h
<<\EOF
2782 *) cat >> confdefs.h
<<EOF
2783 #define inline $ac_cv_c_inline
2788 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2789 echo "configure:2790: checking for off_t" >&5
2790 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.
$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 #include <sys/types.h>
2802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2803 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2805 ac_cv_type_off_t
=yes
2813 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2814 if test $ac_cv_type_off_t = no
; then
2815 cat >> confdefs.h
<<\EOF
2821 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2822 echo "configure:2823: checking for size_t" >&5
2823 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <sys/types.h>
2835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2838 ac_cv_type_size_t
=yes
2841 ac_cv_type_size_t
=no
2846 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2847 if test $ac_cv_type_size_t = no
; then
2848 cat >> confdefs.h
<<\EOF
2849 #define size_t unsigned
2854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2855 # for constant arguments. Useless!
2856 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2857 echo "configure:2858: checking for working alloca.h" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 char *p = alloca(2 * sizeof(int));
2869 if { (eval echo configure
:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2871 ac_cv_header_alloca_h
=yes
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 ac_cv_header_alloca_h
=no
2881 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2882 if test $ac_cv_header_alloca_h = yes; then
2883 cat >> confdefs.h
<<\EOF
2884 #define HAVE_ALLOCA_H 1
2889 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2890 echo "configure:2891: checking for alloca" >&5
2891 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2899 # define alloca __builtin_alloca
2902 # include <malloc.h>
2903 # define alloca _alloca
2906 # include <alloca.h>
2911 # ifndef alloca /* predefined by HP cc +Olibcalls */
2920 char *p = (char *) alloca(1);
2923 if { (eval echo configure
:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2925 ac_cv_func_alloca_works
=yes
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 ac_cv_func_alloca_works
=no
2935 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2936 if test $ac_cv_func_alloca_works = yes; then
2937 cat >> confdefs.h
<<\EOF
2938 #define HAVE_ALLOCA 1
2943 if test $ac_cv_func_alloca_works = no
; then
2944 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2945 # that cause trouble. Some versions do not even contain alloca or
2946 # contain a buggy version. If you still want to use their alloca,
2947 # use ar to extract alloca.o from them instead of compiling alloca.c.
2948 ALLOCA
=alloca.
${ac_objext}
2949 cat >> confdefs.h
<<\EOF
2954 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2955 echo "configure:2956: checking whether alloca needs Cray hooks" >&5
2956 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat > conftest.
$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 #if defined(CRAY) && ! defined(CRAY2)
2969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2970 egrep "webecray" >/dev
/null
2>&1; then
2981 echo "$ac_t""$ac_cv_os_cray" 1>&6
2982 if test $ac_cv_os_cray = yes; then
2983 for ac_func
in _getb67 GETB67 getb67
; do
2984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_func" >&5
2986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* System header to define __stub macros and hopefully few prototypes,
2993 which can conflict with char $ac_func(); below. */
2995 /* Override any gcc2 internal prototype to avoid an error. */
2996 /* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3013 if { (eval echo configure
:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3015 eval "ac_cv_func_$ac_func=yes"
3017 echo "configure: failed program was:" >&5
3018 cat conftest.
$ac_ext >&5
3020 eval "ac_cv_func_$ac_func=no"
3025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 cat >> confdefs.h
<<EOF
3028 #define CRAY_STACKSEG_END $ac_func
3033 echo "$ac_t""no" 1>&6
3039 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3040 echo "configure:3041: checking stack direction for C alloca" >&5
3041 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 if test "$cross_compiling" = yes; then
3045 ac_cv_c_stack_direction
=0
3047 cat > conftest.
$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 find_stack_direction ()
3052 static char *addr = 0;
3057 return find_stack_direction ();
3060 return (&dummy > addr) ? 1 : -1;
3064 exit (find_stack_direction() < 0);
3067 if { (eval echo configure
:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3069 ac_cv_c_stack_direction
=1
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3074 ac_cv_c_stack_direction
=-1
3081 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3082 cat >> confdefs.h
<<EOF
3083 #define STACK_DIRECTION $ac_cv_c_stack_direction
3088 for ac_hdr
in unistd.h
3090 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3092 echo "configure:3093: checking for $ac_hdr" >&5
3093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 cat > conftest.
$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3101 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3102 { (eval echo configure
:3103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3103 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3104 if test -z "$ac_err"; then
3106 eval "ac_cv_header_$ac_safe=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 eval "ac_cv_header_$ac_safe=no"
3116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3117 echo "$ac_t""yes" 1>&6
3118 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3119 cat >> confdefs.h
<<EOF
3120 #define $ac_tr_hdr 1
3124 echo "$ac_t""no" 1>&6
3128 for ac_func
in getpagesize
3130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_func" >&5
3132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* System header to define __stub macros and hopefully few prototypes,
3139 which can conflict with char $ac_func(); below. */
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3148 /* The GNU C library defines this for functions which it implements
3149 to always fail with ENOSYS. Some functions are actually named
3150 something starting with __ and the normal name is an alias. */
3151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3159 if { (eval echo configure
:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3161 eval "ac_cv_func_$ac_func=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.
$ac_ext >&5
3166 eval "ac_cv_func_$ac_func=no"
3171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3174 cat >> confdefs.h
<<EOF
3175 #define $ac_tr_func 1
3179 echo "$ac_t""no" 1>&6
3183 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3184 echo "configure:3185: checking for working mmap" >&5
3185 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 if test "$cross_compiling" = yes; then
3189 ac_cv_func_mmap_fixed_mapped
=no
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3195 /* Thanks to Mike Haertel and Jim Avera for this test.
3196 Here is a matrix of mmap possibilities:
3197 mmap private not fixed
3198 mmap private fixed at somewhere currently unmapped
3199 mmap private fixed at somewhere already mapped
3200 mmap shared not fixed
3201 mmap shared fixed at somewhere currently unmapped
3202 mmap shared fixed at somewhere already mapped
3203 For private mappings, we should verify that changes cannot be read()
3204 back from the file, nor mmap's back from the file at a different
3205 address. (There have been systems where private was not correctly
3206 implemented like the infamous i386 svr4.0, and systems where the
3207 VM page cache was not coherent with the filesystem buffer cache
3208 like early versions of FreeBSD and possibly contemporary NetBSD.)
3209 For shared mappings, we should conversely verify that changes get
3210 propogated back to all the places they're supposed to be.
3212 Grep wants private fixed already mapped.
3213 The main things grep needs to know about mmap are:
3214 * does it exist and is it safe to write into the mmap'd area
3215 * how to use it (BSD variants) */
3216 #include <sys/types.h>
3218 #include <sys/mman.h>
3220 /* This mess was copied from the GNU getpagesize.h. */
3221 #ifndef HAVE_GETPAGESIZE
3222 # ifdef HAVE_UNISTD_H
3223 # include <unistd.h>
3226 /* Assume that all systems that can run configure have sys/param.h. */
3227 # ifndef HAVE_SYS_PARAM_H
3228 # define HAVE_SYS_PARAM_H 1
3231 # ifdef _SC_PAGESIZE
3232 # define getpagesize() sysconf(_SC_PAGESIZE)
3233 # else /* no _SC_PAGESIZE */
3234 # ifdef HAVE_SYS_PARAM_H
3235 # include <sys/param.h>
3236 # ifdef EXEC_PAGESIZE
3237 # define getpagesize() EXEC_PAGESIZE
3238 # else /* no EXEC_PAGESIZE */
3240 # define getpagesize() NBPG * CLSIZE
3243 # endif /* no CLSIZE */
3244 # else /* no NBPG */
3246 # define getpagesize() NBPC
3247 # else /* no NBPC */
3249 # define getpagesize() PAGESIZE
3250 # endif /* PAGESIZE */
3251 # endif /* no NBPC */
3252 # endif /* no NBPG */
3253 # endif /* no EXEC_PAGESIZE */
3254 # else /* no HAVE_SYS_PARAM_H */
3255 # define getpagesize() 8192 /* punt totally */
3256 # endif /* no HAVE_SYS_PARAM_H */
3257 # endif /* no _SC_PAGESIZE */
3259 #endif /* no HAVE_GETPAGESIZE */
3262 extern "C" { void *malloc(unsigned); }
3270 char *data, *data2, *data3;
3274 pagesize = getpagesize();
3277 * First, make a file with some known garbage in it.
3279 data = malloc(pagesize);
3282 for (i = 0; i < pagesize; ++i)
3283 *(data + i) = rand();
3285 fd = creat("conftestmmap", 0600);
3288 if (write(fd, data, pagesize) != pagesize)
3293 * Next, try to mmap the file at a fixed address which
3294 * already has something else allocated at it. If we can,
3295 * also make sure that we see the same garbage.
3297 fd = open("conftestmmap", O_RDWR);
3300 data2 = malloc(2 * pagesize);
3303 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3304 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3307 for (i = 0; i < pagesize; ++i)
3308 if (*(data + i) != *(data2 + i))
3312 * Finally, make sure that changes to the mapped area
3313 * do not percolate back to the file as seen by read().
3314 * (This is a bug on some variants of i386 svr4.0.)
3316 for (i = 0; i < pagesize; ++i)
3317 *(data2 + i) = *(data2 + i) + 1;
3318 data3 = malloc(pagesize);
3321 if (read(fd, data3, pagesize) != pagesize)
3323 for (i = 0; i < pagesize; ++i)
3324 if (*(data + i) != *(data3 + i))
3327 unlink("conftestmmap");
3332 if { (eval echo configure
:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3334 ac_cv_func_mmap_fixed_mapped
=yes
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3339 ac_cv_func_mmap_fixed_mapped
=no
3346 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3347 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3348 cat >> confdefs.h
<<\EOF
3355 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3356 unistd.h values.h sys
/param.h
3358 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_hdr" >&5
3361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3369 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure
:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3372 if test -z "$ac_err"; then
3374 eval "ac_cv_header_$ac_safe=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.
$ac_ext >&5
3380 eval "ac_cv_header_$ac_safe=no"
3384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3387 cat >> confdefs.h
<<EOF
3388 #define $ac_tr_hdr 1
3392 echo "$ac_t""no" 1>&6
3396 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3397 __argz_count __argz_stringify __argz_next
3399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_func" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* System header to define __stub macros and hopefully few prototypes,
3408 which can conflict with char $ac_func(); below. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3428 if { (eval echo configure
:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3430 eval "ac_cv_func_$ac_func=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 eval "ac_cv_func_$ac_func=no"
3440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_func 1
3448 echo "$ac_t""no" 1>&6
3453 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3454 for ac_func
in stpcpy
3456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3457 echo "configure:3458: checking for $ac_func" >&5
3458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 cat > conftest.
$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 /* System header to define __stub macros and hopefully few prototypes,
3465 which can conflict with char $ac_func(); below. */
3467 /* Override any gcc2 internal prototype to avoid an error. */
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3474 /* The GNU C library defines this for functions which it implements
3475 to always fail with ENOSYS. Some functions are actually named
3476 something starting with __ and the normal name is an alias. */
3477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3485 if { (eval echo configure
:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3487 eval "ac_cv_func_$ac_func=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.
$ac_ext >&5
3492 eval "ac_cv_func_$ac_func=no"
3497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3498 echo "$ac_t""yes" 1>&6
3499 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3500 cat >> confdefs.h
<<EOF
3501 #define $ac_tr_func 1
3505 echo "$ac_t""no" 1>&6
3510 if test "${ac_cv_func_stpcpy}" = "yes"; then
3511 cat >> confdefs.h
<<\EOF
3512 #define HAVE_STPCPY 1
3517 if test $ac_cv_header_locale_h = yes; then
3518 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3519 echo "configure:3520: checking for LC_MESSAGES" >&5
3520 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3531 if { (eval echo configure
:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3533 am_cv_val_LC_MESSAGES
=yes
3535 echo "configure: failed program was:" >&5
3536 cat conftest.
$ac_ext >&5
3538 am_cv_val_LC_MESSAGES
=no
3543 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3544 if test $am_cv_val_LC_MESSAGES = yes; then
3545 cat >> confdefs.h
<<\EOF
3546 #define HAVE_LC_MESSAGES 1
3551 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether NLS is requested" >&5
3553 # Check whether --enable-nls or --disable-nls was given.
3554 if test "${enable_nls+set}" = set; then
3555 enableval
="$enable_nls"
3561 echo "$ac_t""$USE_NLS" 1>&6
3564 USE_INCLUDED_LIBINTL
=no
3566 if test "$USE_NLS" = "yes"; then
3567 cat >> confdefs.h
<<\EOF
3568 #define ENABLE_NLS 1
3571 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3572 echo "configure:3573: checking whether included gettext is requested" >&5
3573 # Check whether --with-included-gettext or --without-included-gettext was given.
3574 if test "${with_included_gettext+set}" = set; then
3575 withval
="$with_included_gettext"
3576 nls_cv_force_use_gnu_gettext
=$withval
3578 nls_cv_force_use_gnu_gettext
=no
3581 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3583 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3584 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3586 nls_cv_header_libgt
=
3589 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3590 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3591 echo "configure:3592: checking for libintl.h" >&5
3592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <libintl.h>
3600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure
:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3605 eval "ac_cv_header_$ac_safe=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.
$ac_ext >&5
3611 eval "ac_cv_header_$ac_safe=no"
3615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3618 echo "configure:3619: checking for gettext in libc" >&5
3619 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <libintl.h>
3627 return (int) gettext ("")
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3632 gt_cv_func_gettext_libc
=yes
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 gt_cv_func_gettext_libc
=no
3642 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3644 if test "$gt_cv_func_gettext_libc" != "yes"; then
3645 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3646 echo "configure:3647: checking for bindtextdomain in -lintl" >&5
3647 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 ac_save_LIBS
="$LIBS"
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3659 char bindtextdomain();
3665 if { (eval echo configure
:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3667 eval "ac_cv_lib_$ac_lib_var=yes"
3669 echo "configure: failed program was:" >&5
3670 cat conftest.
$ac_ext >&5
3672 eval "ac_cv_lib_$ac_lib_var=no"
3675 LIBS
="$ac_save_LIBS"
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3681 echo "configure:3682: checking for gettext in libintl" >&5
3682 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 cat > conftest.
$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3690 return (int) gettext ("")
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3695 gt_cv_func_gettext_libintl
=yes
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 gt_cv_func_gettext_libintl
=no
3705 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3707 echo "$ac_t""no" 1>&6
3712 if test "$gt_cv_func_gettext_libc" = "yes" \
3713 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3714 cat >> confdefs.h
<<\EOF
3715 #define HAVE_GETTEXT 1
3718 # Extract the first word of "msgfmt", so it can be a program name with args.
3719 set dummy msgfmt
; ac_word
=$2
3720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_word" >&5
3722 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3730 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3731 for ac_dir
in $PATH; do
3732 test -z "$ac_dir" && ac_dir
=.
3733 if test -f $ac_dir/$ac_word; then
3734 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3735 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3741 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3745 MSGFMT
="$ac_cv_path_MSGFMT"
3746 if test -n "$MSGFMT"; then
3747 echo "$ac_t""$MSGFMT" 1>&6
3749 echo "$ac_t""no" 1>&6
3751 if test "$MSGFMT" != "no"; then
3752 for ac_func
in dcgettext
3754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_func" >&5
3756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.
$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 /* System header to define __stub macros and hopefully few prototypes,
3763 which can conflict with char $ac_func(); below. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3772 /* The GNU C library defines this for functions which it implements
3773 to always fail with ENOSYS. Some functions are actually named
3774 something starting with __ and the normal name is an alias. */
3775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783 if { (eval echo configure
:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3785 eval "ac_cv_func_$ac_func=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 eval "ac_cv_func_$ac_func=no"
3795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3798 cat >> confdefs.h
<<EOF
3799 #define $ac_tr_func 1
3803 echo "$ac_t""no" 1>&6
3807 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3808 set dummy gmsgfmt
; ac_word
=$2
3809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_word" >&5
3811 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3819 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3824 for ac_dir
in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir
=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3832 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3836 GMSGFMT
="$ac_cv_path_GMSGFMT"
3837 if test -n "$GMSGFMT"; then
3838 echo "$ac_t""$GMSGFMT" 1>&6
3840 echo "$ac_t""no" 1>&6
3843 # Extract the first word of "xgettext", so it can be a program name with args.
3844 set dummy xgettext
; ac_word
=$2
3845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3846 echo "configure:3847: checking for $ac_word" >&5
3847 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3852 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3856 for ac_dir
in $PATH; do
3857 test -z "$ac_dir" && ac_dir
=.
3858 if test -f $ac_dir/$ac_word; then
3859 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3860 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3866 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3870 XGETTEXT
="$ac_cv_path_XGETTEXT"
3871 if test -n "$XGETTEXT"; then
3872 echo "$ac_t""$XGETTEXT" 1>&6
3874 echo "$ac_t""no" 1>&6
3877 cat > conftest.
$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3882 extern int _nl_msg_cat_cntr;
3883 return _nl_msg_cat_cntr
3886 if { (eval echo configure
:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3891 echo "configure: failed program was:" >&5
3892 cat conftest.
$ac_ext >&5
3903 echo "$ac_t""no" 1>&6
3908 if test "$CATOBJEXT" = "NONE"; then
3909 nls_cv_use_gnu_gettext
=yes
3913 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3914 INTLOBJS
="\$(GETTOBJS)"
3915 # Extract the first word of "msgfmt", so it can be a program name with args.
3916 set dummy msgfmt
; ac_word
=$2
3917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3918 echo "configure:3919: checking for $ac_word" >&5
3919 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3924 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3928 for ac_dir
in $PATH; do
3929 test -z "$ac_dir" && ac_dir
=.
3930 if test -f $ac_dir/$ac_word; then
3931 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3932 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3938 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3942 MSGFMT
="$ac_cv_path_MSGFMT"
3943 if test -n "$MSGFMT"; then
3944 echo "$ac_t""$MSGFMT" 1>&6
3946 echo "$ac_t""no" 1>&6
3949 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3950 set dummy gmsgfmt
; ac_word
=$2
3951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_word" >&5
3953 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3961 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3966 for ac_dir
in $ac_dummy; do
3967 test -z "$ac_dir" && ac_dir
=.
3968 if test -f $ac_dir/$ac_word; then
3969 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3974 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3978 GMSGFMT
="$ac_cv_path_GMSGFMT"
3979 if test -n "$GMSGFMT"; then
3980 echo "$ac_t""$GMSGFMT" 1>&6
3982 echo "$ac_t""no" 1>&6
3985 # Extract the first word of "xgettext", so it can be a program name with args.
3986 set dummy xgettext
; ac_word
=$2
3987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3988 echo "configure:3989: checking for $ac_word" >&5
3989 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3994 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3998 for ac_dir
in $PATH; do
3999 test -z "$ac_dir" && ac_dir
=.
4000 if test -f $ac_dir/$ac_word; then
4001 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4002 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4008 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4012 XGETTEXT
="$ac_cv_path_XGETTEXT"
4013 if test -n "$XGETTEXT"; then
4014 echo "$ac_t""$XGETTEXT" 1>&6
4016 echo "$ac_t""no" 1>&6
4020 USE_INCLUDED_LIBINTL
=yes
4024 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4026 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4027 nls_cv_header_intl
=libintl.h
4028 nls_cv_header_libgt
=libgettext.h
4031 if test "$XGETTEXT" != ":"; then
4032 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4035 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4040 # We need to process the po/ directory.
4044 nls_cv_header_intl
=libintl.h
4045 nls_cv_header_libgt
=libgettext.h
4048 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4049 # because some of the sources are only built for this goal.
4050 if test "$PACKAGE" = gettext; then
4052 USE_INCLUDED_LIBINTL
=yes
4055 for lang
in $ALL_LINGUAS; do
4056 GMOFILES
="$GMOFILES $lang.gmo"
4057 POFILES
="$POFILES $lang.po"
4073 if test "x$CATOBJEXT" != "x"; then
4074 if test "x$ALL_LINGUAS" = "x"; then
4077 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4078 echo "configure:4079: checking for catalogs to be installed" >&5
4080 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4081 case "$ALL_LINGUAS" in
4082 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4085 LINGUAS
=$NEW_LINGUAS
4086 echo "$ac_t""$LINGUAS" 1>&6
4089 if test -n "$LINGUAS"; then
4090 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4094 if test $ac_cv_header_locale_h = yes; then
4095 INCLUDE_LOCALE_H
="#include <locale.h>"
4098 /* The system does not provide the header <locale.h>. Take care yourself. */"
4102 if test -f $srcdir/po2tbl.
sed.
in; then
4103 if test "$CATOBJEXT" = ".cat"; then
4104 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4105 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4106 echo "configure:4107: checking for linux/version.h" >&5
4107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <linux/version.h>
4115 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4116 { (eval echo configure
:4117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4117 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4118 if test -z "$ac_err"; then
4120 eval "ac_cv_header_$ac_safe=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.
$ac_ext >&5
4126 eval "ac_cv_header_$ac_safe=no"
4130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4134 echo "$ac_t""no" 1>&6
4139 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4141 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4142 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4145 if test "$PACKAGE" = "gettext"; then
4155 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4161 if test -d $srcdir/po
; then
4162 test -d po || mkdir po
4163 if test "x$srcdir" != "x."; then
4164 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4165 posrcprefix
="$srcdir/"
4167 posrcprefix
="../$srcdir/"
4173 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4174 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4178 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4179 echo "configure:4180: checking whether to enable maintainer-specific portions of Makefiles" >&5
4180 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4181 if test "${enable_maintainer_mode+set}" = set; then
4182 enableval
="$enable_maintainer_mode"
4183 USE_MAINTAINER_MODE
=$enableval
4185 USE_MAINTAINER_MODE
=no
4188 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4191 if test $USE_MAINTAINER_MODE = yes; then
4192 MAINTAINER_MODE_TRUE
=
4193 MAINTAINER_MODE_FALSE
='#'
4195 MAINTAINER_MODE_TRUE
='#'
4196 MAINTAINER_MODE_FALSE
=
4198 MAINT
=$MAINTAINER_MODE_TRUE
4203 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4204 echo "configure:4205: checking for executable suffix" >&5
4205 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4212 echo 'int main () { return 0; }' > conftest.
$ac_ext
4214 if { (eval echo configure
:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4215 for file in conftest.
*; do
4217 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4218 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4222 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4225 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4230 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4231 echo "$ac_t""${ac_cv_exeext}" 1>&6
4235 build_warnings
="-W -Wall"
4236 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4237 if test "${enable_build_warnings+set}" = set; then
4238 enableval
="$enable_build_warnings"
4239 case "${enableval}" in
4241 no
) build_warnings
="-w";;
4242 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4243 build_warnings
="${build_warnings} ${t}";;
4244 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4245 build_warnings
="${t} ${build_warnings}";;
4246 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4248 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4249 echo "Setting warning flags = $build_warnings" 6>&1
4253 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
4254 WARN_CFLAGS
="${build_warnings}"
4259 cat > confcache
<<\EOF
4260 # This file is a shell script that caches the results of configure
4261 # tests run on this system so they can be shared between configure
4262 # scripts and configure runs. It is not useful on other systems.
4263 # If it contains results you don't want to keep, you may remove or edit it.
4265 # By default, configure uses ./config.cache as the cache file,
4266 # creating it if it does not exist already. You can give configure
4267 # the --cache-file=FILE option to use a different cache file; that is
4268 # what configure does when it calls configure scripts in
4269 # subdirectories, so they share the cache.
4270 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4271 # config.status only pays attention to the cache file if you give it the
4272 # --recheck option to rerun configure.
4275 # The following way of writing the cache mishandles newlines in values,
4276 # but we know of no workaround that is simple, portable, and efficient.
4277 # So, don't put newlines in cache variables' values.
4278 # Ultrix sh set writes to stderr and can't be redirected directly,
4279 # and sets the high bit in the cache file unless we assign to the vars.
4281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4283 # `set' does not quote correctly, so add quotes (double-quote substitution
4284 # turns \\\\ into \\, and sed turns \\ into \).
4286 -e "s/'/'\\\\''/g" \
4287 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4290 # `set' quotes correctly as required by POSIX, so do not add quotes.
4291 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4294 if cmp -s $cache_file confcache
; then
4297 if test -w $cache_file; then
4298 echo "updating cache $cache_file"
4299 cat confcache
> $cache_file
4301 echo "not updating unwritable cache $cache_file"
4306 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4308 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4309 # Let make expand exec_prefix.
4310 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4312 # Any assignment to VPATH causes Sun make to only execute
4313 # the first set of double-colon rules, so remove it if not needed.
4314 # If there is a colon in the path, we need to keep it.
4315 if test "x$srcdir" = x.
; then
4316 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4319 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4321 DEFS
=-DHAVE_CONFIG_H
4323 # Without the "./", some shells look in PATH for config.status.
4324 : ${CONFIG_STATUS=./config.status}
4326 echo creating
$CONFIG_STATUS
4327 rm -f $CONFIG_STATUS
4328 cat > $CONFIG_STATUS <<EOF
4330 # Generated automatically by configure.
4331 # Run this file to recreate the current configuration.
4332 # This directory was configured as follows,
4333 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4335 # $0 $ac_configure_args
4337 # Compiler output produced by configure, useful for debugging
4338 # configure, is in ./config.log if it exists.
4340 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4343 case "\$ac_option" in
4344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4345 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4346 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4347 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4348 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4350 -help | --help | --hel | --he | --h)
4351 echo "\$ac_cs_usage"; exit 0 ;;
4352 *) echo "\$ac_cs_usage"; exit 1 ;;
4356 ac_given_srcdir=$srcdir
4357 ac_given_INSTALL="$INSTALL"
4359 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4361 cat >> $CONFIG_STATUS <<EOF
4363 # Protect against being on the right side of a sed subst in config.status.
4364 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4365 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4369 s%@CFLAGS@%$CFLAGS%g
4370 s%@CPPFLAGS@%$CPPFLAGS%g
4371 s%@CXXFLAGS@%$CXXFLAGS%g
4372 s%@FFLAGS@%$FFLAGS%g
4374 s%@LDFLAGS@%$LDFLAGS%g
4376 s%@exec_prefix@%$exec_prefix%g
4377 s%@prefix@%$prefix%g
4378 s%@program_transform_name@%$program_transform_name%g
4379 s%@bindir@%$bindir%g
4380 s%@sbindir@%$sbindir%g
4381 s%@libexecdir@%$libexecdir%g
4382 s%@datadir@%$datadir%g
4383 s%@sysconfdir@%$sysconfdir%g
4384 s%@sharedstatedir@%$sharedstatedir%g
4385 s%@localstatedir@%$localstatedir%g
4386 s%@libdir@%$libdir%g
4387 s%@includedir@%$includedir%g
4388 s%@oldincludedir@%$oldincludedir%g
4389 s%@infodir@%$infodir%g
4390 s%@mandir@%$mandir%g
4392 s%@host_alias@%$host_alias%g
4393 s%@host_cpu@%$host_cpu%g
4394 s%@host_vendor@%$host_vendor%g
4395 s%@host_os@%$host_os%g
4396 s%@target@%$target%g
4397 s%@target_alias@%$target_alias%g
4398 s%@target_cpu@%$target_cpu%g
4399 s%@target_vendor@%$target_vendor%g
4400 s%@target_os@%$target_os%g
4402 s%@build_alias@%$build_alias%g
4403 s%@build_cpu@%$build_cpu%g
4404 s%@build_vendor@%$build_vendor%g
4405 s%@build_os@%$build_os%g
4407 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4408 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4409 s%@INSTALL_DATA@%$INSTALL_DATA%g
4410 s%@PACKAGE@%$PACKAGE%g
4411 s%@VERSION@%$VERSION%g
4412 s%@ACLOCAL@%$ACLOCAL%g
4413 s%@AUTOCONF@%$AUTOCONF%g
4414 s%@AUTOMAKE@%$AUTOMAKE%g
4415 s%@AUTOHEADER@%$AUTOHEADER%g
4416 s%@MAKEINFO@%$MAKEINFO%g
4417 s%@SET_MAKE@%$SET_MAKE%g
4419 s%@OBJEXT@%$OBJEXT%g
4420 s%@EXEEXT@%$EXEEXT%g
4421 s%@RANLIB@%$RANLIB%g
4423 s%@LIBTOOL@%$LIBTOOL%g
4425 s%@ALLOCA@%$ALLOCA%g
4426 s%@USE_NLS@%$USE_NLS%g
4427 s%@MSGFMT@%$MSGFMT%g
4428 s%@GMSGFMT@%$GMSGFMT%g
4429 s%@XGETTEXT@%$XGETTEXT%g
4430 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4431 s%@CATALOGS@%$CATALOGS%g
4432 s%@CATOBJEXT@%$CATOBJEXT%g
4433 s%@DATADIRNAME@%$DATADIRNAME%g
4434 s%@GMOFILES@%$GMOFILES%g
4435 s%@INSTOBJEXT@%$INSTOBJEXT%g
4436 s%@INTLDEPS@%$INTLDEPS%g
4437 s%@INTLLIBS@%$INTLLIBS%g
4438 s%@INTLOBJS@%$INTLOBJS%g
4439 s%@POFILES@%$POFILES%g
4441 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4443 s%@GT_YES@%$GT_YES%g
4444 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4446 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4447 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4449 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4454 cat >> $CONFIG_STATUS <<\EOF
4456 # Split the substitutions into bite-sized pieces for seds with
4457 # small command number limits, like on Digital OSF/1 and HP-UX.
4458 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4459 ac_file
=1 # Number of current file.
4460 ac_beg
=1 # First line for current file.
4461 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4464 while $ac_more_lines; do
4465 if test $ac_beg -gt 1; then
4466 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4468 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4470 if test ! -s conftest.s
$ac_file; then
4472 rm -f conftest.s
$ac_file
4474 if test -z "$ac_sed_cmds"; then
4475 ac_sed_cmds
="sed -f conftest.s$ac_file"
4477 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4479 ac_file
=`expr $ac_file + 1`
4481 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4484 if test -z "$ac_sed_cmds"; then
4489 cat >> $CONFIG_STATUS <<EOF
4491 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4493 cat >> $CONFIG_STATUS <<\EOF
4494 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4497 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4498 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4499 *) ac_file_in
="${ac_file}.in" ;;
4502 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4504 # Remove last slash and all that follows it. Not all systems have dirname.
4505 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4506 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4507 # The file is in a subdirectory.
4508 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4509 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4510 # A "../" for each directory in $ac_dir_suffix.
4511 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4513 ac_dir_suffix
= ac_dots
=
4516 case "$ac_given_srcdir" in
4518 if test -z "$ac_dots"; then top_srcdir
=.
4519 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4520 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4522 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4523 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4526 case "$ac_given_INSTALL" in
4527 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4528 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4531 echo creating
"$ac_file"
4533 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4535 *Makefile
*) ac_comsub
="1i\\
4536 # $configure_input" ;;
4540 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4542 s%@configure_input@%$configure_input%g
4543 s%@srcdir@%$srcdir%g
4544 s%@top_srcdir@%$top_srcdir%g
4545 s%@INSTALL@%$INSTALL%g
4546 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4553 # ac_d sets the value in "#define NAME VALUE" lines.
4554 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4555 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4558 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4559 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4560 ac_uB
='\([ ]\)%\1#\2define\3'
4563 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4564 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4565 ac_eB
='$%\1#\2define\3'
4569 if test "${CONFIG_HEADERS+set}" != set; then
4571 cat >> $CONFIG_STATUS <<EOF
4572 CONFIG_HEADERS="gconfig.h:gconfig.in"
4574 cat >> $CONFIG_STATUS <<\EOF
4576 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4579 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4580 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4581 *) ac_file_in
="${ac_file}.in" ;;
4584 echo creating
$ac_file
4586 rm -f conftest.frag conftest.
in conftest.out
4587 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4588 cat $ac_file_inputs > conftest.
in
4592 # Transform confdefs.h into a sed script conftest.vals that substitutes
4593 # the proper values into config.h.in to produce config.h. And first:
4594 # Protect against being on the right side of a sed subst in config.status.
4595 # Protect against being in an unquoted here document in config.status.
4597 cat > conftest.hdr
<<\EOF
4600 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4604 sed -n -f conftest.hdr confdefs.h > conftest.vals
4607 # This sed command replaces #undef with comments. This is necessary, for
4608 # example, in the case of _POSIX_SOURCE, which is predefined and required
4609 # on some systems where configure will not decide to define it.
4610 cat >> conftest.vals <<\EOF
4611 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4614 # Break up conftest.vals because some shells have a limit on
4615 # the size of here documents, and old seds have small limits too.
4620 ac_lines=`grep -c . conftest.vals
`
4621 # grep -c gives empty output for an empty file on some AIX systems.
4622 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4623 # Write a limited-size here document to conftest.frag.
4624 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4625 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4627 sed -f conftest.frag conftest.in > conftest.out
4629 mv conftest.out conftest.in
4631 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4633 mv conftest.tail conftest.vals
4637 cat >> $CONFIG_STATUS <<\EOF
4638 rm -f conftest.frag conftest.h
4639 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4640 cat conftest.in >> conftest.h
4642 if cmp -s $ac_file conftest.h 2>/dev/null; then
4643 echo "$ac_file is unchanged"
4646 # Remove last slash and all that follows it. Not all systems have dirname.
4647 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4648 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4649 # The file is in a subdirectory.
4650 test ! -d "$ac_dir" && mkdir "$ac_dir"
4653 mv conftest.h $ac_file
4658 cat >> $CONFIG_STATUS <<EOF
4662 cat >> $CONFIG_STATUS <<\EOF
4663 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4664 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4667 chmod +x $CONFIG_STATUS
4668 rm -fr confdefs* $ac_clean_files
4669 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1