3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library [auto]"
17
--with-editor=PROGRAM use PROGRAM as the default editor [vi]"
19
# Initialize some variables set by options.
20
# The variables have the same names as the options, with
21
# dashes changed to underlines.
23
cache_file=./config.cache
32
program_transform_name=s,x,x,
40
bindir='${exec_prefix}/bin'
41
sbindir='${exec_prefix}/sbin'
42
libexecdir='${exec_prefix}/libexec'
43
datadir='${prefix}/share'
44
sysconfdir='${prefix}/etc'
45
sharedstatedir='${prefix}/com'
46
localstatedir='${prefix}/var'
47
libdir='${exec_prefix}/lib'
48
includedir='${prefix}/include'
49
oldincludedir='/usr/include'
50
infodir='${prefix}/info'
51
mandir='${prefix}/man'
53
# Initialize some other variables.
56
SHELL=${CONFIG_SHELL-/bin/sh}
57
# Maximum number of lines to put in a shell here document.
64
# If the previous option needs an argument, assign it.
65
if test -n "$ac_prev"; then
66
eval "$ac_prev=\$ac_option"
72
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76
# Accept the important Cygnus configure options, so we can diagnose typos.
80
-bindir | --bindir | --bindi | --bind | --bin | --bi)
82
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83
bindir="$ac_optarg" ;;
85
-build | --build | --buil | --bui | --bu)
87
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
90
-cache-file | --cache-file | --cache-fil | --cache-fi \
91
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95
cache_file="$ac_optarg" ;;
97
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101
datadir="$ac_optarg" ;;
103
-disable-* | --disable-*)
104
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105
# Reject names that are not valid shell variable names.
106
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110
eval "enable_${ac_feature}=no" ;;
112
-enable-* | --enable-*)
113
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114
# Reject names that are not valid shell variable names.
115
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
eval "enable_${ac_feature}='$ac_optarg'" ;;
125
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127
| --exec | --exe | --ex)
128
ac_prev=exec_prefix ;;
129
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131
| --exec=* | --exe=* | --ex=*)
132
exec_prefix="$ac_optarg" ;;
134
-gas | --gas | --ga | --g)
135
# Obsolete; use --with-gas.
138
-help | --help | --hel | --he)
139
# Omit some internal or obsolete options to make the list less imposing.
140
# This message is too long to be a string in the A/UX 3.1 sh.
142
Usage: configure [options] [host]
143
Options: [defaults in brackets after descriptions]
145
--cache-file=FILE cache test results in FILE
146
--help print this message
147
--no-create do not create output files
148
--quiet, --silent do not print \`checking...' messages
149
--version print the version of autoconf that created configure
150
Directory and file names:
151
--prefix=PREFIX install architecture-independent files in PREFIX
153
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155
--bindir=DIR user executables in DIR [EPREFIX/bin]
156
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158
--datadir=DIR read-only architecture-independent data in DIR
160
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161
--sharedstatedir=DIR modifiable architecture-independent data in DIR
163
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
165
--includedir=DIR C header files in DIR [PREFIX/include]
166
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167
--infodir=DIR info documentation in DIR [PREFIX/info]
168
--mandir=DIR man documentation in DIR [PREFIX/man]
169
--srcdir=DIR find the sources in DIR [configure dir or ..]
170
--program-prefix=PREFIX prepend PREFIX to installed program names
171
--program-suffix=SUFFIX append SUFFIX to installed program names
172
--program-transform-name=PROGRAM
173
run sed PROGRAM on installed program names
177
--build=BUILD configure for building on BUILD [BUILD=HOST]
178
--host=HOST configure for HOST [guessed]
179
--target=TARGET configure for TARGET [TARGET=HOST]
180
Features and packages:
181
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185
--x-includes=DIR X include files are in DIR
186
--x-libraries=DIR X library files are in DIR
188
if test -n "$ac_help"; then
189
echo "--enable and --with options recognized:$ac_help"
193
-host | --host | --hos | --ho)
195
-host=* | --host=* | --hos=* | --ho=*)
198
-includedir | --includedir | --includedi | --included | --include \
199
| --includ | --inclu | --incl | --inc)
200
ac_prev=includedir ;;
201
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202
| --includ=* | --inclu=* | --incl=* | --inc=*)
203
includedir="$ac_optarg" ;;
205
-infodir | --infodir | --infodi | --infod | --info | --inf)
207
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208
infodir="$ac_optarg" ;;
210
-libdir | --libdir | --libdi | --libd)
212
-libdir=* | --libdir=* | --libdi=* | --libd=*)
213
libdir="$ac_optarg" ;;
215
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216
| --libexe | --libex | --libe)
217
ac_prev=libexecdir ;;
218
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219
| --libexe=* | --libex=* | --libe=*)
220
libexecdir="$ac_optarg" ;;
222
-localstatedir | --localstatedir | --localstatedi | --localstated \
223
| --localstate | --localstat | --localsta | --localst \
224
| --locals | --local | --loca | --loc | --lo)
225
ac_prev=localstatedir ;;
226
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
228
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229
localstatedir="$ac_optarg" ;;
231
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234
mandir="$ac_optarg" ;;
237
# Obsolete; use --without-fp.
240
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
244
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
245
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250
| --oldin | --oldi | --old | --ol | --o)
251
ac_prev=oldincludedir ;;
252
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255
oldincludedir="$ac_optarg" ;;
257
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260
prefix="$ac_optarg" ;;
262
-program-prefix | --program-prefix | --program-prefi | --program-pref \
263
| --program-pre | --program-pr | --program-p)
264
ac_prev=program_prefix ;;
265
-program-prefix=* | --program-prefix=* | --program-prefi=* \
266
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267
program_prefix="$ac_optarg" ;;
269
-program-suffix | --program-suffix | --program-suffi | --program-suff \
270
| --program-suf | --program-su | --program-s)
271
ac_prev=program_suffix ;;
272
-program-suffix=* | --program-suffix=* | --program-suffi=* \
273
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274
program_suffix="$ac_optarg" ;;
276
-program-transform-name | --program-transform-name \
277
| --program-transform-nam | --program-transform-na \
278
| --program-transform-n | --program-transform- \
279
| --program-transform | --program-transfor \
280
| --program-transfo | --program-transf \
281
| --program-trans | --program-tran \
282
| --progr-tra | --program-tr | --program-t)
283
ac_prev=program_transform_name ;;
284
-program-transform-name=* | --program-transform-name=* \
285
| --program-transform-nam=* | --program-transform-na=* \
286
| --program-transform-n=* | --program-transform-=* \
287
| --program-transform=* | --program-transfor=* \
288
| --program-transfo=* | --program-transf=* \
289
| --program-trans=* | --program-tran=* \
290
| --progr-tra=* | --program-tr=* | --program-t=*)
291
program_transform_name="$ac_optarg" ;;
293
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
294
| -silent | --silent | --silen | --sile | --sil)
297
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301
sbindir="$ac_optarg" ;;
303
-sharedstatedir | --sharedstatedir | --sharedstatedi \
304
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305
| --sharedst | --shareds | --shared | --share | --shar \
307
ac_prev=sharedstatedir ;;
308
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312
sharedstatedir="$ac_optarg" ;;
314
-site | --site | --sit)
316
-site=* | --site=* | --sit=*)
319
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322
srcdir="$ac_optarg" ;;
324
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325
| --syscon | --sysco | --sysc | --sys | --sy)
326
ac_prev=sysconfdir ;;
327
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329
sysconfdir="$ac_optarg" ;;
331
-target | --target | --targe | --targ | --tar | --ta | --t)
333
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334
target="$ac_optarg" ;;
336
-v | -verbose | --verbose | --verbos | --verbo | --verb)
339
-version | --version | --versio | --versi | --vers)
340
echo "configure generated by autoconf version 2.13"
344
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345
# Reject names that are not valid shell variable names.
346
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349
ac_package=`echo $ac_package| sed 's/-/_/g'`
354
eval "with_${ac_package}='$ac_optarg'" ;;
356
-without-* | --without-*)
357
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358
# Reject names that are not valid shell variable names.
359
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362
ac_package=`echo $ac_package| sed 's/-/_/g'`
363
eval "with_${ac_package}=no" ;;
366
# Obsolete; use --with-x.
369
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370
| --x-incl | --x-inc | --x-in | --x-i)
371
ac_prev=x_includes ;;
372
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374
x_includes="$ac_optarg" ;;
376
-x-libraries | --x-libraries | --x-librarie | --x-librari \
377
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378
ac_prev=x_libraries ;;
379
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381
x_libraries="$ac_optarg" ;;
383
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388
echo "configure: warning: $ac_option: invalid host type" 1>&2
390
if test "x$nonopt" != xNONE; then
391
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399
if test -n "$ac_prev"; then
400
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
# File descriptor usage:
408
# 2 errors and warnings
409
# 3 some systems may open it to /dev/tty
410
# 4 used on the Kubota Titan
411
# 6 checking for... messages and results
412
# 5 compiler messages saved in config.log
413
if test "$silent" = yes; then
421
This file contains any messages produced by compilers while
422
running configure, to aid debugging if configure makes a mistake.
425
# Strip out --no-create and --no-recursion so they do not pile up.
426
# Also quote any args containing shell metacharacters.
431
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
432
| --no-cr | --no-c) ;;
433
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
434
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
# Only set these to C if already set. These must not be set unconditionally
443
# because not all systems understand e.g. LANG=C (notably SCO).
444
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445
# Non-C LC_CTYPE values break the ctype check.
446
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451
# confdefs.h avoids OS command line length limits that DEFS can exceed.
452
rm -rf conftest* confdefs.h
453
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456
# A filename unique to this package, relative to the directory that
457
# configure is in, which we can look for to find out if srcdir is correct.
458
ac_unique_file=forwback.c
460
# Find the source files, if location was not specified.
461
if test -z "$srcdir"; then
462
ac_srcdir_defaulted=yes
463
# Try the directory containing this script, then its parent.
465
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468
if test ! -r $srcdir/$ac_unique_file; then
472
ac_srcdir_defaulted=no
474
if test ! -r $srcdir/$ac_unique_file; then
475
if test "$ac_srcdir_defaulted" = yes; then
476
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
# Prefer explicitly selected file to automatically selected ones.
484
if test -z "$CONFIG_SITE"; then
485
if test "x$prefix" != xNONE; then
486
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491
for ac_site_file in $CONFIG_SITE; do
492
if test -r "$ac_site_file"; then
493
echo "loading site script $ac_site_file"
498
if test -r "$cache_file"; then
499
echo "loading cache $cache_file"
502
echo "creating cache $cache_file"
507
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508
ac_cpp='$CPP $CPPFLAGS'
509
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511
cross_compiling=$ac_cv_prog_cc_cross
515
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524
ac_n= ac_c='\c' ac_t=
530
# Extract the first word of "gcc", so it can be a program name with args.
531
set dummy gcc; ac_word=$2
532
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533
echo "configure:534: checking for $ac_word" >&5
534
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535
echo $ac_n "(cached) $ac_c" 1>&6
537
if test -n "$CC"; then
538
ac_cv_prog_CC="$CC" # Let the user override the test.
540
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
542
for ac_dir in $ac_dummy; do
543
test -z "$ac_dir" && ac_dir=.
544
if test -f $ac_dir/$ac_word; then
553
if test -n "$CC"; then
554
echo "$ac_t""$CC" 1>&6
556
echo "$ac_t""no" 1>&6
559
if test -z "$CC"; then
560
# Extract the first word of "cc", so it can be a program name with args.
561
set dummy cc; ac_word=$2
562
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563
echo "configure:564: checking for $ac_word" >&5
564
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565
echo $ac_n "(cached) $ac_c" 1>&6
567
if test -n "$CC"; then
568
ac_cv_prog_CC="$CC" # Let the user override the test.
570
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
573
for ac_dir in $ac_dummy; do
574
test -z "$ac_dir" && ac_dir=.
575
if test -f $ac_dir/$ac_word; then
576
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
585
if test $ac_prog_rejected = yes; then
586
# We found a bogon in the path, so make sure we never use it.
587
set dummy $ac_cv_prog_CC
589
if test $# -gt 0; then
590
# We chose a different compiler from the bogus one.
591
# However, it has the same basename, so the bogon will be chosen
592
# first if we set CC to just the basename; use the full file name.
594
set dummy "$ac_dir/$ac_word" "$@"
602
if test -n "$CC"; then
603
echo "$ac_t""$CC" 1>&6
605
echo "$ac_t""no" 1>&6
608
if test -z "$CC"; then
611
# Extract the first word of "cl", so it can be a program name with args.
612
set dummy cl; ac_word=$2
613
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614
echo "configure:615: checking for $ac_word" >&5
615
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616
echo $ac_n "(cached) $ac_c" 1>&6
618
if test -n "$CC"; then
619
ac_cv_prog_CC="$CC" # Let the user override the test.
621
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
634
if test -n "$CC"; then
635
echo "$ac_t""$CC" 1>&6
637
echo "$ac_t""no" 1>&6
642
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
645
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646
echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
649
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650
ac_cpp='$CPP $CPPFLAGS'
651
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653
cross_compiling=$ac_cv_prog_cc_cross
655
cat > conftest.$ac_ext << EOF
657
#line 658 "configure"
658
#include "confdefs.h"
662
if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663
ac_cv_prog_cc_works=yes
664
# If we can't run a trivial program, we are probably using a cross compiler.
665
if (./conftest; exit) 2>/dev/null; then
666
ac_cv_prog_cc_cross=no
668
ac_cv_prog_cc_cross=yes
671
echo "configure: failed program was:" >&5
672
cat conftest.$ac_ext >&5
673
ac_cv_prog_cc_works=no
677
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678
ac_cpp='$CPP $CPPFLAGS'
679
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681
cross_compiling=$ac_cv_prog_cc_cross
683
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684
if test $ac_cv_prog_cc_works = no; then
685
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688
echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690
cross_compiling=$ac_cv_prog_cc_cross
692
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693
echo "configure:694: checking whether we are using GNU C" >&5
694
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695
echo $ac_n "(cached) $ac_c" 1>&6
697
cat > conftest.c <<EOF
702
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
709
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711
if test $ac_cv_prog_gcc = yes; then
717
ac_test_CFLAGS="${CFLAGS+set}"
718
ac_save_CFLAGS="$CFLAGS"
720
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721
echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723
echo $ac_n "(cached) $ac_c" 1>&6
725
echo 'void f(){}' > conftest.c
726
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
735
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736
if test "$ac_test_CFLAGS" = set; then
737
CFLAGS="$ac_save_CFLAGS"
738
elif test $ac_cv_prog_cc_g = yes; then
739
if test "$GCC" = yes; then
745
if test "$GCC" = yes; then
752
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
753
echo "configure:754: checking for POSIXized ISC" >&5
754
if test -d /etc/conf/kconfig.d &&
755
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
757
echo "$ac_t""yes" 1>&6
758
ISC=yes # If later tests want to check for ISC.
759
cat >> confdefs.h <<\EOF
760
#define _POSIX_SOURCE 1
763
if test "$GCC" = yes; then
769
echo "$ac_t""no" 1>&6
773
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
774
echo "configure:775: checking how to run the C preprocessor" >&5
775
# On Suns, sometimes $CPP names a directory.
776
if test -n "$CPP" && test -d "$CPP"; then
779
if test -z "$CPP"; then
780
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
781
echo $ac_n "(cached) $ac_c" 1>&6
783
# This must be in double quotes, not single quotes, because CPP may get
784
# substituted into the Makefile and "${CC-cc}" will confuse make.
786
# On the NeXT, cc -E runs the code through the compiler's parser,
787
# not just through cpp.
788
cat > conftest.$ac_ext <<EOF
789
#line 790 "configure"
790
#include "confdefs.h"
794
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
795
{ (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
796
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
797
if test -z "$ac_err"; then
801
echo "configure: failed program was:" >&5
802
cat conftest.$ac_ext >&5
804
CPP="${CC-cc} -E -traditional-cpp"
805
cat > conftest.$ac_ext <<EOF
806
#line 807 "configure"
807
#include "confdefs.h"
811
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
812
{ (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
813
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
814
if test -z "$ac_err"; then
818
echo "configure: failed program was:" >&5
819
cat conftest.$ac_ext >&5
821
CPP="${CC-cc} -nologo -E"
822
cat > conftest.$ac_ext <<EOF
823
#line 824 "configure"
824
#include "confdefs.h"
828
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829
{ (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831
if test -z "$ac_err"; then
835
echo "configure: failed program was:" >&5
836
cat conftest.$ac_ext >&5
845
ac_cv_prog_CPP="$CPP"
847
CPP="$ac_cv_prog_CPP"
849
ac_cv_prog_CPP="$CPP"
851
echo "$ac_t""$CPP" 1>&6
853
if test $ac_cv_prog_gcc = yes; then
854
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
855
echo "configure:856: checking whether ${CC-cc} needs -traditional" >&5
856
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
857
echo $ac_n "(cached) $ac_c" 1>&6
859
ac_pattern="Autoconf.*'x'"
860
cat > conftest.$ac_ext <<EOF
861
#line 862 "configure"
862
#include "confdefs.h"
866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
867
egrep "$ac_pattern" >/dev/null 2>&1; then
869
ac_cv_prog_gcc_traditional=yes
872
ac_cv_prog_gcc_traditional=no
877
if test $ac_cv_prog_gcc_traditional = no; then
878
cat > conftest.$ac_ext <<EOF
879
#line 880 "configure"
880
#include "confdefs.h"
884
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
885
egrep "$ac_pattern" >/dev/null 2>&1; then
887
ac_cv_prog_gcc_traditional=yes
894
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
895
if test $ac_cv_prog_gcc_traditional = yes; then
896
CC="$CC -traditional"
901
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
902
if test -f $ac_dir/install-sh; then
904
ac_install_sh="$ac_aux_dir/install-sh -c"
906
elif test -f $ac_dir/install.sh; then
908
ac_install_sh="$ac_aux_dir/install.sh -c"
912
if test -z "$ac_aux_dir"; then
913
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
915
ac_config_guess=$ac_aux_dir/config.guess
916
ac_config_sub=$ac_aux_dir/config.sub
917
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
919
# Find a good install program. We prefer a C program (faster),
920
# so one script is as good as another. But avoid the broken or
921
# incompatible versions:
922
# SysV /etc/install, /usr/sbin/install
923
# SunOS /usr/etc/install
926
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
927
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
928
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
929
# ./install, which can be erroneously created by make from ./install.sh.
930
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
931
echo "configure:932: checking for a BSD compatible install" >&5
932
if test -z "$INSTALL"; then
933
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
934
echo $ac_n "(cached) $ac_c" 1>&6
936
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
937
for ac_dir in $PATH; do
938
# Account for people who put trailing slashes in PATH elements.
940
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
942
# OSF1 and SCO ODT 3.0 have their own names for install.
943
# Don't use installbsd from OSF since it installs stuff as root
945
for ac_prog in ginstall scoinst install; do
946
if test -f $ac_dir/$ac_prog; then
947
if test $ac_prog = install &&
948
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
949
# AIX install. It has an incompatible calling convention.
952
ac_cv_path_install="$ac_dir/$ac_prog -c"
963
if test "${ac_cv_path_install+set}" = set; then
964
INSTALL="$ac_cv_path_install"
966
# As a last resort, use the slow shell script. We don't cache a
967
# path for INSTALL within a source directory, because that will
968
# break other packages using the cache if that directory is
969
# removed, or if the path is relative.
970
INSTALL="$ac_install_sh"
973
echo "$ac_t""$INSTALL" 1>&6
975
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
976
# It thinks the first close brace ends the variable substitution.
977
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
979
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
981
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
985
echo $ac_n "checking for initscr in -lxcurses""... $ac_c" 1>&6
986
echo "configure:987: checking for initscr in -lxcurses" >&5
987
ac_lib_var=`echo xcurses'_'initscr | sed 'y%./+-%__p_%'`
988
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
989
echo $ac_n "(cached) $ac_c" 1>&6
992
LIBS="-lxcurses $LIBS"
993
cat > conftest.$ac_ext <<EOF
994
#line 995 "configure"
995
#include "confdefs.h"
996
/* Override any gcc2 internal prototype to avoid an error. */
997
/* We use char because int might match the return type of a gcc2
998
builtin and then its argument prototype would still apply. */
1005
if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1007
eval "ac_cv_lib_$ac_lib_var=yes"
1009
echo "configure: failed program was:" >&5
1010
cat conftest.$ac_ext >&5
1012
eval "ac_cv_lib_$ac_lib_var=no"
1015
LIBS="$ac_save_LIBS"
1018
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1019
echo "$ac_t""yes" 1>&6
1022
echo "$ac_t""no" 1>&6
1026
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
1027
echo "configure:1028: checking for initscr in -lncurses" >&5
1028
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
1029
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1030
echo $ac_n "(cached) $ac_c" 1>&6
1032
ac_save_LIBS="$LIBS"
1033
LIBS="-lncurses $LIBS"
1034
cat > conftest.$ac_ext <<EOF
1035
#line 1036 "configure"
1036
#include "confdefs.h"
1037
/* Override any gcc2 internal prototype to avoid an error. */
1038
/* We use char because int might match the return type of a gcc2
1039
builtin and then its argument prototype would still apply. */
1046
if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1048
eval "ac_cv_lib_$ac_lib_var=yes"
1050
echo "configure: failed program was:" >&5
1051
cat conftest.$ac_ext >&5
1053
eval "ac_cv_lib_$ac_lib_var=no"
1056
LIBS="$ac_save_LIBS"
1059
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1060
echo "$ac_t""yes" 1>&6
1063
echo "$ac_t""no" 1>&6
1067
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
1068
echo "configure:1069: checking for initscr in -lcurses" >&5
1069
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
1070
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1071
echo $ac_n "(cached) $ac_c" 1>&6
1073
ac_save_LIBS="$LIBS"
1074
LIBS="-lcurses $LIBS"
1075
cat > conftest.$ac_ext <<EOF
1076
#line 1077 "configure"
1077
#include "confdefs.h"
1078
/* Override any gcc2 internal prototype to avoid an error. */
1079
/* We use char because int might match the return type of a gcc2
1080
builtin and then its argument prototype would still apply. */
1087
if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1089
eval "ac_cv_lib_$ac_lib_var=yes"
1091
echo "configure: failed program was:" >&5
1092
cat conftest.$ac_ext >&5
1094
eval "ac_cv_lib_$ac_lib_var=no"
1097
LIBS="$ac_save_LIBS"
1100
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1101
echo "$ac_t""yes" 1>&6
1104
echo "$ac_t""no" 1>&6
1108
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1109
echo "configure:1110: checking for tgetent in -ltermcap" >&5
1110
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1111
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1112
echo $ac_n "(cached) $ac_c" 1>&6
1114
ac_save_LIBS="$LIBS"
1115
LIBS="-ltermcap $LIBS"
1116
cat > conftest.$ac_ext <<EOF
1117
#line 1118 "configure"
1118
#include "confdefs.h"
1119
/* Override any gcc2 internal prototype to avoid an error. */
1120
/* We use char because int might match the return type of a gcc2
1121
builtin and then its argument prototype would still apply. */
1128
if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130
eval "ac_cv_lib_$ac_lib_var=yes"
1132
echo "configure: failed program was:" >&5
1133
cat conftest.$ac_ext >&5
1135
eval "ac_cv_lib_$ac_lib_var=no"
1138
LIBS="$ac_save_LIBS"
1141
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1142
echo "$ac_t""yes" 1>&6
1145
echo "$ac_t""no" 1>&6
1149
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
1150
echo "configure:1151: checking for tgetent in -ltermlib" >&5
1151
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
1152
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1153
echo $ac_n "(cached) $ac_c" 1>&6
1155
ac_save_LIBS="$LIBS"
1156
LIBS="-ltermlib $LIBS"
1157
cat > conftest.$ac_ext <<EOF
1158
#line 1159 "configure"
1159
#include "confdefs.h"
1160
/* Override any gcc2 internal prototype to avoid an error. */
1161
/* We use char because int might match the return type of a gcc2
1162
builtin and then its argument prototype would still apply. */
1169
if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171
eval "ac_cv_lib_$ac_lib_var=yes"
1173
echo "configure: failed program was:" >&5
1174
cat conftest.$ac_ext >&5
1176
eval "ac_cv_lib_$ac_lib_var=no"
1179
LIBS="$ac_save_LIBS"
1182
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1183
echo "$ac_t""yes" 1>&6
1186
echo "$ac_t""no" 1>&6
1190
echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
1191
echo "configure:1192: checking for regcmp in -lgen" >&5
1192
ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
1193
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1194
echo $ac_n "(cached) $ac_c" 1>&6
1196
ac_save_LIBS="$LIBS"
1198
cat > conftest.$ac_ext <<EOF
1199
#line 1200 "configure"
1200
#include "confdefs.h"
1201
/* Override any gcc2 internal prototype to avoid an error. */
1202
/* We use char because int might match the return type of a gcc2
1203
builtin and then its argument prototype would still apply. */
1210
if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1212
eval "ac_cv_lib_$ac_lib_var=yes"
1214
echo "configure: failed program was:" >&5
1215
cat conftest.$ac_ext >&5
1217
eval "ac_cv_lib_$ac_lib_var=no"
1220
LIBS="$ac_save_LIBS"
1223
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1224
echo "$ac_t""yes" 1>&6
1225
ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1226
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1227
cat >> confdefs.h <<EOF
1228
#define $ac_tr_lib 1
1234
echo "$ac_t""no" 1>&6
1237
echo $ac_n "checking for regcmp in -lintl""... $ac_c" 1>&6
1238
echo "configure:1239: checking for regcmp in -lintl" >&5
1239
ac_lib_var=`echo intl'_'regcmp | sed 'y%./+-%__p_%'`
1240
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1241
echo $ac_n "(cached) $ac_c" 1>&6
1243
ac_save_LIBS="$LIBS"
1245
cat > conftest.$ac_ext <<EOF
1246
#line 1247 "configure"
1247
#include "confdefs.h"
1248
/* Override any gcc2 internal prototype to avoid an error. */
1249
/* We use char because int might match the return type of a gcc2
1250
builtin and then its argument prototype would still apply. */
1257
if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1259
eval "ac_cv_lib_$ac_lib_var=yes"
1261
echo "configure: failed program was:" >&5
1262
cat conftest.$ac_ext >&5
1264
eval "ac_cv_lib_$ac_lib_var=no"
1267
LIBS="$ac_save_LIBS"
1270
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1271
echo "$ac_t""yes" 1>&6
1272
ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1273
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1274
cat >> confdefs.h <<EOF
1275
#define $ac_tr_lib 1
1281
echo "$ac_t""no" 1>&6
1284
echo $ac_n "checking for regcmp in -lPW""... $ac_c" 1>&6
1285
echo "configure:1286: checking for regcmp in -lPW" >&5
1286
ac_lib_var=`echo PW'_'regcmp | sed 'y%./+-%__p_%'`
1287
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1288
echo $ac_n "(cached) $ac_c" 1>&6
1290
ac_save_LIBS="$LIBS"
1292
cat > conftest.$ac_ext <<EOF
1293
#line 1294 "configure"
1294
#include "confdefs.h"
1295
/* Override any gcc2 internal prototype to avoid an error. */
1296
/* We use char because int might match the return type of a gcc2
1297
builtin and then its argument prototype would still apply. */
1304
if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1306
eval "ac_cv_lib_$ac_lib_var=yes"
1308
echo "configure: failed program was:" >&5
1309
cat conftest.$ac_ext >&5
1311
eval "ac_cv_lib_$ac_lib_var=no"
1314
LIBS="$ac_save_LIBS"
1317
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1318
echo "$ac_t""yes" 1>&6
1319
ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1320
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1321
cat >> confdefs.h <<EOF
1322
#define $ac_tr_lib 1
1328
echo "$ac_t""no" 1>&6
1332
echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6
1333
echo "configure:1334: checking for working terminal libraries" >&5
1337
if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
1338
if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
1341
if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
1346
if test $curses_broken = 0; then
1347
if test "x$TERMLIBS" = x; then
1348
if test $have_xcurses = yes; then
1349
TERMLIBS="-lxcurses"
1351
LIBS="$LIBS $TERMLIBS"
1352
cat > conftest.$ac_ext <<EOF
1353
#line 1354 "configure"
1354
#include "confdefs.h"
1357
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1360
if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1364
echo "configure: failed program was:" >&5
1365
cat conftest.$ac_ext >&5
1371
if test $termok = no; then TERMLIBS=""; fi
1375
if test "x$TERMLIBS" = x; then
1376
if test $have_ncurses = yes; then
1377
TERMLIBS="-lncurses"
1379
LIBS="$LIBS $TERMLIBS"
1380
cat > conftest.$ac_ext <<EOF
1381
#line 1382 "configure"
1382
#include "confdefs.h"
1385
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1388
if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1392
echo "configure: failed program was:" >&5
1393
cat conftest.$ac_ext >&5
1399
if test $termok = no; then TERMLIBS=""; fi
1403
if test "x$TERMLIBS" = x; then
1404
if test $have_curses = yes; then
1407
LIBS="$LIBS $TERMLIBS"
1408
cat > conftest.$ac_ext <<EOF
1409
#line 1410 "configure"
1410
#include "confdefs.h"
1413
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1416
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1420
echo "configure: failed program was:" >&5
1421
cat conftest.$ac_ext >&5
1427
if test $termok = no; then TERMLIBS=""; fi
1431
if test "x$TERMLIBS" = x; then
1432
if test $have_curses = yes; then
1433
if test $have_termcap = yes; then
1434
TERMLIBS="-lcurses -ltermcap"
1436
LIBS="$LIBS $TERMLIBS"
1437
cat > conftest.$ac_ext <<EOF
1438
#line 1439 "configure"
1439
#include "confdefs.h"
1442
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1445
if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449
echo "configure: failed program was:" >&5
1450
cat conftest.$ac_ext >&5
1456
if test $termok = no; then TERMLIBS=""; fi
1462
if test "x$TERMLIBS" = x; then
1463
if test $have_termcap = yes; then
1464
TERMLIBS="-ltermcap"
1466
LIBS="$LIBS $TERMLIBS"
1467
cat > conftest.$ac_ext <<EOF
1468
#line 1469 "configure"
1469
#include "confdefs.h"
1472
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1475
if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1479
echo "configure: failed program was:" >&5
1480
cat conftest.$ac_ext >&5
1486
if test $termok = no; then TERMLIBS=""; fi
1490
if test "x$TERMLIBS" = x; then
1491
if test $have_termlib = yes; then
1492
TERMLIBS="-lcurses -ltermlib"
1494
LIBS="$LIBS $TERMLIBS"
1495
cat > conftest.$ac_ext <<EOF
1496
#line 1497 "configure"
1497
#include "confdefs.h"
1500
tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
1503
if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1507
echo "configure: failed program was:" >&5
1508
cat conftest.$ac_ext >&5
1514
if test $termok = no; then TERMLIBS=""; fi
1518
if test "x$TERMLIBS" = x; then
1519
echo "$ac_t""Cannot find terminal libraries - configure failed" 1>&6
1522
echo "$ac_t""using $TERMLIBS" 1>&6
1523
LIBS="$LIBS $TERMLIBS"
1526
for ac_hdr in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
1528
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1529
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1530
echo "configure:1531: checking for $ac_hdr" >&5
1531
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1532
echo $ac_n "(cached) $ac_c" 1>&6
1534
cat > conftest.$ac_ext <<EOF
1535
#line 1536 "configure"
1536
#include "confdefs.h"
1539
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1540
{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1541
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1542
if test -z "$ac_err"; then
1544
eval "ac_cv_header_$ac_safe=yes"
1547
echo "configure: failed program was:" >&5
1548
cat conftest.$ac_ext >&5
1550
eval "ac_cv_header_$ac_safe=no"
1554
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1555
echo "$ac_t""yes" 1>&6
1556
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1557
cat >> confdefs.h <<EOF
1558
#define $ac_tr_hdr 1
1562
echo "$ac_t""no" 1>&6
1567
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1568
echo "configure:1569: checking for ANSI C header files" >&5
1569
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1570
echo $ac_n "(cached) $ac_c" 1>&6
1572
cat > conftest.$ac_ext <<EOF
1573
#line 1574 "configure"
1574
#include "confdefs.h"
1580
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1581
{ (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1582
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1583
if test -z "$ac_err"; then
1585
ac_cv_header_stdc=yes
1588
echo "configure: failed program was:" >&5
1589
cat conftest.$ac_ext >&5
1591
ac_cv_header_stdc=no
1595
if test $ac_cv_header_stdc = yes; then
1596
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1597
cat > conftest.$ac_ext <<EOF
1598
#line 1599 "configure"
1599
#include "confdefs.h"
1602
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603
egrep "memchr" >/dev/null 2>&1; then
1607
ac_cv_header_stdc=no
1613
if test $ac_cv_header_stdc = yes; then
1614
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1615
cat > conftest.$ac_ext <<EOF
1616
#line 1617 "configure"
1617
#include "confdefs.h"
1620
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1621
egrep "free" >/dev/null 2>&1; then
1625
ac_cv_header_stdc=no
1631
if test $ac_cv_header_stdc = yes; then
1632
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1633
if test "$cross_compiling" = yes; then
1636
cat > conftest.$ac_ext <<EOF
1637
#line 1638 "configure"
1638
#include "confdefs.h"
1640
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1641
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1642
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1643
int main () { int i; for (i = 0; i < 256; i++)
1644
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1648
if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1652
echo "configure: failed program was:" >&5
1653
cat conftest.$ac_ext >&5
1655
ac_cv_header_stdc=no
1663
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1664
if test $ac_cv_header_stdc = yes; then
1665
cat >> confdefs.h <<\EOF
1666
#define STDC_HEADERS 1
1671
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1672
echo "configure:1673: checking for off_t" >&5
1673
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1674
echo $ac_n "(cached) $ac_c" 1>&6
1676
cat > conftest.$ac_ext <<EOF
1677
#line 1678 "configure"
1678
#include "confdefs.h"
1679
#include <sys/types.h>
1685
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1686
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1688
ac_cv_type_off_t=yes
1696
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1697
if test $ac_cv_type_off_t = no; then
1698
cat >> confdefs.h <<\EOF
1704
echo $ac_n "checking for void""... $ac_c" 1>&6
1705
echo "configure:1706: checking for void" >&5
1706
cat > conftest.$ac_ext <<EOF
1707
#line 1708 "configure"
1708
#include "confdefs.h"
1714
if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1716
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1721
echo "configure: failed program was:" >&5
1722
cat conftest.$ac_ext >&5
1724
echo "$ac_t""no" 1>&6
1727
echo $ac_n "checking for const""... $ac_c" 1>&6
1728
echo "configure:1729: checking for const" >&5
1729
cat > conftest.$ac_ext <<EOF
1730
#line 1731 "configure"
1731
#include "confdefs.h"
1737
if { (eval echo configure:1738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1739
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1740
#define HAVE_CONST 1
1744
echo "configure: failed program was:" >&5
1745
cat conftest.$ac_ext >&5
1747
echo "$ac_t""no" 1>&6
1750
echo $ac_n "checking for time_t""... $ac_c" 1>&6
1751
echo "configure:1752: checking for time_t" >&5
1752
cat > conftest.$ac_ext <<EOF
1753
#line 1754 "configure"
1754
#include "confdefs.h"
1760
if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1762
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1763
#define HAVE_TIME_T 1
1767
echo "configure: failed program was:" >&5
1768
cat conftest.$ac_ext >&5
1770
echo "$ac_t""no" 1>&6
1774
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1775
echo "configure:1776: checking return type of signal handlers" >&5
1776
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1777
echo $ac_n "(cached) $ac_c" 1>&6
1779
cat > conftest.$ac_ext <<EOF
1780
#line 1781 "configure"
1781
#include "confdefs.h"
1782
#include <sys/types.h>
1788
extern "C" void (*signal (int, void (*)(int)))(int);
1790
void (*signal ()) ();
1797
if { (eval echo configure:1798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799
ac_cv_type_signal=void
1801
echo "configure: failed program was:" >&5
1802
cat conftest.$ac_ext >&5
1804
ac_cv_type_signal=int
1809
echo "$ac_t""$ac_cv_type_signal" 1>&6
1810
cat >> confdefs.h <<EOF
1811
#define RETSIGTYPE $ac_cv_type_signal
1815
for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system
1817
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1818
echo "configure:1819: checking for $ac_func" >&5
1819
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1820
echo $ac_n "(cached) $ac_c" 1>&6
1822
cat > conftest.$ac_ext <<EOF
1823
#line 1824 "configure"
1824
#include "confdefs.h"
1825
/* System header to define __stub macros and hopefully few prototypes,
1826
which can conflict with char $ac_func(); below. */
1828
/* Override any gcc2 internal prototype to avoid an error. */
1829
/* We use char because int might match the return type of a gcc2
1830
builtin and then its argument prototype would still apply. */
1835
/* The GNU C library defines this for functions which it implements
1836
to always fail with ENOSYS. Some functions are actually named
1837
something starting with __ and the normal name is an alias. */
1838
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1846
if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848
eval "ac_cv_func_$ac_func=yes"
1850
echo "configure: failed program was:" >&5
1851
cat conftest.$ac_ext >&5
1853
eval "ac_cv_func_$ac_func=no"
1858
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1859
echo "$ac_t""yes" 1>&6
1860
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1861
cat >> confdefs.h <<EOF
1862
#define $ac_tr_func 1
1866
echo "$ac_t""no" 1>&6
1871
echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
1872
echo "configure:1873: checking for tcgetattr" >&5
1873
if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
1874
echo $ac_n "(cached) $ac_c" 1>&6
1876
cat > conftest.$ac_ext <<EOF
1877
#line 1878 "configure"
1878
#include "confdefs.h"
1879
/* System header to define __stub macros and hopefully few prototypes,
1880
which can conflict with char tcgetattr(); below. */
1882
/* Override any gcc2 internal prototype to avoid an error. */
1883
/* We use char because int might match the return type of a gcc2
1884
builtin and then its argument prototype would still apply. */
1889
/* The GNU C library defines this for functions which it implements
1890
to always fail with ENOSYS. Some functions are actually named
1891
something starting with __ and the normal name is an alias. */
1892
#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
1900
if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902
eval "ac_cv_func_tcgetattr=yes"
1904
echo "configure: failed program was:" >&5
1905
cat conftest.$ac_ext >&5
1907
eval "ac_cv_func_tcgetattr=no"
1912
if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
1913
echo "$ac_t""yes" 1>&6
1914
cat >> confdefs.h <<\EOF
1915
#define HAVE_TERMIOS_FUNCS 1
1919
echo "$ac_t""no" 1>&6
1923
echo $ac_n "checking for fileno""... $ac_c" 1>&6
1924
echo "configure:1925: checking for fileno" >&5
1925
cat > conftest.$ac_ext <<EOF
1926
#line 1927 "configure"
1927
#include "confdefs.h"
1933
static int x; x = fileno(stdin);
1936
if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1938
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1939
#define HAVE_FILENO 1
1943
echo "configure: failed program was:" >&5
1944
cat conftest.$ac_ext >&5
1946
echo "$ac_t""no" 1>&6
1950
echo $ac_n "checking for strerror""... $ac_c" 1>&6
1951
echo "configure:1952: checking for strerror" >&5
1952
cat > conftest.$ac_ext <<EOF
1953
#line 1954 "configure"
1954
#include "confdefs.h"
1966
static char *x; x = strerror(0);
1969
if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1971
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1972
#define HAVE_STRERROR 1
1976
echo "configure: failed program was:" >&5
1977
cat conftest.$ac_ext >&5
1979
echo "$ac_t""no" 1>&6
1983
echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
1984
echo "configure:1985: checking for sys_errlist" >&5
1985
cat > conftest.$ac_ext <<EOF
1986
#line 1987 "configure"
1987
#include "confdefs.h"
1990
extern char *sys_errlist[]; static char **x; x = sys_errlist;
1993
if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1995
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1996
#define HAVE_SYS_ERRLIST 1
2000
echo "configure: failed program was:" >&5
2001
cat conftest.$ac_ext >&5
2003
echo "$ac_t""no" 1>&6
2007
echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
2008
echo "configure:2009: checking for sigset_t" >&5
2009
cat > conftest.$ac_ext <<EOF
2010
#line 2011 "configure"
2011
#include "confdefs.h"
2019
if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2021
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2022
#define HAVE_SIGSET_T 1
2026
echo "configure: failed program was:" >&5
2027
cat conftest.$ac_ext >&5
2029
echo "$ac_t""no" 1>&6
2033
echo $ac_n "checking for sigemptyset""... $ac_c" 1>&6
2034
echo "configure:2035: checking for sigemptyset" >&5
2035
cat > conftest.$ac_ext <<EOF
2036
#line 2037 "configure"
2037
#include "confdefs.h"
2042
sigset_t s; sigemptyset(&s);
2045
if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2048
#define HAVE_SIGEMPTYSET 1
2052
echo "configure: failed program was:" >&5
2053
cat conftest.$ac_ext >&5
2055
echo "$ac_t""no" 1>&6
2060
echo $ac_n "checking for errno""... $ac_c" 1>&6
2061
echo "configure:2062: checking for errno" >&5
2062
cat > conftest.$ac_ext <<EOF
2063
#line 2064 "configure"
2064
#include "confdefs.h"
2070
static int x; x = errno;
2073
if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075
echo "$ac_t""yes - in errno.h" 1>&6; cat >> confdefs.h <<\EOF
2076
#define HAVE_ERRNO 1
2080
echo "configure: failed program was:" >&5
2081
cat conftest.$ac_ext >&5
2084
if test $have_errno = no; then
2085
cat > conftest.$ac_ext <<EOF
2086
#line 2087 "configure"
2087
#include "confdefs.h"
2093
extern int errno; static int x; x = errno;
2096
if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2098
echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
2099
#define HAVE_ERRNO 1
2101
cat >> confdefs.h <<\EOF
2102
#define MUST_DEFINE_ERRNO 1
2106
echo "configure: failed program was:" >&5
2107
cat conftest.$ac_ext >&5
2109
echo "$ac_t""no" 1>&6
2114
echo $ac_n "checking for locale""... $ac_c" 1>&6
2115
echo "configure:2116: checking for locale" >&5
2116
cat > conftest.$ac_ext <<EOF
2117
#line 2118 "configure"
2118
#include "confdefs.h"
2122
setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
2125
if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2127
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2128
#define HAVE_LOCALE 1
2132
echo "configure: failed program was:" >&5
2133
cat conftest.$ac_ext >&5
2135
echo "$ac_t""no" 1>&6
2138
echo $ac_n "checking for ctype functions""... $ac_c" 1>&6
2139
echo "configure:2140: checking for ctype functions" >&5
2140
cat > conftest.$ac_ext <<EOF
2141
#line 2142 "configure"
2142
#include "confdefs.h"
2148
static int x; x = isupper(x); x = tolower(x); x = toupper(x);
2151
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2154
#define HAVE_UPPER_LOWER 1
2158
echo "configure: failed program was:" >&5
2159
cat conftest.$ac_ext >&5
2161
echo "$ac_t""no" 1>&6
2166
echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6
2167
echo "configure:2168: checking termcap for ospeed" >&5
2168
cat > conftest.$ac_ext <<EOF
2169
#line 2170 "configure"
2170
#include "confdefs.h"
2172
#include <sys/types.h>
2174
#include <termios.h>
2177
#include <termcap.h>
2183
if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185
echo "$ac_t""yes - in termcap.h" 1>&6; cat >> confdefs.h <<\EOF
2186
#define HAVE_OSPEED 1
2190
echo "configure: failed program was:" >&5
2191
cat conftest.$ac_ext >&5
2194
if test $have_ospeed = no; then
2195
cat > conftest.$ac_ext <<EOF
2196
#line 2197 "configure"
2197
#include "confdefs.h"
2200
extern short ospeed; ospeed = 0;
2203
if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205
echo "$ac_t""yes - must define" 1>&6; cat >> confdefs.h <<\EOF
2206
#define HAVE_OSPEED 1
2208
cat >> confdefs.h <<\EOF
2209
#define MUST_DEFINE_OSPEED 1
2213
echo "configure: failed program was:" >&5
2214
cat conftest.$ac_ext >&5
2216
echo "$ac_t""no" 1>&6
2222
have_posix_regex=unknown
2223
echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2224
echo "configure:2225: checking for regcomp" >&5
2227
# Check whether --with-regex or --without-regex was given.
2228
if test "${with_regex+set}" = set; then
2229
withval="$with_regex"
2230
WANT_REGEX="$withval"
2234
if test $have_regex = no; then
2235
if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
2236
if test "$cross_compiling" = yes; then
2237
have_posix_regex=unknown
2239
cat > conftest.$ac_ext <<EOF
2240
#line 2241 "configure"
2241
#include "confdefs.h"
2243
#include <sys/types.h>
2245
main() { regex_t r; regmatch_t rm; char *text = "xabcy";
2246
if (regcomp(&r, "abc", 0)) exit(1);
2247
if (regexec(&r, text, 1, &rm, 0)) exit(1);
2249
if (rm.rm_so != 1) exit(1); /* check for correct offset */
2251
if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
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
have_posix_regex=yes
2259
echo "configure: failed program was:" >&5
2260
cat conftest.$ac_ext >&5
2267
if test $have_posix_regex = yes; then
2268
echo "$ac_t""using POSIX regcomp" 1>&6
2269
cat >> confdefs.h <<\EOF
2270
#define HAVE_POSIX_REGCOMP 1
2274
elif test $have_posix_regex = unknown; then
2275
cat > conftest.$ac_ext <<EOF
2276
#line 2277 "configure"
2277
#include "confdefs.h"
2279
#include <sys/types.h>
2282
regex_t *r; regfree(r);
2285
if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287
echo "$ac_t""using POSIX regcomp" 1>&6
2288
cat >> confdefs.h <<\EOF
2289
#define HAVE_POSIX_REGCOMP 1
2293
echo "configure: failed program was:" >&5
2294
cat conftest.$ac_ext >&5
2298
echo "$ac_t""no" 1>&6
2303
if test $have_regex = no; then
2304
if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
2305
echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2306
echo "configure:2307: checking for pcre_compile in -lpcre" >&5
2307
ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2308
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2309
echo $ac_n "(cached) $ac_c" 1>&6
2311
ac_save_LIBS="$LIBS"
2313
cat > conftest.$ac_ext <<EOF
2314
#line 2315 "configure"
2315
#include "confdefs.h"
2316
/* Override any gcc2 internal prototype to avoid an error. */
2317
/* We use char because int might match the return type of a gcc2
2318
builtin and then its argument prototype would still apply. */
2319
char pcre_compile();
2325
if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327
eval "ac_cv_lib_$ac_lib_var=yes"
2329
echo "configure: failed program was:" >&5
2330
cat conftest.$ac_ext >&5
2332
eval "ac_cv_lib_$ac_lib_var=no"
2335
LIBS="$ac_save_LIBS"
2338
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2339
echo "$ac_t""yes" 1>&6
2340
echo "$ac_t""using pcre" 1>&6; cat >> confdefs.h <<\EOF
2343
LIBS="$LIBS -lpcre" have_regex=yes
2345
echo "$ac_t""no" 1>&6
2351
if test $have_regex = no; then
2352
if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
2353
echo $ac_n "checking for regcmp""... $ac_c" 1>&6
2354
echo "configure:2355: checking for regcmp" >&5
2355
if eval "test \"`echo '$''{'ac_cv_func_regcmp'+set}'`\" = set"; then
2356
echo $ac_n "(cached) $ac_c" 1>&6
2358
cat > conftest.$ac_ext <<EOF
2359
#line 2360 "configure"
2360
#include "confdefs.h"
2361
/* System header to define __stub macros and hopefully few prototypes,
2362
which can conflict with char regcmp(); below. */
2364
/* Override any gcc2 internal prototype to avoid an error. */
2365
/* We use char because int might match the return type of a gcc2
2366
builtin and then its argument prototype would still apply. */
2371
/* The GNU C library defines this for functions which it implements
2372
to always fail with ENOSYS. Some functions are actually named
2373
something starting with __ and the normal name is an alias. */
2374
#if defined (__stub_regcmp) || defined (__stub___regcmp)
2382
if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384
eval "ac_cv_func_regcmp=yes"
2386
echo "configure: failed program was:" >&5
2387
cat conftest.$ac_ext >&5
2389
eval "ac_cv_func_regcmp=no"
2394
if eval "test \"`echo '$ac_cv_func_'regcmp`\" = yes"; then
2395
echo "$ac_t""yes" 1>&6
2396
echo "$ac_t""using regcmp" 1>&6; cat >> confdefs.h <<\EOF
2397
#define HAVE_REGCMP 1
2401
echo "$ac_t""no" 1>&6
2407
if test $have_regex = no; then
2408
if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
2409
cat > conftest.$ac_ext <<EOF
2410
#line 2411 "configure"
2411
#include "confdefs.h"
2418
if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420
echo "$ac_t""using V8 regcomp" 1>&6; cat >> confdefs.h <<\EOF
2421
#define HAVE_V8_REGCOMP 1
2425
echo "configure: failed program was:" >&5
2426
cat conftest.$ac_ext >&5
2432
if test $have_regex = no && test -f ${srcdir}/regexp.c; then
2433
if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
2434
echo "$ac_t""using V8 regcomp -- local source" 1>&6; cat >> confdefs.h <<\EOF
2435
#define HAVE_V8_REGCOMP 1
2437
cat >> confdefs.h <<\EOF
2438
#define HAVE_REGEXEC2 1
2440
REGEX_O='regexp.$(O)' have_regex=yes
2444
if test $have_regex = no; then
2445
if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
2446
echo "$ac_t""using re_comp" 1>&6; echo $ac_n "checking for re_comp""... $ac_c" 1>&6
2447
echo "configure:2448: checking for re_comp" >&5
2448
if eval "test \"`echo '$''{'ac_cv_func_re_comp'+set}'`\" = set"; then
2449
echo $ac_n "(cached) $ac_c" 1>&6
2451
cat > conftest.$ac_ext <<EOF
2452
#line 2453 "configure"
2453
#include "confdefs.h"
2454
/* System header to define __stub macros and hopefully few prototypes,
2455
which can conflict with char re_comp(); below. */
2457
/* Override any gcc2 internal prototype to avoid an error. */
2458
/* We use char because int might match the return type of a gcc2
2459
builtin and then its argument prototype would still apply. */
2464
/* The GNU C library defines this for functions which it implements
2465
to always fail with ENOSYS. Some functions are actually named
2466
something starting with __ and the normal name is an alias. */
2467
#if defined (__stub_re_comp) || defined (__stub___re_comp)
2475
if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477
eval "ac_cv_func_re_comp=yes"
2479
echo "configure: failed program was:" >&5
2480
cat conftest.$ac_ext >&5
2482
eval "ac_cv_func_re_comp=no"
2487
if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then
2488
echo "$ac_t""yes" 1>&6
2489
cat >> confdefs.h <<\EOF
2490
#define HAVE_RE_COMP 1
2494
echo "$ac_t""no" 1>&6
2500
if test $have_regex = no; then
2501
echo "$ac_t""cannot find regular expression library" 1>&6; cat >> confdefs.h <<\EOF
2507
# Check whether --with-editor or --without-editor was given.
2508
if test "${with_editor+set}" = set; then
2509
withval="$with_editor"
2510
cat >> confdefs.h <<EOF
2511
#define EDIT_PGM "$withval"
2518
cat > confcache <<\EOF
2519
# This file is a shell script that caches the results of configure
2520
# tests run on this system so they can be shared between configure
2521
# scripts and configure runs. It is not useful on other systems.
2522
# If it contains results you don't want to keep, you may remove or edit it.
2524
# By default, configure uses ./config.cache as the cache file,
2525
# creating it if it does not exist already. You can give configure
2526
# the --cache-file=FILE option to use a different cache file; that is
2527
# what configure does when it calls configure scripts in
2528
# subdirectories, so they share the cache.
2529
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2530
# config.status only pays attention to the cache file if you give it the
2531
# --recheck option to rerun configure.
2534
# The following way of writing the cache mishandles newlines in values,
2535
# but we know of no workaround that is simple, portable, and efficient.
2536
# So, don't put newlines in cache variables' values.
2537
# Ultrix sh set writes to stderr and can't be redirected directly,
2538
# and sets the high bit in the cache file unless we assign to the vars.
2540
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2542
# `set' does not quote correctly, so add quotes (double-quote substitution
2543
# turns \\\\ into \\, and sed turns \\ into \).
2545
-e "s/'/'\\\\''/g" \
2546
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2549
# `set' quotes correctly as required by POSIX, so do not add quotes.
2550
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2553
if cmp -s $cache_file confcache; then
2556
if test -w $cache_file; then
2557
echo "updating cache $cache_file"
2558
cat confcache > $cache_file
2560
echo "not updating unwritable cache $cache_file"
2565
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2567
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2568
# Let make expand exec_prefix.
2569
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2571
# Any assignment to VPATH causes Sun make to only execute
2572
# the first set of double-colon rules, so remove it if not needed.
2573
# If there is a colon in the path, we need to keep it.
2574
if test "x$srcdir" = x.; then
2575
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2578
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2580
DEFS=-DHAVE_CONFIG_H
2582
# Without the "./", some shells look in PATH for config.status.
2583
: ${CONFIG_STATUS=./config.status}
2585
echo creating $CONFIG_STATUS
2586
rm -f $CONFIG_STATUS
2587
cat > $CONFIG_STATUS <<EOF
2589
# Generated automatically by configure.
2590
# Run this file to recreate the current configuration.
2591
# This directory was configured as follows,
2592
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2594
# $0 $ac_configure_args
2596
# Compiler output produced by configure, useful for debugging
2597
# configure, is in ./config.log if it exists.
2599
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2602
case "\$ac_option" in
2603
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2604
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2605
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2606
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2607
echo "$CONFIG_STATUS generated by autoconf version 2.13"
2609
-help | --help | --hel | --he | --h)
2610
echo "\$ac_cs_usage"; exit 0 ;;
2611
*) echo "\$ac_cs_usage"; exit 1 ;;
2615
ac_given_srcdir=$srcdir
2616
ac_given_INSTALL="$INSTALL"
2618
trap 'rm -fr `echo "Makefile defines.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2620
cat >> $CONFIG_STATUS <<EOF
2622
# Protect against being on the right side of a sed subst in config.status.
2623
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2624
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2628
s%@CFLAGS@%$CFLAGS%g
2629
s%@CPPFLAGS@%$CPPFLAGS%g
2630
s%@CXXFLAGS@%$CXXFLAGS%g
2631
s%@FFLAGS@%$FFLAGS%g
2633
s%@LDFLAGS@%$LDFLAGS%g
2635
s%@exec_prefix@%$exec_prefix%g
2636
s%@prefix@%$prefix%g
2637
s%@program_transform_name@%$program_transform_name%g
2638
s%@bindir@%$bindir%g
2639
s%@sbindir@%$sbindir%g
2640
s%@libexecdir@%$libexecdir%g
2641
s%@datadir@%$datadir%g
2642
s%@sysconfdir@%$sysconfdir%g
2643
s%@sharedstatedir@%$sharedstatedir%g
2644
s%@localstatedir@%$localstatedir%g
2645
s%@libdir@%$libdir%g
2646
s%@includedir@%$includedir%g
2647
s%@oldincludedir@%$oldincludedir%g
2648
s%@infodir@%$infodir%g
2649
s%@mandir@%$mandir%g
2652
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2653
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2654
s%@INSTALL_DATA@%$INSTALL_DATA%g
2655
s%@REGEX_O@%$REGEX_O%g
2660
cat >> $CONFIG_STATUS <<\EOF
2662
# Split the substitutions into bite-sized pieces for seds with
2663
# small command number limits, like on Digital OSF/1 and HP-UX.
2664
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2665
ac_file=1 # Number of current file.
2666
ac_beg=1 # First line for current file.
2667
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2670
while $ac_more_lines; do
2671
if test $ac_beg -gt 1; then
2672
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2674
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2676
if test ! -s conftest.s$ac_file; then
2678
rm -f conftest.s$ac_file
2680
if test -z "$ac_sed_cmds"; then
2681
ac_sed_cmds="sed -f conftest.s$ac_file"
2683
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2685
ac_file=`expr $ac_file + 1`
2687
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2690
if test -z "$ac_sed_cmds"; then
2695
cat >> $CONFIG_STATUS <<EOF
2697
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2699
cat >> $CONFIG_STATUS <<\EOF
2700
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2701
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2703
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2704
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2705
*) ac_file_in="${ac_file}.in" ;;
2708
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2710
# Remove last slash and all that follows it. Not all systems have dirname.
2711
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2712
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2713
# The file is in a subdirectory.
2714
test ! -d "$ac_dir" && mkdir "$ac_dir"
2715
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2716
# A "../" for each directory in $ac_dir_suffix.
2717
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2719
ac_dir_suffix= ac_dots=
2722
case "$ac_given_srcdir" in
2724
if test -z "$ac_dots"; then top_srcdir=.
2725
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2726
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2728
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2729
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2732
case "$ac_given_INSTALL" in
2733
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2734
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2737
echo creating "$ac_file"
2739
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2741
*Makefile*) ac_comsub="1i\\
2742
# $configure_input" ;;
2746
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2748
s%@configure_input@%$configure_input%g
2749
s%@srcdir@%$srcdir%g
2750
s%@top_srcdir@%$top_srcdir%g
2751
s%@INSTALL@%$INSTALL%g
2752
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2756
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2757
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2759
# ac_d sets the value in "#define NAME VALUE" lines.
2760
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2761
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2764
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2765
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2766
ac_uB='\([ ]\)%\1#\2define\3'
2769
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2770
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2771
ac_eB='$%\1#\2define\3'
2775
if test "${CONFIG_HEADERS+set}" != set; then
2777
cat >> $CONFIG_STATUS <<EOF
2778
CONFIG_HEADERS="defines.h"
2780
cat >> $CONFIG_STATUS <<\EOF
2782
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2783
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2785
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2786
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2787
*) ac_file_in="${ac_file}.in" ;;
2790
echo creating $ac_file
2792
rm -f conftest.frag conftest.in conftest.out
2793
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2794
cat $ac_file_inputs > conftest.in
2798
# Transform confdefs.h into a sed script conftest.vals that substitutes
2799
# the proper values into config.h.in to produce config.h. And first:
2800
# Protect against being on the right side of a sed subst in config.status.
2801
# Protect against being in an unquoted here document in config.status.
2803
cat > conftest.hdr <<\EOF
2806
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2810
sed -n -f conftest.hdr confdefs.h > conftest.vals
2813
# This sed command replaces #undef with comments. This is necessary, for
2814
# example, in the case of _POSIX_SOURCE, which is predefined and required
2815
# on some systems where configure will not decide to define it.
2816
cat >> conftest.vals <<\EOF
2817
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2820
# Break up conftest.vals because some shells have a limit on
2821
# the size of here documents, and old seds have small limits too.
2826
ac_lines=`grep -c . conftest.vals`
2827
# grep -c gives empty output for an empty file on some AIX systems.
2828
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2829
# Write a limited-size here document to conftest.frag.
2830
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2831
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2833
sed -f conftest.frag conftest.in > conftest.out
2835
mv conftest.out conftest.in
2837
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2839
mv conftest.tail conftest.vals
2843
cat >> $CONFIG_STATUS <<\EOF
2844
rm -f conftest.frag conftest.h
2845
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2846
cat conftest.in >> conftest.h
2848
if cmp -s $ac_file conftest.h 2>/dev/null; then
2849
echo "$ac_file is unchanged"
2852
# Remove last slash and all that follows it. Not all systems have dirname.
2853
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2854
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2855
# The file is in a subdirectory.
2856
test ! -d "$ac_dir" && mkdir "$ac_dir"
2859
mv conftest.h $ac_file
2864
cat >> $CONFIG_STATUS <<EOF
2867
cat >> $CONFIG_STATUS <<\EOF
2871
chmod +x $CONFIG_STATUS
2872
rm -fr confdefs* $ac_clean_files
2873
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1