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_CMD'
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
1475 cygwin
* | mingw
* |pw32
*)
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_CMD'; 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_CMD'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 case "$MAGIC_CMD" in
1660 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1663 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1666 ac_save_MAGIC_CMD
="$MAGIC_CMD"
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_CMD
="$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_CMD
="$lt_cv_path_MAGIC_CMD"
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_CMD
="$ac_save_MAGIC_CMD"
1706 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1707 if test -n "$MAGIC_CMD"; then
1708 echo "$ac_t""$MAGIC_CMD" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 if test -z "$lt_cv_path_MAGIC_CMD"; 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_CMD'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 case "$MAGIC_CMD" in
1722 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1725 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1728 ac_save_MAGIC_CMD
="$MAGIC_CMD"
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_CMD
="$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_CMD
="$lt_cv_path_MAGIC_CMD"
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_CMD
="$ac_save_MAGIC_CMD"
1768 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1769 if test -n "$MAGIC_CMD"; then
1770 echo "$ac_t""$MAGIC_CMD" 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_CMD
="$MAGIC_CMD" 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
2116 # Extract the first word of "gcc", so it can be a program name with args.
2117 set dummy gcc
; ac_word
=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC
="$CC" # Let the user override the test.
2126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2128 for ac_dir
in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir
=.
2130 if test -f $ac_dir/$ac_word; then
2139 if test -n "$CC"; then
2140 echo "$ac_t""$CC" 1>&6
2142 echo "$ac_t""no" 1>&6
2145 if test -z "$CC"; then
2146 # Extract the first word of "cc", so it can be a program name with args.
2147 set dummy cc
; ac_word
=$2
2148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_word" >&5
2150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC
="$CC" # Let the user override the test.
2156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2159 for ac_dir
in $ac_dummy; do
2160 test -z "$ac_dir" && ac_dir
=.
2161 if test -f $ac_dir/$ac_word; then
2162 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2163 ac_prog_rejected
=yes
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy
$ac_cv_prog_CC
2175 if test $# -gt 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2180 set dummy
"$ac_dir/$ac_word" "$@"
2188 if test -n "$CC"; then
2189 echo "$ac_t""$CC" 1>&6
2191 echo "$ac_t""no" 1>&6
2194 if test -z "$CC"; then
2195 case "`uname -s`" in
2197 # Extract the first word of "cl", so it can be a program name with args.
2198 set dummy cl
; ac_word
=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 if test -n "$CC"; then
2205 ac_cv_prog_CC
="$CC" # Let the user override the test.
2207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2209 for ac_dir
in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir
=.
2211 if test -f $ac_dir/$ac_word; then
2220 if test -n "$CC"; then
2221 echo "$ac_t""$CC" 1>&6
2223 echo "$ac_t""no" 1>&6
2228 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2236 ac_cpp
='$CPP $CPPFLAGS'
2237 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2238 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2239 cross_compiling
=$ac_cv_prog_cc_cross
2241 cat > conftest.
$ac_ext << EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2248 if { (eval echo configure
:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2249 ac_cv_prog_cc_works
=yes
2250 # If we can't run a trivial program, we are probably using a cross compiler.
2251 if (.
/conftest
; exit) 2>/dev
/null
; then
2252 ac_cv_prog_cc_cross
=no
2254 ac_cv_prog_cc_cross
=yes
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2259 ac_cv_prog_cc_works
=no
2263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2264 ac_cpp
='$CPP $CPPFLAGS'
2265 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2266 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2267 cross_compiling
=$ac_cv_prog_cc_cross
2269 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2270 if test $ac_cv_prog_cc_works = no
; then
2271 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2273 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2274 echo "configure:2275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2275 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2276 cross_compiling
=$ac_cv_prog_cc_cross
2278 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2279 echo "configure:2280: checking whether we are using GNU C" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.c
<<EOF
2288 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2295 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2297 if test $ac_cv_prog_gcc = yes; then
2303 ac_test_CFLAGS
="${CFLAGS+set}"
2304 ac_save_CFLAGS
="$CFLAGS"
2306 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2307 echo "configure:2308: checking whether ${CC-cc} accepts -g" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 echo 'void f(){}' > conftest.c
2312 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2321 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2322 if test "$ac_test_CFLAGS" = set; then
2323 CFLAGS
="$ac_save_CFLAGS"
2324 elif test $ac_cv_prog_cc_g = yes; then
2325 if test "$GCC" = yes; then
2331 if test "$GCC" = yes; then
2338 # Find a good install program. We prefer a C program (faster),
2339 # so one script is as good as another. But avoid the broken or
2340 # incompatible versions:
2341 # SysV /etc/install, /usr/sbin/install
2342 # SunOS /usr/etc/install
2343 # IRIX /sbin/install
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # ./install, which can be erroneously created by make from ./install.sh.
2349 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2350 echo "configure:2351: checking for a BSD compatible install" >&5
2351 if test -z "$INSTALL"; then
2352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2356 for ac_dir
in $PATH; do
2357 # Account for people who put trailing slashes in PATH elements.
2359 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2361 # OSF1 and SCO ODT 3.0 have their own names for install.
2362 # Don't use installbsd from OSF since it installs stuff as root
2364 for ac_prog
in ginstall scoinst
install; do
2365 if test -f $ac_dir/$ac_prog; then
2366 if test $ac_prog = install &&
2367 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2371 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2382 if test "${ac_cv_path_install+set}" = set; then
2383 INSTALL
="$ac_cv_path_install"
2385 # As a last resort, use the slow shell script. We don't cache a
2386 # path for INSTALL within a source directory, because that will
2387 # break other packages using the cache if that directory is
2388 # removed, or if the path is relative.
2389 INSTALL
="$ac_install_sh"
2392 echo "$ac_t""$INSTALL" 1>&6
2394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395 # It thinks the first close brace ends the variable substitution.
2396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2400 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2403 for ac_func
in setmode
2405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_func" >&5
2407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 /* System header to define __stub macros and hopefully few prototypes,
2414 which can conflict with char $ac_func(); below. */
2416 /* Override any gcc2 internal prototype to avoid an error. */
2417 /* We use char because int might match the return type of a gcc2
2418 builtin and then its argument prototype would still apply. */
2423 /* The GNU C library defines this for functions which it implements
2424 to always fail with ENOSYS. Some functions are actually named
2425 something starting with __ and the normal name is an alias. */
2426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2434 if { (eval echo configure
:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2436 eval "ac_cv_func_$ac_func=yes"
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 eval "ac_cv_func_$ac_func=no"
2446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2449 cat >> confdefs.h
<<EOF
2450 #define $ac_tr_func 1
2454 echo "$ac_t""no" 1>&6
2460 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2461 echo "configure:2462: checking how to run the C preprocessor" >&5
2462 # On Suns, sometimes $CPP names a directory.
2463 if test -n "$CPP" && test -d "$CPP"; then
2466 if test -z "$CPP"; then
2467 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 # This must be in double quotes, not single quotes, because CPP may get
2471 # substituted into the Makefile and "${CC-cc}" will confuse make.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp.
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure
:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2491 CPP
="${CC-cc} -E -traditional-cpp"
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure
:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 CPP
="${CC-cc} -nologo -E"
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2515 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure
:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2532 ac_cv_prog_CPP
="$CPP"
2534 CPP
="$ac_cv_prog_CPP"
2536 ac_cv_prog_CPP
="$CPP"
2538 echo "$ac_t""$CPP" 1>&6
2540 # Extract the first word of "ranlib", so it can be a program name with args.
2541 set dummy ranlib
; ac_word
=$2
2542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_word" >&5
2544 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 if test -n "$RANLIB"; then
2548 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2550 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2552 for ac_dir
in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir
=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_prog_RANLIB
="ranlib"
2560 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2563 RANLIB
="$ac_cv_prog_RANLIB"
2564 if test -n "$RANLIB"; then
2565 echo "$ac_t""$RANLIB" 1>&6
2567 echo "$ac_t""no" 1>&6
2570 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2571 echo "configure:2572: checking for ANSI C header files" >&5
2572 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 cat > conftest.
$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure
:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 ac_cv_header_stdc
=yes
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 ac_cv_header_stdc
=no
2598 if test $ac_cv_header_stdc = yes; then
2599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2606 egrep "memchr" >/dev
/null
2>&1; then
2610 ac_cv_header_stdc
=no
2616 if test $ac_cv_header_stdc = yes; then
2617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "free" >/dev
/null
2>&1; then
2628 ac_cv_header_stdc
=no
2634 if test $ac_cv_header_stdc = yes; then
2635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2636 if test "$cross_compiling" = yes; then
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2643 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2644 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2646 int main () { int i; for (i = 0; i < 256; i++)
2647 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2651 if { (eval echo configure
:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 ac_cv_header_stdc
=no
2666 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2667 if test $ac_cv_header_stdc = yes; then
2668 cat >> confdefs.h
<<\EOF
2669 #define STDC_HEADERS 1
2674 echo $ac_n "checking for working const""... $ac_c" 1>&6
2675 echo "configure:2676: checking for working const" >&5
2676 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2685 /* Ultrix mips cc rejects this. */
2686 typedef int charset[2]; const charset x;
2687 /* SunOS 4.1.1 cc rejects this. */
2688 char const *const *ccp;
2690 /* NEC SVR4.0.2 mips cc rejects this. */
2691 struct point {int x, y;};
2692 static struct point const zero = {0,0};
2693 /* AIX XL C 1.02.0.0 rejects this.
2694 It does not let you subtract one const X* pointer from another in an arm
2695 of an if-expression whose if-part is not a constant expression */
2696 const char *g = "string";
2697 ccp = &g + (g ? g-g : 0);
2698 /* HPUX 7.0 cc rejects these. */
2701 ccp = (char const *const *) p;
2702 { /* SCO 3.2v4 cc rejects this. */
2704 char const *s = 0 ? (char *) 0 : (char const *) 0;
2708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2710 const int *foo = &x[0];
2713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2714 typedef const int *iptr;
2718 { /* AIX XL C 1.02.0.0 rejects this saying
2719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2720 struct s { int j; const int *ap[3]; };
2721 struct s *b; b->j = 5;
2723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2741 echo "$ac_t""$ac_cv_c_const" 1>&6
2742 if test $ac_cv_c_const = no
; then
2743 cat >> confdefs.h
<<\EOF
2749 echo $ac_n "checking for inline""... $ac_c" 1>&6
2750 echo "configure:2751: checking for inline" >&5
2751 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2755 for ac_kw
in inline __inline__ __inline
; do
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2764 if { (eval echo configure
:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 ac_cv_c_inline
=$ac_kw; break
2768 echo "configure: failed program was:" >&5
2769 cat conftest.
$ac_ext >&5
2776 echo "$ac_t""$ac_cv_c_inline" 1>&6
2777 case "$ac_cv_c_inline" in
2779 no
) cat >> confdefs.h
<<\EOF
2783 *) cat >> confdefs.h
<<EOF
2784 #define inline $ac_cv_c_inline
2789 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2790 echo "configure:2791: checking for off_t" >&5
2791 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 cat > conftest.
$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <sys/types.h>
2803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2804 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2806 ac_cv_type_off_t
=yes
2814 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2815 if test $ac_cv_type_off_t = no
; then
2816 cat >> confdefs.h
<<\EOF
2822 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2823 echo "configure:2824: checking for size_t" >&5
2824 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <sys/types.h>
2836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2839 ac_cv_type_size_t
=yes
2842 ac_cv_type_size_t
=no
2847 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2848 if test $ac_cv_type_size_t = no
; then
2849 cat >> confdefs.h
<<\EOF
2850 #define size_t unsigned
2855 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2856 # for constant arguments. Useless!
2857 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2858 echo "configure:2859: checking for working alloca.h" >&5
2859 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 char *p = alloca(2 * sizeof(int));
2870 if { (eval echo configure
:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2872 ac_cv_header_alloca_h
=yes
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 ac_cv_header_alloca_h
=no
2882 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2883 if test $ac_cv_header_alloca_h = yes; then
2884 cat >> confdefs.h
<<\EOF
2885 #define HAVE_ALLOCA_H 1
2890 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2891 echo "configure:2892: checking for alloca" >&5
2892 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2900 # define alloca __builtin_alloca
2903 # include <malloc.h>
2904 # define alloca _alloca
2907 # include <alloca.h>
2912 # ifndef alloca /* predefined by HP cc +Olibcalls */
2921 char *p = (char *) alloca(1);
2924 if { (eval echo configure
:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2926 ac_cv_func_alloca_works
=yes
2928 echo "configure: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2931 ac_cv_func_alloca_works
=no
2936 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2937 if test $ac_cv_func_alloca_works = yes; then
2938 cat >> confdefs.h
<<\EOF
2939 #define HAVE_ALLOCA 1
2944 if test $ac_cv_func_alloca_works = no
; then
2945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2946 # that cause trouble. Some versions do not even contain alloca or
2947 # contain a buggy version. If you still want to use their alloca,
2948 # use ar to extract alloca.o from them instead of compiling alloca.c.
2949 ALLOCA
=alloca.
${ac_objext}
2950 cat >> confdefs.h
<<\EOF
2955 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether alloca needs Cray hooks" >&5
2957 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #if defined(CRAY) && ! defined(CRAY2)
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "webecray" >/dev
/null
2>&1; then
2982 echo "$ac_t""$ac_cv_os_cray" 1>&6
2983 if test $ac_cv_os_cray = yes; then
2984 for ac_func
in _getb67 GETB67 getb67
; do
2985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_func" >&5
2987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 /* System header to define __stub macros and hopefully few prototypes,
2994 which can conflict with char $ac_func(); below. */
2996 /* Override any gcc2 internal prototype to avoid an error. */
2997 /* We use char because int might match the return type of a gcc2
2998 builtin and then its argument prototype would still apply. */
3003 /* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3014 if { (eval echo configure
:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3016 eval "ac_cv_func_$ac_func=yes"
3018 echo "configure: failed program was:" >&5
3019 cat conftest.
$ac_ext >&5
3021 eval "ac_cv_func_$ac_func=no"
3026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 cat >> confdefs.h
<<EOF
3029 #define CRAY_STACKSEG_END $ac_func
3034 echo "$ac_t""no" 1>&6
3040 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3041 echo "configure:3042: checking stack direction for C alloca" >&5
3042 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 if test "$cross_compiling" = yes; then
3046 ac_cv_c_stack_direction
=0
3048 cat > conftest.
$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 find_stack_direction ()
3053 static char *addr = 0;
3058 return find_stack_direction ();
3061 return (&dummy > addr) ? 1 : -1;
3065 exit (find_stack_direction() < 0);
3068 if { (eval echo configure
:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3070 ac_cv_c_stack_direction
=1
3072 echo "configure: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 ac_cv_c_stack_direction
=-1
3082 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3083 cat >> confdefs.h
<<EOF
3084 #define STACK_DIRECTION $ac_cv_c_stack_direction
3089 for ac_hdr
in unistd.h
3091 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_hdr" >&5
3094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3103 { (eval echo configure
:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3105 if test -z "$ac_err"; then
3107 eval "ac_cv_header_$ac_safe=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3113 eval "ac_cv_header_$ac_safe=no"
3117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3120 cat >> confdefs.h
<<EOF
3121 #define $ac_tr_hdr 1
3125 echo "$ac_t""no" 1>&6
3129 for ac_func
in getpagesize
3131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_func" >&5
3133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $ac_func(); below. */
3142 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3149 /* The GNU C library defines this for functions which it implements
3150 to always fail with ENOSYS. Some functions are actually named
3151 something starting with __ and the normal name is an alias. */
3152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3160 if { (eval echo configure
:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3162 eval "ac_cv_func_$ac_func=yes"
3164 echo "configure: failed program was:" >&5
3165 cat conftest.
$ac_ext >&5
3167 eval "ac_cv_func_$ac_func=no"
3172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3175 cat >> confdefs.h
<<EOF
3176 #define $ac_tr_func 1
3180 echo "$ac_t""no" 1>&6
3184 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3185 echo "configure:3186: checking for working mmap" >&5
3186 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test "$cross_compiling" = yes; then
3190 ac_cv_func_mmap_fixed_mapped
=no
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3196 /* Thanks to Mike Haertel and Jim Avera for this test.
3197 Here is a matrix of mmap possibilities:
3198 mmap private not fixed
3199 mmap private fixed at somewhere currently unmapped
3200 mmap private fixed at somewhere already mapped
3201 mmap shared not fixed
3202 mmap shared fixed at somewhere currently unmapped
3203 mmap shared fixed at somewhere already mapped
3204 For private mappings, we should verify that changes cannot be read()
3205 back from the file, nor mmap's back from the file at a different
3206 address. (There have been systems where private was not correctly
3207 implemented like the infamous i386 svr4.0, and systems where the
3208 VM page cache was not coherent with the filesystem buffer cache
3209 like early versions of FreeBSD and possibly contemporary NetBSD.)
3210 For shared mappings, we should conversely verify that changes get
3211 propogated back to all the places they're supposed to be.
3213 Grep wants private fixed already mapped.
3214 The main things grep needs to know about mmap are:
3215 * does it exist and is it safe to write into the mmap'd area
3216 * how to use it (BSD variants) */
3217 #include <sys/types.h>
3219 #include <sys/mman.h>
3221 /* This mess was copied from the GNU getpagesize.h. */
3222 #ifndef HAVE_GETPAGESIZE
3223 # ifdef HAVE_UNISTD_H
3224 # include <unistd.h>
3227 /* Assume that all systems that can run configure have sys/param.h. */
3228 # ifndef HAVE_SYS_PARAM_H
3229 # define HAVE_SYS_PARAM_H 1
3232 # ifdef _SC_PAGESIZE
3233 # define getpagesize() sysconf(_SC_PAGESIZE)
3234 # else /* no _SC_PAGESIZE */
3235 # ifdef HAVE_SYS_PARAM_H
3236 # include <sys/param.h>
3237 # ifdef EXEC_PAGESIZE
3238 # define getpagesize() EXEC_PAGESIZE
3239 # else /* no EXEC_PAGESIZE */
3241 # define getpagesize() NBPG * CLSIZE
3244 # endif /* no CLSIZE */
3245 # else /* no NBPG */
3247 # define getpagesize() NBPC
3248 # else /* no NBPC */
3250 # define getpagesize() PAGESIZE
3251 # endif /* PAGESIZE */
3252 # endif /* no NBPC */
3253 # endif /* no NBPG */
3254 # endif /* no EXEC_PAGESIZE */
3255 # else /* no HAVE_SYS_PARAM_H */
3256 # define getpagesize() 8192 /* punt totally */
3257 # endif /* no HAVE_SYS_PARAM_H */
3258 # endif /* no _SC_PAGESIZE */
3260 #endif /* no HAVE_GETPAGESIZE */
3263 extern "C" { void *malloc(unsigned); }
3271 char *data, *data2, *data3;
3275 pagesize = getpagesize();
3278 * First, make a file with some known garbage in it.
3280 data = malloc(pagesize);
3283 for (i = 0; i < pagesize; ++i)
3284 *(data + i) = rand();
3286 fd = creat("conftestmmap", 0600);
3289 if (write(fd, data, pagesize) != pagesize)
3294 * Next, try to mmap the file at a fixed address which
3295 * already has something else allocated at it. If we can,
3296 * also make sure that we see the same garbage.
3298 fd = open("conftestmmap", O_RDWR);
3301 data2 = malloc(2 * pagesize);
3304 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3305 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3308 for (i = 0; i < pagesize; ++i)
3309 if (*(data + i) != *(data2 + i))
3313 * Finally, make sure that changes to the mapped area
3314 * do not percolate back to the file as seen by read().
3315 * (This is a bug on some variants of i386 svr4.0.)
3317 for (i = 0; i < pagesize; ++i)
3318 *(data2 + i) = *(data2 + i) + 1;
3319 data3 = malloc(pagesize);
3322 if (read(fd, data3, pagesize) != pagesize)
3324 for (i = 0; i < pagesize; ++i)
3325 if (*(data + i) != *(data3 + i))
3328 unlink("conftestmmap");
3333 if { (eval echo configure
:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3335 ac_cv_func_mmap_fixed_mapped
=yes
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 ac_cv_func_mmap_fixed_mapped
=no
3347 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3348 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3349 cat >> confdefs.h
<<\EOF
3356 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3357 unistd.h values.h sys
/param.h
3359 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_hdr" >&5
3362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3371 { (eval echo configure
:3372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3372 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3373 if test -z "$ac_err"; then
3375 eval "ac_cv_header_$ac_safe=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3381 eval "ac_cv_header_$ac_safe=no"
3385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3388 cat >> confdefs.h
<<EOF
3389 #define $ac_tr_hdr 1
3393 echo "$ac_t""no" 1>&6
3397 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3398 __argz_count __argz_stringify __argz_next
3400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_func" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char $ac_func(); below. */
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3429 if { (eval echo configure
:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3431 eval "ac_cv_func_$ac_func=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_func_$ac_func=no"
3441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 cat >> confdefs.h
<<EOF
3445 #define $ac_tr_func 1
3449 echo "$ac_t""no" 1>&6
3454 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3455 for ac_func
in stpcpy
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_func" >&5
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3488 eval "ac_cv_func_$ac_func=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_func_$ac_func=no"
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h
<<EOF
3502 #define $ac_tr_func 1
3506 echo "$ac_t""no" 1>&6
3511 if test "${ac_cv_func_stpcpy}" = "yes"; then
3512 cat >> confdefs.h
<<\EOF
3513 #define HAVE_STPCPY 1
3518 if test $ac_cv_header_locale_h = yes; then
3519 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3520 echo "configure:3521: checking for LC_MESSAGES" >&5
3521 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.
$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3532 if { (eval echo configure
:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3534 am_cv_val_LC_MESSAGES
=yes
3536 echo "configure: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3539 am_cv_val_LC_MESSAGES
=no
3544 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3545 if test $am_cv_val_LC_MESSAGES = yes; then
3546 cat >> confdefs.h
<<\EOF
3547 #define HAVE_LC_MESSAGES 1
3552 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether NLS is requested" >&5
3554 # Check whether --enable-nls or --disable-nls was given.
3555 if test "${enable_nls+set}" = set; then
3556 enableval
="$enable_nls"
3562 echo "$ac_t""$USE_NLS" 1>&6
3565 USE_INCLUDED_LIBINTL
=no
3567 if test "$USE_NLS" = "yes"; then
3568 cat >> confdefs.h
<<\EOF
3569 #define ENABLE_NLS 1
3572 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3573 echo "configure:3574: checking whether included gettext is requested" >&5
3574 # Check whether --with-included-gettext or --without-included-gettext was given.
3575 if test "${with_included_gettext+set}" = set; then
3576 withval
="$with_included_gettext"
3577 nls_cv_force_use_gnu_gettext
=$withval
3579 nls_cv_force_use_gnu_gettext
=no
3582 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3584 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3585 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3587 nls_cv_header_libgt
=
3590 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3591 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3592 echo "configure:3593: checking for libintl.h" >&5
3593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <libintl.h>
3601 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3602 { (eval echo configure
:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3603 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3604 if test -z "$ac_err"; then
3606 eval "ac_cv_header_$ac_safe=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.
$ac_ext >&5
3612 eval "ac_cv_header_$ac_safe=no"
3616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3619 echo "configure:3620: checking for gettext in libc" >&5
3620 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <libintl.h>
3628 return (int) gettext ("")
3631 if { (eval echo configure
:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3633 gt_cv_func_gettext_libc
=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 gt_cv_func_gettext_libc
=no
3643 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3645 if test "$gt_cv_func_gettext_libc" != "yes"; then
3646 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3647 echo "configure:3648: checking for bindtextdomain in -lintl" >&5
3648 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS
="$LIBS"
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3660 char bindtextdomain();
3666 if { (eval echo configure
:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS
="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3682 echo "configure:3683: checking for gettext in libintl" >&5
3683 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.
$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3691 return (int) gettext ("")
3694 if { (eval echo configure
:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3696 gt_cv_func_gettext_libintl
=yes
3698 echo "configure: failed program was:" >&5
3699 cat conftest.
$ac_ext >&5
3701 gt_cv_func_gettext_libintl
=no
3706 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3708 echo "$ac_t""no" 1>&6
3713 if test "$gt_cv_func_gettext_libc" = "yes" \
3714 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3715 cat >> confdefs.h
<<\EOF
3716 #define HAVE_GETTEXT 1
3719 # Extract the first word of "msgfmt", so it can be a program name with args.
3720 set dummy msgfmt
; ac_word
=$2
3721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3732 for ac_dir
in $PATH; do
3733 test -z "$ac_dir" && ac_dir
=.
3734 if test -f $ac_dir/$ac_word; then
3735 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3736 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3742 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3746 MSGFMT
="$ac_cv_path_MSGFMT"
3747 if test -n "$MSGFMT"; then
3748 echo "$ac_t""$MSGFMT" 1>&6
3750 echo "$ac_t""no" 1>&6
3752 if test "$MSGFMT" != "no"; then
3753 for ac_func
in dcgettext
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 eval "ac_cv_func_$ac_func=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 eval "ac_cv_func_$ac_func=no"
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h
<<EOF
3800 #define $ac_tr_func 1
3804 echo "$ac_t""no" 1>&6
3808 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3809 set dummy gmsgfmt
; ac_word
=$2
3810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3811 echo "configure:3812: checking for $ac_word" >&5
3812 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3820 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3825 for ac_dir
in $ac_dummy; do
3826 test -z "$ac_dir" && ac_dir
=.
3827 if test -f $ac_dir/$ac_word; then
3828 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3833 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3837 GMSGFMT
="$ac_cv_path_GMSGFMT"
3838 if test -n "$GMSGFMT"; then
3839 echo "$ac_t""$GMSGFMT" 1>&6
3841 echo "$ac_t""no" 1>&6
3844 # Extract the first word of "xgettext", so it can be a program name with args.
3845 set dummy xgettext
; ac_word
=$2
3846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3847 echo "configure:3848: checking for $ac_word" >&5
3848 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3853 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3857 for ac_dir
in $PATH; do
3858 test -z "$ac_dir" && ac_dir
=.
3859 if test -f $ac_dir/$ac_word; then
3860 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3861 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3867 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3871 XGETTEXT
="$ac_cv_path_XGETTEXT"
3872 if test -n "$XGETTEXT"; then
3873 echo "$ac_t""$XGETTEXT" 1>&6
3875 echo "$ac_t""no" 1>&6
3878 cat > conftest.
$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3883 extern int _nl_msg_cat_cntr;
3884 return _nl_msg_cat_cntr
3887 if { (eval echo configure
:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3892 echo "configure: failed program was:" >&5
3893 cat conftest.
$ac_ext >&5
3904 echo "$ac_t""no" 1>&6
3909 if test "$CATOBJEXT" = "NONE"; then
3910 nls_cv_use_gnu_gettext
=yes
3914 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3915 INTLOBJS
="\$(GETTOBJS)"
3916 # Extract the first word of "msgfmt", so it can be a program name with args.
3917 set dummy msgfmt
; ac_word
=$2
3918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_word" >&5
3920 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3925 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3928 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3929 for ac_dir
in $PATH; do
3930 test -z "$ac_dir" && ac_dir
=.
3931 if test -f $ac_dir/$ac_word; then
3932 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3933 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3939 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3943 MSGFMT
="$ac_cv_path_MSGFMT"
3944 if test -n "$MSGFMT"; then
3945 echo "$ac_t""$MSGFMT" 1>&6
3947 echo "$ac_t""no" 1>&6
3950 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3951 set dummy gmsgfmt
; ac_word
=$2
3952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_word" >&5
3954 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3959 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3962 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3967 for ac_dir
in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir
=.
3969 if test -f $ac_dir/$ac_word; then
3970 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3975 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3979 GMSGFMT
="$ac_cv_path_GMSGFMT"
3980 if test -n "$GMSGFMT"; then
3981 echo "$ac_t""$GMSGFMT" 1>&6
3983 echo "$ac_t""no" 1>&6
3986 # Extract the first word of "xgettext", so it can be a program name with args.
3987 set dummy xgettext
; ac_word
=$2
3988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_word" >&5
3990 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3995 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3999 for ac_dir
in $PATH; do
4000 test -z "$ac_dir" && ac_dir
=.
4001 if test -f $ac_dir/$ac_word; then
4002 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4003 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4009 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4013 XGETTEXT
="$ac_cv_path_XGETTEXT"
4014 if test -n "$XGETTEXT"; then
4015 echo "$ac_t""$XGETTEXT" 1>&6
4017 echo "$ac_t""no" 1>&6
4021 USE_INCLUDED_LIBINTL
=yes
4025 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4027 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4028 nls_cv_header_intl
=libintl.h
4029 nls_cv_header_libgt
=libgettext.h
4032 if test "$XGETTEXT" != ":"; then
4033 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4036 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4041 # We need to process the po/ directory.
4045 nls_cv_header_intl
=libintl.h
4046 nls_cv_header_libgt
=libgettext.h
4049 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4050 # because some of the sources are only built for this goal.
4051 if test "$PACKAGE" = gettext; then
4053 USE_INCLUDED_LIBINTL
=yes
4056 for lang
in $ALL_LINGUAS; do
4057 GMOFILES
="$GMOFILES $lang.gmo"
4058 POFILES
="$POFILES $lang.po"
4074 if test "x$CATOBJEXT" != "x"; then
4075 if test "x$ALL_LINGUAS" = "x"; then
4078 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4079 echo "configure:4080: checking for catalogs to be installed" >&5
4081 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4082 case "$ALL_LINGUAS" in
4083 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4086 LINGUAS
=$NEW_LINGUAS
4087 echo "$ac_t""$LINGUAS" 1>&6
4090 if test -n "$LINGUAS"; then
4091 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4095 if test $ac_cv_header_locale_h = yes; then
4096 INCLUDE_LOCALE_H
="#include <locale.h>"
4099 /* The system does not provide the header <locale.h>. Take care yourself. */"
4103 if test -f $srcdir/po2tbl.
sed.
in; then
4104 if test "$CATOBJEXT" = ".cat"; then
4105 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4106 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4107 echo "configure:4108: checking for linux/version.h" >&5
4108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <linux/version.h>
4116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4117 { (eval echo configure
:4118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4119 if test -z "$ac_err"; then
4121 eval "ac_cv_header_$ac_safe=yes"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.
$ac_ext >&5
4127 eval "ac_cv_header_$ac_safe=no"
4131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4135 echo "$ac_t""no" 1>&6
4140 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4142 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4143 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4146 if test "$PACKAGE" = "gettext"; then
4156 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4162 if test -d $srcdir/po
; then
4163 test -d po || mkdir po
4164 if test "x$srcdir" != "x."; then
4165 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4166 posrcprefix
="$srcdir/"
4168 posrcprefix
="../$srcdir/"
4174 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4175 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4179 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether to enable maintainer-specific portions of Makefiles" >&5
4181 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4182 if test "${enable_maintainer_mode+set}" = set; then
4183 enableval
="$enable_maintainer_mode"
4184 USE_MAINTAINER_MODE
=$enableval
4186 USE_MAINTAINER_MODE
=no
4189 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4192 if test $USE_MAINTAINER_MODE = yes; then
4193 MAINTAINER_MODE_TRUE
=
4194 MAINTAINER_MODE_FALSE
='#'
4196 MAINTAINER_MODE_TRUE
='#'
4197 MAINTAINER_MODE_FALSE
=
4199 MAINT
=$MAINTAINER_MODE_TRUE
4204 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4205 echo "configure:4206: checking for executable suffix" >&5
4206 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4213 echo 'int main () { return 0; }' > conftest.
$ac_ext
4215 if { (eval echo configure
:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4216 for file in conftest.
*; do
4218 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4219 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4223 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4226 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4231 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4232 echo "$ac_t""${ac_cv_exeext}" 1>&6
4236 build_warnings
="-W -Wall"
4237 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4238 if test "${enable_build_warnings+set}" = set; then
4239 enableval
="$enable_build_warnings"
4240 case "${enableval}" in
4242 no
) build_warnings
="-w";;
4243 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4244 build_warnings
="${build_warnings} ${t}";;
4245 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4246 build_warnings
="${t} ${build_warnings}";;
4247 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4249 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4250 echo "Setting warning flags = $build_warnings" 6>&1
4254 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
4255 WARN_CFLAGS
="${build_warnings}"
4260 cat > confcache
<<\EOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs. It is not useful on other systems.
4264 # If it contains results you don't want to keep, you may remove or edit it.
4266 # By default, configure uses ./config.cache as the cache file,
4267 # creating it if it does not exist already. You can give configure
4268 # the --cache-file=FILE option to use a different cache file; that is
4269 # what configure does when it calls configure scripts in
4270 # subdirectories, so they share the cache.
4271 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4272 # config.status only pays attention to the cache file if you give it the
4273 # --recheck option to rerun configure.
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4282 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4284 # `set' does not quote correctly, so add quotes (double-quote substitution
4285 # turns \\\\ into \\, and sed turns \\ into \).
4287 -e "s/'/'\\\\''/g" \
4288 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4291 # `set' quotes correctly as required by POSIX, so do not add quotes.
4292 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4295 if cmp -s $cache_file confcache
; then
4298 if test -w $cache_file; then
4299 echo "updating cache $cache_file"
4300 cat confcache
> $cache_file
4302 echo "not updating unwritable cache $cache_file"
4307 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4309 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4310 # Let make expand exec_prefix.
4311 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4313 # Any assignment to VPATH causes Sun make to only execute
4314 # the first set of double-colon rules, so remove it if not needed.
4315 # If there is a colon in the path, we need to keep it.
4316 if test "x$srcdir" = x.
; then
4317 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4320 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4322 DEFS
=-DHAVE_CONFIG_H
4324 # Without the "./", some shells look in PATH for config.status.
4325 : ${CONFIG_STATUS=./config.status}
4327 echo creating
$CONFIG_STATUS
4328 rm -f $CONFIG_STATUS
4329 cat > $CONFIG_STATUS <<EOF
4331 # Generated automatically by configure.
4332 # Run this file to recreate the current configuration.
4333 # This directory was configured as follows,
4334 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4336 # $0 $ac_configure_args
4338 # Compiler output produced by configure, useful for debugging
4339 # configure, is in ./config.log if it exists.
4341 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4344 case "\$ac_option" in
4345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4346 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4347 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4348 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4349 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4351 -help | --help | --hel | --he | --h)
4352 echo "\$ac_cs_usage"; exit 0 ;;
4353 *) echo "\$ac_cs_usage"; exit 1 ;;
4357 ac_given_srcdir=$srcdir
4358 ac_given_INSTALL="$INSTALL"
4360 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4362 cat >> $CONFIG_STATUS <<EOF
4364 # Protect against being on the right side of a sed subst in config.status.
4365 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4366 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4370 s%@CFLAGS@%$CFLAGS%g
4371 s%@CPPFLAGS@%$CPPFLAGS%g
4372 s%@CXXFLAGS@%$CXXFLAGS%g
4373 s%@FFLAGS@%$FFLAGS%g
4375 s%@LDFLAGS@%$LDFLAGS%g
4377 s%@exec_prefix@%$exec_prefix%g
4378 s%@prefix@%$prefix%g
4379 s%@program_transform_name@%$program_transform_name%g
4380 s%@bindir@%$bindir%g
4381 s%@sbindir@%$sbindir%g
4382 s%@libexecdir@%$libexecdir%g
4383 s%@datadir@%$datadir%g
4384 s%@sysconfdir@%$sysconfdir%g
4385 s%@sharedstatedir@%$sharedstatedir%g
4386 s%@localstatedir@%$localstatedir%g
4387 s%@libdir@%$libdir%g
4388 s%@includedir@%$includedir%g
4389 s%@oldincludedir@%$oldincludedir%g
4390 s%@infodir@%$infodir%g
4391 s%@mandir@%$mandir%g
4393 s%@host_alias@%$host_alias%g
4394 s%@host_cpu@%$host_cpu%g
4395 s%@host_vendor@%$host_vendor%g
4396 s%@host_os@%$host_os%g
4397 s%@target@%$target%g
4398 s%@target_alias@%$target_alias%g
4399 s%@target_cpu@%$target_cpu%g
4400 s%@target_vendor@%$target_vendor%g
4401 s%@target_os@%$target_os%g
4403 s%@build_alias@%$build_alias%g
4404 s%@build_cpu@%$build_cpu%g
4405 s%@build_vendor@%$build_vendor%g
4406 s%@build_os@%$build_os%g
4408 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4409 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4410 s%@INSTALL_DATA@%$INSTALL_DATA%g
4411 s%@PACKAGE@%$PACKAGE%g
4412 s%@VERSION@%$VERSION%g
4413 s%@ACLOCAL@%$ACLOCAL%g
4414 s%@AUTOCONF@%$AUTOCONF%g
4415 s%@AUTOMAKE@%$AUTOMAKE%g
4416 s%@AUTOHEADER@%$AUTOHEADER%g
4417 s%@MAKEINFO@%$MAKEINFO%g
4418 s%@SET_MAKE@%$SET_MAKE%g
4420 s%@OBJEXT@%$OBJEXT%g
4421 s%@EXEEXT@%$EXEEXT%g
4422 s%@RANLIB@%$RANLIB%g
4424 s%@LIBTOOL@%$LIBTOOL%g
4426 s%@ALLOCA@%$ALLOCA%g
4427 s%@USE_NLS@%$USE_NLS%g
4428 s%@MSGFMT@%$MSGFMT%g
4429 s%@GMSGFMT@%$GMSGFMT%g
4430 s%@XGETTEXT@%$XGETTEXT%g
4431 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4432 s%@CATALOGS@%$CATALOGS%g
4433 s%@CATOBJEXT@%$CATOBJEXT%g
4434 s%@DATADIRNAME@%$DATADIRNAME%g
4435 s%@GMOFILES@%$GMOFILES%g
4436 s%@INSTOBJEXT@%$INSTOBJEXT%g
4437 s%@INTLDEPS@%$INTLDEPS%g
4438 s%@INTLLIBS@%$INTLLIBS%g
4439 s%@INTLOBJS@%$INTLOBJS%g
4440 s%@POFILES@%$POFILES%g
4442 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4444 s%@GT_YES@%$GT_YES%g
4445 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4447 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4448 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4450 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4455 cat >> $CONFIG_STATUS <<\EOF
4457 # Split the substitutions into bite-sized pieces for seds with
4458 # small command number limits, like on Digital OSF/1 and HP-UX.
4459 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4460 ac_file
=1 # Number of current file.
4461 ac_beg
=1 # First line for current file.
4462 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4465 while $ac_more_lines; do
4466 if test $ac_beg -gt 1; then
4467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4469 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4471 if test ! -s conftest.s
$ac_file; then
4473 rm -f conftest.s
$ac_file
4475 if test -z "$ac_sed_cmds"; then
4476 ac_sed_cmds
="sed -f conftest.s$ac_file"
4478 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4480 ac_file
=`expr $ac_file + 1`
4482 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4485 if test -z "$ac_sed_cmds"; then
4490 cat >> $CONFIG_STATUS <<EOF
4492 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4494 cat >> $CONFIG_STATUS <<\EOF
4495 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4498 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4499 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4500 *) ac_file_in
="${ac_file}.in" ;;
4503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4505 # Remove last slash and all that follows it. Not all systems have dirname.
4506 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4508 # The file is in a subdirectory.
4509 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4510 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4511 # A "../" for each directory in $ac_dir_suffix.
4512 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4514 ac_dir_suffix
= ac_dots
=
4517 case "$ac_given_srcdir" in
4519 if test -z "$ac_dots"; then top_srcdir
=.
4520 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4521 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4523 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4524 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4527 case "$ac_given_INSTALL" in
4528 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4529 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4532 echo creating
"$ac_file"
4534 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4536 *Makefile
*) ac_comsub
="1i\\
4537 # $configure_input" ;;
4541 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4543 s%@configure_input@%$configure_input%g
4544 s%@srcdir@%$srcdir%g
4545 s%@top_srcdir@%$top_srcdir%g
4546 s%@INSTALL@%$INSTALL%g
4547 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4554 # ac_d sets the value in "#define NAME VALUE" lines.
4555 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4556 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4560 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4561 ac_uB
='\([ ]\)%\1#\2define\3'
4564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4565 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4566 ac_eB
='$%\1#\2define\3'
4570 if test "${CONFIG_HEADERS+set}" != set; then
4572 cat >> $CONFIG_STATUS <<EOF
4573 CONFIG_HEADERS="gconfig.h:gconfig.in"
4575 cat >> $CONFIG_STATUS <<\EOF
4577 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4580 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4581 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4582 *) ac_file_in
="${ac_file}.in" ;;
4585 echo creating
$ac_file
4587 rm -f conftest.frag conftest.
in conftest.out
4588 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4589 cat $ac_file_inputs > conftest.
in
4593 # Transform confdefs.h into a sed script conftest.vals that substitutes
4594 # the proper values into config.h.in to produce config.h. And first:
4595 # Protect against being on the right side of a sed subst in config.status.
4596 # Protect against being in an unquoted here document in config.status.
4598 cat > conftest.hdr
<<\EOF
4601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4605 sed -n -f conftest.hdr confdefs.h > conftest.vals
4608 # This sed command replaces #undef with comments. This is necessary, for
4609 # example, in the case of _POSIX_SOURCE, which is predefined and required
4610 # on some systems where configure will not decide to define it.
4611 cat >> conftest.vals <<\EOF
4612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4615 # Break up conftest.vals because some shells have a limit on
4616 # the size of here documents, and old seds have small limits too.
4621 ac_lines=`grep -c . conftest.vals
`
4622 # grep -c gives empty output for an empty file on some AIX systems.
4623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4624 # Write a limited-size here document to conftest.frag.
4625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4628 sed -f conftest.frag conftest.in > conftest.out
4630 mv conftest.out conftest.in
4632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4634 mv conftest.tail conftest.vals
4638 cat >> $CONFIG_STATUS <<\EOF
4639 rm -f conftest.frag conftest.h
4640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4641 cat conftest.in >> conftest.h
4643 if cmp -s $ac_file conftest.h 2>/dev/null; then
4644 echo "$ac_file is unchanged"
4647 # Remove last slash and all that follows it. Not all systems have dirname.
4648 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4650 # The file is in a subdirectory.
4651 test ! -d "$ac_dir" && mkdir "$ac_dir"
4654 mv conftest.h $ac_file
4659 cat >> $CONFIG_STATUS <<EOF
4663 cat >> $CONFIG_STATUS <<\EOF
4664 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4665 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4668 chmod +x $CONFIG_STATUS
4669 rm -fr confdefs* $ac_clean_files
4670 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1