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.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-shared[=PKGS] build shared libraries [default=yes]"
17
--enable-static[=PKGS] build static libraries [default=yes]"
19
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23
--disable-libtool-lock avoid locking (might break parallel builds)"
25
# Initialize some variables set by options.
26
# The variables have the same names as the options, with
27
# dashes changed to underlines.
29
cache_file=./config.cache
38
program_transform_name=s,x,x,
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'
59
# Initialize some other variables.
62
SHELL=${CONFIG_SHELL-/bin/sh}
63
# Maximum number of lines to put in a shell here document.
70
# If the previous option needs an argument, assign it.
71
if test -n "$ac_prev"; then
72
eval "$ac_prev=\$ac_option"
78
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82
# Accept the important Cygnus configure options, so we can diagnose typos.
86
-bindir | --bindir | --bindi | --bind | --bin | --bi)
88
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89
bindir="$ac_optarg" ;;
91
-build | --build | --buil | --bui | --bu)
93
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
96
-cache-file | --cache-file | --cache-fil | --cache-fi \
97
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101
cache_file="$ac_optarg" ;;
103
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107
datadir="$ac_optarg" ;;
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; }
115
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116
eval "enable_${ac_feature}=no" ;;
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; }
124
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129
eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
140
-gas | --gas | --ga | --g)
141
# Obsolete; use --with-gas.
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.
148
Usage: configure [options] [host]
149
Options: [defaults in brackets after descriptions]
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
159
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
166
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167
--sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
194
if test -n "$ac_help"; then
195
echo "--enable and --with options recognized:$ac_help"
199
-host | --host | --hos | --ho)
201
-host=* | --host=* | --hos=* | --ho=*)
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" ;;
211
-infodir | --infodir | --infodi | --infod | --info | --inf)
213
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214
infodir="$ac_optarg" ;;
216
-libdir | --libdir | --libdi | --libd)
218
-libdir=* | --libdir=* | --libdi=* | --libd=*)
219
libdir="$ac_optarg" ;;
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" ;;
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" ;;
237
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240
mandir="$ac_optarg" ;;
243
# Obsolete; use --without-fp.
246
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
250
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
251
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
263
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266
prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
299
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
300
| -silent | --silent | --silen | --sile | --sil)
303
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307
sbindir="$ac_optarg" ;;
309
-sharedstatedir | --sharedstatedir | --sharedstatedi \
310
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311
| --sharedst | --shareds | --shared | --share | --shar \
313
ac_prev=sharedstatedir ;;
314
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318
sharedstatedir="$ac_optarg" ;;
320
-site | --site | --sit)
322
-site=* | --site=* | --sit=*)
325
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328
srcdir="$ac_optarg" ;;
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" ;;
337
-target | --target | --targe | --targ | --tar | --ta | --t)
339
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340
target="$ac_optarg" ;;
342
-v | -verbose | --verbose | --verbos | --verbo | --verb)
345
-version | --version | --versio | --versi | --vers)
346
echo "configure generated by autoconf version 2.13"
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; }
355
ac_package=`echo $ac_package| sed 's/-/_/g'`
360
eval "with_${ac_package}='$ac_optarg'" ;;
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; }
368
ac_package=`echo $ac_package| sed 's/-/_/g'`
369
eval "with_${ac_package}=no" ;;
372
# Obsolete; use --with-x.
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" ;;
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" ;;
389
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
405
if test -n "$ac_prev"; then
406
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411
# File descriptor usage:
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
427
This file contains any messages produced by compilers while
428
running configure, to aid debugging if configure makes a mistake.
431
# Strip out --no-create and --no-recursion so they do not pile up.
432
# Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
471
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474
if test ! -r $srcdir/$ac_unique_file; then
478
ac_srcdir_defaulted=no
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; }
484
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
494
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
504
if test -r "$cache_file"; then
505
echo "loading cache $cache_file"
508
echo "creating cache $cache_file"
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
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
530
ac_n= ac_c='\c' ac_t=
535
for ac_dir in conftools $srcdir/conftools; do
536
if test -f $ac_dir/install-sh; then
538
ac_install_sh="$ac_aux_dir/install-sh -c"
540
elif test -f $ac_dir/install.sh; then
542
ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
555
EXPAT_MAJOR_VERSION=1
556
EXPAT_MINOR_VERSION=95
559
EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT
560
VERSION=$EXPAT_VERSION
571
# Check whether --enable-shared or --disable-shared was given.
572
if test "${enable_shared+set}" = set; then
573
enableval="$enable_shared"
576
yes) enable_shared=yes ;;
577
no) 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
594
# Check whether --enable-static or --disable-static was given.
595
if test "${enable_static+set}" = set; then
596
enableval="$enable_static"
599
yes) enable_static=yes ;;
600
no) 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
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"
622
yes) enable_fast_install=yes ;;
623
no) enable_fast_install=no ;;
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
637
enable_fast_install=yes
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; }
646
echo $ac_n "checking host system type""... $ac_c" 1>&6
647
echo "configure:648: checking host system type" >&5
650
case "$host_alias" in
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; }
657
*) host_alias=$nonopt ;;
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
667
echo $ac_n "checking build system type""... $ac_c" 1>&6
668
echo "configure:669: checking build system type" >&5
671
case "$build_alias" in
674
NONE) build_alias=$host_alias ;;
675
*) build_alias=$nonopt ;;
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
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
692
if test -n "$RANLIB"; then
693
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
695
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
705
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
708
RANLIB="$ac_cv_prog_RANLIB"
709
if test -n "$RANLIB"; then
710
echo "$ac_t""$RANLIB" 1>&6
712
echo "$ac_t""no" 1>&6
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
722
if test -n "$CC"; then
723
ac_cv_prog_CC="$CC" # Let the user override the test.
725
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
727
for ac_dir in $ac_dummy; do
728
test -z "$ac_dir" && ac_dir=.
729
if test -f $ac_dir/$ac_word; then
738
if test -n "$CC"; then
739
echo "$ac_t""$CC" 1>&6
741
echo "$ac_t""no" 1>&6
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
752
if test -n "$CC"; then
753
ac_cv_prog_CC="$CC" # Let the user override the test.
755
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
779
set dummy "$ac_dir/$ac_word" "$@"
787
if test -n "$CC"; then
788
echo "$ac_t""$CC" 1>&6
790
echo "$ac_t""no" 1>&6
793
if test -z "$CC"; then
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
803
if test -n "$CC"; then
804
ac_cv_prog_CC="$CC" # Let the user override the test.
806
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
808
for ac_dir in $ac_dummy; do
809
test -z "$ac_dir" && ac_dir=.
810
if test -f $ac_dir/$ac_word; then
819
if test -n "$CC"; then
820
echo "$ac_t""$CC" 1>&6
822
echo "$ac_t""no" 1>&6
827
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
840
cat > conftest.$ac_ext << EOF
842
#line 843 "configure"
843
#include "confdefs.h"
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
853
ac_cv_prog_cc_cross=yes
856
echo "configure: failed program was:" >&5
857
cat conftest.$ac_ext >&5
858
ac_cv_prog_cc_works=no
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
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; }
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
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
882
cat > conftest.c <<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
894
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
896
if test $ac_cv_prog_gcc = yes; then
902
ac_test_CFLAGS="${CFLAGS+set}"
903
ac_save_CFLAGS="$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
910
echo 'void f(){}' > conftest.c
911
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
930
if test "$GCC" = yes; then
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
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`
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%/%"`
960
test -z "$LD" && LD="$ac_prog"
963
# If it fails, then pretend we aren't using GCC.
967
# If it is relative, then search for the first ld in PATH.
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
975
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
976
echo "configure:977: checking for non-GNU ld" >&5
978
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
979
echo $ac_n "(cached) $ac_c" 1>&6
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
993
test "$with_gnu_ld" != yes && break
999
ac_cv_path_LD="$LD" # Let the user override the test with a path.
1004
if test -n "$LD"; then
1005
echo "$ac_t""$LD" 1>&6
1007
echo "$ac_t""no" 1>&6
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
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
1019
ac_cv_prog_gnu_ld=no
1023
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
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
1031
if test -n "$NM"; then
1032
# Let the user override the test.
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"
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"
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
1055
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1060
echo "$ac_t""$NM" 1>&6
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
1068
if ln -s X conftestdata 2>/dev/null
1071
ac_cv_prog_LN_S="ln -s"
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
1080
echo "$ac_t""no" 1>&6
1083
if test $host != $build; then
1084
ac_tool_prefix=${host_alias}-
1091
NONE) lt_target="$host" ;;
1092
*) lt_target="$target" ;;
1095
# Check for any special flags to pass to ltconfig.
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"
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"
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"
1115
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1116
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1118
# Some flags need to be propagated to the compiler or linker for good
1120
case "$lt_target" in
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
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
1149
cat > conftest.$ac_ext <<EOF
1150
#line 1151 "configure"
1151
#include "confdefs.h"
1157
if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1159
lt_cv_cc_needs_belf=yes
1161
echo "configure: failed program was:" >&5
1162
cat conftest.$ac_ext >&5
1164
lt_cv_cc_needs_belf=no
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"
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
1184
if test -n "$DLLTOOL"; then
1185
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1187
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1199
DLLTOOL="$ac_cv_prog_DLLTOOL"
1200
if test -n "$DLLTOOL"; then
1201
echo "$ac_t""$DLLTOOL" 1>&6
1203
echo "$ac_t""no" 1>&6
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
1216
if test -n "$DLLTOOL"; then
1217
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1219
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1229
test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1232
DLLTOOL="$ac_cv_prog_DLLTOOL"
1233
if test -n "$DLLTOOL"; then
1234
echo "$ac_t""$DLLTOOL" 1>&6
1236
echo "$ac_t""no" 1>&6
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
1251
if test -n "$AS"; then
1252
ac_cv_prog_AS="$AS" # Let the user override the test.
1254
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1267
if test -n "$AS"; then
1268
echo "$ac_t""$AS" 1>&6
1270
echo "$ac_t""no" 1>&6
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
1283
if test -n "$AS"; then
1284
ac_cv_prog_AS="$AS" # Let the user override the test.
1286
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1288
for ac_dir in $ac_dummy; do
1289
test -z "$ac_dir" && ac_dir=.
1290
if test -f $ac_dir/$ac_word; then
1296
test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1300
if test -n "$AS"; then
1301
echo "$ac_t""$AS" 1>&6
1303
echo "$ac_t""no" 1>&6
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
1318
if test -n "$OBJDUMP"; then
1319
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1321
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1333
OBJDUMP="$ac_cv_prog_OBJDUMP"
1334
if test -n "$OBJDUMP"; then
1335
echo "$ac_t""$OBJDUMP" 1>&6
1337
echo "$ac_t""no" 1>&6
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
1350
if test -n "$OBJDUMP"; then
1351
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1353
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1363
test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1366
OBJDUMP="$ac_cv_prog_OBJDUMP"
1367
if test -n "$OBJDUMP"; then
1368
echo "$ac_t""$OBJDUMP" 1>&6
1370
echo "$ac_t""no" 1>&6
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.
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.
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.
1406
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1408
# `set' does not quote correctly, so add quotes (double-quote substitution
1409
# turns \\\\ into \\, and sed turns \\ into \).
1411
-e "s/'/'\\\\''/g" \
1412
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1419
if cmp -s $cache_file confcache; then
1422
if test -w $cache_file; then
1423
echo "updating cache $cache_file"
1424
cat confcache > $cache_file
1426
echo "not updating unwritable cache $cache_file"
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; }
1441
# Reload cache, that may have been modified by ltconfig
1442
if test -r "$cache_file"; then
1443
echo "loading cache $cache_file"
1446
echo "creating cache $cache_file"
1451
# This can be used to rebuild libtool when needed
1452
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1454
# Always use our own libtool.
1455
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
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
1479
if test -n "$CC"; then
1480
ac_cv_prog_CC="$CC" # Let the user override the test.
1482
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1484
for ac_dir in $ac_dummy; do
1485
test -z "$ac_dir" && ac_dir=.
1486
if test -f $ac_dir/$ac_word; then
1495
if test -n "$CC"; then
1496
echo "$ac_t""$CC" 1>&6
1498
echo "$ac_t""no" 1>&6
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
1509
if test -n "$CC"; then
1510
ac_cv_prog_CC="$CC" # Let the user override the test.
1512
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
1536
set dummy "$ac_dir/$ac_word" "$@"
1544
if test -n "$CC"; then
1545
echo "$ac_t""$CC" 1>&6
1547
echo "$ac_t""no" 1>&6
1550
if test -z "$CC"; then
1551
case "`uname -s`" in
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
1560
if test -n "$CC"; then
1561
ac_cv_prog_CC="$CC" # Let the user override the test.
1563
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565
for ac_dir in $ac_dummy; do
1566
test -z "$ac_dir" && ac_dir=.
1567
if test -f $ac_dir/$ac_word; then
1576
if test -n "$CC"; then
1577
echo "$ac_t""$CC" 1>&6
1579
echo "$ac_t""no" 1>&6
1584
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
1597
cat > conftest.$ac_ext << EOF
1599
#line 1600 "configure"
1600
#include "confdefs.h"
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
1610
ac_cv_prog_cc_cross=yes
1613
echo "configure: failed program was:" >&5
1614
cat conftest.$ac_ext >&5
1615
ac_cv_prog_cc_works=no
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
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; }
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
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
1639
cat > conftest.c <<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
1651
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1653
if test $ac_cv_prog_gcc = yes; then
1659
ac_test_CFLAGS="${CFLAGS+set}"
1660
ac_save_CFLAGS="$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
1667
echo 'void f(){}' > conftest.c
1668
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1687
if test "$GCC" = yes; then
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
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
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.
1715
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
1727
ac_cv_path_install="$ac_dir/$ac_prog -c"
1738
if test "${ac_cv_path_install+set}" = set; then
1739
INSTALL="$ac_cv_path_install"
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"
1748
echo "$ac_t""$INSTALL" 1>&6
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}'
1754
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1756
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759
if test "$GCC" = yes ; then
1760
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions"
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
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
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.
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"
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
1792
echo "configure: failed program was:" >&5
1793
cat conftest.$ac_ext >&5
1795
CPP="${CC-cc} -E -traditional-cpp"
1796
cat > conftest.$ac_ext <<EOF
1797
#line 1798 "configure"
1798
#include "confdefs.h"
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
1809
echo "configure: failed program was:" >&5
1810
cat conftest.$ac_ext >&5
1812
CPP="${CC-cc} -nologo -E"
1813
cat > conftest.$ac_ext <<EOF
1814
#line 1815 "configure"
1815
#include "confdefs.h"
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
1826
echo "configure: failed program was:" >&5
1827
cat conftest.$ac_ext >&5
1836
ac_cv_prog_CPP="$CPP"
1838
CPP="$ac_cv_prog_CPP"
1840
ac_cv_prog_CPP="$CPP"
1842
echo "$ac_t""$CPP" 1>&6
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
1849
cat > conftest.$ac_ext <<EOF
1850
#line 1851 "configure"
1851
#include "confdefs.h"
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
1862
ac_cv_header_stdc=yes
1865
echo "configure: failed program was:" >&5
1866
cat conftest.$ac_ext >&5
1868
ac_cv_header_stdc=no
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"
1879
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1880
egrep "memchr" >/dev/null 2>&1; then
1884
ac_cv_header_stdc=no
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"
1897
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898
egrep "free" >/dev/null 2>&1; then
1902
ac_cv_header_stdc=no
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
1913
cat > conftest.$ac_ext <<EOF
1914
#line 1915 "configure"
1915
#include "confdefs.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);
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
1929
echo "configure: failed program was:" >&5
1930
cat conftest.$ac_ext >&5
1932
ac_cv_header_stdc=no
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
1948
for ac_hdr in fcntl.h unistd.h
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
1956
cat > conftest.$ac_ext <<EOF
1957
#line 1958 "configure"
1958
#include "confdefs.h"
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
1966
eval "ac_cv_header_$ac_safe=yes"
1969
echo "configure: failed program was:" >&5
1970
cat conftest.$ac_ext >&5
1972
eval "ac_cv_header_$ac_safe=no"
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
1984
echo "$ac_t""no" 1>&6
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
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>
2004
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2009
if { (eval echo configure:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
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>
2019
#if BYTE_ORDER != BIG_ENDIAN
2024
if { (eval echo configure:2025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2026
ac_cv_c_bigendian=yes
2028
echo "configure: failed program was:" >&5
2029
cat conftest.$ac_ext >&5
2031
ac_cv_c_bigendian=no
2035
echo "configure: failed program was:" >&5
2036
cat conftest.$ac_ext >&5
2039
if test $ac_cv_c_bigendian = unknown; then
2040
if test "$cross_compiling" = yes; then
2041
echo $ac_n "cross-compiling... " 2>&6
2043
cat > conftest.$ac_ext <<EOF
2044
#line 2045 "configure"
2045
#include "confdefs.h"
2047
/* Are we little or big endian? From Harbison&Steele. */
2051
char c[sizeof (long)];
2054
exit (u.c[sizeof (long) - 1] == 1);
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
2059
ac_cv_c_bigendian=no
2061
echo "configure: failed program was:" >&5
2062
cat conftest.$ac_ext >&5
2064
ac_cv_c_bigendian=yes
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
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; }
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
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;
2097
ac_cv_c_bigendian=no
2100
echo $ac_n 'guessing bigendian ... ' >&6
2103
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2105
if test $ac_cv_c_bigendian = yes; then
2106
cat >> confdefs.h <<\EOF
2107
#define WORDS_BIGENDIAN 1
2114
cat >> confdefs.h <<EOF
2115
#define BYTEORDER $BYTEORDER
2118
if test $ac_cv_c_bigendian = unknown; then
2119
{ echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
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
2128
cat > conftest.$ac_ext <<EOF
2129
#line 2130 "configure"
2130
#include "confdefs.h"
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;
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. */
2150
ccp = (char const *const *) p;
2151
{ /* SCO 3.2v4 cc rejects this. */
2153
char const *s = 0 ? (char *) 0 : (char const *) 0;
2157
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2159
const int *foo = &x[0];
2162
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2163
typedef const int *iptr;
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;
2172
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2178
if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2182
echo "configure: failed program was:" >&5
2183
cat conftest.$ac_ext >&5
2190
echo "$ac_t""$ac_cv_c_const" 1>&6
2191
if test $ac_cv_c_const = no; then
2192
cat >> confdefs.h <<\EOF
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
2203
cat > conftest.$ac_ext <<EOF
2204
#line 2205 "configure"
2205
#include "confdefs.h"
2206
#include <sys/types.h>
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
2215
ac_cv_type_off_t=yes
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
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
2236
cat > conftest.$ac_ext <<EOF
2237
#line 2238 "configure"
2238
#include "confdefs.h"
2239
#include <sys/types.h>
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
2248
ac_cv_type_size_t=yes
2251
ac_cv_type_size_t=no
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
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
2271
if test "$cross_compiling" = yes; then
2272
ac_cv_func_memcmp_clean=no
2274
cat > conftest.$ac_ext <<EOF
2275
#line 2276 "configure"
2276
#include "confdefs.h"
2280
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2281
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
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
2287
ac_cv_func_memcmp_clean=yes
2289
echo "configure: failed program was:" >&5
2290
cat conftest.$ac_ext >&5
2292
ac_cv_func_memcmp_clean=no
2299
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2300
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2302
for ac_hdr in unistd.h
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
2310
cat > conftest.$ac_ext <<EOF
2311
#line 2312 "configure"
2312
#include "confdefs.h"
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
2320
eval "ac_cv_header_$ac_safe=yes"
2323
echo "configure: failed program was:" >&5
2324
cat conftest.$ac_ext >&5
2326
eval "ac_cv_header_$ac_safe=no"
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
2338
echo "$ac_t""no" 1>&6
2342
for ac_func in getpagesize
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
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. */
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. */
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)
2373
if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375
eval "ac_cv_func_$ac_func=yes"
2377
echo "configure: failed program was:" >&5
2378
cat conftest.$ac_ext >&5
2380
eval "ac_cv_func_$ac_func=no"
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
2393
echo "$ac_t""no" 1>&6
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
2402
if test "$cross_compiling" = yes; then
2403
ac_cv_func_mmap_fixed_mapped=no
2405
cat > conftest.$ac_ext <<EOF
2406
#line 2407 "configure"
2407
#include "confdefs.h"
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.
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>
2432
#include <sys/mman.h>
2434
/* This mess was copied from the GNU getpagesize.h. */
2435
#ifndef HAVE_GETPAGESIZE
2436
# ifdef HAVE_UNISTD_H
2437
# include <unistd.h>
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
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 */
2454
# define getpagesize() NBPG * CLSIZE
2457
# endif /* no CLSIZE */
2458
# else /* no NBPG */
2460
# define getpagesize() NBPC
2461
# else /* no NBPC */
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 */
2473
#endif /* no HAVE_GETPAGESIZE */
2476
extern "C" { void *malloc(unsigned); }
2484
char *data, *data2, *data3;
2488
pagesize = getpagesize();
2491
* First, make a file with some known garbage in it.
2493
data = malloc(pagesize);
2496
for (i = 0; i < pagesize; ++i)
2497
*(data + i) = rand();
2499
fd = creat("conftestmmap", 0600);
2502
if (write(fd, data, pagesize) != pagesize)
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.
2511
fd = open("conftestmmap", O_RDWR);
2514
data2 = malloc(2 * pagesize);
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))
2521
for (i = 0; i < pagesize; ++i)
2522
if (*(data + i) != *(data2 + i))
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.)
2530
for (i = 0; i < pagesize; ++i)
2531
*(data2 + i) = *(data2 + i) + 1;
2532
data3 = malloc(pagesize);
2535
if (read(fd, data3, pagesize) != pagesize)
2537
for (i = 0; i < pagesize; ++i)
2538
if (*(data + i) != *(data3 + i))
2541
unlink("conftestmmap");
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
2548
ac_cv_func_mmap_fixed_mapped=yes
2550
echo "configure: failed program was:" >&5
2551
cat conftest.$ac_ext >&5
2553
ac_cv_func_mmap_fixed_mapped=no
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
2569
if test -z "$HAVE_MMAP"; then
2570
FILEMAP_OBJ=unixfilemap.o
2572
FILEMAP_OBJ=readfilemap.o
2576
for ac_func in memmove bcopy
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
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. */
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. */
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)
2607
if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2609
eval "ac_cv_func_$ac_func=yes"
2611
echo "configure: failed program was:" >&5
2612
cat conftest.$ac_ext >&5
2614
eval "ac_cv_func_$ac_func=no"
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
2627
echo "$ac_t""no" 1>&6
2633
OUTPUT="Makefile lib/Makefile lib/expat.h"
2634
if test -d ${srcdir}/xmlwf; then
2635
OUTPUT="$OUTPUT xmlwf/Makefile"
2637
if test -d ${srcdir}/examples; then
2638
OUTPUT="$OUTPUT examples/Makefile"
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.
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.
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.
2663
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2665
# `set' does not quote correctly, so add quotes (double-quote substitution
2666
# turns \\\\ into \\, and sed turns \\ into \).
2668
-e "s/'/'\\\\''/g" \
2669
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
2676
if cmp -s $cache_file confcache; then
2679
if test -w $cache_file; then
2680
echo "updating cache $cache_file"
2681
cat confcache > $cache_file
2683
echo "not updating unwritable cache $cache_file"
2688
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2690
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2691
# Let make expand exec_prefix.
2692
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
2701
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2703
DEFS=-DHAVE_CONFIG_H
2705
# Without the "./", some shells look in PATH for config.status.
2706
: ${CONFIG_STATUS=./config.status}
2708
echo creating $CONFIG_STATUS
2709
rm -f $CONFIG_STATUS
2710
cat > $CONFIG_STATUS <<EOF
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`:
2717
# $0 $ac_configure_args
2719
# Compiler output produced by configure, useful for debugging
2720
# configure, is in ./config.log if it exists.
2722
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
2732
-help | --help | --hel | --he | --h)
2733
echo "\$ac_cs_usage"; exit 0 ;;
2734
*) echo "\$ac_cs_usage"; exit 1 ;;
2738
ac_given_srcdir=$srcdir
2739
ac_given_INSTALL="$INSTALL"
2741
trap 'rm -fr `echo "$OUTPUT config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2743
cat >> $CONFIG_STATUS <<EOF
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
2751
s%@CFLAGS@%$CFLAGS%g
2752
s%@CPPFLAGS@%$CPPFLAGS%g
2753
s%@CXXFLAGS@%$CXXFLAGS%g
2754
s%@FFLAGS@%$FFLAGS%g
2756
s%@LDFLAGS@%$LDFLAGS%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
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
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
2786
s%@DLLTOOL@%$DLLTOOL%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
2802
s%@LIBOBJS@%$LIBOBJS%g
2803
s%@FILEMAP_OBJ@%$FILEMAP_OBJ%g
2808
cat >> $CONFIG_STATUS <<\EOF
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.
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
2822
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2824
if test ! -s conftest.s$ac_file; then
2826
rm -f conftest.s$ac_file
2828
if test -z "$ac_sed_cmds"; then
2829
ac_sed_cmds="sed -f conftest.s$ac_file"
2831
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2833
ac_file=`expr $ac_file + 1`
2835
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2838
if test -z "$ac_sed_cmds"; then
2843
cat >> $CONFIG_STATUS <<EOF
2845
CONFIG_FILES=\${CONFIG_FILES-"$OUTPUT"}
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".
2851
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2852
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2853
*) ac_file_in="${ac_file}.in" ;;
2856
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
2867
ac_dir_suffix= ac_dots=
2870
case "$ac_given_srcdir" in
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" ;;
2876
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2877
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2880
case "$ac_given_INSTALL" in
2881
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2882
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2885
echo creating "$ac_file"
2887
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2889
*Makefile*) ac_comsub="1i\\
2890
# $configure_input" ;;
2894
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
2907
# ac_d sets the value in "#define NAME VALUE" lines.
2908
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2909
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2912
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2913
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2914
ac_uB='\([ ]\)%\1#\2define\3'
2917
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2918
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2919
ac_eB='$%\1#\2define\3'
2923
if test "${CONFIG_HEADERS+set}" != set; then
2925
cat >> $CONFIG_STATUS <<EOF
2926
CONFIG_HEADERS="config.h"
2928
cat >> $CONFIG_STATUS <<\EOF
2930
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2931
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
2938
echo creating $ac_file
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
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.
2951
cat > conftest.hdr <<\EOF
2954
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2958
sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
2981
sed -f conftest.frag conftest.in > conftest.out
2983
mv conftest.out conftest.in
2985
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2987
mv conftest.tail conftest.vals
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
2996
if cmp -s $ac_file conftest.h 2>/dev/null; then
2997
echo "$ac_file is unchanged"
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"
3007
mv conftest.h $ac_file
3012
cat >> $CONFIG_STATUS <<EOF
3015
cat >> $CONFIG_STATUS <<\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