~ubuntu-branches/ubuntu/vivid/cproto/vivid-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Kenneth J. Pronovici
  • Date: 2004-03-30 19:58:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040330195833-loh9sgce2as79j67
Tags: 4.7c-1
* New upstream release.
  - Includes equivalent of patch as used to close #228801 (see below).
  - Supports -X option to filter out unwanted definitions (closes: #235824).
* Now configure using --enable-llib option, so we don't need lint installed.
* Added gcc to Depends: line since -X option requires GCC to work; I assume
  most users will already have gcc installed anyway, if they are developers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
 
# From configure.in Revision: 4.6.1.1 
 
2
# From configure.in Revision: 4.7.1.3 .
4
3
# Guess values for system-dependent variables and create Makefiles.
5
 
# Generated automatically using autoconf version 2.13.19990117 
6
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
4
# Generated by Autoconf 2.52.20030208.
7
5
#
 
6
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
7
# Free Software Foundation, Inc.
8
8
# This configure script is free software; the Free Software Foundation
9
9
# gives unlimited permission to copy, distribute and modify it.
10
10
 
11
 
# Defaults:
12
 
ac_help=
 
11
# Avoid depending upon Character Ranges.
 
12
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15
as_cr_digits='0123456789'
 
16
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
17
 
 
18
# Sed expression to map a string onto a valid variable name.
 
19
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
20
 
 
21
# Sed expression to map a string onto a valid CPP name.
 
22
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
23
 
 
24
# Be Bourne compatible
 
25
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
26
  emulate sh
 
27
  NULLCMD=:
 
28
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
29
  set -o posix
 
30
fi
 
31
 
 
32
# Name of the executable.
 
33
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
34
 
 
35
if expr a : '\(a\)' >/dev/null 2>&1; then
 
36
  as_expr=expr
 
37
else
 
38
  as_expr=false
 
39
fi
 
40
 
 
41
rm -f conf$$ conf$$.exe conf$$.file
 
42
echo >conf$$.file
 
43
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
44
  # We could just check for DJGPP; but this test a) works b) is more generic
 
45
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
46
  if test -f conf$$.exe; then
 
47
    # Don't use ln at all; we don't have any links
 
48
    as_ln_s='cp -p'
 
49
  else
 
50
    as_ln_s='ln -s'
 
51
  fi
 
52
elif ln conf$$.file conf$$ 2>/dev/null; then
 
53
  as_ln_s=ln
 
54
else
 
55
  as_ln_s='cp -p'
 
56
fi
 
57
rm -f conf$$ conf$$.exe conf$$.file
 
58
 
 
59
as_executable_p="test -f"
 
60
 
 
61
# Support unset when possible.
 
62
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
63
  as_unset=unset
 
64
else
 
65
  as_unset=false
 
66
fi
 
67
 
 
68
# NLS nuisances.
 
69
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
70
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
71
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
72
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
73
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
74
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
75
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
76
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
77
 
 
78
# IFS
 
79
# We need space, tab and new line, in precisely that order.
 
80
as_nl='
 
81
'
 
82
IFS="   $as_nl"
 
83
 
 
84
# CDPATH.
 
85
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
86
 
 
87
# Name of the host.
 
88
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
89
# so uname gets run too.
 
90
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
91
 
 
92
exec 6>&1
 
93
 
 
94
#
 
95
# Initializations.
 
96
#
13
97
ac_default_prefix=/usr/local
14
 
# Any additions from configure.in:
 
98
cross_compiling=no
 
99
subdirs=
 
100
MFLAGS= MAKEFLAGS=
 
101
SHELL=${CONFIG_SHELL-/bin/sh}
 
102
 
 
103
# Maximum number of lines to put in a shell here document.
 
104
# This variable seems obsolete.  It should probably be removed, and
 
105
# only ac_max_sed_lines should be used.
 
106
: ${ac_max_here_lines=38}
 
107
 
 
108
ac_unique_file="cproto.c"
15
109
 
16
110
# Initialize some variables set by options.
 
111
ac_init_help=
 
112
ac_init_version=false
17
113
# The variables have the same names as the options, with
18
114
# dashes changed to underlines.
19
 
build=NONE
20
 
cache_file=./config.cache
 
115
cache_file=/dev/null
21
116
exec_prefix=NONE
22
 
host=NONE
23
117
no_create=
24
 
nonopt=NONE
25
118
no_recursion=
26
119
prefix=NONE
27
120
program_prefix=NONE
30
123
silent=
31
124
site=
32
125
srcdir=
33
 
target=NONE
34
126
verbose=
35
127
x_includes=NONE
36
128
x_libraries=NONE
 
129
 
 
130
# Installation directory options.
 
131
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
132
# and all the variables that are supposed to be based on exec_prefix
 
133
# by default will actually change.
 
134
# Use braces instead of parens because sh, perl, etc. also accept them.
37
135
bindir='${exec_prefix}/bin'
38
136
sbindir='${exec_prefix}/sbin'
39
137
libexecdir='${exec_prefix}/libexec'
47
145
infodir='${prefix}/info'
48
146
mandir='${prefix}/man'
49
147
 
50
 
# Initialize some other variables.
51
 
subdirs=
52
 
MFLAGS= MAKEFLAGS=
53
 
SHELL=${CONFIG_SHELL-/bin/sh}
54
 
# Maximum number of lines to put in a shell here document.
55
 
ac_max_here_lines=12
 
148
# Identity of this package.
 
149
PACKAGE_NAME=
 
150
PACKAGE_TARNAME=
 
151
PACKAGE_VERSION=
 
152
PACKAGE_STRING=
 
153
PACKAGE_BUGREPORT=
56
154
 
57
155
ac_prev=
58
156
for ac_option
59
157
do
60
 
 
61
158
  # If the previous option needs an argument, assign it.
62
159
  if test -n "$ac_prev"; then
63
160
    eval "$ac_prev=\$ac_option"
65
162
    continue
66
163
  fi
67
164
 
68
 
  case "$ac_option" in
69
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70
 
  *) ac_optarg= ;;
71
 
  esac
 
165
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
72
166
 
73
167
  # Accept the important Cygnus configure options, so we can diagnose typos.
74
168
 
75
 
  case "$ac_option" in
 
169
  case $ac_option in
76
170
 
77
171
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
78
172
    ac_prev=bindir ;;
79
173
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80
 
    bindir="$ac_optarg" ;;
 
174
    bindir=$ac_optarg ;;
81
175
 
82
176
  -build | --build | --buil | --bui | --bu)
83
 
    ac_prev=build ;;
 
177
    ac_prev=build_alias ;;
84
178
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85
 
    build="$ac_optarg" ;;
 
179
    build_alias=$ac_optarg ;;
86
180
 
87
181
  -cache-file | --cache-file | --cache-fil | --cache-fi \
88
182
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89
183
    ac_prev=cache_file ;;
90
184
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91
185
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92
 
    cache_file="$ac_optarg" ;;
 
186
    cache_file=$ac_optarg ;;
 
187
 
 
188
  --config-cache | -C)
 
189
    cache_file=config.cache ;;
93
190
 
94
191
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95
192
    ac_prev=datadir ;;
96
193
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97
194
  | --da=*)
98
 
    datadir="$ac_optarg" ;;
 
195
    datadir=$ac_optarg ;;
99
196
 
100
197
  -disable-* | --disable-*)
101
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
198
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
102
199
    # Reject names that are not valid shell variable names.
103
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105
 
    fi
106
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107
 
    eval "enable_${ac_feature}=no" ;;
 
200
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
201
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
202
   { (exit 1); exit 1; }; }
 
203
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
204
    eval "enable_$ac_feature=no" ;;
108
205
 
109
206
  -enable-* | --enable-*)
110
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
207
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
111
208
    # Reject names that are not valid shell variable names.
112
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114
 
    fi
115
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116
 
    case "$ac_option" in
117
 
      *=*) ;;
 
209
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
210
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
211
   { (exit 1); exit 1; }; }
 
212
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
213
    case $ac_option in
 
214
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
118
215
      *) ac_optarg=yes ;;
119
216
    esac
120
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
217
    eval "enable_$ac_feature='$ac_optarg'" ;;
121
218
 
122
219
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123
220
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126
223
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127
224
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128
225
  | --exec=* | --exe=* | --ex=*)
129
 
    exec_prefix="$ac_optarg" ;;
 
226
    exec_prefix=$ac_optarg ;;
130
227
 
131
228
  -gas | --gas | --ga | --g)
132
229
    # Obsolete; use --with-gas.
133
230
    with_gas=yes ;;
134
231
 
135
 
  -help | --help | --hel | --he)
136
 
    # Omit some internal or obsolete options to make the list less imposing.
137
 
    # This message is too long to be a string in the A/UX 3.1 sh.
138
 
    cat << EOF
139
 
Usage: configure [options] [host]
140
 
Options: [defaults in brackets after descriptions]
141
 
Configuration:
142
 
  --cache-file=FILE       cache test results in FILE
143
 
  --help                  print this message
144
 
  --no-create             do not create output files
145
 
  --quiet, --silent       do not print \`checking...' messages
146
 
  --version               print the version of autoconf that created configure
147
 
Directory and file names:
148
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
149
 
                          [$ac_default_prefix]
150
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
151
 
                          [same as prefix]
152
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
153
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
154
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
155
 
  --datadir=DIR           read-only architecture-independent data in DIR
156
 
                          [PREFIX/share]
157
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
158
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
159
 
                          [PREFIX/com]
160
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
161
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
162
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
163
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
164
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
165
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
166
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
167
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
168
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
169
 
  --program-transform-name=PROGRAM
170
 
                          run sed PROGRAM on installed program names
171
 
EOF
172
 
    cat << EOF
173
 
Host type:
174
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
175
 
  --host=HOST             configure for HOST [guessed]
176
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
177
 
Features and packages:
178
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
179
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
180
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
181
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
182
 
  --x-includes=DIR        X include files are in DIR
183
 
  --x-libraries=DIR       X library files are in DIR
184
 
EOF
185
 
cat <<EOF
186
 
--enable and --with options recognized:
187
 
  --with-warnings         use gcc warnings (used for developing this tool)
188
 
  --with-trace            use trace.c for memory-testing
189
 
  --with-dmalloc          use Gray Watson's dmalloc
190
 
  --with-dbmalloc         use Conor Cahill's dbmalloc
191
 
EOF
192
 
    exit 0 ;;
 
232
  -help | --help | --hel | --he | -h)
 
233
    ac_init_help=long ;;
 
234
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
235
    ac_init_help=recursive ;;
 
236
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
237
    ac_init_help=short ;;
193
238
 
194
239
  -host | --host | --hos | --ho)
195
 
    ac_prev=host ;;
 
240
    ac_prev=host_alias ;;
196
241
  -host=* | --host=* | --hos=* | --ho=*)
197
 
    host="$ac_optarg" ;;
 
242
    host_alias=$ac_optarg ;;
198
243
 
199
244
  -includedir | --includedir | --includedi | --included | --include \
200
245
  | --includ | --inclu | --incl | --inc)
201
246
    ac_prev=includedir ;;
202
247
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203
248
  | --includ=* | --inclu=* | --incl=* | --inc=*)
204
 
    includedir="$ac_optarg" ;;
 
249
    includedir=$ac_optarg ;;
205
250
 
206
251
  -infodir | --infodir | --infodi | --infod | --info | --inf)
207
252
    ac_prev=infodir ;;
208
253
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209
 
    infodir="$ac_optarg" ;;
 
254
    infodir=$ac_optarg ;;
210
255
 
211
256
  -libdir | --libdir | --libdi | --libd)
212
257
    ac_prev=libdir ;;
213
258
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
214
 
    libdir="$ac_optarg" ;;
 
259
    libdir=$ac_optarg ;;
215
260
 
216
261
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217
262
  | --libexe | --libex | --libe)
218
263
    ac_prev=libexecdir ;;
219
264
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220
265
  | --libexe=* | --libex=* | --libe=*)
221
 
    libexecdir="$ac_optarg" ;;
 
266
    libexecdir=$ac_optarg ;;
222
267
 
223
268
  -localstatedir | --localstatedir | --localstatedi | --localstated \
224
269
  | --localstate | --localstat | --localsta | --localst \
227
272
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228
273
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229
274
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230
 
    localstatedir="$ac_optarg" ;;
 
275
    localstatedir=$ac_optarg ;;
231
276
 
232
277
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233
278
    ac_prev=mandir ;;
234
279
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235
 
    mandir="$ac_optarg" ;;
 
280
    mandir=$ac_optarg ;;
236
281
 
237
282
  -nfp | --nfp | --nf)
238
283
    # Obsolete; use --without-fp.
253
298
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254
299
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255
300
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256
 
    oldincludedir="$ac_optarg" ;;
 
301
    oldincludedir=$ac_optarg ;;
257
302
 
258
303
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259
304
    ac_prev=prefix ;;
260
305
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261
 
    prefix="$ac_optarg" ;;
 
306
    prefix=$ac_optarg ;;
262
307
 
263
308
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
264
309
  | --program-pre | --program-pr | --program-p)
265
310
    ac_prev=program_prefix ;;
266
311
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
267
312
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268
 
    program_prefix="$ac_optarg" ;;
 
313
    program_prefix=$ac_optarg ;;
269
314
 
270
315
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
271
316
  | --program-suf | --program-su | --program-s)
272
317
    ac_prev=program_suffix ;;
273
318
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
274
319
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275
 
    program_suffix="$ac_optarg" ;;
 
320
    program_suffix=$ac_optarg ;;
276
321
 
277
322
  -program-transform-name | --program-transform-name \
278
323
  | --program-transform-nam | --program-transform-na \
289
334
  | --program-transfo=* | --program-transf=* \
290
335
  | --program-trans=* | --program-tran=* \
291
336
  | --progr-tra=* | --program-tr=* | --program-t=*)
292
 
    program_transform_name="$ac_optarg" ;;
 
337
    program_transform_name=$ac_optarg ;;
293
338
 
294
339
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295
340
  | -silent | --silent | --silen | --sile | --sil)
299
344
    ac_prev=sbindir ;;
300
345
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301
346
  | --sbi=* | --sb=*)
302
 
    sbindir="$ac_optarg" ;;
 
347
    sbindir=$ac_optarg ;;
303
348
 
304
349
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
305
350
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310
355
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311
356
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312
357
  | --sha=* | --sh=*)
313
 
    sharedstatedir="$ac_optarg" ;;
 
358
    sharedstatedir=$ac_optarg ;;
314
359
 
315
360
  -site | --site | --sit)
316
361
    ac_prev=site ;;
317
362
  -site=* | --site=* | --sit=*)
318
 
    site="$ac_optarg" ;;
 
363
    site=$ac_optarg ;;
319
364
 
320
365
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321
366
    ac_prev=srcdir ;;
322
367
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323
 
    srcdir="$ac_optarg" ;;
 
368
    srcdir=$ac_optarg ;;
324
369
 
325
370
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326
371
  | --syscon | --sysco | --sysc | --sys | --sy)
327
372
    ac_prev=sysconfdir ;;
328
373
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329
374
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330
 
    sysconfdir="$ac_optarg" ;;
 
375
    sysconfdir=$ac_optarg ;;
331
376
 
332
377
  -target | --target | --targe | --targ | --tar | --ta | --t)
333
 
    ac_prev=target ;;
 
378
    ac_prev=target_alias ;;
334
379
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335
 
    target="$ac_optarg" ;;
 
380
    target_alias=$ac_optarg ;;
336
381
 
337
382
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
338
383
    verbose=yes ;;
339
384
 
340
 
  -version | --version | --versio | --versi | --vers)
341
 
    echo "configure generated by autoconf version 2.13.19990117"
342
 
    exit 0 ;;
 
385
  -version | --version | --versio | --versi | --vers | -V)
 
386
    ac_init_version=: ;;
343
387
 
344
388
  -with-* | --with-*)
345
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
389
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
346
390
    # Reject names that are not valid shell variable names.
347
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349
 
    fi
 
391
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
392
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
393
   { (exit 1); exit 1; }; }
350
394
    ac_package=`echo $ac_package| sed 's/-/_/g'`
351
 
    case "$ac_option" in
352
 
      *=*) ;;
 
395
    case $ac_option in
 
396
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
353
397
      *) ac_optarg=yes ;;
354
398
    esac
355
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
399
    eval "with_$ac_package='$ac_optarg'" ;;
356
400
 
357
401
  -without-* | --without-*)
358
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
402
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
359
403
    # Reject names that are not valid shell variable names.
360
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362
 
    fi
363
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
364
 
    eval "with_${ac_package}=no" ;;
 
404
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
405
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
406
   { (exit 1); exit 1; }; }
 
407
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
408
    eval "with_$ac_package=no" ;;
365
409
 
366
410
  --x)
367
411
    # Obsolete; use --with-x.
372
416
    ac_prev=x_includes ;;
373
417
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374
418
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375
 
    x_includes="$ac_optarg" ;;
 
419
    x_includes=$ac_optarg ;;
376
420
 
377
421
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
378
422
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379
423
    ac_prev=x_libraries ;;
380
424
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381
425
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382
 
    x_libraries="$ac_optarg" ;;
 
426
    x_libraries=$ac_optarg ;;
383
427
 
384
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
428
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
429
Try \`$0 --help' for more information." >&2
 
430
   { (exit 1); exit 1; }; }
385
431
    ;;
386
432
 
 
433
  *=*)
 
434
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
435
    # Reject names that are not valid shell variable names.
 
436
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
437
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
438
   { (exit 1); exit 1; }; }
 
439
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
440
    eval "$ac_envvar='$ac_optarg'"
 
441
    export $ac_envvar ;;
 
442
 
387
443
  *)
388
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
390
 
    fi
391
 
    if test "x$nonopt" != xNONE; then
392
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393
 
    fi
394
 
    nonopt="$ac_option"
 
444
    # FIXME: should be removed in autoconf 3.0.
 
445
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
446
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
447
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
448
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
395
449
    ;;
396
450
 
397
451
  esac
398
452
done
399
453
 
400
454
if test -n "$ac_prev"; then
401
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402
 
fi
403
 
 
404
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405
 
 
406
 
# File descriptor usage:
407
 
# 0 standard input
408
 
# 1 file creation
409
 
# 2 errors and warnings
410
 
# 3 some systems may open it to /dev/tty
411
 
# 4 used on the Kubota Titan
412
 
# 6 checking for... messages and results
413
 
# 5 compiler messages saved in config.log
414
 
if test "$silent" = yes; then
415
 
  exec 6>/dev/null
416
 
else
417
 
  exec 6>&1
418
 
fi
419
 
exec 5>./config.log
420
 
 
421
 
echo "\
422
 
This file contains any messages produced by compilers while
423
 
running configure, to aid debugging if configure makes a mistake.
424
 
" 1>&5
425
 
 
426
 
# Strip out --no-create and --no-recursion so they do not pile up.
427
 
# Also quote any args containing shell metacharacters.
428
 
ac_configure_args=
429
 
for ac_arg
430
 
do
431
 
  case "$ac_arg" in
432
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433
 
  | --no-cr | --no-c) ;;
434
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439
 
  esac
440
 
done
441
 
 
442
 
# NLS nuisances.
443
 
# Only set these to C if already set.  These must not be set unconditionally
444
 
# because not all systems understand e.g. LANG=C (notably SCO).
445
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446
 
# Non-C LC_CTYPE values break the ctype check.
447
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
448
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
451
 
 
452
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
453
 
rm -rf conftest* confdefs.h
454
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
455
 
echo > confdefs.h
456
 
 
457
 
# A filename unique to this package, relative to the directory that
458
 
# configure is in, which we can look for to find out if srcdir is correct.
459
 
ac_unique_file=cproto.c
 
455
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
456
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
fi
 
459
 
 
460
# Be sure to have absolute paths.
 
461
for ac_var in exec_prefix prefix
 
462
do
 
463
  eval ac_val=$`echo $ac_var`
 
464
  case $ac_val in
 
465
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
466
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
467
   { (exit 1); exit 1; }; };;
 
468
  esac
 
469
done
 
470
 
 
471
# Be sure to have absolute paths.
 
472
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
473
              localstatedir libdir includedir oldincludedir infodir mandir
 
474
do
 
475
  eval ac_val=$`echo $ac_var`
 
476
  case $ac_val in
 
477
    [\\/$]* | ?:[\\/]* ) ;;
 
478
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
479
   { (exit 1); exit 1; }; };;
 
480
  esac
 
481
done
 
482
 
 
483
# There might be people who depend on the old broken behavior: `$host'
 
484
# used to hold the argument of --host etc.
 
485
build=$build_alias
 
486
host=$host_alias
 
487
target=$target_alias
 
488
 
 
489
# FIXME: should be removed in autoconf 3.0.
 
490
if test "x$host_alias" != x; then
 
491
  if test "x$build_alias" = x; then
 
492
    cross_compiling=maybe
 
493
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
494
    If a cross compiler is detected then cross compile mode will be used." >&2
 
495
  elif test "x$build_alias" != "x$host_alias"; then
 
496
    cross_compiling=yes
 
497
  fi
 
498
fi
 
499
 
 
500
ac_tool_prefix=
 
501
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
502
 
 
503
test "$silent" = yes && exec 6>/dev/null
460
504
 
461
505
# Find the source files, if location was not specified.
462
506
if test -z "$srcdir"; then
463
507
  ac_srcdir_defaulted=yes
464
508
  # Try the directory containing this script, then its parent.
465
509
  ac_prog=$0
466
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
510
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
467
511
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468
512
  srcdir=$ac_confdir
469
513
  if test ! -r $srcdir/$ac_unique_file; then
474
518
fi
475
519
if test ! -r $srcdir/$ac_unique_file; then
476
520
  if test "$ac_srcdir_defaulted" = yes; then
477
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
521
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
522
   { (exit 1); exit 1; }; }
478
523
  else
479
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480
 
  fi
481
 
fi
482
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
 
 
 
524
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
525
   { (exit 1); exit 1; }; }
 
526
  fi
 
527
fi
 
528
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
529
ac_env_build_alias_set=${build_alias+set}
 
530
ac_env_build_alias_value=$build_alias
 
531
ac_cv_env_build_alias_set=${build_alias+set}
 
532
ac_cv_env_build_alias_value=$build_alias
 
533
ac_env_host_alias_set=${host_alias+set}
 
534
ac_env_host_alias_value=$host_alias
 
535
ac_cv_env_host_alias_set=${host_alias+set}
 
536
ac_cv_env_host_alias_value=$host_alias
 
537
ac_env_target_alias_set=${target_alias+set}
 
538
ac_env_target_alias_value=$target_alias
 
539
ac_cv_env_target_alias_set=${target_alias+set}
 
540
ac_cv_env_target_alias_value=$target_alias
 
541
ac_env_CC_set=${CC+set}
 
542
ac_env_CC_value=$CC
 
543
ac_cv_env_CC_set=${CC+set}
 
544
ac_cv_env_CC_value=$CC
 
545
ac_env_CFLAGS_set=${CFLAGS+set}
 
546
ac_env_CFLAGS_value=$CFLAGS
 
547
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
548
ac_cv_env_CFLAGS_value=$CFLAGS
 
549
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
550
ac_env_LDFLAGS_value=$LDFLAGS
 
551
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
552
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
553
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
554
ac_env_CPPFLAGS_value=$CPPFLAGS
 
555
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
556
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
557
ac_env_CPP_set=${CPP+set}
 
558
ac_env_CPP_value=$CPP
 
559
ac_cv_env_CPP_set=${CPP+set}
 
560
ac_cv_env_CPP_value=$CPP
 
561
 
 
562
#
 
563
# Report the --help message.
 
564
#
 
565
if test "$ac_init_help" = "long"; then
 
566
  # Omit some internal or obsolete options to make the list less imposing.
 
567
  # This message is too long to be a string in the A/UX 3.1 sh.
 
568
  cat <<EOF
 
569
\`configure' configures this package to adapt to many kinds of systems.
 
570
 
 
571
Usage: $0 [OPTION]... [VAR=VALUE]...
 
572
 
 
573
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
574
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
575
 
 
576
Defaults for the options are specified in brackets.
 
577
 
 
578
Configuration:
 
579
  -h, --help              display this help and exit
 
580
      --help=short        display options specific to this package
 
581
      --help=recursive    display the short help of all the included packages
 
582
  -V, --version           display version information and exit
 
583
  -q, --quiet, --silent   do not print \`checking...' messages
 
584
      --cache-file=FILE   cache test results in FILE [disabled]
 
585
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
586
  -n, --no-create         do not create output files
 
587
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
588
 
 
589
EOF
 
590
 
 
591
  cat <<EOF
 
592
Installation directories:
 
593
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
594
                          [$ac_default_prefix]
 
595
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
596
                          [PREFIX]
 
597
 
 
598
By default, \`make install' will install all the files in
 
599
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
600
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
601
for instance \`--prefix=\$HOME'.
 
602
 
 
603
For better control, use the options below.
 
604
 
 
605
Fine tuning of the installation directories:
 
606
  --bindir=DIR            user executables [EPREFIX/bin]
 
607
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
608
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
609
  --datadir=DIR           read-only architecture-independent data [PREFIX/share]
 
610
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
611
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
612
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
613
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
614
  --includedir=DIR        C header files [PREFIX/include]
 
615
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
616
  --infodir=DIR           info documentation [PREFIX/info]
 
617
  --mandir=DIR            man documentation [PREFIX/man]
 
618
EOF
 
619
 
 
620
  cat <<\EOF
 
621
EOF
 
622
fi
 
623
 
 
624
if test -n "$ac_init_help"; then
 
625
 
 
626
  cat <<\EOF
 
627
 
 
628
Optional Packages:
 
629
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
630
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
631
 
 
632
Optional Features:
 
633
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
634
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
635
 
 
636
  --with-warnings         test: turn on gcc warnings
 
637
  --disable-echo          display "compiling" commands
 
638
  --enable-llib           enable lint-library (llib) support
 
639
  --with-trace            use trace.c for memory-testing
 
640
  --with-dbmalloc         use Conor Cahill's dbmalloc library
 
641
  --with-dmalloc          use Gray Watson's dmalloc library
 
642
 
 
643
Some influential environment variables:
 
644
  CC          C compiler command
 
645
  CFLAGS      C compiler flags
 
646
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
647
              nonstandard directory <lib dir>
 
648
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
649
              headers in a nonstandard directory <include dir>
 
650
  CPP         C preprocessor
 
651
 
 
652
Use these variables to override the choices made by `configure' or to help
 
653
it to find libraries and programs with nonstandard names/locations.
 
654
 
 
655
EOF
 
656
fi
 
657
 
 
658
if test "$ac_init_help" = "recursive"; then
 
659
  # If there are subdirs, report their specific --help.
 
660
  ac_popdir=`pwd`
 
661
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
 
662
    cd $ac_subdir
 
663
    # A "../" for each directory in /$ac_subdir.
 
