3
# From configure.in Revision: 1.7.2.1
4
# Guess values for system-dependent variables and create Makefiles.
5
# Generated automatically using autoconf version 2.13
6
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
13
ac_default_prefix=/usr/local
14
# Any additions from configure.in:
16
--with-terminfo Build with terminfo library."
18
--with-termcap Build with termcap library. (default)"
20
--enable-canna[=DIR] Build a canna version."
22
# Initialize some variables set by options.
23
# The variables have the same names as the options, with
24
# dashes changed to underlines.
26
cache_file=./config.cache
35
program_transform_name=s,x,x,
43
bindir='${exec_prefix}/bin'
44
sbindir='${exec_prefix}/sbin'
45
libexecdir='${exec_prefix}/libexec'
46
datadir='${prefix}/share'
47
sysconfdir='${prefix}/etc'
48
sharedstatedir='${prefix}/com'
49
localstatedir='${prefix}/var'
50
libdir='${exec_prefix}/lib'
51
includedir='${prefix}/include'
52
oldincludedir='/usr/include'
53
infodir='${prefix}/info'
54
mandir='${prefix}/man'
56
# Initialize some other variables.
59
SHELL=${CONFIG_SHELL-/bin/sh}
60
# Maximum number of lines to put in a shell here document.
67
# If the previous option needs an argument, assign it.
68
if test -n "$ac_prev"; then
69
eval "$ac_prev=\$ac_option"
75
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79
# Accept the important Cygnus configure options, so we can diagnose typos.
83
-bindir | --bindir | --bindi | --bind | --bin | --bi)
85
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86
bindir="$ac_optarg" ;;
88
-build | --build | --buil | --bui | --bu)
90
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
93
-cache-file | --cache-file | --cache-fil | --cache-fi \
94
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98
cache_file="$ac_optarg" ;;
100
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104
datadir="$ac_optarg" ;;
106
-disable-* | --disable-*)
107
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108
# Reject names that are not valid shell variable names.
109
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113
eval "enable_${ac_feature}=no" ;;
115
-enable-* | --enable-*)
116
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117
# Reject names that are not valid shell variable names.
118
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126
eval "enable_${ac_feature}='$ac_optarg'" ;;
128
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130
| --exec | --exe | --ex)
131
ac_prev=exec_prefix ;;
132
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134
| --exec=* | --exe=* | --ex=*)
135
exec_prefix="$ac_optarg" ;;
137
-gas | --gas | --ga | --g)
138
# Obsolete; use --with-gas.
141
-help | --help | --hel | --he)
142
# Omit some internal or obsolete options to make the list less imposing.
143
# This message is too long to be a string in the A/UX 3.1 sh.
145
Usage: configure [options] [host]
146
Options: [defaults in brackets after descriptions]
148
--cache-file=FILE cache test results in FILE
149
--help print this message
150
--no-create do not create output files
151
--quiet, --silent do not print \`checking...' messages
152
--version print the version of autoconf that created configure
153
Directory and file names:
154
--prefix=PREFIX install architecture-independent files in PREFIX
156
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158
--bindir=DIR user executables in DIR [EPREFIX/bin]
159
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161
--datadir=DIR read-only architecture-independent data in DIR
163
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164
--sharedstatedir=DIR modifiable architecture-independent data in DIR
166
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
168
--includedir=DIR C header files in DIR [PREFIX/include]
169
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170
--infodir=DIR info documentation in DIR [PREFIX/info]
171
--mandir=DIR man documentation in DIR [PREFIX/man]
172
--srcdir=DIR find the sources in DIR [configure dir or ..]
173
--program-prefix=PREFIX prepend PREFIX to installed program names
174
--program-suffix=SUFFIX append SUFFIX to installed program names
175
--program-transform-name=PROGRAM
176
run sed PROGRAM on installed program names
180
--build=BUILD configure for building on BUILD [BUILD=HOST]
181
--host=HOST configure for HOST [guessed]
182
--target=TARGET configure for TARGET [TARGET=HOST]
183
Features and packages:
184
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188
--x-includes=DIR X include files are in DIR
189
--x-libraries=DIR X library files are in DIR
191
if test -n "$ac_help"; then
192
echo "--enable and --with options recognized:$ac_help"
196
-host | --host | --hos | --ho)
198
-host=* | --host=* | --hos=* | --ho=*)
201
-includedir | --includedir | --includedi | --included | --include \
202
| --includ | --inclu | --incl | --inc)
203
ac_prev=includedir ;;
204
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205
| --includ=* | --inclu=* | --incl=* | --inc=*)
206
includedir="$ac_optarg" ;;
208
-infodir | --infodir | --infodi | --infod | --info | --inf)
210
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211
infodir="$ac_optarg" ;;
213
-libdir | --libdir | --libdi | --libd)
215
-libdir=* | --libdir=* | --libdi=* | --libd=*)
216
libdir="$ac_optarg" ;;
218
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219
| --libexe | --libex | --libe)
220
ac_prev=libexecdir ;;
221
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222
| --libexe=* | --libex=* | --libe=*)
223
libexecdir="$ac_optarg" ;;
225
-localstatedir | --localstatedir | --localstatedi | --localstated \
226
| --localstate | --localstat | --localsta | --localst \
227
| --locals | --local | --loca | --loc | --lo)
228
ac_prev=localstatedir ;;
229
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
231
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232
localstatedir="$ac_optarg" ;;
234
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237
mandir="$ac_optarg" ;;
240
# Obsolete; use --without-fp.
243
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
247
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
248
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253
| --oldin | --oldi | --old | --ol | --o)
254
ac_prev=oldincludedir ;;
255
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258
oldincludedir="$ac_optarg" ;;
260
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263
prefix="$ac_optarg" ;;
265
-program-prefix | --program-prefix | --program-prefi | --program-pref \
266
| --program-pre | --program-pr | --program-p)
267
ac_prev=program_prefix ;;
268
-program-prefix=* | --program-prefix=* | --program-prefi=* \
269
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270
program_prefix="$ac_optarg" ;;
272
-program-suffix | --program-suffix | --program-suffi | --program-suff \
273
| --program-suf | --program-su | --program-s)
274
ac_prev=program_suffix ;;
275
-program-suffix=* | --program-suffix=* | --program-suffi=* \
276
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277
program_suffix="$ac_optarg" ;;
279
-program-transform-name | --program-transform-name \
280
| --program-transform-nam | --program-transform-na \
281
| --program-transform-n | --program-transform- \
282
| --program-transform | --program-transfor \
283
| --program-transfo | --program-transf \
284
| --program-trans | --program-tran \
285
| --progr-tra | --program-tr | --program-t)
286
ac_prev=program_transform_name ;;
287
-program-transform-name=* | --program-transform-name=* \
288
| --program-transform-nam=* | --program-transform-na=* \
289
| --program-transform-n=* | --program-transform-=* \
290
| --program-transform=* | --program-transfor=* \
291
| --program-transfo=* | --program-transf=* \
292
| --program-trans=* | --program-tran=* \
293
| --progr-tra=* | --program-tr=* | --program-t=*)
294
program_transform_name="$ac_optarg" ;;
296
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
297
| -silent | --silent | --silen | --sile | --sil)
300
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304
sbindir="$ac_optarg" ;;
306
-sharedstatedir | --sharedstatedir | --sharedstatedi \
307
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308
| --sharedst | --shareds | --shared | --share | --shar \
310
ac_prev=sharedstatedir ;;
311
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315
sharedstatedir="$ac_optarg" ;;
317
-site | --site | --sit)
319
-site=* | --site=* | --sit=*)
322
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325
srcdir="$ac_optarg" ;;
327
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328
| --syscon | --sysco | --sysc | --sys | --sy)
329
ac_prev=sysconfdir ;;
330
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332
sysconfdir="$ac_optarg" ;;
334
-target | --target | --targe | --targ | --tar | --ta | --t)
336
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337
target="$ac_optarg" ;;
339
-v | -verbose | --verbose | --verbos | --verbo | --verb)
342
-version | --version | --versio | --versi | --vers)
343
echo "configure generated by autoconf version 2.13"
347
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348
# Reject names that are not valid shell variable names.
349
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352
ac_package=`echo $ac_package| sed 's/-/_/g'`
357
eval "with_${ac_package}='$ac_optarg'" ;;
359
-without-* | --without-*)
360
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361
# Reject names that are not valid shell variable names.
362
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365
ac_package=`echo $ac_package| sed 's/-/_/g'`
366
eval "with_${ac_package}=no" ;;
369
# Obsolete; use --with-x.
372
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373
| --x-incl | --x-inc | --x-in | --x-i)
374
ac_prev=x_includes ;;
375
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377
x_includes="$ac_optarg" ;;
379
-x-libraries | --x-libraries | --x-librarie | --x-librari \
380
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381
ac_prev=x_libraries ;;
382
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384
x_libraries="$ac_optarg" ;;
386
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391
echo "configure: warning: $ac_option: invalid host type" 1>&2
393
if test "x$nonopt" != xNONE; then
394
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402
if test -n "$ac_prev"; then
403
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
# File descriptor usage:
411
# 2 errors and warnings
412
# 3 some systems may open it to /dev/tty
413
# 4 used on the Kubota Titan
414
# 6 checking for... messages and results
415
# 5 compiler messages saved in config.log
416
if test "$silent" = yes; then
424
This file contains any messages produced by compilers while
425
running configure, to aid debugging if configure makes a mistake.
428
# Strip out --no-create and --no-recursion so they do not pile up.
429
# Also quote any args containing shell metacharacters.
434
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
435
| --no-cr | --no-c) ;;
436
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
437
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
445
# Only set these to C if already set. These must not be set unconditionally
446
# because not all systems understand e.g. LANG=C (notably SCO).
447
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448
# Non-C LC_CTYPE values break the ctype check.
449
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454
# confdefs.h avoids OS command line length limits that DEFS can exceed.
455
rm -rf conftest* confdefs.h
456
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
459
# A filename unique to this package, relative to the directory that
460
# configure is in, which we can look for to find out if srcdir is correct.
461
ac_unique_file=basic.c
463
# Find the source files, if location was not specified.
464
if test -z "$srcdir"; then
465
ac_srcdir_defaulted=yes
466
# Try the directory containing this script, then its parent.
468
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471
if test ! -r $srcdir/$ac_unique_file; then
475
ac_srcdir_defaulted=no
477
if test ! -r $srcdir/$ac_unique_file; then
478
if test "$ac_srcdir_defaulted" = yes; then
479
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
# Prefer explicitly selected file to automatically selected ones.
487
if test -z "$CONFIG_SITE"; then
488
if test "x$prefix" != xNONE; then
489
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494
for ac_site_file in $CONFIG_SITE; do
495
if test -r "$ac_site_file"; then
496
echo "loading site script $ac_site_file"
501
if test -r "$cache_file"; then
502
echo "loading cache $cache_file"
505
echo "creating cache $cache_file"
510
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511
ac_cpp='$CPP $CPPFLAGS'
512
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514
cross_compiling=$ac_cv_prog_cc_cross
518
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527
ac_n= ac_c='\c' ac_t=
533
for ac_dir in sys/unix $srcdir/sys/unix; do
534
if test -f $ac_dir/install-sh; then
536
ac_install_sh="$ac_aux_dir/install-sh -c"
538
elif test -f $ac_dir/install.sh; then
540
ac_install_sh="$ac_aux_dir/install.sh -c"
544
if test -z "$ac_aux_dir"; then
545
{ echo "configure: error: can not find install-sh or install.sh in sys/unix $srcdir/sys/unix" 1>&2; exit 1; }
547
ac_config_guess=$ac_aux_dir/config.guess
548
ac_config_sub=$ac_aux_dir/config.sub
549
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
# Make sure we can run config.sub.
554
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
555
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
558
echo $ac_n "checking host system type""... $ac_c" 1>&6
559
echo "configure:560: checking host system type" >&5
562
case "$host_alias" in
566
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
567
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
569
*) host_alias=$nonopt ;;
573
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
574
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
575
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
576
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
577
echo "$ac_t""$host" 1>&6
580
# Extract the first word of "gcc", so it can be a program name with args.
581
set dummy gcc; ac_word=$2
582
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
583
echo "configure:584: checking for $ac_word" >&5
584
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
585
echo $ac_n "(cached) $ac_c" 1>&6
587
if test -n "$CC"; then
588
ac_cv_prog_CC="$CC" # Let the user override the test.
590
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
592
for ac_dir in $ac_dummy; do
593
test -z "$ac_dir" && ac_dir=.
594
if test -f $ac_dir/$ac_word; then
603
if test -n "$CC"; then
604
echo "$ac_t""$CC" 1>&6
606
echo "$ac_t""no" 1>&6
609
if test -z "$CC"; then
610
# Extract the first word of "cc", so it can be a program name with args.
611
set dummy cc; ac_word=$2
612
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613
echo "configure:614: checking for $ac_word" >&5
614
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615
echo $ac_n "(cached) $ac_c" 1>&6
617
if test -n "$CC"; then
618
ac_cv_prog_CC="$CC" # Let the user override the test.
620
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623
for ac_dir in $ac_dummy; do
624
test -z "$ac_dir" && ac_dir=.
625
if test -f $ac_dir/$ac_word; then
626
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
635
if test $ac_prog_rejected = yes; then
636
# We found a bogon in the path, so make sure we never use it.
637
set dummy $ac_cv_prog_CC
639
if test $# -gt 0; then
640
# We chose a different compiler from the bogus one.
641
# However, it has the same basename, so the bogon will be chosen
642
# first if we set CC to just the basename; use the full file name.
644
set dummy "$ac_dir/$ac_word" "$@"
652
if test -n "$CC"; then
653
echo "$ac_t""$CC" 1>&6
655
echo "$ac_t""no" 1>&6
658
if test -z "$CC"; then
661
# Extract the first word of "cl", so it can be a program name with args.
662
set dummy cl; ac_word=$2
663
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664
echo "configure:665: checking for $ac_word" >&5
665
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666
echo $ac_n "(cached) $ac_c" 1>&6
668
if test -n "$CC"; then
669
ac_cv_prog_CC="$CC" # Let the user override the test.
671
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
673
for ac_dir in $ac_dummy; do
674
test -z "$ac_dir" && ac_dir=.
675
if test -f $ac_dir/$ac_word; then
684
if test -n "$CC"; then
685
echo "$ac_t""$CC" 1>&6
687
echo "$ac_t""no" 1>&6
692
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
695
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
696
echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
699
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
700
ac_cpp='$CPP $CPPFLAGS'
701
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
702
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
703
cross_compiling=$ac_cv_prog_cc_cross
705
cat > conftest.$ac_ext << EOF
707
#line 708 "configure"
708
#include "confdefs.h"
712
if { (eval echo configure:713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
713
ac_cv_prog_cc_works=yes
714
# If we can't run a trivial program, we are probably using a cross compiler.
715
if (./conftest; exit) 2>/dev/null; then
716
ac_cv_prog_cc_cross=no
718
ac_cv_prog_cc_cross=yes
721
echo "configure: failed program was:" >&5
722
cat conftest.$ac_ext >&5
723
ac_cv_prog_cc_works=no
727
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
728
ac_cpp='$CPP $CPPFLAGS'
729
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
730
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
731
cross_compiling=$ac_cv_prog_cc_cross
733
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
734
if test $ac_cv_prog_cc_works = no; then
735
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
737
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
738
echo "configure:739: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
739
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
740
cross_compiling=$ac_cv_prog_cc_cross
742
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
743
echo "configure:744: checking whether we are using GNU C" >&5
744
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
745
echo $ac_n "(cached) $ac_c" 1>&6
747
cat > conftest.c <<EOF
752
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
759
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
761
if test $ac_cv_prog_gcc = yes; then
767
ac_test_CFLAGS="${CFLAGS+set}"
768
ac_save_CFLAGS="$CFLAGS"
770
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
771
echo "configure:772: checking whether ${CC-cc} accepts -g" >&5
772
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
773
echo $ac_n "(cached) $ac_c" 1>&6
775
echo 'void f(){}' > conftest.c
776
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
785
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
786
if test "$ac_test_CFLAGS" = set; then
787
CFLAGS="$ac_save_CFLAGS"
788
elif test $ac_cv_prog_cc_g = yes; then
789
if test "$GCC" = yes; then
795
if test "$GCC" = yes; then
802
# Find a good install program. We prefer a C program (faster),
803
# so one script is as good as another. But avoid the broken or
804
# incompatible versions:
805
# SysV /etc/install, /usr/sbin/install
806
# SunOS /usr/etc/install
809
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
810
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
811
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
812
# ./install, which can be erroneously created by make from ./install.sh.
813
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
814
echo "configure:815: checking for a BSD compatible install" >&5
815
if test -z "$INSTALL"; then
816
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
817
echo $ac_n "(cached) $ac_c" 1>&6
819
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
820
for ac_dir in $PATH; do
821
# Account for people who put trailing slashes in PATH elements.
823
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
825
# OSF1 and SCO ODT 3.0 have their own names for install.
826
# Don't use installbsd from OSF since it installs stuff as root
828
for ac_prog in ginstall scoinst install; do
829
if test -f $ac_dir/$ac_prog; then
830
if test $ac_prog = install &&
831
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
832
# AIX install. It has an incompatible calling convention.
835
ac_cv_path_install="$ac_dir/$ac_prog -c"
846
if test "${ac_cv_path_install+set}" = set; then
847
INSTALL="$ac_cv_path_install"
849
# As a last resort, use the slow shell script. We don't cache a
850
# path for INSTALL within a source directory, because that will
851
# break other packages using the cache if that directory is
852
# removed, or if the path is relative.
853
INSTALL="$ac_install_sh"
856
echo "$ac_t""$INSTALL" 1>&6
858
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
859
# It thinks the first close brace ends the variable substitution.
860
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
862
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
864
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
867
# Extract the first word of "strip", so it can be a program name with args.
868
set dummy strip; ac_word=$2
869
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870
echo "configure:871: checking for $ac_word" >&5
871
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
872
echo $ac_n "(cached) $ac_c" 1>&6
874
if test -n "$STRIP"; then
875
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
877
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879
for ac_dir in $ac_dummy; do
880
test -z "$ac_dir" && ac_dir=.
881
if test -f $ac_dir/$ac_word; then
882
ac_cv_prog_STRIP="strip"
887
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
890
STRIP="$ac_cv_prog_STRIP"
891
if test -n "$STRIP"; then
892
echo "$ac_t""$STRIP" 1>&6
894
echo "$ac_t""no" 1>&6
898
if test -z "$USER_CFLAGS"; then
900
test "$GCC" = yes && CFLAGS="-O2"
905
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
906
echo "configure:907: checking how to run the C preprocessor" >&5
907
# On Suns, sometimes $CPP names a directory.
908
if test -n "$CPP" && test -d "$CPP"; then
911
if test -z "$CPP"; then
912
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
913
echo $ac_n "(cached) $ac_c" 1>&6
915
# This must be in double quotes, not single quotes, because CPP may get
916
# substituted into the Makefile and "${CC-cc}" will confuse make.
918
# On the NeXT, cc -E runs the code through the compiler's parser,
919
# not just through cpp.
920
cat > conftest.$ac_ext <<EOF
921
#line 922 "configure"
922
#include "confdefs.h"
926
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
927
{ (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
928
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929
if test -z "$ac_err"; then
933
echo "configure: failed program was:" >&5
934
cat conftest.$ac_ext >&5
936
CPP="${CC-cc} -E -traditional-cpp"
937
cat > conftest.$ac_ext <<EOF
938
#line 939 "configure"
939
#include "confdefs.h"
943
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944
{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946
if test -z "$ac_err"; then
950
echo "configure: failed program was:" >&5
951
cat conftest.$ac_ext >&5
953
CPP="${CC-cc} -nologo -E"
954
cat > conftest.$ac_ext <<EOF
955
#line 956 "configure"
956
#include "confdefs.h"
960
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
961
{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
962
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963
if test -z "$ac_err"; then
967
echo "configure: failed program was:" >&5
968
cat conftest.$ac_ext >&5
977
ac_cv_prog_CPP="$CPP"
979
CPP="$ac_cv_prog_CPP"
981
ac_cv_prog_CPP="$CPP"
983
echo "$ac_t""$CPP" 1>&6
985
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
986
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
987
echo "configure:988: checking for minix/config.h" >&5
988
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
989
echo $ac_n "(cached) $ac_c" 1>&6
991
cat > conftest.$ac_ext <<EOF
992
#line 993 "configure"
993
#include "confdefs.h"
994
#include <minix/config.h>
996
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
997
{ (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
998
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
999
if test -z "$ac_err"; then
1001
eval "ac_cv_header_$ac_safe=yes"
1004
echo "configure: failed program was:" >&5
1005
cat conftest.$ac_ext >&5
1007
eval "ac_cv_header_$ac_safe=no"
1011
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1012
echo "$ac_t""yes" 1>&6
1015
echo "$ac_t""no" 1>&6
1019
if test "$MINIX" = yes; then
1020
cat >> confdefs.h <<\EOF
1021
#define _POSIX_SOURCE 1
1024
cat >> confdefs.h <<\EOF
1025
#define _POSIX_1_SOURCE 2
1028
cat >> confdefs.h <<\EOF
1035
# Check whether --with-terminfo or --without-terminfo was given.
1036
if test "${with_terminfo+set}" = set; then
1037
withval="$with_terminfo"
1038
ts_with_terminfo="yes"
1040
ts_with_terminfo="no"
1043
# Check whether --with-termcap or --without-termcap was given.
1044
if test "${with_termcap+set}" = set; then
1045
withval="$with_termcap"
1046
ts_with_terminfo="no"
1049
if test "$ts_with_terminfo" = "yes"; then
1051
echo $ac_n "checking for library containing tgetstr""... $ac_c" 1>&6
1052
echo "configure:1053: checking for library containing tgetstr" >&5
1053
if eval "test \"`echo '$''{'ac_cv_search_tgetstr'+set}'`\" = set"; then
1054
echo $ac_n "(cached) $ac_c" 1>&6
1056
ac_func_search_save_LIBS="$LIBS"
1057
ac_cv_search_tgetstr="no"
1058
cat > conftest.$ac_ext <<EOF
1059
#line 1060 "configure"
1060
#include "confdefs.h"
1061
/* Override any gcc2 internal prototype to avoid an error. */
1062
/* We use char because int might match the return type of a gcc2
1063
builtin and then its argument prototype would still apply. */
1070
if { (eval echo configure:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1072
ac_cv_search_tgetstr="none required"
1074
echo "configure: failed program was:" >&5
1075
cat conftest.$ac_ext >&5
1078
test "$ac_cv_search_tgetstr" = "no" && for i in curses ncurses termlib; do
1079
LIBS="-l$i $ac_func_search_save_LIBS"
1080
cat > conftest.$ac_ext <<EOF
1081
#line 1082 "configure"
1082
#include "confdefs.h"
1083
/* Override any gcc2 internal prototype to avoid an error. */
1084
/* We use char because int might match the return type of a gcc2
1085
builtin and then its argument prototype would still apply. */
1092
if { (eval echo configure:1093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1094
ac_cv_search_tgetstr="-l$i"
1097
echo "configure: failed program was:" >&5
1098
cat conftest.$ac_ext >&5
1102
LIBS="$ac_func_search_save_LIBS"
1105
echo "$ac_t""$ac_cv_search_tgetstr" 1>&6
1106
if test "$ac_cv_search_tgetstr" != "no"; then
1107
test "$ac_cv_search_tgetstr" = "none required" || LIBS="$ac_cv_search_tgetstr $LIBS"
1114
echo $ac_n "checking for library containing tgetstr""... $ac_c" 1>&6
1115
echo "configure:1116: checking for library containing tgetstr" >&5
1116
if eval "test \"`echo '$''{'ac_cv_search_tgetstr'+set}'`\" = set"; then
1117
echo $ac_n "(cached) $ac_c" 1>&6
1119
ac_func_search_save_LIBS="$LIBS"
1120
ac_cv_search_tgetstr="no"
1121
cat > conftest.$ac_ext <<EOF
1122
#line 1123 "configure"
1123
#include "confdefs.h"
1124
/* Override any gcc2 internal prototype to avoid an error. */
1125
/* We use char because int might match the return type of a gcc2
1126
builtin and then its argument prototype would still apply. */
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135
ac_cv_search_tgetstr="none required"
1137
echo "configure: failed program was:" >&5
1138
cat conftest.$ac_ext >&5
1141
test "$ac_cv_search_tgetstr" = "no" && for i in termcap curses ncurses; do
1142
LIBS="-l$i $ac_func_search_save_LIBS"
1143
cat > conftest.$ac_ext <<EOF
1144
#line 1145 "configure"
1145
#include "confdefs.h"
1146
/* Override any gcc2 internal prototype to avoid an error. */
1147
/* We use char because int might match the return type of a gcc2
1148
builtin and then its argument prototype would still apply. */
1155
if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157
ac_cv_search_tgetstr="-l$i"
1160
echo "configure: failed program was:" >&5
1161
cat conftest.$ac_ext >&5
1165
LIBS="$ac_func_search_save_LIBS"
1168
echo "$ac_t""$ac_cv_search_tgetstr" 1>&6
1169
if test "$ac_cv_search_tgetstr" != "no"; then
1170
test "$ac_cv_search_tgetstr" = "none required" || LIBS="$ac_cv_search_tgetstr $LIBS"
1178
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1180
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1181
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1182
echo "configure:1183: checking for $ac_hdr that defines DIR" >&5
1183
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1184
echo $ac_n "(cached) $ac_c" 1>&6
1186
cat > conftest.$ac_ext <<EOF
1187
#line 1188 "configure"
1188
#include "confdefs.h"
1189
#include <sys/types.h>
1195
if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1197
eval "ac_cv_header_dirent_$ac_safe=yes"
1199
echo "configure: failed program was:" >&5
1200
cat conftest.$ac_ext >&5
1202
eval "ac_cv_header_dirent_$ac_safe=no"
1206
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1207
echo "$ac_t""yes" 1>&6
1208
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1209
cat >> confdefs.h <<EOF
1210
#define $ac_tr_hdr 1
1212
ac_header_dirent=$ac_hdr; break
1214
echo "$ac_t""no" 1>&6
1217
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1218
if test $ac_header_dirent = dirent.h; then
1219
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1220
echo "configure:1221: checking for opendir in -ldir" >&5
1221
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1222
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1223
echo $ac_n "(cached) $ac_c" 1>&6
1225
ac_save_LIBS="$LIBS"
1227
cat > conftest.$ac_ext <<EOF
1228
#line 1229 "configure"
1229
#include "confdefs.h"
1230
/* Override any gcc2 internal prototype to avoid an error. */
1231
/* We use char because int might match the return type of a gcc2
1232
builtin and then its argument prototype would still apply. */
1239
if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1241
eval "ac_cv_lib_$ac_lib_var=yes"
1243
echo "configure: failed program was:" >&5
1244
cat conftest.$ac_ext >&5
1246
eval "ac_cv_lib_$ac_lib_var=no"
1249
LIBS="$ac_save_LIBS"
1252
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1253
echo "$ac_t""yes" 1>&6
1256
echo "$ac_t""no" 1>&6
1260
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1261
echo "configure:1262: checking for opendir in -lx" >&5
1262
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1263
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264
echo $ac_n "(cached) $ac_c" 1>&6
1266
ac_save_LIBS="$LIBS"
1268
cat > conftest.$ac_ext <<EOF
1269
#line 1270 "configure"
1270
#include "confdefs.h"
1271
/* Override any gcc2 internal prototype to avoid an error. */
1272
/* We use char because int might match the return type of a gcc2
1273
builtin and then its argument prototype would still apply. */
1280
if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1282
eval "ac_cv_lib_$ac_lib_var=yes"
1284
echo "configure: failed program was:" >&5
1285
cat conftest.$ac_ext >&5
1287
eval "ac_cv_lib_$ac_lib_var=no"
1290
LIBS="$ac_save_LIBS"
1293
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294
echo "$ac_t""yes" 1>&6
1297
echo "$ac_t""no" 1>&6
1302
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1303
echo "configure:1304: checking for ANSI C header files" >&5
1304
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1305
echo $ac_n "(cached) $ac_c" 1>&6
1307
cat > conftest.$ac_ext <<EOF
1308
#line 1309 "configure"
1309
#include "confdefs.h"
1315
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1316
{ (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1317
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1318
if test -z "$ac_err"; then
1320
ac_cv_header_stdc=yes
1323
echo "configure: failed program was:" >&5
1324
cat conftest.$ac_ext >&5
1326
ac_cv_header_stdc=no
1330
if test $ac_cv_header_stdc = yes; then
1331
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1332
cat > conftest.$ac_ext <<EOF
1333
#line 1334 "configure"
1334
#include "confdefs.h"
1337
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1338
egrep "memchr" >/dev/null 2>&1; then
1342
ac_cv_header_stdc=no
1348
if test $ac_cv_header_stdc = yes; then
1349
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1350
cat > conftest.$ac_ext <<EOF
1351
#line 1352 "configure"
1352
#include "confdefs.h"
1355
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1356
egrep "free" >/dev/null 2>&1; then
1360
ac_cv_header_stdc=no
1366
if test $ac_cv_header_stdc = yes; then
1367
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1368
if test "$cross_compiling" = yes; then
1371
cat > conftest.$ac_ext <<EOF
1372
#line 1373 "configure"
1373
#include "confdefs.h"
1375
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1376
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1378
int main () { int i; for (i = 0; i < 256; i++)
1379
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1383
if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1387
echo "configure: failed program was:" >&5
1388
cat conftest.$ac_ext >&5
1390
ac_cv_header_stdc=no
1398
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1399
if test $ac_cv_header_stdc = yes; then
1400
cat >> confdefs.h <<\EOF
1401
#define STDC_HEADERS 1
1406
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1407
echo "configure:1408: checking for sys/wait.h that is POSIX.1 compatible" >&5
1408
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1409
echo $ac_n "(cached) $ac_c" 1>&6
1411
cat > conftest.$ac_ext <<EOF
1412
#line 1413 "configure"
1413
#include "confdefs.h"
1414
#include <sys/types.h>
1415
#include <sys/wait.h>
1417
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1420
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1425
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1428
if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1430
ac_cv_header_sys_wait_h=yes
1432
echo "configure: failed program was:" >&5
1433
cat conftest.$ac_ext >&5
1435
ac_cv_header_sys_wait_h=no
1440
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1441
if test $ac_cv_header_sys_wait_h = yes; then
1442
cat >> confdefs.h <<\EOF
1443
#define HAVE_SYS_WAIT_H 1
1448
for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h termio.h termios.h sgtty.h unistd.h sys/param.h
1450
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1451
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1452
echo "configure:1453: checking for $ac_hdr" >&5
1453
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1454
echo $ac_n "(cached) $ac_c" 1>&6
1456
cat > conftest.$ac_ext <<EOF
1457
#line 1458 "configure"
1458
#include "confdefs.h"
1461
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1462
{ (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1463
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1464
if test -z "$ac_err"; then
1466
eval "ac_cv_header_$ac_safe=yes"
1469
echo "configure: failed program was:" >&5
1470
cat conftest.$ac_ext >&5
1472
eval "ac_cv_header_$ac_safe=no"
1476
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1477
echo "$ac_t""yes" 1>&6
1478
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1479
cat >> confdefs.h <<EOF
1480
#define $ac_tr_hdr 1
1484
echo "$ac_t""no" 1>&6
1489
echo $ac_n "checking for working const""... $ac_c" 1>&6
1490
echo "configure:1491: checking for working const" >&5
1491
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1492
echo $ac_n "(cached) $ac_c" 1>&6
1494
cat > conftest.$ac_ext <<EOF
1495
#line 1496 "configure"
1496
#include "confdefs.h"
1500
/* Ultrix mips cc rejects this. */
1501
typedef int charset[2]; const charset x;
1502
/* SunOS 4.1.1 cc rejects this. */
1503
char const *const *ccp;
1505
/* NEC SVR4.0.2 mips cc rejects this. */
1506
struct point {int x, y;};
1507
static struct point const zero = {0,0};
1508
/* AIX XL C 1.02.0.0 rejects this.
1509
It does not let you subtract one const X* pointer from another in an arm
1510
of an if-expression whose if-part is not a constant expression */
1511
const char *g = "string";
1512
ccp = &g + (g ? g-g : 0);
1513
/* HPUX 7.0 cc rejects these. */
1516
ccp = (char const *const *) p;
1517
{ /* SCO 3.2v4 cc rejects this. */
1519
char const *s = 0 ? (char *) 0 : (char const *) 0;
1523
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1525
const int *foo = &x[0];
1528
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1529
typedef const int *iptr;
1533
{ /* AIX XL C 1.02.0.0 rejects this saying
1534
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1535
struct s { int j; const int *ap[3]; };
1536
struct s *b; b->j = 5;
1538
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1544
if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548
echo "configure: failed program was:" >&5
1549
cat conftest.$ac_ext >&5
1556
echo "$ac_t""$ac_cv_c_const" 1>&6
1557
if test $ac_cv_c_const = no; then
1558
cat >> confdefs.h <<\EOF
1564
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1565
echo "configure:1566: checking for pid_t" >&5
1566
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1567
echo $ac_n "(cached) $ac_c" 1>&6
1569
cat > conftest.$ac_ext <<EOF
1570
#line 1571 "configure"
1571
#include "confdefs.h"
1572
#include <sys/types.h>
1578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1581
ac_cv_type_pid_t=yes
1589
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1590
if test $ac_cv_type_pid_t = no; then
1591
cat >> confdefs.h <<\EOF
1597
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1598
echo "configure:1599: checking for size_t" >&5
1599
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1600
echo $ac_n "(cached) $ac_c" 1>&6
1602
cat > conftest.$ac_ext <<EOF
1603
#line 1604 "configure"
1604
#include "confdefs.h"
1605
#include <sys/types.h>
1611
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1612
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1614
ac_cv_type_size_t=yes
1617
ac_cv_type_size_t=no
1622
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1623
if test $ac_cv_type_size_t = no; then
1624
cat >> confdefs.h <<\EOF
1625
#define size_t unsigned
1630
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1631
echo "configure:1632: checking whether time.h and sys/time.h may both be included" >&5
1632
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1633
echo $ac_n "(cached) $ac_c" 1>&6
1635
cat > conftest.$ac_ext <<EOF
1636
#line 1637 "configure"
1637
#include "confdefs.h"
1638
#include <sys/types.h>
1639
#include <sys/time.h>
1645
if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1647
ac_cv_header_time=yes
1649
echo "configure: failed program was:" >&5
1650
cat conftest.$ac_ext >&5
1652
ac_cv_header_time=no
1657
echo "$ac_t""$ac_cv_header_time" 1>&6
1658
if test $ac_cv_header_time = yes; then
1659
cat >> confdefs.h <<\EOF
1660
#define TIME_WITH_SYS_TIME 1
1666
if test "$host_os" != "cygwin"; then
1667
echo $ac_n "checking for fd_set""... $ac_c" 1>&6
1668
echo "configure:1669: checking for fd_set" >&5
1669
if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then
1670
echo $ac_n "(cached) $ac_c" 1>&6
1672
cat > conftest.$ac_ext <<EOF
1673
#line 1674 "configure"
1674
#include "confdefs.h"
1675
#include <sys/types.h>
1681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1682
egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1684
ac_cv_type_fd_set=yes
1687
ac_cv_type_fd_set=no
1692
echo "$ac_t""$ac_cv_type_fd_set" 1>&6
1693
if test $ac_cv_type_fd_set = no; then
1694
cat >> confdefs.h <<\EOF
1703
cat >> confdefs.h <<\EOF
1704
#define UNDEF_SIGTSTP 1
1709
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1710
# for constant arguments. Useless!
1711
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1712
echo "configure:1713: checking for working alloca.h" >&5
1713
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1714
echo $ac_n "(cached) $ac_c" 1>&6
1716
cat > conftest.$ac_ext <<EOF
1717
#line 1718 "configure"
1718
#include "confdefs.h"
1721
char *p = alloca(2 * sizeof(int));
1724
if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726
ac_cv_header_alloca_h=yes
1728
echo "configure: failed program was:" >&5
1729
cat conftest.$ac_ext >&5
1731
ac_cv_header_alloca_h=no
1736
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1737
if test $ac_cv_header_alloca_h = yes; then
1738
cat >> confdefs.h <<\EOF
1739
#define HAVE_ALLOCA_H 1
1744
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1745
echo "configure:1746: checking for alloca" >&5
1746
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1747
echo $ac_n "(cached) $ac_c" 1>&6
1749
cat > conftest.$ac_ext <<EOF
1750
#line 1751 "configure"
1751
#include "confdefs.h"
1754
# define alloca __builtin_alloca
1757
# include <malloc.h>
1758
# define alloca _alloca
1761
# include <alloca.h>
1766
# ifndef alloca /* predefined by HP cc +Olibcalls */
1775
char *p = (char *) alloca(1);
1778
if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780
ac_cv_func_alloca_works=yes
1782
echo "configure: failed program was:" >&5
1783
cat conftest.$ac_ext >&5
1785
ac_cv_func_alloca_works=no
1790
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1791
if test $ac_cv_func_alloca_works = yes; then
1792
cat >> confdefs.h <<\EOF
1793
#define HAVE_ALLOCA 1
1798
if test $ac_cv_func_alloca_works = no; then
1799
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
1800
# that cause trouble. Some versions do not even contain alloca or
1801
# contain a buggy version. If you still want to use their alloca,
1802
# use ar to extract alloca.o from them instead of compiling alloca.c.
1803
ALLOCA=alloca.${ac_objext}
1804
cat >> confdefs.h <<\EOF
1809
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1810
echo "configure:1811: checking whether alloca needs Cray hooks" >&5
1811
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1812
echo $ac_n "(cached) $ac_c" 1>&6
1814
cat > conftest.$ac_ext <<EOF
1815
#line 1816 "configure"
1816
#include "confdefs.h"
1817
#if defined(CRAY) && ! defined(CRAY2)
1824
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1825
egrep "webecray" >/dev/null 2>&1; then
1836
echo "$ac_t""$ac_cv_os_cray" 1>&6
1837
if test $ac_cv_os_cray = yes; then
1838
for ac_func in _getb67 GETB67 getb67; do
1839
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1840
echo "configure:1841: checking for $ac_func" >&5
1841
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1842
echo $ac_n "(cached) $ac_c" 1>&6
1844
cat > conftest.$ac_ext <<EOF
1845
#line 1846 "configure"
1846
#include "confdefs.h"
1847
/* System header to define __stub macros and hopefully few prototypes,
1848
which can conflict with char $ac_func(); below. */
1850
/* Override any gcc2 internal prototype to avoid an error. */
1851
/* We use char because int might match the return type of a gcc2
1852
builtin and then its argument prototype would still apply. */
1857
/* The GNU C library defines this for functions which it implements
1858
to always fail with ENOSYS. Some functions are actually named
1859
something starting with __ and the normal name is an alias. */
1860
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1868
if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870
eval "ac_cv_func_$ac_func=yes"
1872
echo "configure: failed program was:" >&5
1873
cat conftest.$ac_ext >&5
1875
eval "ac_cv_func_$ac_func=no"
1880
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1881
echo "$ac_t""yes" 1>&6
1882
cat >> confdefs.h <<EOF
1883
#define CRAY_STACKSEG_END $ac_func
1888
echo "$ac_t""no" 1>&6
1894
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1895
echo "configure:1896: checking stack direction for C alloca" >&5
1896
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1897
echo $ac_n "(cached) $ac_c" 1>&6
1899
if test "$cross_compiling" = yes; then
1900
ac_cv_c_stack_direction=0
1902
cat > conftest.$ac_ext <<EOF
1903
#line 1904 "configure"
1904
#include "confdefs.h"
1905
find_stack_direction ()
1907
static char *addr = 0;
1912
return find_stack_direction ();
1915
return (&dummy > addr) ? 1 : -1;
1919
exit (find_stack_direction() < 0);
1922
if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1924
ac_cv_c_stack_direction=1
1926
echo "configure: failed program was:" >&5
1927
cat conftest.$ac_ext >&5
1929
ac_cv_c_stack_direction=-1
1936
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1937
cat >> confdefs.h <<EOF
1938
#define STACK_DIRECTION $ac_cv_c_stack_direction
1943
if test $ac_cv_prog_gcc = yes; then
1944
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1945
echo "configure:1946: checking whether ${CC-cc} needs -traditional" >&5
1946
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1947
echo $ac_n "(cached) $ac_c" 1>&6
1949
ac_pattern="Autoconf.*'x'"
1950
cat > conftest.$ac_ext <<EOF
1951
#line 1952 "configure"
1952
#include "confdefs.h"
1956
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1957
egrep "$ac_pattern" >/dev/null 2>&1; then
1959
ac_cv_prog_gcc_traditional=yes
1962
ac_cv_prog_gcc_traditional=no
1967
if test $ac_cv_prog_gcc_traditional = no; then
1968
cat > conftest.$ac_ext <<EOF
1969
#line 1970 "configure"
1970
#include "confdefs.h"
1974
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1975
egrep "$ac_pattern" >/dev/null 2>&1; then
1977
ac_cv_prog_gcc_traditional=yes
1984
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1985
if test $ac_cv_prog_gcc_traditional = yes; then
1986
CC="$CC -traditional"
1990
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1991
echo "configure:1992: checking for 8-bit clean memcmp" >&5
1992
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1993
echo $ac_n "(cached) $ac_c" 1>&6
1995
if test "$cross_compiling" = yes; then
1996
ac_cv_func_memcmp_clean=no
1998
cat > conftest.$ac_ext <<EOF
1999
#line 2000 "configure"
2000
#include "confdefs.h"
2004
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2005
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2009
if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2011
ac_cv_func_memcmp_clean=yes
2013
echo "configure: failed program was:" >&5
2014
cat conftest.$ac_ext >&5
2016
ac_cv_func_memcmp_clean=no
2023
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2024
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2026
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2027
echo "configure:2028: checking return type of signal handlers" >&5
2028
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2029
echo $ac_n "(cached) $ac_c" 1>&6
2031
cat > conftest.$ac_ext <<EOF
2032
#line 2033 "configure"
2033
#include "confdefs.h"
2034
#include <sys/types.h>
2040
extern "C" void (*signal (int, void (*)(int)))(int);
2042
void (*signal ()) ();
2049
if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051
ac_cv_type_signal=void
2053
echo "configure: failed program was:" >&5
2054
cat conftest.$ac_ext >&5
2056
ac_cv_type_signal=int
2061
echo "$ac_t""$ac_cv_type_signal" 1>&6
2062
cat >> confdefs.h <<EOF
2063
#define RETSIGTYPE $ac_cv_type_signal
2067
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2068
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2069
echo "configure:2070: checking for vfork.h" >&5
2070
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071
echo $ac_n "(cached) $ac_c" 1>&6
2073
cat > conftest.$ac_ext <<EOF
2074
#line 2075 "configure"
2075
#include "confdefs.h"
2078
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079
{ (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081
if test -z "$ac_err"; then
2083
eval "ac_cv_header_$ac_safe=yes"
2086
echo "configure: failed program was:" >&5
2087
cat conftest.$ac_ext >&5
2089
eval "ac_cv_header_$ac_safe=no"
2093
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094
echo "$ac_t""yes" 1>&6
2095
cat >> confdefs.h <<\EOF
2096
#define HAVE_VFORK_H 1
2100
echo "$ac_t""no" 1>&6
2103
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2104
echo "configure:2105: checking for working vfork" >&5
2105
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2106
echo $ac_n "(cached) $ac_c" 1>&6
2108
if test "$cross_compiling" = yes; then
2109
echo $ac_n "checking for vfork""... $ac_c" 1>&6
2110
echo "configure:2111: checking for vfork" >&5
2111
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2112
echo $ac_n "(cached) $ac_c" 1>&6
2114
cat > conftest.$ac_ext <<EOF
2115
#line 2116 "configure"
2116
#include "confdefs.h"
2117
/* System header to define __stub macros and hopefully few prototypes,
2118
which can conflict with char vfork(); below. */
2120
/* Override any gcc2 internal prototype to avoid an error. */
2121
/* We use char because int might match the return type of a gcc2
2122
builtin and then its argument prototype would still apply. */
2127
/* The GNU C library defines this for functions which it implements
2128
to always fail with ENOSYS. Some functions are actually named
2129
something starting with __ and the normal name is an alias. */
2130
#if defined (__stub_vfork) || defined (__stub___vfork)
2138
if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2140
eval "ac_cv_func_vfork=yes"
2142
echo "configure: failed program was:" >&5
2143
cat conftest.$ac_ext >&5
2145
eval "ac_cv_func_vfork=no"
2150
if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2151
echo "$ac_t""yes" 1>&6
2154
echo "$ac_t""no" 1>&6
2157
ac_cv_func_vfork_works=$ac_cv_func_vfork
2159
cat > conftest.$ac_ext <<EOF
2160
#line 2161 "configure"
2161
#include "confdefs.h"
2162
/* Thanks to Paul Eggert for this test. */
2164
#include <sys/types.h>
2165
#include <sys/stat.h>
2166
#ifdef HAVE_UNISTD_H
2172
/* On some sparc systems, changes by the child to local and incoming
2173
argument registers are propagated back to the parent.
2174
The compiler is told about this with #include <vfork.h>,
2175
but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2176
Test for this by using a static variable whose address
2177
is put into a register that is clobbered by the vfork. */
2180
sparc_address_test (int arg)
2182
sparc_address_test (arg) int arg;
2200
pid_t parent = getpid ();
2203
sparc_address_test ();
2208
/* Here is another test for sparc vfork register problems.
2209
This test uses lots of local variables, at least
2210
as many local variables as main has allocated so far
2211
including compiler temporaries. 4 locals are enough for
2212
gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2213
A buggy compiler should reuse the register of parent
2214
for one of the local variables, since it will think that
2215
parent can't possibly be used any more in this routine.
2216
Assigning to the local variable will thus munge parent
2217
in the parent process. */
2219
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2220
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2221
/* Convince the compiler that p..p7 are live; otherwise, it might
2222
use the same hardware register for all 8 local variables. */
2223
if (p != p1 || p != p2 || p != p3 || p != p4
2224
|| p != p5 || p != p6 || p != p7)
2227
/* On some systems (e.g. IRIX 3.3),
2228
vfork doesn't separate parent from child file descriptors.
2229
If the child closes a descriptor before it execs or exits,
2230
this munges the parent's descriptor as well.
2231
Test for this by closing stdout in the child. */
2232
_exit(close(fileno(stdout)) != 0);
2237
while (wait(&status) != child)
2240
/* Was there some problem with vforking? */
2243
/* Did the child fail? (This shouldn't happen.) */
2246
/* Did the vfork/compiler bug occur? */
2247
|| parent != getpid()
2249
/* Did the file descriptor bug occur? */
2250
|| fstat(fileno(stdout), &st) != 0
2255
if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2257
ac_cv_func_vfork_works=yes
2259
echo "configure: failed program was:" >&5
2260
cat conftest.$ac_ext >&5
2262
ac_cv_func_vfork_works=no
2269
echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2270
if test $ac_cv_func_vfork_works = no; then
2271
cat >> confdefs.h <<\EOF
2277
for ac_func in getcwd rmdir rename opendir select mkstemp bcopy bzero bcmp
2279
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2280
echo "configure:2281: checking for $ac_func" >&5
2281
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2282
echo $ac_n "(cached) $ac_c" 1>&6
2284
cat > conftest.$ac_ext <<EOF
2285
#line 2286 "configure"
2286
#include "confdefs.h"
2287
/* System header to define __stub macros and hopefully few prototypes,
2288
which can conflict with char $ac_func(); below. */
2290
/* Override any gcc2 internal prototype to avoid an error. */
2291
/* We use char because int might match the return type of a gcc2
2292
builtin and then its argument prototype would still apply. */
2297
/* The GNU C library defines this for functions which it implements
2298
to always fail with ENOSYS. Some functions are actually named
2299
something starting with __ and the normal name is an alias. */
2300
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2308
if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2310
eval "ac_cv_func_$ac_func=yes"
2312
echo "configure: failed program was:" >&5
2313
cat conftest.$ac_ext >&5
2315
eval "ac_cv_func_$ac_func=no"
2320
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2321
echo "$ac_t""yes" 1>&6
2322
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2323
cat >> confdefs.h <<EOF
2324
#define $ac_tr_func 1
2328
echo "$ac_t""no" 1>&6
2332
for ac_func in rindex symlink dup2 sigprocmask getgroups
2334
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2335
echo "configure:2336: checking for $ac_func" >&5
2336
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2337
echo $ac_n "(cached) $ac_c" 1>&6
2339
cat > conftest.$ac_ext <<EOF
2340
#line 2341 "configure"
2341
#include "confdefs.h"
2342
/* System header to define __stub macros and hopefully few prototypes,
2343
which can conflict with char $ac_func(); below. */
2345
/* Override any gcc2 internal prototype to avoid an error. */
2346
/* We use char because int might match the return type of a gcc2
2347
builtin and then its argument prototype would still apply. */
2352
/* The GNU C library defines this for functions which it implements
2353
to always fail with ENOSYS. Some functions are actually named
2354
something starting with __ and the normal name is an alias. */
2355
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2363
if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365
eval "ac_cv_func_$ac_func=yes"
2367
echo "configure: failed program was:" >&5
2368
cat conftest.$ac_ext >&5
2370
eval "ac_cv_func_$ac_func=no"
2375
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2376
echo "$ac_t""yes" 1>&6
2377
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2378
cat >> confdefs.h <<EOF
2379
#define $ac_tr_func 1
2383
echo "$ac_t""no" 1>&6
2388
# Extract the first word of "cp", so it can be a program name with args.
2389
set dummy cp; ac_word=$2
2390
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2391
echo "configure:2392: checking for $ac_word" >&5
2392
if eval "test \"`echo '$''{'ac_cv_path_cp_cmd'+set}'`\" = set"; then
2393
echo $ac_n "(cached) $ac_c" 1>&6
2397
ac_cv_path_cp_cmd="$cp_cmd" # Let the user override the test with a path.
2400
ac_cv_path_cp_cmd="$cp_cmd" # Let the user override the test with a dos path.
2403
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2405
for ac_dir in $ac_dummy; do
2406
test -z "$ac_dir" && ac_dir=.
2407
if test -f $ac_dir/$ac_word; then
2408
ac_cv_path_cp_cmd="$ac_dir/$ac_word"
2416
cp_cmd="$ac_cv_path_cp_cmd"
2417
if test -n "$cp_cmd"; then
2418
echo "$ac_t""$cp_cmd" 1>&6
2420
echo "$ac_t""no" 1>&6
2423
cat >> confdefs.h <<EOF
2424
#define CP_CMD "$cp_cmd"
2427
# Extract the first word of "mv", so it can be a program name with args.
2428
set dummy mv; ac_word=$2
2429
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430
echo "configure:2431: checking for $ac_word" >&5
2431
if eval "test \"`echo '$''{'ac_cv_path_mv_cmd'+set}'`\" = set"; then
2432
echo $ac_n "(cached) $ac_c" 1>&6
2436
ac_cv_path_mv_cmd="$mv_cmd" # Let the user override the test with a path.
2439
ac_cv_path_mv_cmd="$mv_cmd" # Let the user override the test with a dos path.
2442
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444
for ac_dir in $ac_dummy; do
2445
test -z "$ac_dir" && ac_dir=.
2446
if test -f $ac_dir/$ac_word; then
2447
ac_cv_path_mv_cmd="$ac_dir/$ac_word"
2455
mv_cmd="$ac_cv_path_mv_cmd"
2456
if test -n "$mv_cmd"; then
2457
echo "$ac_t""$mv_cmd" 1>&6
2459
echo "$ac_t""no" 1>&6
2462
cat >> confdefs.h <<EOF
2463
#define MV_CMD "$mv_cmd"
2466
# Extract the first word of "ls", so it can be a program name with args.
2467
set dummy ls; ac_word=$2
2468
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469
echo "configure:2470: checking for $ac_word" >&5
2470
if eval "test \"`echo '$''{'ac_cv_path_ls_cmd'+set}'`\" = set"; then
2471
echo $ac_n "(cached) $ac_c" 1>&6
2475
ac_cv_path_ls_cmd="$ls_cmd" # Let the user override the test with a path.
2478
ac_cv_path_ls_cmd="$ls_cmd" # Let the user override the test with a dos path.
2481
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2483
for ac_dir in $ac_dummy; do
2484
test -z "$ac_dir" && ac_dir=.
2485
if test -f $ac_dir/$ac_word; then
2486
ac_cv_path_ls_cmd="$ac_dir/$ac_word"
2494
ls_cmd="$ac_cv_path_ls_cmd"
2495
if test -n "$ls_cmd"; then
2496
echo "$ac_t""$ls_cmd" 1>&6
2498
echo "$ac_t""no" 1>&6
2501
cat >> confdefs.h <<EOF
2502
#define LS_CMD "$ls_cmd"
2505
# Extract the first word of "rmdir", so it can be a program name with args.
2506
set dummy rmdir; ac_word=$2
2507
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2508
echo "configure:2509: checking for $ac_word" >&5
2509
if eval "test \"`echo '$''{'ac_cv_path_rmdir_cmd'+set}'`\" = set"; then
2510
echo $ac_n "(cached) $ac_c" 1>&6
2512
case "$rmdir_cmd" in
2514
ac_cv_path_rmdir_cmd="$rmdir_cmd" # Let the user override the test with a path.
2517
ac_cv_path_rmdir_cmd="$rmdir_cmd" # Let the user override the test with a dos path.
2520
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2522
for ac_dir in $ac_dummy; do
2523
test -z "$ac_dir" && ac_dir=.
2524
if test -f $ac_dir/$ac_word; then
2525
ac_cv_path_rmdir_cmd="$ac_dir/$ac_word"
2533
rmdir_cmd="$ac_cv_path_rmdir_cmd"
2534
if test -n "$rmdir_cmd"; then
2535
echo "$ac_t""$rmdir_cmd" 1>&6
2537
echo "$ac_t""no" 1>&6
2540
cat >> confdefs.h <<EOF
2541
#define RMDIR_CMD "$rmdir_cmd"
2545
echo $ac_n "checking if --enable-canna option specified""... $ac_c" 1>&6
2546
echo "configure:2547: checking if --enable-canna option specified" >&5
2547
# Check whether --enable-canna or --disable-canna was given.
2548
if test "${enable_canna+set}" = set; then
2549
enableval="$enable_canna"
2550
cv_canna="yes"; cannapath=$enableval
2555
echo "$ac_t""$cv_canna" 1>&6
2556
if test "$cv_canna" = "yes"; then
2558
if test "$cannapath" = "yes"; then
2561
cannapath="/usr/contrib/canna";;
2563
cannapath="/usr/pkg";;
2565
cannapath="/usr/local";;
2567
cannapath="/usr/local/canna";;
2569
cannapath="/usr/local";;
2571
cannapath="/usr/local/canna";;
2575
if test "$cannapath" != "yes"; then
2576
CFLAGS="-I$cannapath/include $CFLAGS"
2577
LDFLAGS="-L$cannapath/lib $LDFLAGS"
2580
echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
2581
echo "configure:2582: checking for canna/jrkanji.h" >&5
2582
if eval "test \"`echo '$''{'ac_cv_cannahdrcheck'+set}'`\" = set"; then
2583
echo $ac_n "(cached) $ac_c" 1>&6
2585
cat > conftest.$ac_ext <<EOF
2586
#line 2587 "configure"
2587
#include "confdefs.h"
2588
#include <canna/jrkanji.h>
2593
if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2595
ac_cv_cannahdrcheck="yes"
2597
echo "configure: failed program was:" >&5
2598
cat conftest.$ac_ext >&5
2600
ac_cv_cannahdrcheck="no"
2605
echo "$ac_t""$ac_cv_cannahdrcheck" 1>&6
2606
if test "$cannahdrcheck" = "no"; then
2607
echo -n "Fatal error: no canna header in suggested path"
2608
if test "$cannapath" != "yes"; then
2609
echo ", $cannapath/include."
2616
echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
2617
echo "configure:2618: checking for jrKanjiControl in -lcanna" >&5
2618
ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
2619
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2620
echo $ac_n "(cached) $ac_c" 1>&6
2622
ac_save_LIBS="$LIBS"
2623
LIBS="-lcanna $LIBS"
2624
cat > conftest.$ac_ext <<EOF
2625
#line 2626 "configure"
2626
#include "confdefs.h"
2627
/* Override any gcc2 internal prototype to avoid an error. */
2628
/* We use char because int might match the return type of a gcc2
2629
builtin and then its argument prototype would still apply. */
2630
char jrKanjiControl();
2636
if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2638
eval "ac_cv_lib_$ac_lib_var=yes"
2640
echo "configure: failed program was:" >&5
2641
cat conftest.$ac_ext >&5
2643
eval "ac_cv_lib_$ac_lib_var=no"
2646
LIBS="$ac_save_LIBS"
2649
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2650
echo "$ac_t""yes" 1>&6
2651
cv_cannalibcheck="yes"
2653
echo "$ac_t""no" 1>&6
2654
cv_cannalibcheck="no"
2657
if test "$cannalibcheck" = "no"; then
2658
echo "Fatal error: no canna library in suggested path"
2659
if test "$cannapath" != "yes"; then
2660
echo ", $cannapath/lib."
2666
LIBS="-lcanna $LIBS"
2667
cat >> confdefs.h <<\EOF
2674
cat > confcache <<\EOF
2675
# This file is a shell script that caches the results of configure
2676
# tests run on this system so they can be shared between configure
2677
# scripts and configure runs. It is not useful on other systems.
2678
# If it contains results you don't want to keep, you may remove or edit it.
2680
# By default, configure uses ./config.cache as the cache file,
2681
# creating it if it does not exist already. You can give configure
2682
# the --cache-file=FILE option to use a different cache file; that is
2683
# what configure does when it calls configure scripts in
2684
# subdirectories, so they share the cache.
2685
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2686
# config.status only pays attention to the cache file if you give it the
2687
# --recheck option to rerun configure.
2690
# The following way of writing the cache mishandles newlines in values,
2691
# but we know of no workaround that is simple, portable, and efficient.
2692
# So, don't put newlines in cache variables' values.
2693
# Ultrix sh set writes to stderr and can't be redirected directly,
2694
# and sets the high bit in the cache file unless we assign to the vars.
2696
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2698
# `set' does not quote correctly, so add quotes (double-quote substitution
2699
# turns \\\\ into \\, and sed turns \\ into \).
2701
-e "s/'/'\\\\''/g" \
2702
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2705
# `set' quotes correctly as required by POSIX, so do not add quotes.
2706
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2709
if cmp -s $cache_file confcache; then
2712
if test -w $cache_file; then
2713
echo "updating cache $cache_file"
2714
cat confcache > $cache_file
2716
echo "not updating unwritable cache $cache_file"
2721
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2723
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2724
# Let make expand exec_prefix.
2725
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2727
# Any assignment to VPATH causes Sun make to only execute
2728
# the first set of double-colon rules, so remove it if not needed.
2729
# If there is a colon in the path, we need to keep it.
2730
if test "x$srcdir" = x.; then
2731
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2734
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2736
DEFS=-DHAVE_CONFIG_H
2738
# Without the "./", some shells look in PATH for config.status.
2739
: ${CONFIG_STATUS=./config.status}
2741
echo creating $CONFIG_STATUS
2742
rm -f $CONFIG_STATUS
2743
cat > $CONFIG_STATUS <<EOF
2745
# Generated automatically by configure.
2746
# Run this file to recreate the current configuration.
2747
# This directory was configured as follows,
2748
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2750
# $0 $ac_configure_args
2752
# Compiler output produced by configure, useful for debugging
2753
# configure, is in ./config.log if it exists.
2755
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2758
case "\$ac_option" in
2759
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2760
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2761
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2762
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2763
echo "$CONFIG_STATUS generated by autoconf version 2.13"
2765
-help | --help | --hel | --he | --h)
2766
echo "\$ac_cs_usage"; exit 0 ;;
2767
*) echo "\$ac_cs_usage"; exit 1 ;;
2771
ac_given_srcdir=$srcdir
2772
ac_given_INSTALL="$INSTALL"
2774
trap 'rm -fr `echo "Makefile:sys/unix/Makefile.in sysconfig.h:sys/unix/sysconfig.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2776
cat >> $CONFIG_STATUS <<EOF
2778
# Protect against being on the right side of a sed subst in config.status.
2779
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2780
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2784
s%@CFLAGS@%$CFLAGS%g
2785
s%@CPPFLAGS@%$CPPFLAGS%g
2786
s%@CXXFLAGS@%$CXXFLAGS%g
2787
s%@FFLAGS@%$FFLAGS%g
2789
s%@LDFLAGS@%$LDFLAGS%g
2791
s%@exec_prefix@%$exec_prefix%g
2792
s%@prefix@%$prefix%g
2793
s%@program_transform_name@%$program_transform_name%g
2794
s%@bindir@%$bindir%g
2795
s%@sbindir@%$sbindir%g
2796
s%@libexecdir@%$libexecdir%g
2797
s%@datadir@%$datadir%g
2798
s%@sysconfdir@%$sysconfdir%g
2799
s%@sharedstatedir@%$sharedstatedir%g
2800
s%@localstatedir@%$localstatedir%g
2801
s%@libdir@%$libdir%g
2802
s%@includedir@%$includedir%g
2803
s%@oldincludedir@%$oldincludedir%g
2804
s%@infodir@%$infodir%g
2805
s%@mandir@%$mandir%g
2807
s%@host_alias@%$host_alias%g
2808
s%@host_cpu@%$host_cpu%g
2809
s%@host_vendor@%$host_vendor%g
2810
s%@host_os@%$host_os%g
2812
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2813
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2814
s%@INSTALL_DATA@%$INSTALL_DATA%g
2817
s%@ALLOCA@%$ALLOCA%g
2818
s%@LIBOBJS@%$LIBOBJS%g
2819
s%@cp_cmd@%$cp_cmd%g
2820
s%@mv_cmd@%$mv_cmd%g
2821
s%@ls_cmd@%$ls_cmd%g
2822
s%@rmdir_cmd@%$rmdir_cmd%g
2827
cat >> $CONFIG_STATUS <<\EOF
2829
# Split the substitutions into bite-sized pieces for seds with
2830
# small command number limits, like on Digital OSF/1 and HP-UX.
2831
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2832
ac_file=1 # Number of current file.
2833
ac_beg=1 # First line for current file.
2834
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2837
while $ac_more_lines; do
2838
if test $ac_beg -gt 1; then
2839
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2841
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2843
if test ! -s conftest.s$ac_file; then
2845
rm -f conftest.s$ac_file
2847
if test -z "$ac_sed_cmds"; then
2848
ac_sed_cmds="sed -f conftest.s$ac_file"
2850
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2852
ac_file=`expr $ac_file + 1`
2854
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2857
if test -z "$ac_sed_cmds"; then
2862
cat >> $CONFIG_STATUS <<EOF
2864
CONFIG_FILES=\${CONFIG_FILES-"Makefile:sys/unix/Makefile.in"}
2866
cat >> $CONFIG_STATUS <<\EOF
2867
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2868
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2870
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2871
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2872
*) ac_file_in="${ac_file}.in" ;;
2875
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2877
# Remove last slash and all that follows it. Not all systems have dirname.
2878
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2879
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2880
# The file is in a subdirectory.
2881
test ! -d "$ac_dir" && mkdir "$ac_dir"
2882
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2883
# A "../" for each directory in $ac_dir_suffix.
2884
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2886
ac_dir_suffix= ac_dots=
2889
case "$ac_given_srcdir" in
2891
if test -z "$ac_dots"; then top_srcdir=.
2892
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2893
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2895
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2896
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2899
case "$ac_given_INSTALL" in
2900
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2901
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2904
echo creating "$ac_file"
2906
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2908
*Makefile*) ac_comsub="1i\\
2909
# $configure_input" ;;
2913
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2915
s%@configure_input@%$configure_input%g
2916
s%@srcdir@%$srcdir%g
2917
s%@top_srcdir@%$top_srcdir%g
2918
s%@INSTALL@%$INSTALL%g
2919
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2923
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2924
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2926
# ac_d sets the value in "#define NAME VALUE" lines.
2927
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2928
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2931
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2932
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2933
ac_uB='\([ ]\)%\1#\2define\3'
2936
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2937
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2938
ac_eB='$%\1#\2define\3'
2942
if test "${CONFIG_HEADERS+set}" != set; then
2944
cat >> $CONFIG_STATUS <<EOF
2945
CONFIG_HEADERS="sysconfig.h:sys/unix/sysconfig.h.in"
2947
cat >> $CONFIG_STATUS <<\EOF
2949
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2950
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2952
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2953
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2954
*) ac_file_in="${ac_file}.in" ;;
2957
echo creating $ac_file
2959
rm -f conftest.frag conftest.in conftest.out
2960
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2961
cat $ac_file_inputs > conftest.in
2965
# Transform confdefs.h into a sed script conftest.vals that substitutes
2966
# the proper values into config.h.in to produce config.h. And first:
2967
# Protect against being on the right side of a sed subst in config.status.
2968
# Protect against being in an unquoted here document in config.status.
2970
cat > conftest.hdr <<\EOF
2973
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2977
sed -n -f conftest.hdr confdefs.h > conftest.vals
2980
# This sed command replaces #undef with comments. This is necessary, for
2981
# example, in the case of _POSIX_SOURCE, which is predefined and required
2982
# on some systems where configure will not decide to define it.
2983
cat >> conftest.vals <<\EOF
2984
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2987
# Break up conftest.vals because some shells have a limit on
2988
# the size of here documents, and old seds have small limits too.
2993
ac_lines=`grep -c . conftest.vals`
2994
# grep -c gives empty output for an empty file on some AIX systems.
2995
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2996
# Write a limited-size here document to conftest.frag.
2997
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2998
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3000
sed -f conftest.frag conftest.in > conftest.out
3002
mv conftest.out conftest.in
3004
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3006
mv conftest.tail conftest.vals
3010
cat >> $CONFIG_STATUS <<\EOF
3011
rm -f conftest.frag conftest.h
3012
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3013
cat conftest.in >> conftest.h
3015
if cmp -s $ac_file conftest.h 2>/dev/null; then
3016
echo "$ac_file is unchanged"
3019
# Remove last slash and all that follows it. Not all systems have dirname.
3020
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3021
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3022
# The file is in a subdirectory.
3023
test ! -d "$ac_dir" && mkdir "$ac_dir"
3026
mv conftest.h $ac_file
3031
cat >> $CONFIG_STATUS <<EOF
3034
cat >> $CONFIG_STATUS <<\EOF
3038
chmod +x $CONFIG_STATUS
3039
rm -fr confdefs* $ac_clean_files
3040
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1