~ubuntu-branches/ubuntu/saucy/ng/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2008-07-17 08:10:34 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080717081034-s7iitiihm9hl4jjg
Tags: 1.5~beta1-3
Bumped to Standards-Version: 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# From configure.in Revision: 1.7.2.1 
 
4
# Guess values for system-dependent variables and create Makefiles.
 
5
# Generated automatically using autoconf version 2.13 
 
6
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
7
#
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
 
 
11
# Defaults:
 
12
ac_help=
 
13
ac_default_prefix=/usr/local
 
14
# Any additions from configure.in:
 
15
ac_help="$ac_help
 
16
  --with-terminfo         Build with terminfo library."
 
17
ac_help="$ac_help
 
18
  --with-termcap          Build with termcap library. (default)"
 
19
ac_help="$ac_help
 
20
  --enable-canna[=DIR]    Build a canna version."
 
21
 
 
22
# Initialize some variables set by options.
 
23
# The variables have the same names as the options, with
 
24
# dashes changed to underlines.
 
25
build=NONE
 
26
cache_file=./config.cache
 
27
exec_prefix=NONE
 
28
host=NONE
 
29
no_create=
 
30
nonopt=NONE
 
31
no_recursion=
 
32
prefix=NONE
 
33
program_prefix=NONE
 
34
program_suffix=NONE
 
35
program_transform_name=s,x,x,
 
36
silent=
 
37
site=
 
38
srcdir=
 
39
target=NONE
 
40
verbose=
 
41
x_includes=NONE
 
42
x_libraries=NONE
 
43
bindir='${exec_prefix}/bin'
 
44
sbindir='${exec_prefix}/sbin'
 
45
libexecdir='${exec_prefix}/libexec'
 
46
datadir='${prefix}/share'
 
47
sysconfdir='${prefix}/etc'
 
48
sharedstatedir='${prefix}/com'
 
49
localstatedir='${prefix}/var'
 
50
libdir='${exec_prefix}/lib'
 
51
includedir='${prefix}/include'
 
52
oldincludedir='/usr/include'
 
53
infodir='${prefix}/info'
 
54
mandir='${prefix}/man'
 
55
 
 
56
# Initialize some other variables.
 
57
subdirs=
 
58
MFLAGS= MAKEFLAGS=
 
59
SHELL=${CONFIG_SHELL-/bin/sh}
 
60
# Maximum number of lines to put in a shell here document.
 
61
ac_max_here_lines=12
 
62
 
 
63
ac_prev=
 
64
for ac_option
 
65
do
 
66
 
 
67
  # If the previous option needs an argument, assign it.
 
68
  if test -n "$ac_prev"; then
 
69
    eval "$ac_prev=\$ac_option"
 
70
    ac_prev=
 
71
    continue
 
72
  fi
 
73
 
 
74
  case "$ac_option" in
 
75
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
76
  *) ac_optarg= ;;
 
77
  esac
 
78
 
 
79
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
80
 
 
81
  case "$ac_option" in
 
82
 
 
83
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
84
    ac_prev=bindir ;;
 
85
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
86
    bindir="$ac_optarg" ;;
 
87
 
 
88
  -build | --build | --buil | --bui | --bu)
 
89
    ac_prev=build ;;
 
90
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
91
    build="$ac_optarg" ;;
 
92
 
 
93
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
94
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
95
    ac_prev=cache_file ;;
 
96
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
97
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
98
    cache_file="$ac_optarg" ;;
 
99
 
 
100
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
101
    ac_prev=datadir ;;
 
102
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
103
  | --da=*)
 
104
    datadir="$ac_optarg" ;;
 
105
 
 
106
  -disable-* | --disable-*)
 
107
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
108
    # Reject names that are not valid shell variable names.
 
109
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
110
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
111
    fi
 
112
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
113
    eval "enable_${ac_feature}=no" ;;
 
114
 
 
115
  -enable-* | --enable-*)
 
116
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
117
    # Reject names that are not valid shell variable names.
 
118
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
119
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
120
    fi
 
121
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
122
    case "$ac_option" in
 
123
      *=*) ;;
 
124
      *) ac_optarg=yes ;;
 
125
    esac
 
126
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
127
 
 
128
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
129
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
130
  | --exec | --exe | --ex)
 
131
    ac_prev=exec_prefix ;;
 
132
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
133
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
134
  | --exec=* | --exe=* | --ex=*)
 
135
    exec_prefix="$ac_optarg" ;;
 
136
 
 
137
  -gas | --gas | --ga | --g)
 
138
    # Obsolete; use --with-gas.
 
139
    with_gas=yes ;;
 
140
 
 
141
  -help | --help | --hel | --he)
 
142
    # Omit some internal or obsolete options to make the list less imposing.
 
143
    # This message is too long to be a string in the A/UX 3.1 sh.
 
144
    cat << EOF
 
145
Usage: configure [options] [host]
 
146
Options: [defaults in brackets after descriptions]
 
147
Configuration:
 
148
  --cache-file=FILE       cache test results in FILE
 
149
  --help                  print this message
 
150
  --no-create             do not create output files
 