664
    ac_dots=`echo $ac_subdir |
 
665
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
 
666
 
 
667
    case $srcdir in
 
668
    .) # No --srcdir option.  We are building in place.
 
669
      ac_sub_srcdir=$srcdir ;;
 
670
    [\\/]* | ?:[\\/]* ) # Absolute path.
 
671
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
 
672
    *) # Relative path.
 
673
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
 
674
    esac
 
675
 
 
676
    # Check for guested configure; otherwise get Cygnus style configure.
 
677
    if test -f $ac_sub_srcdir/configure.gnu; then
 
678
      echo
 
679
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
 
680
    elif test -f $ac_sub_srcdir/configure; then
 
681
      echo
 
682
      $SHELL $ac_sub_srcdir/configure  --help=recursive
 
683
    elif test -f $ac_sub_srcdir/configure.ac ||
 
684
           test -f $ac_sub_srcdir/configure.in; then
 
685
      echo
 
686
      $ac_configure --help
 
687
    else
 
688
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
689
    fi
 
690
    cd $ac_popdir
 
691
  done
 
692
fi
 
693
 
 
694
test -n "$ac_init_help" && exit 0
 
695
if $ac_init_version; then
 
696
  cat <<\EOF
 
697
 
 
698
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
699
Free Software Foundation, Inc.
 
700
This configure script is free software; the Free Software Foundation
 
701
gives unlimited permission to copy, distribute and modify it.
 
702
EOF
 
703
  exit 0
 
704
fi
 
705
exec 5>config.log
 
706
cat >&5 <<EOF
 
707
This file contains any messages produced by compilers while
 
708
running configure, to aid debugging if configure makes a mistake.
 
709
 
 
710
It was created by $as_me, which was
 
711
generated by GNU Autoconf 2.52.20030208.  Invocation command line was
 
712
 
 
713
  $ $0 $@
 
714
 
 
715
EOF
 
716
{
 
717
cat <<_ASUNAME
 
718
## ---------- ##
 
719
## Platform.  ##
 
720
## ---------- ##
 
721
 
 
722
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
723
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
724
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
725
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
726
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
727
 
 
728
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
729
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
730
 
 
731
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
732
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
733
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
734
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
735
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
736
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
737
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
738
 
 
739
PATH = $PATH
 
740
 
 
741
_ASUNAME
 
742
} >&5
 
743
 
 
744
cat >&5 <<EOF
 
745
## ------------ ##
 
746
## Core tests.  ##
 
747
## ------------ ##
 
748
 
 
749
EOF
 
750
 
 
751
# Keep a trace of the command line.
 
752
# Strip out --no-create and --no-recursion so they do not pile up.
 
753
# Also quote any args containing shell meta-characters.
 
754
ac_configure_args=
 
755
ac_sep=
 
756
for ac_arg
 
757
do
 
758
  case $ac_arg in
 
759
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
760
  | --no-cr | --no-c) ;;
 
761
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
762
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
763
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
764
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
765
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
766
    ac_sep=" " ;;
 
767
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
768
     ac_sep=" " ;;
 
769
  esac
 
770
  # Get rid of the leading space.
 
771
done
 
772
 
 
773
# When interrupted or exit'd, cleanup temporary files, and complete
 
774
# config.log.  We remove comments because anyway the quotes in there
 
775
# would cause problems or look ugly.
 
776
trap 'exit_status=$?
 
777
  # Save into config.log some information that might help in debugging.
 
778
  echo >&5
 
779
  echo "## ----------------- ##" >&5
 
780
  echo "## Cache variables.  ##" >&5
 
781
  echo "## ----------------- ##" >&5
 
782
  echo >&5
 
783
  # The following way of writing the cache mishandles newlines in values,
 
784
{
 
785
  (set) 2>&1 |
 
786
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
787
    *ac_space=\ *)
 
788
      sed -n \
 
789
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
790
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
791
      ;;
 
792
    *)
 
793
      sed -n \
 
794
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
795
      ;;
 
796
    esac;
 
797
} >&5
 
798
  sed "/^$/d" confdefs.h >conftest.log
 
799
  if test -s conftest.log; then
 
800
    echo >&5
 
801
    echo "## ------------ ##" >&5
 
802
    echo "## confdefs.h.  ##" >&5
 
803
    echo "## ------------ ##" >&5
 
804
    echo >&5
 
805
    cat conftest.log >&5
 
806
  fi
 
807
  (echo; echo) >&5
 
808
  test "$ac_signal" != 0 &&
 
809
    echo "$as_me: caught signal $ac_signal" >&5
 
810
  echo "$as_me: exit $exit_status" >&5
 
811
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
812
    exit $exit_status
 
813
     ' 0
 
814
for ac_signal in 1 2 13 15; do
 
815
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
816
done
 
817
ac_signal=0
 
818
 
 
819
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
820
rm -rf conftest* confdefs.h
 
821
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
822
echo >confdefs.h
 
823
 
 
824
# Let the site file select an alternate cache file if it wants to.
484
825
# Prefer explicitly selected file to automatically selected ones.
485
826
if test -z "$CONFIG_SITE"; then
486
827
  if test "x$prefix" != xNONE; then
491
832
fi
492
833
for ac_site_file in $CONFIG_SITE; do
493
834
  if test -r "$ac_site_file"; then
494
 
    echo "loading site script $ac_site_file"
 
835
    { echo "$as_me:835: loading site script $ac_site_file" >&5
 
836
echo "$as_me: loading site script $ac_site_file" >&6;}
 
837
    cat "$ac_site_file" >&5
495
838
    . "$ac_site_file"
496
839
  fi
497
840
done
498
841
 
499
842
if test -r "$cache_file"; then
500
 
  echo "loading cache $cache_file"
501
 
  . $cache_file
502
 
else
503
 
  echo "creating cache $cache_file"
504
 
  > $cache_file
505
 
fi
506
 
 
507
 
ac_ext=c
508
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509
 
ac_cpp='$CPP $CPPFLAGS'
510
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512
 
cross_compiling=$ac_cv_prog_cc_cross
513
 
 
514
 
ac_exeext=
515
 
ac_objext=o
516
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519
 
    ac_n= ac_c='
520
 
' ac_t='        '
521
 
  else
522
 
    ac_n=-n ac_c= ac_t=
523
 
  fi
524
 
else
525
 
  ac_n= ac_c='\c' ac_t=
526
 
fi
527
 
 
528
 
 
529
 
# Extract the first word of "gcc", so it can be a program name with args.
 
843
  # Some versions of bash will fail to source /dev/null (special
 
844
  # files actually), so we avoid doing that.
 
845
  if test -f "$cache_file"; then
 
846
    { echo "$as_me:846: loading cache $cache_file" >&5
 
847
echo "$as_me: loading cache $cache_file" >&6;}
 
848
    case $cache_file in
 
849
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
850
      *)                      . ./$cache_file;;
 
851
    esac
 
852
  fi
 
853
else
 
854
  { echo "$as_me:854: creating cache $cache_file" >&5
 
855
echo "$as_me: creating cache $cache_file" >&6;}
 
856
  >$cache_file
 
857
fi
 
858
 
 
859
# Check that the precious variables saved in the cache have kept the same
 
860
# value.
 
861
ac_cache_corrupted=false
 
862
for ac_var in `(set) 2>&1 |
 
863
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
864
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
865
  eval ac_new_set=\$ac_env_${ac_var}_set
 
866
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
867
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
868
  case $ac_old_set,$ac_new_set in
 
869
    set,)
 
870
      { echo "$as_me:870: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
871
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
872
      ac_cache_corrupted=: ;;
 
873
    ,set)
 
874
      { echo "$as_me:874: error: \`$ac_var' was not set in the previous run" >&5
 
875
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
876
      ac_cache_corrupted=: ;;
 
877
    ,);;
 
878
    *)
 
