3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.12
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
# Initialize some variables set by options.
16
# The variables have the same names as the options, with
17
# dashes changed to underlines.
19
cache_file=./config.cache
28
program_transform_name=s,x,x,
36
bindir='${exec_prefix}/bin'
37
sbindir='${exec_prefix}/sbin'
38
libexecdir='${exec_prefix}/libexec'
39
datadir='${prefix}/share'
40
sysconfdir='${prefix}/etc'
41
sharedstatedir='${prefix}/com'
42
localstatedir='${prefix}/var'
43
libdir='${exec_prefix}/lib'
44
includedir='${prefix}/include'
45
oldincludedir='/usr/include'
46
infodir='${prefix}/info'
47
mandir='${prefix}/man'
49
# Initialize some other variables.
52
# Maximum number of lines to put in a shell here document.
59
# If the previous option needs an argument, assign it.
60
if test -n "$ac_prev"; then
61
eval "$ac_prev=\$ac_option"
67
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71
# Accept the important Cygnus configure options, so we can diagnose typos.
75
-bindir | --bindir | --bindi | --bind | --bin | --bi)
77
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78
bindir="$ac_optarg" ;;
80
-build | --build | --buil | --bui | --bu)
82
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
85
-cache-file | --cache-file | --cache-fil | --cache-fi \
86
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90
cache_file="$ac_optarg" ;;
92
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96
datadir="$ac_optarg" ;;
98
-disable-* | --disable-*)
99
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100
# Reject names that are not valid shell variable names.
101
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105
eval "enable_${ac_feature}=no" ;;
107
-enable-* | --enable-*)
108
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109
# Reject names that are not valid shell variable names.
110
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118
eval "enable_${ac_feature}='$ac_optarg'" ;;
120
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122
| --exec | --exe | --ex)
123
ac_prev=exec_prefix ;;
124
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126
| --exec=* | --exe=* | --ex=*)
127
exec_prefix="$ac_optarg" ;;
129
-gas | --gas | --ga | --g)
130
# Obsolete; use --with-gas.
133
-help | --help | --hel | --he)
134
# Omit some internal or obsolete options to make the list less imposing.
135
# This message is too long to be a string in the A/UX 3.1 sh.
137
Usage: configure [options] [host]
138
Options: [defaults in brackets after descriptions]
140
--cache-file=FILE cache test results in FILE
141
--help print this message
142
--no-create do not create output files
143
--quiet, --silent do not print \`checking...' messages
144
--version print the version of autoconf that created configure
145
Directory and file names:
146
--prefix=PREFIX install architecture-independent files in PREFIX
148
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150
--bindir=DIR user executables in DIR [EPREFIX/bin]
151
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153
--datadir=DIR read-only architecture-independent data in DIR
155
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156
--sharedstatedir=DIR modifiable architecture-independent data in DIR
158
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
160
--includedir=DIR C header files in DIR [PREFIX/include]
161
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162
--infodir=DIR info documentation in DIR [PREFIX/info]
163
--mandir=DIR man documentation in DIR [PREFIX/man]
164
--srcdir=DIR find the sources in DIR [configure dir or ..]
165
--program-prefix=PREFIX prepend PREFIX to installed program names
166
--program-suffix=SUFFIX append SUFFIX to installed program names
167
--program-transform-name=PROGRAM
168
run sed PROGRAM on installed program names
172
--build=BUILD configure for building on BUILD [BUILD=HOST]
173
--host=HOST configure for HOST [guessed]
174
--target=TARGET configure for TARGET [TARGET=HOST]
175
Features and packages:
176
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180
--x-includes=DIR X include files are in DIR
181
--x-libraries=DIR X library files are in DIR
183
if test -n "$ac_help"; then
184
echo "--enable and --with options recognized:$ac_help"
188
-host | --host | --hos | --ho)
190
-host=* | --host=* | --hos=* | --ho=*)
193
-includedir | --includedir | --includedi | --included | --include \
194
| --includ | --inclu | --incl | --inc)
195
ac_prev=includedir ;;
196
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197
| --includ=* | --inclu=* | --incl=* | --inc=*)
198
includedir="$ac_optarg" ;;
200
-infodir | --infodir | --infodi | --infod | --info | --inf)
202
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203
infodir="$ac_optarg" ;;
205
-libdir | --libdir | --libdi | --libd)
207
-libdir=* | --libdir=* | --libdi=* | --libd=*)
208
libdir="$ac_optarg" ;;
210
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211
| --libexe | --libex | --libe)
212
ac_prev=libexecdir ;;
213
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214
| --libexe=* | --libex=* | --libe=*)
215
libexecdir="$ac_optarg" ;;
217
-localstatedir | --localstatedir | --localstatedi | --localstated \
218
| --localstate | --localstat | --localsta | --localst \
219
| --locals | --local | --loca | --loc | --lo)
220
ac_prev=localstatedir ;;
221
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
223
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224
localstatedir="$ac_optarg" ;;
226
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229
mandir="$ac_optarg" ;;
232
# Obsolete; use --without-fp.
235
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
239
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
240
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245
| --oldin | --oldi | --old | --ol | --o)
246
ac_prev=oldincludedir ;;
247
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250
oldincludedir="$ac_optarg" ;;
252
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255
prefix="$ac_optarg" ;;
257
-program-prefix | --program-prefix | --program-prefi | --program-pref \
258
| --program-pre | --program-pr | --program-p)
259
ac_prev=program_prefix ;;
260
-program-prefix=* | --program-prefix=* | --program-prefi=* \
261
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262
program_prefix="$ac_optarg" ;;
264
-program-suffix | --program-suffix | --program-suffi | --program-suff \
265
| --program-suf | --program-su | --program-s)
266
ac_prev=program_suffix ;;
267
-program-suffix=* | --program-suffix=* | --program-suffi=* \
268
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269
program_suffix="$ac_optarg" ;;
271
-program-transform-name | --program-transform-name \
272
| --program-transform-nam | --program-transform-na \
273
| --program-transform-n | --program-transform- \
274
| --program-transform | --program-transfor \
275
| --program-transfo | --program-transf \
276
| --program-trans | --program-tran \
277
| --progr-tra | --program-tr | --program-t)
278
ac_prev=program_transform_name ;;
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
program_transform_name="$ac_optarg" ;;
288
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
289
| -silent | --silent | --silen | --sile | --sil)
292
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296
sbindir="$ac_optarg" ;;
298
-sharedstatedir | --sharedstatedir | --sharedstatedi \
299
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300
| --sharedst | --shareds | --shared | --share | --shar \
302
ac_prev=sharedstatedir ;;
303
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307
sharedstatedir="$ac_optarg" ;;
309
-site | --site | --sit)
311
-site=* | --site=* | --sit=*)
314
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317
srcdir="$ac_optarg" ;;
319
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320
| --syscon | --sysco | --sysc | --sys | --sy)
321
ac_prev=sysconfdir ;;
322
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324
sysconfdir="$ac_optarg" ;;
326
-target | --target | --targe | --targ | --tar | --ta | --t)
328
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329
target="$ac_optarg" ;;
331
-v | -verbose | --verbose | --verbos | --verbo | --verb)
334
-version | --version | --versio | --versi | --vers)
335
echo "configure generated by autoconf version 2.12"
339
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340
# Reject names that are not valid shell variable names.
341
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344
ac_package=`echo $ac_package| sed 's/-/_/g'`
349
eval "with_${ac_package}='$ac_optarg'" ;;
351
-without-* | --without-*)
352
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353
# Reject names that are not valid shell variable names.
354
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357
ac_package=`echo $ac_package| sed 's/-/_/g'`
358
eval "with_${ac_package}=no" ;;
361
# Obsolete; use --with-x.
364
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365
| --x-incl | --x-inc | --x-in | --x-i)
366
ac_prev=x_includes ;;
367
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369
x_includes="$ac_optarg" ;;
371
-x-libraries | --x-libraries | --x-librarie | --x-librari \
372
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373
ac_prev=x_libraries ;;
374
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376
x_libraries="$ac_optarg" ;;
378
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383
echo "configure: warning: $ac_option: invalid host type" 1>&2
385
if test "x$nonopt" != xNONE; then
386
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394
if test -n "$ac_prev"; then
395
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
# File descriptor usage:
403
# 2 errors and warnings
404
# 3 some systems may open it to /dev/tty
405
# 4 used on the Kubota Titan
406
# 6 checking for... messages and results
407
# 5 compiler messages saved in config.log
408
if test "$silent" = yes; then
416
This file contains any messages produced by compilers while
417
running configure, to aid debugging if configure makes a mistake.
420
# Strip out --no-create and --no-recursion so they do not pile up.
421
# Also quote any args containing shell metacharacters.
426
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
427
| --no-cr | --no-c) ;;
428
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
429
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
437
# Only set LANG and LC_ALL to C if already set.
438
# These must not be set unconditionally because not all systems understand
439
# e.g. LANG=C (notably SCO).
440
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
441
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443
# confdefs.h avoids OS command line length limits that DEFS can exceed.
444
rm -rf conftest* confdefs.h
445
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
448
# A filename unique to this package, relative to the directory that
449
# configure is in, which we can look for to find out if srcdir is correct.
450
ac_unique_file=READ_ME.WEB
452
# Set various FWEB environment variables.
453
if test -z "$CONFIGURE_INI"; then
454
CONFIGURE_INI=./configure.ini
458
# Find the source files, if location was not specified.
459
if test -z "$srcdir"; then
460
ac_srcdir_defaulted=yes
461
# Try the directory containing this script, then its parent.
463
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466
if test ! -r $srcdir/$ac_unique_file; then
470
ac_srcdir_defaulted=no
472
if test ! -r $srcdir/$ac_unique_file; then
473
if test "$ac_srcdir_defaulted" = yes; then
474
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
# Prefer explicitly selected file to automatically selected ones.
482
if test -z "$CONFIG_SITE"; then
483
if test "x$prefix" != xNONE; then
484
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489
for ac_site_file in $CONFIG_SITE; do
490
if test -r "$ac_site_file"; then
491
echo "loading site script $ac_site_file"
496
if test -r "$cache_file"; then
497
echo "loading cache $cache_file"
500
echo "creating cache $cache_file"
505
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506
ac_cpp='$CPP $CPPFLAGS'
507
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509
cross_compiling=$ac_cv_prog_cc_cross
511
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520
ac_n= ac_c='\c' ac_t=
525
# Extract the first word of "gcc", so it can be a program name with args.
526
set dummy gcc; ac_word=$2
527
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
528
echo "configure:529: checking for $ac_word" >&5
529
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
530
echo $ac_n "(cached) $ac_c" 1>&6
532
if test -n "$CC"; then
533
ac_cv_prog_CC="$CC" # Let the user override the test.
535
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
536
for ac_dir in $PATH; do
537
test -z "$ac_dir" && ac_dir=.
538
if test -f $ac_dir/$ac_word; then
547
if test -n "$CC"; then
548
echo "$ac_t""$CC" 1>&6
550
echo "$ac_t""no" 1>&6
553
if test -z "$CC"; then
554
# Extract the first word of "cc", so it can be a program name with args.
555
set dummy cc; ac_word=$2
556
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557
echo "configure:558: checking for $ac_word" >&5
558
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
559
echo $ac_n "(cached) $ac_c" 1>&6
561
if test -n "$CC"; then
562
ac_cv_prog_CC="$CC" # Let the user override the test.
564
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
566
for ac_dir in $PATH; do
567
test -z "$ac_dir" && ac_dir=.
568
if test -f $ac_dir/$ac_word; then
569
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
578
if test $ac_prog_rejected = yes; then
579
# We found a bogon in the path, so make sure we never use it.
580
set dummy $ac_cv_prog_CC
582
if test $# -gt 0; then
583
# We chose a different compiler from the bogus one.
584
# However, it has the same basename, so the bogon will be chosen
585
# first if we set CC to just the basename; use the full file name.
587
set dummy "$ac_dir/$ac_word" "$@"
595
if test -n "$CC"; then
596
echo "$ac_t""$CC" 1>&6
598
echo "$ac_t""no" 1>&6
601
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
604
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
605
echo "configure:606: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
608
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
609
ac_cpp='$CPP $CPPFLAGS'
610
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
611
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
612
cross_compiling=$ac_cv_prog_cc_cross
614
cat > conftest.$ac_ext <<EOF
615
#line 616 "configure"
616
#include "confdefs.h"
619
if { (eval echo configure:620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
620
ac_cv_prog_cc_works=yes
621
# If we can't run a trivial program, we are probably using a cross compiler.
622
if (./conftest; exit) 2>/dev/null; then
623
ac_cv_prog_cc_cross=no
625
ac_cv_prog_cc_cross=yes
628
echo "configure: failed program was:" >&5
629
cat conftest.$ac_ext >&5
630
ac_cv_prog_cc_works=no
634
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
635
if test $ac_cv_prog_cc_works = no; then
636
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
638
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
639
echo "configure:640: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
640
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
641
cross_compiling=$ac_cv_prog_cc_cross
643
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
644
echo "configure:645: checking whether we are using GNU C" >&5
645
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
646
echo $ac_n "(cached) $ac_c" 1>&6
648
cat > conftest.c <<EOF
653
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
660
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
662
if test $ac_cv_prog_gcc = yes; then
664
ac_test_CFLAGS="${CFLAGS+set}"
665
ac_save_CFLAGS="$CFLAGS"
667
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
668
echo "configure:669: checking whether ${CC-cc} accepts -g" >&5
669
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
670
echo $ac_n "(cached) $ac_c" 1>&6
672
echo 'void f(){}' > conftest.c
673
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
682
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
683
if test "$ac_test_CFLAGS" = set; then
684
CFLAGS="$ac_save_CFLAGS"
685
elif test $ac_cv_prog_cc_g = yes; then
692
test "${CFLAGS+set}" = set || CFLAGS="-g"
695
if test -n "$GCC"; then
700
echo CFLAGS = $CFLAGS
701
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
702
echo "configure:703: checking how to run the C preprocessor" >&5
703
# On Suns, sometimes $CPP names a directory.
704
if test -n "$CPP" && test -d "$CPP"; then
707
if test -z "$CPP"; then
708
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
709
echo $ac_n "(cached) $ac_c" 1>&6
711
# This must be in double quotes, not single quotes, because CPP may get
712
# substituted into the Makefile and "${CC-cc}" will confuse make.
714
# On the NeXT, cc -E runs the code through the compiler's parser,
715
# not just through cpp.
716
cat > conftest.$ac_ext <<EOF
717
#line 718 "configure"
718
#include "confdefs.h"
722
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
723
{ (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
724
ac_err=`grep -v '^ *+' conftest.out`
725
if test -z "$ac_err"; then
729
echo "configure: failed program was:" >&5
730
cat conftest.$ac_ext >&5
732
CPP="${CC-cc} -E -traditional-cpp"
733
cat > conftest.$ac_ext <<EOF
734
#line 735 "configure"
735
#include "confdefs.h"
739
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
740
{ (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
741
ac_err=`grep -v '^ *+' conftest.out`
742
if test -z "$ac_err"; then
746
echo "configure: failed program was:" >&5
747
cat conftest.$ac_ext >&5
754
ac_cv_prog_CPP="$CPP"
756
CPP="$ac_cv_prog_CPP"
758
ac_cv_prog_CPP="$CPP"
760
echo "$ac_t""$CPP" 1>&6
762
cat >> confdefs.h <<EOF
763
#define RUN_CPP "$CPP"
767
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
768
if test -f $ac_dir/install-sh; then
770
ac_install_sh="$ac_aux_dir/install-sh -c"
772
elif test -f $ac_dir/install.sh; then
774
ac_install_sh="$ac_aux_dir/install.sh -c"
778
if test -z "$ac_aux_dir"; then
779
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
781
ac_config_guess=$ac_aux_dir/config.guess
782
ac_config_sub=$ac_aux_dir/config.sub
783
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
785
# Find a good install program. We prefer a C program (faster),
786
# so one script is as good as another. But avoid the broken or
787
# incompatible versions:
788
# SysV /etc/install, /usr/sbin/install
789
# SunOS /usr/etc/install
792
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
793
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
794
# ./install, which can be erroneously created by make from ./install.sh.
795
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
796
echo "configure:797: checking for a BSD compatible install" >&5
797
if test -z "$INSTALL"; then
798
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
799
echo $ac_n "(cached) $ac_c" 1>&6
801
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
802
for ac_dir in $PATH; do
803
# Account for people who put trailing slashes in PATH elements.
805
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
807
# OSF1 and SCO ODT 3.0 have their own names for install.
808
for ac_prog in ginstall installbsd scoinst install; do
809
if test -f $ac_dir/$ac_prog; then
810
if test $ac_prog = install &&
811
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
812
# AIX install. It has an incompatible calling convention.
813
# OSF/1 installbsd also uses dspmsg, but is usable.
816
ac_cv_path_install="$ac_dir/$ac_prog -c"
827
if test "${ac_cv_path_install+set}" = set; then
828
INSTALL="$ac_cv_path_install"
830
# As a last resort, use the slow shell script. We don't cache a
831
# path for INSTALL within a source directory, because that will
832
# break other packages using the cache if that directory is
833
# removed, or if the path is relative.
834
INSTALL="$ac_install_sh"
837
echo "$ac_t""$INSTALL" 1>&6
839
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
840
# It thinks the first close brace ends the variable substitution.
841
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
843
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
845
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
846
echo "configure:847: checking for ANSI C header files" >&5
847
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
848
echo $ac_n "(cached) $ac_c" 1>&6
850
cat > conftest.$ac_ext <<EOF
851
#line 852 "configure"
852
#include "confdefs.h"
858
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
859
{ (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
860
ac_err=`grep -v '^ *+' conftest.out`
861
if test -z "$ac_err"; then
863
ac_cv_header_stdc=yes
866
echo "configure: failed program was:" >&5
867
cat conftest.$ac_ext >&5
873
if test $ac_cv_header_stdc = yes; then
874
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
875
cat > conftest.$ac_ext <<EOF
876
#line 877 "configure"
877
#include "confdefs.h"
880
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
881
egrep "memchr" >/dev/null 2>&1; then
891
if test $ac_cv_header_stdc = yes; then
892
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
893
cat > conftest.$ac_ext <<EOF
894
#line 895 "configure"
895
#include "confdefs.h"
898
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
899
egrep "free" >/dev/null 2>&1; then
909
if test $ac_cv_header_stdc = yes; then
910
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
911
if test "$cross_compiling" = yes; then
914
cat > conftest.$ac_ext <<EOF
915
#line 916 "configure"
916
#include "confdefs.h"
918
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
919
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
920
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
921
int main () { int i; for (i = 0; i < 256; i++)
922
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
926
if { (eval echo configure:927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
930
echo "configure: failed program was:" >&5
931
cat conftest.$ac_ext >&5
941
echo "$ac_t""$ac_cv_header_stdc" 1>&6
942
if test $ac_cv_header_stdc = yes; then
943
cat >> confdefs.h <<\EOF
944
#define STDC_HEADERS 1
949
echo $ac_n "checking for common stdio.h prototypes""... $ac_c" 1>&6
950
echo "configure:951: checking for common stdio.h prototypes" >&5
951
cat > conftest.$ac_ext <<EOF
952
#line 953 "configure"
953
#include "confdefs.h"
956
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
957
egrep "fputc" >/dev/null 2>&1; then
959
echo "$ac_t""YES" 1>&6
960
cat >> confdefs.h <<\EOF
961
#define HAVE_STD_PROTOTYPES 1
966
echo "$ac_t""NO---fputc not prototyped; assuming others such as printf aren't as well" 1>&6
970
for ac_hdr in stdlib.h stdarg.h stddef.h string.h memory.h limits.h values.h
972
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
973
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
974
echo "configure:975: checking for $ac_hdr" >&5
975
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
976
echo $ac_n "(cached) $ac_c" 1>&6
978
cat > conftest.$ac_ext <<EOF
979
#line 980 "configure"
980
#include "confdefs.h"
983
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
984
{ (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
985
ac_err=`grep -v '^ *+' conftest.out`
986
if test -z "$ac_err"; then
988
eval "ac_cv_header_$ac_safe=yes"
991
echo "configure: failed program was:" >&5
992
cat conftest.$ac_ext >&5
994
eval "ac_cv_header_$ac_safe=no"
998
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
999
echo "$ac_t""yes" 1>&6
1000
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1001
cat >> confdefs.h <<EOF
1002
#define $ac_tr_hdr 1
1006
echo "$ac_t""no" 1>&6
1010
for ac_hdr in float.h
1012
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1013
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1014
echo "configure:1015: checking for $ac_hdr" >&5
1015
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1016
echo $ac_n "(cached) $ac_c" 1>&6
1018
cat > conftest.$ac_ext <<EOF
1019
#line 1020 "configure"
1020
#include "confdefs.h"
1023
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024
{ (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025
ac_err=`grep -v '^ *+' conftest.out`
1026
if test -z "$ac_err"; then
1028
eval "ac_cv_header_$ac_safe=yes"
1031
echo "configure: failed program was:" >&5
1032
cat conftest.$ac_ext >&5
1034
eval "ac_cv_header_$ac_safe=no"
1038
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1039
echo "$ac_t""yes" 1>&6
1040
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1041
cat >> confdefs.h <<EOF
1042
#define $ac_tr_hdr 1
1046
echo "$ac_t""no" 1>&6
1050
# SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1051
echo $ac_n "checking for ANSI ctype.h""... $ac_c" 1>&6
1052
echo "configure:1053: checking for ANSI ctype.h" >&5
1053
if test "$cross_compiling" = yes; then
1054
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1056
cat > conftest.$ac_ext <<EOF
1057
#line 1058 "configure"
1058
#include "confdefs.h"
1060
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1061
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1062
#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
1063
int main () { int i; for (i = 0; i < 256; i++)
1064
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1068
if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1070
echo "$ac_t""YES" 1>&6
1071
cat >> confdefs.h <<\EOF
1072
#define ANSI_CTYPE_H 1
1076
echo "configure: failed program was:" >&5
1077
cat conftest.$ac_ext >&5
1079
echo "$ac_t""NO" 1>&6
1084
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1085
echo "configure:1086: checking for size_t" >&5
1086
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1087
echo $ac_n "(cached) $ac_c" 1>&6
1089
cat > conftest.$ac_ext <<EOF
1090
#line 1091 "configure"
1091
#include "confdefs.h"
1092
#include <sys/types.h>
1098
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1099
egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1101
ac_cv_type_size_t=yes
1104
ac_cv_type_size_t=no
1109
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1110
if test $ac_cv_type_size_t = no; then
1111
cat >> confdefs.h <<\EOF
1112
#define size_t unsigned
1117
echo $ac_n "checking for clock_t""... $ac_c" 1>&6
1118
echo "configure:1119: checking for clock_t" >&5
1119
if eval "test \"`echo '$''{'ac_cv_type_clock_t'+set}'`\" = set"; then
1120
echo $ac_n "(cached) $ac_c" 1>&6
1122
cat > conftest.$ac_ext <<EOF
1123
#line 1124 "configure"
1124
#include "confdefs.h"
1125
#include <sys/types.h>
1131
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1132
egrep "clock_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1134
ac_cv_type_clock_t=yes
1137
ac_cv_type_clock_t=no
1142
echo "$ac_t""$ac_cv_type_clock_t" 1>&6
1143
if test $ac_cv_type_clock_t = no; then
1144
cat >> confdefs.h <<\EOF
1145
#define clock_t long
1150
for ac_func in getenv tempnam tmpnam strerror
1152
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1153
echo "configure:1154: checking for $ac_func" >&5
1154
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1155
echo $ac_n "(cached) $ac_c" 1>&6
1157
cat > conftest.$ac_ext <<EOF
1158
#line 1159 "configure"
1159
#include "confdefs.h"
1160
/* System header to define __stub macros and hopefully few prototypes,
1161
which can conflict with char $ac_func(); below. */
1163
/* Override any gcc2 internal prototype to avoid an error. */
1164
/* We use char because int might match the return type of a gcc2
1165
builtin and then its argument prototype would still apply. */
1170
/* The GNU C library defines this for functions which it implements
1171
to always fail with ENOSYS. Some functions are actually named
1172
something starting with __ and the normal name is an alias. */
1173
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1181
if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183
eval "ac_cv_func_$ac_func=yes"
1185
echo "configure: failed program was:" >&5
1186
cat conftest.$ac_ext >&5
1188
eval "ac_cv_func_$ac_func=no"
1193
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1194
echo "$ac_t""yes" 1>&6
1195
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1196
cat >> confdefs.h <<EOF
1197
#define $ac_tr_func 1
1201
echo "$ac_t""no" 1>&6
1206
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
1207
echo "configure:1208: checking for gettimeofday" >&5
1208
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
1209
echo $ac_n "(cached) $ac_c" 1>&6
1211
cat > conftest.$ac_ext <<EOF
1212
#line 1213 "configure"
1213
#include "confdefs.h"
1214
/* System header to define __stub macros and hopefully few prototypes,
1215
which can conflict with char gettimeofday(); below. */
1217
/* Override any gcc2 internal prototype to avoid an error. */
1218
/* We use char because int might match the return type of a gcc2
1219
builtin and then its argument prototype would still apply. */
1220
char gettimeofday();
1224
/* The GNU C library defines this for functions which it implements
1225
to always fail with ENOSYS. Some functions are actually named
1226
something starting with __ and the normal name is an alias. */
1227
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
1235
if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1237
eval "ac_cv_func_gettimeofday=yes"
1239
echo "configure: failed program was:" >&5
1240
cat conftest.$ac_ext >&5
1242
eval "ac_cv_func_gettimeofday=no"
1247
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
1248
echo "$ac_t""yes" 1>&6
1249
cat >> confdefs.h <<\EOF
1250
#define HAVE_GETTIMEOFDAY 1
1255
echo "$ac_t""no" 1>&6
1258
if [ ! "$HAVE_GETTIME" ]
1260
for ac_hdr in sys/timeb.h
1262
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1263
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1264
echo "configure:1265: checking for $ac_hdr" >&5
1265
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1266
echo $ac_n "(cached) $ac_c" 1>&6
1268
cat > conftest.$ac_ext <<EOF
1269
#line 1270 "configure"
1270
#include "confdefs.h"
1273
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274
{ (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275
ac_err=`grep -v '^ *+' conftest.out`
1276
if test -z "$ac_err"; then
1278
eval "ac_cv_header_$ac_safe=yes"
1281
echo "configure: failed program was:" >&5
1282
cat conftest.$ac_ext >&5
1284
eval "ac_cv_header_$ac_safe=no"
1288
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1289
echo "$ac_t""yes" 1>&6
1290
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1291
cat >> confdefs.h <<EOF
1292
#define $ac_tr_hdr 1
1296
echo "$ac_t""no" 1>&6
1301
echo $ac_n "checking for working const""... $ac_c" 1>&6
1302
echo "configure:1303: checking for working const" >&5
1303
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1304
echo $ac_n "(cached) $ac_c" 1>&6
1306
cat > conftest.$ac_ext <<EOF
1307
#line 1308 "configure"
1308
#include "confdefs.h"
1312
/* Ultrix mips cc rejects this. */
1313
typedef int charset[2]; const charset x;
1314
/* SunOS 4.1.1 cc rejects this. */
1315
char const *const *ccp;
1317
/* NEC SVR4.0.2 mips cc rejects this. */
1318
struct point {int x, y;};
1319
static struct point const zero = {0,0};
1320
/* AIX XL C 1.02.0.0 rejects this.
1321
It does not let you subtract one const X* pointer from another in an arm
1322
of an if-expression whose if-part is not a constant expression */
1323
const char *g = "string";
1324
ccp = &g + (g ? g-g : 0);
1325
/* HPUX 7.0 cc rejects these. */
1328
ccp = (char const *const *) p;
1329
{ /* SCO 3.2v4 cc rejects this. */
1331
char const *s = 0 ? (char *) 0 : (char const *) 0;
1335
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1337
const int *foo = &x[0];
1340
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1341
typedef const int *iptr;
1345
{ /* AIX XL C 1.02.0.0 rejects this saying
1346
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1347
struct s { int j; const int *ap[3]; };
1348
struct s *b; b->j = 5;
1350
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1356
if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360
echo "configure: failed program was:" >&5
1361
cat conftest.$ac_ext >&5
1368
echo "$ac_t""$ac_cv_c_const" 1>&6
1369
if test $ac_cv_c_const = no; then
1370
cat >> confdefs.h <<\EOF
1376
echo $ac_n "checking for working void""... $ac_c" 1>&6
1377
echo "configure:1378: checking for working void" >&5
1378
if test "$cross_compiling" = yes; then
1379
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1381
cat > conftest.$ac_ext <<EOF
1382
#line 1383 "configure"
1383
#include "confdefs.h"
1395
if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1397
echo "$ac_t""YES" 1>&6
1399
echo "configure: failed program was:" >&5
1400
cat conftest.$ac_ext >&5
1402
echo "$ac_t""NO" 1>&6
1403
cat >> confdefs.h <<\EOF
1411
echo $ac_n "checking for working backslash continuations""... $ac_c" 1>&6
1412
echo "configure:1413: checking for working backslash continuations" >&5
1413
cat > conftest.$ac_ext <<EOF
1414
#line 1415 "configure"
1415
#include "confdefs.h"
1424
if { (eval echo configure:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1426
echo "$ac_t""YES" 1>&6
1428
echo "configure: failed program was:" >&5
1429
cat conftest.$ac_ext >&5
1431
echo "$ac_t""NO" 1>&6
1432
cat >> confdefs.h <<\EOF
1433
#define FANCY_SPLIT 1
1438
echo $ac_n "checking for new-style prototypes""... $ac_c" 1>&6
1439
echo "configure:1440: checking for new-style prototypes" >&5
1440
if test "$cross_compiling" = yes; then
1441
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1443
cat > conftest.$ac_ext <<EOF
1444
#line 1445 "configure"
1445
#include "confdefs.h"
1446
main(int argc,char *argv[])
1452
if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1454
echo "$ac_t""YES" 1>&6
1456
echo "configure: failed program was:" >&5
1457
cat conftest.$ac_ext >&5
1459
echo "$ac_t""NO" 1>&6
1460
cat >> confdefs.h <<\EOF
1461
#define OLD_PROTOTYPES 1
1468
echo $ac_n "checking for ANSI sprintf""... $ac_c" 1>&6
1469
echo "configure:1470: checking for ANSI sprintf" >&5
1470
if test "$cross_compiling" = yes; then
1471
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1473
cat > conftest.$ac_ext <<EOF
1474
#line 1475 "configure"
1475
#include "confdefs.h"
1483
n = sprintf(temp,TEST);
1484
if(n == strlen(TEST))
1491
if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1493
echo "$ac_t""YES" 1>&6
1494
cat >> confdefs.h <<\EOF
1495
#define ANSI_SPRINTF 1
1499
echo "configure: failed program was:" >&5
1500
cat conftest.$ac_ext >&5
1502
echo "$ac_t""NO---doesn't return number of characters written" 1>&6
1507
echo $ac_n "checking for ANSI sscanf""... $ac_c" 1>&6
1508
echo "configure:1509: checking for ANSI sscanf" >&5
1509
if test "$cross_compiling" = yes; then
1510
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1512
cat > conftest.$ac_ext <<EOF
1513
#line 1514 "configure"
1514
#include "confdefs.h"
1518
char temp[] = "{12}{{1.11}{5}}{10}";
1520
char smodno[10], smodno0[10], spageno[10], ssecno[10];
1521
n = sscanf(temp,"%*c%[^}]%*3c%[^}]%*2c%[^}]%*3c%[^}]",
1522
smodno, ssecno, spageno, smodno0);
1524
if(strcmp(smodno,"12") || strcmp(ssecno,"1.11") || strcmp(spageno,"5")
1525
|| strcmp(smodno0,"10"))
1531
if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1533
echo "$ac_t""YES" 1>&6
1534
cat >> confdefs.h <<\EOF
1535
#define ANSI_SSCANF 1
1539
echo "configure: failed program was:" >&5
1540
cat conftest.$ac_ext >&5
1542
echo "$ac_t""NO---doesn't handle scansets correctly" 1>&6
1547
if test -d "/usr/local/lib/texmf/tex"; then
1548
_TEXSUBDIR_=lib/texmf/tex/fweb
1550
_TEXSUBDIR_=lib/tex/inputs
1555
# Extract the first word of "$ac_prog", so it can be a program name with args.
1556
set dummy $ac_prog; ac_word=$2
1557
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558
echo "configure:1559: checking for $ac_word" >&5
1559
if eval "test \"`echo '$''{'ac_cv_prog__INFO_PROG_'+set}'`\" = set"; then
1560
echo $ac_n "(cached) $ac_c" 1>&6
1562
if test -n "$_INFO_PROG_"; then
1563
ac_cv_prog__INFO_PROG_="$_INFO_PROG_" # Let the user override the test.
1565
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1566
for ac_dir in $PATH; do
1567
test -z "$ac_dir" && ac_dir=.
1568
if test -f $ac_dir/$ac_word; then
1569
ac_cv_prog__INFO_PROG_="$ac_prog"
1576
_INFO_PROG_="$ac_cv_prog__INFO_PROG_"
1577
if test -n "$_INFO_PROG_"; then
1578
echo "$ac_t""$_INFO_PROG_" 1>&6
1580
echo "$ac_t""no" 1>&6
1583
test -n "$_INFO_PROG_" && break
1585
if [ -n "$_INFO_PROG_" ]
1587
cat >> confdefs.h <<\EOF
1592
echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
1593
echo "configure:1594: checking for tputs in -ltermcap" >&5
1594
ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
1595
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1596
echo $ac_n "(cached) $ac_c" 1>&6
1598
ac_save_LIBS="$LIBS"
1599
LIBS="-ltermcap $LIBS"
1600
cat > conftest.$ac_ext <<EOF
1601
#line 1602 "configure"
1602
#include "confdefs.h"
1603
/* Override any gcc2 internal prototype to avoid an error. */
1604
/* We use char because int might match the return type of a gcc2
1605
builtin and then its argument prototype would still apply. */
1612
if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1614
eval "ac_cv_lib_$ac_lib_var=yes"
1616
echo "configure: failed program was:" >&5
1617
cat conftest.$ac_ext >&5
1619
eval "ac_cv_lib_$ac_lib_var=no"
1622
LIBS="$ac_save_LIBS"
1625
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1626
echo "$ac_t""yes" 1>&6
1628
LIBS="$LIBS -ltermcap"
1630
echo "$ac_t""no" 1>&6
1631
TERMCAP0=termcap0."$(O)"
1634
cat > confcache <<\EOF
1635
# This file is a shell script that caches the results of configure
1636
# tests run on this system so they can be shared between configure
1637
# scripts and configure runs. It is not useful on other systems.
1638
# If it contains results you don't want to keep, you may remove or edit it.
1640
# By default, configure uses ./config.cache as the cache file,
1641
# creating it if it does not exist already. You can give configure
1642
# the --cache-file=FILE option to use a different cache file; that is
1643
# what configure does when it calls configure scripts in
1644
# subdirectories, so they share the cache.
1645
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1646
# config.status only pays attention to the cache file if you give it the
1647
# --recheck option to rerun configure.
1650
# The following way of writing the cache mishandles newlines in values,
1651
# but we know of no workaround that is simple, portable, and efficient.
1652
# So, don't put newlines in cache variables' values.
1653
# Ultrix sh set writes to stderr and can't be redirected directly,
1654
# and sets the high bit in the cache file unless we assign to the vars.
1656
case `(ac_space=' '; set) 2>&1` in
1658
# `set' does not quote correctly, so add quotes (double-quote substitution
1659
# turns \\\\ into \\, and sed turns \\ into \).
1661
-e "s/'/'\\\\''/g" \
1662
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1665
# `set' quotes correctly as required by POSIX, so do not add quotes.
1666
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1669
if cmp -s $cache_file confcache; then
1672
if test -w $cache_file; then
1673
echo "updating cache $cache_file"
1674
cat confcache > $cache_file
1676
echo "not updating unwritable cache $cache_file"
1681
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1683
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1684
# Let make expand exec_prefix.
1685
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1687
# Any assignment to VPATH causes Sun make to only execute
1688
# the first set of double-colon rules, so remove it if not needed.
1689
# If there is a colon in the path, we need to keep it.
1690
if test "x$srcdir" = x.; then
1691
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1694
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1696
DEFS=-DHAVE_CONFIG_H
1698
# Without the "./", some shells look in PATH for config.status.
1699
: ${CONFIG_STATUS=./config.status}
1701
echo creating $CONFIG_STATUS
1702
rm -f $CONFIG_STATUS
1703
cat > $CONFIG_STATUS <<EOF
1705
# Generated automatically by configure.
1706
# Run this file to recreate the current configuration.
1707
# This directory was configured as follows,
1708
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1710
# $0 $ac_configure_args
1712
# Compiler output produced by configure, useful for debugging
1713
# configure, is in ./config.log if it exists.
1715
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1718
case "\$ac_option" in
1719
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1720
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1721
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1722
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1723
echo "$CONFIG_STATUS generated by autoconf version 2.12"
1725
-help | --help | --hel | --he | --h)
1726
echo "\$ac_cs_usage"; exit 0 ;;
1727
*) echo "\$ac_cs_usage"; exit 1 ;;
1731
ac_given_srcdir=$srcdir
1732
ac_given_INSTALL="$INSTALL"
1734
trap 'rm -fr `echo "defaults.mk custom.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1736
cat >> $CONFIG_STATUS <<EOF
1738
# Protect against being on the right side of a sed subst in config.status.
1739
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1740
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1743
s%@CFLAGS@%$CFLAGS%g
1744
s%@CPPFLAGS@%$CPPFLAGS%g
1745
s%@CXXFLAGS@%$CXXFLAGS%g
1747
s%@LDFLAGS@%$LDFLAGS%g
1749
s%@exec_prefix@%$exec_prefix%g
1750
s%@prefix@%$prefix%g
1751
s%@program_transform_name@%$program_transform_name%g
1754
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1755
s%@INSTALL_DATA@%$INSTALL_DATA%g
1756
s%@_INFO_PROG_@%$_INFO_PROG_%g
1757
s%@_COMMON2_@%$_COMMON2_%g
1758
s%@_COMPILE_@%$_COMPILE_%g
1759
s%@_COMPILER_@%$_COMPILER_%g
1760
s%@_CPPFLAGS_@%$_CPPFLAGS_%g
1761
s%@_FTANGLE2_@%$_FTANGLE2_%g
1762
s%@_FTANGLE3_@%$_FTANGLE3_%g
1763
s%@_FWEAVE2_@%$_FWEAVE2_%g
1764
s%@_FWEAVE3_@%$_FWEAVE3_%g
1765
s%@_HOME_MACHINE_@%$_HOME_MACHINE_%g
1766
s%@_HWEB_@%$_HWEB_%g
1767
s%@_LDFLAGS_@%$_LDFLAGS_%g
1768
s%@_LINK_@%$_LINK_%g
1769
s%@_LIBS_@%$_LIBS_%g
1770
s%@_LOCAL_DEFS_@%$_LOCAL_DEFS_%g
1771
s%@_MACHINE_@%$_MACHINE_%g
1772
s%@_MAKE_@%$_MAKE_%g
1776
s%@_OPTIMIZE_@%$_OPTIMIZE_%g
1777
s%@_PART1_@%$_PART1_%g
1778
s%@_PART2_@%$_PART2_%g
1779
s%@_PART3_@%$_PART3_%g
1780
s%@_PRINT_DVI_@%$_PRINT_DVI_%g
1781
s%@_PROD2_@%$_PROD2_%g
1782
s%@_RATFOR2_@%$_RATFOR2_%g
1783
s%@_RESERVED2_@%$_RESERVED2_%g
1785
s%@TERMCAP0@%$TERMCAP0%g
1786
s%@_TEXSUBDIR_@%$_TEXSUBDIR_%g
1787
s%@_TOUCH_@%$_TOUCH_%g
1788
s%@_UNSIGNED_CHAR_@%$_UNSIGNED_CHAR_%g
1793
cat >> $CONFIG_STATUS <<\EOF
1795
# Split the substitutions into bite-sized pieces for seds with
1796
# small command number limits, like on Digital OSF/1 and HP-UX.
1797
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1798
ac_file=1 # Number of current file.
1799
ac_beg=1 # First line for current file.
1800
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1803
while $ac_more_lines; do
1804
if test $ac_beg -gt 1; then
1805
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1807
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1809
if test ! -s conftest.s$ac_file; then
1811
rm -f conftest.s$ac_file
1813
if test -z "$ac_sed_cmds"; then
1814
ac_sed_cmds="sed -f conftest.s$ac_file"
1816
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1818
ac_file=`expr $ac_file + 1`
1820
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1823
if test -z "$ac_sed_cmds"; then
1828
cat >> $CONFIG_STATUS <<EOF
1830
CONFIG_FILES=\${CONFIG_FILES-"defaults.mk custom.h"}
1832
cat >> $CONFIG_STATUS <<\EOF
1833
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1834
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1836
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1837
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1838
*) ac_file_in="${ac_file}.in" ;;
1841
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1843
# Remove last slash and all that follows it. Not all systems have dirname.
1844
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1845
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1846
# The file is in a subdirectory.
1847
test ! -d "$ac_dir" && mkdir "$ac_dir"
1848
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1849
# A "../" for each directory in $ac_dir_suffix.
1850
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1852
ac_dir_suffix= ac_dots=
1855
case "$ac_given_srcdir" in
1857
if test -z "$ac_dots"; then top_srcdir=.
1858
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1859
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1861
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1862
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1865
case "$ac_given_INSTALL" in
1866
[/$]*) INSTALL="$ac_given_INSTALL" ;;
1867
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1870
echo creating "$ac_file"
1872
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1874
*Makefile*) ac_comsub="1i\\
1875
# $configure_input" ;;
1879
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1881
s%@configure_input@%$configure_input%g
1882
s%@srcdir@%$srcdir%g
1883
s%@top_srcdir@%$top_srcdir%g
1884
s%@INSTALL@%$INSTALL%g
1885
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1889
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1890
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1892
# ac_d sets the value in "#define NAME VALUE" lines.
1893
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1894
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1897
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1898
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1899
ac_uB='\([ ]\)%\1#\2define\3'
1902
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1903
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1904
ac_eB='$%\1#\2define\3'
1908
if test "${CONFIG_HEADERS+set}" != set; then
1910
cat >> $CONFIG_STATUS <<EOF
1911
CONFIG_HEADERS="config.h"
1913
cat >> $CONFIG_STATUS <<\EOF
1915
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1916
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1918
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1919
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1920
*) ac_file_in="${ac_file}.in" ;;
1923
echo creating $ac_file
1925
rm -f conftest.frag conftest.in conftest.out
1926
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1927
cat $ac_file_inputs > conftest.in
1931
# Transform confdefs.h into a sed script conftest.vals that substitutes
1932
# the proper values into config.h.in to produce config.h. And first:
1933
# Protect against being on the right side of a sed subst in config.status.
1934
# Protect against being in an unquoted here document in config.status.
1936
cat > conftest.hdr <<\EOF
1939
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1943
sed -n -f conftest.hdr confdefs.h > conftest.vals
1946
# This sed command replaces #undef with comments. This is necessary, for
1947
# example, in the case of _POSIX_SOURCE, which is predefined and required
1948
# on some systems where configure will not decide to define it.
1949
cat >> conftest.vals <<\EOF
1950
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1953
# Break up conftest.vals because some shells have a limit on
1954
# the size of here documents, and old seds have small limits too.
1959
ac_lines=`grep -c . conftest.vals`
1960
# grep -c gives empty output for an empty file on some AIX systems.
1961
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1962
# Write a limited-size here document to conftest.frag.
1963
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1964
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1966
sed -f conftest.frag conftest.in > conftest.out
1968
mv conftest.out conftest.in
1970
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1972
mv conftest.tail conftest.vals
1976
cat >> $CONFIG_STATUS <<\EOF
1977
rm -f conftest.frag conftest.h
1978
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1979
cat conftest.in >> conftest.h
1981
if cmp -s $ac_file conftest.h 2>/dev/null; then
1982
echo "$ac_file is unchanged"
1985
# Remove last slash and all that follows it. Not all systems have dirname.
1986
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1987
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1988
# The file is in a subdirectory.
1989
test ! -d "$ac_dir" && mkdir "$ac_dir"
1992
mv conftest.h $ac_file
1997
cat >> $CONFIG_STATUS <<EOF
2000
cat >> $CONFIG_STATUS <<\EOF
2004
chmod +x $CONFIG_STATUS
2005
rm -fr confdefs* $ac_clean_files
2006
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1