151
  --quiet, --silent       do not print \`checking...' messages
 
152
  --version               print the version of autoconf that created configure
 
153
Directory and file names:
 
154
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
155
                          [$ac_default_prefix]
 
156
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
157
                          [same as prefix]
 
158
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
159
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
160
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
161
  --datadir=DIR           read-only architecture-independent data in DIR
 
162
                          [PREFIX/share]
 
163
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
164
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
165
                          [PREFIX/com]
 
166
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
167
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
168
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
169
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
170
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
171
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
172
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
173
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
174
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
175
  --program-transform-name=PROGRAM
 
176
                          run sed PROGRAM on installed program names
 
177
EOF
 
178
    cat << EOF
 
179
Host type:
 
180
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
181
  --host=HOST             configure for HOST [guessed]
 
182
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
183
Features and packages:
 
184
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
185
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
186
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
187
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
188
  --x-includes=DIR        X include files are in DIR
 
189
  --x-libraries=DIR       X library files are in DIR
 
190
EOF
 
191
    if test -n "$ac_help"; then
 
192
      echo "--enable and --with options recognized:$ac_help"
 
193
    fi
 
194
    exit 0 ;;
 
195
 
 
196
  -host | --host | --hos | --ho)
 
197
    ac_prev=host ;;
 
198
  -host=* | --host=* | --hos=* | --ho=*)
 
199
    host="$ac_optarg" ;;
 
200
 
 
201
  -includedir | --includedir | --includedi | --included | --include \
 
202
  | --includ | --inclu | --incl | --inc)
 
203
    ac_prev=includedir ;;
 
204
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
205
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
206
    includedir="$ac_optarg" ;;
 
207
 
 
208
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
209
    ac_prev=infodir ;;
 
210
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
211
    infodir="$ac_optarg" ;;
 
212
 
 
213
  -libdir | --libdir | --libdi | --libd)
 
214
    ac_prev=libdir ;;
 
215
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
216
    libdir="$ac_optarg" ;;
 
217
 
 
218
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
219
  | --libexe | --libex | --libe)
 
220
    ac_prev=libexecdir ;;
 
221
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
222
  | --libexe=* | --libex=* | --libe=*)
 
223
    libexecdir="$ac_optarg" ;;
 
224
 
 
225
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
226
  | --localstate | --localstat | --localsta | --localst \
 
227
  | --locals | --local | --loca | --loc | --lo)
 
228
    ac_prev=localstatedir ;;
 
229
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
230
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
231
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
232
    localstatedir="$ac_optarg" ;;
 
233
 
 
234
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
235
    ac_prev=mandir ;;
 
236
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
237
    mandir="$ac_optarg" ;;
 
238
 
 
239
  -nfp | --nfp | --nf)
 
240
    # Obsolete; use --without-fp.
 
241
    with_fp=no ;;
 
242
 
 
243
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
244
  | --no-cr | --no-c)
 
245
    no_create=yes ;;
 
246
 
 
247
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
248
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
249
    no_recursion=yes ;;
 
250
 
 
251
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
252
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
253
  | --oldin | --oldi | --old | --ol | --o)
 
254
    ac_prev=oldincludedir ;;
 
255
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
256
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
257
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
258
    oldincludedir="$ac_optarg" ;;
 
259
 
 
260
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
261
    ac_prev=prefix ;;
 
262
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
263
    prefix="$ac_optarg" ;;
 
264
 
 
265
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
266
  | --program-pre | --program-pr | --program-p)
 
267
    ac_prev=program_prefix ;;
 
268
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
269
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
270
    program_prefix="$ac_optarg" ;;
 
271
 
 
272
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
273
  | --program-suf | --program-su | --program-s)
 
274
    ac_prev=program_suffix ;;
 
275
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
276
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
277
    program_suffix="$ac_optarg" ;;
 
278
 
 
279
  -program-transform-name | --program-transform-name \
 
280
  | --program-transform-nam | --program-transform-na \
 
281
  | --program-transform-n | --program-transform- \
 
282
  | --program-transform | --program-transfor \
 
283
  | --program-transfo | --program-transf \
 
284
  | --program-trans | --program-tran \
 
285
  | --progr-tra | --program-tr | --program-t)
 
286
    ac_prev=program_transform_name ;;
 
287
  -program-transform-name=* | --program-transform-name=* \
 
288
  | --program-transform-nam=* | --program-transform-na=* \
 
289
  | --program-transform-n=* | --program-transform-=* \
 
290
  | --program-transform=* | --program-transfor=* \
 
291
  | --program-transfo=* | --program-transf=* \
 
292
  | --program-trans=* | --program-tran=* \
 
293
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
294
    program_transform_name="$ac_optarg" ;;
 
295
 
 
296
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
297
  | -silent | --silent | --silen | --sile | --sil)
 
298
    silent=yes ;;
 
299
 
 
300
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
301
    ac_prev=sbindir ;;
 
302
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
303
  | --sbi=* | --sb=*)
 
304
    sbindir="$ac_optarg" ;;
 
305
 
 
306
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
307
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
308
  | --sharedst | --shareds | --shared | --share | --shar \
 
309
  | --sha | --sh)
 
310
    ac_prev=sharedstatedir ;;
 
311
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
312
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
313
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
314
  | --sha=* | --sh=*)
 
315
    sharedstatedir="$ac_optarg" ;;
 
316
 
 
317
  -site | --site | --sit)
 
318
    ac_prev=site ;;
 
319
  -site=* | --site=* | --sit=*)
 
320
    site="$ac_optarg" ;;
 
321
 
 
322
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
323
    ac_prev=srcdir ;;
 
324
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
325
    srcdir="$ac_optarg" ;;
 
326
 
 
327
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
328
  | --syscon | --sysco | --sysc | --sys | --sy)
 
329
    ac_prev=sysconfdir ;;
 
330
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
331
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
332
    sysconfdir="$ac_optarg" ;;
 
333
 
 
334
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
335
    ac_prev=target ;;
 
336
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
337
    target="$ac_optarg" ;;
 
338
 
 
339
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
340
    verbose=yes ;;
 
341
 
 
342
  -version | --version | --versio | --versi | --vers)
 
343
    echo "configure generated by autoconf version 2.13"
 
344
    exit 0 ;;
 
345
 
 
346
  -with-* | --with-*)
 
347
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
348
    # Reject names that are not valid shell variable names.
 
349
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
350
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
351
    fi
 
352
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
353
    case "$ac_option" in
 
354
      *=*) ;;
 
355
      *) ac_optarg=yes ;;
 
356
    esac
 
357
    eval "with_${ac_package}='$ac_optarg'" ;;
 
358
 
 
359
  -without-* | --without-*)
 
360
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
361
    # Reject names that are not valid shell variable names.
 
362
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
363
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
364
    fi
 
365
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
366
    eval "with_${ac_package}=no" ;;
 
367
 
 
368
  --x)
 
369
    # Obsolete; use --with-x.
 
370
    with_x=yes ;;
 
371
 
 
372
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
373
  | --x-incl | --x-inc | --x-in | --x-i)
 
374
    ac_prev=x_includes ;;
 
375
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
376
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
377
    x_includes="$ac_optarg" ;;
 
378
 
 
379
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
380
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
381
    ac_prev=x_libraries ;;
 
382
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
383
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
384
    x_libraries="$ac_optarg" ;;
 
385
 
 
386
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
387
    ;;
 
388
 
 
389
  *)
 
390
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
391
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
392
    fi
 
393
    if test "x$nonopt" != xNONE; then
 
394
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
395
    fi
 
396
    nonopt="$ac_option"
 
397
    ;;
 
398
 
 
399
  esac
 
400
done
 
401
 
 
402
if test -n "$ac_prev"; then
 
403
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
404
fi
 
405
 
 
406
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
407
 
 
408
# File descriptor usage:
 
409
# 0 standard input
 
410
# 1 file creation
 
411
# 2 errors and warnings
 
412
# 3 some systems may open it to /dev/tty
 
413
# 4 used on the Kubota Titan
 
414
# 6 checking for... messages and results
 
415
# 5 compiler messages saved in config.log
 
416
if test "$silent" = yes; then
 
417
  exec 6>/dev/null
 
418
else
 
419
  exec 6>&1
 
420
fi
 
421
exec 5>./config.log
 
422
 
 
423
echo "\
 
424
This file contains any messages produced by compilers while
 
425
running configure, to aid debugging if configure makes a mistake.
 
426
" 1>&5
 
427
 
 
428
# Strip out --no-create and --no-recursion so they do not pile up.
 
429
# Also quote any args containing shell metacharacters.
 
430
ac_configure_args=
 
431
for ac_arg
 
432
do
 
433
  case "$ac_arg" in
 
434
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
435
  | --no-cr | --no-c) ;;
 
436
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
437
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
438
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
439
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
440
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
441
  esac
 
442
done
 
443
 
 
444
# NLS nuisances.
 
445
# Only set these to C if already set.  These must not be set unconditionally
 
446
# because not all systems understand e.g. LANG=C (notably SCO).
 
447
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
448
# Non-C LC_CTYPE values break the ctype check.
 
449
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
450
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
451
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
452
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
453
 
 
454
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
455
rm -rf conftest* confdefs.h
 
456
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
457
echo > confdefs.h
 
458
 
 
459
# A filename unique to this package, relative to the directory that
 
460
# configure is in, which we can look for to find out if srcdir is correct.
 
461
ac_unique_file=basic.c
 
462
 
 
463
# Find the source files, if location was not specified.
 
464
if test -z "$srcdir"; then
 
465
  ac_srcdir_defaulted=yes
 
466
  # Try the directory containing this script, then its parent.
 
467
  ac_prog=$0
 
468
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
469
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
470
  srcdir=$ac_confdir
 
471
  if test ! -r $srcdir/$ac_unique_file; then
 
472
    srcdir=..
 
473
  fi
 
474
else
 
475
  ac_srcdir_defaulted=no
 
476
fi
 
477
if test ! -r $srcdir/$ac_unique_file; then
 
478
  if test "$ac_srcdir_defaulted" = yes; then
 
479
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
480
  else
 
481
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
482
  fi
 
483
fi
 
484
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
485
 
 
486
# Prefer explicitly selected file to automatically selected ones.
 
487
if test -z "$CONFIG_SITE"; then
 
488
  if test "x$prefix" != xNONE; then
 
489
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
490
  else
 
491
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
492
  fi
 
493
fi
 
494
for ac_site_file in $CONFIG_SITE; do
 
495
  if test -r "$ac_site_file"; then
 
496
    echo "loading site script $ac_site_file"
 
497
    . "$ac_site_file"
 
498
  fi
 
499
done
 
500
 
 
501
if test -r "$cache_file"; then
 
502
  echo "loading cache $cache_file"
 
503
  . $cache_file
 
504
else
 
505
  echo "creating cache $cache_file"
 
506
  > $cache_file
 
507
fi
 
508
 
 
509
ac_ext=c
 
510
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
511
ac_cpp='$CPP $CPPFLAGS'
 
512
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
513
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
514
cross_compiling=$ac_cv_prog_cc_cross
 
515
 
 
516
ac_exeext=
 
517
ac_objext=o
 
518
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
519
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
520
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
521
    ac_n= ac_c='
 
522
' ac_t='        '
 
523
  else
 
524
    ac_n=-n ac_c= ac_t=
 
525
  fi
 
526
else
 
527
  ac_n= ac_c='\c' ac_t=
 
528
fi
 
529
 
 
530
 
 
531
 
 
532
ac_aux_dir=
 
533
for ac_dir in sys/unix $srcdir/sys/unix; do
 
534
  if test -f $ac_dir/install-sh; then
 
535
    ac_aux_dir=$ac_dir
 
536
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
537
    break
 
538
  elif test -f $ac_dir/install.sh; then
 
539
    ac_aux_dir=$ac_dir
 
540
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
541
    break
 
542
  fi
 
543
done
 
544
if test -z "$ac_aux_dir"; then
 
545
  { echo "configure: error: can not find install-sh or install.sh in sys/unix $srcdir/sys/unix" 1>&2; exit 1; }
 
546
fi
 
547
ac_config_guess=$ac_aux_dir/config.guess
 
548
ac_config_sub=$ac_aux_dir/config.sub
 
549
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
550
 
 
551
 
 
552
 
 
553
# Make sure we can run config.sub.
 
554
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
555
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
556
fi
 
557
 
 
558
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
559
echo "configure:560: checking host system type" >&5
 
560
 
 
561
host_alias=$host
 
562
case "$host_alias" in
 
563
NONE)
 
564
  case $nonopt in
 
565
  NONE)
 
566
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
567
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
568
    fi ;;
 
569
  *) host_alias=$nonopt ;;
 
570
  esac ;;
 
571
esac
 
572
 
 
573
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
574
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
575
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
576
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
577
echo "$ac_t""$host" 1>&6
 
578
 
 
579
USER_CFLAGS=$CFLAGS
 
580
# Extract the first word of "gcc", so it can be a program name with args.
 
581
set dummy gcc; ac_word=$2
 
582
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
583
echo "configure:584: checking for $ac_word" >&5
 
584
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
585
  echo $ac_n "(cached) $ac_c" 1>&6
 
586
else
 
587
  if test -n "$CC"; then
 
588
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
589
else
 
590
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
591
  ac_dummy="$PATH"
 
592
  for ac_dir in $ac_dummy; do
 
593
    test -z "$ac_dir" && ac_dir=.
 
594
    if test -f $ac_dir/$ac_word; then
 
595
      ac_cv_prog_CC="gcc"
 
596
      break
 
597
    fi
 
598
  done
 
599
  IFS="$ac_save_ifs"
 
600
fi
 
601
fi
 
602
CC="$ac_cv_prog_CC"
 
603
if test -n "$CC"; then
 
604
  echo "$ac_t""$CC" 1>&6
 
605
else
 
606
  echo "$ac_t""no" 1>&6
 
607
fi
 
608
 
 
609
if test -z "$CC"; then
 
610
  # Extract the first word of "cc", so it can be a program name with args.
 
611
set dummy cc; ac_word=$2
 
612
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
613
echo "configure:614: checking for $ac_word" >&5
 
614
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
615
  echo $ac_n "(cached) $ac_c" 1>&6
 
616
else
 
617
  if test -n "$CC"; then
 
618
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
619
else
 
620
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
621
  ac_prog_rejected=no
 
622
  ac_dummy="$PATH"
 
623
  for ac_dir in $ac_dummy; do
 
624
    test -z "$ac_dir" && ac_dir=.
 
625
    if test -f $ac_dir/$ac_word; then
 
626
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
627
        ac_prog_rejected=yes
 
628
        continue
 
629
      fi
 
630
      ac_cv_prog_CC="cc"
 
631
      break
 
632
    fi
 
633
  done
 
634
  IFS="$ac_save_ifs"
 
635
if test $ac_prog_rejected = yes; then
 
636
  # We found a bogon in the path, so make sure we never use it.
 
637
  set dummy $ac_cv_prog_CC
 
638
  shift
 
639
  if test $# -gt 0; then
 
640
    # We chose a different compiler from the bogus one.
 
641
    # However, it has the same basename, so the bogon will be chosen
 
642
    # first if we set CC to just the basename; use the full file name.
 
643
    shift
 
644
    set dummy "$ac_dir/$ac_word" "$@"
 
645
    shift
 
646
    ac_cv_prog_CC="$@"
 
647
  fi
 
648
fi
 
649
fi
 
650
fi
 
651
CC="$ac_cv_prog_CC"
 
652
if test -n "$CC"; then
 
653
  echo "$ac_t""$CC" 1>&6
 
654
else
 
655
  echo "$ac_t""no" 1>&6
 
656
fi
 
657
 
 
658
  if test -z "$CC"; then
 
659
    case "`uname -s`" in
 
660
    *win32* | *WIN32*)
 
661
      # Extract the first word of "cl", so it can be a program name with args.
 
662
set dummy cl; ac_word=$2
 
663
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
664
echo "configure:665: checking for $ac_word" >&5
 
665
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
666
  echo $ac_n "(cached) $ac_c" 1>&6
 
667
else
 
668
  if test -n "$CC"; then
 
669
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
670
else
 
671
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
672
  ac_dummy="$PATH"
 
673
  for ac_dir in $ac_dummy; do
 
674
    test -z "$ac_dir" && ac_dir=.
 
675
    if test -f $ac_dir/$ac_word; then
 
676
      ac_cv_prog_CC="cl"
 
677
      break
 
678
    fi
 
679
  done
 
680
  IFS="$ac_save_ifs"
 
681
fi
 
682
fi
 
683
CC="$ac_cv_prog_CC"
 
684
if test -n "$CC"; then
 
685
  echo "$ac_t""$CC" 1>&6
 
686
else
 
687
  echo "$ac_t""no" 1>&6
 
688
fi
 
689
 ;;
 
690
    esac
 
691
  fi
 
692
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
693
fi
 
694
 
 
695
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
696
echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
697
 
 
698
ac_ext=c
 
699
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
700
ac_cpp='$CPP $CPPFLAGS'
 
701
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
702
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
703
cross_compiling=$ac_cv_prog_cc_cross
 
704
 
 
705
cat > conftest.$ac_ext << EOF
 
706
 
 
707
#line 708 "configure"
 
708
#include "confdefs.h"
 
709
 
 
710
main(){return(0);}
 
711
EOF
 
712
if { (eval echo configure:713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
713
  ac_cv_prog_cc_works=yes
 
714
  # If we can't run a trivial program, we are probably using a cross compiler.
 
715
  if (./conftest; exit) 2>/dev/null; then
 
716
    ac_cv_prog_cc_cross=no
 
717
  else
 
718
    ac_cv_prog_cc_cross=yes
 
719
  fi
 
720
else
 
721
  echo "configure: failed program was:" >&5
 
722
  cat conftest.$ac_ext >&5
 
723
  ac_cv_prog_cc_works=no
 
724
fi
 
725
rm -fr conftest*
 
726
ac_ext=c
 
727
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
728
ac_cpp='$CPP $CPPFLAGS'
 
729
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
730
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
731
cross_compiling=$ac_cv_prog_cc_cross
 
732
 
 
733
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
734
if test $ac_cv_prog_cc_works = no; then
 
735
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
736
fi
 
737
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
738
echo "configure:739: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
739
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
740
cross_compiling=$ac_cv_prog_cc_cross
 
741
 
 
742
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
743
echo "configure:744: checking whether we are using GNU C" >&5
 
744
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
745
  echo $ac_n "(cached) $ac_c" 1>&6
 
746
else
 
747
  cat > conftest.c <<EOF
 
748
#ifdef __GNUC__
 
749
  yes;
 
750
#endif
 
751
EOF
 
752
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
753
  ac_cv_prog_gcc=yes
 
754
else
 
755
  ac_cv_prog_gcc=no
 
756
fi
 
757
fi
 
758
 
 
759
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
760
 
 
761
if test $ac_cv_prog_gcc = yes; then
 
762
  GCC=yes
 
763
else
 
764
  GCC=
 
765
fi
 
766
 
 
767
ac_test_CFLAGS="${CFLAGS+set}"
 
768
ac_save_CFLAGS="$CFLAGS"
 
769
CFLAGS=
 
770
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
771
echo "configure:772: checking whether ${CC-cc} accepts -g" >&5
 
772
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
773
  echo $ac_n "(cached) $ac_c" 1>&6
 
774
else
 
775
  echo 'void f(){}' > conftest.c
 
776
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
777
  ac_cv_prog_cc_g=yes
 
778
else
 
779
  ac_cv_prog_cc_g=no
 
780
fi
 
781
rm -f conftest*
 
782
 
 
783
fi
 
784
 
 
785
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
786
if test "$ac_test_CFLAGS" = set; then
 
787
  CFLAGS="$ac_save_CFLAGS"
 
788
elif test $ac_cv_prog_cc_g = yes; then
 
789
  if test "$GCC" = yes; then
 
790
    CFLAGS="-g -O2"
 
791
  else
 
792
    CFLAGS="-g"
 
793
  fi
 
794
else
 
795
  if test "$GCC" = yes; then
 
796
    CFLAGS="-O2"
 
797
  else
 
798
    CFLAGS=
 
799
  fi
 
800
fi
 
801
 
 
802
# Find a good install program.  We prefer a C program (faster),
 
803
# so one script is as good as another.  But avoid the broken or
 
804
# incompatible versions:
 
805
# SysV /etc/install, /usr/sbin/install
 
806
# SunOS /usr/etc/install
 
807
# IRIX /sbin/install
 
808
# AIX /bin/install
 
809
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
810
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
811
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
812
# ./install, which can be erroneously created by make from ./install.sh.
 
813
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
814
echo "configure:815: checking for a BSD compatible install" >&5
 
815
if test -z "$INSTALL"; then
 
816
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
817
  echo $ac_n "(cached) $ac_c" 1>&6
 
818
else
 
819
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
820
  for ac_dir in $PATH; do
 
821
    # Account for people who put trailing slashes in PATH elements.
 
822
    case "$ac_dir/" in
 
823
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
824
    *)
 
825
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
826
      # Don't use installbsd from OSF since it installs stuff as root
 
827
      # by default.
 
828
      for ac_prog in ginstall scoinst install; do
 
829
        if test -f $ac_dir/$ac_prog; then
 
830
          if test $ac_prog = install &&
 
831
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
832
            # AIX install.  It has an incompatible calling convention.
 
833
            :
 
834
          else
 
835
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
836
            break 2
 
837
          fi
 
838
        fi
 
839
      done
 
840
      ;;
 
841
    esac
 
842
  done
 
843
  IFS="$ac_save_IFS"
 
844
 
 
845
fi
 
846
  if test "${ac_cv_path_install+set}" = set; then
 
847
    INSTALL="$ac_cv_path_install"
 
848
  else
 
849
    # As a last resort, use the slow shell script.  We don't cache a
 
850
    # path for INSTALL within a source directory, because that will
 
851
    # break other packages using the cache if that directory is
 
852
    # removed, or if the path is relative.
 
853
    INSTALL="$ac_install_sh"
 
854
  fi
 
855
fi
 
856
echo "$ac_t""$INSTALL" 1>&6
 
857
 
 
858
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
859
# It thinks the first close brace ends the variable substitution.
 
860
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
861
 
 
862
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
863
 
 
864
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
865
 
 
866
 
 
867
# Extract the first word of "strip", so it can be a program name with args.
 
868
set dummy strip; ac_word=$2
 
869
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
870
echo "configure:871: checking for $ac_word" >&5
 
871
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 
872
  echo $ac_n "(cached) $ac_c" 1>&6
 
873
else
 
874
  if test -n "$STRIP"; then
 
875
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
876
else
 
877
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
878
  ac_dummy="$PATH"
 
879
  for ac_dir in $ac_dummy; do
 
880
    test -z "$ac_dir" && ac_dir=.
 
881
    if test -f $ac_dir/$ac_word; then
 
882
      ac_cv_prog_STRIP="strip"
 
883
      break
 
884
    fi
 
885
  done
 
886
  IFS="$ac_save_ifs"
 
887
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
 
888
fi
 
889
fi
 
890
STRIP="$ac_cv_prog_STRIP"
 
891
if test -n "$STRIP"; then
 
892
  echo "$ac_t""$STRIP" 1>&6
 
893
else
 
894
  echo "$ac_t""no" 1>&6
 
895
fi
 
896
 
 
897
 
 
898
if test -z "$USER_CFLAGS"; then
 
899
  CFLAGS="-O"
 
900
  test "$GCC" = yes && CFLAGS="-O2"
 
901
else
 
902
  CFLAGS=$USER_CFLAGS
 
903
fi
 
904
 
 
905
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
906
echo "configure:907: checking how to run the C preprocessor" >&5
 
907
# On Suns, sometimes $CPP names a directory.
 
908
if test -n "$CPP" && test -d "$CPP"; then
 
909
  CPP=
 
910
fi
 
911
if test -z "$CPP"; then
 
912
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
913
  echo $ac_n "(cached) $ac_c" 1>&6
 
914
else
 
915
    # This must be in double quotes, not single quotes, because CPP may get
 
916
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
917
  CPP="${CC-cc} -E"
 
918
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
919
  # not just through cpp.
 
920
  cat > conftest.$ac_ext <<EOF
 
921
#line 922 "configure"
 
922
#include "confdefs.h"
 
923
#include <assert.h>
 
924
Syntax Error
 
925
EOF
 
926
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
927
{ (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
928
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
929
if test -z "$ac_err"; then
 
930
  :
 
931
else
 
932
  echo "$ac_err" >&5
 
933
  echo "configure: failed program was:" >&5
 
934
  cat conftest.$ac_ext >&5
 
935
  rm -rf conftest*
 
936
  CPP="${CC-cc} -E -traditional-cpp"
 
937
  cat > conftest.$ac_ext <<EOF
 
938
#line 939 "configure"
 
939
#include "confdefs.h"
 
940
#include <assert.h>
 
941
Syntax Error
 
942
EOF
 
943
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
944
{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
945
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
946
if test -z "$ac_err"; then
 
947
  :
 
948
else
 
949
  echo "$ac_err" >&5
 
950
  echo "configure: failed program was:" >&5
 
951
  cat conftest.$ac_ext >&5
 
952
  rm -rf conftest*
 
953
  CPP="${CC-cc} -nologo -E"
 
954
  cat > conftest.$ac_ext <<EOF
 
955
#line 956 "configure"
 
956
#include "confdefs.h"
 
957
#include <assert.h>
 
958
Syntax Error
 
959
EOF
 
960
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
961
{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
962
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
963
if test -z "$ac_err"; then
 
964
  :
 
965
else
 
966
  echo "$ac_err" >&5
 
967
  echo "configure: failed program was:" >&5
 
968
  cat conftest.$ac_ext >&5
 
969
  rm -rf conftest*
 
970
  CPP=/lib/cpp
 
971
fi
 
972
rm -f conftest*
 
973
fi
 
974
rm -f conftest*
 
975
fi
 
976
rm -f conftest*
 
977
  ac_cv_prog_CPP="$CPP"
 
978
fi
 
979
  CPP="$ac_cv_prog_CPP"
 
980
else
 
981
  ac_cv_prog_CPP="$CPP"
 
982
fi
 
983
echo "$ac_t""$CPP" 1>&6
 
984
 
 
985
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
 
986
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
 
987
echo "configure:988: checking for minix/config.h" >&5
 
988
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
989
  echo $ac_n "(cached) $ac_c" 1>&6
 
990
else
 
991
  cat > conftest.$ac_ext <<EOF
 
992
#line 993 "configure"
 
993
#include "confdefs.h"
 
994
#include <minix/config.h>
 
995
EOF
 
996
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
997
{ (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
998
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
999
if test -z "$ac_err"; then
 
1000
  rm -rf conftest*
 
1001
  eval "ac_cv_header_$ac_safe=yes"
 
1002
else
 
1003
  echo "$ac_err" >&5
 
1004
  echo "configure: failed program was:" >&5
 
1005
  cat conftest.$ac_ext >&5
 
1006
  rm -rf conftest*
 
1007
  eval "ac_cv_header_$ac_safe=no"
 
1008
fi
 
1009
rm -f conftest*
 
1010
fi
 
1011
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1012
  echo "$ac_t""yes" 1>&6
 
1013
  MINIX=yes
 
1014
else
 
1015
  echo "$ac_t""no" 1>&6
 
1016
MINIX=
 
1017
fi
 
1018
 
 
1019
if test "$MINIX" = yes; then
 
1020
  cat >> confdefs.h <<\EOF
 
1021
#define _POSIX_SOURCE 1
 
1022
EOF
 
1023
 
 
1024
  cat >> confdefs.h <<\EOF
 
1025
#define _POSIX_1_SOURCE 2
 
1026
EOF
 
1027
 
 
1028
  cat >> confdefs.h <<\EOF
 
1029
#define _MINIX 1
 
1030
EOF
 
1031
 
 
1032
fi
 
1033
 
 
1034
 
 
1035
# Check whether --with-terminfo or --without-terminfo was given.
 
1036
if test "${with_terminfo+set}" = set; then
 
1037
  withval="$with_terminfo"
 
1038
  ts_with_terminfo="yes"
 
1039
else
 
1040
  ts_with_terminfo="no"
 
1041
fi
 
1042
 
 
1043
# Check whether --with-termcap or --without-termcap was given.
 
1044
if test "${with_termcap+set}" = set; then
 
1045
  withval="$with_termcap"
 
1046
  ts_with_terminfo="no"
 
1047
fi
 
1048
 
 
1049
if test "$ts_with_terminfo" = "yes"; then
 
1050
 
 
1051
echo $ac_n "checking for library containing tgetstr""... $ac_c" 1>&6
 
1052
echo "configure:1053: checking for library containing tgetstr" >&5
 
1053
if eval "test \"`echo '$''{'ac_cv_search_tgetstr'+set}'`\" = set"; then
 
1054
  echo $ac_n "(cached) $ac_c" 1>&6
 
1055
else
 
1056
  ac_func_search_save_LIBS="$LIBS"
 
1057
ac_cv_search_tgetstr="no"
 
1058
cat > conftest.$ac_ext <<EOF
 
1059
#line 1060 "configure"
 
1060
#include "confdefs.h"
 
1061
/* Override any gcc2 internal prototype to avoid an error.  */
 
1062
/* We use char because int might match the return type of a gcc2
 
1063
    builtin and then its argument prototype would still apply.  */
 
1064
char tgetstr();
 
1065
 
 
1066
int main() {
 
1067
tgetstr()
 
1068
; return 0; }
 
1069
EOF
 
1070
if { (eval echo configure:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1071
  rm -rf conftest*
 
1072
  ac_cv_search_tgetstr="none required"
 
1073
else
 
1074
  echo "configure: failed program was:" >&5
 
1075
  cat conftest.$ac_ext >&5
 
1076
fi
 
1077
rm -f conftest*
 
1078
test "$ac_cv_search_tgetstr" = "no" && for i in curses ncurses termlib; do
 
1079
LIBS="-l$i  $ac_func_search_save_LIBS"
 
1080
cat > conftest.$ac_ext <<EOF
 
1081
#line 1082 "configure"
 
1082
#include "confdefs.h"
 
1083
/* Override any gcc2 internal prototype to avoid an error.  */
 
1084
/* We use char because int might match the return type of a gcc2
 
1085
    builtin and then its argument prototype would still apply.  */
 
1086
char tgetstr();
 
1087
 
 
1088
int main() {
 
1089
tgetstr()
 
1090
; return 0; }
 
1091
EOF
 
1092
if { (eval echo configure:1093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1093
  rm -rf conftest*
 
1094
  ac_cv_search_tgetstr="-l$i"
 
1095
break
 
1096
else
 
1097
  echo "configure: failed program was:" >&5
 
1098
  cat conftest.$ac_ext >&5
 
1099
fi
 
1100
rm -f conftest*
 
1101
done
 
1102
LIBS="$ac_func_search_save_LIBS"
 
1103
fi
 
1104
 
 
1105
echo "$ac_t""$ac_cv_search_tgetstr" 1>&6
 
1106
if test "$ac_cv_search_tgetstr" != "no"; then
 
1107
  test "$ac_cv_search_tgetstr" = "none required" || LIBS="$ac_cv_search_tgetstr $LIBS"
 
1108
  
 
1109
else :
 
1110
  
 
1111
fi
 
1112
else
 
1113
 
 
1114
echo $ac_n "checking for library containing tgetstr""... $ac_c" 1>&6
 
1115
echo "configure:1116: checking for library containing tgetstr" >&5
 
1116
if eval "test \"`echo '$''{'ac_cv_search_tgetstr'+set}'`\" = set"; then
 
1117
  echo $ac_n "(cached) $ac_c" 1>&6
 
1118
else
 
1119
  ac_func_search_save_LIBS="$LIBS"
 
1120
ac_cv_search_tgetstr="no"
 
1121
cat > conftest.$ac_ext <<EOF
 
1122
#line 1123 "configure"
 
1123
#include "confdefs.h"
 
1124
/* Override any gcc2 internal prototype to avoid an error.  */
 
1125
/* We use char because int might match the return type of a gcc2
 
1126
    builtin and then its argument prototype would still apply.  */
 
1127
char tgetstr();
 
1128
 
 
1129
int main() {
 
1130
tgetstr()
 
1131
; return 0; }
 
1132
EOF
 
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1134
  rm -rf conftest*
 
1135
  ac_cv_search_tgetstr="none required"
 
1136
else
 
1137
  echo "configure: failed program was:" >&5
 
1138
  cat conftest.$ac_ext >&5
 
1139
fi
 
1140
rm -f conftest*
 
1141
test "$ac_cv_search_tgetstr" = "no" && for i in termcap curses ncurses; do
 
1142
LIBS="-l$i  $ac_func_search_save_LIBS"
 
1143
cat > conftest.$ac_ext <<EOF
 
1144
#line 1145 "configure"
 
1145
#include "confdefs.h"
 
1146
/* Override any gcc2 internal prototype to avoid an error.  */
 
1147
/* We use char because int might match the return type of a gcc2
 
1148
    builtin and then its argument prototype would still apply.  */
 
1149
char tgetstr();
 
1150
 
 
1151
int main() {
 
1152
tgetstr()
 
1153
; return 0; }
 
1154
EOF
 
1155
if { (eval echo configure:1156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1156
  rm -rf conftest*
 
1157
  ac_cv_search_tgetstr="-l$i"
 
1158
break
 
1159
else
 
1160
  echo "configure: failed program was:" >&5
 
1161
  cat conftest.$ac_ext >&5
 
1162
fi
 
1163
rm -f conftest*
 
1164
done
 
1165
LIBS="$ac_func_search_save_LIBS"
 
1166
fi
 
1167
 
 
1168
echo "$ac_t""$ac_cv_search_tgetstr" 1>&6
 
1169
if test "$ac_cv_search_tgetstr" != "no"; then
 
1170
  test "$ac_cv_search_tgetstr" = "none required" || LIBS="$ac_cv_search_tgetstr $LIBS"
 
1171
  
 
1172
else :
 
1173
  
 
1174
fi
 
1175
fi
 
1176
 
 
1177
ac_header_dirent=no
 
1178
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
 
1179
do
 
1180
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1181
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
 
1182
echo "configure:1183: checking for $ac_hdr that defines DIR" >&5
 
1183
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
 
1184
  echo $ac_n "(cached) $ac_c" 1>&6
 
1185
else
 
1186
  cat > conftest.$ac_ext <<EOF
 
1187
#line 1188 "configure"
 
1188
#include "confdefs.h"
 
1189
#include <sys/types.h>
 
1190
#include <$ac_hdr>
 
1191
int main() {
 
1192
DIR *dirp = 0;
 
1193
; return 0; }
 
1194
EOF
 
1195
if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1196
  rm -rf conftest*
 
1197
  eval "ac_cv_header_dirent_$ac_safe=yes"
 
1198
else
 
1199
  echo "configure: failed program was:" >&5
 
1200
  cat conftest.$ac_ext >&5
 
1201
  rm -rf conftest*
 
1202
  eval "ac_cv_header_dirent_$ac_safe=no"
 
1203
fi
 
1204
rm -f conftest*
 
1205
fi
 
1206
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
 
1207
  echo "$ac_t""yes" 1>&6
 
1208
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1209
  cat >> confdefs.h <<EOF
 
1210
#define $ac_tr_hdr 1
 
1211
EOF
 
1212
 ac_header_dirent=$ac_hdr; break
 
1213
else
 
1214
  echo "$ac_t""no" 1>&6
 
1215
fi
 
1216
done
 
1217
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
1218
if test $ac_header_dirent = dirent.h; then
 
1219
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
 
1220
echo "configure:1221: checking for opendir in -ldir" >&5
 
1221
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
 
1222
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1223
  echo $ac_n "(cached) $ac_c" 1>&6
 
1224
else
 
1225
  ac_save_LIBS="$LIBS"
 
1226
LIBS="-ldir  $LIBS"
 
1227
cat > conftest.$ac_ext <<EOF
 
1228
#line 1229 "configure"
 
1229
#include "confdefs.h"
 
1230
/* Override any gcc2 internal prototype to avoid an error.  */
 
1231
/* We use char because int might match the return type of a gcc2
 
1232
    builtin and then its argument prototype would still apply.  */
 
1233
char opendir();
 
1234
 
 
1235
int main() {
 
1236
opendir()
 
1237
; return 0; }
 
1238
EOF
 
1239
if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1240
  rm -rf conftest*
 
1241
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1242
else
 
1243
  echo "configure: failed program was:" >&5
 
1244
  cat conftest.$ac_ext >&5
 
1245
  rm -rf conftest*
 
1246
  eval "ac_cv_lib_$ac_lib_var=no"
 
1247
fi
 
1248
rm -f conftest*
 
1249
LIBS="$ac_save_LIBS"
 
1250
 
 
1251
fi
 
1252
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1253
  echo "$ac_t""yes" 1>&6
 
1254
  LIBS="$LIBS -ldir"
 
1255
else
 
1256
  echo "$ac_t""no" 1>&6
 
1257
fi
 
1258
 
 
1259
else
 
1260
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
 
1261
echo "configure:1262: checking for opendir in -lx" >&5
 
1262
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
 
1263
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1264
  echo $ac_n "(cached) $ac_c" 1>&6
 
1265
else
 
1266
  ac_save_LIBS="$LIBS"
 
1267
LIBS="-lx  $LIBS"
 
1268
cat > conftest.$ac_ext <<EOF
 
1269
#line 1270 "configure"
 
1270
#include "confdefs.h"
 
1271
/* Override any gcc2 internal prototype to avoid an error.  */
 
1272
/* We use char because int might match the return type of a gcc2
 
1273
    builtin and then its argument prototype would still apply.  */
 
1274
char opendir();
 
1275
 
 
1276
int main() {
 
1277
opendir()
 
1278
; return 0; }
 
1279
EOF
 
1280
if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1281
  rm -rf conftest*
 
1282
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1283
else
 
1284
  echo "configure: failed program was:" >&5
 
1285
  cat conftest.$ac_ext >&5
 
1286
  rm -rf conftest*
 
1287
  eval "ac_cv_lib_$ac_lib_var=no"
 
1288
fi
 
1289
rm -f conftest*
 
1290
LIBS="$ac_save_LIBS"
 
1291
 
 
1292
fi
 
1293
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1294
  echo "$ac_t""yes" 1>&6
 
1295
  LIBS="$LIBS -lx"
 
1296
else
 
1297
  echo "$ac_t""no" 1>&6
 
1298
fi
 
1299
 
 
1300
fi
 
1301
 
 
1302
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1303
echo "configure:1304: checking for ANSI C header files" >&5
 
1304
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1305
  echo $ac_n "(cached) $ac_c" 1>&6
 
1306
else
 
1307
  cat > conftest.$ac_ext <<EOF
 
1308
#line 1309 "configure"
 
1309
#include "confdefs.h"
 
1310
#include <stdlib.h>
 
1311
#include <stdarg.h>
 
1312
#include <string.h>
 
1313
#include <float.h>
 
1314
EOF
 
1315
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1316
{ (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1317
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1318
if test -z "$ac_err"; then
 
1319
  rm -rf conftest*
 
1320
  ac_cv_header_stdc=yes
 
1321
else
 
1322
  echo "$ac_err" >&5
 
1323
  echo "configure: failed program was:" >&5
 
1324
  cat conftest.$ac_ext >&5
 
1325
  rm -rf conftest*
 
1326
  ac_cv_header_stdc=no
 
1327
fi
 
1328
rm -f conftest*
 
1329
 
 
1330
if test $ac_cv_header_stdc = yes; then
 
1331
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1332
cat > conftest.$ac_ext <<EOF
 
1333
#line 1334 "configure"
 
1334
#include "confdefs.h"
 
1335
#include <string.h>
 
1336
EOF
 
1337
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1338
  egrep "memchr" >/dev/null 2>&1; then
 
1339
  :
 
1340
else
 
1341
  rm -rf conftest*
 
1342
  ac_cv_header_stdc=no
 
1343
fi
 
1344
rm -f conftest*
 
1345
 
 
1346
fi
 
1347
 
 
1348
if test $ac_cv_header_stdc = yes; then
 
1349
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1350
cat > conftest.$ac_ext <<EOF
 
1351
#line 1352 "configure"
 
1352
#include "confdefs.h"
 
1353
#include <stdlib.h>
 
1354
EOF
 
1355
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1356
  egrep "free" >/dev/null 2>&1; then
 
1357
  :
 
1358
else
 
1359
  rm -rf conftest*
 
1360
  ac_cv_header_stdc=no
 
1361
fi
 
1362
rm -f conftest*
 
1363
 
 
1364
fi
 
1365
 
 
1366
if test $ac_cv_header_stdc = yes; then
 
1367
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1368
if test "$cross_compiling" = yes; then
 
1369
  :
 
1370
else
 
1371
  cat > conftest.$ac_ext <<EOF
 
1372
#line 1373 "configure"
 
1373
#include "confdefs.h"
 
1374
#include <ctype.h>
 
1375
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1376
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1378
int main () { int i; for (i = 0; i < 256; i++)
 
1379
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1380
exit (0); }
 
1381
 
 
1382
EOF
 
1383
if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1384
then
 
1385
  :
 
1386
else
 
1387
  echo "configure: failed program was:" >&5
 
1388
  cat conftest.$ac_ext >&5
 
1389
  rm -fr conftest*
 
1390
  ac_cv_header_stdc=no
 
1391
fi
 
1392
rm -fr conftest*
 
1393
fi
 
1394
 
 
1395
fi
 
1396
fi
 
1397
 
 
1398
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1399
if test $ac_cv_header_stdc = yes; then
 
1400
  cat >> confdefs.h <<\EOF
 
1401
#define STDC_HEADERS 1
 
1402
EOF
 
1403
 
 
1404
fi
 
1405
 
 
1406
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
 
1407
echo "configure:1408: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
1408
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
 
1409
  echo $ac_n "(cached) $ac_c" 1>&6
 
1410
else
 
1411
  cat > conftest.$ac_ext <<EOF
 
1412
#line 1413 "configure"
 
1413
#include "confdefs.h"
 
1414
#include <sys/types.h>
 
1415
#include <sys/wait.h>
 
1416
#ifndef WEXITSTATUS
 
1417
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
1418
#endif
 
1419
#ifndef WIFEXITED
 
1420
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
1421
#endif
 
1422
int main() {
 
1423
int s;
 
1424
wait (&s);
 
1425
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
1426
; return 0; }
 
1427
EOF
 
1428
if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1429
  rm -rf conftest*
 
1430
  ac_cv_header_sys_wait_h=yes
 
1431
else
 
1432
  echo "configure: failed program was:" >&5
 
1433
  cat conftest.$ac_ext >&5
 
1434
  rm -rf conftest*
 
1435
  ac_cv_header_sys_wait_h=no
 
1436
fi
 
1437
rm -f conftest*
 
1438
fi
 
1439
 
 
1440
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 
1441
if test $ac_cv_header_sys_wait_h = yes; then
 
1442
  cat >> confdefs.h <<\EOF
 
1443
#define HAVE_SYS_WAIT_H 1
 
1444
EOF
 
1445
 
 
1446
fi
 
1447
 
 
1448
for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h termio.h termios.h sgtty.h unistd.h sys/param.h
 
1449
do
 
1450
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1451
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1452
echo "configure:1453: checking for $ac_hdr" >&5
 
1453
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1454
  echo $ac_n "(cached) $ac_c" 1>&6
 
1455
else
 
1456
  cat > conftest.$ac_ext <<EOF
 
1457
#line 1458 "configure"
 
1458
#include "confdefs.h"
 
1459
#include <$ac_hdr>
 
1460
EOF
 
1461
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1462
{ (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1463
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1464
if test -z "$ac_err"; then
 
1465
  rm -rf conftest*
 
1466
  eval "ac_cv_header_$ac_safe=yes"
 
1467
else
 
1468
  echo "$ac_err" >&5
 
1469
  echo "configure: failed program was:" >&5
 
1470
  cat conftest.$ac_ext >&5
 
1471
  rm -rf conftest*
 
1472
  eval "ac_cv_header_$ac_safe=no"
 
1473
fi
 
1474
rm -f conftest*
 
1475
fi
 
1476
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1477
  echo "$ac_t""yes" 1>&6
 
1478
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1479
  cat >> confdefs.h <<EOF
 
1480
#define $ac_tr_hdr 1
 
1481
EOF
 
1482
 
 
1483
else
 
1484
  echo "$ac_t""no" 1>&6
 
1485
fi
 
1486
done
 
1487
 
 
1488
 
 
1489
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1490
echo "configure:1491: checking for working const" >&5
 
1491
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1492
  echo $ac_n "(cached) $ac_c" 1>&6
 
1493
else
 
1494
  cat > conftest.$ac_ext <<EOF
 
1495
#line 1496 "configure"
 
1496
#include "confdefs.h"
 
1497
 
 
1498
int main() {
 
1499
 
 
1500
/* Ultrix mips cc rejects this.  */
 
1501
typedef int charset[2]; const charset x;
 
1502
/* SunOS 4.1.1 cc rejects this.  */
 
1503
char const *const *ccp;
 
1504
char **p;
 
1505
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1506
struct point {int x, y;};
 
1507
static struct point const zero = {0,0};
 
1508
/* AIX XL C 1.02.0.0 rejects this.
 
1509
   It does not let you subtract one const X* pointer from another in an arm
 
1510
   of an if-expression whose if-part is not a constant expression */
 
1511
const char *g = "string";
 
1512
ccp = &g + (g ? g-g : 0);
 
1513
/* HPUX 7.0 cc rejects these. */
 
1514
++ccp;
 
1515
p = (char**) ccp;
 
1516
ccp = (char const *const *) p;
 
1517
{ /* SCO 3.2v4 cc rejects this.  */
 
1518
  char *t;
 
1519
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1520
 
 
1521
  *t++ = 0;
 
1522
}
 
1523
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1524
  int x[] = {25, 17};
 
1525
  const int *foo = &x[0];
 
1526
  ++foo;
 
1527
}
 
1528
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1529
  typedef const int *iptr;
 
1530
  iptr p = 0;
 
1531
  ++p;
 
1532
}
 
1533
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1534
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1535
  struct s { int j; const int *ap[3]; };
 
1536
  struct s *b; b->j = 5;
 
1537
}
 
1538
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1539
  const int foo = 10;
 
1540
}
 
1541
 
 
1542
; return 0; }
 
1543
EOF
 
1544
if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1545
  rm -rf conftest*
 
1546
  ac_cv_c_const=yes
 
1547
else
 
1548
  echo "configure: failed program was:" >&5
 
1549
  cat conftest.$ac_ext >&5
 
1550
  rm -rf conftest*
 
1551
  ac_cv_c_const=no
 
1552
fi
 
1553
rm -f conftest*
 
1554
fi
 
1555
 
 
1556
echo "$ac_t""$ac_cv_c_const" 1>&6
 
1557
if test $ac_cv_c_const = no; then
 
1558
  cat >> confdefs.h <<\EOF
 
1559
#define const 
 
1560
EOF
 
1561
 
 
1562
fi
 
1563
 
 
1564
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
 
1565
echo "configure:1566: checking for pid_t" >&5
 
1566
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
 
1567
  echo $ac_n "(cached) $ac_c" 1>&6
 
1568
else
 
1569
  cat > conftest.$ac_ext <<EOF
 
1570
#line 1571 "configure"
 
1571
#include "confdefs.h"
 
1572
#include <sys/types.h>
 
1573
#if STDC_HEADERS
 
1574
#include <stdlib.h>
 
1575
#include <stddef.h>
 
1576
#endif
 
1577
EOF
 
1578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1579
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1580
  rm -rf conftest*
 
1581
  ac_cv_type_pid_t=yes
 
1582
else
 
1583
  rm -rf conftest*
 
1584
  ac_cv_type_pid_t=no
 
1585
fi
 
1586
rm -f conftest*
 
1587
 
 
1588
fi
 
1589
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
 
1590
if test $ac_cv_type_pid_t = no; then
 
1591
  cat >> confdefs.h <<\EOF
 
1592
#define pid_t int
 
1593
EOF
 
1594
 
 
1595
fi
 
1596
 
 
1597
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1598
echo "configure:1599: checking for size_t" >&5
 
1599
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1600
  echo $ac_n "(cached) $ac_c" 1>&6
 
1601
else
 
1602
  cat > conftest.$ac_ext <<EOF
 
1603
#line 1604 "configure"
 
1604
#include "confdefs.h"
 
1605
#include <sys/types.h>
 
1606
#if STDC_HEADERS
 
1607
#include <stdlib.h>
 
1608
#include <stddef.h>
 
1609
#endif
 
1610
EOF
 
1611
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1612
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1613
  rm -rf conftest*
 
1614
  ac_cv_type_size_t=yes
 
1615
else
 
1616
  rm -rf conftest*
 
1617
  ac_cv_type_size_t=no
 
1618
fi
 
1619
rm -f conftest*
 
1620
 
 
1621
fi
 
1622
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1623
if test $ac_cv_type_size_t = no; then
 
1624
  cat >> confdefs.h <<\EOF
 
1625
#define size_t unsigned
 
1626
EOF
 
1627
 
 
1628
fi
 
1629
 
 
1630
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
 
1631
echo "configure:1632: checking whether time.h and sys/time.h may both be included" >&5
 
1632
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
 
1633
  echo $ac_n "(cached) $ac_c" 1>&6
 
1634
else
 
1635
  cat > conftest.$ac_ext <<EOF
 
1636
#line 1637 "configure"
 
1637
#include "confdefs.h"
 
1638
#include <sys/types.h>
 
1639
#include <sys/time.h>
 
1640
#include <time.h>
 
1641
int main() {
 
1642
struct tm *tp;
 
1643
; return 0; }
 
1644
EOF
 
1645
if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1646
  rm -rf conftest*
 
1647
  ac_cv_header_time=yes
 
1648
else
 
1649
  echo "configure: failed program was:" >&5
 
1650
  cat conftest.$ac_ext >&5
 
1651
  rm -rf conftest*
 
1652
  ac_cv_header_time=no
 
1653
fi
 
1654
rm -f conftest*
 
1655
fi
 
1656
 
 
1657
echo "$ac_t""$ac_cv_header_time" 1>&6
 
1658
if test $ac_cv_header_time = yes; then
 
1659
  cat >> confdefs.h <<\EOF
 
1660
#define TIME_WITH_SYS_TIME 1
 
1661
EOF
 
1662
 
 
1663
fi
 
1664
 
 
1665
 
 
1666
if test "$host_os" != "cygwin"; then
 
1667
  echo $ac_n "checking for fd_set""... $ac_c" 1>&6
 
1668
echo "configure:1669: checking for fd_set" >&5
 
1669
if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then
 
1670
  echo $ac_n "(cached) $ac_c" 1>&6
 
1671
else
 
1672
  cat > conftest.$ac_ext <<EOF
 
1673
#line 1674 "configure"
 
1674
#include "confdefs.h"
 
1675
#include <sys/types.h>
 
1676
#if STDC_HEADERS
 
1677
#include <stdlib.h>
 
1678
#include <stddef.h>
 
1679
#endif
 
1680
EOF
 
1681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1682
  egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1683
  rm -rf conftest*
 
1684
  ac_cv_type_fd_set=yes
 
1685
else
 
1686
  rm -rf conftest*
 
1687
  ac_cv_type_fd_set=no
 
1688
fi
 
1689
rm -f conftest*
 
1690
 
 
1691
fi
 
1692
echo "$ac_t""$ac_cv_type_fd_set" 1>&6
 
1693
if test $ac_cv_type_fd_set = no; then
 
1694
  cat >> confdefs.h <<\EOF
 
1695
#define fd_set int
 
1696
EOF
 
1697
 
 
1698
fi
 
1699
 
 
1700
fi
 
1701
case "$host" in
 
1702
  *-*-minix*)
 
1703
    cat >> confdefs.h <<\EOF
 
1704
#define UNDEF_SIGTSTP 1
 
1705
EOF
 
1706
;;
 
1707
esac
 
1708
 
 
1709
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
1710
# for constant arguments.  Useless!
 
1711
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
1712
echo "configure:1713: checking for working alloca.h" >&5
 
1713
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
1714
  echo $ac_n "(cached) $ac_c" 1>&6
 
1715
else
 
1716
  cat > conftest.$ac_ext <<EOF
 
1717
#line 1718 "configure"
 
1718
#include "confdefs.h"
 
1719
#include <alloca.h>
 
1720
int main() {
 
1721
char *p = alloca(2 * sizeof(int));
 
1722
; return 0; }
 
1723
EOF
 
1724
if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1725
  rm -rf conftest*
 
1726
  ac_cv_header_alloca_h=yes
 
1727
else
 
1728
  echo "configure: failed program was:" >&5
 
1729
  cat conftest.$ac_ext >&5
 
1730
  rm -rf conftest*
 
1731
  ac_cv_header_alloca_h=no
 
1732
fi
 
1733
rm -f conftest*
 
1734
fi
 
1735
 
 
1736
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
1737
if test $ac_cv_header_alloca_h = yes; then
 
1738
  cat >> confdefs.h <<\EOF
 
1739
#define HAVE_ALLOCA_H 1
 
1740
EOF
 
1741
 
 
1742
fi
 
1743
 
 
1744
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
1745
echo "configure:1746: checking for alloca" >&5
 
1746
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
1747
  echo $ac_n "(cached) $ac_c" 1>&6
 
1748
else
 
1749
  cat > conftest.$ac_ext <<EOF
 
1750
#line 1751 "configure"
 
1751
#include "confdefs.h"
 
1752
 
 
1753
#ifdef __GNUC__
 
1754
# define alloca __builtin_alloca
 
1755
#else
 
1756
# ifdef _MSC_VER
 
1757
#  include <malloc.h>
 
1758
#  define alloca _alloca
 
1759
# else
 
1760
#  if HAVE_ALLOCA_H
 
1761
#   include <alloca.h>
 
1762
#  else
 
1763
#   ifdef _AIX
 
1764
 #pragma alloca
 
1765
#   else
 
1766
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
1767
char *alloca ();
 
1768
#    endif
 
1769
#   endif
 
1770
#  endif
 
1771
# endif
 
1772
#endif
 
1773
 
 
1774
int main() {
 
1775
char *p = (char *) alloca(1);
 
1776
; return 0; }
 
1777
EOF
 
1778
if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1779
  rm -rf conftest*
 
1780
  ac_cv_func_alloca_works=yes
 
1781
else
 
1782
  echo "configure: failed program was:" >&5
 
1783
  cat conftest.$ac_ext >&5
 
1784
  rm -rf conftest*
 
1785
  ac_cv_func_alloca_works=no
 
1786
fi
 
1787
rm -f conftest*
 
1788
fi
 
1789
 
 
1790
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
1791
if test $ac_cv_func_alloca_works = yes; then
 
1792
  cat >> confdefs.h <<\EOF
 
1793
#define HAVE_ALLOCA 1
 
1794
EOF
 
1795
 
 
1796
fi
 
1797
 
 
1798
if test $ac_cv_func_alloca_works = no; then
 
1799
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
1800
  # that cause trouble.  Some versions do not even contain alloca or
 
1801
  # contain a buggy version.  If you still want to use their alloca,
 
1802
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
1803
  ALLOCA=alloca.${ac_objext}
 
1804
  cat >> confdefs.h <<\EOF
 
1805
#define C_ALLOCA 1
 
1806
EOF
 
1807
 
 
1808
 
 
1809
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
1810
echo "configure:1811: checking whether alloca needs Cray hooks" >&5
 
1811
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
1812
  echo $ac_n "(cached) $ac_c" 1>&6
 
1813
else
 
1814
  cat > conftest.$ac_ext <<EOF
 
1815
#line 1816 "configure"
 
1816
#include "confdefs.h"
 
1817
#if defined(CRAY) && ! defined(CRAY2)
 
1818
webecray
 
1819
#else
 
1820
wenotbecray
 
1821
#endif
 
1822
 
 
1823
EOF
 
1824
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1825
  egrep "webecray" >/dev/null 2>&1; then
 
1826
  rm -rf conftest*
 
1827
  ac_cv_os_cray=yes
 
1828
else
 
1829
  rm -rf conftest*
 
1830
  ac_cv_os_cray=no
 
1831
fi
 
1832
rm -f conftest*
 
1833
 
 
1834
fi
 
1835
 
 
1836
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
1837
if test $ac_cv_os_cray = yes; then
 
1838
for ac_func in _getb67 GETB67 getb67; do
 
1839
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1840
echo "configure:1841: checking for $ac_func" >&5
 
1841
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1842
  echo $ac_n "(cached) $ac_c" 1>&6
 
1843
else
 
1844
  cat > conftest.$ac_ext <<EOF
 
1845
#line 1846 "configure"
 
1846
#include "confdefs.h"
 
1847
/* System header to define __stub macros and hopefully few prototypes,
 
1848
    which can conflict with char $ac_func(); below.  */
 
1849
#include <assert.h>
 
1850
/* Override any gcc2 internal prototype to avoid an error.  */
 
1851
/* We use char because int might match the return type of a gcc2
 
1852
    builtin and then its argument prototype would still apply.  */
 
1853
char $ac_func();
 
1854
 
 
1855
int main() {
 
1856
 
 
1857
/* The GNU C library defines this for functions which it implements
 
1858
    to always fail with ENOSYS.  Some functions are actually named
 
1859
    something starting with __ and the normal name is an alias.  */
 
1860
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1861
choke me
 
1862
#else
 
1863
$ac_func();
 
1864
#endif
 
1865
 
 
1866
; return 0; }
 
1867
EOF
 
1868
if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1869
  rm -rf conftest*
 
1870
  eval "ac_cv_func_$ac_func=yes"
 
1871
else
 
1872
  echo "configure: failed program was:" >&5
 
1873
  cat conftest.$ac_ext >&5
 
1874
  rm -rf conftest*
 
1875
  eval "ac_cv_func_$ac_func=no"
 
1876
fi
 
1877
rm -f conftest*
 
1878
fi
 
1879
 
 
1880
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1881
  echo "$ac_t""yes" 1>&6
 
1882
  cat >> confdefs.h <<EOF
 
1883
#define CRAY_STACKSEG_END $ac_func
 
1884
EOF
 
1885
 
 
1886
  break
 
1887
else
 
1888
  echo "$ac_t""no" 1>&6
 
1889
fi
 
1890
 
 
1891
done
 
1892
fi
 
1893
 
 
1894
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
1895
echo "configure:1896: checking stack direction for C alloca" >&5
 
1896
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
1897
  echo $ac_n "(cached) $ac_c" 1>&6
 
1898
else
 
1899
  if test "$cross_compiling" = yes; then
 
1900
  ac_cv_c_stack_direction=0
 
1901
else
 
1902
  cat > conftest.$ac_ext <<EOF
 
1903
#line 1904 "configure"
 
1904
#include "confdefs.h"
 
1905
find_stack_direction ()
 
1906
{
 
1907
  static char *addr = 0;
 
1908
  auto char dummy;
 
1909
  if (addr == 0)
 
1910
    {
 
1911
      addr = &dummy;
 
1912
      return find_stack_direction ();
 
1913
    }
 
1914
  else
 
1915
    return (&dummy > addr) ? 1 : -1;
 
1916
}
 
1917
main ()
 
1918
{
 
1919
  exit (find_stack_direction() < 0);
 
1920
}
 
1921
EOF
 
1922
if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1923
then
 
1924
  ac_cv_c_stack_direction=1
 
1925
else
 
1926
  echo "configure: failed program was:" >&5
 
1927
  cat conftest.$ac_ext >&5
 
1928
  rm -fr conftest*
 
1929
  ac_cv_c_stack_direction=-1
 
1930
fi
 
1931
rm -fr conftest*
 
1932
fi
 
1933
 
 
1934
fi
 
1935
 
 
1936
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
1937
cat >> confdefs.h <<EOF
 
1938
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
1939
EOF
 
1940
 
 
1941
fi
 
1942
 
 
1943
if test $ac_cv_prog_gcc = yes; then
 
1944
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
 
1945
echo "configure:1946: checking whether ${CC-cc} needs -traditional" >&5
 
1946
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
 
1947
  echo $ac_n "(cached) $ac_c" 1>&6
 
1948
else
 
1949
    ac_pattern="Autoconf.*'x'"
 
1950
  cat > conftest.$ac_ext <<EOF
 
1951
#line 1952 "configure"
 
1952
#include "confdefs.h"
 
1953
#include <sgtty.h>
 
1954
Autoconf TIOCGETP
 
1955
EOF
 
1956
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1957
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
1958
  rm -rf conftest*
 
1959
  ac_cv_prog_gcc_traditional=yes
 
1960
else
 
1961
  rm -rf conftest*
 
1962
  ac_cv_prog_gcc_traditional=no
 
1963
fi
 
1964
rm -f conftest*
 
1965
 
 
1966
 
 
1967
  if test $ac_cv_prog_gcc_traditional = no; then
 
1968
    cat > conftest.$ac_ext <<EOF
 
1969
#line 1970 "configure"
 
1970
#include "confdefs.h"
 
1971
#include <termio.h>
 
1972
Autoconf TCGETA
 
1973
EOF
 
1974
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1975
  egrep "$ac_pattern" >/dev/null 2>&1; then
 
1976
  rm -rf conftest*
 
1977
  ac_cv_prog_gcc_traditional=yes
 
1978
fi
 
1979
rm -f conftest*
 
1980
 
 
1981
  fi
 
1982
fi
 
1983
 
 
1984
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
 
1985
  if test $ac_cv_prog_gcc_traditional = yes; then
 
1986
    CC="$CC -traditional"
 
1987
  fi
 
1988
fi
 
1989
 
 
1990
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
 
1991
echo "configure:1992: checking for 8-bit clean memcmp" >&5
 
1992
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
 
1993
  echo $ac_n "(cached) $ac_c" 1>&6
 
1994
else
 
1995
  if test "$cross_compiling" = yes; then
 
1996
  ac_cv_func_memcmp_clean=no
 
1997
else
 
1998
  cat > conftest.$ac_ext <<EOF
 
1999
#line 2000 "configure"
 
2000
#include "confdefs.h"
 
2001
 
 
2002
main()
 
2003
{
 
2004
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
2005
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
 
2006
}
 
2007
 
 
2008
EOF
 
2009
if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2010
then
 
2011
  ac_cv_func_memcmp_clean=yes
 
2012
else
 
2013
  echo "configure: failed program was:" >&5
 
2014
  cat conftest.$ac_ext >&5
 
2015
  rm -fr conftest*
 
2016
  ac_cv_func_memcmp_clean=no
 
2017
fi
 
2018
rm -fr conftest*
 
2019
fi
 
2020
 
 
2021
fi
 
2022
 
 
2023
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
 
2024
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
 
2025
 
 
2026
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
2027
echo "configure:2028: checking return type of signal handlers" >&5
 
2028
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
2029
  echo $ac_n "(cached) $ac_c" 1>&6
 
2030
else
 
2031
  cat > conftest.$ac_ext <<EOF
 
2032
#line 2033 "configure"
 
2033
#include "confdefs.h"
 
2034
#include <sys/types.h>
 
2035
#include <signal.h>
 
2036
#ifdef signal
 
2037
#undef signal
 
2038
#endif
 
2039
#ifdef __cplusplus
 
2040
extern "C" void (*signal (int, void (*)(int)))(int);
 
2041
#else
 
2042
void (*signal ()) ();
 
2043
#endif
 
2044
 
 
2045
int main() {
 
2046
int i;
 
2047
; return 0; }
 
2048
EOF
 
2049
if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2050
  rm -rf conftest*
 
2051
  ac_cv_type_signal=void
 
2052
else
 
2053
  echo "configure: failed program was:" >&5
 
2054
  cat conftest.$ac_ext >&5
 
2055
  rm -rf conftest*
 
2056
  ac_cv_type_signal=int
 
2057
fi
 
2058
rm -f conftest*
 
2059
fi
 
2060
 
 
2061
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
2062
cat >> confdefs.h <<EOF
 
2063
#define RETSIGTYPE $ac_cv_type_signal
 
2064
EOF
 
2065
 
 
2066
 
 
2067
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
 
2068
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
 
2069
echo "configure:2070: checking for vfork.h" >&5
 
2070
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2071
  echo $ac_n "(cached) $ac_c" 1>&6
 
2072
else
 
2073
  cat > conftest.$ac_ext <<EOF
 
2074
#line 2075 "configure"
 
2075
#include "confdefs.h"
 
2076
#include <vfork.h>
 
2077
EOF
 
2078
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2079
{ (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2080
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2081
if test -z "$ac_err"; then
 
2082
  rm -rf conftest*
 
2083
  eval "ac_cv_header_$ac_safe=yes"
 
2084
else
 
2085
  echo "$ac_err" >&5
 
2086
  echo "configure: failed program was:" >&5
 
2087
  cat conftest.$ac_ext >&5
 
2088
  rm -rf conftest*
 
2089
  eval "ac_cv_header_$ac_safe=no"
 
2090
fi
 
2091
rm -f conftest*
 
2092
fi
 
2093
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2094
  echo "$ac_t""yes" 1>&6
 
2095
  cat >> confdefs.h <<\EOF
 
2096
#define HAVE_VFORK_H 1
 
2097
EOF
 
2098
 
 
2099
else
 
2100
  echo "$ac_t""no" 1>&6
 
2101
fi
 
2102
 
 
2103
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
 
2104
echo "configure:2105: checking for working vfork" >&5
 
2105
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
 
2106
  echo $ac_n "(cached) $ac_c" 1>&6
 
2107
else
 
2108
  if test "$cross_compiling" = yes; then
 
2109
  echo $ac_n "checking for vfork""... $ac_c" 1>&6
 
2110
echo "configure:2111: checking for vfork" >&5
 
2111
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
 
2112
  echo $ac_n "(cached) $ac_c" 1>&6
 
2113
else
 
2114
  cat > conftest.$ac_ext <<EOF
 
2115
#line 2116 "configure"
 
2116
#include "confdefs.h"
 
2117
/* System header to define __stub macros and hopefully few prototypes,
 
2118
    which can conflict with char vfork(); below.  */
 
2119
#include <assert.h>
 
2120
/* Override any gcc2 internal prototype to avoid an error.  */
 
2121
/* We use char because int might match the return type of a gcc2
 
2122
    builtin and then its argument prototype would still apply.  */
 
2123
char vfork();
 
2124
 
 
2125
int main() {
 
2126
 
 
2127
/* The GNU C library defines this for functions which it implements
 
2128
    to always fail with ENOSYS.  Some functions are actually named
 
2129
    something starting with __ and the normal name is an alias.  */
 
2130
#if defined (__stub_vfork) || defined (__stub___vfork)
 
2131
choke me
 
2132
#else
 
2133
vfork();
 
2134
#endif
 
2135
 
 
2136
; return 0; }
 
2137
EOF
 
2138
if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2139
  rm -rf conftest*
 
2140
  eval "ac_cv_func_vfork=yes"
 
2141
else
 
2142
  echo "configure: failed program was:" >&5
 
2143
  cat conftest.$ac_ext >&5
 
2144
  rm -rf conftest*
 
2145
  eval "ac_cv_func_vfork=no"
 
2146
fi
 
2147
rm -f conftest*
 
2148
fi
 
2149
 
 
2150
if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
 
2151
  echo "$ac_t""yes" 1>&6
 
2152
  :
 
2153
else
 
2154
  echo "$ac_t""no" 1>&6
 
2155
fi
 
2156
 
 
2157
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
2158
else
 
2159
  cat > conftest.$ac_ext <<EOF
 
2160
#line 2161 "configure"
 
2161
#include "confdefs.h"
 
2162
/* Thanks to Paul Eggert for this test.  */
 
2163
#include <stdio.h>
 
2164
#include <sys/types.h>
 
2165
#include <sys/stat.h>
 
2166
#ifdef HAVE_UNISTD_H
 
2167
#include <unistd.h>
 
2168
#endif
 
2169
#ifdef HAVE_VFORK_H
 
2170
#include <vfork.h>
 
2171
#endif
 
2172
/* On some sparc systems, changes by the child to local and incoming
 
2173
   argument registers are propagated back to the parent.
 
2174
   The compiler is told about this with #include <vfork.h>,
 
2175
   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
 
2176
   Test for this by using a static variable whose address
 
2177
   is put into a register that is clobbered by the vfork.  */
 
2178
static
 
2179
#ifdef __cplusplus
 
2180
sparc_address_test (int arg)
 
2181
#else
 
2182
sparc_address_test (arg) int arg;
 
2183
#endif
 
2184
{
 
2185
  static pid_t child;
 
2186
  if (!child) {
 
2187
    child = vfork ();
 
2188
    if (child < 0) {
 
2189
      perror ("vfork");
 
2190
      _exit(2);
 
2191
    }
 
2192
    if (!child) {
 
2193
      arg = getpid();
 
2194
      write(-1, "", 0);
 
2195
      _exit (arg);
 
2196
    }
 
2197
  }
 
2198
}
 
2199
main() {
 
2200
  pid_t parent = getpid ();
 
2201
  pid_t child;
 
2202
 
 
2203
  sparc_address_test ();
 
2204
 
 
2205
  child = vfork ();
 
2206
 
 
2207
  if (child == 0) {
 
2208
    /* Here is another test for sparc vfork register problems.
 
2209
       This test uses lots of local variables, at least
 
2210
       as many local variables as main has allocated so far
 
2211
       including compiler temporaries.  4 locals are enough for
 
2212
       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
 
2213
       A buggy compiler should reuse the register of parent
 
2214
       for one of the local variables, since it will think that
 
2215
       parent can't possibly be used any more in this routine.
 
2216
       Assigning to the local variable will thus munge parent
 
2217
       in the parent process.  */
 
2218
    pid_t
 
2219
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
2220
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
2221
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
2222
       use the same hardware register for all 8 local variables.  */
 
2223
    if (p != p1 || p != p2 || p != p3 || p != p4
 
2224
        || p != p5 || p != p6 || p != p7)
 
2225
      _exit(1);
 
2226
 
 
2227
    /* On some systems (e.g. IRIX 3.3),
 
2228
       vfork doesn't separate parent from child file descriptors.
 
2229
       If the child closes a descriptor before it execs or exits,
 
2230
       this munges the parent's descriptor as well.
 
2231
       Test for this by closing stdout in the child.  */
 
2232
    _exit(close(fileno(stdout)) != 0);
 
2233
  } else {
 
2234
    int status;
 
2235
    struct stat st;
 
2236
 
 
2237
    while (wait(&status) != child)
 
2238
      ;
 
2239
    exit(
 
2240
         /* Was there some problem with vforking?  */
 
2241
         child < 0
 
2242
 
 
2243
         /* Did the child fail?  (This shouldn't happen.)  */
 
2244
         || status
 
2245
 
 
2246
         /* Did the vfork/compiler bug occur?  */
 
2247
         || parent != getpid()
 
2248
 
 
2249
         /* Did the file descriptor bug occur?  */
 
2250
         || fstat(fileno(stdout), &st) != 0
 
2251
         );
 
2252
  }
 
2253
}
 
2254
EOF
 
2255
if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2256
then
 
2257
  ac_cv_func_vfork_works=yes
 
2258
else
 
2259
  echo "configure: failed program was:" >&5
 
2260
  cat conftest.$ac_ext >&5
 
2261
  rm -fr conftest*
 
2262
  ac_cv_func_vfork_works=no
 
2263
fi
 
2264
rm -fr conftest*
 
2265
fi
 
2266
 
 
2267
fi
 
2268
 
 
2269
echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
 
2270
if test $ac_cv_func_vfork_works = no; then
 
2271
  cat >> confdefs.h <<\EOF
 
2272
#define vfork fork
 
2273
EOF
 
2274
 
 
2275
fi
 
2276
 
 
2277
for ac_func in getcwd rmdir rename opendir select mkstemp bcopy bzero bcmp
 
2278
do
 
2279
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2280
echo "configure:2281: checking for $ac_func" >&5
 
2281
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2282
  echo $ac_n "(cached) $ac_c" 1>&6
 
2283
else
 
2284
  cat > conftest.$ac_ext <<EOF
 
2285
#line 2286 "configure"
 
2286
#include "confdefs.h"
 
2287
/* System header to define __stub macros and hopefully few prototypes,
 
2288
    which can conflict with char $ac_func(); below.  */
 
2289
#include <assert.h>
 
2290
/* Override any gcc2 internal prototype to avoid an error.  */
 
2291
/* We use char because int might match the return type of a gcc2
 
2292
    builtin and then its argument prototype would still apply.  */
 
2293
char $ac_func();
 
2294
 
 
2295
int main() {
 
2296
 
 
2297
/* The GNU C library defines this for functions which it implements
 
2298
    to always fail with ENOSYS.  Some functions are actually named
 
2299
    something starting with __ and the normal name is an alias.  */
 
2300
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2301
choke me
 
2302
#else
 
2303
$ac_func();
 
2304
#endif
 
2305
 
 
2306
; return 0; }
 
2307
EOF
 
2308
if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2309
  rm -rf conftest*
 
2310
  eval "ac_cv_func_$ac_func=yes"
 
2311
else
 
2312
  echo "configure: failed program was:" >&5
 
2313
  cat conftest.$ac_ext >&5
 
2314
  rm -rf conftest*
 
2315
  eval "ac_cv_func_$ac_func=no"
 
2316
fi
 
2317
rm -f conftest*
 
2318
fi
 
2319
 
 
2320
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2321
  echo "$ac_t""yes" 1>&6
 
2322
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2323
  cat >> confdefs.h <<EOF
 
2324
#define $ac_tr_func 1
 
2325
EOF
 
2326
 
 
2327
else
 
2328
  echo "$ac_t""no" 1>&6
 
2329
fi
 
2330
done
 
2331
 
 
2332
for ac_func in rindex symlink dup2 sigprocmask getgroups
 
2333
do
 
2334
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2335
echo "configure:2336: checking for $ac_func" >&5
 
2336
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2337
  echo $ac_n "(cached) $ac_c" 1>&6
 
2338
else
 
2339
  cat > conftest.$ac_ext <<EOF
 
2340
#line 2341 "configure"
 
2341
#include "confdefs.h"
 
2342
/* System header to define __stub macros and hopefully few prototypes,
 
2343
    which can conflict with char $ac_func(); below.  */
 
2344
#include <assert.h>
 
2345
/* Override any gcc2 internal prototype to avoid an error.  */
 
2346
/* We use char because int might match the return type of a gcc2
 
2347
    builtin and then its argument prototype would still apply.  */
 
2348
char $ac_func();
 
2349
 
 
2350
int main() {
 
2351
 
 
2352
/* The GNU C library defines this for functions which it implements
 
2353
    to always fail with ENOSYS.  Some functions are actually named
 
2354
    something starting with __ and the normal name is an alias.  */
 
2355
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2356
choke me
 
2357
#else
 
2358
$ac_func();
 
2359
#endif
 
2360
 
 
2361
; return 0; }
 
2362
EOF
 
2363
if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2364
  rm -rf conftest*
 
2365
  eval "ac_cv_func_$ac_func=yes"
 
2366
else
 
2367
  echo "configure: failed program was:" >&5
 
2368
  cat conftest.$ac_ext >&5
 
2369
  rm -rf conftest*
 
2370
  eval "ac_cv_func_$ac_func=no"
 
2371
fi
 
2372
rm -f conftest*
 
2373
fi
 
2374
 
 
2375
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2376
  echo "$ac_t""yes" 1>&6
 
2377
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2378
  cat >> confdefs.h <<EOF
 
2379
#define $ac_tr_func 1
 
2380
EOF
 
2381
 
 
2382
else
 
2383
  echo "$ac_t""no" 1>&6
 
2384
fi
 
2385
done
 
2386
 
 
2387
 
 
2388
# Extract the first word of "cp", so it can be a program name with args.
 
2389
set dummy cp; ac_word=$2
 
2390
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2391
echo "configure:2392: checking for $ac_word" >&5
 
2392
if eval "test \"`echo '$''{'ac_cv_path_cp_cmd'+set}'`\" = set"; then
 
2393
  echo $ac_n "(cached) $ac_c" 1>&6
 
2394
else
 
2395
  case "$cp_cmd" in
 
2396
  /*)
 
2397
  ac_cv_path_cp_cmd="$cp_cmd" # Let the user override the test with a path.
 
2398
  ;;
 
2399
  ?:/*)                  
 
2400
  ac_cv_path_cp_cmd="$cp_cmd" # Let the user override the test with a dos path.
 
2401
  ;;
 
2402
  *)
 
2403
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2404
  ac_dummy="$PATH"
 
2405
  for ac_dir in $ac_dummy; do 
 
2406
    test -z "$ac_dir" && ac_dir=.
 
2407
    if test -f $ac_dir/$ac_word; then
 
2408
      ac_cv_path_cp_cmd="$ac_dir/$ac_word"
 
2409
      break
 
2410
    fi
 
2411
  done
 
2412
  IFS="$ac_save_ifs"
 
2413
  ;;
 
2414
esac
 
2415
fi
 
2416
cp_cmd="$ac_cv_path_cp_cmd"
 
2417
if test -n "$cp_cmd"; then
 
2418
  echo "$ac_t""$cp_cmd" 1>&6
 
2419
else
 
2420
  echo "$ac_t""no" 1>&6
 
2421
fi
 
2422
 
 
2423
cat >> confdefs.h <<EOF
 
2424
#define CP_CMD "$cp_cmd"
 
2425
EOF
 
2426
 
 
2427
# Extract the first word of "mv", so it can be a program name with args.
 
2428
set dummy mv; ac_word=$2
 
2429
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2430
echo "configure:2431: checking for $ac_word" >&5
 
2431
if eval "test \"`echo '$''{'ac_cv_path_mv_cmd'+set}'`\" = set"; then
 
2432
  echo $ac_n "(cached) $ac_c" 1>&6
 
2433
else
 
2434
  case "$mv_cmd" in
 
2435
  /*)
 
2436
  ac_cv_path_mv_cmd="$mv_cmd" # Let the user override the test with a path.
 
2437
  ;;
 
2438
  ?:/*)                  
 
2439
  ac_cv_path_mv_cmd="$mv_cmd" # Let the user override the test with a dos path.
 
2440
  ;;
 
2441
  *)
 
2442
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2443
  ac_dummy="$PATH"
 
2444
  for ac_dir in $ac_dummy; do 
 
2445
    test -z "$ac_dir" && ac_dir=.
 
2446
    if test -f $ac_dir/$ac_word; then
 
2447
      ac_cv_path_mv_cmd="$ac_dir/$ac_word"
 
2448
      break
 
2449
    fi
 
2450
  done
 
2451
  IFS="$ac_save_ifs"
 
2452
  ;;
 
2453
esac
 
2454
fi
 
2455
mv_cmd="$ac_cv_path_mv_cmd"
 
2456
if test -n "$mv_cmd"; then
 
2457
  echo "$ac_t""$mv_cmd" 1>&6
 
2458
else
 
2459
  echo "$ac_t""no" 1>&6
 
2460
fi
 
2461
 
 
2462
cat >> confdefs.h <<EOF
 
2463
#define MV_CMD "$mv_cmd"
 
2464
EOF
 
2465
 
 
2466
# Extract the first word of "ls", so it can be a program name with args.
 
2467
set dummy ls; ac_word=$2
 
2468
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2469
echo "configure:2470: checking for $ac_word" >&5
 
2470
if eval "test \"`echo '$''{'ac_cv_path_ls_cmd'+set}'`\" = set"; then
 
2471
  echo $ac_n "(cached) $ac_c" 1>&6
 
2472
else
 
2473
  case "$ls_cmd" in
 
2474
  /*)
 
2475
  ac_cv_path_ls_cmd="$ls_cmd" # Let the user override the test with a path.
 
2476
  ;;
 
2477
  ?:/*)                  
 
2478
  ac_cv_path_ls_cmd="$ls_cmd" # Let the user override the test with a dos path.
 
2479
  ;;
 
2480
  *)
 
2481
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2482
  ac_dummy="$PATH"
 
2483
  for ac_dir in $ac_dummy; do 
 
2484
    test -z "$ac_dir" && ac_dir=.
 
2485
    if test -f $ac_dir/$ac_word; then
 
2486
      ac_cv_path_ls_cmd="$ac_dir/$ac_word"
 
2487
      break
 
2488
    fi
 
2489
  done
 
2490
  IFS="$ac_save_ifs"
 
2491
  ;;
 
2492
esac
 
2493
fi
 
2494
ls_cmd="$ac_cv_path_ls_cmd"
 
2495
if test -n "$ls_cmd"; then
 
2496
  echo "$ac_t""$ls_cmd" 1>&6
 
2497
else
 
2498
  echo "$ac_t""no" 1>&6
 
2499
fi
 
2500
 
 
2501
cat >> confdefs.h <<EOF
 
2502
#define LS_CMD "$ls_cmd"
 
2503
EOF
 
2504
 
 
2505
# Extract the first word of "rmdir", so it can be a program name with args.
 
2506
set dummy rmdir; ac_word=$2
 
2507
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2508
echo "configure:2509: checking for $ac_word" >&5
 
2509
if eval "test \"`echo '$''{'ac_cv_path_rmdir_cmd'+set}'`\" = set"; then
 
2510
  echo $ac_n "(cached) $ac_c" 1>&6
 
2511
else
 
2512
  case "$rmdir_cmd" in
 
2513
  /*)
 
2514
  ac_cv_path_rmdir_cmd="$rmdir_cmd" # Let the user override the test with a path.
 
2515
  ;;
 
2516
  ?:/*)                  
 
2517
  ac_cv_path_rmdir_cmd="$rmdir_cmd" # Let the user override the test with a dos path.
 
2518
  ;;
 
2519
  *)
 
2520
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2521
  ac_dummy="$PATH"
 
2522
  for ac_dir in $ac_dummy; do 
 
2523
    test -z "$ac_dir" && ac_dir=.
 
2524
    if test -f $ac_dir/$ac_word; then
 
2525
      ac_cv_path_rmdir_cmd="$ac_dir/$ac_word"
 
2526
      break
 
2527
    fi
 
2528
  done
 
2529
  IFS="$ac_save_ifs"
 
2530
  ;;
 
2531
esac
 
2532
fi
 
2533
rmdir_cmd="$ac_cv_path_rmdir_cmd"
 
2534
if test -n "$rmdir_cmd"; then
 
2535
  echo "$ac_t""$rmdir_cmd" 1>&6
 
2536
else
 
2537
  echo "$ac_t""no" 1>&6
 
2538
fi
 
2539
 
 
2540
cat >> confdefs.h <<EOF
 
2541
#define RMDIR_CMD "$rmdir_cmd"
 
2542
EOF
 
2543
 
 
2544
 
 
2545
echo $ac_n "checking if --enable-canna option specified""... $ac_c" 1>&6
 
2546
echo "configure:2547: checking if --enable-canna option specified" >&5
 
2547
# Check whether --enable-canna or --disable-canna was given.
 
2548
if test "${enable_canna+set}" = set; then
 
2549
  enableval="$enable_canna"
 
2550
  cv_canna="yes"; cannapath=$enableval
 
2551
else
 
2552
  cv_canna="no"
 
2553
fi
 
2554
 
 
2555
echo "$ac_t""$cv_canna" 1>&6
 
2556
if test "$cv_canna" = "yes"; then
 
2557
 
 
2558
        if test "$cannapath" = "yes"; then
 
2559
                case "$host_os" in
 
2560
                bsdi2.1)
 
2561
                        cannapath="/usr/contrib/canna";;
 
2562
                netbsd*)
 
2563
                        cannapath="/usr/pkg";;
 
2564
                freebsd2.2*)
 
2565
                        cannapath="/usr/local";;
 
2566
                freebsd2*)
 
2567
                        cannapath="/usr/local/canna";;
 
2568
                freebsd*)
 
2569
                        cannapath="/usr/local";;
 
2570
                *)
 
2571
                        cannapath="/usr/local/canna";;
 
2572
                esac
 
2573
        fi
 
2574
 
 
2575
        if test "$cannapath" != "yes"; then
 
2576
                CFLAGS="-I$cannapath/include $CFLAGS"
 
2577
                LDFLAGS="-L$cannapath/lib $LDFLAGS"
 
2578
        fi
 
2579
 
 
2580
        echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
 
2581
echo "configure:2582: checking for canna/jrkanji.h" >&5
 
2582
        if eval "test \"`echo '$''{'ac_cv_cannahdrcheck'+set}'`\" = set"; then
 
2583
  echo $ac_n "(cached) $ac_c" 1>&6
 
2584
else
 
2585
        cat > conftest.$ac_ext <<EOF
 
2586
#line 2587 "configure"
 
2587
#include "confdefs.h"
 
2588
#include <canna/jrkanji.h>
 
2589
int main() {
 
2590
jrKanjiStatus ks;
 
2591
; return 0; }
 
2592
EOF
 
2593
if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2594
  rm -rf conftest*
 
2595
  ac_cv_cannahdrcheck="yes"
 
2596
else
 
2597
  echo "configure: failed program was:" >&5
 
2598
  cat conftest.$ac_ext >&5
 
2599
  rm -rf conftest*
 
2600
  ac_cv_cannahdrcheck="no"
 
2601
fi
 
2602
rm -f conftest*
 
2603
fi
 
2604
 
 
2605
        echo "$ac_t""$ac_cv_cannahdrcheck" 1>&6
 
2606
        if test "$cannahdrcheck" = "no"; then
 
2607
                echo -n "Fatal error: no canna header in suggested path"
 
2608
                if test "$cannapath" != "yes"; then
 
2609
                        echo ", $cannapath/include."
 
2610
                else
 
2611
                        echo "."
 
2612
                fi
 
2613
                exit 1
 
2614
        fi
 
2615
 
 
2616
        echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
 
2617
echo "configure:2618: checking for jrKanjiControl in -lcanna" >&5
 
2618
ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
 
2619
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2620
  echo $ac_n "(cached) $ac_c" 1>&6
 
2621
else
 
2622
  ac_save_LIBS="$LIBS"
 
2623
LIBS="-lcanna  $LIBS"
 
2624
cat > conftest.$ac_ext <<EOF
 
2625
#line 2626 "configure"
 
2626
#include "confdefs.h"
 
2627
/* Override any gcc2 internal prototype to avoid an error.  */
 
2628
/* We use char because int might match the return type of a gcc2
 
2629
    builtin and then its argument prototype would still apply.  */
 
2630
char jrKanjiControl();
 
2631
 
 
2632
int main() {
 
2633
jrKanjiControl()
 
2634
; return 0; }
 
2635
EOF
 
2636
if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2637
  rm -rf conftest*
 
2638
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2639
else
 
2640
  echo "configure: failed program was:" >&5
 
2641
  cat conftest.$ac_ext >&5
 
2642
  rm -rf conftest*
 
2643
  eval "ac_cv_lib_$ac_lib_var=no"
 
2644
fi
 
2645
rm -f conftest*
 
2646
LIBS="$ac_save_LIBS"
 
2647
 
 
2648
fi
 
2649
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2650
  echo "$ac_t""yes" 1>&6
 
2651
  cv_cannalibcheck="yes"
 
2652
else
 
2653
  echo "$ac_t""no" 1>&6
 
2654
cv_cannalibcheck="no"
 
2655
fi
 
2656
 
 
2657
        if test "$cannalibcheck" = "no"; then
 
2658
                echo "Fatal error: no canna library in suggested path"
 
2659
                if test "$cannapath" != "yes"; then
 
2660
                        echo ", $cannapath/lib."
 
2661
                else
 
2662
                        echo "."
 
2663
                fi
 
2664
                exit 1
 
2665
        fi
 
2666
        LIBS="-lcanna $LIBS"
 
2667
        cat >> confdefs.h <<\EOF
 
2668
#define CANNA 1
 
2669
EOF
 
2670
 
 
2671
fi
 
2672
 
 
2673
trap '' 1 2 15
 
2674
cat > confcache <<\EOF
 
2675
# This file is a shell script that caches the results of configure
 
2676
# tests run on this system so they can be shared between configure
 
2677
# scripts and configure runs.  It is not useful on other systems.
 
2678
# If it contains results you don't want to keep, you may remove or edit it.
 
2679
#
 
2680
# By default, configure uses ./config.cache as the cache file,
 
2681
# creating it if it does not exist already.  You can give configure
 
2682
# the --cache-file=FILE option to use a different cache file; that is
 
2683
# what configure does when it calls configure scripts in
 
2684
# subdirectories, so they share the cache.
 
2685
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
2686
# config.status only pays attention to the cache file if you give it the
 
2687
# --recheck option to rerun configure.
 
2688
#
 
2689
EOF
 
2690
# The following way of writing the cache mishandles newlines in values,
 
2691
# but we know of no workaround that is simple, portable, and efficient.
 
2692
# So, don't put newlines in cache variables' values.
 
2693
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2694
# and sets the high bit in the cache file unless we assign to the vars.
 
2695
(set) 2>&1 |
 
2696
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2697
  *ac_space=\ *)
 
2698
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
2699
    # turns \\\\ into \\, and sed turns \\ into \).
 
2700
    sed -n \
 
2701
      -e "s/'/'\\\\''/g" \
 
2702
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
2703
    ;;
 
2704
  *)
 
2705
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2706
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
2707
    ;;
 
2708
  esac >> confcache
 
2709
if cmp -s $cache_file confcache; then
 
2710
  :
 
2711
else
 
2712
  if test -w $cache_file; then
 
2713
    echo "updating cache $cache_file"
 
2714
    cat confcache > $cache_file
 
2715
  else
 
2716
    echo "not updating unwritable cache $cache_file"
 
2717
  fi
 
2718
fi
 
2719
rm -f confcache
 
2720
 
 
2721
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
2722
 
 
2723
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2724
# Let make expand exec_prefix.
 
2725
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2726
 
 
2727
# Any assignment to VPATH causes Sun make to only execute
 
2728
# the first set of double-colon rules, so remove it if not needed.
 
2729
# If there is a colon in the path, we need to keep it.
 
2730
if test "x$srcdir" = x.; then
 
2731
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
2732
fi
 
2733
 
 
2734
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
2735
 
 
2736
DEFS=-DHAVE_CONFIG_H
 
2737
 
 
2738
# Without the "./", some shells look in PATH for config.status.
 
2739
: ${CONFIG_STATUS=./config.status}
 
2740
 
 
2741
echo creating $CONFIG_STATUS
 
2742
rm -f $CONFIG_STATUS
 
2743
cat > $CONFIG_STATUS <<EOF
 
2744
#! /bin/sh
 
2745
# Generated automatically by configure.
 
2746
# Run this file to recreate the current configuration.
 
2747
# This directory was configured as follows,
 
2748
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
2749
#
 
2750
# $0 $ac_configure_args
 
2751
#
 
2752
# Compiler output produced by configure, useful for debugging
 
2753
# configure, is in ./config.log if it exists.
 
2754
 
 
2755
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
2756
for ac_option
 
2757
do
 
2758
  case "\$ac_option" in
 
2759
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
2760
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
2761
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
2762
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
2763
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
2764
    exit 0 ;;
 
2765
  -help | --help | --hel | --he | --h)
 
2766
    echo "\$ac_cs_usage"; exit 0 ;;
 
2767
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
2768
  esac
 
2769
done
 
2770
 
 
2771
ac_given_srcdir=$srcdir
 
2772
ac_given_INSTALL="$INSTALL"
 
2773
 
 
2774
trap 'rm -fr `echo "Makefile:sys/unix/Makefile.in sysconfig.h:sys/unix/sysconfig.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
2775
EOF
 