879
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
880
        { echo "$as_me:880: error: \`$ac_var' has changed since the previous run:" >&5
 
881
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
882
        { echo "$as_me:882:   former value:  $ac_old_val" >&5
 
883
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
884
        { echo "$as_me:884:   current value: $ac_new_val" >&5
 
885
echo "$as_me:   current value: $ac_new_val" >&2;}
 
886
        ac_cache_corrupted=:
 
887
      fi;;
 
888
  esac
 
889
  # Pass precious variables to config.status.  It doesn't matter if
 
890
  # we pass some twice (in addition to the command line arguments).
 
891
  if test "$ac_new_set" = set; then
 
892
    case $ac_new_val in
 
893
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
894
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 
895
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
896
      ;;
 
897
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 
898
       ;;
 
899
    esac
 
900
  fi
 
901
done
 
902
if $ac_cache_corrupted; then
 
903
  { echo "$as_me:903: error: changes in the environment can compromise the build" >&5
 
904
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
905
  { { echo "$as_me:905: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
906
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
907
   { (exit 1); exit 1; }; }
 
908
fi
 
909
 
 
910
ac_ext=c
 
911
ac_cpp='$CPP $CPPFLAGS'
 
912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
915
 
 
916
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
917
  *c*,-n*) ECHO_N= ECHO_C='
 
918
' ECHO_T='      ' ;;
 
919
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
920
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
921
esac
 
922
echo "#! $SHELL" >conftest.sh
 
923
echo  "exit 0"   >>conftest.sh
 
924
chmod +x conftest.sh
 
925
if { (echo "$as_me:925: PATH=\".;.\"; conftest.sh") >&5
 
926
  (PATH=".;."; conftest.sh) 2>&5
 
927
  ac_status=$?
 
928
  echo "$as_me:928: \$? = $ac_status" >&5
 
929
  (exit $ac_status); }; then
 
930
  ac_path_separator=';'
 
931
else
 
932
  ac_path_separator=:
 
933
fi
 
934
PATH_SEPARATOR="$ac_path_separator"
 
935
rm -f conftest.sh
 
936
 
 
937
ac_config_headers="$ac_config_headers config.h:config_h.in"
 
938
 
 
939
ac_ext=c
 
940
ac_cpp='$CPP $CPPFLAGS'
 
941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
944
if test -n "$ac_tool_prefix"; then
 
945
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
946
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
947
echo "$as_me:947: checking for $ac_word" >&5
 
948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
949
if test "${ac_cv_prog_CC+set}" = set; then
 
950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
951
else
 
952
  if test -n "$CC"; then
 
953
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
954
else
 
955
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
956
ac_dummy="$PATH"
 
957
for ac_dir in $ac_dummy; do
 
958
  IFS=$ac_save_IFS
 
959
  test -z "$ac_dir" && ac_dir=.
 
960
  $as_executable_p "$ac_dir/$ac_word" || continue
 
961
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
962
echo "$as_me:962: found $ac_dir/$ac_word" >&5
 
963
break
 
964
done
 
965
 
 
966
fi
 
967
fi
 
968
CC=$ac_cv_prog_CC
 
969
if test -n "$CC"; then
 
970
  echo "$as_me:970: result: $CC" >&5
 
971
echo "${ECHO_T}$CC" >&6
 
972
else
 
973
  echo "$as_me:973: result: no" >&5
 
974
echo "${ECHO_T}no" >&6
 
975
fi
 
976
 
 
977
fi
 
978
if test -z "$ac_cv_prog_CC"; then
 
979
  ac_ct_CC=$CC
 
980
  # Extract the first word of "gcc", so it can be a program name with args.
530
981
set dummy gcc; ac_word=$2
531
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532
 
echo "configure:533: checking for $ac_word" >&5
533
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
534
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
982
echo "$as_me:982: checking for $ac_word" >&5
 
983
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
984
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
986
else
 
987
  if test -n "$ac_ct_CC"; then
 
988
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
989
else
 
990
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
991
ac_dummy="$PATH"
 
992
for ac_dir in $ac_dummy; do
 
993
  IFS=$ac_save_IFS
 
994
  test -z "$ac_dir" && ac_dir=.
 
995
  $as_executable_p "$ac_dir/$ac_word" || continue
 
996
ac_cv_prog_ac_ct_CC="gcc"
 
997
echo "$as_me:997: found $ac_dir/$ac_word" >&5
 
998
break
 
999
done
 
1000
 
 
1001
fi
 
1002
fi
 
1003
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1004
if test -n "$ac_ct_CC"; then
 
1005
  echo "$as_me:1005: result: $ac_ct_CC" >&5
 
1006
echo "${ECHO_T}$ac_ct_CC" >&6
 
1007
else
 
1008
  echo "$as_me:1008: result: no" >&5
 
1009
echo "${ECHO_T}no" >&6
 
1010
fi
 
1011
 
 
1012
  CC=$ac_ct_CC
 
1013
else
 
1014
  CC="$ac_cv_prog_CC"
 
1015
fi
 
1016
 
 
1017
if test -z "$CC"; then
 
1018
  if test -n "$ac_tool_prefix"; then
 
1019
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1020
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1021
echo "$as_me:1021: checking for $ac_word" >&5
 
1022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1023
if test "${ac_cv_prog_CC+set}" = set; then
 
1024
  echo $ECHO_N "(cached) $ECHO_C" >&6
535
1025
else
536
1026
  if test -n "$CC"; then
537
1027
  ac_cv_prog_CC="$CC" # Let the user override the test.
538
1028
else
539
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
540
 
  ac_dummy="$PATH"
541
 
  for ac_dir in $ac_dummy; do
542
 
    test -z "$ac_dir" && ac_dir=.
543
 
    if test -f $ac_dir/$ac_word; then
544
 
      ac_cv_prog_CC="gcc"
545
 
      break
546
 
    fi
547
 
  done
548
 
  IFS="$ac_save_ifs"
549
 
fi
550
 
fi
551
 
CC="$ac_cv_prog_CC"
 
1029
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1030
ac_dummy="$PATH"
 
1031
for ac_dir in $ac_dummy; do
 
1032
  IFS=$ac_save_IFS
 
1033
  test -z "$ac_dir" && ac_dir=.
 
1034
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1035
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1036
echo "$as_me:1036: found $ac_dir/$ac_word" >&5
 
1037
break
 
1038
done
 
1039
 
 
1040
fi
 
1041
fi
 
1042
CC=$ac_cv_prog_CC
552
1043
if test -n "$CC"; then
553
 
  echo "$ac_t""$CC" 1>&6
554
 
else
555
 
  echo "$ac_t""no" 1>&6
556
 
fi
557
 
 
 
1044
  echo "$as_me:1044: result: $CC" >&5
 
1045
echo "${ECHO_T}$CC" >&6
 
1046
else
 
1047
  echo "$as_me:1047: result: no" >&5
 
1048
echo "${ECHO_T}no" >&6
 
1049
fi
 
1050
 
 
1051
fi
 
1052
if test -z "$ac_cv_prog_CC"; then
 
1053
  ac_ct_CC=$CC
 
1054
  # Extract the first word of "cc", so it can be a program name with args.
 
1055
set dummy cc; ac_word=$2
 
1056
echo "$as_me:1056: checking for $ac_word" >&5
 
1057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1058
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1060
else
 
1061
  if test -n "$ac_ct_CC"; then
 
1062
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1063
else
 
1064
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1065
ac_dummy="$PATH"
 
1066
for ac_dir in $ac_dummy; do
 
1067
  IFS=$ac_save_IFS
 
1068
  test -z "$ac_dir" && ac_dir=.
 
1069
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1070
ac_cv_prog_ac_ct_CC="cc"
 
1071
echo "$as_me:1071: found $ac_dir/$ac_word" >&5
 
1072
break
 
1073
done
 
1074
 
 
1075
fi
 
1076
fi
 
1077
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1078
if test -n "$ac_ct_CC"; then
 
1079
  echo "$as_me:1079: result: $ac_ct_CC" >&5
 
1080
echo "${ECHO_T}$ac_ct_CC" >&6
 
1081
else
 
1082
  echo "$as_me:1082: result: no" >&5
 
1083
echo "${ECHO_T}no" >&6
 
1084
fi
 
1085
 
 
1086
  CC=$ac_ct_CC
 
1087
else
 
1088
  CC="$ac_cv_prog_CC"
 
1089
fi
 
1090
 
 
1091
fi
558
1092
if test -z "$CC"; then
559
1093
  # Extract the first word of "cc", so it can be a program name with args.
560
1094
set dummy cc; ac_word=$2
561
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562
 
echo "configure:563: checking for $ac_word" >&5
563
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1095
echo "$as_me:1095: checking for $ac_word" >&5
 
1096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1097
if test "${ac_cv_prog_CC+set}" = set; then
 
1098
  echo $ECHO_N "(cached) $ECHO_C" >&6
565
1099
else
566
1100
  if test -n "$CC"; then
567
1101
  ac_cv_prog_CC="$CC" # Let the user override the test.
568
1102
else
569
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
570
1103
  ac_prog_rejected=no
571
 
  ac_dummy="$PATH"
572
 
  for ac_dir in $ac_dummy; do
573
 
    test -z "$ac_dir" && ac_dir=.
574
 
    if test -f $ac_dir/$ac_word; then
575
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
576
 
        ac_prog_rejected=yes
577
 
        continue
578
 
      fi
579
 
      ac_cv_prog_CC="cc"
580
 
      break
581
 
    fi
582
 
  done
583
 
  IFS="$ac_save_ifs"
 
1104
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1105
ac_dummy="$PATH"
 
1106
for ac_dir in $ac_dummy; do
 
1107
  IFS=$ac_save_IFS
 
1108
  test -z "$ac_dir" && ac_dir=.
 
1109
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1110
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1111
  ac_prog_rejected=yes
 
1112
  continue
 
1113
fi
 
1114
ac_cv_prog_CC="cc"
 
1115
echo "$as_me:1115: found $ac_dir/$ac_word" >&5
 
1116
break
 
1117
done
 
1118
 
584
1119
if test $ac_prog_rejected = yes; then
585
1120
  # We found a bogon in the path, so make sure we never use it.
586
1121
  set dummy $ac_cv_prog_CC
587
1122
  shift
588
 
  if test $# -gt 0; then
 
1123
  if test $# != 0; then
589
1124
    # We chose a different compiler from the bogus one.
590
1125
    # However, it has the same basename, so the bogon will be chosen
591
1126
    # first if we set CC to just the basename; use the full file name.
592
1127
    shift
593
 
    set dummy "$ac_dir/$ac_word" "$@"
 
1128
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
594
1129
    shift
595
1130
    ac_cv_prog_CC="$@"
596
1131
  fi
597
1132
fi
598
1133
fi
599
1134
fi
600
 
CC="$ac_cv_prog_CC"
 
1135
CC=$ac_cv_prog_CC
601
1136
if test -n "$CC"; then
602
 
  echo "$ac_t""$CC" 1>&6
 
1137
  echo "$as_me:1137: result: $CC" >&5
 
1138
echo "${ECHO_T}$CC" >&6
603
1139
else
604
 
  echo "$ac_t""no" 1>&6
 
1140
  echo "$as_me:1140: result: no" >&5
 
1141
echo "${ECHO_T}no" >&6
605
1142
fi
606
1143
 
607
 
  if test -z "$CC"; then
608
 
    case "`uname -s`" in
609
 
    *win32* | *WIN32*)
610
 
      # Extract the first word of "cl", so it can be a program name with args.
611
 
set dummy cl; ac_word=$2
612
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613
 
echo "configure:614: checking for $ac_word" >&5
614
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1144
fi
 
1145
if test -z "$CC"; then
 
1146
  if test -n "$ac_tool_prefix"; then
 
1147
  for ac_prog in cl
 
1148
  do
 
1149
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1150
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1151
echo "$as_me:1151: checking for $ac_word" >&5
 
1152
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1153
if test "${ac_cv_prog_CC+set}" = set; then
 
1154
  echo $ECHO_N "(cached) $ECHO_C" >&6
616
1155
else
617
1156
  if test -n "$CC"; then
618
1157
  ac_cv_prog_CC="$CC" # Let the user override the test.
619
1158
else
620
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
621
 
  ac_dummy="$PATH"
622
 
  for ac_dir in $ac_dummy; do
623
 
    test -z "$ac_dir" && ac_dir=.
624
 
    if test -f $ac_dir/$ac_word; then
625
 
      ac_cv_prog_CC="cl"
626
 
      break
627
 
    fi
 
1159
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1160
ac_dummy="$PATH"
 
1161
for ac_dir in $ac_dummy; do
 
1162
  IFS=$ac_save_IFS
 
1163
  test -z "$ac_dir" && ac_dir=.
 
1164
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1165
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1166
echo "$as_me:1166: found $ac_dir/$ac_word" >&5
 
1167
break
 
1168
done
 
1169
 
 
1170
fi
 
1171
fi
 
1172
CC=$ac_cv_prog_CC
 
1173
if test -n "$CC"; then
 
1174
  echo "$as_me:1174: result: $CC" >&5
 
1175
echo "${ECHO_T}$CC" >&6
 
1176
else
 
1177
  echo "$as_me:1177: result: no" >&5
 
1178
echo "${ECHO_T}no" >&6
 
1179
fi
 
1180
 
 
1181
    test -n "$CC" && break
628
1182
  done
629
 
  IFS="$ac_save_ifs"
630
 
fi
631
 
fi
632
 
CC="$ac_cv_prog_CC"
633
 
if test -n "$CC"; then
634
 
  echo "$ac_t""$CC" 1>&6
635
 
else
636
 
  echo "$ac_t""no" 1>&6
637
 
fi
638
 
 ;;
639
 
    esac
640
 
  fi
641
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
642
 
fi
643
 
 
644
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
645
 
echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
646
 
 
647
 
ac_ext=c
648
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649
 
ac_cpp='$CPP $CPPFLAGS'
650
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652
 
cross_compiling=$ac_cv_prog_cc_cross
653
 
 
654
 
cat > conftest.$ac_ext << EOF
655
 
 
656
 
#line 657 "configure"
 
1183
fi
 
1184
if test -z "$CC"; then
 
1185
  ac_ct_CC=$CC
 
1186
  for ac_prog in cl
 
1187
do
 
1188
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1189
set dummy $ac_prog; ac_word=$2
 
1190
echo "$as_me:1190: checking for $ac_word" >&5
 
1191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1192
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1194
else
 
1195
  if test -n "$ac_ct_CC"; then
 
1196
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1197
else
 
1198
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1199
ac_dummy="$PATH"
 
1200
for ac_dir in $ac_dummy; do
 
1201
  IFS=$ac_save_IFS
 
1202
  test -z "$ac_dir" && ac_dir=.
 
1203
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1204
ac_cv_prog_ac_ct_CC="$ac_prog"
 
1205
echo "$as_me:1205: found $ac_dir/$ac_word" >&5
 
1206
break
 
1207
done
 
1208
 
 
1209
fi
 
1210
fi
 
1211
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1212
if test -n "$ac_ct_CC"; then
 
1213
  echo "$as_me:1213: result: $ac_ct_CC" >&5
 
1214
echo "${ECHO_T}$ac_ct_CC" >&6
 
1215
else
 
1216
  echo "$as_me:1216: result: no" >&5
 
1217
echo "${ECHO_T}no" >&6
 
1218
fi
 
1219
 
 
1220
  test -n "$ac_ct_CC" && break
 
1221
done
 
1222
 
 
1223
  CC=$ac_ct_CC
 
1224
fi
 
1225
 
 
1226
fi
 
1227
 
 
1228
test -z "$CC" && { { echo "$as_me:1228: error: no acceptable cc found in \$PATH" >&5
 
1229
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
1230
   { (exit 1); exit 1; }; }
 
1231
 
 
1232
# Provide some information about the compiler.
 
1233
echo "$as_me:1233:" \
 
1234
     "checking for C compiler version" >&5
 
1235
ac_compiler=`set X $ac_compile; echo $2`
 
1236
{ (eval echo "$as_me:1236: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1237
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1238
  ac_status=$?
 
1239
  echo "$as_me:1239: \$? = $ac_status" >&5
 
1240
  (exit $ac_status); }
 
1241
{ (eval echo "$as_me:1241: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1242
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1243
  ac_status=$?
 
1244
  echo "$as_me:1244: \$? = $ac_status" >&5
 
1245
  (exit $ac_status); }
 
1246
{ (eval echo "$as_me:1246: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1247
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1248
  ac_status=$?
 
1249
  echo "$as_me:1249: \$? = $ac_status" >&5
 
1250
  (exit $ac_status); }
 
1251
 
 
1252
cat >conftest.$ac_ext <<_ACEOF
 
1253
#line 1253 "configure"
657
1254
#include "confdefs.h"
658
1255
 
659
 
main(){return(0);}
660
 
EOF
661
 
if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
662
 
  ac_cv_prog_cc_works=yes
663
 
  # If we can't run a trivial program, we are probably using a cross compiler.
664
 
  if (./conftest; exit) 2>/dev/null; then
665
 
    ac_cv_prog_cc_cross=no
 
1256
int
 
1257
main ()
 
1258
{
 
1259
 
 
1260
  ;
 
1261
  return 0;
 
1262
}
 
1263
_ACEOF
 
1264
ac_clean_files_save=$ac_clean_files
 
1265
ac_clean_files="$ac_clean_files a.out a.exe"
 
1266
# Try to create an executable without -o first, disregard a.out.
 
1267
# It will help us diagnose broken compilers, and finding out an intuition
 
1268
# of exeext.
 
1269
echo "$as_me:1269: checking for C compiler default output" >&5
 
1270
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1271
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1272
if { (eval echo "$as_me:1272: \"$ac_link_default\"") >&5
 
1273
  (eval $ac_link_default) 2>&5
 
1274
  ac_status=$?
 
1275
  echo "$as_me:1275: \$? = $ac_status" >&5
 
1276
  (exit $ac_status); }; then
 
1277
  # Find the output, starting from the most likely.  This scheme is
 
1278
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1279
# resort.
 
1280
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 
1281
                ls a.out conftest 2>/dev/null;
 
1282
                ls a.* conftest.* 2>/dev/null`; do
 
1283
  case $ac_file in
 
1284
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1285
    a.out ) # We found the default executable, but exeext='' is most
 
1286
            # certainly right.
 
1287
            break;;
 
1288
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1289
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
1290
          export ac_cv_exeext
 
1291
          break;;
 
1292
    * ) break;;
 
1293
  esac
 
1294
done
 
1295
else
 
1296
  echo "$as_me: failed program was:" >&5
 
1297
cat conftest.$ac_ext >&5
 
1298
{ { echo "$as_me:1298: error: C compiler cannot create executables" >&5
 
1299
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
1300
   { (exit 77); exit 77; }; }
 
1301
fi
 
1302
 
 
1303
ac_exeext=$ac_cv_exeext
 
1304
echo "$as_me:1304: result: $ac_file" >&5
 
1305
echo "${ECHO_T}$ac_file" >&6
 
1306
 
 
1307
# Check the compiler produces executables we can run.  If not, either
 
1308
# the compiler is broken, or we cross compile.
 
1309
echo "$as_me:1309: checking whether the C compiler works" >&5
 
1310
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1311
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1312
# If not cross compiling, check that we can run a simple program.
 
1313
if test "$cross_compiling" != yes; then
 
1314
  if { ac_try='./$ac_file'
 
1315
  { (eval echo "$as_me:1315: \"$ac_try\"") >&5
 
1316
  (eval $ac_try) 2>&5
 
1317
  ac_status=$?
 
1318
  echo "$as_me:1318: \$? = $ac_status" >&5
 
1319
  (exit $ac_status); }; }; then
 
1320
    cross_compiling=no
666
1321
  else
667
 
    ac_cv_prog_cc_cross=yes
 
1322
    if test "$cross_compiling" = maybe; then
 
1323
        cross_compiling=yes
 
1324
    else
 
1325
        { { echo "$as_me:1325: error: cannot run C compiled programs.
 
1326
If you meant to cross compile, use \`--host'." >&5
 
1327
echo "$as_me: error: cannot run C compiled programs.
 
1328
If you meant to cross compile, use \`--host'." >&2;}
 
1329
   { (exit 1); exit 1; }; }
 
1330
    fi
668
1331
  fi
669
 
else
670
 
  echo "configure: failed program was:" >&5
671
 
  cat conftest.$ac_ext >&5
672
 
  ac_cv_prog_cc_works=no
673
 
fi
674
 
rm -fr conftest*
675
 
ac_ext=c
676
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677
 
ac_cpp='$CPP $CPPFLAGS'
678
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680
 
cross_compiling=$ac_cv_prog_cc_cross
681
 
 
682
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
683
 
if test $ac_cv_prog_cc_works = no; then
684
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685
 
fi
686
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687
 
echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
688
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
689
 
cross_compiling=$ac_cv_prog_cc_cross
690
 
 
691
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
692
 
echo "configure:693: checking whether we are using GNU C" >&5
693
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
694
 
  echo $ac_n "(cached) $ac_c" 1>&6
695
 
else
696
 
  cat > conftest.c <<EOF
697
 
#ifdef __GNUC__
698
 
  yes;
 
1332
fi
 
1333
echo "$as_me:1333: result: yes" >&5
 
1334
echo "${ECHO_T}yes" >&6
 
1335
 
 
1336
rm -f a.out a.exe conftest$ac_cv_exeext
 
1337
ac_clean_files=$ac_clean_files_save
 
1338
# Check the compiler produces executables we can run.  If not, either
 
1339
# the compiler is broken, or we cross compile.
 
1340
echo "$as_me:1340: checking whether we are cross compiling" >&5
 
1341
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1342
echo "$as_me:1342: result: $cross_compiling" >&5
 
1343
echo "${ECHO_T}$cross_compiling" >&6
 
1344
 
 
1345
echo "$as_me:1345: checking for executable suffix" >&5
 
1346
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
1347
if { (eval echo "$as_me:1347: \"$ac_link\"") >&5
 
1348
  (eval $ac_link) 2>&5
 
1349
  ac_status=$?
 
1350
  echo "$as_me:1350: \$? = $ac_status" >&5
 
1351
  (exit $ac_status); }; then
 
1352
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1353
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1354
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1355
# `rm'.
 
1356
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
1357
  case $ac_file in
 
1358
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1359
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1360
          export ac_cv_exeext
 
1361
          break;;
 
1362
    * ) break;;
 
1363
  esac
 
1364
done
 
1365
else
 
1366
  { { echo "$as_me:1366: error: cannot compute EXEEXT: cannot compile and link" >&5
 
1367
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
1368
   { (exit 1); exit 1; }; }
 
1369
fi
 
1370
 
 
1371
rm -f conftest$ac_cv_exeext
 
1372
echo "$as_me:1372: result: $ac_cv_exeext" >&5
 
1373
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1374
 
 
1375
rm -f conftest.$ac_ext
 
1376
EXEEXT=$ac_cv_exeext
 
1377
ac_exeext=$EXEEXT
 
1378
echo "$as_me:1378: checking for object suffix" >&5
 
1379
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
1380
if test "${ac_cv_objext+set}" = set; then
 
1381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1382
else
 
1383
  cat >conftest.$ac_ext <<_ACEOF
 
1384
#line 1384 "configure"
 
1385
#include "confdefs.h"
 
1386
 
 
1387
int
 
1388
main ()
 
1389
{
 
1390
 
 
1391
  ;
 
1392
  return 0;
 
1393
}
 
1394
_ACEOF
 
1395
rm -f conftest.o conftest.obj
 
1396
if { (eval echo "$as_me:1396: \"$ac_compile\"") >&5
 
1397
  (eval $ac_compile) 2>&5
 
1398
  ac_status=$?
 
1399
  echo "$as_me:1399: \$? = $ac_status" >&5
 
1400
  (exit $ac_status); }; then
 
1401
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1402
  case $ac_file in
 
1403
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1404
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1405
       break;;
 
1406
  esac
 
1407
done
 
1408
else
 
1409
  echo "$as_me: failed program was:" >&5
 
1410
cat conftest.$ac_ext >&5
 
1411
{ { echo "$as_me:1411: error: cannot compute OBJEXT: cannot compile" >&5
 
1412
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
1413
   { (exit 1); exit 1; }; }
 
1414
fi
 
1415
 
 
1416
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1417
fi
 
1418
echo "$as_me:1418: result: $ac_cv_objext" >&5
 
1419
echo "${ECHO_T}$ac_cv_objext" >&6
 
1420
OBJEXT=$ac_cv_objext
 
1421
ac_objext=$OBJEXT
 
1422
echo "$as_me:1422: checking whether we are using the GNU C compiler" >&5
 
1423
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1424
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1426
else
 
1427
  cat >conftest.$ac_ext <<_ACEOF
 
1428
#line 1428 "configure"
 
1429
#include "confdefs.h"
 
1430
 
 
1431
int
 
1432
main ()
 
1433
{
 
1434
#ifndef __GNUC__
 
1435
       choke me
699
1436
#endif
700
 
EOF
701
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
702
 
  ac_cv_prog_gcc=yes
703
 
else
704
 
  ac_cv_prog_gcc=no
705
 
fi
706
 
fi
707
 
 
708
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709
 
 
710
 
if test $ac_cv_prog_gcc = yes; then
711
 
  GCC=yes
712
 
else
713
 
  GCC=
714
 
fi
715
 
 
716
 
ac_test_CFLAGS="${CFLAGS+set}"
717
 
ac_save_CFLAGS="$CFLAGS"
718
 
CFLAGS=
719
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
720
 
echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
721
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
722
 
  echo $ac_n "(cached) $ac_c" 1>&6
723
 
else
724
 
  echo 'void f(){}' > conftest.c
725
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1437
 
 
1438
  ;
 
1439
  return 0;
 
1440
}
 
1441
_ACEOF
 
1442
rm -f conftest.$ac_objext
 
1443
if { (eval echo "$as_me:1443: \"$ac_compile\"") >&5
 
1444
  (eval $ac_compile) 2>&5
 
1445
  ac_status=$?
 
1446
  echo "$as_me:1446: \$? = $ac_status" >&5
 
1447
  (exit $ac_status); } &&
 
1448
         { ac_try='test -s conftest.$ac_objext'
 
1449
  { (eval echo "$as_me:1449: \"$ac_try\"") >&5
 
1450
  (eval $ac_try) 2>&5
 
1451
  ac_status=$?
 
1452
  echo "$as_me:1452: \$? = $ac_status" >&5
 
1453
  (exit $ac_status); }; }; then
 
1454
  ac_compiler_gnu=yes
 
1455
else
 
1456
  echo "$as_me: failed program was:" >&5
 
1457
cat conftest.$ac_ext >&5
 
1458
ac_compiler_gnu=no
 
1459
fi
 
1460
rm -f conftest.$ac_objext conftest.$ac_ext
 
1461
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1462
 
 
1463
fi
 
1464
echo "$as_me:1464: result: $ac_cv_c_compiler_gnu" >&5
 
1465
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
1466
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
1467
ac_test_CFLAGS=${CFLAGS+set}
 
1468
ac_save_CFLAGS=$CFLAGS
 
1469
CFLAGS="-g"
 
1470
echo "$as_me:1470: checking whether $CC accepts -g" >&5
 
1471
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
1472
if test "${ac_cv_prog_cc_g+set}" = set; then
 
1473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1474
else
 
1475
  cat >conftest.$ac_ext <<_ACEOF
 
1476
#line 1476 "configure"
 
1477
#include "confdefs.h"
 
1478
 
 
1479
int
 
1480
main ()
 
1481
{
 
1482
 
 
1483
  ;
 
1484
  return 0;
 
1485
}
 
1486
_ACEOF
 
1487
rm -f conftest.$ac_objext
 
1488
if { (eval echo "$as_me:1488: \"$ac_compile\"") >&5
 
1489
  (eval $ac_compile) 2>&5
 
1490
  ac_status=$?
 
1491
  echo "$as_me:1491: \$? = $ac_status" >&5
 
1492
  (exit $ac_status); } &&
 
1493
         { ac_try='test -s conftest.$ac_objext'
 
1494
  { (eval echo "$as_me:1494: \"$ac_try\"") >&5
 
1495
  (eval $ac_try) 2>&5
 
1496
  ac_status=$?
 
1497
  echo "$as_me:1497: \$? = $ac_status" >&5
 
1498
  (exit $ac_status); }; }; then
726
1499
  ac_cv_prog_cc_g=yes
727
1500
else
728
 
  ac_cv_prog_cc_g=no
729
 
fi
730
 
rm -f conftest*
731
 
 
732
 
fi
733
 
 
734
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1501
  echo "$as_me: failed program was:" >&5
 
1502
cat conftest.$ac_ext >&5
 
1503
ac_cv_prog_cc_g=no
 
1504
fi
 
1505
rm -f conftest.$ac_objext conftest.$ac_ext
 
1506
fi
 
1507
echo "$as_me:1507: result: $ac_cv_prog_cc_g" >&5
 
1508
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
735
1509
if test "$ac_test_CFLAGS" = set; then
736
 
  CFLAGS="$ac_save_CFLAGS"
 
1510
  CFLAGS=$ac_save_CFLAGS
737
1511
elif test $ac_cv_prog_cc_g = yes; then
738
1512
  if test "$GCC" = yes; then
739
1513
    CFLAGS="-g -O2"
747
1521
    CFLAGS=
748
1522
  fi
749
1523
fi
750
 
 
751
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
752
 
echo "configure:753: checking how to run the C preprocessor" >&5
 
1524
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
1525
# in C++ we need to declare it.  In case someone uses the same compiler
 
1526
# for both compiling C and C++ we need to have the C++ compiler decide
 
1527
# the declaration of exit, since it's the most demanding environment.
 
1528
cat >conftest.$ac_ext <<_ACEOF
 
1529
#ifndef __cplusplus
 
1530
  choke me
 
1531
#endif
 
1532
_ACEOF
 
1533
rm -f conftest.$ac_objext
 
1534
if { (eval echo "$as_me:1534: \"$ac_compile\"") >&5
 
1535
  (eval $ac_compile) 2>&5
 
1536
  ac_status=$?
 
1537
  echo "$as_me:1537: \$? = $ac_status" >&5
 
1538
  (exit $ac_status); } &&
 
1539
         { ac_try='test -s conftest.$ac_objext'
 
1540
  { (eval echo "$as_me:1540: \"$ac_try\"") >&5
 
1541
  (eval $ac_try) 2>&5
 
1542
  ac_status=$?
 
1543
  echo "$as_me:1543: \$? = $ac_status" >&5
 
1544
  (exit $ac_status); }; }; then
 
1545
  for ac_declaration in \
 
1546
   ''\
 
1547
   '#include <stdlib.h>' \
 
1548
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
1549
   'extern "C" void std::exit (int); using std::exit;' \
 
1550
   'extern "C" void exit (int) throw ();' \
 
1551
   'extern "C" void exit (int);' \
 
1552
   'void exit (int);'
 
1553
do
 
1554
  cat >conftest.$ac_ext <<_ACEOF
 
1555
#line 1555 "configure"
 
1556
#include "confdefs.h"
 
1557
#include <stdlib.h>
 
1558
$ac_declaration
 
1559
int
 
1560
main ()
 
1561
{
 
1562
exit (42);
 
1563
  ;
 
1564
  return 0;
 
1565
}
 
1566
_ACEOF
 
1567
rm -f conftest.$ac_objext
 
1568
if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
 
1569
  (eval $ac_compile) 2>&5
 
1570
  ac_status=$?
 
1571
  echo "$as_me:1571: \$? = $ac_status" >&5
 
1572
  (exit $ac_status); } &&
 
1573
         { ac_try='test -s conftest.$ac_objext'
 
1574
  { (eval echo "$as_me:1574: \"$ac_try\"") >&5
 
1575
  (eval $ac_try) 2>&5
 
1576
  ac_status=$?
 
1577
  echo "$as_me:1577: \$? = $ac_status" >&5
 
1578
  (exit $ac_status); }; }; then
 
1579
  :
 
1580
else
 
1581
  echo "$as_me: failed program was:" >&5
 
1582
cat conftest.$ac_ext >&5
 
1583
continue
 
1584
fi
 
1585
rm -f conftest.$ac_objext conftest.$ac_ext
 
1586
  cat >conftest.$ac_ext <<_ACEOF
 
1587
#line 1587 "configure"
 
1588
#include "confdefs.h"
 
1589
$ac_declaration
 
1590
int
 
1591
main ()
 
1592
{
 
1593
exit (42);
 
1594
  ;
 
1595
  return 0;
 
1596
}
 
1597
_ACEOF
 
1598
rm -f conftest.$ac_objext
 
1599
if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
 
1600
  (eval $ac_compile) 2>&5
 
1601
  ac_status=$?
 
1602
  echo "$as_me:1602: \$? = $ac_status" >&5
 
1603
  (exit $ac_status); } &&
 
1604
         { ac_try='test -s conftest.$ac_objext'
 
1605
  { (eval echo "$as_me:1605: \"$ac_try\"") >&5
 
1606
  (eval $ac_try) 2>&5
 
1607
  ac_status=$?
 
1608
  echo "$as_me:1608: \$? = $ac_status" >&5
 
1609
  (exit $ac_status); }; }; then
 
1610
  break
 
1611
else
 
1612
  echo "$as_me: failed program was:" >&5
 
1613
cat conftest.$ac_ext >&5
 
1614
fi
 
1615
rm -f conftest.$ac_objext conftest.$ac_ext
 
1616
done
 
1617
rm -f conftest*
 
1618
if test -n "$ac_declaration"; then
 
1619
  echo '#ifdef __cplusplus' >>confdefs.h
 
1620
  echo $ac_declaration      >>confdefs.h
 
1621
  echo '#endif'             >>confdefs.h
 
1622
fi
 
1623
 
 
1624
else
 
1625
  echo "$as_me: failed program was:" >&5
 
1626
cat conftest.$ac_ext >&5
 
1627
fi
 
1628
rm -f conftest.$ac_objext conftest.$ac_ext
 
1629
ac_ext=c
 
1630
ac_cpp='$CPP $CPPFLAGS'
 
1631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1634
 
 
1635
ac_ext=c
 
1636
ac_cpp='$CPP $CPPFLAGS'
 
1637
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1638
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1639
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1640
echo "$as_me:1640: checking how to run the C preprocessor" >&5
 
1641
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
753
1642
# On Suns, sometimes $CPP names a directory.
754
1643
if test -n "$CPP" && test -d "$CPP"; then
755
1644
  CPP=
756
1645
fi
757
1646
if test -z "$CPP"; then
758
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
759
 
  echo $ac_n "(cached) $ac_c" 1>&6
760
 
else
761
 
    # This must be in double quotes, not single quotes, because CPP may get
762
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
763
 
  CPP="${CC-cc} -E"
764
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
765
 
  # not just through cpp.
766
 
  cat > conftest.$ac_ext <<EOF
767
 
#line 768 "configure"
768
 
#include "confdefs.h"
769
 
#include <assert.h>
770
 
Syntax Error
771
 
EOF
772
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
773
 
{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
774
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
775
 
if test -z "$ac_err"; then
776
 
  :
777
 
else
778
 
  echo "$ac_err" >&5
779
 
  echo "configure: failed program was:" >&5
780
 
  cat conftest.$ac_ext >&5
781
 
  rm -rf conftest*
782
 
  CPP="${CC-cc} -E -traditional-cpp"
783
 
  cat > conftest.$ac_ext <<EOF
784
 
#line 785 "configure"
785
 
#include "confdefs.h"
786
 
#include <assert.h>
787
 
Syntax Error
788
 
EOF
789
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
790
 
{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
791
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
792
 
if test -z "$ac_err"; then
793
 
  :
794
 
else
795
 
  echo "$ac_err" >&5
796
 
  echo "configure: failed program was:" >&5
797
 
  cat conftest.$ac_ext >&5
798
 
  rm -rf conftest*
799
 
  CPP="${CC-cc} -nologo -E"
800
 
  cat > conftest.$ac_ext <<EOF
801
 
#line 802 "configure"
802
 
#include "confdefs.h"
803
 
#include <assert.h>
804
 
Syntax Error
805
 
EOF
806
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
807
 
{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
808
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
809
 
if test -z "$ac_err"; then
810
 
  :
811
 
else
812
 
  echo "$ac_err" >&5
813
 
  echo "configure: failed program was:" >&5
814
 
  cat conftest.$ac_ext >&5
815
 
  rm -rf conftest*
816
 
  CPP=/lib/cpp
817
 
fi
818
 
rm -f conftest*
819
 
fi
820
 
rm -f conftest*
821
 
fi
822
 
rm -f conftest*
823
 
  ac_cv_prog_CPP="$CPP"
824
 
fi
825
 
  CPP="$ac_cv_prog_CPP"
826
 
else
827
 
  ac_cv_prog_CPP="$CPP"
828
 
fi
829
 
echo "$ac_t""$CPP" 1>&6
830
 
 
831
 
# Extract the first word of "flex", so it can be a program name with args.
832
 
set dummy flex; ac_word=$2
833
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834
 
echo "configure:835: checking for $ac_word" >&5
835
 
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
836
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1647
  if test "${ac_cv_prog_CPP+set}" = set; then
 
1648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1649
else
 
1650
      # Double quotes because CPP needs to be expanded
 
1651
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
1652
    do
 
1653
      ac_preproc_ok=false
 
1654
for ac_c_preproc_warn_flag in '' yes
 
1655
do
 
1656
  # Use a header file that comes with gcc, so configuring glibc
 
1657
  # with a fresh cross-compiler works.
 
1658
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1659
  # not just through cpp. "Syntax error" is here to catch this case.
 
1660
  cat >conftest.$ac_ext <<_ACEOF
 
1661
#line 1661 "configure"
 
1662
#include "confdefs.h"
 
1663
#include <assert.h>
 
1664
                     Syntax error
 
1665
_ACEOF
 
1666
if { (eval echo "$as_me:1666: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1667
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1668
  ac_status=$?
 
1669
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1670
  rm -f conftest.er1
 
1671
  cat conftest.err >&5
 
1672
  echo "$as_me:1672: \$? = $ac_status" >&5
 
1673
  (exit $ac_status); } >/dev/null; then
 
1674
  if test -s conftest.err; then
 
1675
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1676
  else
 
1677
    ac_cpp_err=
 
1678
  fi
 
1679
else
 
1680
  ac_cpp_err=yes
 
1681
fi
 
1682
if test -z "$ac_cpp_err"; then
 
1683
  :
 
1684
else
 
1685
  echo "$as_me: failed program was:" >&5
 
1686
  cat conftest.$ac_ext >&5
 
1687
  # Broken: fails on valid input.
 
1688
continue
 
1689
fi
 
1690
rm -f conftest.err conftest.$ac_ext
 
1691
 
 
1692
  # OK, works on sane cases.  Now check whether non-existent headers
 
1693
  # can be detected and how.
 
1694
  cat >conftest.$ac_ext <<_ACEOF
 
1695
#line 1695 "configure"
 
1696
#include "confdefs.h"
 
1697
#include <ac_nonexistent.h>
 
1698
_ACEOF
 
1699
if { (eval echo "$as_me:1699: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1700
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1701
  ac_status=$?
 
1702
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1703
  rm -f conftest.er1
 
1704
  cat conftest.err >&5
 
1705
  echo "$as_me:1705: \$? = $ac_status" >&5
 
1706
  (exit $ac_status); } >/dev/null; then
 
1707
  if test -s conftest.err; then
 
1708
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1709
  else
 
1710
    ac_cpp_err=
 
1711
  fi
 
1712
else
 
1713
  ac_cpp_err=yes
 
1714
fi
 
1715
if test -z "$ac_cpp_err"; then
 
1716
  # Broken: success on invalid input.
 
1717
continue
 
1718
else
 
1719
  echo "$as_me: failed program was:" >&5
 
1720
  cat conftest.$ac_ext >&5
 
1721
  # Passes both tests.
 
1722
ac_preproc_ok=:
 
1723
break
 
1724
fi
 
1725
rm -f conftest.err conftest.$ac_ext
 
1726
 
 
1727
done
 
1728
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
1729
rm -f conftest.err conftest.$ac_ext
 
1730
if $ac_preproc_ok; then
 
1731
  break
 
1732
fi
 
1733
 
 
1734
    done
 
1735
    ac_cv_prog_CPP=$CPP
 
1736
 
 
1737
fi
 
1738
  CPP=$ac_cv_prog_CPP
 
1739
else
 
1740
  ac_cv_prog_CPP=$CPP
 
1741
fi
 
1742
echo "$as_me:1742: result: $CPP" >&5
 
1743
echo "${ECHO_T}$CPP" >&6
 
1744
ac_preproc_ok=false
 
1745
for ac_c_preproc_warn_flag in '' yes
 
1746
do
 
1747
  # Use a header file that comes with gcc, so configuring glibc
 
1748
  # with a fresh cross-compiler works.
 
1749
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1750
  # not just through cpp. "Syntax error" is here to catch this case.
 
1751
  cat >conftest.$ac_ext <<_ACEOF
 
1752
#line 1752 "configure"
 
1753
#include "confdefs.h"
 
1754
#include <assert.h>
 
1755
                     Syntax error
 
1756
_ACEOF
 
1757
if { (eval echo "$as_me:1757: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1758
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1759
  ac_status=$?
 
1760
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1761
  rm -f conftest.er1
 
1762
  cat conftest.err >&5
 
1763
  echo "$as_me:1763: \$? = $ac_status" >&5
 
1764
  (exit $ac_status); } >/dev/null; then
 
1765
  if test -s conftest.err; then
 
1766
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1767
  else
 
1768
    ac_cpp_err=
 
1769
  fi
 
1770
else
 
1771
  ac_cpp_err=yes
 
1772
fi
 
1773
if test -z "$ac_cpp_err"; then
 
1774
  :
 
1775
else
 
1776
  echo "$as_me: failed program was:" >&5
 
1777
  cat conftest.$ac_ext >&5
 
1778
  # Broken: fails on valid input.
 
1779
continue
 
1780
fi
 
1781
rm -f conftest.err conftest.$ac_ext
 
1782
 
 
1783
  # OK, works on sane cases.  Now check whether non-existent headers
 
1784
  # can be detected and how.
 
1785
  cat >conftest.$ac_ext <<_ACEOF
 
1786
#line 1786 "configure"
 
1787
#include "confdefs.h"
 
1788
#include <ac_nonexistent.h>
 
1789
_ACEOF
 
1790
if { (eval echo "$as_me:1790: \"$ac_cpp conftest.$ac_ext\"") >&5
 
1791
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
1792
  ac_status=$?
 
1793
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
1794
  rm -f conftest.er1
 
1795
  cat conftest.err >&5
 
1796
  echo "$as_me:1796: \$? = $ac_status" >&5
 
1797
  (exit $ac_status); } >/dev/null; then
 
1798
  if test -s conftest.err; then
 
1799
    ac_cpp_err=$ac_c_preproc_warn_flag
 
1800
  else
 
1801
    ac_cpp_err=
 
1802
  fi
 
1803
else
 
1804
  ac_cpp_err=yes
 
1805
fi
 
1806
if test -z "$ac_cpp_err"; then
 
1807
  # Broken: success on invalid input.
 
1808
continue
 
1809
else
 
1810
  echo "$as_me: failed program was:" >&5
 
1811
  cat conftest.$ac_ext >&5
 
1812
  # Passes both tests.
 
1813
ac_preproc_ok=:
 
1814
break
 
1815
fi
 
1816
rm -f conftest.err conftest.$ac_ext
 
1817
 
 
1818
done
 
1819
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
1820
rm -f conftest.err conftest.$ac_ext
 
1821
if $ac_preproc_ok; then
 
1822
  :
 
1823
else
 
1824
  { { echo "$as_me:1824: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
1825
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
1826
   { (exit 1); exit 1; }; }
 
1827
fi
 
1828
 
 
1829
ac_ext=c
 
1830
ac_cpp='$CPP $CPPFLAGS'
 
1831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1834
 
 
1835
for ac_prog in flex lex
 
1836
do
 
1837
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1838
set dummy $ac_prog; ac_word=$2
 
1839
echo "$as_me:1839: checking for $ac_word" >&5
 
1840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1841
if test "${ac_cv_prog_LEX+set}" = set; then
 
1842
  echo $ECHO_N "(cached) $ECHO_C" >&6
837
1843
else
838
1844
  if test -n "$LEX"; then
839
1845
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
840
1846
else
841
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
842
 
  ac_dummy="$PATH"
843
 
  for ac_dir in $ac_dummy; do
844
 
    test -z "$ac_dir" && ac_dir=.
845
 
    if test -f $ac_dir/$ac_word; then
846
 
      ac_cv_prog_LEX="flex"
847
 
      break
848
 
    fi
849
 
  done
850
 
  IFS="$ac_save_ifs"
851
 
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
852
 
fi
853
 
fi
854
 
LEX="$ac_cv_prog_LEX"
 
1847
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1848
ac_dummy="$PATH"
 
1849
for ac_dir in $ac_dummy; do
 
1850
  IFS=$ac_save_IFS
 
1851
  test -z "$ac_dir" && ac_dir=.
 
1852
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1853
ac_cv_prog_LEX="$ac_prog"
 
1854
echo "$as_me:1854: found $ac_dir/$ac_word" >&5
 
1855
break
 
1856
done
 
1857
 
 
1858
fi
 
1859
fi
 
1860
LEX=$ac_cv_prog_LEX
855
1861
if test -n "$LEX"; then
856
 
  echo "$ac_t""$LEX" 1>&6
 
1862
  echo "$as_me:1862: result: $LEX" >&5
 
1863
echo "${ECHO_T}$LEX" >&6
857
1864
else
858
 
  echo "$ac_t""no" 1>&6
 
1865
  echo "$as_me:1865: result: no" >&5
 
1866
echo "${ECHO_T}no" >&6
859
1867
fi
860
1868
 
 
1869
  test -n "$LEX" && break
 
1870
done
 
1871
test -n "$LEX" || LEX=":"
 
1872
 
861
1873
if test -z "$LEXLIB"
862
1874
then
863
 
  case "$LEX" in
864
 
  flex*) ac_lib=fl ;;
865
 
  *) ac_lib=l ;;
866
 
  esac
867
 
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
868
 
echo "configure:869: checking for yywrap in -l$ac_lib" >&5
869
 
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
870
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
871
 
  echo $ac_n "(cached) $ac_c" 1>&6
872
 
else
873
 
  ac_save_LIBS="$LIBS"
874
 
LIBS="-l$ac_lib  $LIBS"
875
 
cat > conftest.$ac_ext <<EOF
876
 
#line 877 "configure"
877
 
#include "confdefs.h"
878
 
/* Override any gcc2 internal prototype to avoid an error.  */
879
 
/* We use char because int might match the return type of a gcc2
880
 
    builtin and then its argument prototype would still apply.  */
881
 
char yywrap();
882
 
 
883
 
int main() {
884
 
yywrap()
885
 
; return 0; }
 
1875
  echo "$as_me:1875: checking for yywrap in -lfl" >&5
 
1876
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
1877
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
1878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1879
else
 
1880
  ac_check_lib_save_LIBS=$LIBS
 
1881
LIBS="-lfl  $LIBS"
 
1882
cat >conftest.$ac_ext <<_ACEOF
 
1883
#line 1883 "configure"
 
1884
#include "confdefs.h"
 
1885
 
 
1886
/* Override any gcc2 internal prototype to avoid an error.  */
 
1887
#ifdef __cplusplus
 
1888
extern "C"
 
1889
#endif
 
1890
/* We use char because int might match the return type of a gcc2
 
1891
   builtin and then its argument prototype would still apply.  */
 
1892
char yywrap ();
 
1893
int
 
1894
main ()
 
1895
{
 
1896
yywrap ();
 
1897
  ;
 
1898
  return 0;
 
1899
}
 
1900
_ACEOF
 
1901
rm -f conftest.$ac_objext conftest$ac_exeext
 
1902
if { (eval echo "$as_me:1902: \"$ac_link\"") >&5
 
1903
  (eval $ac_link) 2>&5
 
1904
  ac_status=$?
 
1905
  echo "$as_me:1905: \$? = $ac_status" >&5
 
1906
  (exit $ac_status); } &&
 
1907
         { ac_try='test -s conftest$ac_exeext'
 
1908
  { (eval echo "$as_me:1908: \"$ac_try\"") >&5
 
1909
  (eval $ac_try) 2>&5
 
1910
  ac_status=$?
 
1911
  echo "$as_me:1911: \$? = $ac_status" >&5
 
1912
  (exit $ac_status); }; }; then
 
1913
  ac_cv_lib_fl_yywrap=yes
 
1914
else
 
1915
  echo "$as_me: failed program was:" >&5
 
1916
cat conftest.$ac_ext >&5
 
1917
ac_cv_lib_fl_yywrap=no
 
1918
fi
 
1919
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
1920
LIBS=$ac_check_lib_save_LIBS
 
1921
fi
 
1922
echo "$as_me:1922: result: $ac_cv_lib_fl_yywrap" >&5
 
1923
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
1924
if test $ac_cv_lib_fl_yywrap = yes; then
 
1925
  LEXLIB="-lfl"
 
1926
else
 
1927
  echo "$as_me:1927: checking for yywrap in -ll" >&5
 
1928
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
1929
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
1930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1931
else
 
1932
  ac_check_lib_save_LIBS=$LIBS
 
1933
LIBS="-ll  $LIBS"
 
1934
cat >conftest.$ac_ext <<_ACEOF
 
1935
#line 1935 "configure"
 
1936
#include "confdefs.h"
 
1937
 
 
1938
/* Override any gcc2 internal prototype to avoid an error.  */
 
1939
#ifdef __cplusplus
 
1940
extern "C"
 
1941
#endif
 
1942
/* We use char because int might match the return type of a gcc2
 
1943
   builtin and then its argument prototype would still apply.  */
 
1944
char yywrap ();
 
1945
int
 
1946
main ()
 
1947
{
 
1948
yywrap ();
 
1949
  ;
 
1950
  return 0;
 
1951
}
 
1952
_ACEOF
 
1953
rm -f conftest.$ac_objext conftest$ac_exeext
 
1954
if { (eval echo "$as_me:1954: \"$ac_link\"") >&5
 
1955
  (eval $ac_link) 2>&5
 
1956
  ac_status=$?
 
1957
  echo "$as_me:1957: \$? = $ac_status" >&5
 
1958
  (exit $ac_status); } &&
 
1959
         { ac_try='test -s conftest$ac_exeext'
 
1960
  { (eval echo "$as_me:1960: \"$ac_try\"") >&5
 
1961
  (eval $ac_try) 2>&5
 
1962
  ac_status=$?
 
1963
  echo "$as_me:1963: \$? = $ac_status" >&5
 
1964
  (exit $ac_status); }; }; then
 
1965
  ac_cv_lib_l_yywrap=yes
 
1966
else
 
1967
  echo "$as_me: failed program was:" >&5
 
1968
cat conftest.$ac_ext >&5
 
1969
ac_cv_lib_l_yywrap=no
 
1970
fi
 
1971
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
1972
LIBS=$ac_check_lib_save_LIBS
 
1973
fi
 
1974
echo "$as_me:1974: result: $ac_cv_lib_l_yywrap" >&5
 
1975
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
1976
if test $ac_cv_lib_l_yywrap = yes; then
 
1977
  LEXLIB="-ll"
 
1978
fi
 
1979
 
 
1980
fi
 
1981
 
 
1982
fi
 
1983
 
 
1984
if test "x$LEX" != "x:"; then
 
1985
  echo "$as_me:1985: checking lex output file root" >&5
 
1986
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 
1987
if test "${ac_cv_prog_lex_root+set}" = set; then
 
1988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1989
else
 
1990
  # The minimal lex program is just a single line: %%.  But some broken lexes
 
1991
# (Solaris, I think it was) want two %% lines, so accommodate them.
 
1992
echo '%%
 
1993
%%' | $LEX
 
1994
if test -f lex.yy.c; then
 
1995
  ac_cv_prog_lex_root=lex.yy
 
1996
elif test -f lexyy.c; then
 
1997
  ac_cv_prog_lex_root=lexyy
 
1998
else
 
1999
  { { echo "$as_me:1999: error: cannot find output from $LEX; giving up" >&5
 
2000
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
2001
   { (exit 1); exit 1; }; }
 
2002
fi
 
2003
fi
 
2004
echo "$as_me:2004: result: $ac_cv_prog_lex_root" >&5
 
2005
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 
2006
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
2007
 
 
2008
echo "$as_me:2008: checking whether yytext is a pointer" >&5
 
2009
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 
2010
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
2011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2012
else
 
2013
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
2014
# default is implementation-dependent. Figure out which it is, since
 
2015
# not all implementations provide the %pointer and %array declarations.
 
2016
ac_cv_prog_lex_yytext_pointer=no
 
2017
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 
2018
ac_save_LIBS=$LIBS
 
2019
LIBS="$LIBS $LEXLIB"
 
2020
cat >conftest.$ac_ext <<_ACEOF
 
2021
`cat $LEX_OUTPUT_ROOT.c`
 
2022
_ACEOF
 
2023
rm -f conftest.$ac_objext conftest$ac_exeext
 
2024
if { (eval echo "$as_me:2024: \"$ac_link\"") >&5
 
2025
  (eval $ac_link) 2>&5
 
2026
  ac_status=$?
 
2027
  echo "$as_me:2027: \$? = $ac_status" >&5
 
2028
  (exit $ac_status); } &&
 
2029
         { ac_try='test -s conftest$ac_exeext'
 
2030
  { (eval echo "$as_me:2030: \"$ac_try\"") >&5
 
2031
  (eval $ac_try) 2>&5
 
2032
  ac_status=$?
 
2033
  echo "$as_me:2033: \$? = $ac_status" >&5
 
2034
  (exit $ac_status); }; }; then
 
2035
  ac_cv_prog_lex_yytext_pointer=yes
 
2036
else
 
2037
  echo "$as_me: failed program was:" >&5
 
2038
cat conftest.$ac_ext >&5
 
2039
fi
 
2040
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2041
LIBS=$ac_save_LIBS
 
2042
rm -f "${LEX_OUTPUT_ROOT}.c"
 
2043
 
 
2044
fi
 
2045
echo "$as_me:2045: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
2046
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 
2047
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
2048
 
 
2049
cat >>confdefs.h <<\EOF
 
2050
#define YYTEXT_POINTER 1
886
2051
EOF
887
 
if { (eval echo configure:888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
888
 
  rm -rf conftest*
889
 
  eval "ac_cv_lib_$ac_lib_var=yes"
890
 
else
891
 
  echo "configure: failed program was:" >&5
892
 
  cat conftest.$ac_ext >&5
893
 
  rm -rf conftest*
894
 
  eval "ac_cv_lib_$ac_lib_var=no"
895
 
fi
896
 
rm -f conftest*
897
 
LIBS="$ac_save_LIBS"
898
 
 
899
 
fi
900
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
901
 
  echo "$ac_t""yes" 1>&6
902
 
  LEXLIB="-l$ac_lib"
903
 
else
904
 
  echo "$ac_t""no" 1>&6
905
 
fi
906
 
 
907
 
fi
908
 
 
909
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
910
 
echo "configure:911: checking whether ${MAKE-make} sets \${MAKE}" >&5
911
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
912
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
913
 
  echo $ac_n "(cached) $ac_c" 1>&6
914
 
else
915
 
  cat > conftestmake <<\EOF
 
2052
 
 
2053
fi
 
2054
 
 
2055
fi
 
2056
echo "$as_me:2056: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
2057
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
2058
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
2059
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2061
else
 
2062
  cat >conftest.make <<\EOF
916
2063
all:
917
2064
        @echo 'ac_maketemp="${MAKE}"'
918
2065
EOF
919
2066
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
920
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
2067
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
921
2068
if test -n "$ac_maketemp"; then
922
2069
  eval ac_cv_prog_make_${ac_make}_set=yes
923
2070
else
924
2071
  eval ac_cv_prog_make_${ac_make}_set=no
925
2072
fi
926
 
rm -f conftestmake
 
2073
rm -f conftest.make
927
2074
fi
928
2075
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
929
 
  echo "$ac_t""yes" 1>&6
 
2076
  echo "$as_me:2076: result: yes" >&5
 
2077
echo "${ECHO_T}yes" >&6
930
2078
  SET_MAKE=
931
2079
else
932
 
  echo "$ac_t""no" 1>&6
 
2080
  echo "$as_me:2080: result: no" >&5
 
2081
echo "${ECHO_T}no" >&6
933
2082
  SET_MAKE="MAKE=${MAKE-make}"
934
2083
fi
935
2084
 
936
2085
for ac_prog in 'bison -y' byacc
937
2086
do
938
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
2087
  # Extract the first word of "$ac_prog", so it can be a program name with args.
939
2088
set dummy $ac_prog; ac_word=$2
940
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941
 
echo "configure:942: checking for $ac_word" >&5
942
 
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
943
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2089
echo "$as_me:2089: checking for $ac_word" >&5
 
2090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2091
if test "${ac_cv_prog_YACC+set}" = set; then
 
2092
  echo $ECHO_N "(cached) $ECHO_C" >&6
944
2093
else
945
2094
  if test -n "$YACC"; then
946
2095
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
947
2096
else
948
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
949
 
  ac_dummy="$PATH"
950
 
  for ac_dir in $ac_dummy; do
951
 
    test -z "$ac_dir" && ac_dir=.
952
 
    if test -f $ac_dir/$ac_word; then
953
 
      ac_cv_prog_YACC="$ac_prog"
954
 
      break
955
 
    fi
956
 
  done
957
 
  IFS="$ac_save_ifs"
958
 
fi
959
 
fi
960
 
YACC="$ac_cv_prog_YACC"
 
2097
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2098
ac_dummy="$PATH"
 
2099
for ac_dir in $ac_dummy; do
 
2100
  IFS=$ac_save_IFS
 
2101
  test -z "$ac_dir" && ac_dir=.
 
2102
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2103
ac_cv_prog_YACC="$ac_prog"
 
2104
echo "$as_me:2104: found $ac_dir/$ac_word" >&5
 
2105
break
 
2106
done
 
2107
 
 
2108
fi
 
2109
fi
 
2110
YACC=$ac_cv_prog_YACC
961
2111
if test -n "$YACC"; then
962
 
  echo "$ac_t""$YACC" 1>&6
 
2112
  echo "$as_me:2112: result: $YACC" >&5
 
2113
echo "${ECHO_T}$YACC" >&6
963
2114
else
964
 
  echo "$ac_t""no" 1>&6
 
2115
  echo "$as_me:2115: result: no" >&5
 
2116
echo "${ECHO_T}no" >&6
965
2117
fi
966
2118
 
967
 
test -n "$YACC" && break
 
2119
  test -n "$YACC" && break
968
2120
done
969
2121
test -n "$YACC" || YACC="yacc"
970
2122
 
978
2130
    ac_aux_dir=$ac_dir
979
2131
    ac_install_sh="$ac_aux_dir/install.sh -c"
980
2132
    break
 
2133
  elif test -f $ac_dir/shtool; then
 
2134
    ac_aux_dir=$ac_dir
 
2135
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2136
    break
981
2137
  fi
982
2138
done
983
2139
if test -z "$ac_aux_dir"; then
984
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
2140
  { { echo "$as_me:2140: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
2141
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2142
   { (exit 1); exit 1; }; }
985
2143
fi
986
 
ac_config_guess=$ac_aux_dir/config.guess
987
 
ac_config_sub=$ac_aux_dir/config.sub
988
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
2144
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
2145
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
2146
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
989
2147
 
990
2148
# Find a good install program.  We prefer a C program (faster),
991
2149
# so one script is as good as another.  But avoid the broken or
994
2152
# SunOS /usr/etc/install
995
2153
# IRIX /sbin/install
996
2154
# AIX /bin/install
 
2155
# AmigaOS /C/install, which installs bootblocks on floppy discs
997
2156
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
998
2157
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
999
2158
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1000
2159
# ./install, which can be erroneously created by make from ./install.sh.
1001
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1002
 
echo "configure:1003: checking for a BSD compatible install" >&5
 
2160
echo "$as_me:2160: checking for a BSD compatible install" >&5
 
2161
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1003
2162
if test -z "$INSTALL"; then
1004
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1005
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2163
if test "${ac_cv_path_install+set}" = set; then
 
2164
  echo $ECHO_N "(cached) $ECHO_C" >&6
1006
2165
else
1007
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
2166
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1008
2167
  for ac_dir in $PATH; do
 
2168
    IFS=$ac_save_IFS
1009
2169
    # Account for people who put trailing slashes in PATH elements.
1010
 
    case "$ac_dir/" in
1011
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
2170
    case $ac_dir/ in
 
2171
    / | ./ | .// | /cC/* \
 
2172
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
 
2173
    | /usr/ucb/* ) ;;
1012
2174
    *)
1013
2175
      # OSF1 and SCO ODT 3.0 have their own names for install.
1014
2176
      # Don't use installbsd from OSF since it installs stuff as root
1015
2177
      # by default.
1016
2178
      for ac_prog in ginstall scoinst install; do
1017
 
        if test -f $ac_dir/$ac_prog; then
 
2179
        if $as_executable_p "$ac_dir/$ac_prog"; then
1018
2180
          if test $ac_prog = install &&
1019
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
2181
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1020
2182
            # AIX install.  It has an incompatible calling convention.
1021
2183
            :
 
2184
          elif test $ac_prog = install &&
 
2185
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
2186
            # program-specific install script used by HP pwplus--don't use.
 
2187
            :
1022
2188
          else
1023
2189
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1024
2190
            break 2
1028
2194
      ;;
1029
2195
    esac
1030
2196
  done
1031
 
  IFS="$ac_save_IFS"
1032
2197
 
1033
2198
fi
1034
2199
  if test "${ac_cv_path_install+set}" = set; then
1035
 
    INSTALL="$ac_cv_path_install"
 
2200
    INSTALL=$ac_cv_path_install
1036
2201
  else
1037
2202
    # As a last resort, use the slow shell script.  We don't cache a
1038
2203
    # path for INSTALL within a source directory, because that will
1039
2204
    # break other packages using the cache if that directory is
1040
2205
    # removed, or if the path is relative.
1041
 
    INSTALL="$ac_install_sh"
 
2206
    INSTALL=$ac_install_sh
1042
2207
  fi
1043
2208
fi
1044
 
echo "$ac_t""$INSTALL" 1>&6
 
2209
echo "$as_me:2209: result: $INSTALL" >&5
 
2210
echo "${ECHO_T}$INSTALL" >&6
1045
2211
 
1046
2212
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1047
2213
# It thinks the first close brace ends the variable substitution.
1048
2214
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1049
2215
 
1050
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
2216
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1051
2217
 
1052
2218
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1053
2219
 
1054
 
if test $ac_cv_prog_gcc = yes; then
1055
 
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1056
 
echo "configure:1057: checking whether ${CC-cc} needs -traditional" >&5
1057
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1058
 
  echo $ac_n "(cached) $ac_c" 1>&6
1059
 
else
1060
 
    ac_pattern="Autoconf.*'x'"
1061
 
  cat > conftest.$ac_ext <<EOF
1062
 
#line 1063 "configure"
1063
 
#include "confdefs.h"
1064
 
#include <sgtty.h>
1065
 
Autoconf TIOCGETP
1066
 
EOF
1067
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1068
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
1069
 
  rm -rf conftest*
1070
 
  ac_cv_prog_gcc_traditional=yes
1071
 
else
1072
 
  rm -rf conftest*
1073
 
  ac_cv_prog_gcc_traditional=no
1074
 
fi
1075
 
rm -f conftest*
1076
 
 
1077
 
 
1078
 
  if test $ac_cv_prog_gcc_traditional = no; then
1079
 
    cat > conftest.$ac_ext <<EOF
1080
 
#line 1081 "configure"
1081
 
#include "confdefs.h"
1082
 
#include <termio.h>
1083
 
Autoconf TCGETA
1084
 
EOF
1085
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1086
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
1087
 
  rm -rf conftest*
1088
 
  ac_cv_prog_gcc_traditional=yes
1089
 
fi
1090
 
rm -f conftest*
1091
 
 
1092
 
  fi
1093
 
fi
1094
 
 
1095
 
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1096
 
  if test $ac_cv_prog_gcc_traditional = yes; then
1097
 
    CC="$CC -traditional"
1098
 
  fi
1099
 
fi
1100
 
 
 
2220
echo "$as_me:2220: checking for ${CC-cc} option to accept ANSI C" >&5
 
2221
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
 
2222
if test "${cf_cv_ansi_cc+set}" = set; then
 
2223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2224
else
 
2225
 
 
2226
cf_cv_ansi_cc=no
 
2227
cf_save_CFLAGS="$CFLAGS"
 
2228
cf_save_CPPFLAGS="$CPPFLAGS"
 
2229
# Don't try gcc -ansi; that turns off useful extensions and
 
2230
# breaks some systems' header files.
 
2231
# AIX                   -qlanglvl=ansi
 
2232
# Ultrix and OSF/1      -std1
 
2233
# HP-UX                 -Aa -D_HPUX_SOURCE
 
2234
# SVR4                  -Xc
 
2235
# UnixWare 1.2          (cannot use -Xc, since ANSI/POSIX clashes)
 
2236
for cf_arg in "-DCC_HAS_PROTOS" \
 
2237
        "" \
 
2238
        -qlanglvl=ansi \
 
2239
        -std1 \
 
2240
        -Ae \
 
2241
        "-Aa -D_HPUX_SOURCE" \
 
2242
        -Xc
 
2243
do
 
2244
 
 
2245
cf_new_cflags=
 
2246
cf_new_cppflags=
 
2247
for cf_add_cflags in $cf_arg
 
2248
do
 
2249
        case $cf_add_cflags in #(vi
 
2250
        -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
 
2251
                case "$CPPFLAGS" in
 
2252
                *$cf_add_cflags) #(vi
 
2253
                        ;;
 
2254
                *) #(vi
 
2255
                        cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 
2256
                        ;;
 
2257
                esac
 
2258
                ;;
 
2259
        *)
 
2260
                cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 
2261
                ;;
 
2262
        esac
 
2263
done
 
2264
 
 
2265
if test -n "$cf_new_cflags" ; then
 
2266
 
 
2267
        CFLAGS="$CFLAGS $cf_new_cflags"
 
2268
fi
 
2269
 
 
2270
if test -n "$cf_new_cppflags" ; then
 
2271
 
 
2272
        CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
 
2273
fi
 
2274
 
 
2275
        cat >conftest.$ac_ext <<_ACEOF
 
2276
#line 2276 "configure"
 
2277
#include "confdefs.h"
 
2278
 
 
2279
#ifndef CC_HAS_PROTOS
 
2280
#if !defined(__STDC__) || (__STDC__ != 1)
 
2281
choke me
 
2282
#endif
 
2283
#endif
 
2284
 
 
2285
int
 
2286
main ()
 
2287
{
 
2288
 
 
2289
        int test (int i, double x);
 
2290
        struct s1 {int (*f) (int a);};
 
2291
        struct s2 {int (*f) (double a);};
 
2292
  ;
 
2293
  return 0;
 
2294
}
 
2295
_ACEOF
 
2296
rm -f conftest.$ac_objext
 
2297
if { (eval echo "$as_me:2297: \"$ac_compile\"") >&5
 
2298
  (eval $ac_compile) 2>&5
 
2299
  ac_status=$?
 
2300
  echo "$as_me:2300: \$? = $ac_status" >&5
 
2301
  (exit $ac_status); } &&
 
2302
         { ac_try='test -s conftest.$ac_objext'
 
2303
  { (eval echo "$as_me:2303: \"$ac_try\"") >&5
 
2304
  (eval $ac_try) 2>&5
 
2305
  ac_status=$?
 
2306
  echo "$as_me:2306: \$? = $ac_status" >&5
 
2307
  (exit $ac_status); }; }; then
 
2308
  cf_cv_ansi_cc="$cf_arg"; break
 
2309
else
 
2310
  echo "$as_me: failed program was:" >&5
 
2311
cat conftest.$ac_ext >&5
 
2312
fi
 
2313
rm -f conftest.$ac_objext conftest.$ac_ext
 
2314
done
 
2315
CFLAGS="$cf_save_CFLAGS"
 
2316
CPPFLAGS="$cf_save_CPPFLAGS"
 
2317
 
 
2318
fi
 
2319
echo "$as_me:2319: result: $cf_cv_ansi_cc" >&5
 
2320
echo "${ECHO_T}$cf_cv_ansi_cc" >&6
 
2321
 
 
2322
if test "$cf_cv_ansi_cc" != "no"; then
 
2323
if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
 
2324
 
 
2325
cf_new_cflags=
 
2326
cf_new_cppflags=
 
2327
for cf_add_cflags in $cf_cv_ansi_cc
 
2328
do
 
2329
        case $cf_add_cflags in #(vi
 
2330
        -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
 
2331
                case "$CPPFLAGS" in
 
2332
                *$cf_add_cflags) #(vi
 
2333
                        ;;
 
2334
                *) #(vi
 
2335
                        cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
 
2336
                        ;;
 
2337
                esac
 
2338
                ;;
 
2339
        *)
 
2340
                cf_new_cflags="$cf_new_cflags $cf_add_cflags"
 
2341
                ;;
 
2342
        esac
 
2343
done
 
2344
 
 
2345
if test -n "$cf_new_cflags" ; then
 
2346
 
 
2347
        CFLAGS="$CFLAGS $cf_new_cflags"
 
2348
fi
 
2349
 
 
2350
if test -n "$cf_new_cppflags" ; then
 
2351
 
 
2352
        CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
 
2353
fi
 
2354
 
 
2355
else
 
2356
        cat >>confdefs.h <<\EOF
 
2357
#define CC_HAS_PROTOS 1
 
2358
EOF
 
2359
 
 
2360
fi
 
2361
fi
 
2362
 
 
2363
if test "$cf_cv_ansi_cc" = "no"; then
 
2364
        { { echo "$as_me:2364: error: Your compiler does not appear to recognize prototypes.
 
2365
You have the following choices:
 
2366
        a. adjust your compiler options
 
2367
        b. get an up-to-date compiler
 
2368
        c. use a wrapper such as unproto" >&5
 
2369
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
 
2370
You have the following choices:
 
2371
        a. adjust your compiler options
 
2372
        b. get an up-to-date compiler
 
2373
        c. use a wrapper such as unproto" >&2;}
 
2374
   { (exit 1); exit 1; }; }
 
2375
fi
1101
2376
 
1102
2377
for ac_prog in lint alint
1103
2378
do
1104
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
2379
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1105
2380
set dummy $ac_prog; ac_word=$2
1106
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107
 
echo "configure:1108: checking for $ac_word" >&5
1108
 
if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
1109
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2381
echo "$as_me:2381: checking for $ac_word" >&5
 
2382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2383
if test "${ac_cv_prog_LINT+set}" = set; then
 
2384
  echo $ECHO_N "(cached) $ECHO_C" >&6
1110
2385
else
1111
2386
  if test -n "$LINT"; then
1112
2387
  ac_cv_prog_LINT="$LINT" # Let the user override the test.
1113
2388
else
1114
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1115
 
  ac_dummy="$PATH"
1116
 
  for ac_dir in $ac_dummy; do
1117
 
    test -z "$ac_dir" && ac_dir=.
1118
 
    if test -f $ac_dir/$ac_word; then
1119
 
      ac_cv_prog_LINT="$ac_prog"
1120
 
      break
1121
 
    fi
1122
 
  done
1123
 
  IFS="$ac_save_ifs"
1124
 
fi
1125
 
fi
1126
 
LINT="$ac_cv_prog_LINT"
 
2389
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2390
ac_dummy="$PATH"
 
2391
for ac_dir in $ac_dummy; do
 
2392
  IFS=$ac_save_IFS
 
2393
  test -z "$ac_dir" && ac_dir=.
 
2394
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2395
ac_cv_prog_LINT="$ac_prog"
 
2396
echo "$as_me:2396: found $ac_dir/$ac_word" >&5
 
2397
break
 
2398
done
 
2399
 
 
2400
fi
 
2401
fi
 
2402
LINT=$ac_cv_prog_LINT
1127
2403
if test -n "$LINT"; then
1128
 
  echo "$ac_t""$LINT" 1>&6
 
2404
  echo "$as_me:2404: result: $LINT" >&5
 
2405
echo "${ECHO_T}$LINT" >&6
1129
2406
else
1130
 
  echo "$ac_t""no" 1>&6
 
2407
  echo "$as_me:2407: result: no" >&5
 
2408
echo "${ECHO_T}no" >&6
1131
2409
fi
1132
2410
 
1133
 
test -n "$LINT" && break
 
2411
  test -n "$LINT" && break
1134
2412
done
1135
2413
 
1136
2414
if test -n "$LINT" ; then
1137
 
        cat >> confdefs.h <<\EOF
 
2415
        cf_have_lint=yes
 
2416
else
 
2417
        cf_have_lint=no
 
2418
        cat >>confdefs.h <<\EOF
1138
2419
#define HAVE_PROG_LINT 1
1139
2420
EOF
1140
2421
 
1141
2422
fi
1142
2423
 
1143
 
###     use option -with-warnings to turn on all gcc warnings
1144
 
if test -n "$GCC"
 
2424
GCC_VERSION=none
 
2425
if test "$GCC" = yes ; then
 
2426
        echo "$as_me:2426: checking version of $CC" >&5
 
2427
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
 
2428
        GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
 
2429
        test -z "$GCC_VERSION" && GCC_VERSION=unknown
 
2430
        echo "$as_me:2430: result: $GCC_VERSION" >&5
 
2431
echo "${ECHO_T}$GCC_VERSION" >&6
 
2432
fi
 
2433
 
 
2434
if ( test "$GCC" = yes || test "$GXX" = yes )
1145
2435
then
 
2436
echo "$as_me:2436: checking if you want to check for gcc warnings" >&5
 
2437
echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
1146
2438
 
1147
2439
# Check whether --with-warnings or --without-warnings was given.
1148
2440
if test "${with_warnings+set}" = set; then
1149
2441
  withval="$with_warnings"
1150
 
  CFLAGS="$CFLAGS -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
1151
 
fi
 
2442
  cf_opt_with_warnings=$withval
 
2443
else
 
2444
  cf_opt_with_warnings=no
 
2445
fi;
 
2446
echo "$as_me:2446: result: $cf_opt_with_warnings" >&5
 
2447
echo "${ECHO_T}$cf_opt_with_warnings" >&6
 
2448
if test "$cf_opt_with_warnings" != no ; then
 
2449
 
 
2450
if test "$GCC" = yes
 
2451
then
 
2452
cat > conftest.i <<EOF
 
2453
#ifndef GCC_PRINTF
 
2454
#define GCC_PRINTF 0
 
2455
#endif
 
2456
#ifndef GCC_SCANF
 
2457
#define GCC_SCANF 0
 
2458
#endif
 
2459
#ifndef GCC_NORETURN
 
2460
#define GCC_NORETURN /* nothing */
 
2461
#endif
 
2462
#ifndef GCC_UNUSED
 
2463
#define GCC_UNUSED /* nothing */
 
2464
#endif
 
2465
EOF
 
2466
if test "$GCC" = yes
 
2467
then
 
2468
        { echo "$as_me:2468: checking for $CC __attribute__ directives..." >&5
 
2469
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
 
2470
cat > conftest.$ac_ext <<EOF
 
2471
#line 2471 "configure"
 
2472
#include "confdefs.h"
 
2473
#include "conftest.h"
 
2474
#include "conftest.i"
 
2475
#if     GCC_PRINTF
 
2476
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
 
2477
#else
 
2478
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
 
2479
#endif
 
2480
#if     GCC_SCANF
 
2481
#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
 
2482
#else
 
2483
#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
 
2484
#endif
 
2485
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
 
2486
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
 
2487
extern void foo(void) GCC_NORETURN;
 
2488
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
 
2489
EOF
 
2490
        for cf_attribute in scanf printf unused noreturn
 
2491
        do
 
2492
 
 
2493
CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
 
2494
 
 
2495
                cf_directive="__attribute__(($cf_attribute))"
 
2496
                echo "checking for $CC $cf_directive" 1>&5
 
2497
                case $cf_attribute in
 
2498
                scanf|printf)
 
2499
                cat >conftest.h <<EOF
 
2500
#define GCC_$CF_ATTRIBUTE 1
 
2501
EOF
 
2502
                        ;;
 
2503
                *)
 
2504
                cat >conftest.h <<EOF
 
2505
#define GCC_$CF_ATTRIBUTE $cf_directive
 
2506
EOF
 
2507
                        ;;
 
2508
                esac
 
2509
                if { (eval echo "$as_me:2509: \"$ac_compile\"") >&5
 
2510
  (eval $ac_compile) 2>&5
 
2511
  ac_status=$?
 
2512
  echo "$as_me:2512: \$? = $ac_status" >&5
 
2513
  (exit $ac_status); }; then
 
2514
                        test -n "$verbose" && echo "$as_me:2514: result: ... $cf_attribute" >&5
 
2515
echo "${ECHO_T}... $cf_attribute" >&6
 
2516
                        cat conftest.h >>confdefs.h
 
2517
                fi
 
2518
        done
 
2519
else
 
2520
        fgrep define conftest.i >>confdefs.h
 
2521
fi
 
2522
rm -rf conftest*
 
2523
fi
 
2524
 
 
2525
if test "$GCC" = yes
 
2526
then
 
2527
        cat > conftest.$ac_ext <<EOF
 
2528
#line 2528 "configure"
 
2529
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
 
2530
EOF
 
2531
        { echo "$as_me:2531: checking for $CC warning options..." >&5
 
2532
echo "$as_me: checking for $CC warning options..." >&6;}
 
2533
        cf_save_CFLAGS="$CFLAGS"
 
2534
        EXTRA_CFLAGS="-W -Wall"
 
2535
        cf_warn_CONST=""
 
2536
        test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
 
2537
        for cf_opt in \
 
2538
                Wbad-function-cast \
 
2539
                Wcast-align \
 
2540
                Wcast-qual \
 
2541
                Winline \
 
2542
                Wmissing-declarations \
 
2543
                Wmissing-prototypes \
 
2544
                Wnested-externs \
 
2545
                Wpointer-arith \
 
2546
                Wshadow \
 
2547
                Wstrict-prototypes \
 
2548
                Wundef $cf_warn_CONST
 
2549
        do
 
2550
                CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
 
2551
                if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
 
2552
  (eval $ac_compile) 2>&5
 
2553
  ac_status=$?
 
2554
  echo "$as_me:2554: \$? = $ac_status" >&5
 
2555
  (exit $ac_status); }; then
 
2556
                        test -n "$verbose" && echo "$as_me:2556: result: ... -$cf_opt" >&5
 
2557
echo "${ECHO_T}... -$cf_opt" >&6
 
2558
                        case $cf_opt in #(vi
 
2559
                        Wcast-qual) #(vi
 
2560
                                CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
 
2561
                                ;;
 
2562
                        Winline) #(vi
 
2563
                                case $GCC_VERSION in
 
2564
                                3.3*)
 
2565
                                        test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
 
2566
 
 
2567
                                        continue;;
 
2568
                                esac
 
2569
                                ;;
 
2570
                        esac
 
2571
                        EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
 
2572
                fi
 
2573
        done
 
2574
        rm -f conftest*
 
2575
        CFLAGS="$cf_save_CFLAGS"
 
2576
fi
 
2577
 
 
2578
fi
 
2579
fi
 
2580
 
 
2581
echo "$as_me:2581: checking if you want to see long compiling messages" >&5
 
2582
echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
 
2583
 
 
2584
# Check whether --enable-echo or --disable-echo was given.
 
2585
if test "${enable_echo+set}" = set; then
 
2586
  enableval="$enable_echo"
 
2587
  test "$enableval" != no && enableval=yes
 
2588
  if test "$enableval" != "yes" ; then
 
2589
 
 
2590
    ECHO_LT='--silent'
 
2591
    ECHO_LD='@echo linking $@;'
 
2592
    RULE_CC='   @echo compiling $<'
 
2593
    SHOW_CC='   @echo compiling $@'
 
2594
    ECHO_CC='@'
 
2595
 
 
2596
  else
 
2597
 
 
2598
    ECHO_LT=''
 
2599
    ECHO_LD=''
 
2600
    RULE_CC='# compiling'
 
2601
    SHOW_CC='# compiling'
 
2602
    ECHO_CC=''
 
2603
 
 
2604
  fi
 
2605
else
 
2606
  enableval=yes
 
2607
 
 
2608
    ECHO_LT=''
 
2609
    ECHO_LD=''
 
2610
    RULE_CC='# compiling'
 
2611
    SHOW_CC='# compiling'
 
2612
    ECHO_CC=''
 
2613
 
 
2614
fi;
 
2615
echo "$as_me:2615: result: $enableval" >&5
 
2616
echo "${ECHO_T}$enableval" >&6
 
2617
 
 
2618
# Check whether --enable-llib or --disable-llib was given.
 
2619
if test "${enable_llib+set}" = set; then
 
2620
  enableval="$enable_llib"
 
2621
  cf_enable_llib=$enableval
 
2622
else
 
2623
  cf_enable_llib=$cf_have_lint
 
2624
fi;
 
2625
 
 
2626
if test "$cf_enable_llib" = yes ; then
 
2627
        cat >>confdefs.h <<\EOF
 
2628
#define OPT_LINTLIBRARY 1
 
2629
EOF
1152
2630
 
1153
2631
fi
1154
2632
 
1155
2633
###     extra things that we'll substitute in the makefile
1156
2634
 
1157
 
 
1158
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
1159
 
echo "configure:1160: checking for working const" >&5
1160
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1161
 
  echo $ac_n "(cached) $ac_c" 1>&6
1162
 
else
1163
 
  cat > conftest.$ac_ext <<EOF
1164
 
#line 1165 "configure"
1165
 
#include "confdefs.h"
1166
 
 
1167
 
int main() {
1168
 
 
1169
 
/* Ultrix mips cc rejects this.  */
1170
 
typedef int charset[2]; const charset x;
1171
 
/* SunOS 4.1.1 cc rejects this.  */
1172
 
char const *const *ccp;
1173
 
char **p;
1174
 
/* NEC SVR4.0.2 mips cc rejects this.  */
1175
 
struct point {int x, y;};
1176
 
static struct point const zero = {0,0};
1177
 
/* AIX XL C 1.02.0.0 rejects this.
1178
 
   It does not let you subtract one const X* pointer from another in an arm
1179
 
   of an if-expression whose if-part is not a constant expression */
1180
 
const char *g = "string";
1181
 
ccp = &g + (g ? g-g : 0);
1182
 
/* HPUX 7.0 cc rejects these. */
1183
 
++ccp;
1184
 
p = (char**) ccp;
1185
 
ccp = (char const *const *) p;
1186
 
{ /* SCO 3.2v4 cc rejects this.  */
1187
 
  char *t;
1188
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1189
 
 
1190
 
  *t++ = 0;
1191
 
}
1192
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1193
 
  int x[] = {25, 17};
1194
 
  const int *foo = &x[0];
1195
 
  ++foo;
1196
 
}
1197
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1198
 
  typedef const int *iptr;
1199
 
  iptr p = 0;
1200
 
  ++p;
1201
 
}
1202
 
{ /* AIX XL C 1.02.0.0 rejects this saying
1203
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1204
 
  struct s { int j; const int *ap[3]; };
1205
 
  struct s *b; b->j = 5;
1206
 
}
1207
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1208
 
  const int foo = 10;
1209
 
}
1210
 
 
1211
 
; return 0; }
1212
 
EOF
1213
 
if { (eval echo configure:1214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1214
 
  rm -rf conftest*
 
2635
echo "$as_me:2635: checking for $CC option to accept ANSI C" >&5
 
2636
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2637
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2639
else
 
2640
  ac_cv_prog_cc_stdc=no
 
2641
ac_save_CC=$CC
 
2642
cat >conftest.$ac_ext <<_ACEOF
 
2643
#line 2643 "configure"
 
2644
#include "confdefs.h"
 
2645
#include <stdarg.h>
 
2646
#include <stdio.h>
 
2647
#include <sys/types.h>
 
2648
#include <sys/stat.h>
 
2649
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2650
struct buf { int x; };
 
2651
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2652
static char *e (p, i)
 
2653
     char **p;
 
2654
     int i;
 
2655
{
 
2656
  return p[i];
 
2657
}
 
2658
static char *f (char * (*g) (char **, int), char **p, ...)
 
2659
{
 
2660
  char *s;
 
2661
  va_list v;
 
2662
  va_start (v,p);
 
2663
  s = g (p, va_arg (v,int));
 
2664
  va_end (v);
 
2665
  return s;
 
2666
}
 
2667
int test (int i, double x);
 
2668
struct s1 {int (*f) (int a);};
 
2669
struct s2 {int (*f) (double a);};
 
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2671
int argc;
 
2672
char **argv;
 
2673
int
 
2674
main ()
 
2675
{
 
2676
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2677
  ;
 
2678
  return 0;
 
2679
}
 
2680
_ACEOF
 
2681
# Don't try gcc -ansi; that turns off useful extensions and
 
2682
# breaks some systems' header files.
 
2683
# AIX                   -qlanglvl=ansi
 
2684
# Ultrix and OSF/1      -std1
 
2685
# HP-UX 10.20 and later -Ae
 
2686
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2687
# SVR4                  -Xc -D__EXTENSIONS__
 
2688
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2689
do
 
2690
  CC="$ac_save_CC $ac_arg"
 
2691
  rm -f conftest.$ac_objext
 
2692
if { (eval echo "$as_me:2692: \"$ac_compile\"") >&5
 
2693
  (eval $ac_compile) 2>&5
 
2694
  ac_status=$?
 
2695
  echo "$as_me:2695: \$? = $ac_status" >&5
 
2696
  (exit $ac_status); } &&
 
2697
         { ac_try='test -s conftest.$ac_objext'
 
2698
  { (eval echo "$as_me:2698: \"$ac_try\"") >&5
 
2699
  (eval $ac_try) 2>&5
 
2700
  ac_status=$?
 
2701
  echo "$as_me:2701: \$? = $ac_status" >&5
 
2702
  (exit $ac_status); }; }; then
 
2703
  ac_cv_prog_cc_stdc=$ac_arg
 
2704
break
 
2705
else
 
2706
  echo "$as_me: failed program was:" >&5
 
2707
cat conftest.$ac_ext >&5
 
2708
fi
 
2709
rm -f conftest.$ac_objext
 
2710
done
 
2711
rm -f conftest.$ac_ext conftest.$ac_objext
 
2712
CC=$ac_save_CC
 
2713
 
 
2714
fi
 
2715
 
 
2716
case "x$ac_cv_prog_cc_stdc" in
 
2717
  x|xno)
 
2718
    echo "$as_me:2718: result: none needed" >&5
 
2719
echo "${ECHO_T}none needed" >&6 ;;
 
2720
  *)
 
2721
    echo "$as_me:2721: result: $ac_cv_prog_cc_stdc" >&5
 
2722
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2723
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2724
esac
 
2725
 
 
2726
echo "$as_me:2726: checking for an ANSI C-conforming const" >&5
 
2727
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
2728
if test "${ac_cv_c_const+set}" = set; then
 
2729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2730
else
 
2731
  cat >conftest.$ac_ext <<_ACEOF
 
2732
#line 2732 "configure"
 
2733
#include "confdefs.h"
 
2734
 
 
2735
int
 
2736
main ()
 
2737
{
 
2738
/* FIXME: Include the comments suggested by Paul. */
 
2739
#ifndef __cplusplus
 
2740
  /* Ultrix mips cc rejects this.  */
 
2741
  typedef int charset[2];
 
2742
  const charset x;
 
2743
  /* SunOS 4.1.1 cc rejects this.  */
 
2744
  char const *const *ccp;
 
2745
  char **p;
 
2746
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
2747
  struct point {int x, y;};
 
2748
  static struct point const zero = {0,0};
 
2749
  /* AIX XL C 1.02.0.0 rejects this.
 
2750
     It does not let you subtract one const X* pointer from another in
 
2751
     an arm of an if-expression whose if-part is not a constant
 
2752
     expression */
 
2753
  const char *g = "string";
 
2754
  ccp = &g + (g ? g-g : 0);
 
2755
  /* HPUX 7.0 cc rejects these. */
 
2756
  ++ccp;
 
2757
  p = (char**) ccp;
 
2758
  ccp = (char const *const *) p;
 
2759
  { /* SCO 3.2v4 cc rejects this.  */
 
2760
    char *t;
 
2761
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
2762
 
 
2763
    *t++ = 0;
 
2764
  }
 
2765
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
2766
    int x[] = {25, 17};
 
2767
    const int *foo = &x[0];
 
2768
    ++foo;
 
2769
  }
 
2770
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
2771
    typedef const int *iptr;
 
2772
    iptr p = 0;
 
2773
    ++p;
 
2774
  }
 
2775
  { /* AIX XL C 1.02.0.0 rejects this saying
 
2776
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
2777
    struct s { int j; const int *ap[3]; };
 
2778
    struct s *b; b->j = 5;
 
2779
  }
 
2780
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
2781
    const int foo = 10;
 
2782
  }
 
2783
#endif
 
2784
 
 
2785
  ;
 
2786
  return 0;
 
2787
}
 
2788
_ACEOF
 
2789
rm -f conftest.$ac_objext
 
2790
if { (eval echo "$as_me:2790: \"$ac_compile\"") >&5
 
2791
  (eval $ac_compile) 2>&5
 
2792
  ac_status=$?
 
2793
  echo "$as_me:2793: \$? = $ac_status" >&5
 
2794
  (exit $ac_status); } &&
 
2795
         { ac_try='test -s conftest.$ac_objext'
 
2796
  { (eval echo "$as_me:2796: \"$ac_try\"") >&5
 
2797
  (eval $ac_try) 2>&5
 
2798
  ac_status=$?
 
2799
  echo "$as_me:2799: \$? = $ac_status" >&5
 
2800
  (exit $ac_status); }; }; then
1215
2801
  ac_cv_c_const=yes
1216
2802
else
1217
 
  echo "configure: failed program was:" >&5
1218
 
  cat conftest.$ac_ext >&5
1219
 
  rm -rf conftest*
1220
 
  ac_cv_c_const=no
1221
 
fi
1222
 
rm -f conftest*
1223
 
fi
1224
 
 
1225
 
echo "$ac_t""$ac_cv_c_const" 1>&6
 
2803
  echo "$as_me: failed program was:" >&5
 
2804
cat conftest.$ac_ext >&5
 
2805
ac_cv_c_const=no
 
2806
fi
 
2807
rm -f conftest.$ac_objext conftest.$ac_ext
 
2808
fi
 
2809
echo "$as_me:2809: result: $ac_cv_c_const" >&5
 
2810
echo "${ECHO_T}$ac_cv_c_const" >&6
1226
2811
if test $ac_cv_c_const = no; then
1227
 
  cat >> confdefs.h <<\EOF
1228
 
#define const 
 
2812
 
 
2813
cat >>confdefs.h <<\EOF
 
2814
#define const
1229
2815
EOF
1230
2816
 
1231
2817
fi
1232
2818
 
1233
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1234
 
echo "configure:1235: checking for ANSI C header files" >&5
1235
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1236
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2819
echo "$as_me:2819: checking for ANSI C header files" >&5
 
2820
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2821
if test "${ac_cv_header_stdc+set}" = set; then
 
2822
  echo $ECHO_N "(cached) $ECHO_C" >&6
1237
2823
else
1238
 
  cat > conftest.$ac_ext <<EOF
1239
 
#line 1240 "configure"
 
2824
  cat >conftest.$ac_ext <<_ACEOF
 
2825
#line 2825 "configure"
1240
2826
#include "confdefs.h"
1241
2827
#include <stdlib.h>
1242
2828
#include <stdarg.h>
1243
2829
#include <string.h>
1244
2830
#include <float.h>
1245
 
EOF
1246
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1247
 
{ (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1248
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1249
 
if test -z "$ac_err"; then
1250
 
  rm -rf conftest*
 
2831
 
 
2832
_ACEOF
 
2833
if { (eval echo "$as_me:2833: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2834
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2835
  ac_status=$?
 
2836
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2837
  rm -f conftest.er1
 
2838
  cat conftest.err >&5
 
2839
  echo "$as_me:2839: \$? = $ac_status" >&5
 
2840
  (exit $ac_status); } >/dev/null; then
 
2841
  if test -s conftest.err; then
 
2842
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2843
  else
 
2844
    ac_cpp_err=
 
2845
  fi
 
2846
else
 
2847
  ac_cpp_err=yes
 
2848
fi
 
2849
if test -z "$ac_cpp_err"; then
1251
2850
  ac_cv_header_stdc=yes
1252
2851
else
1253
 
  echo "$ac_err" >&5
1254
 
  echo "configure: failed program was:" >&5
 
2852
  echo "$as_me: failed program was:" >&5
1255
2853
  cat conftest.$ac_ext >&5
1256
 
  rm -rf conftest*
1257
2854
  ac_cv_header_stdc=no
1258
2855
fi
1259
 
rm -f conftest*
 
2856
rm -f conftest.err conftest.$ac_ext
1260
2857
 
1261
2858
if test $ac_cv_header_stdc = yes; then
1262
2859
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1263
 
cat > conftest.$ac_ext <<EOF
1264
 
#line 1265 "configure"
 
2860
  cat >conftest.$ac_ext <<_ACEOF
 
2861
#line 2861 "configure"
1265
2862
#include "confdefs.h"
1266
2863
#include <string.h>
1267
 
EOF
 
2864
 
 
2865
_ACEOF
1268
2866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1269
2867
  egrep "memchr" >/dev/null 2>&1; then
1270
2868
  :
1271
2869
else
1272
 
  rm -rf conftest*
1273
2870
  ac_cv_header_stdc=no
1274
2871
fi
1275
2872
rm -f conftest*
1278
2875
 
1279
2876
if test $ac_cv_header_stdc = yes; then
1280
2877
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1281
 
cat > conftest.$ac_ext <<EOF
1282
 
#line 1283 "configure"
 
2878
  cat >conftest.$ac_ext <<_ACEOF
 
2879
#line 2879 "configure"
1283
2880
#include "confdefs.h"
1284
2881
#include <stdlib.h>
1285
 
EOF
 
2882
 
 
2883
_ACEOF
1286
2884
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1287
2885
  egrep "free" >/dev/null 2>&1; then
1288
2886
  :
1289
2887
else
1290
 
  rm -rf conftest*
1291
2888
  ac_cv_header_stdc=no
1292
2889
fi
1293
2890
rm -f conftest*
1296
2893
 
1297
2894
if test $ac_cv_header_stdc = yes; then
1298
2895
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1299
 
if test "$cross_compiling" = yes; then
 
2896
  if test "$cross_compiling" = yes; then
1300
2897
  :
1301
2898
else
1302
 
  cat > conftest.$ac_ext <<EOF
1303
 
#line 1304 "configure"
 
2899
  cat >conftest.$ac_ext <<_ACEOF
 
2900
#line 2900 "configure"
1304
2901
#include "confdefs.h"
1305
2902
#include <ctype.h>
1306
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1307
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2903
#if ((' ' & 0x0FF) == 0x020)
 
2904
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2905
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2906
#else
 
2907
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
2908
                     || ('j' <= (c) && (c) <= 'r') \
 
2909
                     || ('s' <= (c) && (c) <= 'z'))
 
2910
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2911
#endif
 
2912
 
1308
2913
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1309
 
int main () { int i; for (i = 0; i < 256; i++)
1310
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1311
 
exit (0); }
1312
 
 
1313
 
EOF
1314
 
if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1315
 
then
 
2914
int
 
2915
main ()
 
2916
{
 
2917
  int i;
 
2918
  for (i = 0; i < 256; i++)
 
2919
    if (XOR (islower (i), ISLOWER (i))
 
2920
        || toupper (i) != TOUPPER (i))
 
2921
      exit(2);
 
2922
  exit (0);
 
2923
}
 
2924
_ACEOF
 
2925
rm -f conftest$ac_exeext
 
2926
if { (eval echo "$as_me:2926: \"$ac_link\"") >&5
 
2927
  (eval $ac_link) 2>&5
 
2928
  ac_status=$?
 
2929
  echo "$as_me:2929: \$? = $ac_status" >&5
 
2930
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2931
  { (eval echo "$as_me:2931: \"$ac_try\"") >&5
 
2932
  (eval $ac_try) 2>&5
 
2933
  ac_status=$?
 
2934
  echo "$as_me:2934: \$? = $ac_status" >&5
 
2935
  (exit $ac_status); }; }; then
1316
2936
  :
1317
2937
else
1318
 
  echo "configure: failed program was:" >&5
1319
 
  cat conftest.$ac_ext >&5
1320
 
  rm -fr conftest*
1321
 
  ac_cv_header_stdc=no
1322
 
fi
1323
 
rm -fr conftest*
1324
 
fi
1325
 
 
1326
 
fi
1327
 
fi
1328
 
 
1329
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
2938
  echo "$as_me: program exited with status $ac_status" >&5
 
2939
echo "$as_me: failed program was:" >&5
 
2940
cat conftest.$ac_ext >&5
 
2941
ac_cv_header_stdc=no
 
2942
fi
 
2943
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2944
fi
 
2945
fi
 
2946
fi
 
2947
echo "$as_me:2947: result: $ac_cv_header_stdc" >&5
 
2948
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1330
2949
if test $ac_cv_header_stdc = yes; then
1331
 
  cat >> confdefs.h <<\EOF
 
2950
 
 
2951
cat >>confdefs.h <<\EOF
1332
2952
#define STDC_HEADERS 1
1333
2953
EOF
1334
2954
 
1335
2955
fi
1336
2956
 
1337
 
for ac_hdr in stdlib.h unistd.h
1338
 
do
1339
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1340
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1341
 
echo "configure:1342: checking for $ac_hdr" >&5
1342
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1343
 
  echo $ac_n "(cached) $ac_c" 1>&6
1344
 
else
1345
 
  cat > conftest.$ac_ext <<EOF
1346
 
#line 1347 "configure"
1347
 
#include "confdefs.h"
1348
 
#include <$ac_hdr>
1349
 
EOF
1350
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351
 
{ (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353
 
if test -z "$ac_err"; then
1354
 
  rm -rf conftest*
1355
 
  eval "ac_cv_header_$ac_safe=yes"
1356
 
else
1357
 
  echo "$ac_err" >&5
1358
 
  echo "configure: failed program was:" >&5
1359
 
  cat conftest.$ac_ext >&5
1360
 
  rm -rf conftest*
1361
 
  eval "ac_cv_header_$ac_safe=no"
1362
 
fi
1363
 
rm -f conftest*
1364
 
fi
1365
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1366
 
  echo "$ac_t""yes" 1>&6
1367
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1368
 
  cat >> confdefs.h <<EOF
1369
 
#define $ac_tr_hdr 1
1370
 
EOF
1371
 
 
1372
 
else
1373
 
  echo "$ac_t""no" 1>&6
1374
 
fi
1375
 
done
1376
 
 
1377
 
for ac_hdr in getopt.h string.h memory.h
1378
 
do
1379
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1380
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1381
 
echo "configure:1382: checking for $ac_hdr" >&5
1382
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1383
 
  echo $ac_n "(cached) $ac_c" 1>&6
1384
 
else
1385
 
  cat > conftest.$ac_ext <<EOF
1386
 
#line 1387 "configure"
1387
 
#include "confdefs.h"
1388
 
#include <$ac_hdr>
1389
 
EOF
1390
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1391
 
{ (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1392
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1393
 
if test -z "$ac_err"; then
1394
 
  rm -rf conftest*
1395
 
  eval "ac_cv_header_$ac_safe=yes"
1396
 
else
1397
 
  echo "$ac_err" >&5
1398
 
  echo "configure: failed program was:" >&5
1399
 
  cat conftest.$ac_ext >&5
1400
 
  rm -rf conftest*
1401
 
  eval "ac_cv_header_$ac_safe=no"
1402
 
fi
1403
 
rm -f conftest*
1404
 
fi
1405
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1406
 
  echo "$ac_t""yes" 1>&6
1407
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1408
 
  cat >> confdefs.h <<EOF
1409
 
#define $ac_tr_hdr 1
1410
 
EOF
1411
 
 
1412
 
else
1413
 
  echo "$ac_t""no" 1>&6
1414
 
fi
1415
 
done
1416
 
 
 
2957
for ac_header in stdlib.h unistd.h
 
2958
do
 
2959
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2960
echo "$as_me:2960: checking for $ac_header" >&5
 
2961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2964
else
 
2965
  cat >conftest.$ac_ext <<_ACEOF
 
2966
#line 2966 "configure"
 
2967
#include "confdefs.h"
 
2968
#include <$ac_header>
 
2969
_ACEOF
 
2970
if { (eval echo "$as_me:2970: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2971
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2972
  ac_status=$?
 
2973
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2974
  rm -f conftest.er1
 
2975
  cat conftest.err >&5
 
2976
  echo "$as_me:2976: \$? = $ac_status" >&5
 
2977
  (exit $ac_status); } >/dev/null; then
 
2978
  if test -s conftest.err; then
 
2979
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2980
  else
 
2981
    ac_cpp_err=
 
2982
  fi
 
2983
else
 
2984
  ac_cpp_err=yes
 
2985
fi
 
2986
if test -z "$ac_cpp_err"; then
 
2987
  eval "$as_ac_Header=yes"
 
2988
else
 
2989
  echo "$as_me: failed program was:" >&5
 
2990
  cat conftest.$ac_ext >&5
 
2991
  eval "$as_ac_Header=no"
 
2992
fi
 
2993
rm -f conftest.err conftest.$ac_ext
 
2994
fi
 
2995
echo "$as_me:2995: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2996
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2997
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
2998
  cat >>confdefs.h <<EOF
 
2999
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3000
EOF
 
3001
 
 
3002
fi
 
3003
done
 
3004
 
 
3005
for ac_header in getopt.h string.h memory.h
 
3006
do
 
3007
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3008
echo "$as_me:3008: checking for $ac_header" >&5
 
3009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3012
else
 
3013
  cat >conftest.$ac_ext <<_ACEOF
 
3014
#line 3014 "configure"
 
3015
#include "confdefs.h"
 
3016
#include <$ac_header>
 
3017
_ACEOF
 
3018
if { (eval echo "$as_me:3018: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3019
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3020
  ac_status=$?
 
3021
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3022
  rm -f conftest.er1
 
3023
  cat conftest.err >&5
 
3024
  echo "$as_me:3024: \$? = $ac_status" >&5
 
3025
  (exit $ac_status); } >/dev/null; then
 
3026
  if test -s conftest.err; then
 
3027
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3028
  else
 
3029
    ac_cpp_err=
 
3030
  fi
 
3031
else
 
3032
  ac_cpp_err=yes
 
3033
fi
 
3034
if test -z "$ac_cpp_err"; then
 
3035
  eval "$as_ac_Header=yes"
 
3036
else
 
3037
  echo "$as_me: failed program was:" >&5
 
3038
  cat conftest.$ac_ext >&5
 
3039
  eval "$as_ac_Header=no"
 
3040
fi
 
3041
rm -f conftest.err conftest.$ac_ext
 
3042
fi
 
3043
echo "$as_me:3043: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3044
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3045
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3046
  cat >>confdefs.h <<EOF
 
3047
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3048
EOF
 
3049
 
 
3050
fi
 
3051
done
1417
3052
 
1418
3053
for ac_func in strstr tmpfile link unlink mktemp
1419
3054
do
1420
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1421
 
echo "configure:1422: checking for $ac_func" >&5
1422
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1423
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3055
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3056
echo "$as_me:3056: checking for $ac_func" >&5
 
3057
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3058
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3059
  echo $ECHO_N "(cached) $ECHO_C" >&6
1424
3060
else
1425
 
  cat > conftest.$ac_ext <<EOF
1426
 
#line 1427 "configure"
 
3061
  cat >conftest.$ac_ext <<_ACEOF
 
3062
#line 3062 "configure"
1427
3063
#include "confdefs.h"
1428
3064
/* System header to define __stub macros and hopefully few prototypes,
1429
 
    which can conflict with char $ac_func(); below.  */
 
3065
    which can conflict with char $ac_func (); below.  */
1430
3066
#include <assert.h>
1431
3067
/* Override any gcc2 internal prototype to avoid an error.  */
 
3068
#ifdef __cplusplus
 
3069
extern "C"
 
3070
#endif
1432
3071
/* We use char because int might match the return type of a gcc2
1433
 
    builtin and then its argument prototype would still apply.  */
1434
 
char $ac_func();
1435
 
 
1436
 
int main() {
1437
 
 
 
3072
   builtin and then its argument prototype would still apply.  */
 
3073
char $ac_func ();
 
3074
char (*f) ();
 
3075
 
 
3076
int
 
3077
main ()
 
3078
{
1438
3079
/* The GNU C library defines this for functions which it implements
1439
3080
    to always fail with ENOSYS.  Some functions are actually named
1440
3081
    something starting with __ and the normal name is an alias.  */
1441
3082
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1442
3083
choke me
1443
3084
#else
1444
 
$ac_func();
 
3085
f = $ac_func;
1445
3086
#endif
1446
3087
 
1447
 
; return 0; }
 
3088
  ;
 
3089
  return 0;
 
3090
}
 
3091
_ACEOF
 
3092
rm -f conftest.$ac_objext conftest$ac_exeext
 
3093
if { (eval echo "$as_me:3093: \"$ac_link\"") >&5
 
3094
  (eval $ac_link) 2>&5
 
3095
  ac_status=$?
 
3096
  echo "$as_me:3096: \$? = $ac_status" >&5
 
3097
  (exit $ac_status); } &&
 
3098
         { ac_try='test -s conftest$ac_exeext'
 
3099
  { (eval echo "$as_me:3099: \"$ac_try\"") >&5
 
3100
  (eval $ac_try) 2>&5
 
3101
  ac_status=$?
 
3102
  echo "$as_me:3102: \$? = $ac_status" >&5
 
3103
  (exit $ac_status); }; }; then
 
3104
  eval "$as_ac_var=yes"
 
3105
else
 
3106
  echo "$as_me: failed program was:" >&5
 
3107
cat conftest.$ac_ext >&5
 
3108
eval "$as_ac_var=no"
 
3109
fi
 
3110
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3111
fi
 
3112
echo "$as_me:3112: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3113
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3114
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3115
  cat >>confdefs.h <<EOF
 
3116
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1448
3117
EOF
1449
 
if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1450
 
  rm -rf conftest*
1451
 
  eval "ac_cv_func_$ac_func=yes"
1452
 
else
1453
 
  echo "configure: failed program was:" >&5
1454
 
  cat conftest.$ac_ext >&5
1455
 
  rm -rf conftest*
1456
 
  eval "ac_cv_func_$ac_func=no"
1457
 
fi
1458
 
rm -f conftest*
1459
 
fi
1460
3118
 
1461
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1462
 
  echo "$ac_t""yes" 1>&6
1463
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1464
 
  cat >> confdefs.h <<EOF
1465
 
#define $ac_tr_func 1
1466
 
EOF
1467
 
 
1468
 
else
1469
 
  echo "$ac_t""no" 1>&6
1470
3119
fi
1471
3120
done
1472
3121
 
1473
 
 
1474
3122
###     special configuration tests
1475
3123
 
1476
 
echo $ac_n "checking for size_t in <sys/types.h> or <stdio.h>""... $ac_c" 1>&6
1477
 
echo "configure:1478: checking for size_t in <sys/types.h> or <stdio.h>" >&5
1478
 
if eval "test \"`echo '$''{'cf_cv_type_size_t'+set}'`\" = set"; then
1479
 
  echo $ac_n "(cached) $ac_c" 1>&6
1480
 
else
1481
 
  
1482
 
        cat > conftest.$ac_ext <<EOF
1483
 
#line 1484 "configure"
 
3124
echo "$as_me:3124: checking for working mkstemp" >&5
 
3125
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
 
3126
if test "${cf_cv_func_mkstemp+set}" = set; then
 
3127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3128
else
 
3129
 
 
3130
rm -f conftest*
 
3131
if test "$cross_compiling" = yes; then
 
3132
  echo "$as_me:3132: checking for mkstemp" >&5
 
3133
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
 
3134
if test "${ac_cv_func_mkstemp+set}" = set; then
 
3135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3136
else
 
3137
  cat >conftest.$ac_ext <<_ACEOF
 
3138
#line 3138 "configure"
 
3139
#include "confdefs.h"
 
3140
/* System header to define __stub macros and hopefully few prototypes,
 
3141
    which can conflict with char mkstemp (); below.  */
 
3142
#include <assert.h>
 
3143
/* Override any gcc2 internal prototype to avoid an error.  */
 
3144
#ifdef __cplusplus
 
3145
extern "C"
 
3146
#endif
 
3147
/* We use char because int might match the return type of a gcc2
 
3148
   builtin and then its argument prototype would still apply.  */
 
3149
char mkstemp ();
 
3150
char (*f) ();
 
3151
 
 
3152
int
 
3153
main ()
 
3154
{
 
3155
/* The GNU C library defines this for functions which it implements
 
3156
    to always fail with ENOSYS.  Some functions are actually named
 
3157
    something starting with __ and the normal name is an alias.  */
 
3158
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
 
3159
choke me
 
3160
#else
 
3161
f = mkstemp;
 
3162
#endif
 
3163
 
 
3164
  ;
 
3165
  return 0;
 
3166
}
 
3167
_ACEOF
 
3168
rm -f conftest.$ac_objext conftest$ac_exeext
 
3169
if { (eval echo "$as_me:3169: \"$ac_link\"") >&5
 
3170
  (eval $ac_link) 2>&5
 
3171
  ac_status=$?
 
3172
  echo "$as_me:3172: \$? = $ac_status" >&5
 
3173
  (exit $ac_status); } &&
 
3174
         { ac_try='test -s conftest$ac_exeext'
 
3175
  { (eval echo "$as_me:3175: \"$ac_try\"") >&5
 
3176
  (eval $ac_try) 2>&5
 
3177
  ac_status=$?
 
3178
  echo "$as_me:3178: \$? = $ac_status" >&5
 
3179
  (exit $ac_status); }; }; then
 
3180
  ac_cv_func_mkstemp=yes
 
3181
else
 
3182
  echo "$as_me: failed program was:" >&5
 
3183
cat conftest.$ac_ext >&5
 
3184
ac_cv_func_mkstemp=no
 
3185
fi
 
3186
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3187
fi
 
3188
echo "$as_me:3188: result: $ac_cv_func_mkstemp" >&5
 
3189
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
 
3190
 
 
3191
else
 
3192
  cat >conftest.$ac_ext <<_ACEOF
 
3193
#line 3193 "configure"
 
3194
#include "confdefs.h"
 
3195
 
 
3196
#include <sys/types.h>
 
3197
#include <stdlib.h>
 
3198
#include <stdio.h>
 
3199
#include <string.h>
 
3200
#include <sys/stat.h>
 
3201
int main()
 
3202
{
 
3203
        char *tmpl = "conftestXXXXXX";
 
3204
        char name[2][80];
 
3205
        int n;
 
3206
        int result = 0;
 
3207
        int fd;
 
3208
        struct stat sb;
 
3209
 
 
3210
        umask(077);
 
3211
        for (n = 0; n < 2; ++n) {
 
3212
                strcpy(name[n], tmpl);
 
3213
                if ((fd = mkstemp(name[n])) >= 0) {
 
3214
                        if (!strcmp(name[n], tmpl)
 
3215
                         || stat(name[n], &sb) != 0
 
3216
                         || (sb.st_mode & S_IFMT) != S_IFREG
 
3217
                         || (sb.st_mode & 077) != 0) {
 
3218
                                result = 1;
 
3219
                        }
 
3220
                        close(fd);
 
3221
                }
 
3222
        }
 
3223
        if (result == 0
 
3224
         && !strcmp(name[0], name[1]))
 
3225
                result = 1;
 
3226
        exit(result);
 
3227
}
 
3228
 
 
3229
_ACEOF
 
3230
rm -f conftest$ac_exeext
 
3231
if { (eval echo "$as_me:3231: \"$ac_link\"") >&5
 
3232
  (eval $ac_link) 2>&5
 
3233
  ac_status=$?
 
3234
  echo "$as_me:3234: \$? = $ac_status" >&5
 
3235
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3236
  { (eval echo "$as_me:3236: \"$ac_try\"") >&5
 
3237
  (eval $ac_try) 2>&5
 
3238
  ac_status=$?
 
3239
  echo "$as_me:3239: \$? = $ac_status" >&5
 
3240
  (exit $ac_status); }; }; then
 
3241
  cf_cv_func_mkstemp=yes
 
3242
 
 
3243
else
 
3244
  echo "$as_me: program exited with status $ac_status" >&5
 
3245
echo "$as_me: failed program was:" >&5
 
3246
cat conftest.$ac_ext >&5
 
3247
cf_cv_func_mkstemp=no
 
3248
 
 
3249
fi
 
3250
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3251
fi
 
3252
 
 
3253
fi
 
3254
echo "$as_me:3254: result: $cf_cv_func_mkstemp" >&5
 
3255
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
 
3256
if test "$cf_cv_func_mkstemp" = yes ; then
 
3257
        cat >>confdefs.h <<\EOF
 
3258
#define HAVE_MKSTEMP 1
 
3259
EOF
 
3260
 
 
3261
fi
 
3262
 
 
3263
echo "$as_me:3263: checking for size_t in <sys/types.h> or <stdio.h>" >&5
 
3264
echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
 
3265
if test "${cf_cv_type_size_t+set}" = set; then
 
3266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3267
else
 
3268
 
 
3269
        cat >conftest.$ac_ext <<_ACEOF
 
3270
#line 3270 "configure"
1484
3271
#include "confdefs.h"
1485
3272
 
1486
3273
#include <sys/types.h>
1489
3276
#include <stddef.h>
1490
3277
#endif
1491
3278
#include <stdio.h>
1492
 
int main() {
 
3279
int
 
3280
main ()
 
3281
{
1493
3282
size_t x
1494
 
; return 0; }
1495
 
EOF
1496
 
if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497
 
  rm -rf conftest*
 
3283
  ;
 
3284
  return 0;
 
3285
}
 
3286
_ACEOF
 
3287
rm -f conftest.$ac_objext
 
3288
if { (eval echo "$as_me:3288: \"$ac_compile\"") >&5
 
3289
  (eval $ac_compile) 2>&5
 
3290
  ac_status=$?
 
3291
  echo "$as_me:3291: \$? = $ac_status" >&5
 
3292
  (exit $ac_status); } &&
 
3293
         { ac_try='test -s conftest.$ac_objext'
 
3294
  { (eval echo "$as_me:3294: \"$ac_try\"") >&5
 
3295
  (eval $ac_try) 2>&5
 
3296
  ac_status=$?
 
3297
  echo "$as_me:3297: \$? = $ac_status" >&5
 
3298
  (exit $ac_status); }; }; then
1498
3299
  cf_cv_type_size_t=yes
1499
3300
else
1500
 
  echo "configure: failed program was:" >&5
1501
 
  cat conftest.$ac_ext >&5
1502
 
  rm -rf conftest*
1503
 
  cf_cv_type_size_t=no
1504
 
fi
1505
 
rm -f conftest*
1506
 
        
1507
 
fi
1508
 
 
1509
 
echo "$ac_t""$cf_cv_type_size_t" 1>&6
1510
 
test $cf_cv_type_size_t = no && cat >> confdefs.h <<\EOF
 
3301
  echo "$as_me: failed program was:" >&5
 
3302
cat conftest.$ac_ext >&5
 
3303
cf_cv_type_size_t=no
 
3304
fi
 
3305
rm -f conftest.$ac_objext conftest.$ac_ext
 
3306
 
 
3307
fi
 
3308
 
 
3309
echo "$as_me:3309: result: $cf_cv_type_size_t" >&5
 
3310
echo "${ECHO_T}$cf_cv_type_size_t" >&6
 
3311
test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF
1511
3312
#define size_t unsigned
1512
3313
EOF
1513
3314
 
1514
 
 
1515
 
 
1516
3315
rm -f yacctest.y
1517
3316
cat >yacctest.y <<EOF
1518
3317
%{
1532
3331
        ;
1533
3332
%%
1534
3333
EOF
 
3334
 
 
3335
echo "$as_me:3335: checking if $CPP can handle only .c files" >&5
 
3336
echo $ECHO_N "checking if $CPP can handle only .c files... $ECHO_C" >&6
1535
3337
$CPP yacctest.y >yacctest.out 2>/dev/null
1536
3338
if test ! -s yacctest.out
1537
3339
then
1538
 
        cat >> confdefs.h <<\EOF
 
3340
        cat >>confdefs.h <<\EOF
1539
3341
#define CPP_DOES_ONLY_C_FILES 1
1540
3342
EOF
1541
3343
 
 
3344
        echo "$as_me:3344: result: yes" >&5
 
3345
echo "${ECHO_T}yes" >&6
 
3346
else
 
3347
        echo "$as_me:3347: result: no" >&5
 
3348
echo "${ECHO_T}no" >&6
1542
3349
fi
 
3350
 
1543
3351
$YACC yacctest.y
1544
3352
rm -f yacctest.*
1545
3353
td_incl='#include "y.tab.c"'
1546
3354
for COND in BISON_HAS_YYTNAME YACC_HAS_YYTOKS YACC_HAS_YYTOKS_2 YACC_HAS_YYNAME
1547
3355
do
1548
 
echo $ac_n "checking for error-reporting with $COND""... $ac_c" 1>&6
1549
 
echo "configure:1550: checking for error-reporting with $COND" >&5
1550
 
if eval "test \"`echo '$''{'ac_cv_$COND'+set}'`\" = set"; then
1551
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3356
echo "$as_me:3356: checking for error-reporting with $COND" >&5
 
3357
echo $ECHO_N "checking for error-reporting with $COND... $ECHO_C" >&6
 
3358
if eval "test \"\${ac_cv_$COND+set}\" = set"; then
 
3359
  echo $ECHO_N "(cached) $ECHO_C" >&6
1552
3360
else
1553
 
  cat > conftest.$ac_ext <<EOF
1554
 
#line 1555 "configure"
 
3361
  cat >conftest.$ac_ext <<_ACEOF
 
3362
#line 3362 "configure"
1555
3363
#include "confdefs.h"
1556
3364
 
1557
3365
#define $COND 1
1558
3366
#define YYDEBUG 1
1559
3367
$td_incl
1560
 
int main() {
 
3368
int
 
3369
main ()
 
3370
{
1561
3371
 
1562
 
; return 0; }
1563
 
EOF
1564
 
if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1565
 
  rm -rf conftest*
 
3372
  ;
 
3373
  return 0;
 
3374
}
 
3375
_ACEOF
 
3376
rm -f conftest.$ac_objext conftest$ac_exeext
 
3377
if { (eval echo "$as_me:3377: \"$ac_link\"") >&5
 
3378
  (eval $ac_link) 2>&5
 
3379
  ac_status=$?
 
3380
  echo "$as_me:3380: \$? = $ac_status" >&5
 
3381
  (exit $ac_status); } &&
 
3382
         { ac_try='test -s conftest$ac_exeext'
 
3383
  { (eval echo "$as_me:3383: \"$ac_try\"") >&5
 
3384
  (eval $ac_try) 2>&5
 
3385
  ac_status=$?
 
3386
  echo "$as_me:3386: \$? = $ac_status" >&5
 
3387
  (exit $ac_status); }; }; then
1566
3388
  eval 'ac_cv_'$COND'=yes'
1567
3389
else
1568
 
  echo "configure: failed program was:" >&5
1569
 
  cat conftest.$ac_ext >&5
1570
 
  rm -rf conftest*
1571
 
  eval 'ac_cv_'$COND'=no'
 
3390
  echo "$as_me: failed program was:" >&5
 
3391
cat conftest.$ac_ext >&5
 
3392
eval 'ac_cv_'$COND'=no'
1572
3393
fi
1573
 
rm -f conftest*
 
3394
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1574
3395
fi
1575
3396
 
1576
3397
eval 'td_result=$ac_cv_'$COND
1577
 
echo "$ac_t""$td_result" 1>&6
 
3398
echo "$as_me:3398: result: $td_result" >&5
 
3399
echo "${ECHO_T}$td_result" >&6
1578
3400
if test $td_result = yes; then
1579
 
        cat >> confdefs.h <<EOF
 
3401
        cat >>confdefs.h <<EOF
1580
3402
#define $COND 1
1581
3403
EOF
1582
3404
 
1585
3407
done
1586
3408
rm -f y.tab.c
1587
3409
 
1588
 
echo $ac_n "checking for conflicting prototype for popen""... $ac_c" 1>&6
1589
 
echo "configure:1590: checking for conflicting prototype for popen" >&5
1590
 
if eval "test \"`echo '$''{'ac_cv_td_popen'+set}'`\" = set"; then
1591
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3410
echo "$as_me:3410: checking for conflicting prototype for popen" >&5
 
3411
echo $ECHO_N "checking for conflicting prototype for popen... $ECHO_C" >&6
 
3412
if test "${ac_cv_td_popen+set}" = set; then
 
3413
  echo $ECHO_N "(cached) $ECHO_C" >&6
1592
3414
else
1593
 
  cat > conftest.$ac_ext <<EOF
1594
 
#line 1595 "configure"
 
3415
  cat >conftest.$ac_ext <<_ACEOF
 
3416
#line 3416 "configure"
1595
3417
#include "confdefs.h"
1596
3418
 
1597
3419
#include <stdio.h>
1598
3420
#include "system.h"
1599
3421
extern int pclose ARGS((FILE *p));
1600
3422
extern FILE *popen ARGS((const char *c, const char *m));
1601
 
int main() {
 
3423
int
 
3424
main ()
 
3425
{
1602
3426
 
1603
 
; return 0; }
1604
 
EOF
1605
 
if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606
 
  rm -rf conftest*
 
3427
  ;
 
3428
  return 0;
 
3429
}
 
3430
_ACEOF
 
3431
rm -f conftest.$ac_objext conftest$ac_exeext
 
3432
if { (eval echo "$as_me:3432: \"$ac_link\"") >&5
 
3433
  (eval $ac_link) 2>&5
 
3434
  ac_status=$?
 
3435
  echo "$as_me:3435: \$? = $ac_status" >&5
 
3436
  (exit $ac_status); } &&
 
3437
         { ac_try='test -s conftest$ac_exeext'
 
3438
  { (eval echo "$as_me:3438: \"$ac_try\"") >&5
 
3439
  (eval $ac_try) 2>&5
 
3440
  ac_status=$?
 
3441
  echo "$as_me:3441: \$? = $ac_status" >&5
 
3442
  (exit $ac_status); }; }; then
1607
3443
  ac_cv_td_popen=no
1608
3444
else
1609
 
  echo "configure: failed program was:" >&5
1610
 
  cat conftest.$ac_ext >&5
1611
 
  rm -rf conftest*
1612
 
  ac_cv_td_popen=yes
 
3445
  echo "$as_me: failed program was:" >&5
 
3446
cat conftest.$ac_ext >&5
 
3447
ac_cv_td_popen=yes
1613
3448
fi
1614
 
rm -f conftest*
 
3449
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1615
3450
fi
1616
3451
 
1617
 
echo "$ac_t""$ac_cv_td_popen" 1>&6
 
3452
echo "$as_me:3452: result: $ac_cv_td_popen" >&5
 
3453
echo "${ECHO_T}$ac_cv_td_popen" >&6
1618
3454
if test $ac_cv_td_popen = yes; then
1619
 
        cat >> confdefs.h <<\EOF
 
3455
        cat >>confdefs.h <<\EOF
1620
3456
#define HAVE_POPEN_PROTOTYPE 1
1621
3457
EOF
1622
3458
 
1623
3459
fi
1624
3460
 
1625
 
 
1626
3461
###     debugging/testing
1627
3462
 
1628
3463
# Check whether --with-trace or --without-trace was given.
1629
3464
if test "${with_trace+set}" = set; then
1630
3465
  withval="$with_trace"
1631
 
  
1632
 
        echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1633
 
echo "configure:1634: checking whether time.h and sys/time.h may both be included" >&5
1634
 
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1635
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3466
 
 
3467
        echo "$as_me:3467: checking whether time.h and sys/time.h may both be included" >&5
 
3468
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
3469
if test "${ac_cv_header_time+set}" = set; then
 
3470
  echo $ECHO_N "(cached) $ECHO_C" >&6
1636
3471
else
1637
 
  cat > conftest.$ac_ext <<EOF
1638
 
#line 1639 "configure"
 
3472
  cat >conftest.$ac_ext <<_ACEOF
 
3473
#line 3473 "configure"
1639
3474
#include "confdefs.h"
1640
3475
#include <sys/types.h>
1641
3476
#include <sys/time.h>
1642
3477
#include <time.h>
1643
 
int main() {
1644
 
struct tm *tp;
1645
 
; return 0; }
1646
 
EOF
1647
 
if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648
 
  rm -rf conftest*
 
3478
 
 
3479
int
 
3480
main ()
 
3481
{
 
3482
if ((struct tm *) 0)
 
3483
return 0;
 
3484
  ;
 
3485
  return 0;
 
3486
}
 
3487
_ACEOF
 
3488
rm -f conftest.$ac_objext
 
3489
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
 
3490
  (eval $ac_compile) 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:3492: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); } &&
 
3494
         { ac_try='test -s conftest.$ac_objext'
 
3495
  { (eval echo "$as_me:3495: \"$ac_try\"") >&5
 
3496
  (eval $ac_try) 2>&5
 
3497
  ac_status=$?
 
3498
  echo "$as_me:3498: \$? = $ac_status" >&5
 
3499
  (exit $ac_status); }; }; then
1649
3500
  ac_cv_header_time=yes
1650
3501
else
1651
 
  echo "configure: failed program was:" >&5
1652
 
  cat conftest.$ac_ext >&5
1653
 
  rm -rf conftest*
1654
 
  ac_cv_header_time=no
1655
 
fi
1656
 
rm -f conftest*
1657
 
fi
1658
 
 
1659
 
echo "$ac_t""$ac_cv_header_time" 1>&6
 
3502
  echo "$as_me: failed program was:" >&5
 
3503
cat conftest.$ac_ext >&5
 
3504
ac_cv_header_time=no
 
3505
fi
 
3506
rm -f conftest.$ac_objext conftest.$ac_ext
 
3507
fi
 
3508
echo "$as_me:3508: result: $ac_cv_header_time" >&5
 
3509
echo "${ECHO_T}$ac_cv_header_time" >&6
1660
3510
if test $ac_cv_header_time = yes; then
1661
 
  cat >> confdefs.h <<\EOF
 
3511
 
 
3512
cat >>confdefs.h <<\EOF
1662
3513
#define TIME_WITH_SYS_TIME 1
1663
3514
EOF
1664
3515
 
1665
3516
fi
1666
3517
 
1667
 
        for ac_func in gettimeofday
 
3518
for ac_func in gettimeofday
1668
3519
do
1669
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670
 
echo "configure:1671: checking for $ac_func" >&5
1671
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3520
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3521
echo "$as_me:3521: checking for $ac_func" >&5
 
3522
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3523
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3524
  echo $ECHO_N "(cached) $ECHO_C" >&6
1673
3525
else
1674
 
  cat > conftest.$ac_ext <<EOF
1675
 
#line 1676 "configure"
 
3526
  cat >conftest.$ac_ext <<_ACEOF
 
3527
#line 3527 "configure"
1676
3528
#include "confdefs.h"
1677
3529
/* System header to define __stub macros and hopefully few prototypes,
1678
 
    which can conflict with char $ac_func(); below.  */
 
3530
    which can conflict with char $ac_func (); below.  */
1679
3531
#include <assert.h>
1680
3532
/* Override any gcc2 internal prototype to avoid an error.  */
 
3533
#ifdef __cplusplus
 
3534
extern "C"
 
3535
#endif
1681
3536
/* We use char because int might match the return type of a gcc2
1682
 
    builtin and then its argument prototype would still apply.  */
1683
 
char $ac_func();
1684
 
 
1685
 
int main() {
1686
 
 
 
3537
   builtin and then its argument prototype would still apply.  */
 
3538
char $ac_func ();
 
3539
char (*f) ();
 
3540
 
 
3541
int
 
3542
main ()
 
3543
{
1687
3544
/* The GNU C library defines this for functions which it implements
1688
3545
    to always fail with ENOSYS.  Some functions are actually named
1689
3546
    something starting with __ and the normal name is an alias.  */
1690
3547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691
3548
choke me
1692
3549
#else
1693
 
$ac_func();
 
3550
f = $ac_func;
1694
3551
#endif
1695
3552
 
1696
 
; return 0; }
 
3553
  ;
 
3554
  return 0;
 
3555
}
 
3556
_ACEOF
 
3557
rm -f conftest.$ac_objext conftest$ac_exeext
 
3558
if { (eval echo "$as_me:3558: \"$ac_link\"") >&5
 
3559
  (eval $ac_link) 2>&5
 
3560
  ac_status=$?
 
3561
  echo "$as_me:3561: \$? = $ac_status" >&5
 
3562
  (exit $ac_status); } &&
 
3563
         { ac_try='test -s conftest$ac_exeext'
 
3564
  { (eval echo "$as_me:3564: \"$ac_try\"") >&5
 
3565
  (eval $ac_try) 2>&5
 
3566
  ac_status=$?
 
3567
  echo "$as_me:3567: \$? = $ac_status" >&5
 
3568
  (exit $ac_status); }; }; then
 
3569
  eval "$as_ac_var=yes"
 
3570
else
 
3571
  echo "$as_me: failed program was:" >&5
 
3572
cat conftest.$ac_ext >&5
 
3573
eval "$as_ac_var=no"
 
3574
fi
 
3575
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3576
fi
 
3577
echo "$as_me:3577: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3578
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3579
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3580
  cat >>confdefs.h <<EOF
 
3581
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1697
3582
EOF
1698
 
if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699
 
  rm -rf conftest*
1700
 
  eval "ac_cv_func_$ac_func=yes"
1701
 
else
1702
 
  echo "configure: failed program was:" >&5
1703
 
  cat conftest.$ac_ext >&5
1704
 
  rm -rf conftest*
1705
 
  eval "ac_cv_func_$ac_func=no"
1706
 
fi
1707
 
rm -f conftest*
1708
 
fi
1709
3583
 
1710
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1711
 
  echo "$ac_t""yes" 1>&6
1712
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1713
 
  cat >> confdefs.h <<EOF
1714
 
#define $ac_tr_func 1
1715
 
EOF
1716
 
 
1717
 
else
1718
 
  echo "$ac_t""no" 1>&6
1719
3584
fi
1720
3585
done
1721
3586
 
1722
 
        cat >> confdefs.h <<\EOF
 
3587
        cat >>confdefs.h <<\EOF
1723
3588
#define DOALLOC 10000
1724
3589
EOF
1725
3590
 
1726
3591
        EXTRA_OBJS="$EXTRA_OBJS trace.o dump.o"
1727
 
fi
1728
 
 
 
3592
fi;
 
3593
 
 
3594
echo "$as_me:3594: checking if you want to link with dbmalloc for testing" >&5
 
3595
echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
 
3596
 
 
3597
# Check whether --with-dbmalloc or --without-dbmalloc was given.
 
3598
if test "${with_dbmalloc+set}" = set; then
 
3599
  withval="$with_dbmalloc"
 
3600
  with_dbmalloc=$withval
 
3601
else
 
3602
  with_dbmalloc=no
 
3603
fi;
 
3604
echo "$as_me:3604: result: $with_dbmalloc" >&5
 
3605
echo "${ECHO_T}$with_dbmalloc" >&6
 
3606
if test "$with_dbmalloc" = yes ; then
 
3607
        echo "$as_me:3607: checking for dbmalloc.h" >&5
 
3608
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
 
3609
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
 
3610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3611
else
 
3612
  cat >conftest.$ac_ext <<_ACEOF
 
3613
#line 3613 "configure"
 
3614
#include "confdefs.h"
 
3615
#include <dbmalloc.h>
 
3616
_ACEOF
 
3617
if { (eval echo "$as_me:3617: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3618
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3619
  ac_status=$?
 
3620
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3621
  rm -f conftest.er1
 
3622
  cat conftest.err >&5
 
3623
  echo "$as_me:3623: \$? = $ac_status" >&5
 
3624
  (exit $ac_status); } >/dev/null; then
 
3625
  if test -s conftest.err; then
 
3626
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3627
  else
 
3628
    ac_cpp_err=
 
3629
  fi
 
3630
else
 
3631
  ac_cpp_err=yes
 
3632
fi
 
3633
if test -z "$ac_cpp_err"; then
 
3634
  ac_cv_header_dbmalloc_h=yes
 
3635
else
 
3636
  echo "$as_me: failed program was:" >&5
 
3637
  cat conftest.$ac_ext >&5
 
3638
  ac_cv_header_dbmalloc_h=no
 
3639
fi
 
3640
rm -f conftest.err conftest.$ac_ext
 
3641
fi
 
3642
echo "$as_me:3642: result: $ac_cv_header_dbmalloc_h" >&5
 
3643
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
 
3644
if test $ac_cv_header_dbmalloc_h = yes; then
 
3645
 
 
3646
echo "$as_me:3646: checking for debug_malloc in -ldbmalloc" >&5
 
3647
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
 
3648
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
 
3649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3650
else
 
3651
  ac_check_lib_save_LIBS=$LIBS
 
3652
LIBS="-ldbmalloc  $LIBS"
 
3653
cat >conftest.$ac_ext <<_ACEOF
 
3654
#line 3654 "configure"
 
3655
#include "confdefs.h"
 
3656
 
 
3657
/* Override any gcc2 internal prototype to avoid an error.  */
 
3658
#ifdef __cplusplus
 
3659
extern "C"
 
3660
#endif
 
3661
/* We use char because int might match the return type of a gcc2
 
3662
   builtin and then its argument prototype would still apply.  */
 
3663
char debug_malloc ();
 
3664
int
 
3665
main ()
 
3666
{
 
3667
debug_malloc ();
 
3668
  ;
 
3669
  return 0;
 
3670
}
 
3671
_ACEOF
 
3672
rm -f conftest.$ac_objext conftest$ac_exeext
 
3673
if { (eval echo "$as_me:3673: \"$ac_link\"") >&5
 
3674
  (eval $ac_link) 2>&5
 
3675
  ac_status=$?
 
3676
  echo "$as_me:3676: \$? = $ac_status" >&5
 
3677
  (exit $ac_status); } &&
 
3678
         { ac_try='test -s conftest$ac_exeext'
 
3679
  { (eval echo "$as_me:3679: \"$ac_try\"") >&5
 
3680
  (eval $ac_try) 2>&5
 
3681
  ac_status=$?
 
3682
  echo "$as_me:3682: \$? = $ac_status" >&5
 
3683
  (exit $ac_status); }; }; then
 
3684
  ac_cv_lib_dbmalloc_debug_malloc=yes
 
3685
else
 
3686
  echo "$as_me: failed program was:" >&5
 
3687
cat conftest.$ac_ext >&5
 
3688
ac_cv_lib_dbmalloc_debug_malloc=no
 
3689
fi
 
3690
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3691
LIBS=$ac_check_lib_save_LIBS
 
3692
fi
 
3693
echo "$as_me:3693: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
 
3694
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
 
3695
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
 
3696
  cat >>confdefs.h <<EOF
 
3697
#define HAVE_LIBDBMALLOC 1
 
3698
EOF
 
3699
 
 
3700
  LIBS="-ldbmalloc $LIBS"
 
3701
 
 
3702
fi
 
3703
 
 
3704
fi
 
3705
 
 
3706
fi
 
3707
 
 
3708
echo "$as_me:3708: checking if you want to link with dmalloc for testing" >&5
 
3709
echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
1729
3710
 
1730
3711
# Check whether --with-dmalloc or --without-dmalloc was given.
1731
3712
if test "${with_dmalloc+set}" = set; then
1732
3713
  withval="$with_dmalloc"
1733
 
  
1734
 
        echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
1735
 
echo "configure:1736: checking for dmalloc_debug in -ldmalloc" >&5
1736
 
ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
1737
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738
 
  echo $ac_n "(cached) $ac_c" 1>&6
1739
 
else
1740
 
  ac_save_LIBS="$LIBS"
 
3714
  with_dmalloc=$withval
 
3715
else
 
3716
  with_dmalloc=no
 
3717
fi;
 
3718
echo "$as_me:3718: result: $with_dmalloc" >&5
 
3719
echo "${ECHO_T}$with_dmalloc" >&6
 
3720
if test "$with_dmalloc" = yes ; then
 
3721
        echo "$as_me:3721: checking for dmalloc.h" >&5
 
3722
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
 
3723
if test "${ac_cv_header_dmalloc_h+set}" = set; then
 
3724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3725
else
 
3726
  cat >conftest.$ac_ext <<_ACEOF
 
3727
#line 3727 "configure"
 
3728
#include "confdefs.h"
 
3729
#include <dmalloc.h>
 
3730
_ACEOF
 
3731
if { (eval echo "$as_me:3731: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3732
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3733
  ac_status=$?
 
3734
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3735
  rm -f conftest.er1
 
3736
  cat conftest.err >&5
 
3737
  echo "$as_me:3737: \$? = $ac_status" >&5
 
3738
  (exit $ac_status); } >/dev/null; then
 
3739
  if test -s conftest.err; then
 
3740
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3741
  else
 
3742
    ac_cpp_err=
 
3743
  fi
 
3744
else
 
3745
  ac_cpp_err=yes
 
3746
fi
 
3747
if test -z "$ac_cpp_err"; then
 
3748
  ac_cv_header_dmalloc_h=yes
 
3749
else
 
3750
  echo "$as_me: failed program was:" >&5
 
3751
  cat conftest.$ac_ext >&5
 
3752
  ac_cv_header_dmalloc_h=no
 
3753
fi
 
3754
rm -f conftest.err conftest.$ac_ext
 
3755
fi
 
3756
echo "$as_me:3756: result: $ac_cv_header_dmalloc_h" >&5
 
3757
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
 
3758
if test $ac_cv_header_dmalloc_h = yes; then
 
3759
 
 
3760
echo "$as_me:3760: checking for dmalloc_debug in -ldmalloc" >&5
 
3761
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
 
3762
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
 
3763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3764
else
 
3765
  ac_check_lib_save_LIBS=$LIBS
1741
3766
LIBS="-ldmalloc  $LIBS"
1742
 
cat > conftest.$ac_ext <<EOF
1743
 
#line 1744 "configure"
 
3767
cat >conftest.$ac_ext <<_ACEOF
 
3768
#line 3768 "configure"
1744
3769
#include "confdefs.h"
 
3770
 
1745
3771
/* Override any gcc2 internal prototype to avoid an error.  */
 
3772
#ifdef __cplusplus
 
3773
extern "C"
 
3774
#endif
1746
3775
/* We use char because int might match the return type of a gcc2
1747
 
    builtin and then its argument prototype would still apply.  */
1748
 
char dmalloc_debug();
1749
 
 
1750
 
int main() {
1751
 
dmalloc_debug()
1752
 
; return 0; }
1753
 
EOF
1754
 
if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1755
 
  rm -rf conftest*
1756
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3776
   builtin and then its argument prototype would still apply.  */
 
3777
char dmalloc_debug ();
 
3778
int
 
3779
main ()
 
3780
{
 
3781
dmalloc_debug ();
 
3782
  ;
 
3783
  return 0;
 
3784
}
 
3785
_ACEOF
 
3786
rm -f conftest.$ac_objext conftest$ac_exeext
 
3787
if { (eval echo "$as_me:3787: \"$ac_link\"") >&5
 
3788
  (eval $ac_link) 2>&5
 
3789
  ac_status=$?
 
3790
  echo "$as_me:3790: \$? = $ac_status" >&5
 
3791
  (exit $ac_status); } &&
 
3792
         { ac_try='test -s conftest$ac_exeext'
 
3793
  { (eval echo "$as_me:3793: \"$ac_try\"") >&5
 
3794
  (eval $ac_try) 2>&5
 
3795
  ac_status=$?
 
3796
  echo "$as_me:3796: \$? = $ac_status" >&5
 
3797
  (exit $ac_status); }; }; then
 
3798
  ac_cv_lib_dmalloc_dmalloc_debug=yes
1757
3799
else
1758
 
  echo "configure: failed program was:" >&5
1759
 
  cat conftest.$ac_ext >&5
1760
 
  rm -rf conftest*
1761
 
  eval "ac_cv_lib_$ac_lib_var=no"
1762
 
fi
1763
 
rm -f conftest*
1764
 
LIBS="$ac_save_LIBS"
1765
 
 
1766
 
fi
1767
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1768
 
  echo "$ac_t""yes" 1>&6
1769
 
    ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1770
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1771
 
  cat >> confdefs.h <<EOF
1772
 
#define $ac_tr_lib 1
 
3800
  echo "$as_me: failed program was:" >&5
 
3801
cat conftest.$ac_ext >&5
 
3802
ac_cv_lib_dmalloc_dmalloc_debug=no
 
3803
fi
 
3804
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3805
LIBS=$ac_check_lib_save_LIBS
 
3806
fi
 
3807
echo "$as_me:3807: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
 
3808
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
 
3809
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
 
3810
  cat >>confdefs.h <<EOF
 
3811
#define HAVE_LIBDMALLOC 1
1773
3812
EOF
1774
3813
 
1775
3814
  LIBS="-ldmalloc $LIBS"
1776
3815
 
1777
 
else
1778
 
  echo "$ac_t""no" 1>&6
1779
 
fi
1780
 
 
1781
 
fi
1782
 
 
1783
 
 
1784
 
# Check whether --with-dbmalloc or --without-dbmalloc was given.
1785
 
if test "${with_dbmalloc+set}" = set; then
1786
 
  withval="$with_dbmalloc"
1787
 
  
1788
 
        echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
1789
 
echo "configure:1790: checking for debug_malloc in -ldbmalloc" >&5
1790
 
ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
1791
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792
 
  echo $ac_n "(cached) $ac_c" 1>&6
1793
 
else
1794
 
  ac_save_LIBS="$LIBS"
1795
 
LIBS="-ldbmalloc  $LIBS"
1796
 
cat > conftest.$ac_ext <<EOF
1797
 
#line 1798 "configure"
1798
 
#include "confdefs.h"
1799
 
/* Override any gcc2 internal prototype to avoid an error.  */
1800
 
/* We use char because int might match the return type of a gcc2
1801
 
    builtin and then its argument prototype would still apply.  */
1802
 
char debug_malloc();
1803
 
 
1804
 
int main() {
1805
 
debug_malloc()
1806
 
; return 0; }
1807
 
EOF
1808
 
if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1809
 
  rm -rf conftest*
1810
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1811
 
else
1812
 
  echo "configure: failed program was:" >&5
1813
 
  cat conftest.$ac_ext >&5
1814
 
  rm -rf conftest*
1815
 
  eval "ac_cv_lib_$ac_lib_var=no"
1816
 
fi
1817
 
rm -f conftest*
1818
 
LIBS="$ac_save_LIBS"
1819
 
 
1820
 
fi
1821
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822
 
  echo "$ac_t""yes" 1>&6
1823
 
    ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1824
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1825
 
  cat >> confdefs.h <<EOF
1826
 
#define $ac_tr_lib 1
1827
 
EOF
1828
 
 
1829
 
  LIBS="-ldbmalloc $LIBS"
1830
 
 
1831
 
else
1832
 
  echo "$ac_t""no" 1>&6
1833
 
fi
1834
 
 
1835
 
fi
1836
 
 
 
3816
fi
 
3817
 
 
3818
fi
 
3819
 
 
3820
fi
1837
3821
 
1838
3822
echo setting other definitions
1839
 
cat >> confdefs.h <<EOF
 
3823
cat >>confdefs.h <<EOF
1840
3824
#define CPP "$CPP"
1841
3825
EOF
1842
3826
 
1843
 
 
1844
3827
###     output makefile and config.h
1845
 
trap '' 1 2 15
1846
 
cat > confcache <<\EOF
 
3828
ac_config_files="$ac_config_files Makefile"
 
3829
ac_config_commands="$ac_config_commands default"
 
3830
cat >confcache <<\_ACEOF
1847
3831
# This file is a shell script that caches the results of configure
1848
3832
# tests run on this system so they can be shared between configure
1849
 
# scripts and configure runs.  It is not useful on other systems.
1850
 
# If it contains results you don't want to keep, you may remove or edit it.
1851
 
#
1852
 
# By default, configure uses ./config.cache as the cache file,
1853
 
# creating it if it does not exist already.  You can give configure
1854
 
# the --cache-file=FILE option to use a different cache file; that is
1855
 
# what configure does when it calls configure scripts in
1856
 
# subdirectories, so they share the cache.
1857
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1858
 
# config.status only pays attention to the cache file if you give it the
1859
 
# --recheck option to rerun configure.
1860
 
#
1861
 
EOF
 
3833
# scripts and configure runs, see configure's option --config-cache.
 
3834
# It is not useful on other systems.  If it contains results you don't
 
3835
# want to keep, you may remove or edit it.
 
3836
#
 
3837
# config.status only pays attention to the cache file if you give it
 
3838
# the --recheck option to rerun configure.
 
3839
#
 
3840
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
3841
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3842
# following values.
 
3843
 
 
3844
_ACEOF
 
3845
 
1862
3846
# The following way of writing the cache mishandles newlines in values,
1863
3847
# but we know of no workaround that is simple, portable, and efficient.
1864
3848
# So, don't put newlines in cache variables' values.
1865
3849
# Ultrix sh set writes to stderr and can't be redirected directly,
1866
3850
# and sets the high bit in the cache file unless we assign to the vars.
1867
 
(set) 2>&1 |
1868
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1869
 
  *ac_space=\ *)
1870
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
1871
 
    # turns \\\\ into \\, and sed turns \\ into \).
1872
 
    sed -n \
1873
 
      -e "s/'/'\\\\''/g" \
1874
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1875
 
    ;;
1876
 
  *)
1877
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1878
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1879
 
    ;;
1880
 
  esac >> confcache
1881
 
if cmp -s $cache_file confcache; then
1882
 
  :
1883
 
else
 
3851
{
 
3852
  (set) 2>&1 |
 
3853
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3854
    *ac_space=\ *)
 
3855
      # `set' does not quote correctly, so add quotes (double-quote
 
3856
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3857
      sed -n \
 
3858
        "s/'/'\\\\''/g;
 
3859
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3860
      ;;
 
3861
    *)
 
3862
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3863
      sed -n \
 
3864
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3865
      ;;
 
3866
    esac;
 
3867
} |
 
3868
  sed '
 
3869
     t clear
 
3870
     : clear
 
3871
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3872
     t end
 
3873
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3874
     : end' >>confcache
 
3875
if cmp -s $cache_file confcache; then :; else
1884
3876
  if test -w $cache_file; then
1885
 
    echo "updating cache $cache_file"
1886
 
    cat confcache > $cache_file
 
3877
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3878
    cat confcache >$cache_file
1887
3879
  else
1888
3880
    echo "not updating unwritable cache $cache_file"
1889
3881
  fi
1890
3882
fi
1891
3883
rm -f confcache
1892
3884
 
1893
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1894
 
 
1895
3885
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1896
3886
# Let make expand exec_prefix.
1897
3887
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1898
3888
 
1899
 
# Any assignment to VPATH causes Sun make to only execute
1900
 
# the first set of double-colon rules, so remove it if not needed.
1901
 
# If there is a colon in the path, we need to keep it.
 
3889
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
3890
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
3891
# trailing colons and then remove the whole line if VPATH becomes empty
 
3892
# (actually we leave an empty line to preserve line numbers).
1902
3893
if test "x$srcdir" = x.; then
1903
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
3894
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
3895
s/:*\$(srcdir):*/:/;
 
3896
s/:*\${srcdir}:*/:/;
 
3897
s/:*@srcdir@:*/:/;
 
3898
s/^\([^=]*=[    ]*\):*/\1/;
 
3899
s/:*$//;
 
3900
s/^[^=]*=[      ]*$//;
 
3901
}'
1904
3902
fi
1905
3903
 
1906
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1907
 
 
1908
 
 
1909
 
# Transform confdefs.h into DEFS.
1910
 
# Protect against shell expansion while executing Makefile rules.
1911
 
# Protect against Makefile macro expansion.
1912
 
cat > conftest.defs <<\EOF
1913
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1914
 
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1915
 
s%\[%\\&%g
1916
 
s%\]%\\&%g
1917
 
s%\$%$$%g
1918
 
EOF
1919
 
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1920
 
rm -f conftest.defs
1921
 
 
1922
 
 
1923
 
# Without the "./", some shells look in PATH for config.status.
 
3904
DEFS=-DHAVE_CONFIG_H
 
3905
 
1924
3906
: ${CONFIG_STATUS=./config.status}
1925
 
 
1926
 
echo creating $CONFIG_STATUS
1927
 
rm -f $CONFIG_STATUS
1928
 
cat > $CONFIG_STATUS <<EOF
1929
 
#! /bin/sh
 
3907
ac_clean_files_save=$ac_clean_files
 
3908
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
3909
{ echo "$as_me:3909: creating $CONFIG_STATUS" >&5
 
3910
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
3911
cat >$CONFIG_STATUS <<_ACEOF
 
3912
#! $SHELL
1930
3913
# Generated automatically by configure.
1931
3914
# Run this file to recreate the current configuration.
1932
 
# This directory was configured as follows,
1933
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1934
 
#
1935
 
# $0 $ac_configure_args
1936
 
#
1937
3915
# Compiler output produced by configure, useful for debugging
1938
 
# configure, is in ./config.log if it exists.
1939
 
 
1940
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1941
 
for ac_option
 
3916
# configure, is in config.log if it exists.
 
3917
 
 
3918
debug=false
 
3919
SHELL=\${CONFIG_SHELL-$SHELL}
 
3920
ac_cs_invocation="\$0 \$@"
 
3921
 
 
3922
_ACEOF
 
3923
 
 
3924
cat >>$CONFIG_STATUS <<\_ACEOF
 
3925
# Be Bourne compatible
 
3926
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
3927
  emulate sh
 
3928
  NULLCMD=:
 
3929
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
3930
  set -o posix
 
3931
fi
 
3932
 
 
3933
# Name of the executable.
 
3934
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
3935
 
 
3936
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3937
  as_expr=expr
 
3938
else
 
3939
  as_expr=false
 
3940
fi
 
3941
 
 
3942
rm -f conf$$ conf$$.exe conf$$.file
 
3943
echo >conf$$.file
 
3944
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
3945
  # We could just check for DJGPP; but this test a) works b) is more generic
 
3946
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
3947
  if test -f conf$$.exe; then
 
3948
    # Don't use ln at all; we don't have any links
 
3949
    as_ln_s='cp -p'
 
3950
  else
 
3951
    as_ln_s='ln -s'
 
3952
  fi
 
3953
elif ln conf$$.file conf$$ 2>/dev/null; then
 
3954
  as_ln_s=ln
 
3955
else
 
3956
  as_ln_s='cp -p'
 
3957
fi
 
3958
rm -f conf$$ conf$$.exe conf$$.file
 
3959
 
 
3960
as_executable_p="test -f"
 
3961
 
 
3962
# Support unset when possible.
 
3963
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
3964
  as_unset=unset
 
3965
else
 
3966
  as_unset=false
 
3967
fi
 
3968
 
 
3969
# NLS nuisances.
 
3970
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
3971
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
3972
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
3973
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
3974
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
3975
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
3976
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
3977
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
3978
 
 
3979
# IFS
 
3980
# We need space, tab and new line, in precisely that order.
 
3981
as_nl='
 
3982
'
 
3983
IFS="   $as_nl"
 
3984
 
 
3985
# CDPATH.
 
3986
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
3987
 
 
3988
exec 6>&1
 
3989
 
 
3990
_ACEOF
 
3991
 
 
3992
# Files that config.status was made for.
 
3993
if test -n "$ac_config_files"; then
 
3994
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
3995
fi
 
3996
 
 
3997
if test -n "$ac_config_headers"; then
 
3998
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
3999
fi
 
4000
 
 
4001
if test -n "$ac_config_links"; then
 
4002
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
4003
fi
 
4004
 
 
4005
if test -n "$ac_config_commands"; then
 
4006
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
4007
fi
 
4008
 
 
4009
cat >>$CONFIG_STATUS <<\EOF
 
4010
 
 
4011
ac_cs_usage="\
 
4012
\`$as_me' instantiates files from templates according to the
 
4013
current configuration.
 
4014
 
 
4015
Usage: $0 [OPTIONS] [FILE]...
 
4016
 
 
4017
  -h, --help       print this help, then exit
 
4018
  -V, --version    print version number, then exit
 
4019
  -d, --debug      don't remove temporary files
 
4020
      --recheck    update $as_me by reconfiguring in the same conditions
 
4021
  --file=FILE[:TEMPLATE]
 
4022
                   instantiate the configuration file FILE
 
4023
  --header=FILE[:TEMPLATE]
 
4024
                   instantiate the configuration header FILE
 
4025
 
 
4026
Configuration files:
 
4027
$config_files
 
4028
 
 
4029
Configuration headers:
 
4030
$config_headers
 
4031
 
 
4032
Configuration commands:
 
4033
$config_commands
 
4034
 
 
4035
Report bugs to <bug-autoconf@gnu.org>."
 
4036
EOF
 
4037
 
 
4038
cat >>$CONFIG_STATUS <<EOF
 
4039
ac_cs_version="\\
 
4040
config.status
 
4041
configured by $0, generated by GNU Autoconf 2.52.20030208,
 
4042
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4043
 
 
4044
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
4045
Free Software Foundation, Inc.
 
4046
This config.status script is free software; the Free Software Foundation
 
4047
gives unlimited permission to copy, distribute and modify it."
 
4048
srcdir=$srcdir
 
4049
INSTALL="$INSTALL"
 
4050
EOF
 
4051
 
 
4052
cat >>$CONFIG_STATUS <<\EOF
 
4053
# If no file are specified by the user, then we need to provide default
 
4054
# value.  By we need to know if files were specified by the user.
 
4055
ac_need_defaults=:
 
4056
while test $# != 0
1942
4057
do
1943
 
  case "\$ac_option" in
 
4058
  case $1 in
 
4059
  --*=*)
 
4060
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
4061
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4062
    shift
 
4063
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
4064
    shift
 
4065
    ;;
 
4066
  -*);;
 
4067
  *) # This is not an option, so the user has probably given explicit
 
4068
     # arguments.
 
4069
     ac_need_defaults=false;;
 
4070
  esac
 
4071
 
 
4072
  case $1 in
 
4073
  # Handling of the options.
 
4074
EOF
 
4075
cat >>$CONFIG_STATUS <<EOF
1944
4076
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1945
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1946
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1947
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1948
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13.19990117"
1949
 
    exit 0 ;;
1950
 
  -help | --help | --hel | --he | --h)
1951
 
    echo "\$ac_cs_usage"; exit 0 ;;
1952
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
1953
 
  esac
1954
 
done
1955
 
 
1956
 
ac_given_srcdir=$srcdir
1957
 
ac_given_INSTALL="$INSTALL"
1958
 
 
1959
 
trap 'rm -fr `echo "Makefile config_h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1960
 
EOF
1961
 
cat >> $CONFIG_STATUS <<EOF
1962
 
 
1963
 
# Protect against being on the right side of a sed subst in config.status.
1964
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1965
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1966
 
$ac_vpsub
1967
 
$extrasub
1968
 
s%@SHELL@%$SHELL%g
1969
 
s%@CFLAGS@%$CFLAGS%g
1970
 
s%@CPPFLAGS@%$CPPFLAGS%g
1971
 
s%@CXXFLAGS@%$CXXFLAGS%g
1972
 
s%@FFLAGS@%$FFLAGS%g
1973
 
s%@DEFS@%$DEFS%g
1974
 
s%@LDFLAGS@%$LDFLAGS%g
1975
 
s%@LIBS@%$LIBS%g
1976
 
s%@exec_prefix@%$exec_prefix%g
1977
 
s%@prefix@%$prefix%g
1978
 
s%@program_transform_name@%$program_transform_name%g
1979
 
s%@bindir@%$bindir%g
1980
 
s%@sbindir@%$sbindir%g
1981
 
s%@libexecdir@%$libexecdir%g
1982
 
s%@datadir@%$datadir%g
1983
 
s%@sysconfdir@%$sysconfdir%g
1984
 
s%@sharedstatedir@%$sharedstatedir%g
1985
 
s%@localstatedir@%$localstatedir%g
1986
 
s%@libdir@%$libdir%g
1987
 
s%@includedir@%$includedir%g
1988
 
s%@oldincludedir@%$oldincludedir%g
1989
 
s%@infodir@%$infodir%g
1990
 
s%@mandir@%$mandir%g
1991
 
s%@CC@%$CC%g
1992
 
s%@CPP@%$CPP%g
1993
 
s%@LEX@%$LEX%g
1994
 
s%@LEXLIB@%$LEXLIB%g
1995
 
s%@SET_MAKE@%$SET_MAKE%g
1996
 
s%@YACC@%$YACC%g
1997
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1998
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1999
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
2000
 
s%@LINT@%$LINT%g
2001
 
s%@EXTRA_OBJS@%$EXTRA_OBJS%g
2002
 
 
 
4077
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
4078
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
4079
EOF
 
4080
cat >>$CONFIG_STATUS <<\EOF
 
4081
  --version | --vers* | -V )
 
4082
    echo "$ac_cs_version"; exit 0 ;;
 
4083
  --he | --h)
 
4084
    # Conflict between --help and --header
 
4085
    { { echo "$as_me:4085: error: ambiguous option: $1
 
4086
Try \`$0 --help' for more information." >&5
 
4087
echo "$as_me: error: ambiguous option: $1
 
4088
Try \`$0 --help' for more information." >&2;}
 
4089
   { (exit 1); exit 1; }; };;
 
4090
  --help | --hel | -h )
 
4091
    echo "$ac_cs_usage"; exit 0 ;;
 
4092
  --debug | --d* | -d )
 
4093
    debug=: ;;
 
4094
  --file | --fil | --fi | --f )
 
4095
    shift
 
4096
    CONFIG_FILES="$CONFIG_FILES $1"
 
4097
    ac_need_defaults=false;;
 
4098
  --header | --heade | --head | --hea )
 
4099
    shift
 
4100
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
4101
    ac_need_defaults=false;;
 
4102
 
 
4103
  # This is an error.
 
4104
  -*) { { echo "$as_me:4104: error: unrecognized option: $1
 
4105
Try \`$0 --help' for more information." >&5
 
4106
echo "$as_me: error: unrecognized option: $1
 
4107
Try \`$0 --help' for more information." >&2;}
 
4108
   { (exit 1); exit 1; }; } ;;
 
4109
 
 
4110
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4111
 
 
4112
  esac
 
4113
  shift
 
4114
done
 
4115
 
 
4116
exec 5>>config.log
 
4117
cat >&5 << _ACEOF
 
4118
 
 
4119
## ----------------------- ##
 
4120
## Running config.status.  ##
 
4121
## ----------------------- ##
 
4122
 
 
4123
This file was extended by $as_me 2.52.20030208, executed with
 
4124
  CONFIG_FILES    = $CONFIG_FILES
 
4125
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4126
  CONFIG_LINKS    = $CONFIG_LINKS
 
4127
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4128
  > $ac_cs_invocation
 
4129
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
4130
 
 
4131
_ACEOF
 
4132
EOF
 
4133
 
 
4134
cat >>$CONFIG_STATUS <<\EOF
 
4135
for ac_config_target in $ac_config_targets
 
4136
do
 
4137
  case "$ac_config_target" in
 
4138
  # Handling of arguments.
 
4139
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4140
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
4141
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
 
4142
  *) { { echo "$as_me:4142: error: invalid argument: $ac_config_target" >&5
 
4143
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
4144
   { (exit 1); exit 1; }; };;
 
4145
  esac
 
4146
done
 
4147
 
 
4148
# If the user did not use the arguments to specify the items to instantiate,
 
4149
# then the envvar interface is used.  Set only those that are not.
 
4150
# We use the long form for the default assignment because of an extremely
 
4151
# bizarre bug on SunOS 4.1.3.
 
4152
if $ac_need_defaults; then
 
4153
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
4154
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
4155
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
4156
fi
 
4157
 
 
4158
# Create a temporary directory, and hook for its removal unless debugging.
 
4159
$debug ||
 
4160
{
 
4161
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4162
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4163
}
 
4164
 
 
4165
# Create a (secure) tmp directory for tmp files.
 
4166
: ${TMPDIR=/tmp}
 
4167
{
 
4168
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
4169
  test -n "$tmp" && test -d "$tmp"
 
4170
}  ||
 
4171
{
 
4172
  tmp=$TMPDIR/cs$$-$RANDOM
 
4173
  (umask 077 && mkdir $tmp)
 
4174
} ||
 
4175
{
 
4176
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
4177
   { (exit 1); exit 1; }
 
4178
}
 
4179
 
 
4180
EOF
 
4181
 
 
4182
cat >>$CONFIG_STATUS <<EOF
 
4183
 
 
4184
#
 
4185
# CONFIG_FILES section.
 
4186
#
 
4187
 
 
4188
# No need to generate the scripts if there are no CONFIG_FILES.
 
4189
# This happens for instance when ./config.status config.h
 
4190
if test -n "\$CONFIG_FILES"; then
 
4191
  # Protect against being on the right side of a sed subst in config.status.
 
4192
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
4193
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
4194
s,@SHELL@,$SHELL,;t t
 
4195
s,@exec_prefix@,$exec_prefix,;t t
 
4196
s,@prefix@,$prefix,;t t
 
4197
s,@program_transform_name@,$program_transform_name,;t t
 
4198
s,@bindir@,$bindir,;t t
 
4199
s,@sbindir@,$sbindir,;t t
 
4200
s,@libexecdir@,$libexecdir,;t t
 
4201
s,@datadir@,$datadir,;t t
 
4202
s,@sysconfdir@,$sysconfdir,;t t
 
4203
s,@sharedstatedir@,$sharedstatedir,;t t
 
4204
s,@localstatedir@,$localstatedir,;t t
 
4205
s,@libdir@,$libdir,;t t
 
4206
s,@includedir@,$includedir,;t t
 
4207
s,@oldincludedir@,$oldincludedir,;t t
 
4208
s,@infodir@,$infodir,;t t
 
4209
s,@mandir@,$mandir,;t t
 
4210
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
4211
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
4212
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
4213
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
4214
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
4215
s,@build_alias@,$build_alias,;t t
 
4216
s,@host_alias@,$host_alias,;t t
 
4217
s,@target_alias@,$target_alias,;t t
 
4218
s,@ECHO_C@,$ECHO_C,;t t
 
4219
s,@ECHO_N@,$ECHO_N,;t t
 
4220
s,@ECHO_T@,$ECHO_T,;t t
 
4221
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
4222
s,@DEFS@,$DEFS,;t t
 
4223
s,@LIBS@,$LIBS,;t t
 
4224
s,@CC@,$CC,;t t
 
4225
s,@CFLAGS@,$CFLAGS,;t t
 
4226
s,@LDFLAGS@,$LDFLAGS,;t t
 
4227
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
4228
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
4229
s,@EXEEXT@,$EXEEXT,;t t
 
4230
s,@OBJEXT@,$OBJEXT,;t t
 
4231
s,@CPP@,$CPP,;t t
 
4232
s,@LEX@,$LEX,;t t
 
4233
s,@LEXLIB@,$LEXLIB,;t t
 
4234
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 
4235
s,@SET_MAKE@,$SET_MAKE,;t t
 
4236
s,@YACC@,$YACC,;t t
 
4237
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
4238
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
4239
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
4240
s,@LINT@,$LINT,;t t
 
4241
s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
 
4242
s,@ECHO_LT@,$ECHO_LT,;t t
 
4243
s,@ECHO_LD@,$ECHO_LD,;t t
 
4244
s,@RULE_CC@,$RULE_CC,;t t
 
4245
s,@SHOW_CC@,$SHOW_CC,;t t
 
4246
s,@ECHO_CC@,$ECHO_CC,;t t
 
4247
s,@EXTRA_OBJS@,$EXTRA_OBJS,;t t
2003
4248
CEOF
2004
 
EOF
2005
 
 
2006
 
cat >> $CONFIG_STATUS <<\EOF
2007
 
 
2008
 
# Split the substitutions into bite-sized pieces for seds with
2009
 
# small command number limits, like on Digital OSF/1 and HP-UX.
2010
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2011
 
ac_file=1 # Number of current file.
2012
 
ac_beg=1 # First line for current file.
2013
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2014
 
ac_more_lines=:
2015
 
ac_sed_cmds=""
2016
 
while $ac_more_lines; do
2017
 
  if test $ac_beg -gt 1; then
2018
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2019
 
  else
2020
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2021
 
  fi
2022
 
  if test ! -s conftest.s$ac_file; then
2023
 
    ac_more_lines=false
2024
 
    rm -f conftest.s$ac_file
2025
 
  else
2026
 
    if test -z "$ac_sed_cmds"; then
2027
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
2028
 
    else
2029
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2030
 
    fi
2031
 
    ac_file=`expr $ac_file + 1`
2032
 
    ac_beg=$ac_end
2033
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2034
 
  fi
2035
 
done
2036
 
if test -z "$ac_sed_cmds"; then
2037
 
  ac_sed_cmds=cat
2038
 
fi
2039
 
EOF
2040
 
 
2041
 
cat >> $CONFIG_STATUS <<EOF
2042
 
 
2043
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile config_h"}
2044
 
EOF
2045
 
cat >> $CONFIG_STATUS <<\EOF
2046
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
4249
 
 
4250
EOF
 
4251
 
 
4252
  cat >>$CONFIG_STATUS <<\EOF
 
4253
  # Split the substitutions into bite-sized pieces for seds with
 
4254
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
4255
  ac_max_sed_lines=48
 
4256
  ac_sed_frag=1 # Number of current file.
 
4257
  ac_beg=1 # First line for current file.
 
4258
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
4259
  ac_more_lines=:
 
4260
  ac_sed_cmds=
 
4261
  while $ac_more_lines; do
 
4262
    if test $ac_beg -gt 1; then
 
4263
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4264
    else
 
4265
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4266
    fi
 
4267
    if test ! -s $tmp/subs.frag; then
 
4268
      ac_more_lines=false
 
4269
    else
 
4270
      # The purpose of the label and of the branching condition is to
 
4271
      # speed up the sed processing (if there are no `@' at all, there
 
4272
      # is no need to browse any of the substitutions).
 
4273
      # These are the two extra sed commands mentioned above.
 
4274
      (echo ':t
 
4275
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
4276
      if test -z "$ac_sed_cmds"; then
 
4277
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
4278
      else
 
4279
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
4280
      fi
 
4281
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
4282
      ac_beg=$ac_end
 
4283
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
4284
    fi
 
4285
  done
 
4286
  if test -z "$ac_sed_cmds"; then
 
4287
    ac_sed_cmds=cat
 
4288
  fi
 
4289
fi # test -n "$CONFIG_FILES"
 
4290
 
 
4291
EOF
 
4292
cat >>$CONFIG_STATUS <<\EOF
 
4293
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2047
4294
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2048
 
  case "$ac_file" in
2049
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2050
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2051
 
  *) ac_file_in="${ac_file}.in" ;;
 
4295
  case $ac_file in
 
4296
  - | *:- | *:-:* ) # input from stdin
 
4297
        cat >$tmp/stdin
 
4298
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4299
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4300
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4301
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4302
  * )   ac_file_in=$ac_file.in ;;
2052
4303
  esac
2053
4304
 
2054
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2055
 
 
2056
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
2057
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
4305
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
4306
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4307
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4308
         X"$ac_file" : 'X\(//\)$' \| \
 
4309
         X"$ac_file" : 'X\(/\)' \| \
 
4310
         .     : '\(.\)' 2>/dev/null ||
 
4311
echo X"$ac_file" |
 
4312
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4313
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4314
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4315
          /^X\(\/\).*/{ s//\1/; q; }
 
4316
          s/.*/./; q'`
2058
4317
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2059
 
    # The file is in a subdirectory.
2060
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2061
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
4318
    { case "$ac_dir" in
 
4319
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
4320
  *)                      as_incr_dir=.;;
 
4321
esac
 
4322
as_dummy="$ac_dir"
 
4323
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
4324
  case $as_mkdir_dir in
 
4325
    # Skip DOS drivespec
 
4326
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
4327
    *)
 
4328
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
4329
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
4330
    ;;
 
4331
  esac
 
4332
done; }
 
4333
 
 
4334
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2062
4335
    # A "../" for each directory in $ac_dir_suffix.
2063
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
4336
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2064
4337
  else
2065
4338
    ac_dir_suffix= ac_dots=
2066
4339
  fi
2067
4340
 
2068
 
  case "$ac_given_srcdir" in
2069
 
  .)  srcdir=.
2070
 
      if test -z "$ac_dots"; then top_srcdir=.
2071
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2072
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
4341
  case $srcdir in
 
4342
  .)  ac_srcdir=.
 
