~ubuntu-branches/ubuntu/hardy/expat/hardy-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ardo van Rangelrooij
  • Date: 2001-12-09 12:19:40 UTC
  • Revision ID: james.westby@ubuntu.com-20011209121940-zu64acbvutfed4hh
Tags: upstream-1.95.2
ImportĀ upstreamĀ versionĀ 1.95.2

Show diffs side-by-side

added added

removed removed

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