2776
cat >> $CONFIG_STATUS <<EOF
 
2777
 
 
2778
# Protect against being on the right side of a sed subst in config.status.
 
2779
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
2780
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
2781
$ac_vpsub
 
2782
$extrasub
 
2783
s%@SHELL@%$SHELL%g
 
2784
s%@CFLAGS@%$CFLAGS%g
 
2785
s%@CPPFLAGS@%$CPPFLAGS%g
 
2786
s%@CXXFLAGS@%$CXXFLAGS%g
 
2787
s%@FFLAGS@%$FFLAGS%g
 
2788
s%@DEFS@%$DEFS%g
 
2789
s%@LDFLAGS@%$LDFLAGS%g
 
2790
s%@LIBS@%$LIBS%g
 
2791
s%@exec_prefix@%$exec_prefix%g
 
2792
s%@prefix@%$prefix%g
 
2793
s%@program_transform_name@%$program_transform_name%g
 
2794
s%@bindir@%$bindir%g
 
2795
s%@sbindir@%$sbindir%g
 
2796
s%@libexecdir@%$libexecdir%g
 
2797
s%@datadir@%$datadir%g
 
2798
s%@sysconfdir@%$sysconfdir%g
 
2799
s%@sharedstatedir@%$sharedstatedir%g
 