4343
      if test -z "$ac_dots"; then
 
4344
         ac_top_srcdir=.
 
4345
      else
 
4346
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
 
4347
      fi ;;
 
4348
  [\\/]* | ?:[\\/]* )
 
4349
      ac_srcdir=$srcdir$ac_dir_suffix;
 
4350
      ac_top_srcdir=$srcdir ;;
2073
4351
  *) # Relative path.
2074
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2075
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2076
 
  esac
2077
 
 
2078
 
  case "$ac_given_INSTALL" in
2079
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2080
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2081
 
  esac
2082
 
 
2083
 
  echo creating "$ac_file"
2084
 
  rm -f "$ac_file"
2085
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2086
 
  case "$ac_file" in
2087
 
  *Makefile*) ac_comsub="1i\\
2088
 
# $configure_input" ;;
2089
 
  *) ac_comsub= ;;
2090
 
  esac
2091
 
 
2092
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2093
 
  sed -e "$ac_comsub
2094
 
s%@configure_input@%$configure_input%g
2095
 
s%@srcdir@%$srcdir%g
2096
 
s%@top_srcdir@%$top_srcdir%g
2097
 
s%@INSTALL@%$INSTALL%g
2098
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2099
 
fi; done
2100
 
rm -f conftest.s*
2101
 
 
2102
 
