3
# From configure.in Id: configure.in,v 1.16 2000/02/17 21:29:54 crosser Exp
8
# Do all the work for Automake. This macro actually does too much --
9
# some checks are only needed if your package does certain things.
10
# But this isn't really a big deal.
18
# Check to make sure that the build environment is sane.
25
# Like AC_CONFIG_HEADER, but automatically create stamp file.
37
# @defmac AC_PROG_CC_STDC
38
# @maindex PROG_CC_STDC
40
# If the C compiler in not in ANSI C mode by default, try to add an option
41
# to output variable @code{CC} to make it so. This macro tries various
42
# options that select ANSI C on some system or another. It considers the
43
# compiler to be in ANSI C mode if it handles function prototypes correctly.
45
# If you use this macro, you should check after calling it whether the C
46
# compiler has been set to accept ANSI C; if not, the shell variable
47
# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
48
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
49
# program @code{ansi2knr}, which comes with Ghostscript.
54
# Guess values for system-dependent variables and create Makefiles.
55
# Generated automatically using autoconf version 2.13
56
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
58
# This configure script is free software; the Free Software Foundation
59
# gives unlimited permission to copy, distribute and modify it.
63
ac_default_prefix=/usr/local
64
# Any additions from configure.in:
66
--disable-termios do not use POSIX terminal control"
68
--with-int16=TYPE integer type that is 16 bits (autodetect)"
70
--with-int32=TYPE integer type that is 32 bits (autodetect)"
72
--with-lowmemory Build lowmemory model"
74
--without-rtprio Do not use realtime priority"
76
# Initialize some variables set by options.
77
# The variables have the same names as the options, with
78
# dashes changed to underlines.
80
cache_file=./config.cache
89
program_transform_name=s,x,x,
97
bindir='${exec_prefix}/bin'
98
sbindir='${exec_prefix}/sbin'
99
libexecdir='${exec_prefix}/libexec'
100
datadir='${prefix}/share'
101
sysconfdir='${prefix}/etc'
102
sharedstatedir='${prefix}/com'
103
localstatedir='${prefix}/var'
104
libdir='${exec_prefix}/lib'
105
includedir='${prefix}/include'
106
oldincludedir='/usr/include'
107
infodir='${prefix}/info'
108
mandir='${prefix}/man'
110
# Initialize some other variables.
113
SHELL=${CONFIG_SHELL-/bin/sh}
114
# Maximum number of lines to put in a shell here document.
121
# If the previous option needs an argument, assign it.
122
if test -n "$ac_prev"; then
123
eval "$ac_prev=\$ac_option"
129
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133
# Accept the important Cygnus configure options, so we can diagnose typos.
137
-bindir | --bindir | --bindi | --bind | --bin | --bi)
139
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140
bindir="$ac_optarg" ;;
142
-build | --build | --buil | --bui | --bu)
144
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
145
build="$ac_optarg" ;;
147
-cache-file | --cache-file | --cache-fil | --cache-fi \
148
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149
ac_prev=cache_file ;;
150
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152
cache_file="$ac_optarg" ;;
154
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158
datadir="$ac_optarg" ;;
160
-disable-* | --disable-*)
161
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162
# Reject names that are not valid shell variable names.
163
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167
eval "enable_${ac_feature}=no" ;;
169
-enable-* | --enable-*)
170
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171
# Reject names that are not valid shell variable names.
172
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180
eval "enable_${ac_feature}='$ac_optarg'" ;;
182
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184
| --exec | --exe | --ex)
185
ac_prev=exec_prefix ;;
186
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188
| --exec=* | --exe=* | --ex=*)
189
exec_prefix="$ac_optarg" ;;
191
-gas | --gas | --ga | --g)
192
# Obsolete; use --with-gas.
195
-help | --help | --hel | --he)
196
# Omit some internal or obsolete options to make the list less imposing.
197
# This message is too long to be a string in the A/UX 3.1 sh.
199
Usage: configure [options] [host]
200
Options: [defaults in brackets after descriptions]
202
--cache-file=FILE cache test results in FILE
203
--help print this message
204
--no-create do not create output files
205
--quiet, --silent do not print \`checking...' messages
206
--version print the version of autoconf that created configure
207
Directory and file names:
208
--prefix=PREFIX install architecture-independent files in PREFIX
210
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212
--bindir=DIR user executables in DIR [EPREFIX/bin]
213
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215
--datadir=DIR read-only architecture-independent data in DIR
217
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218
--sharedstatedir=DIR modifiable architecture-independent data in DIR
220
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
222
--includedir=DIR C header files in DIR [PREFIX/include]
223
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224
--infodir=DIR info documentation in DIR [PREFIX/info]
225
--mandir=DIR man documentation in DIR [PREFIX/man]
226
--srcdir=DIR find the sources in DIR [configure dir or ..]
227
--program-prefix=PREFIX prepend PREFIX to installed program names
228
--program-suffix=SUFFIX append SUFFIX to installed program names
229
--program-transform-name=PROGRAM
230
run sed PROGRAM on installed program names
234
--build=BUILD configure for building on BUILD [BUILD=HOST]
235
--host=HOST configure for HOST [guessed]
236
--target=TARGET configure for TARGET [TARGET=HOST]
237
Features and packages:
238
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242
--x-includes=DIR X include files are in DIR
243
--x-libraries=DIR X library files are in DIR
245
if test -n "$ac_help"; then
246
echo "--enable and --with options recognized:$ac_help"
250
-host | --host | --hos | --ho)
252
-host=* | --host=* | --hos=* | --ho=*)
255
-includedir | --includedir | --includedi | --included | --include \
256
| --includ | --inclu | --incl | --inc)
257
ac_prev=includedir ;;
258
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259
| --includ=* | --inclu=* | --incl=* | --inc=*)
260
includedir="$ac_optarg" ;;
262
-infodir | --infodir | --infodi | --infod | --info | --inf)
264
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265
infodir="$ac_optarg" ;;
267
-libdir | --libdir | --libdi | --libd)
269
-libdir=* | --libdir=* | --libdi=* | --libd=*)
270
libdir="$ac_optarg" ;;
272
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273
| --libexe | --libex | --libe)
274
ac_prev=libexecdir ;;
275
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276
| --libexe=* | --libex=* | --libe=*)
277
libexecdir="$ac_optarg" ;;
279
-localstatedir | --localstatedir | --localstatedi | --localstated \
280
| --localstate | --localstat | --localsta | --localst \
281
| --locals | --local | --loca | --loc | --lo)
282
ac_prev=localstatedir ;;
283
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
285
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286
localstatedir="$ac_optarg" ;;
288
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291
mandir="$ac_optarg" ;;
294
# Obsolete; use --without-fp.
297
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
301
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
302
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307
| --oldin | --oldi | --old | --ol | --o)
308
ac_prev=oldincludedir ;;
309
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312
oldincludedir="$ac_optarg" ;;
314
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317
prefix="$ac_optarg" ;;
319
-program-prefix | --program-prefix | --program-prefi | --program-pref \
320
| --program-pre | --program-pr | --program-p)
321
ac_prev=program_prefix ;;
322
-program-prefix=* | --program-prefix=* | --program-prefi=* \
323
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324
program_prefix="$ac_optarg" ;;
326
-program-suffix | --program-suffix | --program-suffi | --program-suff \
327
| --program-suf | --program-su | --program-s)
328
ac_prev=program_suffix ;;
329
-program-suffix=* | --program-suffix=* | --program-suffi=* \
330
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331
program_suffix="$ac_optarg" ;;
333
-program-transform-name | --program-transform-name \
334
| --program-transform-nam | --program-transform-na \
335
| --program-transform-n | --program-transform- \
336
| --program-transform | --program-transfor \
337
| --program-transfo | --program-transf \
338
| --program-trans | --program-tran \
339
| --progr-tra | --program-tr | --program-t)
340
ac_prev=program_transform_name ;;
341
-program-transform-name=* | --program-transform-name=* \
342
| --program-transform-nam=* | --program-transform-na=* \
343
| --program-transform-n=* | --program-transform-=* \
344
| --program-transform=* | --program-transfor=* \
345
| --program-transfo=* | --program-transf=* \
346
| --program-trans=* | --program-tran=* \
347
| --progr-tra=* | --program-tr=* | --program-t=*)
348
program_transform_name="$ac_optarg" ;;
350
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
351
| -silent | --silent | --silen | --sile | --sil)
354
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358
sbindir="$ac_optarg" ;;
360
-sharedstatedir | --sharedstatedir | --sharedstatedi \
361
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362
| --sharedst | --shareds | --shared | --share | --shar \
364
ac_prev=sharedstatedir ;;
365
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369
sharedstatedir="$ac_optarg" ;;
371
-site | --site | --sit)
373
-site=* | --site=* | --sit=*)
376
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379
srcdir="$ac_optarg" ;;
381
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382
| --syscon | --sysco | --sysc | --sys | --sy)
383
ac_prev=sysconfdir ;;
384
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386
sysconfdir="$ac_optarg" ;;
388
-target | --target | --targe | --targ | --tar | --ta | --t)
390
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391
target="$ac_optarg" ;;
393
-v | -verbose | --verbose | --verbos | --verbo | --verb)
396
-version | --version | --versio | --versi | --vers)
397
echo "configure generated by autoconf version 2.13"
401
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402
# Reject names that are not valid shell variable names.
403
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406
ac_package=`echo $ac_package| sed 's/-/_/g'`
411
eval "with_${ac_package}='$ac_optarg'" ;;
413
-without-* | --without-*)
414
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415
# Reject names that are not valid shell variable names.
416
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419
ac_package=`echo $ac_package| sed 's/-/_/g'`
420
eval "with_${ac_package}=no" ;;
423
# Obsolete; use --with-x.
426
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427
| --x-incl | --x-inc | --x-in | --x-i)
428
ac_prev=x_includes ;;
429
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431
x_includes="$ac_optarg" ;;
433
-x-libraries | --x-libraries | --x-librarie | --x-librari \
434
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435
ac_prev=x_libraries ;;
436
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438
x_libraries="$ac_optarg" ;;
440
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445
echo "configure: warning: $ac_option: invalid host type" 1>&2
447
if test "x$nonopt" != xNONE; then
448
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456
if test -n "$ac_prev"; then
457
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
# File descriptor usage:
465
# 2 errors and warnings
466
# 3 some systems may open it to /dev/tty
467
# 4 used on the Kubota Titan
468
# 6 checking for... messages and results
469
# 5 compiler messages saved in config.log
470
if test "$silent" = yes; then
478
This file contains any messages produced by compilers while
479
running configure, to aid debugging if configure makes a mistake.
482
# Strip out --no-create and --no-recursion so they do not pile up.
483
# Also quote any args containing shell metacharacters.
488
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
489
| --no-cr | --no-c) ;;
490
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
491
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
499
# Only set these to C if already set. These must not be set unconditionally
500
# because not all systems understand e.g. LANG=C (notably SCO).
501
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502
# Non-C LC_CTYPE values break the ctype check.
503
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508
# confdefs.h avoids OS command line length limits that DEFS can exceed.
509
rm -rf conftest* confdefs.h
510
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
513
# A filename unique to this package, relative to the directory that
514
# configure is in, which we can look for to find out if srcdir is correct.
515
ac_unique_file=eph_iob.c
517
# Find the source files, if location was not specified.
518
if test -z "$srcdir"; then
519
ac_srcdir_defaulted=yes
520
# Try the directory containing this script, then its parent.
522
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525
if test ! -r $srcdir/$ac_unique_file; then
529
ac_srcdir_defaulted=no
531
if test ! -r $srcdir/$ac_unique_file; then
532
if test "$ac_srcdir_defaulted" = yes; then
533
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
# Prefer explicitly selected file to automatically selected ones.
541
if test -z "$CONFIG_SITE"; then
542
if test "x$prefix" != xNONE; then
543
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548
for ac_site_file in $CONFIG_SITE; do
549
if test -r "$ac_site_file"; then
550
echo "loading site script $ac_site_file"
555
if test -r "$cache_file"; then
556
echo "loading cache $cache_file"
559
echo "creating cache $cache_file"
564
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565
ac_cpp='$CPP $CPPFLAGS'
566
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568
cross_compiling=$ac_cv_prog_cc_cross
572
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581
ac_n= ac_c='\c' ac_t=
586
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587
if test -f $ac_dir/install-sh; then
589
ac_install_sh="$ac_aux_dir/install-sh -c"
591
elif test -f $ac_dir/install.sh; then
593
ac_install_sh="$ac_aux_dir/install.sh -c"
597
if test -z "$ac_aux_dir"; then
598
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600
ac_config_guess=$ac_aux_dir/config.guess
601
ac_config_sub=$ac_aux_dir/config.sub
602
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604
# Find a good install program. We prefer a C program (faster),
605
# so one script is as good as another. But avoid the broken or
606
# incompatible versions:
607
# SysV /etc/install, /usr/sbin/install
608
# SunOS /usr/etc/install
611
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
613
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614
# ./install, which can be erroneously created by make from ./install.sh.
615
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616
echo "configure:617: checking for a BSD compatible install" >&5
617
if test -z "$INSTALL"; then
618
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619
echo $ac_n "(cached) $ac_c" 1>&6
621
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
622
for ac_dir in $PATH; do
623
# Account for people who put trailing slashes in PATH elements.
625
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
627
# OSF1 and SCO ODT 3.0 have their own names for install.
628
# Don't use installbsd from OSF since it installs stuff as root
630
for ac_prog in ginstall scoinst install; do
631
if test -f $ac_dir/$ac_prog; then
632
if test $ac_prog = install &&
633
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
634
# AIX install. It has an incompatible calling convention.
637
ac_cv_path_install="$ac_dir/$ac_prog -c"
648
if test "${ac_cv_path_install+set}" = set; then
649
INSTALL="$ac_cv_path_install"
651
# As a last resort, use the slow shell script. We don't cache a
652
# path for INSTALL within a source directory, because that will
653
# break other packages using the cache if that directory is
654
# removed, or if the path is relative.
655
INSTALL="$ac_install_sh"
658
echo "$ac_t""$INSTALL" 1>&6
660
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661
# It thinks the first close brace ends the variable substitution.
662
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
664
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
666
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
668
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669
echo "configure:670: checking whether build environment is sane" >&5
672
echo timestamp > conftestfile
673
# Do `set' in a subshell so we don't clobber the current shell's
674
# arguments. Must try -L first in case configure is actually a
675
# symlink; some systems play weird games with the mod time of symlinks
676
# (eg FreeBSD returns the mod time of the symlink's containing
679
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680
if test "$*" = "X"; then
682
set X `ls -t $srcdir/configure conftestfile`
684
if test "$*" != "X $srcdir/configure conftestfile" \
685
&& test "$*" != "X conftestfile $srcdir/configure"; then
687
# If neither matched, then we have a broken ls. This can happen
688
# if, for instance, CONFIG_SHELL is bash and it inherits a
689
# broken ls alias from the environment. This has actually
690
# happened. Such a system could not be considered "sane".
691
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692
alias in your environment" 1>&2; exit 1; }
695
test "$2" = conftestfile
701
{ echo "configure: error: newly created file is older than distributed files!
702
Check your system clock" 1>&2; exit 1; }
705
echo "$ac_t""yes" 1>&6
706
if test "$program_transform_name" = s,x,x,; then
707
program_transform_name=
709
# Double any \ or $. echo might interpret backslashes.
710
cat <<\EOF_SED > conftestsed
711
s,\\,\\\\,g; s,\$,$$,g
713
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
716
test "$program_prefix" != NONE &&
717
program_transform_name="s,^,${program_prefix},; $program_transform_name"
718
# Use a double $ so make ignores it.
719
test "$program_suffix" != NONE &&
720
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
722
# sed with no file args requires a program.
723
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
725
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726
echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
728
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729
echo $ac_n "(cached) $ac_c" 1>&6
731
cat > conftestmake <<\EOF
733
@echo 'ac_maketemp="${MAKE}"'
735
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737
if test -n "$ac_maketemp"; then
738
eval ac_cv_prog_make_${ac_make}_set=yes
740
eval ac_cv_prog_make_${ac_make}_set=no
744
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745
echo "$ac_t""yes" 1>&6
748
echo "$ac_t""no" 1>&6
749
SET_MAKE="MAKE=${MAKE-make}"
757
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
758
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
760
cat >> confdefs.h <<EOF
761
#define PACKAGE "$PACKAGE"
764
cat >> confdefs.h <<EOF
765
#define VERSION "$VERSION"
770
missing_dir=`cd $ac_aux_dir && pwd`
771
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772
echo "configure:773: checking for working aclocal" >&5
773
# Run test in a subshell; some versions of sh will print an error if
774
# an executable is not found, even if stderr is redirected.
775
# Redirect stdin to placate older versions of autoconf. Sigh.
776
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
778
echo "$ac_t""found" 1>&6
780
ACLOCAL="$missing_dir/missing aclocal"
781
echo "$ac_t""missing" 1>&6
784
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785
echo "configure:786: checking for working autoconf" >&5
786
# Run test in a subshell; some versions of sh will print an error if
787
# an executable is not found, even if stderr is redirected.
788
# Redirect stdin to placate older versions of autoconf. Sigh.
789
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
791
echo "$ac_t""found" 1>&6
793
AUTOCONF="$missing_dir/missing autoconf"
794
echo "$ac_t""missing" 1>&6
797
echo $ac_n "checking for working automake""... $ac_c" 1>&6
798
echo "configure:799: checking for working automake" >&5
799
# Run test in a subshell; some versions of sh will print an error if
800
# an executable is not found, even if stderr is redirected.
801
# Redirect stdin to placate older versions of autoconf. Sigh.
802
if (automake --version) < /dev/null > /dev/null 2>&1; then
804
echo "$ac_t""found" 1>&6
806
AUTOMAKE="$missing_dir/missing automake"
807
echo "$ac_t""missing" 1>&6
810
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811
echo "configure:812: checking for working autoheader" >&5
812
# Run test in a subshell; some versions of sh will print an error if
813
# an executable is not found, even if stderr is redirected.
814
# Redirect stdin to placate older versions of autoconf. Sigh.
815
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
816
AUTOHEADER=autoheader
817
echo "$ac_t""found" 1>&6
819
AUTOHEADER="$missing_dir/missing autoheader"
820
echo "$ac_t""missing" 1>&6
823
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824
echo "configure:825: checking for working makeinfo" >&5
825
# Run test in a subshell; some versions of sh will print an error if
826
# an executable is not found, even if stderr is redirected.
827
# Redirect stdin to placate older versions of autoconf. Sigh.
828
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
830
echo "$ac_t""found" 1>&6
832
MAKEINFO="$missing_dir/missing makeinfo"
833
echo "$ac_t""missing" 1>&6
842
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
843
ac_cpp='$CPP $CPPFLAGS'
844
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
845
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
846
cross_compiling=$ac_cv_prog_cc_cross
848
# Extract the first word of "gcc", so it can be a program name with args.
849
set dummy gcc; ac_word=$2
850
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851
echo "configure:852: checking for $ac_word" >&5
852
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853
echo $ac_n "(cached) $ac_c" 1>&6
855
if test -n "$CC"; then
856
ac_cv_prog_CC="$CC" # Let the user override the test.
858
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
860
for ac_dir in $ac_dummy; do
861
test -z "$ac_dir" && ac_dir=.
862
if test -f $ac_dir/$ac_word; then
871
if test -n "$CC"; then
872
echo "$ac_t""$CC" 1>&6
874
echo "$ac_t""no" 1>&6
877
if test -z "$CC"; then
878
# Extract the first word of "cc", so it can be a program name with args.
879
set dummy cc; ac_word=$2
880
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881
echo "configure:882: checking for $ac_word" >&5
882
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883
echo $ac_n "(cached) $ac_c" 1>&6
885
if test -n "$CC"; then
886
ac_cv_prog_CC="$CC" # Let the user override the test.
888
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
891
for ac_dir in $ac_dummy; do
892
test -z "$ac_dir" && ac_dir=.
893
if test -f $ac_dir/$ac_word; then
894
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
903
if test $ac_prog_rejected = yes; then
904
# We found a bogon in the path, so make sure we never use it.
905
set dummy $ac_cv_prog_CC
907
if test $# -gt 0; then
908
# We chose a different compiler from the bogus one.
909
# However, it has the same basename, so the bogon will be chosen
910
# first if we set CC to just the basename; use the full file name.
912
set dummy "$ac_dir/$ac_word" "$@"
920
if test -n "$CC"; then
921
echo "$ac_t""$CC" 1>&6
923
echo "$ac_t""no" 1>&6
926
if test -z "$CC"; then
929
# Extract the first word of "cl", so it can be a program name with args.
930
set dummy cl; ac_word=$2
931
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932
echo "configure:933: checking for $ac_word" >&5
933
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
934
echo $ac_n "(cached) $ac_c" 1>&6
936
if test -n "$CC"; then
937
ac_cv_prog_CC="$CC" # Let the user override the test.
939
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941
for ac_dir in $ac_dummy; do
942
test -z "$ac_dir" && ac_dir=.
943
if test -f $ac_dir/$ac_word; then
952
if test -n "$CC"; then
953
echo "$ac_t""$CC" 1>&6
955
echo "$ac_t""no" 1>&6
960
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
963
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
964
echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
967
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968
ac_cpp='$CPP $CPPFLAGS'
969
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971
cross_compiling=$ac_cv_prog_cc_cross
973
cat > conftest.$ac_ext << EOF
975
#line 976 "configure"
976
#include "confdefs.h"
980
if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981
ac_cv_prog_cc_works=yes
982
# If we can't run a trivial program, we are probably using a cross compiler.
983
if (./conftest; exit) 2>/dev/null; then
984
ac_cv_prog_cc_cross=no
986
ac_cv_prog_cc_cross=yes
989
echo "configure: failed program was:" >&5
990
cat conftest.$ac_ext >&5
991
ac_cv_prog_cc_works=no
995
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
996
ac_cpp='$CPP $CPPFLAGS'
997
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
998
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
999
cross_compiling=$ac_cv_prog_cc_cross
1001
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1002
if test $ac_cv_prog_cc_works = no; then
1003
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1005
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1006
echo "configure:1007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1007
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1008
cross_compiling=$ac_cv_prog_cc_cross
1010
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1011
echo "configure:1012: checking whether we are using GNU C" >&5
1012
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1013
echo $ac_n "(cached) $ac_c" 1>&6
1015
cat > conftest.c <<EOF
1020
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1027
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1029
if test $ac_cv_prog_gcc = yes; then
1035
ac_test_CFLAGS="${CFLAGS+set}"
1036
ac_save_CFLAGS="$CFLAGS"
1038
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039
echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041
echo $ac_n "(cached) $ac_c" 1>&6
1043
echo 'void f(){}' > conftest.c
1044
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054
if test "$ac_test_CFLAGS" = set; then
1055
CFLAGS="$ac_save_CFLAGS"
1056
elif test $ac_cv_prog_cc_g = yes; then
1057
if test "$GCC" = yes; then
1063
if test "$GCC" = yes; then
1070
if test "X$ac_cv_prog_gcc" = "Xyes"; then
1071
CFLAGS="$CFLAGS -Wall"
1076
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1077
echo "configure:1078: checking for ${CC-cc} option to accept ANSI C" >&5
1078
if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1079
echo $ac_n "(cached) $ac_c" 1>&6
1081
am_cv_prog_cc_stdc=no
1083
# Don't try gcc -ansi; that turns off useful extensions and
1084
# breaks some systems' header files.
1085
# AIX -qlanglvl=ansi
1086
# Ultrix and OSF/1 -std1
1087
# HP-UX -Aa -D_HPUX_SOURCE
1088
# SVR4 -Xc -D__EXTENSIONS__
1089
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1091
CC="$ac_save_CC $ac_arg"
1092
cat > conftest.$ac_ext <<EOF
1093
#line 1094 "configure"
1094
#include "confdefs.h"
1097
#include <sys/types.h>
1098
#include <sys/stat.h>
1099
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1100
struct buf { int x; };
1101
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1102
static char *e (p, i)
1108
static char *f (char * (*g) (char **, int), char **p, ...)
1113
s = g (p, va_arg (v,int));
1117
int test (int i, double x);
1118
struct s1 {int (*f) (int a);};
1119
struct s2 {int (*f) (double a);};
1120
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1126
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1130
if { (eval echo configure:1131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1132
am_cv_prog_cc_stdc="$ac_arg"; break
1134
echo "configure: failed program was:" >&5
1135
cat conftest.$ac_ext >&5
1143
if test -z "$am_cv_prog_cc_stdc"; then
1144
echo "$ac_t""none needed" 1>&6
1146
echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1148
case "x$am_cv_prog_cc_stdc" in
1150
*) CC="$CC $am_cv_prog_cc_stdc" ;;
1153
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1154
echo "configure:1155: checking how to run the C preprocessor" >&5
1155
# On Suns, sometimes $CPP names a directory.
1156
if test -n "$CPP" && test -d "$CPP"; then
1159
if test -z "$CPP"; then
1160
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1161
echo $ac_n "(cached) $ac_c" 1>&6
1163
# This must be in double quotes, not single quotes, because CPP may get
1164
# substituted into the Makefile and "${CC-cc}" will confuse make.
1166
# On the NeXT, cc -E runs the code through the compiler's parser,
1167
# not just through cpp.
1168
cat > conftest.$ac_ext <<EOF
1169
#line 1170 "configure"
1170
#include "confdefs.h"
1174
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1175
{ (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1176
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1177
if test -z "$ac_err"; then
1181
echo "configure: failed program was:" >&5
1182
cat conftest.$ac_ext >&5
1184
CPP="${CC-cc} -E -traditional-cpp"
1185
cat > conftest.$ac_ext <<EOF
1186
#line 1187 "configure"
1187
#include "confdefs.h"
1191
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192
{ (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1194
if test -z "$ac_err"; then
1198
echo "configure: failed program was:" >&5
1199
cat conftest.$ac_ext >&5
1201
CPP="${CC-cc} -nologo -E"
1202
cat > conftest.$ac_ext <<EOF
1203
#line 1204 "configure"
1204
#include "confdefs.h"
1208
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1209
{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1210
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1211
if test -z "$ac_err"; then
1215
echo "configure: failed program was:" >&5
1216
cat conftest.$ac_ext >&5
1225
ac_cv_prog_CPP="$CPP"
1227
CPP="$ac_cv_prog_CPP"
1229
ac_cv_prog_CPP="$CPP"
1231
echo "$ac_t""$CPP" 1>&6
1235
echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1236
echo "configure:1237: checking for function prototypes" >&5
1237
if test "$am_cv_prog_cc_stdc" != no; then
1238
echo "$ac_t""yes" 1>&6
1239
cat >> confdefs.h <<\EOF
1240
#define PROTOTYPES 1
1245
echo "$ac_t""no" 1>&6
1246
U=_ ANSI2KNR=./ansi2knr
1247
# Ensure some checks needed by ansi2knr itself.
1248
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1249
echo "configure:1250: checking for ANSI C header files" >&5
1250
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1251
echo $ac_n "(cached) $ac_c" 1>&6
1253
cat > conftest.$ac_ext <<EOF
1254
#line 1255 "configure"
1255
#include "confdefs.h"
1261
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1262
{ (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1263
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1264
if test -z "$ac_err"; then
1266
ac_cv_header_stdc=yes
1269
echo "configure: failed program was:" >&5
1270
cat conftest.$ac_ext >&5
1272
ac_cv_header_stdc=no
1276
if test $ac_cv_header_stdc = yes; then
1277
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1278
cat > conftest.$ac_ext <<EOF
1279
#line 1280 "configure"
1280
#include "confdefs.h"
1283
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1284
egrep "memchr" >/dev/null 2>&1; then
1288
ac_cv_header_stdc=no
1294
if test $ac_cv_header_stdc = yes; then
1295
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1296
cat > conftest.$ac_ext <<EOF
1297
#line 1298 "configure"
1298
#include "confdefs.h"
1301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1302
egrep "free" >/dev/null 2>&1; then
1306
ac_cv_header_stdc=no
1312
if test $ac_cv_header_stdc = yes; then
1313
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1314
if test "$cross_compiling" = yes; then
1317
cat > conftest.$ac_ext <<EOF
1318
#line 1319 "configure"
1319
#include "confdefs.h"
1321
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1322
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1323
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1324
int main () { int i; for (i = 0; i < 256; i++)
1325
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1329
if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1333
echo "configure: failed program was:" >&5
1334
cat conftest.$ac_ext >&5
1336
ac_cv_header_stdc=no
1344
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1345
if test $ac_cv_header_stdc = yes; then
1346
cat >> confdefs.h <<\EOF
1347
#define STDC_HEADERS 1
1352
for ac_hdr in string.h
1354
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1355
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1356
echo "configure:1357: checking for $ac_hdr" >&5
1357
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1358
echo $ac_n "(cached) $ac_c" 1>&6
1360
cat > conftest.$ac_ext <<EOF
1361
#line 1362 "configure"
1362
#include "confdefs.h"
1365
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366
{ (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1368
if test -z "$ac_err"; then
1370
eval "ac_cv_header_$ac_safe=yes"
1373
echo "configure: failed program was:" >&5
1374
cat conftest.$ac_ext >&5
1376
eval "ac_cv_header_$ac_safe=no"
1380
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1381
echo "$ac_t""yes" 1>&6
1382
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1383
cat >> confdefs.h <<EOF
1384
#define $ac_tr_hdr 1
1388
echo "$ac_t""no" 1>&6
1394
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1395
echo "configure:1396: checking whether ${MAKE-make} sets \${MAKE}" >&5
1396
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1397
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1398
echo $ac_n "(cached) $ac_c" 1>&6
1400
cat > conftestmake <<\EOF
1402
@echo 'ac_maketemp="${MAKE}"'
1404
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1405
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1406
if test -n "$ac_maketemp"; then
1407
eval ac_cv_prog_make_${ac_make}_set=yes
1409
eval ac_cv_prog_make_${ac_make}_set=no
1413
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1414
echo "$ac_t""yes" 1>&6
1417
echo "$ac_t""no" 1>&6
1418
SET_MAKE="MAKE=${MAKE-make}"
1421
# Extract the first word of "echo", so it can be a program name with args.
1422
set dummy echo; ac_word=$2
1423
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1424
echo "configure:1425: checking for $ac_word" >&5
1425
if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1426
echo $ac_n "(cached) $ac_c" 1>&6
1430
ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1433
ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1436
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1438
for ac_dir in $ac_dummy; do
1439
test -z "$ac_dir" && ac_dir=.
1440
if test -f $ac_dir/$ac_word; then
1441
ac_cv_path_ECHO="$ac_dir/$ac_word"
1446
test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1450
ECHO="$ac_cv_path_ECHO"
1451
if test -n "$ECHO"; then
1452
echo "$ac_t""$ECHO" 1>&6
1454
echo "$ac_t""no" 1>&6
1456
# Extract the first word of "ln", so it can be a program name with args.
1457
set dummy ln; ac_word=$2
1458
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459
echo "configure:1460: checking for $ac_word" >&5
1460
if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1461
echo $ac_n "(cached) $ac_c" 1>&6
1465
ac_cv_path_LN="$LN" # Let the user override the test with a path.
1468
ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1471
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1473
for ac_dir in $ac_dummy; do
1474
test -z "$ac_dir" && ac_dir=.
1475
if test -f $ac_dir/$ac_word; then
1476
ac_cv_path_LN="$ac_dir/$ac_word"
1481
test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
1486
if test -n "$LN"; then
1487
echo "$ac_t""$LN" 1>&6
1489
echo "$ac_t""no" 1>&6
1491
# Extract the first word of "mv", so it can be a program name with args.
1492
set dummy mv; ac_word=$2
1493
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1494
echo "configure:1495: checking for $ac_word" >&5
1495
if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1496
echo $ac_n "(cached) $ac_c" 1>&6
1500
ac_cv_path_MV="$MV" # Let the user override the test with a path.
1503
ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1506
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1508
for ac_dir in $ac_dummy; do
1509
test -z "$ac_dir" && ac_dir=.
1510
if test -f $ac_dir/$ac_word; then
1511
ac_cv_path_MV="$ac_dir/$ac_word"
1516
test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1521
if test -n "$MV"; then
1522
echo "$ac_t""$MV" 1>&6
1524
echo "$ac_t""no" 1>&6
1526
# Extract the first word of "rm", so it can be a program name with args.
1527
set dummy rm; ac_word=$2
1528
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529
echo "configure:1530: checking for $ac_word" >&5
1530
if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1531
echo $ac_n "(cached) $ac_c" 1>&6
1535
ac_cv_path_RM="$RM" # Let the user override the test with a path.
1538
ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1541
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1543
for ac_dir in $ac_dummy; do
1544
test -z "$ac_dir" && ac_dir=.
1545
if test -f $ac_dir/$ac_word; then
1546
ac_cv_path_RM="$ac_dir/$ac_word"
1551
test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1556
if test -n "$RM"; then
1557
echo "$ac_t""$RM" 1>&6
1559
echo "$ac_t""no" 1>&6
1561
# Find a good install program. We prefer a C program (faster),
1562
# so one script is as good as another. But avoid the broken or
1563
# incompatible versions:
1564
# SysV /etc/install, /usr/sbin/install
1565
# SunOS /usr/etc/install
1566
# IRIX /sbin/install
1568
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571
# ./install, which can be erroneously created by make from ./install.sh.
1572
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1573
echo "configure:1574: checking for a BSD compatible install" >&5
1574
if test -z "$INSTALL"; then
1575
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1576
echo $ac_n "(cached) $ac_c" 1>&6
1578
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1579
for ac_dir in $PATH; do
1580
# Account for people who put trailing slashes in PATH elements.
1582
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1584
# OSF1 and SCO ODT 3.0 have their own names for install.
1585
# Don't use installbsd from OSF since it installs stuff as root
1587
for ac_prog in ginstall scoinst install; do
1588
if test -f $ac_dir/$ac_prog; then
1589
if test $ac_prog = install &&
1590
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1591
# AIX install. It has an incompatible calling convention.
1594
ac_cv_path_install="$ac_dir/$ac_prog -c"
1605
if test "${ac_cv_path_install+set}" = set; then
1606
INSTALL="$ac_cv_path_install"
1608
# As a last resort, use the slow shell script. We don't cache a
1609
# path for INSTALL within a source directory, because that will
1610
# break other packages using the cache if that directory is
1611
# removed, or if the path is relative.
1612
INSTALL="$ac_install_sh"
1615
echo "$ac_t""$INSTALL" 1>&6
1617
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618
# It thinks the first close brace ends the variable substitution.
1619
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1621
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1623
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625
# Extract the first word of "ranlib", so it can be a program name with args.
1626
set dummy ranlib; ac_word=$2
1627
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1628
echo "configure:1629: checking for $ac_word" >&5
1629
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1630
echo $ac_n "(cached) $ac_c" 1>&6
1632
if test -n "$RANLIB"; then
1633
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1635
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637
for ac_dir in $ac_dummy; do
1638
test -z "$ac_dir" && ac_dir=.
1639
if test -f $ac_dir/$ac_word; then
1640
ac_cv_prog_RANLIB="ranlib"
1645
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1648
RANLIB="$ac_cv_prog_RANLIB"
1649
if test -n "$RANLIB"; then
1650
echo "$ac_t""$RANLIB" 1>&6
1652
echo "$ac_t""no" 1>&6
1655
# Extract the first word of "ar", so it can be a program name with args.
1656
set dummy ar; ac_word=$2
1657
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658
echo "configure:1659: checking for $ac_word" >&5
1659
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1660
echo $ac_n "(cached) $ac_c" 1>&6
1664
ac_cv_path_AR="$AR" # Let the user override the test with a path.
1667
ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1670
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1672
for ac_dir in $ac_dummy; do
1673
test -z "$ac_dir" && ac_dir=.
1674
if test -f $ac_dir/$ac_word; then
1675
ac_cv_path_AR="$ac_dir/$ac_word"
1680
test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1685
if test -n "$AR"; then
1686
echo "$ac_t""$AR" 1>&6
1688
echo "$ac_t""no" 1>&6
1690
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1691
echo "configure:1692: checking whether ln -s works" >&5
1692
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1693
echo $ac_n "(cached) $ac_c" 1>&6
1696
if ln -s X conftestdata 2>/dev/null
1699
ac_cv_prog_LN_S="ln -s"
1704
LN_S="$ac_cv_prog_LN_S"
1705
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1706
echo "$ac_t""yes" 1>&6
1708
echo "$ac_t""no" 1>&6
1712
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1713
echo "configure:1714: checking for ANSI C header files" >&5
1714
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1715
echo $ac_n "(cached) $ac_c" 1>&6
1717
cat > conftest.$ac_ext <<EOF
1718
#line 1719 "configure"
1719
#include "confdefs.h"
1725
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1726
{ (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1727
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1728
if test -z "$ac_err"; then
1730
ac_cv_header_stdc=yes
1733
echo "configure: failed program was:" >&5
1734
cat conftest.$ac_ext >&5
1736
ac_cv_header_stdc=no
1740
if test $ac_cv_header_stdc = yes; then
1741
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1742
cat > conftest.$ac_ext <<EOF
1743
#line 1744 "configure"
1744
#include "confdefs.h"
1747
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1748
egrep "memchr" >/dev/null 2>&1; then
1752
ac_cv_header_stdc=no
1758
if test $ac_cv_header_stdc = yes; then
1759
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1760
cat > conftest.$ac_ext <<EOF
1761
#line 1762 "configure"
1762
#include "confdefs.h"
1765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1766
egrep "free" >/dev/null 2>&1; then
1770
ac_cv_header_stdc=no
1776
if test $ac_cv_header_stdc = yes; then
1777
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1778
if test "$cross_compiling" = yes; then
1781
cat > conftest.$ac_ext <<EOF
1782
#line 1783 "configure"
1783
#include "confdefs.h"
1785
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1786
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1787
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1788
int main () { int i; for (i = 0; i < 256; i++)
1789
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1793
if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1797
echo "configure: failed program was:" >&5
1798
cat conftest.$ac_ext >&5
1800
ac_cv_header_stdc=no
1808
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1809
if test $ac_cv_header_stdc = yes; then
1810
cat >> confdefs.h <<\EOF
1811
#define STDC_HEADERS 1
1816
for ac_hdr in fcntl.h sys/time.h sys/select.h unistd.h sched.h
1818
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1819
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1820
echo "configure:1821: checking for $ac_hdr" >&5
1821
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1822
echo $ac_n "(cached) $ac_c" 1>&6
1824
cat > conftest.$ac_ext <<EOF
1825
#line 1826 "configure"
1826
#include "confdefs.h"
1829
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1830
{ (eval echo configure:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1831
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1832
if test -z "$ac_err"; then
1834
eval "ac_cv_header_$ac_safe=yes"
1837
echo "configure: failed program was:" >&5
1838
cat conftest.$ac_ext >&5
1840
eval "ac_cv_header_$ac_safe=no"
1844
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1845
echo "$ac_t""yes" 1>&6
1846
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1847
cat >> confdefs.h <<EOF
1848
#define $ac_tr_hdr 1
1852
echo "$ac_t""no" 1>&6
1856
for ac_hdr in termios.h termio.h sgtty.h utime.h sys/utime.h
1858
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1859
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1860
echo "configure:1861: checking for $ac_hdr" >&5
1861
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1862
echo $ac_n "(cached) $ac_c" 1>&6
1864
cat > conftest.$ac_ext <<EOF
1865
#line 1866 "configure"
1866
#include "confdefs.h"
1869
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1870
{ (eval echo configure:1871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1871
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1872
if test -z "$ac_err"; then
1874
eval "ac_cv_header_$ac_safe=yes"
1877
echo "configure: failed program was:" >&5
1878
cat conftest.$ac_ext >&5
1880
eval "ac_cv_header_$ac_safe=no"
1884
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1885
echo "$ac_t""yes" 1>&6
1886
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1887
cat >> confdefs.h <<EOF
1888
#define $ac_tr_hdr 1
1892
echo "$ac_t""no" 1>&6
1897
# Check whether --enable-termios or --disable-termios was given.
1898
if test "${enable_termios+set}" = set; then
1899
enableval="$enable_termios"
1903
if test X$enable_termios != Xno && test X$ac_cv_header_termios_h = Xyes; then
1904
cat >> confdefs.h <<\EOF
1905
#define USE_TERMIOS 1
1908
elif test X$ac_cv_header_sgtty_h = Xyes; then
1909
cat >> confdefs.h <<\EOF
1913
elif test X$ac_cv_header_termio_h = Xyes; then
1914
cat >> confdefs.h <<\EOF
1915
#define USE_TERMIO 1
1919
{ echo "configure: error: No usable terminal control (neither of termios/sgtty/termio)" 1>&2; exit 1; }
1922
echo $ac_n "checking for working const""... $ac_c" 1>&6
1923
echo "configure:1924: checking for working const" >&5
1924
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1925
echo $ac_n "(cached) $ac_c" 1>&6
1927
cat > conftest.$ac_ext <<EOF
1928
#line 1929 "configure"
1929
#include "confdefs.h"
1933
/* Ultrix mips cc rejects this. */
1934
typedef int charset[2]; const charset x;
1935
/* SunOS 4.1.1 cc rejects this. */
1936
char const *const *ccp;
1938
/* NEC SVR4.0.2 mips cc rejects this. */
1939
struct point {int x, y;};
1940
static struct point const zero = {0,0};
1941
/* AIX XL C 1.02.0.0 rejects this.
1942
It does not let you subtract one const X* pointer from another in an arm
1943
of an if-expression whose if-part is not a constant expression */
1944
const char *g = "string";
1945
ccp = &g + (g ? g-g : 0);
1946
/* HPUX 7.0 cc rejects these. */
1949
ccp = (char const *const *) p;
1950
{ /* SCO 3.2v4 cc rejects this. */
1952
char const *s = 0 ? (char *) 0 : (char const *) 0;
1956
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1958
const int *foo = &x[0];
1961
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1962
typedef const int *iptr;
1966
{ /* AIX XL C 1.02.0.0 rejects this saying
1967
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1968
struct s { int j; const int *ap[3]; };
1969
struct s *b; b->j = 5;
1971
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1977
if { (eval echo configure:1978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981
echo "configure: failed program was:" >&5
1982
cat conftest.$ac_ext >&5
1989
echo "$ac_t""$ac_cv_c_const" 1>&6
1990
if test $ac_cv_c_const = no; then
1991
cat >> confdefs.h <<\EOF
1997
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1998
echo "configure:1999: checking for off_t" >&5
1999
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2000
echo $ac_n "(cached) $ac_c" 1>&6
2002
cat > conftest.$ac_ext <<EOF
2003
#line 2004 "configure"
2004
#include "confdefs.h"
2005
#include <sys/types.h>
2011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2012
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2014
ac_cv_type_off_t=yes
2022
echo "$ac_t""$ac_cv_type_off_t" 1>&6
2023
if test $ac_cv_type_off_t = no; then
2024
cat >> confdefs.h <<\EOF
2030
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2031
echo "configure:2032: checking for size_t" >&5
2032
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2033
echo $ac_n "(cached) $ac_c" 1>&6
2035
cat > conftest.$ac_ext <<EOF
2036
#line 2037 "configure"
2037
#include "confdefs.h"
2038
#include <sys/types.h>
2044
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2045
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2047
ac_cv_type_size_t=yes
2050
ac_cv_type_size_t=no
2055
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2056
if test $ac_cv_type_size_t = no; then
2057
cat >> confdefs.h <<\EOF
2058
#define size_t unsigned
2063
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2064
echo "configure:2065: checking whether time.h and sys/time.h may both be included" >&5
2065
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2066
echo $ac_n "(cached) $ac_c" 1>&6
2068
cat > conftest.$ac_ext <<EOF
2069
#line 2070 "configure"
2070
#include "confdefs.h"
2071
#include <sys/types.h>
2072
#include <sys/time.h>
2078
if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080
ac_cv_header_time=yes
2082
echo "configure: failed program was:" >&5
2083
cat conftest.$ac_ext >&5
2085
ac_cv_header_time=no
2090
echo "$ac_t""$ac_cv_header_time" 1>&6
2091
if test $ac_cv_header_time = yes; then
2092
cat >> confdefs.h <<\EOF
2093
#define TIME_WITH_SYS_TIME 1
2098
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2099
echo "configure:2100: checking whether struct tm is in sys/time.h or time.h" >&5
2100
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2101
echo $ac_n "(cached) $ac_c" 1>&6
2103
cat > conftest.$ac_ext <<EOF
2104
#line 2105 "configure"
2105
#include "confdefs.h"
2106
#include <sys/types.h>
2109
struct tm *tp; tp->tm_sec;
2112
if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114
ac_cv_struct_tm=time.h
2116
echo "configure: failed program was:" >&5
2117
cat conftest.$ac_ext >&5
2119
ac_cv_struct_tm=sys/time.h
2124
echo "$ac_t""$ac_cv_struct_tm" 1>&6
2125
if test $ac_cv_struct_tm = sys/time.h; then
2126
cat >> confdefs.h <<\EOF
2127
#define TM_IN_SYS_TIME 1
2133
echo $ac_n "checking whether struct tm has tm_gmtoff""... $ac_c" 1>&6
2134
echo "configure:2135: checking whether struct tm has tm_gmtoff" >&5
2135
if eval "test \"`echo '$''{'ac_cv_tm_gmtoff'+set}'`\" = set"; then
2136
echo $ac_n "(cached) $ac_c" 1>&6
2138
cat > conftest.$ac_ext <<EOF
2139
#line 2140 "configure"
2140
#include "confdefs.h"
2142
#if TIME_WITH_SYS_TIME
2143
# include <sys/time.h>
2146
# if HAVE_SYS_TIME_H
2147
# include <sys/time.h>
2160
if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2164
echo "configure: failed program was:" >&5
2165
cat conftest.$ac_ext >&5
2171
echo "$ac_t""$ac_cv_tm_gmtoff" 1>&6
2172
if test X$ac_cv_tm_gmtoff = Xyes; then
2173
cat >> confdefs.h <<\EOF
2174
#define HAVE_TM_GMTOFF 1
2180
echo $ac_n "checking whether struct utimbuf is defined""... $ac_c" 1>&6
2181
echo "configure:2182: checking whether struct utimbuf is defined" >&5
2182
if eval "test \"`echo '$''{'ac_cv_have_utimbuf'+set}'`\" = set"; then
2183
echo $ac_n "(cached) $ac_c" 1>&6
2185
cat > conftest.$ac_ext <<EOF
2186
#line 2187 "configure"
2187
#include "confdefs.h"
2189
#if TIME_WITH_SYS_TIME
2190
# include <sys/time.h>
2193
# if HAVE_SYS_TIME_H
2194
# include <sys/time.h>
2202
# ifdef HAVE_SYS_UTIME_H
2203
# include <sys/utime.h>
2214
if { (eval echo configure:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2216
ac_cv_have_utimbuf=yes
2218
echo "configure: failed program was:" >&5
2219
cat conftest.$ac_ext >&5
2221
ac_cv_have_utimbuf=no
2225
echo "$ac_t""$ac_cv_have_utimbuf" 1>&6
2226
if test X$ac_cv_have_utimbuf = Xyes; then
2227
cat >> confdefs.h <<\EOF
2228
#define HAVE_UTIMBUF 1
2233
echo $ac_n "checking whether optarg is defined in headers""... $ac_c" 1>&6
2234
echo "configure:2235: checking whether optarg is defined in headers" >&5
2235
if eval "test \"`echo '$''{'ac_cv_optarg_defined'+set}'`\" = set"; then
2236
echo $ac_n "(cached) $ac_c" 1>&6
2238
cat > conftest.$ac_ext <<EOF
2239
#line 2240 "configure"
2240
#include "confdefs.h"
2242
#include <sys/types.h>
2246
#ifdef HAVE_UNISTD_H
2257
if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2259
ac_cv_optarg_defined=yes
2261
echo "configure: failed program was:" >&5
2262
cat conftest.$ac_ext >&5
2264
ac_cv_optarg_defined=no
2268
echo "$ac_t""$ac_cv_optarg_defined" 1>&6
2269
if test X$ac_cv_optarg_defined = Xyes; then
2270
cat >> confdefs.h <<\EOF
2271
#define OPTARG_DEFINED 1
2276
echo $ac_n "checking size of short""... $ac_c" 1>&6
2277
echo "configure:2278: checking size of short" >&5
2278
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2279
echo $ac_n "(cached) $ac_c" 1>&6
2281
if test "$cross_compiling" = yes; then
2282
ac_cv_sizeof_short=2
2284
cat > conftest.$ac_ext <<EOF
2285
#line 2286 "configure"
2286
#include "confdefs.h"
2290
FILE *f=fopen("conftestval", "w");
2292
fprintf(f, "%d\n", sizeof(short));
2296
if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2298
ac_cv_sizeof_short=`cat conftestval`
2300
echo "configure: failed program was:" >&5
2301
cat conftest.$ac_ext >&5
2303
ac_cv_sizeof_short=0
2309
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2310
cat >> confdefs.h <<EOF
2311
#define SIZEOF_SHORT $ac_cv_sizeof_short
2315
echo $ac_n "checking size of int""... $ac_c" 1>&6
2316
echo "configure:2317: checking size of int" >&5
2317
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2318
echo $ac_n "(cached) $ac_c" 1>&6
2320
if test "$cross_compiling" = yes; then
2323
cat > conftest.$ac_ext <<EOF
2324
#line 2325 "configure"
2325
#include "confdefs.h"
2329
FILE *f=fopen("conftestval", "w");
2331
fprintf(f, "%d\n", sizeof(int));
2335
if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2337
ac_cv_sizeof_int=`cat conftestval`
2339
echo "configure: failed program was:" >&5
2340
cat conftest.$ac_ext >&5
2348
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2349
cat >> confdefs.h <<EOF
2350
#define SIZEOF_INT $ac_cv_sizeof_int
2354
echo $ac_n "checking size of long""... $ac_c" 1>&6
2355
echo "configure:2356: checking size of long" >&5
2356
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2357
echo $ac_n "(cached) $ac_c" 1>&6
2359
if test "$cross_compiling" = yes; then
2362
cat > conftest.$ac_ext <<EOF
2363
#line 2364 "configure"
2364
#include "confdefs.h"
2368
FILE *f=fopen("conftestval", "w");
2370
fprintf(f, "%d\n", sizeof(long));
2374
if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2376
ac_cv_sizeof_long=`cat conftestval`
2378
echo "configure: failed program was:" >&5
2379
cat conftest.$ac_ext >&5
2387
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2388
cat >> confdefs.h <<EOF
2389
#define SIZEOF_LONG $ac_cv_sizeof_long
2394
# Check whether --with-int16 or --without-int16 was given.
2395
if test "${with_int16+set}" = set; then
2396
withval="$with_int16"
2400
if test "X$with_int16" != "Xno" && test "X$with_int16" != "Xyes" && test "X$with_int16" != "X"; then
2403
if test "X$ac_cv_sizeof_short" = "X2"; then
2406
if test "X$ac_cv_sizeof_int" = "X2"; then
2411
# Check whether --with-int32 or --without-int32 was given.
2412
if test "${with_int32+set}" = set; then
2413
withval="$with_int32"
2417
if test "X$with_int32" != "Xno" && test "X$with_int32" != "Xyes" && test "X$with_int32" != "X"; then
2420
if test "X$ac_cv_sizeof_long" = "X4"; then
2423
if test "X$ac_cv_sizeof_int" = "X4"; then
2430
cat >> confdefs.h <<EOF
2431
#define INT16 $INT16
2433
cat >> confdefs.h <<EOF
2434
#define INT32 $INT32
2437
# Check whether --with-lomemory or --without-lomemory was given.
2438
if test "${with_lomemory+set}" = set; then
2439
withval="$with_lomemory"
2440
cat >> confdefs.h <<\EOF
2447
# Check whether --with-rtprio or --without-rtprio was given.
2448
if test "${with_rtprio+set}" = set; then
2449
withval="$with_rtprio"
2453
if test "X$with_rtprio" = "X"; then
2456
if test "X$with_rtprio" = "Xyes"; then
2457
cat >> confdefs.h <<\EOF
2458
#define USE_RTPRIO 1
2463
for ac_func in rename mkdir select strerror strspn
2465
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2466
echo "configure:2467: checking for $ac_func" >&5
2467
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2468
echo $ac_n "(cached) $ac_c" 1>&6
2470
cat > conftest.$ac_ext <<EOF
2471
#line 2472 "configure"
2472
#include "confdefs.h"
2473
/* System header to define __stub macros and hopefully few prototypes,
2474
which can conflict with char $ac_func(); below. */
2476
/* Override any gcc2 internal prototype to avoid an error. */
2477
/* We use char because int might match the return type of a gcc2
2478
builtin and then its argument prototype would still apply. */
2483
/* The GNU C library defines this for functions which it implements
2484
to always fail with ENOSYS. Some functions are actually named
2485
something starting with __ and the normal name is an alias. */
2486
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2494
if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496
eval "ac_cv_func_$ac_func=yes"
2498
echo "configure: failed program was:" >&5
2499
cat conftest.$ac_ext >&5
2501
eval "ac_cv_func_$ac_func=no"
2506
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2507
echo "$ac_t""yes" 1>&6
2508
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2509
cat >> confdefs.h <<EOF
2510
#define $ac_tr_func 1
2514
echo "$ac_t""no" 1>&6
2518
for ac_func in uname cfmakeraw sched_setscheduler nanosleep
2520
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2521
echo "configure:2522: checking for $ac_func" >&5
2522
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2523
echo $ac_n "(cached) $ac_c" 1>&6
2525
cat > conftest.$ac_ext <<EOF
2526
#line 2527 "configure"
2527
#include "confdefs.h"
2528
/* System header to define __stub macros and hopefully few prototypes,
2529
which can conflict with char $ac_func(); below. */
2531
/* Override any gcc2 internal prototype to avoid an error. */
2532
/* We use char because int might match the return type of a gcc2
2533
builtin and then its argument prototype would still apply. */
2538
/* The GNU C library defines this for functions which it implements
2539
to always fail with ENOSYS. Some functions are actually named
2540
something starting with __ and the normal name is an alias. */
2541
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2549
if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2551
eval "ac_cv_func_$ac_func=yes"
2553
echo "configure: failed program was:" >&5
2554
cat conftest.$ac_ext >&5
2556
eval "ac_cv_func_$ac_func=no"
2561
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2562
echo "$ac_t""yes" 1>&6
2563
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2564
cat >> confdefs.h <<EOF
2565
#define $ac_tr_func 1
2569
echo "$ac_t""no" 1>&6
2573
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2574
echo "configure:2575: checking for vprintf" >&5
2575
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2576
echo $ac_n "(cached) $ac_c" 1>&6
2578
cat > conftest.$ac_ext <<EOF
2579
#line 2580 "configure"
2580
#include "confdefs.h"
2581
/* System header to define __stub macros and hopefully few prototypes,
2582
which can conflict with char vprintf(); below. */
2584
/* Override any gcc2 internal prototype to avoid an error. */
2585
/* We use char because int might match the return type of a gcc2
2586
builtin and then its argument prototype would still apply. */
2591
/* The GNU C library defines this for functions which it implements
2592
to always fail with ENOSYS. Some functions are actually named
2593
something starting with __ and the normal name is an alias. */
2594
#if defined (__stub_vprintf) || defined (__stub___vprintf)
2602
if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2604
eval "ac_cv_func_vprintf=yes"
2606
echo "configure: failed program was:" >&5
2607
cat conftest.$ac_ext >&5
2609
eval "ac_cv_func_vprintf=no"
2614
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2615
echo "$ac_t""yes" 1>&6
2616
cat >> confdefs.h <<\EOF
2617
#define HAVE_VPRINTF 1
2621
echo "$ac_t""no" 1>&6
2624
if test "$ac_cv_func_vprintf" != yes; then
2625
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2626
echo "configure:2627: checking for _doprnt" >&5
2627
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2628
echo $ac_n "(cached) $ac_c" 1>&6
2630
cat > conftest.$ac_ext <<EOF
2631
#line 2632 "configure"
2632
#include "confdefs.h"
2633
/* System header to define __stub macros and hopefully few prototypes,
2634
which can conflict with char _doprnt(); below. */
2636
/* Override any gcc2 internal prototype to avoid an error. */
2637
/* We use char because int might match the return type of a gcc2
2638
builtin and then its argument prototype would still apply. */
2643
/* The GNU C library defines this for functions which it implements
2644
to always fail with ENOSYS. Some functions are actually named
2645
something starting with __ and the normal name is an alias. */
2646
#if defined (__stub__doprnt) || defined (__stub____doprnt)
2654
if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2656
eval "ac_cv_func__doprnt=yes"
2658
echo "configure: failed program was:" >&5
2659
cat conftest.$ac_ext >&5
2661
eval "ac_cv_func__doprnt=no"
2666
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2667
echo "$ac_t""yes" 1>&6
2668
cat >> confdefs.h <<\EOF
2669
#define HAVE_DOPRNT 1
2673
echo "$ac_t""no" 1>&6
2678
echo $ac_n "checking for strftime""... $ac_c" 1>&6
2679
echo "configure:2680: checking for strftime" >&5
2680
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2681
echo $ac_n "(cached) $ac_c" 1>&6
2683
cat > conftest.$ac_ext <<EOF
2684
#line 2685 "configure"
2685
#include "confdefs.h"
2686
/* System header to define __stub macros and hopefully few prototypes,
2687
which can conflict with char strftime(); below. */
2689
/* Override any gcc2 internal prototype to avoid an error. */
2690
/* We use char because int might match the return type of a gcc2
2691
builtin and then its argument prototype would still apply. */
2696
/* The GNU C library defines this for functions which it implements
2697
to always fail with ENOSYS. Some functions are actually named
2698
something starting with __ and the normal name is an alias. */
2699
#if defined (__stub_strftime) || defined (__stub___strftime)
2707
if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709
eval "ac_cv_func_strftime=yes"
2711
echo "configure: failed program was:" >&5
2712
cat conftest.$ac_ext >&5
2714
eval "ac_cv_func_strftime=no"
2719
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2720
echo "$ac_t""yes" 1>&6
2721
cat >> confdefs.h <<\EOF
2722
#define HAVE_STRFTIME 1
2726
echo "$ac_t""no" 1>&6
2727
# strftime is in -lintl on SCO UNIX.
2728
echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2729
echo "configure:2730: checking for strftime in -lintl" >&5
2730
ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2731
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2732
echo $ac_n "(cached) $ac_c" 1>&6
2734
ac_save_LIBS="$LIBS"
2736
cat > conftest.$ac_ext <<EOF
2737
#line 2738 "configure"
2738
#include "confdefs.h"
2739
/* Override any gcc2 internal prototype to avoid an error. */
2740
/* We use char because int might match the return type of a gcc2
2741
builtin and then its argument prototype would still apply. */
2748
if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2750
eval "ac_cv_lib_$ac_lib_var=yes"
2752
echo "configure: failed program was:" >&5
2753
cat conftest.$ac_ext >&5
2755
eval "ac_cv_lib_$ac_lib_var=no"
2758
LIBS="$ac_save_LIBS"
2761
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2762
echo "$ac_t""yes" 1>&6
2763
cat >> confdefs.h <<\EOF
2764
#define HAVE_STRFTIME 1
2769
echo "$ac_t""no" 1>&6
2774
for ac_func in usleep getopt
2776
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2777
echo "configure:2778: checking for $ac_func" >&5
2778
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2779
echo $ac_n "(cached) $ac_c" 1>&6
2781
cat > conftest.$ac_ext <<EOF
2782
#line 2783 "configure"
2783
#include "confdefs.h"
2784
/* System header to define __stub macros and hopefully few prototypes,
2785
which can conflict with char $ac_func(); below. */
2787
/* Override any gcc2 internal prototype to avoid an error. */
2788
/* We use char because int might match the return type of a gcc2
2789
builtin and then its argument prototype would still apply. */
2794
/* The GNU C library defines this for functions which it implements
2795
to always fail with ENOSYS. Some functions are actually named
2796
something starting with __ and the normal name is an alias. */
2797
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2805
if { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2807
eval "ac_cv_func_$ac_func=yes"
2809
echo "configure: failed program was:" >&5
2810
cat conftest.$ac_ext >&5
2812
eval "ac_cv_func_$ac_func=no"
2817
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2818
echo "$ac_t""yes" 1>&6
2819
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2820
cat >> confdefs.h <<EOF
2821
#define $ac_tr_func 1
2825
echo "$ac_t""no" 1>&6
2826
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2831
echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
2832
echo "configure:2833: checking for strcasecmp" >&5
2833
if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
2834
echo $ac_n "(cached) $ac_c" 1>&6
2836
cat > conftest.$ac_ext <<EOF
2837
#line 2838 "configure"
2838
#include "confdefs.h"
2839
/* System header to define __stub macros and hopefully few prototypes,
2840
which can conflict with char strcasecmp(); below. */
2842
/* Override any gcc2 internal prototype to avoid an error. */
2843
/* We use char because int might match the return type of a gcc2
2844
builtin and then its argument prototype would still apply. */
2849
/* The GNU C library defines this for functions which it implements
2850
to always fail with ENOSYS. Some functions are actually named
2851
something starting with __ and the normal name is an alias. */
2852
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
2860
if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2862
eval "ac_cv_func_strcasecmp=yes"
2864
echo "configure: failed program was:" >&5
2865
cat conftest.$ac_ext >&5
2867
eval "ac_cv_func_strcasecmp=no"
2872
if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
2873
echo "$ac_t""yes" 1>&6
2876
echo "$ac_t""no" 1>&6
2877
LIBOBJS="$LIBOBJS strcscmp.o"
2881
cat >> confdefs.h <<\EOF
2886
if test $ac_cv_header_termios_h != yes; then
2887
{ echo "configure: error: Cannot work without termios!" 1>&2; exit 1; }
2889
if test $ac_cv_func_select != yes; then
2890
{ echo "configure: error: Cannot work without select() function!" 1>&2; exit 1; }
2892
if test $ac_cv_func_vprintf != yes; then
2893
{ echo "configure: error: Cannot work without v*printf() functions!" 1>&2; exit 1; }
2895
if test $INT16 = unknown; then
2896
{ echo "configure: error: Cannot determine 16bit integer type!" 1>&2; exit 1; }
2898
if test $INT32 = unknown; then
2899
{ echo "configure: error: Cannot determine 32bit integer type!" 1>&2; exit 1; }
2904
cat >> confdefs.h <<\EOF
2905
#define DEVVERSION 1
2910
# This is necessary so that .o files in LIBOBJS are also built via
2911
# the ANSI2KNR-filtering rules.
2912
LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
2914
if test "X$with_rtprio" = "Xyes"; then
2915
echo "$ac_t""***" 1>&6
2916
echo "$ac_t""*** "photopc" program must be setuid root to use realtime priority" 1>&6
2917
echo "$ac_t""***" 1>&6
2921
cat > confcache <<\EOF
2922
# This file is a shell script that caches the results of configure
2923
# tests run on this system so they can be shared between configure
2924
# scripts and configure runs. It is not useful on other systems.
2925
# If it contains results you don't want to keep, you may remove or edit it.
2927
# By default, configure uses ./config.cache as the cache file,
2928
# creating it if it does not exist already. You can give configure
2929
# the --cache-file=FILE option to use a different cache file; that is
2930
# what configure does when it calls configure scripts in
2931
# subdirectories, so they share the cache.
2932
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2933
# config.status only pays attention to the cache file if you give it the
2934
# --recheck option to rerun configure.
2937
# The following way of writing the cache mishandles newlines in values,
2938
# but we know of no workaround that is simple, portable, and efficient.
2939
# So, don't put newlines in cache variables' values.
2940
# Ultrix sh set writes to stderr and can't be redirected directly,
2941
# and sets the high bit in the cache file unless we assign to the vars.
2943
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2945
# `set' does not quote correctly, so add quotes (double-quote substitution
2946
# turns \\\\ into \\, and sed turns \\ into \).
2948
-e "s/'/'\\\\''/g" \
2949
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2952
# `set' quotes correctly as required by POSIX, so do not add quotes.
2953
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2956
if cmp -s $cache_file confcache; then
2959
if test -w $cache_file; then
2960
echo "updating cache $cache_file"
2961
cat confcache > $cache_file
2963
echo "not updating unwritable cache $cache_file"
2968
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2970
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2971
# Let make expand exec_prefix.
2972
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2974
# Any assignment to VPATH causes Sun make to only execute
2975
# the first set of double-colon rules, so remove it if not needed.
2976
# If there is a colon in the path, we need to keep it.
2977
if test "x$srcdir" = x.; then
2978
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2981
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2983
DEFS=-DHAVE_CONFIG_H
2985
# Without the "./", some shells look in PATH for config.status.
2986
: ${CONFIG_STATUS=./config.status}
2988
echo creating $CONFIG_STATUS
2989
rm -f $CONFIG_STATUS
2990
cat > $CONFIG_STATUS <<EOF
2992
# Generated automatically by configure.
2993
# Run this file to recreate the current configuration.
2994
# This directory was configured as follows,
2995
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2997
# $0 $ac_configure_args
2999
# Compiler output produced by configure, useful for debugging
3000
# configure, is in ./config.log if it exists.
3002
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3005
case "\$ac_option" in
3006
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3007
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3008
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3009
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3010
echo "$CONFIG_STATUS generated by autoconf version 2.13"
3012
-help | --help | --hel | --he | --h)
3013
echo "\$ac_cs_usage"; exit 0 ;;
3014
*) echo "\$ac_cs_usage"; exit 1 ;;
3018
ac_given_srcdir=$srcdir
3019
ac_given_INSTALL="$INSTALL"
3021
trap 'rm -fr `echo "Makefile config.h dos/version.h win32/version.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3023
cat >> $CONFIG_STATUS <<EOF
3025
# Protect against being on the right side of a sed subst in config.status.
3026
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3027
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3031
s%@CFLAGS@%$CFLAGS%g
3032
s%@CPPFLAGS@%$CPPFLAGS%g
3033
s%@CXXFLAGS@%$CXXFLAGS%g
3034
s%@FFLAGS@%$FFLAGS%g
3036
s%@LDFLAGS@%$LDFLAGS%g
3038
s%@exec_prefix@%$exec_prefix%g
3039
s%@prefix@%$prefix%g
3040
s%@program_transform_name@%$program_transform_name%g
3041
s%@bindir@%$bindir%g
3042
s%@sbindir@%$sbindir%g
3043
s%@libexecdir@%$libexecdir%g
3044
s%@datadir@%$datadir%g
3045
s%@sysconfdir@%$sysconfdir%g
3046
s%@sharedstatedir@%$sharedstatedir%g
3047
s%@localstatedir@%$localstatedir%g
3048
s%@libdir@%$libdir%g
3049
s%@includedir@%$includedir%g
3050
s%@oldincludedir@%$oldincludedir%g
3051
s%@infodir@%$infodir%g
3052
s%@mandir@%$mandir%g
3053
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3054
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3055
s%@INSTALL_DATA@%$INSTALL_DATA%g
3056
s%@PACKAGE@%$PACKAGE%g
3057
s%@VERSION@%$VERSION%g
3058
s%@ACLOCAL@%$ACLOCAL%g
3059
s%@AUTOCONF@%$AUTOCONF%g
3060
s%@AUTOMAKE@%$AUTOMAKE%g
3061
s%@AUTOHEADER@%$AUTOHEADER%g
3062
s%@MAKEINFO@%$MAKEINFO%g
3063
s%@SET_MAKE@%$SET_MAKE%g
3067
s%@ANSI2KNR@%$ANSI2KNR%g
3073
s%@LIBPROGS@%$LIBPROGS%g
3074
s%@RANLIB@%$RANLIB%g
3079
s%@LIBOBJS@%$LIBOBJS%g
3084
cat >> $CONFIG_STATUS <<\EOF
3086
# Split the substitutions into bite-sized pieces for seds with
3087
# small command number limits, like on Digital OSF/1 and HP-UX.
3088
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3089
ac_file=1 # Number of current file.
3090
ac_beg=1 # First line for current file.
3091
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3094
while $ac_more_lines; do
3095
if test $ac_beg -gt 1; then
3096
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3098
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3100
if test ! -s conftest.s$ac_file; then
3102
rm -f conftest.s$ac_file
3104
if test -z "$ac_sed_cmds"; then
3105
ac_sed_cmds="sed -f conftest.s$ac_file"
3107
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3109
ac_file=`expr $ac_file + 1`
3111
ac_end=`expr $ac_end + $ac_max_sed_cmds`
3114
if test -z "$ac_sed_cmds"; then
3119
cat >> $CONFIG_STATUS <<EOF
3121
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3123
cat >> $CONFIG_STATUS <<\EOF
3124
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3125
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3127
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3128
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3129
*) ac_file_in="${ac_file}.in" ;;
3132
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3134
# Remove last slash and all that follows it. Not all systems have dirname.
3135
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3136
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3137
# The file is in a subdirectory.
3138
test ! -d "$ac_dir" && mkdir "$ac_dir"
3139
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3140
# A "../" for each directory in $ac_dir_suffix.
3141
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3143
ac_dir_suffix= ac_dots=
3146
case "$ac_given_srcdir" in
3148
if test -z "$ac_dots"; then top_srcdir=.
3149
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3150
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3152
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3153
top_srcdir="$ac_dots$ac_given_srcdir" ;;
3156
case "$ac_given_INSTALL" in
3157
[/$]*) INSTALL="$ac_given_INSTALL" ;;
3158
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3161
echo creating "$ac_file"
3163
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3165
*Makefile*) ac_comsub="1i\\
3166
# $configure_input" ;;
3170
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3172
s%@configure_input@%$configure_input%g
3173
s%@srcdir@%$srcdir%g
3174
s%@top_srcdir@%$top_srcdir%g
3175
s%@INSTALL@%$INSTALL%g
3176
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3180
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3181
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3183
# ac_d sets the value in "#define NAME VALUE" lines.
3184
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3185
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3188
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3189
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3190
ac_uB='\([ ]\)%\1#\2define\3'
3193
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3194
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3195
ac_eB='$%\1#\2define\3'
3199
if test "${CONFIG_HEADERS+set}" != set; then
3201
cat >> $CONFIG_STATUS <<EOF
3202
CONFIG_HEADERS="config.h dos/version.h win32/version.h"
3204
cat >> $CONFIG_STATUS <<\EOF
3206
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3207
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3209
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3210
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3211
*) ac_file_in="${ac_file}.in" ;;
3214
echo creating $ac_file
3216
rm -f conftest.frag conftest.in conftest.out
3217
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3218
cat $ac_file_inputs > conftest.in
3222
# Transform confdefs.h into a sed script conftest.vals that substitutes
3223
# the proper values into config.h.in to produce config.h. And first:
3224
# Protect against being on the right side of a sed subst in config.status.
3225
# Protect against being in an unquoted here document in config.status.
3227
cat > conftest.hdr <<\EOF
3230
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3234
sed -n -f conftest.hdr confdefs.h > conftest.vals
3237
# This sed command replaces #undef with comments. This is necessary, for
3238
# example, in the case of _POSIX_SOURCE, which is predefined and required
3239
# on some systems where configure will not decide to define it.
3240
cat >> conftest.vals <<\EOF
3241
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3244
# Break up conftest.vals because some shells have a limit on
3245
# the size of here documents, and old seds have small limits too.
3250
ac_lines=`grep -c . conftest.vals`
3251
# grep -c gives empty output for an empty file on some AIX systems.
3252
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3253
# Write a limited-size here document to conftest.frag.
3254
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3255
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3257
sed -f conftest.frag conftest.in > conftest.out
3259
mv conftest.out conftest.in
3261
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3263
mv conftest.tail conftest.vals
3267
cat >> $CONFIG_STATUS <<\EOF
3268
rm -f conftest.frag conftest.h
3269
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3270
cat conftest.in >> conftest.h
3272
if cmp -s $ac_file conftest.h 2>/dev/null; then
3273
echo "$ac_file is unchanged"
3276
# Remove last slash and all that follows it. Not all systems have dirname.
3277
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3278
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3279
# The file is in a subdirectory.
3280
test ! -d "$ac_dir" && mkdir "$ac_dir"
3283
mv conftest.h $ac_file
3288
cat >> $CONFIG_STATUS <<EOF
3292
cat >> $CONFIG_STATUS <<\EOF
3294
for am_file in config.h dos/version.h win32/version.h; do
3295
case " $CONFIG_HEADERS " in
3297
echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
3300
am_indx=`expr "$am_indx" + 1`
3305
chmod +x $CONFIG_STATUS
3306
rm -fr confdefs* $ac_clean_files
3307
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1