2800
s%@localstatedir@%$localstatedir%g
 
2801
s%@libdir@%$libdir%g
 
2802
s%@includedir@%$includedir%g
 
2803
s%@oldincludedir@%$oldincludedir%g
 
2804
s%@infodir@%$infodir%g
 
2805
s%@mandir@%$mandir%g
 
2806
s%@host@%$host%g
 
2807
s%@host_alias@%$host_alias%g
 
2808
s%@host_cpu@%$host_cpu%g
 
2809
s%@host_vendor@%$host_vendor%g
 
2810
s%@host_os@%$host_os%g
 
2811
s%@CC@%$CC%g
 
2812
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
2813
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
2814
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
2815
s%@STRIP@%$STRIP%g
 
2816
s%@CPP@%$CPP%g
 
2817
s%@ALLOCA@%$ALLOCA%g
 
2818
s%@LIBOBJS@%$LIBOBJS%g
 
2819
s%@cp_cmd@%$cp_cmd%g
 
2820
s%@mv_cmd@%$mv_cmd%g
 
2821
s%@ls_cmd@%$ls_cmd%g
 
2822
s%@rmdir_cmd@%$rmdir_cmd%g
 
2823
 
 
2824
CEOF
 
2825
EOF
 
2826
 
 
2827
cat >> $CONFIG_STATUS <<\EOF
 