EOF
2103
 
cat >> $CONFIG_STATUS <<EOF
2104
 
# Extra initialization commands, if any
2105
 
 
2106
 
EOF
2107
 
cat >> $CONFIG_STATUS <<\EOF
2108
 
# Extra commands, if any
2109
 
 
2110
 
echo creating config.h
2111
 
sed     -e '/^# /d' \
2112
 
        -e 's/ -D/\
2113
 
#define /g' \
2114
 
        -e 's/\(#define [A-Za-z_][A-Za-z0-9_]*\)=/\1    /g' \
2115
 
        -e 's/\\//g' \
2116
 
        config_h >config.h
2117
 
 
2118
 
echo removing config_h
2119
 
rm config_h
2120
 
 
2121
 
exit 0
 
4352
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
 
4353
    ac_top_srcdir=$ac_dots$srcdir ;;
 
4354
  esac
 
4355
 
 
4356
  case $INSTALL in
 
4357
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
4358
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
4359
  esac
 
4360
 
 
4361
  if test x"$ac_file" != x-; then
 
4362
    { echo "$as_me:4362: creating $ac_file" >&5
 
4363
echo "$as_me: creating $ac_file" >&6;}
 
4364
    rm -f "$ac_file"
 
4365
  fi
 
4366
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4367
  # use $as_me), people would be surprised to read:
 
