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
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17
--disable-nls do not use Native Language Support"
19
--with-included-gettext use the GNU gettext library included here"
21
# Initialize some variables set by options.
22
# The variables have the same names as the options, with
23
# dashes changed to underlines.
25
cache_file=./config.cache
34
program_transform_name=s,x,x,
42
bindir='${exec_prefix}/bin'
43
sbindir='${exec_prefix}/sbin'
44
libexecdir='${exec_prefix}/libexec'
45
datadir='${prefix}/share'
46
sysconfdir='${prefix}/etc'
47
sharedstatedir='${prefix}/com'
48
localstatedir='${prefix}/var'
49
libdir='${exec_prefix}/lib'
50
includedir='${prefix}/include'
51
oldincludedir='/usr/include'
52
infodir='${prefix}/info'
53
mandir='${prefix}/man'
55
# Initialize some other variables.
58
SHELL=${CONFIG_SHELL-/bin/sh}
59
# Maximum number of lines to put in a shell here document.
66
# If the previous option needs an argument, assign it.
67
if test -n "$ac_prev"; then
68
eval "$ac_prev=\$ac_option"
74
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78
# Accept the important Cygnus configure options, so we can diagnose typos.
82
-bindir | --bindir | --bindi | --bind | --bin | --bi)
84
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85
bindir="$ac_optarg" ;;
87
-build | --build | --buil | --bui | --bu)
89
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
-cache-file | --cache-file | --cache-fil | --cache-fi \
93
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97
cache_file="$ac_optarg" ;;
99
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103
datadir="$ac_optarg" ;;
105
-disable-* | --disable-*)
106
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107
# Reject names that are not valid shell variable names.
108
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112
eval "enable_${ac_feature}=no" ;;
114
-enable-* | --enable-*)
115
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116
# Reject names that are not valid shell variable names.
117
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125
eval "enable_${ac_feature}='$ac_optarg'" ;;
127
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129
| --exec | --exe | --ex)
130
ac_prev=exec_prefix ;;
131
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133
| --exec=* | --exe=* | --ex=*)
134
exec_prefix="$ac_optarg" ;;
136
-gas | --gas | --ga | --g)
137
# Obsolete; use --with-gas.
140
-help | --help | --hel | --he)
141
# Omit some internal or obsolete options to make the list less imposing.
142
# This message is too long to be a string in the A/UX 3.1 sh.
144
Usage: configure [options] [host]
145
Options: [defaults in brackets after descriptions]
147
--cache-file=FILE cache test results in FILE
148
--help print this message
149
--no-create do not create output files
150
--quiet, --silent do not print \`checking...' messages
151
--version print the version of autoconf that created configure
152
Directory and file names:
153
--prefix=PREFIX install architecture-independent files in PREFIX
155
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157
--bindir=DIR user executables in DIR [EPREFIX/bin]
158
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160
--datadir=DIR read-only architecture-independent data in DIR
162
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163
--sharedstatedir=DIR modifiable architecture-independent data in DIR
165
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
167
--includedir=DIR C header files in DIR [PREFIX/include]
168
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169
--infodir=DIR info documentation in DIR [PREFIX/info]
170
--mandir=DIR man documentation in DIR [PREFIX/man]
171
--srcdir=DIR find the sources in DIR [configure dir or ..]
172
--program-prefix=PREFIX prepend PREFIX to installed program names
173
--program-suffix=SUFFIX append SUFFIX to installed program names
174
--program-transform-name=PROGRAM
175
run sed PROGRAM on installed program names
179
--build=BUILD configure for building on BUILD [BUILD=HOST]
180
--host=HOST configure for HOST [guessed]
181
--target=TARGET configure for TARGET [TARGET=HOST]
182
Features and packages:
183
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187
--x-includes=DIR X include files are in DIR
188
--x-libraries=DIR X library files are in DIR
190
if test -n "$ac_help"; then
191
echo "--enable and --with options recognized:$ac_help"
195
-host | --host | --hos | --ho)
197
-host=* | --host=* | --hos=* | --ho=*)
200
-includedir | --includedir | --includedi | --included | --include \
201
| --includ | --inclu | --incl | --inc)
202
ac_prev=includedir ;;
203
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204
| --includ=* | --inclu=* | --incl=* | --inc=*)
205
includedir="$ac_optarg" ;;
207
-infodir | --infodir | --infodi | --infod | --info | --inf)
209
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210
infodir="$ac_optarg" ;;
212
-libdir | --libdir | --libdi | --libd)
214
-libdir=* | --libdir=* | --libdi=* | --libd=*)
215
libdir="$ac_optarg" ;;
217
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218
| --libexe | --libex | --libe)
219
ac_prev=libexecdir ;;
220
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221
| --libexe=* | --libex=* | --libe=*)
222
libexecdir="$ac_optarg" ;;
224
-localstatedir | --localstatedir | --localstatedi | --localstated \
225
| --localstate | --localstat | --localsta | --localst \
226
| --locals | --local | --loca | --loc | --lo)
227
ac_prev=localstatedir ;;
228
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
230
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231
localstatedir="$ac_optarg" ;;
233
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236
mandir="$ac_optarg" ;;
239
# Obsolete; use --without-fp.
242
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
246
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
247
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252
| --oldin | --oldi | --old | --ol | --o)
253
ac_prev=oldincludedir ;;
254
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257
oldincludedir="$ac_optarg" ;;
259
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262
prefix="$ac_optarg" ;;
264
-program-prefix | --program-prefix | --program-prefi | --program-pref \
265
| --program-pre | --program-pr | --program-p)
266
ac_prev=program_prefix ;;
267
-program-prefix=* | --program-prefix=* | --program-prefi=* \
268
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269
program_prefix="$ac_optarg" ;;
271
-program-suffix | --program-suffix | --program-suffi | --program-suff \
272
| --program-suf | --program-su | --program-s)
273
ac_prev=program_suffix ;;
274
-program-suffix=* | --program-suffix=* | --program-suffi=* \
275
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276
program_suffix="$ac_optarg" ;;
278
-program-transform-name | --program-transform-name \
279
| --program-transform-nam | --program-transform-na \
280
| --program-transform-n | --program-transform- \
281
| --program-transform | --program-transfor \
282
| --program-transfo | --program-transf \
283
| --program-trans | --program-tran \
284
| --progr-tra | --program-tr | --program-t)
285
ac_prev=program_transform_name ;;
286
-program-transform-name=* | --program-transform-name=* \
287
| --program-transform-nam=* | --program-transform-na=* \
288
| --program-transform-n=* | --program-transform-=* \
289
| --program-transform=* | --program-transfor=* \
290
| --program-transfo=* | --program-transf=* \
291
| --program-trans=* | --program-tran=* \
292
| --progr-tra=* | --program-tr=* | --program-t=*)
293
program_transform_name="$ac_optarg" ;;
295
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
296
| -silent | --silent | --silen | --sile | --sil)
299
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303
sbindir="$ac_optarg" ;;
305
-sharedstatedir | --sharedstatedir | --sharedstatedi \
306
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307
| --sharedst | --shareds | --shared | --share | --shar \
309
ac_prev=sharedstatedir ;;
310
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314
sharedstatedir="$ac_optarg" ;;
316
-site | --site | --sit)
318
-site=* | --site=* | --sit=*)
321
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324
srcdir="$ac_optarg" ;;
326
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327
| --syscon | --sysco | --sysc | --sys | --sy)
328
ac_prev=sysconfdir ;;
329
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331
sysconfdir="$ac_optarg" ;;
333
-target | --target | --targe | --targ | --tar | --ta | --t)
335
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336
target="$ac_optarg" ;;
338
-v | -verbose | --verbose | --verbos | --verbo | --verb)
341
-version | --version | --versio | --versi | --vers)
342
echo "configure generated by autoconf version 2.13"
346
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347
# Reject names that are not valid shell variable names.
348
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351
ac_package=`echo $ac_package| sed 's/-/_/g'`
356
eval "with_${ac_package}='$ac_optarg'" ;;
358
-without-* | --without-*)
359
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360
# Reject names that are not valid shell variable names.
361
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364
ac_package=`echo $ac_package| sed 's/-/_/g'`
365
eval "with_${ac_package}=no" ;;
368
# Obsolete; use --with-x.
371
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372
| --x-incl | --x-inc | --x-in | --x-i)
373
ac_prev=x_includes ;;
374
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376
x_includes="$ac_optarg" ;;
378
-x-libraries | --x-libraries | --x-librarie | --x-librari \
379
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380
ac_prev=x_libraries ;;
381
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383
x_libraries="$ac_optarg" ;;
385
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390
echo "configure: warning: $ac_option: invalid host type" 1>&2
392
if test "x$nonopt" != xNONE; then
393
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401
if test -n "$ac_prev"; then
402
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
# File descriptor usage:
410
# 2 errors and warnings
411
# 3 some systems may open it to /dev/tty
412
# 4 used on the Kubota Titan
413
# 6 checking for... messages and results
414
# 5 compiler messages saved in config.log
415
if test "$silent" = yes; then
423
This file contains any messages produced by compilers while
424
running configure, to aid debugging if configure makes a mistake.
427
# Strip out --no-create and --no-recursion so they do not pile up.
428
# Also quote any args containing shell metacharacters.
433
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
434
| --no-cr | --no-c) ;;
435
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
436
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
444
# Only set these to C if already set. These must not be set unconditionally
445
# because not all systems understand e.g. LANG=C (notably SCO).
446
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447
# Non-C LC_CTYPE values break the ctype check.
448
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
# confdefs.h avoids OS command line length limits that DEFS can exceed.
454
rm -rf conftest* confdefs.h
455
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
# A filename unique to this package, relative to the directory that
459
# configure is in, which we can look for to find out if srcdir is correct.
460
ac_unique_file=src/debfoster.c
462
# Find the source files, if location was not specified.
463
if test -z "$srcdir"; then
464
ac_srcdir_defaulted=yes
465
# Try the directory containing this script, then its parent.
467
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470
if test ! -r $srcdir/$ac_unique_file; then
474
ac_srcdir_defaulted=no
476
if test ! -r $srcdir/$ac_unique_file; then
477
if test "$ac_srcdir_defaulted" = yes; then
478
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
# Prefer explicitly selected file to automatically selected ones.
486
if test -z "$CONFIG_SITE"; then
487
if test "x$prefix" != xNONE; then
488
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493
for ac_site_file in $CONFIG_SITE; do
494
if test -r "$ac_site_file"; then
495
echo "loading site script $ac_site_file"
500
if test -r "$cache_file"; then
501
echo "loading cache $cache_file"
504
echo "creating cache $cache_file"
509
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510
ac_cpp='$CPP $CPPFLAGS'
511
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
cross_compiling=$ac_cv_prog_cc_cross
517
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526
ac_n= ac_c='\c' ac_t=
534
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
535
if test -f $ac_dir/install-sh; then
537
ac_install_sh="$ac_aux_dir/install-sh -c"
539
elif test -f $ac_dir/install.sh; then
541
ac_install_sh="$ac_aux_dir/install.sh -c"
545
if test -z "$ac_aux_dir"; then
546
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
548
ac_config_guess=$ac_aux_dir/config.guess
549
ac_config_sub=$ac_aux_dir/config.sub
550
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
552
# Find a good install program. We prefer a C program (faster),
553
# so one script is as good as another. But avoid the broken or
554
# incompatible versions:
555
# SysV /etc/install, /usr/sbin/install
556
# SunOS /usr/etc/install
559
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
560
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
561
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
562
# ./install, which can be erroneously created by make from ./install.sh.
563
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
564
echo "configure:565: checking for a BSD compatible install" >&5
565
if test -z "$INSTALL"; then
566
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
567
echo $ac_n "(cached) $ac_c" 1>&6
569
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
570
for ac_dir in $PATH; do
571
# Account for people who put trailing slashes in PATH elements.
573
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
575
# OSF1 and SCO ODT 3.0 have their own names for install.
576
# Don't use installbsd from OSF since it installs stuff as root
578
for ac_prog in ginstall scoinst install; do
579
if test -f $ac_dir/$ac_prog; then
580
if test $ac_prog = install &&
581
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
582
# AIX install. It has an incompatible calling convention.
585
ac_cv_path_install="$ac_dir/$ac_prog -c"
596
if test "${ac_cv_path_install+set}" = set; then
597
INSTALL="$ac_cv_path_install"
599
# As a last resort, use the slow shell script. We don't cache a
600
# path for INSTALL within a source directory, because that will
601
# break other packages using the cache if that directory is
602
# removed, or if the path is relative.
603
INSTALL="$ac_install_sh"
606
echo "$ac_t""$INSTALL" 1>&6
608
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609
# It thinks the first close brace ends the variable substitution.
610
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
612
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
614
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
616
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
617
echo "configure:618: checking whether build environment is sane" >&5
620
echo timestamp > conftestfile
621
# Do `set' in a subshell so we don't clobber the current shell's
622
# arguments. Must try -L first in case configure is actually a
623
# symlink; some systems play weird games with the mod time of symlinks
624
# (eg FreeBSD returns the mod time of the symlink's containing
627
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
628
if test "$*" = "X"; then
630
set X `ls -t $srcdir/configure conftestfile`
632
if test "$*" != "X $srcdir/configure conftestfile" \
633
&& test "$*" != "X conftestfile $srcdir/configure"; then
635
# If neither matched, then we have a broken ls. This can happen
636
# if, for instance, CONFIG_SHELL is bash and it inherits a
637
# broken ls alias from the environment. This has actually
638
# happened. Such a system could not be considered "sane".
639
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
640
alias in your environment" 1>&2; exit 1; }
643
test "$2" = conftestfile
649
{ echo "configure: error: newly created file is older than distributed files!
650
Check your system clock" 1>&2; exit 1; }
653
echo "$ac_t""yes" 1>&6
654
if test "$program_transform_name" = s,x,x,; then
655
program_transform_name=
657
# Double any \ or $. echo might interpret backslashes.
658
cat <<\EOF_SED > conftestsed
659
s,\\,\\\\,g; s,\$,$$,g
661
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
664
test "$program_prefix" != NONE &&
665
program_transform_name="s,^,${program_prefix},; $program_transform_name"
666
# Use a double $ so make ignores it.
667
test "$program_suffix" != NONE &&
668
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
670
# sed with no file args requires a program.
671
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
674
echo "configure:675: checking whether ${MAKE-make} sets \${MAKE}" >&5
675
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
676
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
677
echo $ac_n "(cached) $ac_c" 1>&6
679
cat > conftestmake <<\EOF
681
@echo 'ac_maketemp="${MAKE}"'
683
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
684
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
685
if test -n "$ac_maketemp"; then
686
eval ac_cv_prog_make_${ac_make}_set=yes
688
eval ac_cv_prog_make_${ac_make}_set=no
692
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
693
echo "$ac_t""yes" 1>&6
696
echo "$ac_t""no" 1>&6
697
SET_MAKE="MAKE=${MAKE-make}"
705
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
706
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
708
cat >> confdefs.h <<EOF
709
#define PACKAGE "$PACKAGE"
712
cat >> confdefs.h <<EOF
713
#define VERSION "$VERSION"
718
missing_dir=`cd $ac_aux_dir && pwd`
719
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
720
echo "configure:721: checking for working aclocal" >&5
721
# Run test in a subshell; some versions of sh will print an error if
722
# an executable is not found, even if stderr is redirected.
723
# Redirect stdin to placate older versions of autoconf. Sigh.
724
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
726
echo "$ac_t""found" 1>&6
728
ACLOCAL="$missing_dir/missing aclocal"
729
echo "$ac_t""missing" 1>&6
732
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
733
echo "configure:734: checking for working autoconf" >&5
734
# Run test in a subshell; some versions of sh will print an error if
735
# an executable is not found, even if stderr is redirected.
736
# Redirect stdin to placate older versions of autoconf. Sigh.
737
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
739
echo "$ac_t""found" 1>&6
741
AUTOCONF="$missing_dir/missing autoconf"
742
echo "$ac_t""missing" 1>&6
745
echo $ac_n "checking for working automake""... $ac_c" 1>&6
746
echo "configure:747: checking for working automake" >&5
747
# Run test in a subshell; some versions of sh will print an error if
748
# an executable is not found, even if stderr is redirected.
749
# Redirect stdin to placate older versions of autoconf. Sigh.
750
if (automake --version) < /dev/null > /dev/null 2>&1; then
752
echo "$ac_t""found" 1>&6
754
AUTOMAKE="$missing_dir/missing automake"
755
echo "$ac_t""missing" 1>&6
758
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
759
echo "configure:760: checking for working autoheader" >&5
760
# Run test in a subshell; some versions of sh will print an error if
761
# an executable is not found, even if stderr is redirected.
762
# Redirect stdin to placate older versions of autoconf. Sigh.
763
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
764
AUTOHEADER=autoheader
765
echo "$ac_t""found" 1>&6
767
AUTOHEADER="$missing_dir/missing autoheader"
768
echo "$ac_t""missing" 1>&6
771
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
772
echo "configure:773: checking for working makeinfo" >&5
773
# Run test in a subshell; some versions of sh will print an error if
774
# an executable is not found, even if stderr is redirected.
775
# Redirect stdin to placate older versions of autoconf. Sigh.
776
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
778
echo "$ac_t""found" 1>&6
780
MAKEINFO="$missing_dir/missing makeinfo"
781
echo "$ac_t""missing" 1>&6
788
ISODATE=`date +%Y-%m-%d`
792
# Make sure we can run config.sub.
793
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
794
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
797
echo $ac_n "checking host system type""... $ac_c" 1>&6
798
echo "configure:799: checking host system type" >&5
801
case "$host_alias" in
805
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
806
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
808
*) host_alias=$nonopt ;;
812
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
813
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
814
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
815
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
816
echo "$ac_t""$host" 1>&6
819
# Find a good install program. We prefer a C program (faster),
820
# so one script is as good as another. But avoid the broken or
821
# incompatible versions:
822
# SysV /etc/install, /usr/sbin/install
823
# SunOS /usr/etc/install
826
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
827
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
828
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
829
# ./install, which can be erroneously created by make from ./install.sh.
830
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831
echo "configure:832: checking for a BSD compatible install" >&5
832
if test -z "$INSTALL"; then
833
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
834
echo $ac_n "(cached) $ac_c" 1>&6
836
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
837
for ac_dir in $PATH; do
838
# Account for people who put trailing slashes in PATH elements.
840
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
842
# OSF1 and SCO ODT 3.0 have their own names for install.
843
# Don't use installbsd from OSF since it installs stuff as root
845
for ac_prog in ginstall scoinst install; do
846
if test -f $ac_dir/$ac_prog; then
847
if test $ac_prog = install &&
848
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849
# AIX install. It has an incompatible calling convention.
852
ac_cv_path_install="$ac_dir/$ac_prog -c"
863
if test "${ac_cv_path_install+set}" = set; then
864
INSTALL="$ac_cv_path_install"
866
# As a last resort, use the slow shell script. We don't cache a
867
# path for INSTALL within a source directory, because that will
868
# break other packages using the cache if that directory is
869
# removed, or if the path is relative.
870
INSTALL="$ac_install_sh"
873
echo "$ac_t""$INSTALL" 1>&6
875
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
876
# It thinks the first close brace ends the variable substitution.
877
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
879
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
881
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
883
# Extract the first word of "gcc", so it can be a program name with args.
884
set dummy gcc; ac_word=$2
885
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886
echo "configure:887: checking for $ac_word" >&5
887
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888
echo $ac_n "(cached) $ac_c" 1>&6
890
if test -n "$CC"; then
891
ac_cv_prog_CC="$CC" # Let the user override the test.
893
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895
for ac_dir in $ac_dummy; do
896
test -z "$ac_dir" && ac_dir=.
897
if test -f $ac_dir/$ac_word; then
906
if test -n "$CC"; then
907
echo "$ac_t""$CC" 1>&6
909
echo "$ac_t""no" 1>&6
912
if test -z "$CC"; then
913
# Extract the first word of "cc", so it can be a program name with args.
914
set dummy cc; ac_word=$2
915
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916
echo "configure:917: checking for $ac_word" >&5
917
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918
echo $ac_n "(cached) $ac_c" 1>&6
920
if test -n "$CC"; then
921
ac_cv_prog_CC="$CC" # Let the user override the test.
923
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
926
for ac_dir in $ac_dummy; do
927
test -z "$ac_dir" && ac_dir=.
928
if test -f $ac_dir/$ac_word; then
929
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
938
if test $ac_prog_rejected = yes; then
939
# We found a bogon in the path, so make sure we never use it.
940
set dummy $ac_cv_prog_CC
942
if test $# -gt 0; then
943
# We chose a different compiler from the bogus one.
944
# However, it has the same basename, so the bogon will be chosen
945
# first if we set CC to just the basename; use the full file name.
947
set dummy "$ac_dir/$ac_word" "$@"
955
if test -n "$CC"; then
956
echo "$ac_t""$CC" 1>&6
958
echo "$ac_t""no" 1>&6
961
if test -z "$CC"; then
964
# Extract the first word of "cl", so it can be a program name with args.
965
set dummy cl; ac_word=$2
966
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967
echo "configure:968: checking for $ac_word" >&5
968
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969
echo $ac_n "(cached) $ac_c" 1>&6
971
if test -n "$CC"; then
972
ac_cv_prog_CC="$CC" # Let the user override the test.
974
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976
for ac_dir in $ac_dummy; do
977
test -z "$ac_dir" && ac_dir=.
978
if test -f $ac_dir/$ac_word; then
987
if test -n "$CC"; then
988
echo "$ac_t""$CC" 1>&6
990
echo "$ac_t""no" 1>&6
995
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
998
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
999
echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1002
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003
ac_cpp='$CPP $CPPFLAGS'
1004
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006
cross_compiling=$ac_cv_prog_cc_cross
1008
cat > conftest.$ac_ext << EOF
1010
#line 1011 "configure"
1011
#include "confdefs.h"
1015
if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1016
ac_cv_prog_cc_works=yes
1017
# If we can't run a trivial program, we are probably using a cross compiler.
1018
if (./conftest; exit) 2>/dev/null; then
1019
ac_cv_prog_cc_cross=no
1021
ac_cv_prog_cc_cross=yes
1024
echo "configure: failed program was:" >&5
1025
cat conftest.$ac_ext >&5
1026
ac_cv_prog_cc_works=no
1030
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1031
ac_cpp='$CPP $CPPFLAGS'
1032
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1033
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1034
cross_compiling=$ac_cv_prog_cc_cross
1036
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1037
if test $ac_cv_prog_cc_works = no; then
1038
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1040
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1041
echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1042
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1043
cross_compiling=$ac_cv_prog_cc_cross
1045
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1046
echo "configure:1047: checking whether we are using GNU C" >&5
1047
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1048
echo $ac_n "(cached) $ac_c" 1>&6
1050
cat > conftest.c <<EOF
1055
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1062
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1064
if test $ac_cv_prog_gcc = yes; then
1070
ac_test_CFLAGS="${CFLAGS+set}"
1071
ac_save_CFLAGS="$CFLAGS"
1073
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1074
echo "configure:1075: checking whether ${CC-cc} accepts -g" >&5
1075
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1076
echo $ac_n "(cached) $ac_c" 1>&6
1078
echo 'void f(){}' > conftest.c
1079
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1088
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1089
if test "$ac_test_CFLAGS" = set; then
1090
CFLAGS="$ac_save_CFLAGS"
1091
elif test $ac_cv_prog_cc_g = yes; then
1092
if test "$GCC" = yes; then
1098
if test "$GCC" = yes; then
1106
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1107
echo "configure:1108: checking how to run the C preprocessor" >&5
1108
# On Suns, sometimes $CPP names a directory.
1109
if test -n "$CPP" && test -d "$CPP"; then
1112
if test -z "$CPP"; then
1113
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1114
echo $ac_n "(cached) $ac_c" 1>&6
1116
# This must be in double quotes, not single quotes, because CPP may get
1117
# substituted into the Makefile and "${CC-cc}" will confuse make.
1119
# On the NeXT, cc -E runs the code through the compiler's parser,
1120
# not just through cpp.
1121
cat > conftest.$ac_ext <<EOF
1122
#line 1123 "configure"
1123
#include "confdefs.h"
1127
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128
{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130
if test -z "$ac_err"; then
1134
echo "configure: failed program was:" >&5
1135
cat conftest.$ac_ext >&5
1137
CPP="${CC-cc} -E -traditional-cpp"
1138
cat > conftest.$ac_ext <<EOF
1139
#line 1140 "configure"
1140
#include "confdefs.h"
1144
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1145
{ (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1146
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1147
if test -z "$ac_err"; then
1151
echo "configure: failed program was:" >&5
1152
cat conftest.$ac_ext >&5
1154
CPP="${CC-cc} -nologo -E"
1155
cat > conftest.$ac_ext <<EOF
1156
#line 1157 "configure"
1157
#include "confdefs.h"
1161
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1162
{ (eval echo configure:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1163
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1164
if test -z "$ac_err"; then
1168
echo "configure: failed program was:" >&5
1169
cat conftest.$ac_ext >&5
1178
ac_cv_prog_CPP="$CPP"
1180
CPP="$ac_cv_prog_CPP"
1182
ac_cv_prog_CPP="$CPP"
1184
echo "$ac_t""$CPP" 1>&6
1186
# Extract the first word of "ranlib", so it can be a program name with args.
1187
set dummy ranlib; ac_word=$2
1188
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189
echo "configure:1190: checking for $ac_word" >&5
1190
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1191
echo $ac_n "(cached) $ac_c" 1>&6
1193
if test -n "$RANLIB"; then
1194
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1196
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198
for ac_dir in $ac_dummy; do
1199
test -z "$ac_dir" && ac_dir=.
1200
if test -f $ac_dir/$ac_word; then
1201
ac_cv_prog_RANLIB="ranlib"
1206
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1209
RANLIB="$ac_cv_prog_RANLIB"
1210
if test -n "$RANLIB"; then
1211
echo "$ac_t""$RANLIB" 1>&6
1213
echo "$ac_t""no" 1>&6
1217
echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1218
echo "configure:1219: checking for strerror in -lcposix" >&5
1219
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1220
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221
echo $ac_n "(cached) $ac_c" 1>&6
1223
ac_save_LIBS="$LIBS"
1224
LIBS="-lcposix $LIBS"
1225
cat > conftest.$ac_ext <<EOF
1226
#line 1227 "configure"
1227
#include "confdefs.h"
1228
/* Override any gcc2 internal prototype to avoid an error. */
1229
/* We use char because int might match the return type of a gcc2
1230
builtin and then its argument prototype would still apply. */
1237
if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1239
eval "ac_cv_lib_$ac_lib_var=yes"
1241
echo "configure: failed program was:" >&5
1242
cat conftest.$ac_ext >&5
1244
eval "ac_cv_lib_$ac_lib_var=no"
1247
LIBS="$ac_save_LIBS"
1250
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251
echo "$ac_t""yes" 1>&6
1252
LIBS="$LIBS -lcposix"
1254
echo "$ac_t""no" 1>&6
1259
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1260
echo "configure:1261: checking for ANSI C header files" >&5
1261
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1262
echo $ac_n "(cached) $ac_c" 1>&6
1264
cat > conftest.$ac_ext <<EOF
1265
#line 1266 "configure"
1266
#include "confdefs.h"
1272
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1273
{ (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1274
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1275
if test -z "$ac_err"; then
1277
ac_cv_header_stdc=yes
1280
echo "configure: failed program was:" >&5
1281
cat conftest.$ac_ext >&5
1283
ac_cv_header_stdc=no
1287
if test $ac_cv_header_stdc = yes; then
1288
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1289
cat > conftest.$ac_ext <<EOF
1290
#line 1291 "configure"
1291
#include "confdefs.h"
1294
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1295
egrep "memchr" >/dev/null 2>&1; then
1299
ac_cv_header_stdc=no
1305
if test $ac_cv_header_stdc = yes; then
1306
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1307
cat > conftest.$ac_ext <<EOF
1308
#line 1309 "configure"
1309
#include "confdefs.h"
1312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1313
egrep "free" >/dev/null 2>&1; then
1317
ac_cv_header_stdc=no
1323
if test $ac_cv_header_stdc = yes; then
1324
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1325
if test "$cross_compiling" = yes; then
1328
cat > conftest.$ac_ext <<EOF
1329
#line 1330 "configure"
1330
#include "confdefs.h"
1332
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1333
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1334
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1335
int main () { int i; for (i = 0; i < 256; i++)
1336
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1340
if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1344
echo "configure: failed program was:" >&5
1345
cat conftest.$ac_ext >&5
1347
ac_cv_header_stdc=no
1355
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1356
if test $ac_cv_header_stdc = yes; then
1357
cat >> confdefs.h <<\EOF
1358
#define STDC_HEADERS 1
1363
echo $ac_n "checking for working const""... $ac_c" 1>&6
1364
echo "configure:1365: checking for working const" >&5
1365
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1366
echo $ac_n "(cached) $ac_c" 1>&6
1368
cat > conftest.$ac_ext <<EOF
1369
#line 1370 "configure"
1370
#include "confdefs.h"
1374
/* Ultrix mips cc rejects this. */
1375
typedef int charset[2]; const charset x;
1376
/* SunOS 4.1.1 cc rejects this. */
1377
char const *const *ccp;
1379
/* NEC SVR4.0.2 mips cc rejects this. */
1380
struct point {int x, y;};
1381
static struct point const zero = {0,0};
1382
/* AIX XL C 1.02.0.0 rejects this.
1383
It does not let you subtract one const X* pointer from another in an arm
1384
of an if-expression whose if-part is not a constant expression */
1385
const char *g = "string";
1386
ccp = &g + (g ? g-g : 0);
1387
/* HPUX 7.0 cc rejects these. */
1390
ccp = (char const *const *) p;
1391
{ /* SCO 3.2v4 cc rejects this. */
1393
char const *s = 0 ? (char *) 0 : (char const *) 0;
1397
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1399
const int *foo = &x[0];
1402
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1403
typedef const int *iptr;
1407
{ /* AIX XL C 1.02.0.0 rejects this saying
1408
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1409
struct s { int j; const int *ap[3]; };
1410
struct s *b; b->j = 5;
1412
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1418
if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1422
echo "configure: failed program was:" >&5
1423
cat conftest.$ac_ext >&5
1430
echo "$ac_t""$ac_cv_c_const" 1>&6
1431
if test $ac_cv_c_const = no; then
1432
cat >> confdefs.h <<\EOF
1438
echo $ac_n "checking for inline""... $ac_c" 1>&6
1439
echo "configure:1440: checking for inline" >&5
1440
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1441
echo $ac_n "(cached) $ac_c" 1>&6
1444
for ac_kw in inline __inline__ __inline; do
1445
cat > conftest.$ac_ext <<EOF
1446
#line 1447 "configure"
1447
#include "confdefs.h"
1453
if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455
ac_cv_c_inline=$ac_kw; break
1457
echo "configure: failed program was:" >&5
1458
cat conftest.$ac_ext >&5
1465
echo "$ac_t""$ac_cv_c_inline" 1>&6
1466
case "$ac_cv_c_inline" in
1468
no) cat >> confdefs.h <<\EOF
1472
*) cat >> confdefs.h <<EOF
1473
#define inline $ac_cv_c_inline
1478
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1479
echo "configure:1480: checking for off_t" >&5
1480
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1481
echo $ac_n "(cached) $ac_c" 1>&6
1483
cat > conftest.$ac_ext <<EOF
1484
#line 1485 "configure"
1485
#include "confdefs.h"
1486
#include <sys/types.h>
1492
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1493
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1495
ac_cv_type_off_t=yes
1503
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1504
if test $ac_cv_type_off_t = no; then
1505
cat >> confdefs.h <<\EOF
1511
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1512
echo "configure:1513: checking for size_t" >&5
1513
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1514
echo $ac_n "(cached) $ac_c" 1>&6
1516
cat > conftest.$ac_ext <<EOF
1517
#line 1518 "configure"
1518
#include "confdefs.h"
1519
#include <sys/types.h>
1525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1528
ac_cv_type_size_t=yes
1531
ac_cv_type_size_t=no
1536
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1537
if test $ac_cv_type_size_t = no; then
1538
cat >> confdefs.h <<\EOF
1539
#define size_t unsigned
1544
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1545
# for constant arguments. Useless!
1546
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1547
echo "configure:1548: checking for working alloca.h" >&5
1548
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1549
echo $ac_n "(cached) $ac_c" 1>&6
1551
cat > conftest.$ac_ext <<EOF
1552
#line 1553 "configure"
1553
#include "confdefs.h"
1556
char *p = alloca(2 * sizeof(int));
1559
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561
ac_cv_header_alloca_h=yes
1563
echo "configure: failed program was:" >&5
1564
cat conftest.$ac_ext >&5
1566
ac_cv_header_alloca_h=no
1571
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1572
if test $ac_cv_header_alloca_h = yes; then
1573
cat >> confdefs.h <<\EOF
1574
#define HAVE_ALLOCA_H 1
1579
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1580
echo "configure:1581: checking for alloca" >&5
1581
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1582
echo $ac_n "(cached) $ac_c" 1>&6
1584
cat > conftest.$ac_ext <<EOF
1585
#line 1586 "configure"
1586
#include "confdefs.h"
1589
# define alloca __builtin_alloca
1592
# include <malloc.h>
1593
# define alloca _alloca
1596
# include <alloca.h>
1601
# ifndef alloca /* predefined by HP cc +Olibcalls */
1610
char *p = (char *) alloca(1);
1613
if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615
ac_cv_func_alloca_works=yes
1617
echo "configure: failed program was:" >&5
1618
cat conftest.$ac_ext >&5
1620
ac_cv_func_alloca_works=no
1625
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1626
if test $ac_cv_func_alloca_works = yes; then
1627
cat >> confdefs.h <<\EOF
1628
#define HAVE_ALLOCA 1
1633
if test $ac_cv_func_alloca_works = no; then
1634
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
1635
# that cause trouble. Some versions do not even contain alloca or
1636
# contain a buggy version. If you still want to use their alloca,
1637
# use ar to extract alloca.o from them instead of compiling alloca.c.
1638
ALLOCA=alloca.${ac_objext}
1639
cat >> confdefs.h <<\EOF
1644
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1645
echo "configure:1646: checking whether alloca needs Cray hooks" >&5
1646
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1647
echo $ac_n "(cached) $ac_c" 1>&6
1649
cat > conftest.$ac_ext <<EOF
1650
#line 1651 "configure"
1651
#include "confdefs.h"
1652
#if defined(CRAY) && ! defined(CRAY2)
1659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1660
egrep "webecray" >/dev/null 2>&1; then
1671
echo "$ac_t""$ac_cv_os_cray" 1>&6
1672
if test $ac_cv_os_cray = yes; then
1673
for ac_func in _getb67 GETB67 getb67; do
1674
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1675
echo "configure:1676: checking for $ac_func" >&5
1676
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1677
echo $ac_n "(cached) $ac_c" 1>&6
1679
cat > conftest.$ac_ext <<EOF
1680
#line 1681 "configure"
1681
#include "confdefs.h"
1682
/* System header to define __stub macros and hopefully few prototypes,
1683
which can conflict with char $ac_func(); below. */
1685
/* Override any gcc2 internal prototype to avoid an error. */
1686
/* We use char because int might match the return type of a gcc2
1687
builtin and then its argument prototype would still apply. */
1692
/* The GNU C library defines this for functions which it implements
1693
to always fail with ENOSYS. Some functions are actually named
1694
something starting with __ and the normal name is an alias. */
1695
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1703
if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1705
eval "ac_cv_func_$ac_func=yes"
1707
echo "configure: failed program was:" >&5
1708
cat conftest.$ac_ext >&5
1710
eval "ac_cv_func_$ac_func=no"
1715
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1716
echo "$ac_t""yes" 1>&6
1717
cat >> confdefs.h <<EOF
1718
#define CRAY_STACKSEG_END $ac_func
1723
echo "$ac_t""no" 1>&6
1729
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1730
echo "configure:1731: checking stack direction for C alloca" >&5
1731
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1732
echo $ac_n "(cached) $ac_c" 1>&6
1734
if test "$cross_compiling" = yes; then
1735
ac_cv_c_stack_direction=0
1737
cat > conftest.$ac_ext <<EOF
1738
#line 1739 "configure"
1739
#include "confdefs.h"
1740
find_stack_direction ()
1742
static char *addr = 0;
1747
return find_stack_direction ();
1750
return (&dummy > addr) ? 1 : -1;
1754
exit (find_stack_direction() < 0);
1757
if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1759
ac_cv_c_stack_direction=1
1761
echo "configure: failed program was:" >&5
1762
cat conftest.$ac_ext >&5
1764
ac_cv_c_stack_direction=-1
1771
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1772
cat >> confdefs.h <<EOF
1773
#define STACK_DIRECTION $ac_cv_c_stack_direction
1778
for ac_hdr in unistd.h
1780
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1781
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1782
echo "configure:1783: checking for $ac_hdr" >&5
1783
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1784
echo $ac_n "(cached) $ac_c" 1>&6
1786
cat > conftest.$ac_ext <<EOF
1787
#line 1788 "configure"
1788
#include "confdefs.h"
1791
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792
{ (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1794
if test -z "$ac_err"; then
1796
eval "ac_cv_header_$ac_safe=yes"
1799
echo "configure: failed program was:" >&5
1800
cat conftest.$ac_ext >&5
1802
eval "ac_cv_header_$ac_safe=no"
1806
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1807
echo "$ac_t""yes" 1>&6
1808
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1809
cat >> confdefs.h <<EOF
1810
#define $ac_tr_hdr 1
1814
echo "$ac_t""no" 1>&6
1818
for ac_func in getpagesize
1820
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1821
echo "configure:1822: checking for $ac_func" >&5
1822
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1823
echo $ac_n "(cached) $ac_c" 1>&6
1825
cat > conftest.$ac_ext <<EOF
1826
#line 1827 "configure"
1827
#include "confdefs.h"
1828
/* System header to define __stub macros and hopefully few prototypes,
1829
which can conflict with char $ac_func(); below. */
1831
/* Override any gcc2 internal prototype to avoid an error. */
1832
/* We use char because int might match the return type of a gcc2
1833
builtin and then its argument prototype would still apply. */
1838
/* The GNU C library defines this for functions which it implements
1839
to always fail with ENOSYS. Some functions are actually named
1840
something starting with __ and the normal name is an alias. */
1841
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1849
if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1851
eval "ac_cv_func_$ac_func=yes"
1853
echo "configure: failed program was:" >&5
1854
cat conftest.$ac_ext >&5
1856
eval "ac_cv_func_$ac_func=no"
1861
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1862
echo "$ac_t""yes" 1>&6
1863
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1864
cat >> confdefs.h <<EOF
1865
#define $ac_tr_func 1
1869
echo "$ac_t""no" 1>&6
1873
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1874
echo "configure:1875: checking for working mmap" >&5
1875
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1876
echo $ac_n "(cached) $ac_c" 1>&6
1878
if test "$cross_compiling" = yes; then
1879
ac_cv_func_mmap_fixed_mapped=no
1881
cat > conftest.$ac_ext <<EOF
1882
#line 1883 "configure"
1883
#include "confdefs.h"
1885
/* Thanks to Mike Haertel and Jim Avera for this test.
1886
Here is a matrix of mmap possibilities:
1887
mmap private not fixed
1888
mmap private fixed at somewhere currently unmapped
1889
mmap private fixed at somewhere already mapped
1890
mmap shared not fixed
1891
mmap shared fixed at somewhere currently unmapped
1892
mmap shared fixed at somewhere already mapped
1893
For private mappings, we should verify that changes cannot be read()
1894
back from the file, nor mmap's back from the file at a different
1895
address. (There have been systems where private was not correctly
1896
implemented like the infamous i386 svr4.0, and systems where the
1897
VM page cache was not coherent with the filesystem buffer cache
1898
like early versions of FreeBSD and possibly contemporary NetBSD.)
1899
For shared mappings, we should conversely verify that changes get
1900
propogated back to all the places they're supposed to be.
1902
Grep wants private fixed already mapped.
1903
The main things grep needs to know about mmap are:
1904
* does it exist and is it safe to write into the mmap'd area
1905
* how to use it (BSD variants) */
1906
#include <sys/types.h>
1908
#include <sys/mman.h>
1910
/* This mess was copied from the GNU getpagesize.h. */
1911
#ifndef HAVE_GETPAGESIZE
1912
# ifdef HAVE_UNISTD_H
1913
# include <unistd.h>
1916
/* Assume that all systems that can run configure have sys/param.h. */
1917
# ifndef HAVE_SYS_PARAM_H
1918
# define HAVE_SYS_PARAM_H 1
1921
# ifdef _SC_PAGESIZE
1922
# define getpagesize() sysconf(_SC_PAGESIZE)
1923
# else /* no _SC_PAGESIZE */
1924
# ifdef HAVE_SYS_PARAM_H
1925
# include <sys/param.h>
1926
# ifdef EXEC_PAGESIZE
1927
# define getpagesize() EXEC_PAGESIZE
1928
# else /* no EXEC_PAGESIZE */
1930
# define getpagesize() NBPG * CLSIZE
1933
# endif /* no CLSIZE */
1934
# else /* no NBPG */
1936
# define getpagesize() NBPC
1937
# else /* no NBPC */
1939
# define getpagesize() PAGESIZE
1940
# endif /* PAGESIZE */
1941
# endif /* no NBPC */
1942
# endif /* no NBPG */
1943
# endif /* no EXEC_PAGESIZE */
1944
# else /* no HAVE_SYS_PARAM_H */
1945
# define getpagesize() 8192 /* punt totally */
1946
# endif /* no HAVE_SYS_PARAM_H */
1947
# endif /* no _SC_PAGESIZE */
1949
#endif /* no HAVE_GETPAGESIZE */
1952
extern "C" { void *malloc(unsigned); }
1960
char *data, *data2, *data3;
1964
pagesize = getpagesize();
1967
* First, make a file with some known garbage in it.
1969
data = malloc(pagesize);
1972
for (i = 0; i < pagesize; ++i)
1973
*(data + i) = rand();
1975
fd = creat("conftestmmap", 0600);
1978
if (write(fd, data, pagesize) != pagesize)
1983
* Next, try to mmap the file at a fixed address which
1984
* already has something else allocated at it. If we can,
1985
* also make sure that we see the same garbage.
1987
fd = open("conftestmmap", O_RDWR);
1990
data2 = malloc(2 * pagesize);
1993
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1994
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1995
MAP_PRIVATE | MAP_FIXED, fd, 0L))
1997
for (i = 0; i < pagesize; ++i)
1998
if (*(data + i) != *(data2 + i))
2002
* Finally, make sure that changes to the mapped area
2003
* do not percolate back to the file as seen by read().
2004
* (This is a bug on some variants of i386 svr4.0.)
2006
for (i = 0; i < pagesize; ++i)
2007
*(data2 + i) = *(data2 + i) + 1;
2008
data3 = malloc(pagesize);
2011
if (read(fd, data3, pagesize) != pagesize)
2013
for (i = 0; i < pagesize; ++i)
2014
if (*(data + i) != *(data3 + i))
2017
unlink("conftestmmap");
2022
if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024
ac_cv_func_mmap_fixed_mapped=yes
2026
echo "configure: failed program was:" >&5
2027
cat conftest.$ac_ext >&5
2029
ac_cv_func_mmap_fixed_mapped=no
2036
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2037
if test $ac_cv_func_mmap_fixed_mapped = yes; then
2038
cat >> confdefs.h <<\EOF
2045
echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2046
echo "configure:2047: checking whether we are using the GNU C Library 2.1 or newer" >&5
2047
if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2048
echo $ac_n "(cached) $ac_c" 1>&6
2050
cat > conftest.$ac_ext <<EOF
2051
#line 2052 "configure"
2052
#include "confdefs.h"
2054
#include <features.h>
2055
#ifdef __GNU_LIBRARY__
2056
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2062
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2063
egrep "Lucky GNU user" >/dev/null 2>&1; then
2065
ac_cv_gnu_library_2_1=yes
2068
ac_cv_gnu_library_2_1=no
2076
echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2078
GLIBC21="$ac_cv_gnu_library_2_1"
2082
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2083
stdlib.h string.h unistd.h sys/param.h
2085
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2086
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2087
echo "configure:2088: checking for $ac_hdr" >&5
2088
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2089
echo $ac_n "(cached) $ac_c" 1>&6
2091
cat > conftest.$ac_ext <<EOF
2092
#line 2093 "configure"
2093
#include "confdefs.h"
2096
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2097
{ (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2098
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2099
if test -z "$ac_err"; then
2101
eval "ac_cv_header_$ac_safe=yes"
2104
echo "configure: failed program was:" >&5
2105
cat conftest.$ac_ext >&5
2107
eval "ac_cv_header_$ac_safe=no"
2111
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2112
echo "$ac_t""yes" 1>&6
2113
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2114
cat >> confdefs.h <<EOF
2115
#define $ac_tr_hdr 1
2119
echo "$ac_t""no" 1>&6
2123
for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2124
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2125
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2127
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2128
echo "configure:2129: checking for $ac_func" >&5
2129
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2130
echo $ac_n "(cached) $ac_c" 1>&6
2132
cat > conftest.$ac_ext <<EOF
2133
#line 2134 "configure"
2134
#include "confdefs.h"
2135
/* System header to define __stub macros and hopefully few prototypes,
2136
which can conflict with char $ac_func(); below. */
2138
/* Override any gcc2 internal prototype to avoid an error. */
2139
/* We use char because int might match the return type of a gcc2
2140
builtin and then its argument prototype would still apply. */
2145
/* The GNU C library defines this for functions which it implements
2146
to always fail with ENOSYS. Some functions are actually named
2147
something starting with __ and the normal name is an alias. */
2148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2156
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158
eval "ac_cv_func_$ac_func=yes"
2160
echo "configure: failed program was:" >&5
2161
cat conftest.$ac_ext >&5
2163
eval "ac_cv_func_$ac_func=no"
2168
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2169
echo "$ac_t""yes" 1>&6
2170
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2171
cat >> confdefs.h <<EOF
2172
#define $ac_tr_func 1
2176
echo "$ac_t""no" 1>&6
2183
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2184
if test "${with_libiconv_prefix+set}" = set; then
2185
withval="$with_libiconv_prefix"
2187
for dir in `echo "$withval" | tr : ' '`; do
2188
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2189
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2195
echo $ac_n "checking for iconv""... $ac_c" 1>&6
2196
echo "configure:2197: checking for iconv" >&5
2197
if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2198
echo $ac_n "(cached) $ac_c" 1>&6
2201
am_cv_func_iconv="no, consider installing GNU libiconv"
2203
cat > conftest.$ac_ext <<EOF
2204
#line 2205 "configure"
2205
#include "confdefs.h"
2209
iconv_t cd = iconv_open("","");
2210
iconv(cd,NULL,NULL,NULL,NULL);
2214
if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2216
am_cv_func_iconv=yes
2218
echo "configure: failed program was:" >&5
2219
cat conftest.$ac_ext >&5
2222
if test "$am_cv_func_iconv" != yes; then
2223
am_save_LIBS="$LIBS"
2224
LIBS="$LIBS -liconv"
2225
cat > conftest.$ac_ext <<EOF
2226
#line 2227 "configure"
2227
#include "confdefs.h"
2231
iconv_t cd = iconv_open("","");
2232
iconv(cd,NULL,NULL,NULL,NULL);
2236
if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239
am_cv_func_iconv=yes
2241
echo "configure: failed program was:" >&5
2242
cat conftest.$ac_ext >&5
2245
LIBS="$am_save_LIBS"
2250
echo "$ac_t""$am_cv_func_iconv" 1>&6
2251
if test "$am_cv_func_iconv" = yes; then
2252
cat >> confdefs.h <<\EOF
2253
#define HAVE_ICONV 1
2256
echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2257
echo "configure:2258: checking for iconv declaration" >&5
2258
if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2259
echo $ac_n "(cached) $ac_c" 1>&6
2262
cat > conftest.$ac_ext <<EOF
2263
#line 2264 "configure"
2264
#include "confdefs.h"
2272
#if defined(__STDC__) || defined(__cplusplus)
2273
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2282
if { (eval echo configure:2283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2284
am_cv_proto_iconv_arg1=""
2286
echo "configure: failed program was:" >&5
2287
cat conftest.$ac_ext >&5
2289
am_cv_proto_iconv_arg1="const"
2292
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2295
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2296
echo "$ac_t""${ac_t:-
2297
}$am_cv_proto_iconv" 1>&6
2298
cat >> confdefs.h <<EOF
2299
#define ICONV_CONST $am_cv_proto_iconv_arg1
2304
if test "$am_cv_lib_iconv" = yes; then
2310
echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2311
echo "configure:2312: checking for nl_langinfo and CODESET" >&5
2312
if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2313
echo $ac_n "(cached) $ac_c" 1>&6
2315
cat > conftest.$ac_ext <<EOF
2316
#line 2317 "configure"
2317
#include "confdefs.h"
2318
#include <langinfo.h>
2320
char* cs = nl_langinfo(CODESET);
2323
if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325
am_cv_langinfo_codeset=yes
2327
echo "configure: failed program was:" >&5
2328
cat conftest.$ac_ext >&5
2330
am_cv_langinfo_codeset=no
2336
echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2337
if test $am_cv_langinfo_codeset = yes; then
2338
cat >> confdefs.h <<\EOF
2339
#define HAVE_LANGINFO_CODESET 1
2344
if test $ac_cv_header_locale_h = yes; then
2345
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2346
echo "configure:2347: checking for LC_MESSAGES" >&5
2347
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2348
echo $ac_n "(cached) $ac_c" 1>&6
2350
cat > conftest.$ac_ext <<EOF
2351
#line 2352 "configure"
2352
#include "confdefs.h"
2358
if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360
am_cv_val_LC_MESSAGES=yes
2362
echo "configure: failed program was:" >&5
2363
cat conftest.$ac_ext >&5
2365
am_cv_val_LC_MESSAGES=no
2370
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2371
if test $am_cv_val_LC_MESSAGES = yes; then
2372
cat >> confdefs.h <<\EOF
2373
#define HAVE_LC_MESSAGES 1
2378
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2379
echo "configure:2380: checking whether NLS is requested" >&5
2380
# Check whether --enable-nls or --disable-nls was given.
2381
if test "${enable_nls+set}" = set; then
2382
enableval="$enable_nls"
2388
echo "$ac_t""$USE_NLS" 1>&6
2391
BUILD_INCLUDED_LIBINTL=no
2392
USE_INCLUDED_LIBINTL=no
2395
if test "$USE_NLS" = "yes"; then
2396
cat >> confdefs.h <<\EOF
2397
#define ENABLE_NLS 1
2400
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2401
echo "configure:2402: checking whether included gettext is requested" >&5
2402
# Check whether --with-included-gettext or --without-included-gettext was given.
2403
if test "${with_included_gettext+set}" = set; then
2404
withval="$with_included_gettext"
2405
nls_cv_force_use_gnu_gettext=$withval
2407
nls_cv_force_use_gnu_gettext=no
2410
echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2412
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2413
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2419
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2420
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2421
echo "configure:2422: checking for libintl.h" >&5
2422
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2423
echo $ac_n "(cached) $ac_c" 1>&6
2425
cat > conftest.$ac_ext <<EOF
2426
#line 2427 "configure"
2427
#include "confdefs.h"
2428
#include <libintl.h>
2430
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431
{ (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433
if test -z "$ac_err"; then
2435
eval "ac_cv_header_$ac_safe=yes"
2438
echo "configure: failed program was:" >&5
2439
cat conftest.$ac_ext >&5
2441
eval "ac_cv_header_$ac_safe=no"
2445
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2446
echo "$ac_t""yes" 1>&6
2447
echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2448
echo "configure:2449: checking for GNU gettext in libc" >&5
2449
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2450
echo $ac_n "(cached) $ac_c" 1>&6
2452
cat > conftest.$ac_ext <<EOF
2453
#line 2454 "configure"
2454
#include "confdefs.h"
2455
#include <libintl.h>
2456
extern int _nl_msg_cat_cntr;
2458
bindtextdomain ("", "");
2459
return (int) gettext ("") + _nl_msg_cat_cntr
2462
if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464
gt_cv_func_gnugettext1_libc=yes
2466
echo "configure: failed program was:" >&5
2467
cat conftest.$ac_ext >&5
2469
gt_cv_func_gnugettext1_libc=no
2474
echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2476
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2477
echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2478
echo "configure:2479: checking for GNU gettext in libintl" >&5
2479
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2480
echo $ac_n "(cached) $ac_c" 1>&6
2482
gt_save_LIBS="$LIBS"
2483
LIBS="$LIBS -lintl $LIBICONV"
2484
cat > conftest.$ac_ext <<EOF
2485
#line 2486 "configure"
2486
#include "confdefs.h"
2487
#include <libintl.h>
2488
extern int _nl_msg_cat_cntr;
2490
bindtextdomain ("", "");
2491
return (int) gettext ("") + _nl_msg_cat_cntr
2494
if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496
gt_cv_func_gnugettext1_libintl=yes
2498
echo "configure: failed program was:" >&5
2499
cat conftest.$ac_ext >&5
2501
gt_cv_func_gnugettext1_libintl=no
2504
LIBS="$gt_save_LIBS"
2507
echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2510
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2511
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2512
&& test "$PACKAGE" != gettext; }; then
2513
cat >> confdefs.h <<\EOF
2514
#define HAVE_GETTEXT 1
2518
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2519
INTLLIBS="-lintl $LIBICONV"
2522
gt_save_LIBS="$LIBS"
2523
LIBS="$LIBS $INTLLIBS"
2524
for ac_func in dcgettext
2526
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2527
echo "configure:2528: checking for $ac_func" >&5
2528
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2529
echo $ac_n "(cached) $ac_c" 1>&6
2531
cat > conftest.$ac_ext <<EOF
2532
#line 2533 "configure"
2533
#include "confdefs.h"
2534
/* System header to define __stub macros and hopefully few prototypes,
2535
which can conflict with char $ac_func(); below. */
2537
/* Override any gcc2 internal prototype to avoid an error. */
2538
/* We use char because int might match the return type of a gcc2
2539
builtin and then its argument prototype would still apply. */
2544
/* The GNU C library defines this for functions which it implements
2545
to always fail with ENOSYS. Some functions are actually named
2546
something starting with __ and the normal name is an alias. */
2547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2555
if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2557
eval "ac_cv_func_$ac_func=yes"
2559
echo "configure: failed program was:" >&5
2560
cat conftest.$ac_ext >&5
2562
eval "ac_cv_func_$ac_func=no"
2567
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2568
echo "$ac_t""yes" 1>&6
2569
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2570
cat >> confdefs.h <<EOF
2571
#define $ac_tr_func 1
2575
echo "$ac_t""no" 1>&6
2579
LIBS="$gt_save_LIBS"
2581
# Extract the first word of "msgfmt", so it can be a program name with args.
2582
set dummy msgfmt; ac_word=$2
2583
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2584
echo "configure:2585: checking for $ac_word" >&5
2585
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2586
echo $ac_n "(cached) $ac_c" 1>&6
2590
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2593
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2594
for ac_dir in $PATH; do
2595
test -z "$ac_dir" && ac_dir=.
2596
if test -f $ac_dir/$ac_word; then
2597
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2598
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2604
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2608
MSGFMT="$ac_cv_path_MSGFMT"
2609
if test "$MSGFMT" != ":"; then
2610
echo "$ac_t""$MSGFMT" 1>&6
2612
echo "$ac_t""no" 1>&6
2615
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2616
set dummy gmsgfmt; ac_word=$2
2617
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2618
echo "configure:2619: checking for $ac_word" >&5
2619
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2620
echo $ac_n "(cached) $ac_c" 1>&6
2624
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2627
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2630
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2632
for ac_dir in $ac_dummy; do
2633
test -z "$ac_dir" && ac_dir=.
2634
if test -f $ac_dir/$ac_word; then
2635
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2640
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2644
GMSGFMT="$ac_cv_path_GMSGFMT"
2645
if test -n "$GMSGFMT"; then
2646
echo "$ac_t""$GMSGFMT" 1>&6
2648
echo "$ac_t""no" 1>&6
2652
# Extract the first word of "xgettext", so it can be a program name with args.
2653
set dummy xgettext; ac_word=$2
2654
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2655
echo "configure:2656: checking for $ac_word" >&5
2656
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2657
echo $ac_n "(cached) $ac_c" 1>&6
2661
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2664
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2665
for ac_dir in $PATH; do
2666
test -z "$ac_dir" && ac_dir=.
2667
if test -f $ac_dir/$ac_word; then
2668
if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2669
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2675
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2679
XGETTEXT="$ac_cv_path_XGETTEXT"
2680
if test "$XGETTEXT" != ":"; then
2681
echo "$ac_t""$XGETTEXT" 1>&6
2683
echo "$ac_t""no" 1>&6
2691
echo "$ac_t""no" 1>&6
2695
if test "$CATOBJEXT" = "NONE"; then
2696
nls_cv_use_gnu_gettext=yes
2700
if test "$nls_cv_use_gnu_gettext" = "yes"; then
2701
INTLOBJS="\$(GETTOBJS)"
2702
# Extract the first word of "msgfmt", so it can be a program name with args.
2703
set dummy msgfmt; ac_word=$2
2704
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2705
echo "configure:2706: checking for $ac_word" >&5
2706
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2707
echo $ac_n "(cached) $ac_c" 1>&6
2711
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2714
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2715
for ac_dir in $PATH; do
2716
test -z "$ac_dir" && ac_dir=.
2717
if test -f $ac_dir/$ac_word; then
2718
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2719
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2725
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2729
MSGFMT="$ac_cv_path_MSGFMT"
2730
if test "$MSGFMT" != ":"; then
2731
echo "$ac_t""$MSGFMT" 1>&6
2733
echo "$ac_t""no" 1>&6
2736
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2737
set dummy gmsgfmt; ac_word=$2
2738
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739
echo "configure:2740: checking for $ac_word" >&5
2740
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2741
echo $ac_n "(cached) $ac_c" 1>&6
2745
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2748
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2751
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2753
for ac_dir in $ac_dummy; do
2754
test -z "$ac_dir" && ac_dir=.
2755
if test -f $ac_dir/$ac_word; then
2756
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2761
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2765
GMSGFMT="$ac_cv_path_GMSGFMT"
2766
if test -n "$GMSGFMT"; then
2767
echo "$ac_t""$GMSGFMT" 1>&6
2769
echo "$ac_t""no" 1>&6
2772
# Extract the first word of "xgettext", so it can be a program name with args.
2773
set dummy xgettext; ac_word=$2
2774
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2775
echo "configure:2776: checking for $ac_word" >&5
2776
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2777
echo $ac_n "(cached) $ac_c" 1>&6
2781
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2784
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2785
for ac_dir in $PATH; do
2786
test -z "$ac_dir" && ac_dir=.
2787
if test -f $ac_dir/$ac_word; then
2788
if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2789
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2795
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2799
XGETTEXT="$ac_cv_path_XGETTEXT"
2800
if test "$XGETTEXT" != ":"; then
2801
echo "$ac_t""$XGETTEXT" 1>&6
2803
echo "$ac_t""no" 1>&6
2807
BUILD_INCLUDED_LIBINTL=yes
2808
USE_INCLUDED_LIBINTL=yes
2810
INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2811
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2814
if test "$GMSGFMT" != ":"; then
2815
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2818
echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2823
if test "$XGETTEXT" != ":"; then
2824
if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2827
echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2837
if test "$PACKAGE" = gettext; then
2838
BUILD_INCLUDED_LIBINTL=yes
2841
for ac_prog in bison
2843
# Extract the first word of "$ac_prog", so it can be a program name with args.
2844
set dummy $ac_prog; ac_word=$2
2845
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846
echo "configure:2847: checking for $ac_word" >&5
2847
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2848
echo $ac_n "(cached) $ac_c" 1>&6
2850
if test -n "$INTLBISON"; then
2851
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2853
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2855
for ac_dir in $ac_dummy; do
2856
test -z "$ac_dir" && ac_dir=.
2857
if test -f $ac_dir/$ac_word; then
2858
ac_cv_prog_INTLBISON="$ac_prog"
2865
INTLBISON="$ac_cv_prog_INTLBISON"
2866
if test -n "$INTLBISON"; then
2867
echo "$ac_t""$INTLBISON" 1>&6
2869
echo "$ac_t""no" 1>&6
2872
test -n "$INTLBISON" && break
2875
if test -z "$INTLBISON"; then
2878
echo $ac_n "checking version of bison""... $ac_c" 1>&6
2879
echo "configure:2880: checking version of bison" >&5
2880
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2881
case $ac_prog_version in
2882
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2883
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2884
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2885
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2887
echo "$ac_t""$ac_prog_version" 1>&6
2889
if test $ac_verc_fail = yes; then
2893
for lang in $ALL_LINGUAS; do
2894
GMOFILES="$GMOFILES $lang.gmo"
2895
POFILES="$POFILES $lang.po"
2909
nls_cv_header_libgt=
2921
if test "x$CATOBJEXT" != "x"; then
2922
if test "x$ALL_LINGUAS" = "x"; then
2925
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2926
echo "configure:2927: checking for catalogs to be installed" >&5
2928
for presentlang in $ALL_LINGUAS; do
2930
for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2931
# Use the presentlang catalog if desiredlang is
2932
# a. equal to presentlang, or
2933
# b. a variant of presentlang (because in this case,
2934
# presentlang can be used as a fallback for messages
2935
# which are not translated in the desiredlang catalog).
2936
case "$desiredlang" in
2937
"$presentlang"*) useit=yes;;
2940
if test $useit = yes; then
2941
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2944
LINGUAS=$NEW_LINGUAS
2945
echo "$ac_t""$LINGUAS" 1>&6
2948
if test -n "$LINGUAS"; then
2949
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2954
if test -n "$ac_aux_dir"; then
2955
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2957
if test -z "$MKINSTALLDIRS"; then
2958
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2962
INTL_LIBTOOL_SUFFIX_PREFIX=
2966
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2967
echo "configure:2968: checking for ANSI C header files" >&5
2968
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2969
echo $ac_n "(cached) $ac_c" 1>&6
2971
cat > conftest.$ac_ext <<EOF
2972
#line 2973 "configure"
2973
#include "confdefs.h"
2979
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2980
{ (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2981
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2982
if test -z "$ac_err"; then
2984
ac_cv_header_stdc=yes
2987
echo "configure: failed program was:" >&5
2988
cat conftest.$ac_ext >&5
2990
ac_cv_header_stdc=no
2994
if test $ac_cv_header_stdc = yes; then
2995
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2996
cat > conftest.$ac_ext <<EOF
2997
#line 2998 "configure"
2998
#include "confdefs.h"
3001
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002
egrep "memchr" >/dev/null 2>&1; then
3006
ac_cv_header_stdc=no
3012
if test $ac_cv_header_stdc = yes; then
3013
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3014
cat > conftest.$ac_ext <<EOF
3015
#line 3016 "configure"
3016
#include "confdefs.h"
3019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3020
egrep "free" >/dev/null 2>&1; then
3024
ac_cv_header_stdc=no
3030
if test $ac_cv_header_stdc = yes; then
3031
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3032
if test "$cross_compiling" = yes; then
3035
cat > conftest.$ac_ext <<EOF
3036
#line 3037 "configure"
3037
#include "confdefs.h"
3039
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3040
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3041
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3042
int main () { int i; for (i = 0; i < 256; i++)
3043
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3047
if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3051
echo "configure: failed program was:" >&5
3052
cat conftest.$ac_ext >&5
3054
ac_cv_header_stdc=no
3062
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3063
if test $ac_cv_header_stdc = yes; then
3064
cat >> confdefs.h <<\EOF
3065
#define STDC_HEADERS 1
3070
for ac_hdr in unistd.h
3072
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3073
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3074
echo "configure:3075: checking for $ac_hdr" >&5
3075
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3076
echo $ac_n "(cached) $ac_c" 1>&6
3078
cat > conftest.$ac_ext <<EOF
3079
#line 3080 "configure"
3080
#include "confdefs.h"
3083
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3084
{ (eval echo configure:3085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3085
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3086
if test -z "$ac_err"; then
3088
eval "ac_cv_header_$ac_safe=yes"
3091
echo "configure: failed program was:" >&5
3092
cat conftest.$ac_ext >&5
3094
eval "ac_cv_header_$ac_safe=no"
3098
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3099
echo "$ac_t""yes" 1>&6
3100
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3101
cat >> confdefs.h <<EOF
3102
#define $ac_tr_hdr 1
3106
echo "$ac_t""no" 1>&6
3111
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3112
# for constant arguments. Useless!
3113
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3114
echo "configure:3115: checking for working alloca.h" >&5
3115
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3116
echo $ac_n "(cached) $ac_c" 1>&6
3118
cat > conftest.$ac_ext <<EOF
3119
#line 3120 "configure"
3120
#include "confdefs.h"
3123
char *p = alloca(2 * sizeof(int));
3126
if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128
ac_cv_header_alloca_h=yes
3130
echo "configure: failed program was:" >&5
3131
cat conftest.$ac_ext >&5
3133
ac_cv_header_alloca_h=no
3138
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3139
if test $ac_cv_header_alloca_h = yes; then
3140
cat >> confdefs.h <<\EOF
3141
#define HAVE_ALLOCA_H 1
3146
echo $ac_n "checking for alloca""... $ac_c" 1>&6
3147
echo "configure:3148: checking for alloca" >&5
3148
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3149
echo $ac_n "(cached) $ac_c" 1>&6
3151
cat > conftest.$ac_ext <<EOF
3152
#line 3153 "configure"
3153
#include "confdefs.h"
3156
# define alloca __builtin_alloca
3159
# include <malloc.h>
3160
# define alloca _alloca
3163
# include <alloca.h>
3168
# ifndef alloca /* predefined by HP cc +Olibcalls */
3177
char *p = (char *) alloca(1);
3180
if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182
ac_cv_func_alloca_works=yes
3184
echo "configure: failed program was:" >&5
3185
cat conftest.$ac_ext >&5
3187
ac_cv_func_alloca_works=no
3192
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3193
if test $ac_cv_func_alloca_works = yes; then
3194
cat >> confdefs.h <<\EOF
3195
#define HAVE_ALLOCA 1
3200
if test $ac_cv_func_alloca_works = no; then
3201
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3202
# that cause trouble. Some versions do not even contain alloca or
3203
# contain a buggy version. If you still want to use their alloca,
3204
# use ar to extract alloca.o from them instead of compiling alloca.c.
3205
ALLOCA=alloca.${ac_objext}
3206
cat >> confdefs.h <<\EOF
3211
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3212
echo "configure:3213: checking whether alloca needs Cray hooks" >&5
3213
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3214
echo $ac_n "(cached) $ac_c" 1>&6
3216
cat > conftest.$ac_ext <<EOF
3217
#line 3218 "configure"
3218
#include "confdefs.h"
3219
#if defined(CRAY) && ! defined(CRAY2)
3226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227
egrep "webecray" >/dev/null 2>&1; then
3238
echo "$ac_t""$ac_cv_os_cray" 1>&6
3239
if test $ac_cv_os_cray = yes; then
3240
for ac_func in _getb67 GETB67 getb67; do
3241
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3242
echo "configure:3243: checking for $ac_func" >&5
3243
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3244
echo $ac_n "(cached) $ac_c" 1>&6
3246
cat > conftest.$ac_ext <<EOF
3247
#line 3248 "configure"
3248
#include "confdefs.h"
3249
/* System header to define __stub macros and hopefully few prototypes,
3250
which can conflict with char $ac_func(); below. */
3252
/* Override any gcc2 internal prototype to avoid an error. */
3253
/* We use char because int might match the return type of a gcc2
3254
builtin and then its argument prototype would still apply. */
3259
/* The GNU C library defines this for functions which it implements
3260
to always fail with ENOSYS. Some functions are actually named
3261
something starting with __ and the normal name is an alias. */
3262
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3270
if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272
eval "ac_cv_func_$ac_func=yes"
3274
echo "configure: failed program was:" >&5
3275
cat conftest.$ac_ext >&5
3277
eval "ac_cv_func_$ac_func=no"
3282
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3283
echo "$ac_t""yes" 1>&6
3284
cat >> confdefs.h <<EOF
3285
#define CRAY_STACKSEG_END $ac_func
3290
echo "$ac_t""no" 1>&6
3296
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3297
echo "configure:3298: checking stack direction for C alloca" >&5
3298
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3299
echo $ac_n "(cached) $ac_c" 1>&6
3301
if test "$cross_compiling" = yes; then
3302
ac_cv_c_stack_direction=0
3304
cat > conftest.$ac_ext <<EOF
3305
#line 3306 "configure"
3306
#include "confdefs.h"
3307
find_stack_direction ()
3309
static char *addr = 0;
3314
return find_stack_direction ();
3317
return (&dummy > addr) ? 1 : -1;
3321
exit (find_stack_direction() < 0);
3324
if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3326
ac_cv_c_stack_direction=1
3328
echo "configure: failed program was:" >&5
3329
cat conftest.$ac_ext >&5
3331
ac_cv_c_stack_direction=-1
3338
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3339
cat >> confdefs.h <<EOF
3340
#define STACK_DIRECTION $ac_cv_c_stack_direction
3348
cat > confcache <<\EOF
3349
# This file is a shell script that caches the results of configure
3350
# tests run on this system so they can be shared between configure
3351
# scripts and configure runs. It is not useful on other systems.
3352
# If it contains results you don't want to keep, you may remove or edit it.
3354
# By default, configure uses ./config.cache as the cache file,
3355
# creating it if it does not exist already. You can give configure
3356
# the --cache-file=FILE option to use a different cache file; that is
3357
# what configure does when it calls configure scripts in
3358
# subdirectories, so they share the cache.
3359
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3360
# config.status only pays attention to the cache file if you give it the
3361
# --recheck option to rerun configure.
3364
# The following way of writing the cache mishandles newlines in values,
3365
# but we know of no workaround that is simple, portable, and efficient.
3366
# So, don't put newlines in cache variables' values.
3367
# Ultrix sh set writes to stderr and can't be redirected directly,
3368
# and sets the high bit in the cache file unless we assign to the vars.
3370
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3372
# `set' does not quote correctly, so add quotes (double-quote substitution
3373
# turns \\\\ into \\, and sed turns \\ into \).
3375
-e "s/'/'\\\\''/g" \
3376
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3379
# `set' quotes correctly as required by POSIX, so do not add quotes.
3380
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3383
if cmp -s $cache_file confcache; then
3386
if test -w $cache_file; then
3387
echo "updating cache $cache_file"
3388
cat confcache > $cache_file
3390
echo "not updating unwritable cache $cache_file"
3395
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3397
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3398
# Let make expand exec_prefix.
3399
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3401
# Any assignment to VPATH causes Sun make to only execute
3402
# the first set of double-colon rules, so remove it if not needed.
3403
# If there is a colon in the path, we need to keep it.
3404
if test "x$srcdir" = x.; then
3405
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3408
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3410
DEFS=-DHAVE_CONFIG_H
3412
# Without the "./", some shells look in PATH for config.status.
3413
: ${CONFIG_STATUS=./config.status}
3415
echo creating $CONFIG_STATUS
3416
rm -f $CONFIG_STATUS
3417
cat > $CONFIG_STATUS <<EOF
3419
# Generated automatically by configure.
3420
# Run this file to recreate the current configuration.
3421
# This directory was configured as follows,
3422
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3424
# $0 $ac_configure_args
3426
# Compiler output produced by configure, useful for debugging
3427
# configure, is in ./config.log if it exists.
3429
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3432
case "\$ac_option" in
3433
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3434
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3435
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3436
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3437
echo "$CONFIG_STATUS generated by autoconf version 2.13"
3439
-help | --help | --hel | --he | --h)
3440
echo "\$ac_cs_usage"; exit 0 ;;
3441
*) echo "\$ac_cs_usage"; exit 1 ;;
3445
ac_given_srcdir=$srcdir
3446
ac_given_INSTALL="$INSTALL"
3448
trap 'rm -fr `echo "Makefile src/Makefile etc/Makefile doc/Makefile intl/Makefile po/Makefile.in src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3450
cat >> $CONFIG_STATUS <<EOF
3452
# Protect against being on the right side of a sed subst in config.status.
3453
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3454
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3458
s%@CFLAGS@%$CFLAGS%g
3459
s%@CPPFLAGS@%$CPPFLAGS%g
3460
s%@CXXFLAGS@%$CXXFLAGS%g
3461
s%@FFLAGS@%$FFLAGS%g
3463
s%@LDFLAGS@%$LDFLAGS%g
3465
s%@exec_prefix@%$exec_prefix%g
3466
s%@prefix@%$prefix%g
3467
s%@program_transform_name@%$program_transform_name%g
3468
s%@bindir@%$bindir%g
3469
s%@sbindir@%$sbindir%g
3470
s%@libexecdir@%$libexecdir%g
3471
s%@datadir@%$datadir%g
3472
s%@sysconfdir@%$sysconfdir%g
3473
s%@sharedstatedir@%$sharedstatedir%g
3474
s%@localstatedir@%$localstatedir%g
3475
s%@libdir@%$libdir%g
3476
s%@includedir@%$includedir%g
3477
s%@oldincludedir@%$oldincludedir%g
3478
s%@infodir@%$infodir%g
3479
s%@mandir@%$mandir%g
3480
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3481
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3482
s%@INSTALL_DATA@%$INSTALL_DATA%g
3483
s%@PACKAGE@%$PACKAGE%g
3484
s%@VERSION@%$VERSION%g
3485
s%@ACLOCAL@%$ACLOCAL%g
3486
s%@AUTOCONF@%$AUTOCONF%g
3487
s%@AUTOMAKE@%$AUTOMAKE%g
3488
s%@AUTOHEADER@%$AUTOHEADER%g
3489
s%@MAKEINFO@%$MAKEINFO%g
3490
s%@SET_MAKE@%$SET_MAKE%g
3491
s%@ISODATE@%$ISODATE%g
3493
s%@host_alias@%$host_alias%g
3494
s%@host_cpu@%$host_cpu%g
3495
s%@host_vendor@%$host_vendor%g
3496
s%@host_os@%$host_os%g
3498
s%@RANLIB@%$RANLIB%g
3500
s%@ALLOCA@%$ALLOCA%g
3501
s%@GLIBC21@%$GLIBC21%g
3502
s%@LIBICONV@%$LIBICONV%g
3503
s%@USE_NLS@%$USE_NLS%g
3504
s%@MSGFMT@%$MSGFMT%g
3505
s%@GMSGFMT@%$GMSGFMT%g
3506
s%@XGETTEXT@%$XGETTEXT%g
3507
s%@INTLBISON@%$INTLBISON%g
3508
s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
3509
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3510
s%@CATALOGS@%$CATALOGS%g
3511
s%@CATOBJEXT@%$CATOBJEXT%g
3512
s%@GMOFILES@%$GMOFILES%g
3513
s%@INTLLIBS@%$INTLLIBS%g
3514
s%@INTLOBJS@%$INTLOBJS%g
3515
s%@POFILES@%$POFILES%g
3517
s%@DATADIRNAME@%$DATADIRNAME%g
3518
s%@INSTOBJEXT@%$INSTOBJEXT%g
3519
s%@GENCAT@%$GENCAT%g
3520
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3521
s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
3526
cat >> $CONFIG_STATUS <<\EOF
3528
# Split the substitutions into bite-sized pieces for seds with
3529
# small command number limits, like on Digital OSF/1 and HP-UX.
3530
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3531
ac_file=1 # Number of current file.
3532
ac_beg=1 # First line for current file.
3533
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3536
while $ac_more_lines; do
3537
if test $ac_beg -gt 1; then
3538
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3540
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3542
if test ! -s conftest.s$ac_file; then
3544
rm -f conftest.s$ac_file
3546
if test -z "$ac_sed_cmds"; then
3547
ac_sed_cmds="sed -f conftest.s$ac_file"
3549
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3551
ac_file=`expr $ac_file + 1`
3553
ac_end=`expr $ac_end + $ac_max_sed_cmds`
3556
if test -z "$ac_sed_cmds"; then
3561
cat >> $CONFIG_STATUS <<EOF
3563
CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile etc/Makefile doc/Makefile intl/Makefile po/Makefile.in"}
3565
cat >> $CONFIG_STATUS <<\EOF
3566
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3567
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3569
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3570
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3571
*) ac_file_in="${ac_file}.in" ;;
3574
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3576
# Remove last slash and all that follows it. Not all systems have dirname.
3577
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3578
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3579
# The file is in a subdirectory.
3580
test ! -d "$ac_dir" && mkdir "$ac_dir"
3581
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3582
# A "../" for each directory in $ac_dir_suffix.
3583
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3585
ac_dir_suffix= ac_dots=
3588
case "$ac_given_srcdir" in
3590
if test -z "$ac_dots"; then top_srcdir=.
3591
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3592
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3594
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3595
top_srcdir="$ac_dots$ac_given_srcdir" ;;
3598
case "$ac_given_INSTALL" in
3599
[/$]*) INSTALL="$ac_given_INSTALL" ;;
3600
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3603
echo creating "$ac_file"
3605
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3607
*Makefile*) ac_comsub="1i\\
3608
# $configure_input" ;;
3612
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3614
s%@configure_input@%$configure_input%g
3615
s%@srcdir@%$srcdir%g
3616
s%@top_srcdir@%$top_srcdir%g
3617
s%@INSTALL@%$INSTALL%g
3618
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3622
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3623
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3625
# ac_d sets the value in "#define NAME VALUE" lines.
3626
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3627
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3630
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3631
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3632
ac_uB='\([ ]\)%\1#\2define\3'
3635
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3636
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3637
ac_eB='$%\1#\2define\3'
3641
if test "${CONFIG_HEADERS+set}" != set; then
3643
cat >> $CONFIG_STATUS <<EOF
3644
CONFIG_HEADERS="src/config.h"
3646
cat >> $CONFIG_STATUS <<\EOF
3648
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3649
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3651
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3652
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3653
*) ac_file_in="${ac_file}.in" ;;
3656
echo creating $ac_file
3658
rm -f conftest.frag conftest.in conftest.out
3659
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3660
cat $ac_file_inputs > conftest.in
3664
# Transform confdefs.h into a sed script conftest.vals that substitutes
3665
# the proper values into config.h.in to produce config.h. And first:
3666
# Protect against being on the right side of a sed subst in config.status.
3667
# Protect against being in an unquoted here document in config.status.
3669
cat > conftest.hdr <<\EOF
3672
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3676
sed -n -f conftest.hdr confdefs.h > conftest.vals
3679
# This sed command replaces #undef with comments. This is necessary, for
3680
# example, in the case of _POSIX_SOURCE, which is predefined and required
3681
# on some systems where configure will not decide to define it.
3682
cat >> conftest.vals <<\EOF
3683
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3686
# Break up conftest.vals because some shells have a limit on
3687
# the size of here documents, and old seds have small limits too.
3692
ac_lines=`grep -c . conftest.vals`
3693
# grep -c gives empty output for an empty file on some AIX systems.
3694
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3695
# Write a limited-size here document to conftest.frag.
3696
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3697
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3699
sed -f conftest.frag conftest.in > conftest.out
3701
mv conftest.out conftest.in
3703
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3705
mv conftest.tail conftest.vals
3709
cat >> $CONFIG_STATUS <<\EOF
3710
rm -f conftest.frag conftest.h
3711
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3712
cat conftest.in >> conftest.h
3714
if cmp -s $ac_file conftest.h 2>/dev/null; then
3715
echo "$ac_file is unchanged"
3718
# Remove last slash and all that follows it. Not all systems have dirname.
3719
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3720
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3721
# The file is in a subdirectory.
3722
test ! -d "$ac_dir" && mkdir "$ac_dir"
3725
mv conftest.h $ac_file
3730
cat >> $CONFIG_STATUS <<EOF
3735
cat >> $CONFIG_STATUS <<\EOF
3736
test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
3737
for ac_file in $CONFIG_FILES; do
3738
# Support "outfile[:infile[:infile...]]"
3740
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3742
# PO directories have a Makefile.in generated from Makefile.in.in.
3743
case "$ac_file" in */Makefile.in)
3744
# Adjust a relative srcdir.
3745
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3746
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
3747
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
3748
# In autoconf-2.13 it is called $ac_given_srcdir.
3749
# In autoconf-2.50 it is called $srcdir.
3750
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
3751
case "$ac_given_srcdir" in
3752
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
3753
/*) top_srcdir="$ac_given_srcdir" ;;
3754
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
3756
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
3757
rm -f "$ac_dir/POTFILES"
3758
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
3759
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
3760
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
3761
sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
3769
chmod +x $CONFIG_STATUS
3770
rm -fr confdefs* $ac_clean_files
3771
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1