2828
 
 
2829
# Split the substitutions into bite-sized pieces for seds with
 
2830
# small command number limits, like on Digital OSF/1 and HP-UX.
 
2831
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
2832
ac_file=1 # Number of current file.
 
2833
ac_beg=1 # First line for current file.
 
2834
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
2835
ac_more_lines=:
 
2836
ac_sed_cmds=""
 
2837
while $ac_more_lines; do
 
2838
  if test $ac_beg -gt 1; then
 
2839
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
2840
  else
 
2841
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
2842
  fi
 
2843
  if test ! -s conftest.s$ac_file; then
 
2844
    ac_more_lines=false
 
2845
    rm -f conftest.s$ac_file
 
2846
  else
 
2847
    if test -z "$ac_sed_cmds"; then
 
2848
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
2849
    else
 
2850
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
2851
    fi
 
2852
    ac_file=`expr $ac_file + 1`
 
2853
    ac_beg=$ac_end
 
2854
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
2855
  fi
 
2856
done
 
2857
if test -z "$ac_sed_cmds"; then
 
2858
  ac_sed_cmds=cat
 
2859
fi
 
2860
EOF
 
2861
 
 
2862
cat >> $CONFIG_STATUS <<EOF
 
2863
 
 
2864
CONFIG_FILES=\${CONFIG_FILES-"Makefile:sys/unix/Makefile.in"}
 