4368
  #    /* config.h.  Generated automatically by config.status.  */
 
4369
  configure_input="Generated automatically from `echo $ac_file_in |
 
4370
                                                 sed 's,.*/,,'` by configure."
 
4371
 
 
4372
  # First look for the input files in the build tree, otherwise in the
 
4373
  # src tree.
 
4374
  ac_file_inputs=`IFS=:
 
4375
    for f in $ac_file_in; do
 
4376
      case $f in
 
4377
      -) echo $tmp/stdin ;;
 
4378
      [\\/$]*)
 
4379
         # Absolute (can't be DOS-style, as IFS=:)
 
4380
         test -f "$f" || { { echo "$as_me:4380: error: cannot find input file: $f" >&5
 
4381
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4382
   { (exit 1); exit 1; }; }
 
4383
         echo $f;;
 
4384
      *) # Relative
 
4385
         if test -f "$f"; then
 
4386
           # Build tree
 
4387
           echo $f
 
4388
         elif test -f "$srcdir/$f"; then
 
4389
           # Source tree
 
4390
           echo $srcdir/$f
 
4391
         else
 
4392
           # /dev/null tree
 
4393
           { { echo "$as_me:4393: error: cannot find input file: $f" >&5
 
4394
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4395
   { (exit 1); exit 1; }; }
 
4396
         fi;;
 
4397
      esac
 
4398
    done` || { (exit 1); exit 1; }
 
4399
EOF
 
4400
cat >>$CONFIG_STATUS <<EOF
 
4401
  sed "$ac_vpsub
 
4402
$extrasub
 
4403
EOF
 
4404
cat >>$CONFIG_STATUS <<\EOF
 
4405
:t
 
4406
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
4407
s,@configure_input@,$configure_input,;t t
 
4408
s,@srcdir@,$ac_srcdir,;t t
 
4409
s,@top_srcdir@,$ac_top_srcdir,;t t
 
4410
s,@INSTALL@,$ac_INSTALL,;t t
 
4411
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
4412
  rm -f $tmp/stdin
 
4413
  if test x"$ac_file" != x-; then
 
4414
    mv $tmp/out $ac_file
 
4415
  else
 
4416
    cat $tmp/out
 
4417
    rm -f $tmp/out
 
4418
  fi
 
4419
 
 
4420
done
 
4421
EOF
 
4422
cat >>$CONFIG_STATUS <<\EOF
 
4423
 
 
4424
#
 
4425
# CONFIG_HEADER section.
 
4426
#
 
4427
 
 
4428
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
4429
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
4430
#
 
4431
# ac_d sets the value in "#define NAME VALUE" lines.
 
4432
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
4433
ac_dB='[        ].*$,\1#\2'
 
4434
ac_dC=' '
 
4435
ac_dD=',;t'
 
4436
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
4437
ac_iA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4438
ac_iB='\([      ]\),\1#\2define\3'
 
4439
ac_iC=' '
 
4440
ac_iD='\4,;t'
 
4441
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
4442
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4443
ac_uB='$,\1#\2define\3'
 
4444
ac_uC=' '
 
4445
ac_uD=',;t'
 
4446
 
 
4447
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
4448
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4449
  case $ac_file in
 
4450
  - | *:- | *:-:* ) # input from stdin
 
4451
        cat >$tmp/stdin
 
4452
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4453
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4454
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4455
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4456
  * )   ac_file_in=$ac_file.in ;;
 
4457
  esac
 
4458
 
 
4459
  test x"$ac_file" != x- && { echo "$as_me:4459: creating $ac_file" >&5
 
4460
echo "$as_me: creating $ac_file" >&6;}
 
4461
 
 
4462
  # First look for the input files in the build tree, otherwise in the
 
4463
  # src tree.
 
4464
  ac_file_inputs=`IFS=:
 
4465
    for f in $ac_file_in; do
 
4466
      case $f in
 
4467
      -) echo $tmp/stdin ;;
 
