3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.12
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
--disable-nls do not use Native Language Support"
17
--with-included-gettext use the GNU gettext library included here"
19
--with-catgets use catgets functions if available"
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
# Maximum number of lines to put in a shell here document.
65
# If the previous option needs an argument, assign it.
66
if test -n "$ac_prev"; then
67
eval "$ac_prev=\$ac_option"
73
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77
# Accept the important Cygnus configure options, so we can diagnose typos.
81
-bindir | --bindir | --bindi | --bind | --bin | --bi)
83
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84
bindir="$ac_optarg" ;;
86
-build | --build | --buil | --bui | --bu)
88
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
91
-cache-file | --cache-file | --cache-fil | --cache-fi \
92
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96
cache_file="$ac_optarg" ;;
98
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102
datadir="$ac_optarg" ;;
104
-disable-* | --disable-*)
105
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106
# Reject names that are not valid shell variable names.
107
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111
eval "enable_${ac_feature}=no" ;;
113
-enable-* | --enable-*)
114
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115
# Reject names that are not valid shell variable names.
116
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124
eval "enable_${ac_feature}='$ac_optarg'" ;;
126
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128
| --exec | --exe | --ex)
129
ac_prev=exec_prefix ;;
130
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132
| --exec=* | --exe=* | --ex=*)
133
exec_prefix="$ac_optarg" ;;
135
-gas | --gas | --ga | --g)
136
# Obsolete; use --with-gas.
139
-help | --help | --hel | --he)
140
# Omit some internal or obsolete options to make the list less imposing.
141
# This message is too long to be a string in the A/UX 3.1 sh.
143
Usage: configure [options] [host]
144
Options: [defaults in brackets after descriptions]
146
--cache-file=FILE cache test results in FILE
147
--help print this message
148
--no-create do not create output files
149
--quiet, --silent do not print \`checking...' messages
150
--version print the version of autoconf that created configure
151
Directory and file names:
152
--prefix=PREFIX install architecture-independent files in PREFIX
154
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156
--bindir=DIR user executables in DIR [EPREFIX/bin]
157
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159
--datadir=DIR read-only architecture-independent data in DIR
161
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162
--sharedstatedir=DIR modifiable architecture-independent data in DIR
164
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
166
--includedir=DIR C header files in DIR [PREFIX/include]
167
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168
--infodir=DIR info documentation in DIR [PREFIX/info]
169
--mandir=DIR man documentation in DIR [PREFIX/man]
170
--srcdir=DIR find the sources in DIR [configure dir or ..]
171
--program-prefix=PREFIX prepend PREFIX to installed program names
172
--program-suffix=SUFFIX append SUFFIX to installed program names
173
--program-transform-name=PROGRAM
174
run sed PROGRAM on installed program names
178
--build=BUILD configure for building on BUILD [BUILD=HOST]
179
--host=HOST configure for HOST [guessed]
180
--target=TARGET configure for TARGET [TARGET=HOST]
181
Features and packages:
182
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186
--x-includes=DIR X include files are in DIR
187
--x-libraries=DIR X library files are in DIR
189
if test -n "$ac_help"; then
190
echo "--enable and --with options recognized:$ac_help"
194
-host | --host | --hos | --ho)
196
-host=* | --host=* | --hos=* | --ho=*)
199
-includedir | --includedir | --includedi | --included | --include \
200
| --includ | --inclu | --incl | --inc)
201
ac_prev=includedir ;;
202
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203
| --includ=* | --inclu=* | --incl=* | --inc=*)
204
includedir="$ac_optarg" ;;
206
-infodir | --infodir | --infodi | --infod | --info | --inf)
208
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209
infodir="$ac_optarg" ;;
211
-libdir | --libdir | --libdi | --libd)
213
-libdir=* | --libdir=* | --libdi=* | --libd=*)
214
libdir="$ac_optarg" ;;
216
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217
| --libexe | --libex | --libe)
218
ac_prev=libexecdir ;;
219
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220
| --libexe=* | --libex=* | --libe=*)
221
libexecdir="$ac_optarg" ;;
223
-localstatedir | --localstatedir | --localstatedi | --localstated \
224
| --localstate | --localstat | --localsta | --localst \
225
| --locals | --local | --loca | --loc | --lo)
226
ac_prev=localstatedir ;;
227
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
229
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230
localstatedir="$ac_optarg" ;;
232
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235
mandir="$ac_optarg" ;;
238
# Obsolete; use --without-fp.
241
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
245
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
246
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251
| --oldin | --oldi | --old | --ol | --o)
252
ac_prev=oldincludedir ;;
253
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256
oldincludedir="$ac_optarg" ;;
258
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261
prefix="$ac_optarg" ;;
263
-program-prefix | --program-prefix | --program-prefi | --program-pref \
264
| --program-pre | --program-pr | --program-p)
265
ac_prev=program_prefix ;;
266
-program-prefix=* | --program-prefix=* | --program-prefi=* \
267
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268
program_prefix="$ac_optarg" ;;
270
-program-suffix | --program-suffix | --program-suffi | --program-suff \
271
| --program-suf | --program-su | --program-s)
272
ac_prev=program_suffix ;;
273
-program-suffix=* | --program-suffix=* | --program-suffi=* \
274
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275
program_suffix="$ac_optarg" ;;
277
-program-transform-name | --program-transform-name \
278
| --program-transform-nam | --program-transform-na \
279
| --program-transform-n | --program-transform- \
280
| --program-transform | --program-transfor \
281
| --program-transfo | --program-transf \
282
| --program-trans | --program-tran \
283
| --progr-tra | --program-tr | --program-t)
284
ac_prev=program_transform_name ;;
285
-program-transform-name=* | --program-transform-name=* \
286
| --program-transform-nam=* | --program-transform-na=* \
287
| --program-transform-n=* | --program-transform-=* \
288
| --program-transform=* | --program-transfor=* \
289
| --program-transfo=* | --program-transf=* \
290
| --program-trans=* | --program-tran=* \
291
| --progr-tra=* | --program-tr=* | --program-t=*)
292
program_transform_name="$ac_optarg" ;;
294
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
295
| -silent | --silent | --silen | --sile | --sil)
298
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302
sbindir="$ac_optarg" ;;
304
-sharedstatedir | --sharedstatedir | --sharedstatedi \
305
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306
| --sharedst | --shareds | --shared | --share | --shar \
308
ac_prev=sharedstatedir ;;
309
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313
sharedstatedir="$ac_optarg" ;;
315
-site | --site | --sit)
317
-site=* | --site=* | --sit=*)
320
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323
srcdir="$ac_optarg" ;;
325
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326
| --syscon | --sysco | --sysc | --sys | --sy)
327
ac_prev=sysconfdir ;;
328
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330
sysconfdir="$ac_optarg" ;;
332
-target | --target | --targe | --targ | --tar | --ta | --t)
334
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335
target="$ac_optarg" ;;
337
-v | -verbose | --verbose | --verbos | --verbo | --verb)
340
-version | --version | --versio | --versi | --vers)
341
echo "configure generated by autoconf version 2.12"
345
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346
# Reject names that are not valid shell variable names.
347
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350
ac_package=`echo $ac_package| sed 's/-/_/g'`
355
eval "with_${ac_package}='$ac_optarg'" ;;
357
-without-* | --without-*)
358
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359
# Reject names that are not valid shell variable names.
360
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363
ac_package=`echo $ac_package| sed 's/-/_/g'`
364
eval "with_${ac_package}=no" ;;
367
# Obsolete; use --with-x.
370
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371
| --x-incl | --x-inc | --x-in | --x-i)
372
ac_prev=x_includes ;;
373
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375
x_includes="$ac_optarg" ;;
377
-x-libraries | --x-libraries | --x-librarie | --x-librari \
378
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379
ac_prev=x_libraries ;;
380
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382
x_libraries="$ac_optarg" ;;
384
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389
echo "configure: warning: $ac_option: invalid host type" 1>&2
391
if test "x$nonopt" != xNONE; then
392
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400
if test -n "$ac_prev"; then
401
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
# File descriptor usage:
409
# 2 errors and warnings
410
# 3 some systems may open it to /dev/tty
411
# 4 used on the Kubota Titan
412
# 6 checking for... messages and results
413
# 5 compiler messages saved in config.log
414
if test "$silent" = yes; then
422
This file contains any messages produced by compilers while
423
running configure, to aid debugging if configure makes a mistake.
426
# Strip out --no-create and --no-recursion so they do not pile up.
427
# Also quote any args containing shell metacharacters.
432
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
433
| --no-cr | --no-c) ;;
434
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
435
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
443
# Only set these to C if already set. These must not be set unconditionally
444
# because not all systems understand e.g. LANG=C (notably SCO).
445
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446
# Non-C LC_CTYPE values break the ctype check.
447
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452
# confdefs.h avoids OS command line length limits that DEFS can exceed.
453
rm -rf conftest* confdefs.h
454
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
457
# A filename unique to this package, relative to the directory that
458
# configure is in, which we can look for to find out if srcdir is correct.
459
ac_unique_file=src/rlpr.c
461
# Find the source files, if location was not specified.
462
if test -z "$srcdir"; then
463
ac_srcdir_defaulted=yes
464
# Try the directory containing this script, then its parent.
466
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469
if test ! -r $srcdir/$ac_unique_file; then
473
ac_srcdir_defaulted=no
475
if test ! -r $srcdir/$ac_unique_file; then
476
if test "$ac_srcdir_defaulted" = yes; then
477
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
# Prefer explicitly selected file to automatically selected ones.
485
if test -z "$CONFIG_SITE"; then
486
if test "x$prefix" != xNONE; then
487
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492
for ac_site_file in $CONFIG_SITE; do
493
if test -r "$ac_site_file"; then
494
echo "loading site script $ac_site_file"
499
if test -r "$cache_file"; then
500
echo "loading cache $cache_file"
503
echo "creating cache $cache_file"
508
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509
ac_cpp='$CPP $CPPFLAGS'
510
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512
cross_compiling=$ac_cv_prog_cc_cross
514
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523
ac_n= ac_c='\c' ac_t=
532
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
533
if test -f $ac_dir/install-sh; then
535
ac_install_sh="$ac_aux_dir/install-sh -c"
537
elif test -f $ac_dir/install.sh; then
539
ac_install_sh="$ac_aux_dir/install.sh -c"
543
if test -z "$ac_aux_dir"; then
544
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
546
ac_config_guess=$ac_aux_dir/config.guess
547
ac_config_sub=$ac_aux_dir/config.sub
548
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
# Find a good install program. We prefer a C program (faster),
551
# so one script is as good as another. But avoid the broken or
552
# incompatible versions:
553
# SysV /etc/install, /usr/sbin/install
554
# SunOS /usr/etc/install
557
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
558
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559
# ./install, which can be erroneously created by make from ./install.sh.
560
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561
echo "configure:562: checking for a BSD compatible install" >&5
562
if test -z "$INSTALL"; then
563
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564
echo $ac_n "(cached) $ac_c" 1>&6
566
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
567
for ac_dir in $PATH; do
568
# Account for people who put trailing slashes in PATH elements.
570
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572
# OSF1 and SCO ODT 3.0 have their own names for install.
573
for ac_prog in ginstall installbsd scoinst install; do
574
if test -f $ac_dir/$ac_prog; then
575
if test $ac_prog = install &&
576
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
577
# AIX install. It has an incompatible calling convention.
578
# OSF/1 installbsd also uses dspmsg, but is usable.
581
ac_cv_path_install="$ac_dir/$ac_prog -c"
592
if test "${ac_cv_path_install+set}" = set; then
593
INSTALL="$ac_cv_path_install"
595
# As a last resort, use the slow shell script. We don't cache a
596
# path for INSTALL within a source directory, because that will
597
# break other packages using the cache if that directory is
598
# removed, or if the path is relative.
599
INSTALL="$ac_install_sh"
602
echo "$ac_t""$INSTALL" 1>&6
604
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
605
# It thinks the first close brace ends the variable substitution.
606
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
608
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
611
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
619
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
621
cat >> confdefs.h <<EOF
622
#define PACKAGE "$PACKAGE"
625
cat >> confdefs.h <<EOF
626
#define VERSION "$VERSION"
629
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630
echo "configure:631: checking whether build environment is sane" >&5
633
echo timestamp > conftestfile
634
# Do `set' in a subshell so we don't clobber the current shell's
635
# arguments. Must try -L first in case configure is actually a
636
# symlink; some systems play weird games with the mod time of symlinks
637
# (eg FreeBSD returns the mod time of the symlink's containing
640
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641
if test "" = "X"; then
643
set X `ls -t $srcdir/configure conftestfile`
645
test "$2" = conftestfile
651
{ echo "configure: error: newly created file is older than distributed files!
652
Check your system clock" 1>&2; exit 1; }
655
echo "$ac_t""yes" 1>&6
656
if test "$program_transform_name" = s,x,x,; then
657
program_transform_name=
659
# Double any \ or $. echo might interpret backslashes.
660
cat <<\EOF_SED > conftestsed
661
s,\\,\\\\,g; s,\$,$$,g
663
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
666
test "$program_prefix" != NONE &&
667
program_transform_name="s,^,${program_prefix},; $program_transform_name"
668
# Use a double $ so make ignores it.
669
test "$program_suffix" != NONE &&
670
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
# sed with no file args requires a program.
673
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
missing_dir=`cd $ac_aux_dir && pwd`
676
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
677
echo "configure:678: checking for working aclocal" >&5
678
# Run test in a subshell; some versions of sh will print an error if
679
# an executable is not found, even if stderr is redirected.
680
# Redirect stdin to placate older versions of autoconf. Sigh.
681
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
683
echo "$ac_t""found" 1>&6
685
ACLOCAL="$missing_dir/missing aclocal"
686
echo "$ac_t""missing" 1>&6
689
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
690
echo "configure:691: checking for working autoconf" >&5
691
# Run test in a subshell; some versions of sh will print an error if
692
# an executable is not found, even if stderr is redirected.
693
# Redirect stdin to placate older versions of autoconf. Sigh.
694
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
696
echo "$ac_t""found" 1>&6
698
AUTOCONF="$missing_dir/missing autoconf"
699
echo "$ac_t""missing" 1>&6
702
echo $ac_n "checking for working automake""... $ac_c" 1>&6
703
echo "configure:704: checking for working automake" >&5
704
# Run test in a subshell; some versions of sh will print an error if
705
# an executable is not found, even if stderr is redirected.
706
# Redirect stdin to placate older versions of autoconf. Sigh.
707
if (automake --version) < /dev/null > /dev/null 2>&1; then
709
echo "$ac_t""found" 1>&6
711
AUTOMAKE="$missing_dir/missing automake"
712
echo "$ac_t""missing" 1>&6
715
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
716
echo "configure:717: checking for working autoheader" >&5
717
# Run test in a subshell; some versions of sh will print an error if
718
# an executable is not found, even if stderr is redirected.
719
# Redirect stdin to placate older versions of autoconf. Sigh.
720
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
721
AUTOHEADER=autoheader
722
echo "$ac_t""found" 1>&6
724
AUTOHEADER="$missing_dir/missing autoheader"
725
echo "$ac_t""missing" 1>&6
728
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
729
echo "configure:730: checking for working makeinfo" >&5
730
# Run test in a subshell; some versions of sh will print an error if
731
# an executable is not found, even if stderr is redirected.
732
# Redirect stdin to placate older versions of autoconf. Sigh.
733
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
735
echo "$ac_t""found" 1>&6
737
MAKEINFO="$missing_dir/missing makeinfo"
738
echo "$ac_t""missing" 1>&6
741
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
742
echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
743
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
744
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
745
echo $ac_n "(cached) $ac_c" 1>&6
747
cat > conftestmake <<\EOF
749
@echo 'ac_maketemp="${MAKE}"'
751
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
752
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
753
if test -n "$ac_maketemp"; then
754
eval ac_cv_prog_make_${ac_make}_set=yes
756
eval ac_cv_prog_make_${ac_make}_set=no
760
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
761
echo "$ac_t""yes" 1>&6
764
echo "$ac_t""no" 1>&6
765
SET_MAKE="MAKE=${MAKE-make}"
768
if test "x$prefix" = xNONE; then
769
echo $ac_n "checking for prefix by $ac_c" 1>&6
770
# Extract the first word of "rlpr", so it can be a program name with args.
771
set dummy rlpr; ac_word=$2
772
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773
echo "configure:774: checking for $ac_word" >&5
774
if eval "test \"`echo '$''{'ac_cv_path_RLPR'+set}'`\" = set"; then
775
echo $ac_n "(cached) $ac_c" 1>&6
779
ac_cv_path_RLPR="$RLPR" # Let the user override the test with a path.
782
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
783
for ac_dir in $PATH; do
784
test -z "$ac_dir" && ac_dir=.
785
if test -f $ac_dir/$ac_word; then
786
ac_cv_path_RLPR="$ac_dir/$ac_word"
794
RLPR="$ac_cv_path_RLPR"
795
if test -n "$RLPR"; then
796
echo "$ac_t""$RLPR" 1>&6
798
echo "$ac_t""no" 1>&6
801
if test -n "$ac_cv_path_RLPR"; then
802
prefix=`echo $ac_cv_path_RLPR|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
812
# Find a good install program. We prefer a C program (faster),
813
# so one script is as good as another. But avoid the broken or
814
# incompatible versions:
815
# SysV /etc/install, /usr/sbin/install
816
# SunOS /usr/etc/install
819
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
820
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
821
# ./install, which can be erroneously created by make from ./install.sh.
822
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
823
echo "configure:824: checking for a BSD compatible install" >&5
824
if test -z "$INSTALL"; then
825
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
826
echo $ac_n "(cached) $ac_c" 1>&6
828
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
829
for ac_dir in $PATH; do
830
# Account for people who put trailing slashes in PATH elements.
832
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
834
# OSF1 and SCO ODT 3.0 have their own names for install.
835
for ac_prog in ginstall installbsd scoinst install; do
836
if test -f $ac_dir/$ac_prog; then
837
if test $ac_prog = install &&
838
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
839
# AIX install. It has an incompatible calling convention.
840
# OSF/1 installbsd also uses dspmsg, but is usable.
843
ac_cv_path_install="$ac_dir/$ac_prog -c"
854
if test "${ac_cv_path_install+set}" = set; then
855
INSTALL="$ac_cv_path_install"
857
# As a last resort, use the slow shell script. We don't cache a
858
# path for INSTALL within a source directory, because that will
859
# break other packages using the cache if that directory is
860
# removed, or if the path is relative.
861
INSTALL="$ac_install_sh"
864
echo "$ac_t""$INSTALL" 1>&6
866
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
867
# It thinks the first close brace ends the variable substitution.
868
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
870
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
872
# Extract the first word of "gcc", so it can be a program name with args.
873
set dummy gcc; ac_word=$2
874
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875
echo "configure:876: checking for $ac_word" >&5
876
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877
echo $ac_n "(cached) $ac_c" 1>&6
879
if test -n "$CC"; then
880
ac_cv_prog_CC="$CC" # Let the user override the test.
882
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883
for ac_dir in $PATH; do
884
test -z "$ac_dir" && ac_dir=.
885
if test -f $ac_dir/$ac_word; then
894
if test -n "$CC"; then
895
echo "$ac_t""$CC" 1>&6
897
echo "$ac_t""no" 1>&6
900
if test -z "$CC"; then
901
# Extract the first word of "cc", so it can be a program name with args.
902
set dummy cc; ac_word=$2
903
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904
echo "configure:905: checking for $ac_word" >&5
905
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906
echo $ac_n "(cached) $ac_c" 1>&6
908
if test -n "$CC"; then
909
ac_cv_prog_CC="$CC" # Let the user override the test.
911
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
913
for ac_dir in $PATH; do
914
test -z "$ac_dir" && ac_dir=.
915
if test -f $ac_dir/$ac_word; then
916
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
925
if test $ac_prog_rejected = yes; then
926
# We found a bogon in the path, so make sure we never use it.
927
set dummy $ac_cv_prog_CC
929
if test $# -gt 0; then
930
# We chose a different compiler from the bogus one.
931
# However, it has the same basename, so the bogon will be chosen
932
# first if we set CC to just the basename; use the full file name.
934
set dummy "$ac_dir/$ac_word" "$@"
942
if test -n "$CC"; then
943
echo "$ac_t""$CC" 1>&6
945
echo "$ac_t""no" 1>&6
948
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952
echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956
ac_cpp='$CPP $CPPFLAGS'
957
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959
cross_compiling=$ac_cv_prog_cc_cross
961
cat > conftest.$ac_ext <<EOF
962
#line 963 "configure"
963
#include "confdefs.h"
966
if { (eval echo configure:967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
967
ac_cv_prog_cc_works=yes
968
# If we can't run a trivial program, we are probably using a cross compiler.
969
if (./conftest; exit) 2>/dev/null; then
970
ac_cv_prog_cc_cross=no
972
ac_cv_prog_cc_cross=yes
975
echo "configure: failed program was:" >&5
976
cat conftest.$ac_ext >&5
977
ac_cv_prog_cc_works=no
981
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
982
if test $ac_cv_prog_cc_works = no; then
983
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
985
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
986
echo "configure:987: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
987
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
988
cross_compiling=$ac_cv_prog_cc_cross
990
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
991
echo "configure:992: checking whether we are using GNU C" >&5
992
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
993
echo $ac_n "(cached) $ac_c" 1>&6
995
cat > conftest.c <<EOF
1000
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1007
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1009
if test $ac_cv_prog_gcc = yes; then
1011
ac_test_CFLAGS="${CFLAGS+set}"
1012
ac_save_CFLAGS="$CFLAGS"
1014
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1015
echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5
1016
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1017
echo $ac_n "(cached) $ac_c" 1>&6
1019
echo 'void f(){}' > conftest.c
1020
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1030
if test "$ac_test_CFLAGS" = set; then
1031
CFLAGS="$ac_save_CFLAGS"
1032
elif test $ac_cv_prog_cc_g = yes; then
1039
test "${CFLAGS+set}" = set || CFLAGS="-g"
1042
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1043
echo "configure:1044: checking how to run the C preprocessor" >&5
1044
# On Suns, sometimes $CPP names a directory.
1045
if test -n "$CPP" && test -d "$CPP"; then
1048
if test -z "$CPP"; then
1049
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1050
echo $ac_n "(cached) $ac_c" 1>&6
1052
# This must be in double quotes, not single quotes, because CPP may get
1053
# substituted into the Makefile and "${CC-cc}" will confuse make.
1055
# On the NeXT, cc -E runs the code through the compiler's parser,
1056
# not just through cpp.
1057
cat > conftest.$ac_ext <<EOF
1058
#line 1059 "configure"
1059
#include "confdefs.h"
1063
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1064
{ (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1065
ac_err=`grep -v '^ *+' conftest.out`
1066
if test -z "$ac_err"; then
1070
echo "configure: failed program was:" >&5
1071
cat conftest.$ac_ext >&5
1073
CPP="${CC-cc} -E -traditional-cpp"
1074
cat > conftest.$ac_ext <<EOF
1075
#line 1076 "configure"
1076
#include "confdefs.h"
1080
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081
{ (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082
ac_err=`grep -v '^ *+' conftest.out`
1083
if test -z "$ac_err"; then
1087
echo "configure: failed program was:" >&5
1088
cat conftest.$ac_ext >&5
1095
ac_cv_prog_CPP="$CPP"
1097
CPP="$ac_cv_prog_CPP"
1099
ac_cv_prog_CPP="$CPP"
1101
echo "$ac_t""$CPP" 1>&6
1103
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1104
echo "configure:1105: checking whether ln -s works" >&5
1105
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1106
echo $ac_n "(cached) $ac_c" 1>&6
1109
if ln -s X conftestdata 2>/dev/null
1112
ac_cv_prog_LN_S="ln -s"
1117
LN_S="$ac_cv_prog_LN_S"
1118
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1119
echo "$ac_t""yes" 1>&6
1121
echo "$ac_t""no" 1>&6
1125
# Extract the first word of "ranlib", so it can be a program name with args.
1126
set dummy ranlib; ac_word=$2
1127
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128
echo "configure:1129: checking for $ac_word" >&5
1129
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130
echo $ac_n "(cached) $ac_c" 1>&6
1132
if test -n "$RANLIB"; then
1133
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1135
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1136
for ac_dir in $PATH; do
1137
test -z "$ac_dir" && ac_dir=.
1138
if test -f $ac_dir/$ac_word; then
1139
ac_cv_prog_RANLIB="ranlib"
1144
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1147
RANLIB="$ac_cv_prog_RANLIB"
1148
if test -n "$RANLIB"; then
1149
echo "$ac_t""$RANLIB" 1>&6
1151
echo "$ac_t""no" 1>&6
1154
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1155
echo "configure:1156: checking for POSIXized ISC" >&5
1156
if test -d /etc/conf/kconfig.d &&
1157
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1159
echo "$ac_t""yes" 1>&6
1160
ISC=yes # If later tests want to check for ISC.
1161
cat >> confdefs.h <<\EOF
1162
#define _POSIX_SOURCE 1
1165
if test "$GCC" = yes; then
1171
echo "$ac_t""no" 1>&6
1175
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1176
echo "configure:1177: checking for ANSI C header files" >&5
1177
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1178
echo $ac_n "(cached) $ac_c" 1>&6
1180
cat > conftest.$ac_ext <<EOF
1181
#line 1182 "configure"
1182
#include "confdefs.h"
1188
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189
{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190
ac_err=`grep -v '^ *+' conftest.out`
1191
if test -z "$ac_err"; then
1193
ac_cv_header_stdc=yes
1196
echo "configure: failed program was:" >&5
1197
cat conftest.$ac_ext >&5
1199
ac_cv_header_stdc=no
1203
if test $ac_cv_header_stdc = yes; then
1204
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1205
cat > conftest.$ac_ext <<EOF
1206
#line 1207 "configure"
1207
#include "confdefs.h"
1210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1211
egrep "memchr" >/dev/null 2>&1; then
1215
ac_cv_header_stdc=no
1221
if test $ac_cv_header_stdc = yes; then
1222
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1223
cat > conftest.$ac_ext <<EOF
1224
#line 1225 "configure"
1225
#include "confdefs.h"
1228
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1229
egrep "free" >/dev/null 2>&1; then
1233
ac_cv_header_stdc=no
1239
if test $ac_cv_header_stdc = yes; then
1240
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1241
if test "$cross_compiling" = yes; then
1244
cat > conftest.$ac_ext <<EOF
1245
#line 1246 "configure"
1246
#include "confdefs.h"
1248
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1249
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1250
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1251
int main () { int i; for (i = 0; i < 256; i++)
1252
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1256
if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1260
echo "configure: failed program was:" >&5
1261
cat conftest.$ac_ext >&5
1263
ac_cv_header_stdc=no
1271
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1272
if test $ac_cv_header_stdc = yes; then
1273
cat >> confdefs.h <<\EOF
1274
#define STDC_HEADERS 1
1279
echo $ac_n "checking for working const""... $ac_c" 1>&6
1280
echo "configure:1281: checking for working const" >&5
1281
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1282
echo $ac_n "(cached) $ac_c" 1>&6
1284
cat > conftest.$ac_ext <<EOF
1285
#line 1286 "configure"
1286
#include "confdefs.h"
1290
/* Ultrix mips cc rejects this. */
1291
typedef int charset[2]; const charset x;
1292
/* SunOS 4.1.1 cc rejects this. */
1293
char const *const *ccp;
1295
/* NEC SVR4.0.2 mips cc rejects this. */
1296
struct point {int x, y;};
1297
static struct point const zero = {0,0};
1298
/* AIX XL C 1.02.0.0 rejects this.
1299
It does not let you subtract one const X* pointer from another in an arm
1300
of an if-expression whose if-part is not a constant expression */
1301
const char *g = "string";
1302
ccp = &g + (g ? g-g : 0);
1303
/* HPUX 7.0 cc rejects these. */
1306
ccp = (char const *const *) p;
1307
{ /* SCO 3.2v4 cc rejects this. */
1309
char const *s = 0 ? (char *) 0 : (char const *) 0;
1313
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1315
const int *foo = &x[0];
1318
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1319
typedef const int *iptr;
1323
{ /* AIX XL C 1.02.0.0 rejects this saying
1324
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1325
struct s { int j; const int *ap[3]; };
1326
struct s *b; b->j = 5;
1328
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1334
if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338
echo "configure: failed program was:" >&5
1339
cat conftest.$ac_ext >&5
1346
echo "$ac_t""$ac_cv_c_const" 1>&6
1347
if test $ac_cv_c_const = no; then
1348
cat >> confdefs.h <<\EOF
1354
echo $ac_n "checking for inline""... $ac_c" 1>&6
1355
echo "configure:1356: checking for inline" >&5
1356
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1357
echo $ac_n "(cached) $ac_c" 1>&6
1360
for ac_kw in inline __inline__ __inline; do
1361
cat > conftest.$ac_ext <<EOF
1362
#line 1363 "configure"
1363
#include "confdefs.h"
1369
if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371
ac_cv_c_inline=$ac_kw; break
1373
echo "configure: failed program was:" >&5
1374
cat conftest.$ac_ext >&5
1381
echo "$ac_t""$ac_cv_c_inline" 1>&6
1382
case "$ac_cv_c_inline" in
1384
no) cat >> confdefs.h <<\EOF
1388
*) cat >> confdefs.h <<EOF
1389
#define inline $ac_cv_c_inline
1394
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1395
echo "configure:1396: checking for off_t" >&5
1396
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1397
echo $ac_n "(cached) $ac_c" 1>&6
1399
cat > conftest.$ac_ext <<EOF
1400
#line 1401 "configure"
1401
#include "confdefs.h"
1402
#include <sys/types.h>
1408
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409
egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1411
ac_cv_type_off_t=yes
1419
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1420
if test $ac_cv_type_off_t = no; then
1421
cat >> confdefs.h <<\EOF
1427
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1428
echo "configure:1429: checking for size_t" >&5
1429
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1430
echo $ac_n "(cached) $ac_c" 1>&6
1432
cat > conftest.$ac_ext <<EOF
1433
#line 1434 "configure"
1434
#include "confdefs.h"
1435
#include <sys/types.h>
1441
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442
egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1444
ac_cv_type_size_t=yes
1447
ac_cv_type_size_t=no
1452
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1453
if test $ac_cv_type_size_t = no; then
1454
cat >> confdefs.h <<\EOF
1455
#define size_t unsigned
1460
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1461
# for constant arguments. Useless!
1462
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1463
echo "configure:1464: checking for working alloca.h" >&5
1464
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1465
echo $ac_n "(cached) $ac_c" 1>&6
1467
cat > conftest.$ac_ext <<EOF
1468
#line 1469 "configure"
1469
#include "confdefs.h"
1472
char *p = alloca(2 * sizeof(int));
1475
if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1477
ac_cv_header_alloca_h=yes
1479
echo "configure: failed program was:" >&5
1480
cat conftest.$ac_ext >&5
1482
ac_cv_header_alloca_h=no
1487
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1488
if test $ac_cv_header_alloca_h = yes; then
1489
cat >> confdefs.h <<\EOF
1490
#define HAVE_ALLOCA_H 1
1495
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1496
echo "configure:1497: checking for alloca" >&5
1497
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1498
echo $ac_n "(cached) $ac_c" 1>&6
1500
cat > conftest.$ac_ext <<EOF
1501
#line 1502 "configure"
1502
#include "confdefs.h"
1505
# define alloca __builtin_alloca
1508
# include <alloca.h>
1513
# ifndef alloca /* predefined by HP cc +Olibcalls */
1521
char *p = (char *) alloca(1);
1524
if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1526
ac_cv_func_alloca_works=yes
1528
echo "configure: failed program was:" >&5
1529
cat conftest.$ac_ext >&5
1531
ac_cv_func_alloca_works=no
1536
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1537
if test $ac_cv_func_alloca_works = yes; then
1538
cat >> confdefs.h <<\EOF
1539
#define HAVE_ALLOCA 1
1544
if test $ac_cv_func_alloca_works = no; then
1545
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
1546
# that cause trouble. Some versions do not even contain alloca or
1547
# contain a buggy version. If you still want to use their alloca,
1548
# use ar to extract alloca.o from them instead of compiling alloca.c.
1550
cat >> confdefs.h <<\EOF
1555
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1556
echo "configure:1557: checking whether alloca needs Cray hooks" >&5
1557
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1558
echo $ac_n "(cached) $ac_c" 1>&6
1560
cat > conftest.$ac_ext <<EOF
1561
#line 1562 "configure"
1562
#include "confdefs.h"
1563
#if defined(CRAY) && ! defined(CRAY2)
1570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1571
egrep "webecray" >/dev/null 2>&1; then
1582
echo "$ac_t""$ac_cv_os_cray" 1>&6
1583
if test $ac_cv_os_cray = yes; then
1584
for ac_func in _getb67 GETB67 getb67; do
1585
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1586
echo "configure:1587: checking for $ac_func" >&5
1587
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1588
echo $ac_n "(cached) $ac_c" 1>&6
1590
cat > conftest.$ac_ext <<EOF
1591
#line 1592 "configure"
1592
#include "confdefs.h"
1593
/* System header to define __stub macros and hopefully few prototypes,
1594
which can conflict with char $ac_func(); below. */
1596
/* Override any gcc2 internal prototype to avoid an error. */
1597
/* We use char because int might match the return type of a gcc2
1598
builtin and then its argument prototype would still apply. */
1603
/* The GNU C library defines this for functions which it implements
1604
to always fail with ENOSYS. Some functions are actually named
1605
something starting with __ and the normal name is an alias. */
1606
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1614
if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1616
eval "ac_cv_func_$ac_func=yes"
1618
echo "configure: failed program was:" >&5
1619
cat conftest.$ac_ext >&5
1621
eval "ac_cv_func_$ac_func=no"
1626
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1627
echo "$ac_t""yes" 1>&6
1628
cat >> confdefs.h <<EOF
1629
#define CRAY_STACKSEG_END $ac_func
1634
echo "$ac_t""no" 1>&6
1640
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1641
echo "configure:1642: checking stack direction for C alloca" >&5
1642
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1643
echo $ac_n "(cached) $ac_c" 1>&6
1645
if test "$cross_compiling" = yes; then
1646
ac_cv_c_stack_direction=0
1648
cat > conftest.$ac_ext <<EOF
1649
#line 1650 "configure"
1650
#include "confdefs.h"
1651
find_stack_direction ()
1653
static char *addr = 0;
1658
return find_stack_direction ();
1661
return (&dummy > addr) ? 1 : -1;
1665
exit (find_stack_direction() < 0);
1668
if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1670
ac_cv_c_stack_direction=1
1672
echo "configure: failed program was:" >&5
1673
cat conftest.$ac_ext >&5
1675
ac_cv_c_stack_direction=-1
1682
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1683
cat >> confdefs.h <<EOF
1684
#define STACK_DIRECTION $ac_cv_c_stack_direction
1689
for ac_hdr in unistd.h
1691
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1692
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1693
echo "configure:1694: checking for $ac_hdr" >&5
1694
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1695
echo $ac_n "(cached) $ac_c" 1>&6
1697
cat > conftest.$ac_ext <<EOF
1698
#line 1699 "configure"
1699
#include "confdefs.h"
1702
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1703
{ (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1704
ac_err=`grep -v '^ *+' conftest.out`
1705
if test -z "$ac_err"; then
1707
eval "ac_cv_header_$ac_safe=yes"
1710
echo "configure: failed program was:" >&5
1711
cat conftest.$ac_ext >&5
1713
eval "ac_cv_header_$ac_safe=no"
1717
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1718
echo "$ac_t""yes" 1>&6
1719
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1720
cat >> confdefs.h <<EOF
1721
#define $ac_tr_hdr 1
1725
echo "$ac_t""no" 1>&6
1729
for ac_func in getpagesize
1731
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1732
echo "configure:1733: checking for $ac_func" >&5
1733
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1734
echo $ac_n "(cached) $ac_c" 1>&6
1736
cat > conftest.$ac_ext <<EOF
1737
#line 1738 "configure"
1738
#include "confdefs.h"
1739
/* System header to define __stub macros and hopefully few prototypes,
1740
which can conflict with char $ac_func(); below. */
1742
/* Override any gcc2 internal prototype to avoid an error. */
1743
/* We use char because int might match the return type of a gcc2
1744
builtin and then its argument prototype would still apply. */
1749
/* The GNU C library defines this for functions which it implements
1750
to always fail with ENOSYS. Some functions are actually named
1751
something starting with __ and the normal name is an alias. */
1752
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1760
if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1762
eval "ac_cv_func_$ac_func=yes"
1764
echo "configure: failed program was:" >&5
1765
cat conftest.$ac_ext >&5
1767
eval "ac_cv_func_$ac_func=no"
1772
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1773
echo "$ac_t""yes" 1>&6
1774
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1775
cat >> confdefs.h <<EOF
1776
#define $ac_tr_func 1
1780
echo "$ac_t""no" 1>&6
1784
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1785
echo "configure:1786: checking for working mmap" >&5
1786
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1787
echo $ac_n "(cached) $ac_c" 1>&6
1789
if test "$cross_compiling" = yes; then
1790
ac_cv_func_mmap_fixed_mapped=no
1792
cat > conftest.$ac_ext <<EOF
1793
#line 1794 "configure"
1794
#include "confdefs.h"
1796
/* Thanks to Mike Haertel and Jim Avera for this test.
1797
Here is a matrix of mmap possibilities:
1798
mmap private not fixed
1799
mmap private fixed at somewhere currently unmapped
1800
mmap private fixed at somewhere already mapped
1801
mmap shared not fixed
1802
mmap shared fixed at somewhere currently unmapped
1803
mmap shared fixed at somewhere already mapped
1804
For private mappings, we should verify that changes cannot be read()
1805
back from the file, nor mmap's back from the file at a different
1806
address. (There have been systems where private was not correctly
1807
implemented like the infamous i386 svr4.0, and systems where the
1808
VM page cache was not coherent with the filesystem buffer cache
1809
like early versions of FreeBSD and possibly contemporary NetBSD.)
1810
For shared mappings, we should conversely verify that changes get
1811
propogated back to all the places they're supposed to be.
1813
Grep wants private fixed already mapped.
1814
The main things grep needs to know about mmap are:
1815
* does it exist and is it safe to write into the mmap'd area
1816
* how to use it (BSD variants) */
1817
#include <sys/types.h>
1819
#include <sys/mman.h>
1821
/* This mess was copied from the GNU getpagesize.h. */
1822
#ifndef HAVE_GETPAGESIZE
1823
# ifdef HAVE_UNISTD_H
1824
# include <unistd.h>
1827
/* Assume that all systems that can run configure have sys/param.h. */
1828
# ifndef HAVE_SYS_PARAM_H
1829
# define HAVE_SYS_PARAM_H 1
1832
# ifdef _SC_PAGESIZE
1833
# define getpagesize() sysconf(_SC_PAGESIZE)
1834
# else /* no _SC_PAGESIZE */
1835
# ifdef HAVE_SYS_PARAM_H
1836
# include <sys/param.h>
1837
# ifdef EXEC_PAGESIZE
1838
# define getpagesize() EXEC_PAGESIZE
1839
# else /* no EXEC_PAGESIZE */
1841
# define getpagesize() NBPG * CLSIZE
1844
# endif /* no CLSIZE */
1845
# else /* no NBPG */
1847
# define getpagesize() NBPC
1848
# else /* no NBPC */
1850
# define getpagesize() PAGESIZE
1851
# endif /* PAGESIZE */
1852
# endif /* no NBPC */
1853
# endif /* no NBPG */
1854
# endif /* no EXEC_PAGESIZE */
1855
# else /* no HAVE_SYS_PARAM_H */
1856
# define getpagesize() 8192 /* punt totally */
1857
# endif /* no HAVE_SYS_PARAM_H */
1858
# endif /* no _SC_PAGESIZE */
1860
#endif /* no HAVE_GETPAGESIZE */
1863
extern "C" { void *malloc(unsigned); }
1871
char *data, *data2, *data3;
1875
pagesize = getpagesize();
1878
* First, make a file with some known garbage in it.
1880
data = malloc(pagesize);
1883
for (i = 0; i < pagesize; ++i)
1884
*(data + i) = rand();
1886
fd = creat("conftestmmap", 0600);
1889
if (write(fd, data, pagesize) != pagesize)
1894
* Next, try to mmap the file at a fixed address which
1895
* already has something else allocated at it. If we can,
1896
* also make sure that we see the same garbage.
1898
fd = open("conftestmmap", O_RDWR);
1901
data2 = malloc(2 * pagesize);
1904
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1905
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1906
MAP_PRIVATE | MAP_FIXED, fd, 0L))
1908
for (i = 0; i < pagesize; ++i)
1909
if (*(data + i) != *(data2 + i))
1913
* Finally, make sure that changes to the mapped area
1914
* do not percolate back to the file as seen by read().
1915
* (This is a bug on some variants of i386 svr4.0.)
1917
for (i = 0; i < pagesize; ++i)
1918
*(data2 + i) = *(data2 + i) + 1;
1919
data3 = malloc(pagesize);
1922
if (read(fd, data3, pagesize) != pagesize)
1924
for (i = 0; i < pagesize; ++i)
1925
if (*(data + i) != *(data3 + i))
1928
unlink("conftestmmap");
1933
if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1935
ac_cv_func_mmap_fixed_mapped=yes
1937
echo "configure: failed program was:" >&5
1938
cat conftest.$ac_ext >&5
1940
ac_cv_func_mmap_fixed_mapped=no
1947
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1948
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1949
cat >> confdefs.h <<\EOF
1956
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1957
unistd.h values.h sys/param.h
1959
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961
echo "configure:1962: checking for $ac_hdr" >&5
1962
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963
echo $ac_n "(cached) $ac_c" 1>&6
1965
cat > conftest.$ac_ext <<EOF
1966
#line 1967 "configure"
1967
#include "confdefs.h"
1970
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971
{ (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972
ac_err=`grep -v '^ *+' conftest.out`
1973
if test -z "$ac_err"; then
1975
eval "ac_cv_header_$ac_safe=yes"
1978
echo "configure: failed program was:" >&5
1979
cat conftest.$ac_ext >&5
1981
eval "ac_cv_header_$ac_safe=no"
1985
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986
echo "$ac_t""yes" 1>&6
1987
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988
cat >> confdefs.h <<EOF
1989
#define $ac_tr_hdr 1
1993
echo "$ac_t""no" 1>&6
1997
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1998
__argz_count __argz_stringify __argz_next
2000
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2001
echo "configure:2002: checking for $ac_func" >&5
2002
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2003
echo $ac_n "(cached) $ac_c" 1>&6
2005
cat > conftest.$ac_ext <<EOF
2006
#line 2007 "configure"
2007
#include "confdefs.h"
2008
/* System header to define __stub macros and hopefully few prototypes,
2009
which can conflict with char $ac_func(); below. */
2011
/* Override any gcc2 internal prototype to avoid an error. */
2012
/* We use char because int might match the return type of a gcc2
2013
builtin and then its argument prototype would still apply. */
2018
/* The GNU C library defines this for functions which it implements
2019
to always fail with ENOSYS. Some functions are actually named
2020
something starting with __ and the normal name is an alias. */
2021
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2029
if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2031
eval "ac_cv_func_$ac_func=yes"
2033
echo "configure: failed program was:" >&5
2034
cat conftest.$ac_ext >&5
2036
eval "ac_cv_func_$ac_func=no"
2041
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2042
echo "$ac_t""yes" 1>&6
2043
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2044
cat >> confdefs.h <<EOF
2045
#define $ac_tr_func 1
2049
echo "$ac_t""no" 1>&6
2054
if test "${ac_cv_func_stpcpy+set}" != "set"; then
2055
for ac_func in stpcpy
2057
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2058
echo "configure:2059: checking for $ac_func" >&5
2059
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2060
echo $ac_n "(cached) $ac_c" 1>&6
2062
cat > conftest.$ac_ext <<EOF
2063
#line 2064 "configure"
2064
#include "confdefs.h"
2065
/* System header to define __stub macros and hopefully few prototypes,
2066
which can conflict with char $ac_func(); below. */
2068
/* Override any gcc2 internal prototype to avoid an error. */
2069
/* We use char because int might match the return type of a gcc2
2070
builtin and then its argument prototype would still apply. */
2075
/* The GNU C library defines this for functions which it implements
2076
to always fail with ENOSYS. Some functions are actually named
2077
something starting with __ and the normal name is an alias. */
2078
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2086
if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2088
eval "ac_cv_func_$ac_func=yes"
2090
echo "configure: failed program was:" >&5
2091
cat conftest.$ac_ext >&5
2093
eval "ac_cv_func_$ac_func=no"
2098
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2099
echo "$ac_t""yes" 1>&6
2100
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2101
cat >> confdefs.h <<EOF
2102
#define $ac_tr_func 1
2106
echo "$ac_t""no" 1>&6
2111
if test "${ac_cv_func_stpcpy}" = "yes"; then
2112
cat >> confdefs.h <<\EOF
2113
#define HAVE_STPCPY 1
2118
if test $ac_cv_header_locale_h = yes; then
2119
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2120
echo "configure:2121: checking for LC_MESSAGES" >&5
2121
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2122
echo $ac_n "(cached) $ac_c" 1>&6
2124
cat > conftest.$ac_ext <<EOF
2125
#line 2126 "configure"
2126
#include "confdefs.h"
2132
if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2134
am_cv_val_LC_MESSAGES=yes
2136
echo "configure: failed program was:" >&5
2137
cat conftest.$ac_ext >&5
2139
am_cv_val_LC_MESSAGES=no
2144
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2145
if test $am_cv_val_LC_MESSAGES = yes; then
2146
cat >> confdefs.h <<\EOF
2147
#define HAVE_LC_MESSAGES 1
2152
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2153
echo "configure:2154: checking whether NLS is requested" >&5
2154
# Check whether --enable-nls or --disable-nls was given.
2155
if test "${enable_nls+set}" = set; then
2156
enableval="$enable_nls"
2162
echo "$ac_t""$USE_NLS" 1>&6
2165
USE_INCLUDED_LIBINTL=no
2167
if test "$USE_NLS" = "yes"; then
2168
cat >> confdefs.h <<\EOF
2169
#define ENABLE_NLS 1
2172
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2173
echo "configure:2174: checking whether included gettext is requested" >&5
2174
# Check whether --with-included-gettext or --without-included-gettext was given.
2175
if test "${with_included_gettext+set}" = set; then
2176
withval="$with_included_gettext"
2177
nls_cv_force_use_gnu_gettext=$withval
2179
nls_cv_force_use_gnu_gettext=no
2182
echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2184
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2185
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2187
nls_cv_header_libgt=
2190
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2191
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2192
echo "configure:2193: checking for libintl.h" >&5
2193
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2194
echo $ac_n "(cached) $ac_c" 1>&6
2196
cat > conftest.$ac_ext <<EOF
2197
#line 2198 "configure"
2198
#include "confdefs.h"
2199
#include <libintl.h>
2201
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202
{ (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203
ac_err=`grep -v '^ *+' conftest.out`
2204
if test -z "$ac_err"; then
2206
eval "ac_cv_header_$ac_safe=yes"
2209
echo "configure: failed program was:" >&5
2210
cat conftest.$ac_ext >&5
2212
eval "ac_cv_header_$ac_safe=no"
2216
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217
echo "$ac_t""yes" 1>&6
2218
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2219
echo "configure:2220: checking for gettext in libc" >&5
2220
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2221
echo $ac_n "(cached) $ac_c" 1>&6
2223
cat > conftest.$ac_ext <<EOF
2224
#line 2225 "configure"
2225
#include "confdefs.h"
2226
#include <libintl.h>
2228
return (int) gettext ("")
2231
if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2233
gt_cv_func_gettext_libc=yes
2235
echo "configure: failed program was:" >&5
2236
cat conftest.$ac_ext >&5
2238
gt_cv_func_gettext_libc=no
2243
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2245
if test "$gt_cv_func_gettext_libc" != "yes"; then
2246
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2247
echo "configure:2248: checking for bindtextdomain in -lintl" >&5
2248
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2249
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2250
echo $ac_n "(cached) $ac_c" 1>&6
2252
ac_save_LIBS="$LIBS"
2254
cat > conftest.$ac_ext <<EOF
2255
#line 2256 "configure"
2256
#include "confdefs.h"
2257
/* Override any gcc2 internal prototype to avoid an error. */
2258
/* We use char because int might match the return type of a gcc2
2259
builtin and then its argument prototype would still apply. */
2260
char bindtextdomain();
2266
if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2268
eval "ac_cv_lib_$ac_lib_var=yes"
2270
echo "configure: failed program was:" >&5
2271
cat conftest.$ac_ext >&5
2273
eval "ac_cv_lib_$ac_lib_var=no"
2276
LIBS="$ac_save_LIBS"
2279
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2280
echo "$ac_t""yes" 1>&6
2281
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2282
echo "configure:2283: checking for gettext in libintl" >&5
2283
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2284
echo $ac_n "(cached) $ac_c" 1>&6
2286
cat > conftest.$ac_ext <<EOF
2287
#line 2288 "configure"
2288
#include "confdefs.h"
2291
return (int) gettext ("")
2294
if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2296
gt_cv_func_gettext_libintl=yes
2298
echo "configure: failed program was:" >&5
2299
cat conftest.$ac_ext >&5
2301
gt_cv_func_gettext_libintl=no
2306
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2308
echo "$ac_t""no" 1>&6
2313
if test "$gt_cv_func_gettext_libc" = "yes" \
2314
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
2315
cat >> confdefs.h <<\EOF
2316
#define HAVE_GETTEXT 1
2319
# Extract the first word of "msgfmt", so it can be a program name with args.
2320
set dummy msgfmt; ac_word=$2
2321
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2322
echo "configure:2323: checking for $ac_word" >&5
2323
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2324
echo $ac_n "(cached) $ac_c" 1>&6
2328
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2331
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2332
for ac_dir in $PATH; do
2333
test -z "$ac_dir" && ac_dir=.
2334
if test -f $ac_dir/$ac_word; then
2335
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2336
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2342
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2346
MSGFMT="$ac_cv_path_MSGFMT"
2347
if test -n "$MSGFMT"; then
2348
echo "$ac_t""$MSGFMT" 1>&6
2350
echo "$ac_t""no" 1>&6
2352
if test "$MSGFMT" != "no"; then
2353
for ac_func in dcgettext
2355
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2356
echo "configure:2357: checking for $ac_func" >&5
2357
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2358
echo $ac_n "(cached) $ac_c" 1>&6
2360
cat > conftest.$ac_ext <<EOF
2361
#line 2362 "configure"
2362
#include "confdefs.h"
2363
/* System header to define __stub macros and hopefully few prototypes,
2364
which can conflict with char $ac_func(); below. */
2366
/* Override any gcc2 internal prototype to avoid an error. */
2367
/* We use char because int might match the return type of a gcc2
2368
builtin and then its argument prototype would still apply. */
2373
/* The GNU C library defines this for functions which it implements
2374
to always fail with ENOSYS. Some functions are actually named
2375
something starting with __ and the normal name is an alias. */
2376
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2384
if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2386
eval "ac_cv_func_$ac_func=yes"
2388
echo "configure: failed program was:" >&5
2389
cat conftest.$ac_ext >&5
2391
eval "ac_cv_func_$ac_func=no"
2396
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2397
echo "$ac_t""yes" 1>&6
2398
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2399
cat >> confdefs.h <<EOF
2400
#define $ac_tr_func 1
2404
echo "$ac_t""no" 1>&6
2408
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2409
set dummy gmsgfmt; ac_word=$2
2410
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411
echo "configure:2412: checking for $ac_word" >&5
2412
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2413
echo $ac_n "(cached) $ac_c" 1>&6
2417
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2420
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2421
for ac_dir in $PATH; do
2422
test -z "$ac_dir" && ac_dir=.
2423
if test -f $ac_dir/$ac_word; then
2424
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2429
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2433
GMSGFMT="$ac_cv_path_GMSGFMT"
2434
if test -n "$GMSGFMT"; then
2435
echo "$ac_t""$GMSGFMT" 1>&6
2437
echo "$ac_t""no" 1>&6
2440
# Extract the first word of "xgettext", so it can be a program name with args.
2441
set dummy xgettext; ac_word=$2
2442
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443
echo "configure:2444: checking for $ac_word" >&5
2444
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2445
echo $ac_n "(cached) $ac_c" 1>&6
2449
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2452
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2453
for ac_dir in $PATH; do
2454
test -z "$ac_dir" && ac_dir=.
2455
if test -f $ac_dir/$ac_word; then
2456
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2457
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2463
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2467
XGETTEXT="$ac_cv_path_XGETTEXT"
2468
if test -n "$XGETTEXT"; then
2469
echo "$ac_t""$XGETTEXT" 1>&6
2471
echo "$ac_t""no" 1>&6
2474
cat > conftest.$ac_ext <<EOF
2475
#line 2476 "configure"
2476
#include "confdefs.h"
2479
extern int _nl_msg_cat_cntr;
2480
return _nl_msg_cat_cntr
2483
if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2488
echo "configure: failed program was:" >&5
2489
cat conftest.$ac_ext >&5
2500
echo "$ac_t""no" 1>&6
2504
if test "$CATOBJEXT" = "NONE"; then
2505
echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2506
echo "configure:2507: checking whether catgets can be used" >&5
2507
# Check whether --with-catgets or --without-catgets was given.
2508
if test "${with_catgets+set}" = set; then
2509
withval="$with_catgets"
2510
nls_cv_use_catgets=$withval
2512
nls_cv_use_catgets=no
2515
echo "$ac_t""$nls_cv_use_catgets" 1>&6
2517
if test "$nls_cv_use_catgets" = "yes"; then
2518
echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2519
echo "configure:2520: checking for main in -li" >&5
2520
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2521
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2522
echo $ac_n "(cached) $ac_c" 1>&6
2524
ac_save_LIBS="$LIBS"
2526
cat > conftest.$ac_ext <<EOF
2527
#line 2528 "configure"
2528
#include "confdefs.h"
2534
if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2536
eval "ac_cv_lib_$ac_lib_var=yes"
2538
echo "configure: failed program was:" >&5
2539
cat conftest.$ac_ext >&5
2541
eval "ac_cv_lib_$ac_lib_var=no"
2544
LIBS="$ac_save_LIBS"
2547
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2548
echo "$ac_t""yes" 1>&6
2549
ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2550
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2551
cat >> confdefs.h <<EOF
2552
#define $ac_tr_lib 1
2558
echo "$ac_t""no" 1>&6
2561
echo $ac_n "checking for catgets""... $ac_c" 1>&6
2562
echo "configure:2563: checking for catgets" >&5
2563
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2564
echo $ac_n "(cached) $ac_c" 1>&6
2566
cat > conftest.$ac_ext <<EOF
2567
#line 2568 "configure"
2568
#include "confdefs.h"
2569
/* System header to define __stub macros and hopefully few prototypes,
2570
which can conflict with char catgets(); below. */
2572
/* Override any gcc2 internal prototype to avoid an error. */
2573
/* We use char because int might match the return type of a gcc2
2574
builtin and then its argument prototype would still apply. */
2579
/* The GNU C library defines this for functions which it implements
2580
to always fail with ENOSYS. Some functions are actually named
2581
something starting with __ and the normal name is an alias. */
2582
#if defined (__stub_catgets) || defined (__stub___catgets)
2590
if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2592
eval "ac_cv_func_catgets=yes"
2594
echo "configure: failed program was:" >&5
2595
cat conftest.$ac_ext >&5
2597
eval "ac_cv_func_catgets=no"
2602
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2603
echo "$ac_t""yes" 1>&6
2604
cat >> confdefs.h <<\EOF
2605
#define HAVE_CATGETS 1
2608
INTLOBJS="\$(CATOBJS)"
2609
# Extract the first word of "gencat", so it can be a program name with args.
2610
set dummy gencat; ac_word=$2
2611
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2612
echo "configure:2613: checking for $ac_word" >&5
2613
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2614
echo $ac_n "(cached) $ac_c" 1>&6
2618
ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2621
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2622
for ac_dir in $PATH; do
2623
test -z "$ac_dir" && ac_dir=.
2624
if test -f $ac_dir/$ac_word; then
2625
ac_cv_path_GENCAT="$ac_dir/$ac_word"
2630
test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2634
GENCAT="$ac_cv_path_GENCAT"
2635
if test -n "$GENCAT"; then
2636
echo "$ac_t""$GENCAT" 1>&6
2638
echo "$ac_t""no" 1>&6
2640
if test "$GENCAT" != "no"; then
2641
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2642
set dummy gmsgfmt; ac_word=$2
2643
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644
echo "configure:2645: checking for $ac_word" >&5
2645
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2646
echo $ac_n "(cached) $ac_c" 1>&6
2650
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2653
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2654
for ac_dir in $PATH; do
2655
test -z "$ac_dir" && ac_dir=.
2656
if test -f $ac_dir/$ac_word; then
2657
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2662
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2666
GMSGFMT="$ac_cv_path_GMSGFMT"
2667
if test -n "$GMSGFMT"; then
2668
echo "$ac_t""$GMSGFMT" 1>&6
2670
echo "$ac_t""no" 1>&6
2673
if test "$GMSGFMT" = "no"; then
2674
# Extract the first word of "msgfmt", so it can be a program name with args.
2675
set dummy msgfmt; ac_word=$2
2676
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2677
echo "configure:2678: checking for $ac_word" >&5
2678
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2679
echo $ac_n "(cached) $ac_c" 1>&6
2683
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2686
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2687
for ac_dir in $PATH; do
2688
test -z "$ac_dir" && ac_dir=.
2689
if test -f $ac_dir/$ac_word; then
2690
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2691
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2697
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2701
GMSGFMT="$ac_cv_path_GMSGFMT"
2702
if test -n "$GMSGFMT"; then
2703
echo "$ac_t""$GMSGFMT" 1>&6
2705
echo "$ac_t""no" 1>&6
2709
# Extract the first word of "xgettext", so it can be a program name with args.
2710
set dummy xgettext; ac_word=$2
2711
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2712
echo "configure:2713: checking for $ac_word" >&5
2713
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2714
echo $ac_n "(cached) $ac_c" 1>&6
2718
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2721
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2722
for ac_dir in $PATH; do
2723
test -z "$ac_dir" && ac_dir=.
2724
if test -f $ac_dir/$ac_word; then
2725
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2726
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2732
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2736
XGETTEXT="$ac_cv_path_XGETTEXT"
2737
if test -n "$XGETTEXT"; then
2738
echo "$ac_t""$XGETTEXT" 1>&6
2740
echo "$ac_t""no" 1>&6
2743
USE_INCLUDED_LIBINTL=yes
2747
INTLDEPS='$(top_builddir)/intl/libintl.a'
2749
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2750
nls_cv_header_intl=intl/libintl.h
2751
nls_cv_header_libgt=intl/libgettext.h
2754
echo "$ac_t""no" 1>&6
2760
if test "$CATOBJEXT" = "NONE"; then
2761
nls_cv_use_gnu_gettext=yes
2765
if test "$nls_cv_use_gnu_gettext" = "yes"; then
2766
INTLOBJS="\$(GETTOBJS)"
2767
# Extract the first word of "msgfmt", so it can be a program name with args.
2768
set dummy msgfmt; ac_word=$2
2769
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2770
echo "configure:2771: checking for $ac_word" >&5
2771
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2772
echo $ac_n "(cached) $ac_c" 1>&6
2776
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2779
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2780
for ac_dir in $PATH; do
2781
test -z "$ac_dir" && ac_dir=.
2782
if test -f $ac_dir/$ac_word; then
2783
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2784
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2790
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2794
MSGFMT="$ac_cv_path_MSGFMT"
2795
if test -n "$MSGFMT"; then
2796
echo "$ac_t""$MSGFMT" 1>&6
2798
echo "$ac_t""no" 1>&6
2801
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2802
set dummy gmsgfmt; ac_word=$2
2803
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2804
echo "configure:2805: checking for $ac_word" >&5
2805
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2806
echo $ac_n "(cached) $ac_c" 1>&6
2810
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2813
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2814
for ac_dir in $PATH; do
2815
test -z "$ac_dir" && ac_dir=.
2816
if test -f $ac_dir/$ac_word; then
2817
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2822
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2826
GMSGFMT="$ac_cv_path_GMSGFMT"
2827
if test -n "$GMSGFMT"; then
2828
echo "$ac_t""$GMSGFMT" 1>&6
2830
echo "$ac_t""no" 1>&6
2833
# Extract the first word of "xgettext", so it can be a program name with args.
2834
set dummy xgettext; ac_word=$2
2835
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2836
echo "configure:2837: checking for $ac_word" >&5
2837
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2838
echo $ac_n "(cached) $ac_c" 1>&6
2842
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2845
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2846
for ac_dir in $PATH; do
2847
test -z "$ac_dir" && ac_dir=.
2848
if test -f $ac_dir/$ac_word; then
2849
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2850
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2856
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2860
XGETTEXT="$ac_cv_path_XGETTEXT"
2861
if test -n "$XGETTEXT"; then
2862
echo "$ac_t""$XGETTEXT" 1>&6
2864
echo "$ac_t""no" 1>&6
2868
USE_INCLUDED_LIBINTL=yes
2872
INTLDEPS='$(top_builddir)/intl/libintl.a'
2874
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2875
nls_cv_header_intl=intl/libintl.h
2876
nls_cv_header_libgt=intl/libgettext.h
2879
if test "$XGETTEXT" != ":"; then
2880
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2883
echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2888
# We need to process the po/ directory.
2892
nls_cv_header_intl=intl/libintl.h
2893
nls_cv_header_libgt=intl/libgettext.h
2896
# If this is used in GNU gettext we have to set USE_NLS to `yes'
2897
# because some of the sources are only built for this goal.
2898
if test "$PACKAGE" = gettext; then
2900
USE_INCLUDED_LIBINTL=yes
2903
for lang in $ALL_LINGUAS; do
2904
GMOFILES="$GMOFILES $lang.gmo"
2905
POFILES="$POFILES $lang.po"
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 lang in ${LINGUAS=$ALL_LINGUAS}; do
2929
case "$ALL_LINGUAS" in
2930
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2933
LINGUAS=$NEW_LINGUAS
2934
echo "$ac_t""$LINGUAS" 1>&6
2937
if test -n "$LINGUAS"; then
2938
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2942
if test $ac_cv_header_locale_h = yes; then
2943
INCLUDE_LOCALE_H="#include <locale.h>"
2946
/* The system does not provide the header <locale.h>. Take care yourself. */"
2950
test -d intl || mkdir intl
2951
if test "$CATOBJEXT" = ".cat"; then
2952
ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2953
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2954
echo "configure:2955: checking for linux/version.h" >&5
2955
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2956
echo $ac_n "(cached) $ac_c" 1>&6
2958
cat > conftest.$ac_ext <<EOF
2959
#line 2960 "configure"
2960
#include "confdefs.h"
2961
#include <linux/version.h>
2963
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964
{ (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965
ac_err=`grep -v '^ *+' conftest.out`
2966
if test -z "$ac_err"; then
2968
eval "ac_cv_header_$ac_safe=yes"
2971
echo "configure: failed program was:" >&5
2972
cat conftest.$ac_ext >&5
2974
eval "ac_cv_header_$ac_safe=no"
2978
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2979
echo "$ac_t""yes" 1>&6
2982
echo "$ac_t""no" 1>&6
2987
sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
2989
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2990
$srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
2992
if test "$PACKAGE" = "gettext"; then
3003
if test -n "$ac_aux_dir"; then
3004
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3006
if test -z "$MKINSTALLDIRS"; then
3007
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3014
test -d po || mkdir po
3015
if test "x$srcdir" != "x."; then
3016
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3017
posrcprefix="$srcdir/"
3019
posrcprefix="../$srcdir/"
3025
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3026
< $srcdir/po/POTFILES.in > po/POTFILES
3030
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3031
echo "configure:3032: checking for gethostbyname in -lnsl" >&5
3032
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3033
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3034
echo $ac_n "(cached) $ac_c" 1>&6
3036
ac_save_LIBS="$LIBS"
3038
cat > conftest.$ac_ext <<EOF
3039
#line 3040 "configure"
3040
#include "confdefs.h"
3041
/* Override any gcc2 internal prototype to avoid an error. */
3042
/* We use char because int might match the return type of a gcc2
3043
builtin and then its argument prototype would still apply. */
3044
char gethostbyname();
3050
if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3052
eval "ac_cv_lib_$ac_lib_var=yes"
3054
echo "configure: failed program was:" >&5
3055
cat conftest.$ac_ext >&5
3057
eval "ac_cv_lib_$ac_lib_var=no"
3060
LIBS="$ac_save_LIBS"
3063
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3064
echo "$ac_t""yes" 1>&6
3065
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3066
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3067
cat >> confdefs.h <<EOF
3068
#define $ac_tr_lib 1
3074
echo "$ac_t""no" 1>&6
3077
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3078
echo "configure:3079: checking for socket in -lsocket" >&5
3079
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3080
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3081
echo $ac_n "(cached) $ac_c" 1>&6
3083
ac_save_LIBS="$LIBS"
3084
LIBS="-lsocket $LIBS"
3085
cat > conftest.$ac_ext <<EOF
3086
#line 3087 "configure"
3087
#include "confdefs.h"
3088
/* Override any gcc2 internal prototype to avoid an error. */
3089
/* We use char because int might match the return type of a gcc2
3090
builtin and then its argument prototype would still apply. */
3097
if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3099
eval "ac_cv_lib_$ac_lib_var=yes"
3101
echo "configure: failed program was:" >&5
3102
cat conftest.$ac_ext >&5
3104
eval "ac_cv_lib_$ac_lib_var=no"
3107
LIBS="$ac_save_LIBS"
3110
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3111
echo "$ac_t""yes" 1>&6
3112
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3113
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3114
cat >> confdefs.h <<EOF
3115
#define $ac_tr_lib 1
3118
LIBS="-lsocket $LIBS"
3121
echo "$ac_t""no" 1>&6
3125
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3126
echo "configure:3127: checking for ANSI C header files" >&5
3127
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3128
echo $ac_n "(cached) $ac_c" 1>&6
3130
cat > conftest.$ac_ext <<EOF
3131
#line 3132 "configure"
3132
#include "confdefs.h"
3138
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3139
{ (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3140
ac_err=`grep -v '^ *+' conftest.out`
3141
if test -z "$ac_err"; then
3143
ac_cv_header_stdc=yes
3146
echo "configure: failed program was:" >&5
3147
cat conftest.$ac_ext >&5
3149
ac_cv_header_stdc=no
3153
if test $ac_cv_header_stdc = yes; then
3154
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3155
cat > conftest.$ac_ext <<EOF
3156
#line 3157 "configure"
3157
#include "confdefs.h"
3160
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161
egrep "memchr" >/dev/null 2>&1; then
3165
ac_cv_header_stdc=no
3171
if test $ac_cv_header_stdc = yes; then
3172
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3173
cat > conftest.$ac_ext <<EOF
3174
#line 3175 "configure"
3175
#include "confdefs.h"
3178
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3179
egrep "free" >/dev/null 2>&1; then
3183
ac_cv_header_stdc=no
3189
if test $ac_cv_header_stdc = yes; then
3190
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3191
if test "$cross_compiling" = yes; then
3194
cat > conftest.$ac_ext <<EOF
3195
#line 3196 "configure"
3196
#include "confdefs.h"
3198
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3199
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3200
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3201
int main () { int i; for (i = 0; i < 256; i++)
3202
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3206
if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3210
echo "configure: failed program was:" >&5
3211
cat conftest.$ac_ext >&5
3213
ac_cv_header_stdc=no
3221
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3222
if test $ac_cv_header_stdc = yes; then
3223
cat >> confdefs.h <<\EOF
3224
#define STDC_HEADERS 1
3229
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3230
echo "configure:3231: checking for sys/wait.h that is POSIX.1 compatible" >&5
3231
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3232
echo $ac_n "(cached) $ac_c" 1>&6
3234
cat > conftest.$ac_ext <<EOF
3235
#line 3236 "configure"
3236
#include "confdefs.h"
3237
#include <sys/types.h>
3238
#include <sys/wait.h>
3240
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3243
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3248
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3251
if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253
ac_cv_header_sys_wait_h=yes
3255
echo "configure: failed program was:" >&5
3256
cat conftest.$ac_ext >&5
3258
ac_cv_header_sys_wait_h=no
3263
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3264
if test $ac_cv_header_sys_wait_h = yes; then
3265
cat >> confdefs.h <<\EOF
3266
#define HAVE_SYS_WAIT_H 1
3271
for ac_hdr in libintl.h string.h limits.h select.h sys/select.h
3273
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3274
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3275
echo "configure:3276: checking for $ac_hdr" >&5
3276
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3277
echo $ac_n "(cached) $ac_c" 1>&6
3279
cat > conftest.$ac_ext <<EOF
3280
#line 3281 "configure"
3281
#include "confdefs.h"
3284
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285
{ (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286
ac_err=`grep -v '^ *+' conftest.out`
3287
if test -z "$ac_err"; then
3289
eval "ac_cv_header_$ac_safe=yes"
3292
echo "configure: failed program was:" >&5
3293
cat conftest.$ac_ext >&5
3295
eval "ac_cv_header_$ac_safe=no"
3299
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300
echo "$ac_t""yes" 1>&6
3301
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302
cat >> confdefs.h <<EOF
3303
#define $ac_tr_hdr 1
3307
echo "$ac_t""no" 1>&6
3312
echo $ac_n "checking where MAXHOSTNAMELEN is defined""... $ac_c" 1>&6
3313
echo "configure:3314: checking where MAXHOSTNAMELEN is defined" >&5
3314
cat > conftest.$ac_ext <<EOF
3315
#line 3316 "configure"
3316
#include "confdefs.h"
3319
#ifdef MAXHOSTNAMELEN
3324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325
egrep "yes" >/dev/null 2>&1; then
3327
cat >> confdefs.h <<\EOF
3328
#define R_MAXHOSTNAMELEN_HDR <netdb.h>
3330
echo "$ac_t""<netdb.h>" 1>&6
3333
cat >> confdefs.h <<\EOF
3334
#define R_MAXHOSTNAMELEN_HDR <sys/param.h>
3336
echo "$ac_t""<sys/param.h>" 1>&6
3342
echo $ac_n "checking whether off_t is a long or a longlong""... $ac_c" 1>&6
3343
echo "configure:3344: checking whether off_t is a long or a longlong" >&5
3344
if test "$cross_compiling" = yes; then
3345
cat >> confdefs.h <<\EOF
3346
#define R_OFF_T_FMT "%ld"
3348
echo "$ac_t""(guessed) long" 1>&6
3351
cat > conftest.$ac_ext <<EOF
3352
#line 3353 "configure"
3353
#include "confdefs.h"
3355
#include <sys/types.h>
3356
int main() { return sizeof (long) != sizeof (off_t); }
3359
if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3361
cat >> confdefs.h <<\EOF
3362
#define R_OFF_T_FMT "%ld"
3364
echo "$ac_t""long" 1>&6
3366
echo "configure: failed program was:" >&5
3367
cat conftest.$ac_ext >&5
3369
cat >> confdefs.h <<\EOF
3370
#define R_OFF_T_FMT "%lld"
3372
echo "$ac_t""long long" 1>&6
3378
echo $ac_n "checking whether h_errno is declared (in <netdb.h>)""... $ac_c" 1>&6
3379
echo "configure:3380: checking whether h_errno is declared (in <netdb.h>)" >&5
3380
cat > conftest.$ac_ext <<EOF
3381
#line 3382 "configure"
3382
#include "confdefs.h"
3388
if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3390
cat >> confdefs.h <<\EOF
3391
#define H_ERRNO_DECLARED 1
3393
echo "$ac_t""yes" 1>&6
3395
echo "configure: failed program was:" >&5
3396
cat conftest.$ac_ext >&5
3398
echo "$ac_t""no" 1>&6
3403
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3404
echo "configure:3405: checking for pid_t" >&5
3405
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3406
echo $ac_n "(cached) $ac_c" 1>&6
3408
cat > conftest.$ac_ext <<EOF
3409
#line 3410 "configure"
3410
#include "confdefs.h"
3411
#include <sys/types.h>
3417
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418
egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3420
ac_cv_type_pid_t=yes
3428
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3429
if test $ac_cv_type_pid_t = no; then
3430
cat >> confdefs.h <<\EOF
3436
echo $ac_n "checking for off_t""... $ac_c" 1>&6
3437
echo "configure:3438: checking for off_t" >&5
3438
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3439
echo $ac_n "(cached) $ac_c" 1>&6
3441
cat > conftest.$ac_ext <<EOF
3442
#line 3443 "configure"
3443
#include "confdefs.h"
3444
#include <sys/types.h>
3450
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451
egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3453
ac_cv_type_off_t=yes
3461
echo "$ac_t""$ac_cv_type_off_t" 1>&6
3462
if test $ac_cv_type_off_t = no; then
3463
cat >> confdefs.h <<\EOF
3469
echo $ac_n "checking for size_t""... $ac_c" 1>&6
3470
echo "configure:3471: checking for size_t" >&5
3471
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3472
echo $ac_n "(cached) $ac_c" 1>&6
3474
cat > conftest.$ac_ext <<EOF
3475
#line 3476 "configure"
3476
#include "confdefs.h"
3477
#include <sys/types.h>
3483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484
egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3486
ac_cv_type_size_t=yes
3489
ac_cv_type_size_t=no
3494
echo "$ac_t""$ac_cv_type_size_t" 1>&6
3495
if test $ac_cv_type_size_t = no; then
3496
cat >> confdefs.h <<\EOF
3497
#define size_t unsigned
3502
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3503
echo "configure:3504: checking for ssize_t" >&5
3504
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3505
echo $ac_n "(cached) $ac_c" 1>&6
3507
cat > conftest.$ac_ext <<EOF
3508
#line 3509 "configure"
3509
#include "confdefs.h"
3510
#include <sys/types.h>
3516
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3517
egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3519
ac_cv_type_ssize_t=yes
3522
ac_cv_type_ssize_t=no
3527
echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3528
if test $ac_cv_type_ssize_t = no; then
3529
cat >> confdefs.h <<\EOF
3530
#define ssize_t long int
3535
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3536
echo "configure:3537: checking return type of signal handlers" >&5
3537
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3538
echo $ac_n "(cached) $ac_c" 1>&6
3540
cat > conftest.$ac_ext <<EOF
3541
#line 3542 "configure"
3542
#include "confdefs.h"
3543
#include <sys/types.h>
3549
extern "C" void (*signal (int, void (*)(int)))(int);
3551
void (*signal ()) ();
3558
if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3560
ac_cv_type_signal=void
3562
echo "configure: failed program was:" >&5
3563
cat conftest.$ac_ext >&5
3565
ac_cv_type_signal=int
3570
echo "$ac_t""$ac_cv_type_signal" 1>&6
3571
cat >> confdefs.h <<EOF
3572
#define RETSIGTYPE $ac_cv_type_signal
3576
echo $ac_n "checking for working const""... $ac_c" 1>&6
3577
echo "configure:3578: checking for working const" >&5
3578
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3579
echo $ac_n "(cached) $ac_c" 1>&6
3581
cat > conftest.$ac_ext <<EOF
3582
#line 3583 "configure"
3583
#include "confdefs.h"
3587
/* Ultrix mips cc rejects this. */
3588
typedef int charset[2]; const charset x;
3589
/* SunOS 4.1.1 cc rejects this. */
3590
char const *const *ccp;
3592
/* NEC SVR4.0.2 mips cc rejects this. */
3593
struct point {int x, y;};
3594
static struct point const zero = {0,0};
3595
/* AIX XL C 1.02.0.0 rejects this.
3596
It does not let you subtract one const X* pointer from another in an arm
3597
of an if-expression whose if-part is not a constant expression */
3598
const char *g = "string";
3599
ccp = &g + (g ? g-g : 0);
3600
/* HPUX 7.0 cc rejects these. */
3603
ccp = (char const *const *) p;
3604
{ /* SCO 3.2v4 cc rejects this. */
3606
char const *s = 0 ? (char *) 0 : (char const *) 0;
3610
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3612
const int *foo = &x[0];
3615
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3616
typedef const int *iptr;
3620
{ /* AIX XL C 1.02.0.0 rejects this saying
3621
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3622
struct s { int j; const int *ap[3]; };
3623
struct s *b; b->j = 5;
3625
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3631
if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635
echo "configure: failed program was:" >&5
3636
cat conftest.$ac_ext >&5
3643
echo "$ac_t""$ac_cv_c_const" 1>&6
3644
if test $ac_cv_c_const = no; then
3645
cat >> confdefs.h <<\EOF
3651
echo $ac_n "checking for inline""... $ac_c" 1>&6
3652
echo "configure:3653: checking for inline" >&5
3653
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3654
echo $ac_n "(cached) $ac_c" 1>&6
3657
for ac_kw in inline __inline__ __inline; do
3658
cat > conftest.$ac_ext <<EOF
3659
#line 3660 "configure"
3660
#include "confdefs.h"
3666
if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668
ac_cv_c_inline=$ac_kw; break
3670
echo "configure: failed program was:" >&5
3671
cat conftest.$ac_ext >&5
3678
echo "$ac_t""$ac_cv_c_inline" 1>&6
3679
case "$ac_cv_c_inline" in
3681
no) cat >> confdefs.h <<\EOF
3685
*) cat >> confdefs.h <<EOF
3686
#define inline $ac_cv_c_inline
3692
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3693
# for constant arguments. Useless!
3694
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3695
echo "configure:3696: checking for working alloca.h" >&5
3696
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3697
echo $ac_n "(cached) $ac_c" 1>&6
3699
cat > conftest.$ac_ext <<EOF
3700
#line 3701 "configure"
3701
#include "confdefs.h"
3704
char *p = alloca(2 * sizeof(int));
3707
if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3709
ac_cv_header_alloca_h=yes
3711
echo "configure: failed program was:" >&5
3712
cat conftest.$ac_ext >&5
3714
ac_cv_header_alloca_h=no
3719
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3720
if test $ac_cv_header_alloca_h = yes; then
3721
cat >> confdefs.h <<\EOF
3722
#define HAVE_ALLOCA_H 1
3727
echo $ac_n "checking for alloca""... $ac_c" 1>&6
3728
echo "configure:3729: checking for alloca" >&5
3729
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3730
echo $ac_n "(cached) $ac_c" 1>&6
3732
cat > conftest.$ac_ext <<EOF
3733
#line 3734 "configure"
3734
#include "confdefs.h"
3737
# define alloca __builtin_alloca
3740
# include <alloca.h>
3745
# ifndef alloca /* predefined by HP cc +Olibcalls */
3753
char *p = (char *) alloca(1);
3756
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3758
ac_cv_func_alloca_works=yes
3760
echo "configure: failed program was:" >&5
3761
cat conftest.$ac_ext >&5
3763
ac_cv_func_alloca_works=no
3768
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3769
if test $ac_cv_func_alloca_works = yes; then
3770
cat >> confdefs.h <<\EOF
3771
#define HAVE_ALLOCA 1
3776
if test $ac_cv_func_alloca_works = no; then
3777
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3778
# that cause trouble. Some versions do not even contain alloca or
3779
# contain a buggy version. If you still want to use their alloca,
3780
# use ar to extract alloca.o from them instead of compiling alloca.c.
3782
cat >> confdefs.h <<\EOF
3787
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3788
echo "configure:3789: checking whether alloca needs Cray hooks" >&5
3789
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3790
echo $ac_n "(cached) $ac_c" 1>&6
3792
cat > conftest.$ac_ext <<EOF
3793
#line 3794 "configure"
3794
#include "confdefs.h"
3795
#if defined(CRAY) && ! defined(CRAY2)
3802
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803
egrep "webecray" >/dev/null 2>&1; then
3814
echo "$ac_t""$ac_cv_os_cray" 1>&6
3815
if test $ac_cv_os_cray = yes; then
3816
for ac_func in _getb67 GETB67 getb67; do
3817
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3818
echo "configure:3819: checking for $ac_func" >&5
3819
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3820
echo $ac_n "(cached) $ac_c" 1>&6
3822
cat > conftest.$ac_ext <<EOF
3823
#line 3824 "configure"
3824
#include "confdefs.h"
3825
/* System header to define __stub macros and hopefully few prototypes,
3826
which can conflict with char $ac_func(); below. */
3828
/* Override any gcc2 internal prototype to avoid an error. */
3829
/* We use char because int might match the return type of a gcc2
3830
builtin and then its argument prototype would still apply. */
3835
/* The GNU C library defines this for functions which it implements
3836
to always fail with ENOSYS. Some functions are actually named
3837
something starting with __ and the normal name is an alias. */
3838
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3846
if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3848
eval "ac_cv_func_$ac_func=yes"
3850
echo "configure: failed program was:" >&5
3851
cat conftest.$ac_ext >&5
3853
eval "ac_cv_func_$ac_func=no"
3858
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3859
echo "$ac_t""yes" 1>&6
3860
cat >> confdefs.h <<EOF
3861
#define CRAY_STACKSEG_END $ac_func
3866
echo "$ac_t""no" 1>&6
3872
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3873
echo "configure:3874: checking stack direction for C alloca" >&5
3874
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3875
echo $ac_n "(cached) $ac_c" 1>&6
3877
if test "$cross_compiling" = yes; then
3878
ac_cv_c_stack_direction=0
3880
cat > conftest.$ac_ext <<EOF
3881
#line 3882 "configure"
3882
#include "confdefs.h"
3883
find_stack_direction ()
3885
static char *addr = 0;
3890
return find_stack_direction ();
3893
return (&dummy > addr) ? 1 : -1;
3897
exit (find_stack_direction() < 0);
3900
if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3902
ac_cv_c_stack_direction=1
3904
echo "configure: failed program was:" >&5
3905
cat conftest.$ac_ext >&5
3907
ac_cv_c_stack_direction=-1
3914
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3915
cat >> confdefs.h <<EOF
3916
#define STACK_DIRECTION $ac_cv_c_stack_direction
3921
for ac_func in strerror seteuid setreuid vprintf setresuid strdup strstr
3923
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924
echo "configure:3925: checking for $ac_func" >&5
3925
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926
echo $ac_n "(cached) $ac_c" 1>&6
3928
cat > conftest.$ac_ext <<EOF
3929
#line 3930 "configure"
3930
#include "confdefs.h"
3931
/* System header to define __stub macros and hopefully few prototypes,
3932
which can conflict with char $ac_func(); below. */
3934
/* Override any gcc2 internal prototype to avoid an error. */
3935
/* We use char because int might match the return type of a gcc2
3936
builtin and then its argument prototype would still apply. */
3941
/* The GNU C library defines this for functions which it implements
3942
to always fail with ENOSYS. Some functions are actually named
3943
something starting with __ and the normal name is an alias. */
3944
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952
if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3954
eval "ac_cv_func_$ac_func=yes"
3956
echo "configure: failed program was:" >&5
3957
cat conftest.$ac_ext >&5
3959
eval "ac_cv_func_$ac_func=no"
3964
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965
echo "$ac_t""yes" 1>&6
3966
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967
cat >> confdefs.h <<EOF
3968
#define $ac_tr_func 1
3972
echo "$ac_t""no" 1>&6
3976
for ac_func in strchr getopt_long strcasecmp
3978
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3979
echo "configure:3980: checking for $ac_func" >&5
3980
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3981
echo $ac_n "(cached) $ac_c" 1>&6
3983
cat > conftest.$ac_ext <<EOF
3984
#line 3985 "configure"
3985
#include "confdefs.h"
3986
/* System header to define __stub macros and hopefully few prototypes,
3987
which can conflict with char $ac_func(); below. */
3989
/* Override any gcc2 internal prototype to avoid an error. */
3990
/* We use char because int might match the return type of a gcc2
3991
builtin and then its argument prototype would still apply. */
3996
/* The GNU C library defines this for functions which it implements
3997
to always fail with ENOSYS. Some functions are actually named
3998
something starting with __ and the normal name is an alias. */
3999
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4007
if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4009
eval "ac_cv_func_$ac_func=yes"
4011
echo "configure: failed program was:" >&5
4012
cat conftest.$ac_ext >&5
4014
eval "ac_cv_func_$ac_func=no"
4019
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4020
echo "$ac_t""yes" 1>&6
4021
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4022
cat >> confdefs.h <<EOF
4023
#define $ac_tr_func 1
4027
echo "$ac_t""no" 1>&6
4032
for ac_func in strdup strstr strcasecmp
4034
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4035
echo "configure:4036: checking for $ac_func" >&5
4036
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4037
echo $ac_n "(cached) $ac_c" 1>&6
4039
cat > conftest.$ac_ext <<EOF
4040
#line 4041 "configure"
4041
#include "confdefs.h"
4042
/* System header to define __stub macros and hopefully few prototypes,
4043
which can conflict with char $ac_func(); below. */
4045
/* Override any gcc2 internal prototype to avoid an error. */
4046
/* We use char because int might match the return type of a gcc2
4047
builtin and then its argument prototype would still apply. */
4052
/* The GNU C library defines this for functions which it implements
4053
to always fail with ENOSYS. Some functions are actually named
4054
something starting with __ and the normal name is an alias. */
4055
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4063
if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4065
eval "ac_cv_func_$ac_func=yes"
4067
echo "configure: failed program was:" >&5
4068
cat conftest.$ac_ext >&5
4070
eval "ac_cv_func_$ac_func=no"
4075
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4076
echo "$ac_t""yes" 1>&6
4077
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4078
cat >> confdefs.h <<EOF
4079
#define $ac_tr_func 1
4083
echo "$ac_t""no" 1>&6
4084
LIBOBJS="$LIBOBJS ${ac_func}.o"
4089
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4090
echo "configure:4091: checking for getopt_long" >&5
4091
if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4092
echo $ac_n "(cached) $ac_c" 1>&6
4094
cat > conftest.$ac_ext <<EOF
4095
#line 4096 "configure"
4096
#include "confdefs.h"
4097
/* System header to define __stub macros and hopefully few prototypes,
4098
which can conflict with char getopt_long(); below. */
4100
/* Override any gcc2 internal prototype to avoid an error. */
4101
/* We use char because int might match the return type of a gcc2
4102
builtin and then its argument prototype would still apply. */
4107
/* The GNU C library defines this for functions which it implements
4108
to always fail with ENOSYS. Some functions are actually named
4109
something starting with __ and the normal name is an alias. */
4110
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4118
if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4120
eval "ac_cv_func_getopt_long=yes"
4122
echo "configure: failed program was:" >&5
4123
cat conftest.$ac_ext >&5
4125
eval "ac_cv_func_getopt_long=no"
4130
if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4131
echo "$ac_t""yes" 1>&6
4134
echo "$ac_t""no" 1>&6
4135
LIBOBJS="$LIBOBJS getopt1.o getopt.o"
4140
cat > confcache <<\EOF
4141
# This file is a shell script that caches the results of configure
4142
# tests run on this system so they can be shared between configure
4143
# scripts and configure runs. It is not useful on other systems.
4144
# If it contains results you don't want to keep, you may remove or edit it.
4146
# By default, configure uses ./config.cache as the cache file,
4147
# creating it if it does not exist already. You can give configure
4148
# the --cache-file=FILE option to use a different cache file; that is
4149
# what configure does when it calls configure scripts in
4150
# subdirectories, so they share the cache.
4151
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4152
# config.status only pays attention to the cache file if you give it the
4153
# --recheck option to rerun configure.
4156
# The following way of writing the cache mishandles newlines in values,
4157
# but we know of no workaround that is simple, portable, and efficient.
4158
# So, don't put newlines in cache variables' values.
4159
# Ultrix sh set writes to stderr and can't be redirected directly,
4160
# and sets the high bit in the cache file unless we assign to the vars.
4162
case `(ac_space=' '; set) 2>&1` in
4164
# `set' does not quote correctly, so add quotes (double-quote substitution
4165
# turns \\\\ into \\, and sed turns \\ into \).
4167
-e "s/'/'\\\\''/g" \
4168
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4171
# `set' quotes correctly as required by POSIX, so do not add quotes.
4172
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4175
if cmp -s $cache_file confcache; then
4178
if test -w $cache_file; then
4179
echo "updating cache $cache_file"
4180
cat confcache > $cache_file
4182
echo "not updating unwritable cache $cache_file"
4187
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4189
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4190
# Let make expand exec_prefix.
4191
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4193
# Any assignment to VPATH causes Sun make to only execute
4194
# the first set of double-colon rules, so remove it if not needed.
4195
# If there is a colon in the path, we need to keep it.
4196
if test "x$srcdir" = x.; then
4197
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4200
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4202
DEFS=-DHAVE_CONFIG_H
4204
# Without the "./", some shells look in PATH for config.status.
4205
: ${CONFIG_STATUS=./config.status}
4207
echo creating $CONFIG_STATUS
4208
rm -f $CONFIG_STATUS
4209
cat > $CONFIG_STATUS <<EOF
4211
# Generated automatically by configure.
4212
# Run this file to recreate the current configuration.
4213
# This directory was configured as follows,
4214
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4216
# $0 $ac_configure_args
4218
# Compiler output produced by configure, useful for debugging
4219
# configure, is in ./config.log if it exists.
4221
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4224
case "\$ac_option" in
4225
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4226
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4227
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4228
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4229
echo "$CONFIG_STATUS generated by autoconf version 2.12"
4231
-help | --help | --hel | --he | --h)
4232
echo "\$ac_cs_usage"; exit 0 ;;
4233
*) echo "\$ac_cs_usage"; exit 1 ;;
4237
ac_given_srcdir=$srcdir
4238
ac_given_INSTALL="$INSTALL"
4240
trap 'rm -fr `echo "Makefile lib/Makefile src/Makefile intl/Makefile man/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4242
cat >> $CONFIG_STATUS <<EOF
4244
# Protect against being on the right side of a sed subst in config.status.
4245
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4246
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4249
s%@CFLAGS@%$CFLAGS%g
4250
s%@CPPFLAGS@%$CPPFLAGS%g
4251
s%@CXXFLAGS@%$CXXFLAGS%g
4253
s%@LDFLAGS@%$LDFLAGS%g
4255
s%@exec_prefix@%$exec_prefix%g
4256
s%@prefix@%$prefix%g
4257
s%@program_transform_name@%$program_transform_name%g
4258
s%@bindir@%$bindir%g
4259
s%@sbindir@%$sbindir%g
4260
s%@libexecdir@%$libexecdir%g
4261
s%@datadir@%$datadir%g
4262
s%@sysconfdir@%$sysconfdir%g
4263
s%@sharedstatedir@%$sharedstatedir%g
4264
s%@localstatedir@%$localstatedir%g
4265
s%@libdir@%$libdir%g
4266
s%@includedir@%$includedir%g
4267
s%@oldincludedir@%$oldincludedir%g
4268
s%@infodir@%$infodir%g
4269
s%@mandir@%$mandir%g
4270
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4271
s%@INSTALL_DATA@%$INSTALL_DATA%g
4272
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4273
s%@PACKAGE@%$PACKAGE%g
4274
s%@VERSION@%$VERSION%g
4275
s%@ACLOCAL@%$ACLOCAL%g
4276
s%@AUTOCONF@%$AUTOCONF%g
4277
s%@AUTOMAKE@%$AUTOMAKE%g
4278
s%@AUTOHEADER@%$AUTOHEADER%g
4279
s%@MAKEINFO@%$MAKEINFO%g
4280
s%@SET_MAKE@%$SET_MAKE%g
4282
s%@LIBOBJS@%$LIBOBJS%g
4286
s%@RANLIB@%$RANLIB%g
4287
s%@ALLOCA@%$ALLOCA%g
4288
s%@USE_NLS@%$USE_NLS%g
4289
s%@MSGFMT@%$MSGFMT%g
4290
s%@GMSGFMT@%$GMSGFMT%g
4291
s%@XGETTEXT@%$XGETTEXT%g
4292
s%@GENCAT@%$GENCAT%g
4293
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4294
s%@CATALOGS@%$CATALOGS%g
4295
s%@CATOBJEXT@%$CATOBJEXT%g
4296
s%@DATADIRNAME@%$DATADIRNAME%g
4297
s%@GMOFILES@%$GMOFILES%g
4298
s%@INSTOBJEXT@%$INSTOBJEXT%g
4299
s%@INTLDEPS@%$INTLDEPS%g
4300
s%@INTLLIBS@%$INTLLIBS%g
4301
s%@INTLOBJS@%$INTLOBJS%g
4302
s%@POFILES@%$POFILES%g
4304
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4306
s%@GT_YES@%$GT_YES%g
4307
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4313
cat >> $CONFIG_STATUS <<\EOF
4315
# Split the substitutions into bite-sized pieces for seds with
4316
# small command number limits, like on Digital OSF/1 and HP-UX.
4317
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4318
ac_file=1 # Number of current file.
4319
ac_beg=1 # First line for current file.
4320
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4323
while $ac_more_lines; do
4324
if test $ac_beg -gt 1; then
4325
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4327
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4329
if test ! -s conftest.s$ac_file; then
4331
rm -f conftest.s$ac_file
4333
if test -z "$ac_sed_cmds"; then
4334
ac_sed_cmds="sed -f conftest.s$ac_file"
4336
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4338
ac_file=`expr $ac_file + 1`
4340
ac_end=`expr $ac_end + $ac_max_sed_cmds`
4343
if test -z "$ac_sed_cmds"; then
4348
cat >> $CONFIG_STATUS <<EOF
4350
CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile intl/Makefile man/Makefile po/Makefile.in"}
4352
cat >> $CONFIG_STATUS <<\EOF
4353
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4354
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4356
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4357
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4358
*) ac_file_in="${ac_file}.in" ;;
4361
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4363
# Remove last slash and all that follows it. Not all systems have dirname.
4364
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4365
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4366
# The file is in a subdirectory.
4367
test ! -d "$ac_dir" && mkdir "$ac_dir"
4368
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4369
# A "../" for each directory in $ac_dir_suffix.
4370
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4372
ac_dir_suffix= ac_dots=
4375
case "$ac_given_srcdir" in
4377
if test -z "$ac_dots"; then top_srcdir=.
4378
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4379
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4381
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4382
top_srcdir="$ac_dots$ac_given_srcdir" ;;
4385
case "$ac_given_INSTALL" in
4386
[/$]*) INSTALL="$ac_given_INSTALL" ;;
4387
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4390
echo creating "$ac_file"
4392
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4394
*Makefile*) ac_comsub="1i\\
4395
# $configure_input" ;;
4399
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4401
s%@configure_input@%$configure_input%g
4402
s%@srcdir@%$srcdir%g
4403
s%@top_srcdir@%$top_srcdir%g
4404
s%@INSTALL@%$INSTALL%g
4405
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4409
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4410
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4412
# ac_d sets the value in "#define NAME VALUE" lines.
4413
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4414
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4417
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4418
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4419
ac_uB='\([ ]\)%\1#\2define\3'
4422
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4423
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4424
ac_eB='$%\1#\2define\3'
4428
if test "${CONFIG_HEADERS+set}" != set; then
4430
cat >> $CONFIG_STATUS <<EOF
4431
CONFIG_HEADERS="config.h"
4433
cat >> $CONFIG_STATUS <<\EOF
4435
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4436
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4438
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4439
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4440
*) ac_file_in="${ac_file}.in" ;;
4443
echo creating $ac_file
4445
rm -f conftest.frag conftest.in conftest.out
4446
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4447
cat $ac_file_inputs > conftest.in
4451
# Transform confdefs.h into a sed script conftest.vals that substitutes
4452
# the proper values into config.h.in to produce config.h. And first:
4453
# Protect against being on the right side of a sed subst in config.status.
4454
# Protect against being in an unquoted here document in config.status.
4456
cat > conftest.hdr <<\EOF
4459
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4463
sed -n -f conftest.hdr confdefs.h > conftest.vals
4466
# This sed command replaces #undef with comments. This is necessary, for
4467
# example, in the case of _POSIX_SOURCE, which is predefined and required
4468
# on some systems where configure will not decide to define it.
4469
cat >> conftest.vals <<\EOF
4470
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4473
# Break up conftest.vals because some shells have a limit on
4474
# the size of here documents, and old seds have small limits too.
4479
ac_lines=`grep -c . conftest.vals`
4480
# grep -c gives empty output for an empty file on some AIX systems.
4481
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4482
# Write a limited-size here document to conftest.frag.
4483
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4484
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4486
sed -f conftest.frag conftest.in > conftest.out
4488
mv conftest.out conftest.in
4490
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4492
mv conftest.tail conftest.vals
4496
cat >> $CONFIG_STATUS <<\EOF
4497
rm -f conftest.frag conftest.h
4498
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4499
cat conftest.in >> conftest.h
4501
if cmp -s $ac_file conftest.h 2>/dev/null; then
4502
echo "$ac_file is unchanged"
4505
# Remove last slash and all that follows it. Not all systems have dirname.
4506
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4507
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4508
# The file is in a subdirectory.
4509
test ! -d "$ac_dir" && mkdir "$ac_dir"
4512
mv conftest.h $ac_file
4518
cat >> $CONFIG_STATUS <<EOF
4519
ac_sources="$nls_cv_header_libgt"
4520
ac_dests="$nls_cv_header_intl"
4523
cat >> $CONFIG_STATUS <<\EOF
4524
srcdir=$ac_given_srcdir
4525
while test -n "$ac_sources"; do
4526
set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4527
set $ac_sources; ac_source=$1; shift; ac_sources=$*
4529
echo "linking $srcdir/$ac_source to $ac_dest"
4531
if test ! -r $srcdir/$ac_source; then
4532
{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4536
# Make relative symlinks.
4537
# Remove last slash and all that follows it. Not all systems have dirname.
4538
ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4539
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4540
# The dest file is in a subdirectory.
4541
test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4542
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4543
# A "../" for each directory in $ac_dest_dir_suffix.
4544
ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4546
ac_dest_dir_suffix= ac_dots=
4550
[/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4551
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4554
# Make a symlink if possible; otherwise try a hard link.
4555
if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4556
ln $srcdir/$ac_source $ac_dest; then :
4558
{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4562
cat >> $CONFIG_STATUS <<EOF
4566
cat >> $CONFIG_STATUS <<\EOF
4567
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4568
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4571
chmod +x $CONFIG_STATUS
4572
rm -fr confdefs* $ac_clean_files
4573
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1