2865
EOF
 
2866
cat >> $CONFIG_STATUS <<\EOF
 
2867
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
2868
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2869
  case "$ac_file" in
 
2870
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2871
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2872
  *) ac_file_in="${ac_file}.in" ;;
 
2873
  esac
 
2874
 
 
2875
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
2876
 
 
2877
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
2878
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
2879
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
2880
    # The file is in a subdirectory.
 
2881
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
2882
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
2883
    # A "../" for each directory in $ac_dir_suffix.
 
2884
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
2885
  else
 
2886
    ac_dir_suffix= ac_dots=
 
2887
  fi
 
2888
 
 
2889
  case "$ac_given_srcdir" in
 
2890
  .)  srcdir=.
 
2891
      if test -z "$ac_dots"; then top_srcdir=.
 
2892
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
2893
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
2894
  *) # Relative path.
 
2895
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
2896
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
2897
  esac
 
2898
 
 
2899
  case "$ac_given_INSTALL" in
 
2900
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
2901
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
2902
  esac
 
2903
 
 
2904
  echo creating "$ac_file"
 
2905
  rm -f "$ac_file"
 
2906
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
2907
  case "$ac_file" in
 
2908
  *Makefile*) ac_comsub="1i\\
 
2909
# $configure_input" ;;
 