4468
      [\\/$]*)
 
4469
         # Absolute (can't be DOS-style, as IFS=:)
 
4470
         test -f "$f" || { { echo "$as_me:4470: error: cannot find input file: $f" >&5
 
4471
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4472
   { (exit 1); exit 1; }; }
 
4473
         echo $f;;
 
4474
      *) # Relative
 
4475
         if test -f "$f"; then
 
4476
           # Build tree
 
4477
           echo $f
 
4478
         elif test -f "$srcdir/$f"; then
 
4479
           # Source tree
 
4480
           echo $srcdir/$f
 
4481
         else
 
4482
           # /dev/null tree
 
4483
           { { echo "$as_me:4483: error: cannot find input file: $f" >&5
 
4484
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4485
   { (exit 1); exit 1; }; }
 
4486
         fi;;
 
4487
      esac
 
4488
    done` || { (exit 1); exit 1; }
 
4489
  # Remove the trailing spaces.
 
4490
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
4491
 
 
4492
EOF
 
4493
 
 
4494
# Transform confdefs.h into a list of #define's.  We won't use it as a sed
 
4495
# script, but as data to insert where we see @DEFS@.  We expect AC_SAVE_DEFS to
 
4496
# be either 'cat' or 'sort'.
 
4497
sort confdefs.h | uniq >conftest.vals
 
4498
 
 
4499
# Break up conftest.vals because some shells have a limit on
 
4500
# the size of here documents, and old seds have small limits too.
 
4501
 
 
4502
rm -f conftest.tail
 
4503
echo '  rm -f conftest.frag' >> $CONFIG_STATUS
 
4504
while grep . conftest.vals >/dev/null
 
4505
do
 
4506
  # Write chunks of a limited-size here document to conftest.frag.
 
4507
  echo '  cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
 
4508
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
4509
  echo 'CEOF' >> $CONFIG_STATUS
 
4510
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
4511
  rm -f conftest.vals
 
4512
  mv conftest.tail conftest.vals
 
4513
done
 
4514
rm -f conftest.vals
 
4515
 
 
4516
# Run sed to substitute the contents of conftest.frag into $tmp/in at the
 
4517
# marker @DEFS@.
 
4518
echo '  cat >> conftest.edit <<CEOF
 
4519
/@DEFS@/r conftest.frag
 
4520
/@DEFS@/d
 
4521
CEOF
 
4522
sed -f conftest.edit $tmp/in > $tmp/out
 
4523
rm -f $tmp/in
 
4524
mv $tmp/out $tmp/in
 
4525
rm -f conftest.edit conftest.frag
 
4526
' >> $CONFIG_STATUS
 
4527
 
 
4528
cat >>$CONFIG_STATUS <<\EOF
 
4529
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4530
  # use $as_me), people would be surprised to read:
 
4531
  #    /* config.h.  Generated automatically by config.status.  */
 
4532
  if test x"$ac_file" = x-; then
 
4533
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
4534
  else
 
4535
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
4536
  fi
 
4537
  cat $tmp/in >>$tmp/config.h
 
4538
  rm -f $tmp/in
 
4539
  if test x"$ac_file" != x-; then
 
4540
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
4541
      { echo "$as_me:4541: $ac_file is unchanged" >&5
 
4542
echo "$as_me: $ac_file is unchanged" >&6;}
 
4543
    else
 
4544
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4545
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4546
         X"$ac_file" : 'X\(//\)$' \| \
 
4547
         X"$ac_file" : 'X\(/\)' \| \
 
4548
         .     : '\(.\)' 2>/dev/null ||
 
4549
echo X"$ac_file" |
 
4550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4551
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4552
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4553
          /^X\(\/\).*/{ s//\1/; q; }
 
4554
          s/.*/./; q'`
 
4555
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
4556
        { case "$ac_dir" in
 
4557
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
4558
  *)                      as_incr_dir=.;;
 
4559
esac
 
4560
as_dummy="$ac_dir"
 
4561
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
4562
  case $as_mkdir_dir in
 
4563
    # Skip DOS drivespec
 
4564
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
4565
    *)
 