2910
  *) ac_comsub= ;;
 
2911
  esac
 
2912
 
 
2913
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2914
  sed -e "$ac_comsub
 
2915
s%@configure_input@%$configure_input%g
 
2916
s%@srcdir@%$srcdir%g
 
2917
s%@top_srcdir@%$top_srcdir%g
 
2918
s%@INSTALL@%$INSTALL%g
 
2919
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
2920
fi; done
 
2921
rm -f conftest.s*
 
2922
 
 
2923
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
2924
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
2925
#
 
2926
# ac_d sets the value in "#define NAME VALUE" lines.
 
2927
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
2928
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
2929
ac_dC='\3'
 
2930
ac_dD='%g'
 
2931
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
2932
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
2933
ac_uB='\([      ]\)%\1#\2define\3'
 
2934
ac_uC=' '
 
2935
ac_uD='\4%g'
 
2936
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
2937
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
2938
ac_eB='$%\1#\2define\3'
 
2939
ac_eC=' '
 
2940
ac_eD='%g'
 
2941
 
 
2942
if test "${CONFIG_HEADERS+set}" != set; then
 
2943
EOF
 
2944
cat >> $CONFIG_STATUS <<EOF
 
2945
  CONFIG_HEADERS="sysconfig.h:sys/unix/sysconfig.h.in"
 
2946
EOF
 
2947
cat >> $CONFIG_STATUS <<\EOF
 
2948
fi
 
2949
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
2950
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2951
  case "$ac_file" in
 
2952
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2953
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2954
  *) ac_file_in="${ac_file}.in" ;;
 
2955
  esac
 
2956
 
 
2957
  echo creating $ac_file
 
2958
 
 
2959
  rm -f conftest.frag conftest.in conftest.out
 
2960
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2961
  cat $ac_file_inputs > conftest.in
 
2962
 
 
2963
EOF
 
2964
 
 
2965
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
2966
# the proper values into config.h.in to produce config.h.  And first:
 
2967
# Protect against being on the right side of a sed subst in config.status.
 
2968
# Protect against being in an unquoted here document in config.status.
 
2969
rm -f conftest.vals
 
2970
cat > conftest.hdr <<\EOF
 
2971
s/[\\&%]/\\&/g
 
2972
s%[\\$`]%\\&%g
 
2973
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
2974
s%ac_d%ac_u%gp
 
2975
s%ac_u%ac_e%gp
 
2976
EOF
 
2977
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
2978
rm -f conftest.hdr
 
2979
 
 
2980
# This sed command replaces #undef with comments.  This is necessary, for
 
2981
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
2982
# on some systems where configure will not decide to define it.
 
2983
cat >> conftest.vals <<\EOF
 
2984
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
2985
EOF
 
2986
 
 
2987
# Break up conftest.vals because some shells have a limit on
 
2988
# the size of here documents, and old seds have small limits too.
 
2989
 
 
2990
rm -f conftest.tail
 
2991
while :
 
2992
do
 
2993
  ac_lines=`grep -c . conftest.vals`
 
2994
  # grep -c gives empty output for an empty file on some AIX systems.
 
2995
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
2996
  # Write a limited-size here document to conftest.frag.
 
2997
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
2998
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
2999
  echo 'CEOF
 
3000
  sed -f conftest.frag conftest.in > conftest.out
 
3001
  rm -f conftest.in
 
3002
  mv conftest.out conftest.in
 
3003
' >> $CONFIG_STATUS
 
3004
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
3005
  rm -f conftest.vals
 
3006
  mv conftest.tail conftest.vals
 
3007
done
 
3008
rm -f conftest.vals
 
3009
 
 
3010
cat >> $CONFIG_STATUS <<\EOF
 
3011
  rm -f conftest.frag conftest.h
 
3012
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
3013
  cat conftest.in >> conftest.h
 
3014
  rm -f conftest.in
 
3015
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
3016
    echo "$ac_file is unchanged"
 
3017
    rm -f conftest.h
 
3018
  else
 
3019
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
3020
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
3021
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
3022
      # The file is in a subdirectory.
 
3023
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
3024
    fi
 
3025
    rm -f $ac_file
 
3026
    mv conftest.h $ac_file
 
3027
  fi
 
3028
fi; done
 
3029
 
 
3030
EOF
 
3031
cat >> $CONFIG_STATUS <<EOF
 
3032
 
 
3033
EOF
 
3034
cat >> $CONFIG_STATUS <<\EOF
 
3035
 
 
3036
exit 0
 
3037
EOF
 
3038
chmod +x $CONFIG_STATUS
 
3039
rm -fr confdefs* $ac_clean_files
 
3040
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
3041