4566
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
4567
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
4568
    ;;
 
4569
  esac
 
4570
done; }
 
4571
 
 
4572
      fi
 
4573
      rm -f $ac_file
 
4574
      mv $tmp/config.h $ac_file
 
4575
    fi
 
4576
  else
 
4577
    cat $tmp/config.h
 
4578
    rm -f $tmp/config.h
 
4579
  fi
 
4580
done
 
4581
EOF
 
4582
cat >>$CONFIG_STATUS <<\EOF
 
4583
 
 
4584
#
 
4585
# CONFIG_COMMANDS section.
 
4586
#
 
4587
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
4588
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
4589
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4590
 
 
4591
  case $ac_dest in
 
4592
  esac
 
4593
done
 
4594
EOF
 
4595
 
 
4596
cat >>$CONFIG_STATUS <<\EOF
 
4597
 
 
4598
{ (exit 0); exit 0; }
2122
4599
EOF
2123
4600
chmod +x $CONFIG_STATUS
2124
 
rm -fr confdefs* $ac_clean_files
2125
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2126
 
 
2127
 
touch stamp-h
 
4601
ac_clean_files=$ac_clean_files_save
 
4602
 
 
4603
# configure is writing to config.log, and then calls config.status.
 
4604
# config.status does its own redirection, appending to config.log.
 
4605
# Unfortunately, on DOS this fails, as config.log is still kept open
 
4606
# by configure, so config.status won't be able to write to it; its
 
4607
# output is simply discarded.  So we exec the FD to /dev/null,
 
4608
# effectively closing config.log, so it can be properly (re)opened and
 
4609
# appended to by config.status.  When coming back to configure, we
 
4610
# need to make the FD available again.
 
4611
if test "$no_create" != yes; then
 
4612
  ac_cs_success=:
 
4613
  exec 5>/dev/null
 
4614
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
4615
  exec 5>>config.log
 
4616
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
4617
  # would make configure fail if this is the last instruction.
 
4618
  $ac_cs_success || { (exit 1); exit 1; }
 
4619
fi
 
4620