2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="dftables.c"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LIBTOOL LIBSUFFIX LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
836
if test -n "$ac_init_help"; then
841
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843
--disable-shared build PCRE as a static library
844
--enable-utf8 enable UTF8 support
845
--enable-unicode-properties enable Unicode properties support
846
--enable-newline-is-cr use CR as the newline character
847
--enable-newline-is-lf use LF as the newline character
848
--enable-ebcdic assume EBCDIC coding rather than ASCII
849
--disable-stack-for-recursion disable use of stack recursion when matching
852
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854
--with-posix-malloc-threshold=5 threshold for POSIX malloc usage
855
--with-link-size=2 internal link size (2, 3, or 4 allowed)
856
--with-match-limit=10000000 default limit on internal looping)
858
Some influential environment variables:
859
CC C compiler command
860
CFLAGS C compiler flags
861
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862
nonstandard directory <lib dir>
863
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864
headers in a nonstandard directory <include dir>
867
Use these variables to override the choices made by `configure' or to help
868
it to find libraries and programs with nonstandard names/locations.
873
if test "$ac_init_help" = "recursive"; then
874
# If there are subdirs, report their specific --help.
876
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877
test -d $ac_dir || continue
880
if test "$ac_dir" != .; then
881
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882
# A "../" for each directory in $ac_dir_suffix.
883
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885
ac_dir_suffix= ac_top_builddir=
889
.) # No --srcdir option. We are building in place.
891
if test -z "$ac_top_builddir"; then
894
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896
[\\/]* | ?:[\\/]* ) # Absolute path.
897
ac_srcdir=$srcdir$ac_dir_suffix;
898
ac_top_srcdir=$srcdir ;;
900
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901
ac_top_srcdir=$ac_top_builddir$srcdir ;;
904
# Do not use `cd foo && pwd` to compute absolute paths, because
905
# the directories may not exist.
907
.) ac_abs_builddir="$ac_dir";;
910
.) ac_abs_builddir=`pwd`;;
911
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912
*) ac_abs_builddir=`pwd`/"$ac_dir";;
915
case $ac_abs_builddir in
916
.) ac_abs_top_builddir=${ac_top_builddir}.;;
918
case ${ac_top_builddir}. in
919
.) ac_abs_top_builddir=$ac_abs_builddir;;
920
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924
case $ac_abs_builddir in
925
.) ac_abs_srcdir=$ac_srcdir;;
928
.) ac_abs_srcdir=$ac_abs_builddir;;
929
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933
case $ac_abs_builddir in
934
.) ac_abs_top_srcdir=$ac_top_srcdir;;
936
case $ac_top_srcdir in
937
.) ac_abs_top_srcdir=$ac_abs_builddir;;
938
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944
# Check for guested configure; otherwise get Cygnus style configure.
945
if test -f $ac_srcdir/configure.gnu; then
947
$SHELL $ac_srcdir/configure.gnu --help=recursive
948
elif test -f $ac_srcdir/configure; then
950
$SHELL $ac_srcdir/configure --help=recursive
951
elif test -f $ac_srcdir/configure.ac ||
952
test -f $ac_srcdir/configure.in; then
956
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962
test -n "$ac_init_help" && exit 0
963
if $ac_init_version; then
966
Copyright (C) 2003 Free Software Foundation, Inc.
967
This configure script is free software; the Free Software Foundation
968
gives unlimited permission to copy, distribute and modify it.
974
This file contains any messages produced by compilers while
975
running configure, to aid debugging if configure makes a mistake.
977
It was created by $as_me, which was
978
generated by GNU Autoconf 2.59. Invocation command line was
989
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990
uname -m = `(uname -m) 2>/dev/null || echo unknown`
991
uname -r = `(uname -r) 2>/dev/null || echo unknown`
992
uname -s = `(uname -s) 2>/dev/null || echo unknown`
993
uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012
test -z "$as_dir" && as_dir=.
1013
echo "PATH: $as_dir"
1028
# Keep a trace of the command line.
1029
# Strip out --no-create and --no-recursion so they do not pile up.
1030
# Strip out --silent because we don't want to record it for future runs.
1031
# Also quote any args containing shell meta-characters.
1032
# Make two passes to allow for proper duplicate-argument suppression.
1037
ac_must_keep_next=false
1043
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045
| -silent | --silent | --silen | --sile | --sil)
1047
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054
if test $ac_must_keep_next = true; then
1055
ac_must_keep_next=false # Got value, back to normal.
1058
*=* | --config-cache | -C | -disable-* | --disable-* \
1059
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061
| -with-* | --with-* | -without-* | --without-* | --x)
1062
case "$ac_configure_args0 " in
1063
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066
-* ) ac_must_keep_next=true ;;
1069
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070
# Get rid of the leading space.
1076
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
# When interrupted or exit'd, cleanup temporary files, and complete
1080
# config.log. We remove comments because anyway the quotes in there
1081
# would cause problems or look ugly.
1082
# WARNING: Be sure not to use single quotes in there, as some shells,
1083
# such as our DU 5.0 friend, will then `close' the trap.
1084
trap 'exit_status=$?
1085
# Save into config.log some information that might help in debugging.
1090
## ---------------- ##
1091
## Cache variables. ##
1092
## ---------------- ##
1095
# The following way of writing the cache mishandles newlines in values,
1098
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113
## ----------------- ##
1114
## Output variables. ##
1115
## ----------------- ##
1118
for ac_var in $ac_subst_vars
1120
eval ac_val=$`echo $ac_var`
1121
echo "$ac_var='"'"'$ac_val'"'"'"
1125
if test -n "$ac_subst_files"; then
1132
for ac_var in $ac_subst_files
1134
eval ac_val=$`echo $ac_var`
1135
echo "$ac_var='"'"'$ac_val'"'"'"
1140
if test -s confdefs.h; then
1147
sed "/^$/d" confdefs.h | sort
1150
test "$ac_signal" != 0 &&
1151
echo "$as_me: caught signal $ac_signal"
1152
echo "$as_me: exit $exit_status"
1154
rm -f core *.core &&
1155
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158
for ac_signal in 1 2 13 15; do
1159
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1164
rm -rf conftest* confdefs.h
1165
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168
# Predefined preprocessor variables.
1170
cat >>confdefs.h <<_ACEOF
1171
#define PACKAGE_NAME "$PACKAGE_NAME"
1175
cat >>confdefs.h <<_ACEOF
1176
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180
cat >>confdefs.h <<_ACEOF
1181
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1185
cat >>confdefs.h <<_ACEOF
1186
#define PACKAGE_STRING "$PACKAGE_STRING"
1190
cat >>confdefs.h <<_ACEOF
1191
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195
# Let the site file select an alternate cache file if it wants to.
1196
# Prefer explicitly selected file to automatically selected ones.
1197
if test -z "$CONFIG_SITE"; then
1198
if test "x$prefix" != xNONE; then
1199
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204
for ac_site_file in $CONFIG_SITE; do
1205
if test -r "$ac_site_file"; then
1206
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207
echo "$as_me: loading site script $ac_site_file" >&6;}
1208
sed 's/^/| /' "$ac_site_file" >&5
1213
if test -r "$cache_file"; then
1214
# Some versions of bash will fail to source /dev/null (special
1215
# files actually), so we avoid doing that.
1216
if test -f "$cache_file"; then
1217
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218
echo "$as_me: loading cache $cache_file" >&6;}
1220
[\\/]* | ?:[\\/]* ) . $cache_file;;
1221
*) . ./$cache_file;;
1225
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226
echo "$as_me: creating cache $cache_file" >&6;}
1230
# Check that the precious variables saved in the cache have kept the same
1232
ac_cache_corrupted=false
1233
for ac_var in `(set) 2>&1 |
1234
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236
eval ac_new_set=\$ac_env_${ac_var}_set
1237
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238
eval ac_new_val="\$ac_env_${ac_var}_value"
1239
case $ac_old_set,$ac_new_set in
1241
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243
ac_cache_corrupted=: ;;
1245
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247
ac_cache_corrupted=: ;;
1250
if test "x$ac_old_val" != "x$ac_new_val"; then
1251
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254
echo "$as_me: former value: $ac_old_val" >&2;}
1255
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256
echo "$as_me: current value: $ac_new_val" >&2;}
1257
ac_cache_corrupted=:
1260
# Pass precious variables to config.status.
1261
if test "$ac_new_set" = set; then
1263
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265
*) ac_arg=$ac_var=$ac_new_val ;;
1267
case " $ac_configure_args " in
1268
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273
if $ac_cache_corrupted; then
1274
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278
{ (exit 1); exit 1; }; }
1282
ac_cpp='$CPP $CPPFLAGS'
1283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
ac_config_headers="$ac_config_headers config.h:config.in"
1315
PCRE_DATE=13-Sep-2004
1316
PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1319
POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1322
PCRE_LIB_VERSION=0:1:0
1323
PCRE_POSIXLIB_VERSION=0:0:0
1327
ac_cpp='$CPP $CPPFLAGS'
1328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
if test -n "$ac_tool_prefix"; then
1332
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1333
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1334
echo "$as_me:$LINENO: checking for $ac_word" >&5
1335
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336
if test "${ac_cv_prog_CC+set}" = set; then
1337
echo $ECHO_N "(cached) $ECHO_C" >&6
1339
if test -n "$CC"; then
1340
ac_cv_prog_CC="$CC" # Let the user override the test.
1342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346
test -z "$as_dir" && as_dir=.
1347
for ac_exec_ext in '' $ac_executable_extensions; do
1348
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1349
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1350
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1359
if test -n "$CC"; then
1360
echo "$as_me:$LINENO: result: $CC" >&5
1361
echo "${ECHO_T}$CC" >&6
1363
echo "$as_me:$LINENO: result: no" >&5
1364
echo "${ECHO_T}no" >&6
1368
if test -z "$ac_cv_prog_CC"; then
1370
# Extract the first word of "gcc", so it can be a program name with args.
1371
set dummy gcc; ac_word=$2
1372
echo "$as_me:$LINENO: checking for $ac_word" >&5
1373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1375
echo $ECHO_N "(cached) $ECHO_C" >&6
1377
if test -n "$ac_ct_CC"; then
1378
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384
test -z "$as_dir" && as_dir=.
1385
for ac_exec_ext in '' $ac_executable_extensions; do
1386
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387
ac_cv_prog_ac_ct_CC="gcc"
1388
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1397
if test -n "$ac_ct_CC"; then
1398
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1399
echo "${ECHO_T}$ac_ct_CC" >&6
1401
echo "$as_me:$LINENO: result: no" >&5
1402
echo "${ECHO_T}no" >&6
1410
if test -z "$CC"; then
1411
if test -n "$ac_tool_prefix"; then
1412
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1413
set dummy ${ac_tool_prefix}cc; ac_word=$2
1414
echo "$as_me:$LINENO: checking for $ac_word" >&5
1415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416
if test "${ac_cv_prog_CC+set}" = set; then
1417
echo $ECHO_N "(cached) $ECHO_C" >&6
1419
if test -n "$CC"; then
1420
ac_cv_prog_CC="$CC" # Let the user override the test.
1422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426
test -z "$as_dir" && as_dir=.
1427
for ac_exec_ext in '' $ac_executable_extensions; do
1428
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429
ac_cv_prog_CC="${ac_tool_prefix}cc"
1430
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439
if test -n "$CC"; then
1440
echo "$as_me:$LINENO: result: $CC" >&5
1441
echo "${ECHO_T}$CC" >&6
1443
echo "$as_me:$LINENO: result: no" >&5
1444
echo "${ECHO_T}no" >&6
1448
if test -z "$ac_cv_prog_CC"; then
1450
# Extract the first word of "cc", so it can be a program name with args.
1451
set dummy cc; ac_word=$2
1452
echo "$as_me:$LINENO: checking for $ac_word" >&5
1453
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1455
echo $ECHO_N "(cached) $ECHO_C" >&6
1457
if test -n "$ac_ct_CC"; then
1458
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464
test -z "$as_dir" && as_dir=.
1465
for ac_exec_ext in '' $ac_executable_extensions; do
1466
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467
ac_cv_prog_ac_ct_CC="cc"
1468
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1477
if test -n "$ac_ct_CC"; then
1478
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1479
echo "${ECHO_T}$ac_ct_CC" >&6
1481
echo "$as_me:$LINENO: result: no" >&5
1482
echo "${ECHO_T}no" >&6
1491
if test -z "$CC"; then
1492
# Extract the first word of "cc", so it can be a program name with args.
1493
set dummy cc; ac_word=$2
1494
echo "$as_me:$LINENO: checking for $ac_word" >&5
1495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496
if test "${ac_cv_prog_CC+set}" = set; then
1497
echo $ECHO_N "(cached) $ECHO_C" >&6
1499
if test -n "$CC"; then
1500
ac_cv_prog_CC="$CC" # Let the user override the test.
1503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507
test -z "$as_dir" && as_dir=.
1508
for ac_exec_ext in '' $ac_executable_extensions; do
1509
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1511
ac_prog_rejected=yes
1515
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521
if test $ac_prog_rejected = yes; then
1522
# We found a bogon in the path, so make sure we never use it.
1523
set dummy $ac_cv_prog_CC
1525
if test $# != 0; then
1526
# We chose a different compiler from the bogus one.
1527
# However, it has the same basename, so the bogon will be chosen
1528
# first if we set CC to just the basename; use the full file name.
1530
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1536
if test -n "$CC"; then
1537
echo "$as_me:$LINENO: result: $CC" >&5
1538
echo "${ECHO_T}$CC" >&6
1540
echo "$as_me:$LINENO: result: no" >&5
1541
echo "${ECHO_T}no" >&6
1545
if test -z "$CC"; then
1546
if test -n "$ac_tool_prefix"; then
1549
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1550
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1551
echo "$as_me:$LINENO: checking for $ac_word" >&5
1552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553
if test "${ac_cv_prog_CC+set}" = set; then
1554
echo $ECHO_N "(cached) $ECHO_C" >&6
1556
if test -n "$CC"; then
1557
ac_cv_prog_CC="$CC" # Let the user override the test.
1559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563
test -z "$as_dir" && as_dir=.
1564
for ac_exec_ext in '' $ac_executable_extensions; do
1565
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1567
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576
if test -n "$CC"; then
1577
echo "$as_me:$LINENO: result: $CC" >&5
1578
echo "${ECHO_T}$CC" >&6
1580
echo "$as_me:$LINENO: result: no" >&5
1581
echo "${ECHO_T}no" >&6
1584
test -n "$CC" && break
1587
if test -z "$CC"; then
1591
# Extract the first word of "$ac_prog", so it can be a program name with args.
1592
set dummy $ac_prog; ac_word=$2
1593
echo "$as_me:$LINENO: checking for $ac_word" >&5
1594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596
echo $ECHO_N "(cached) $ECHO_C" >&6
1598
if test -n "$ac_ct_CC"; then
1599
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605
test -z "$as_dir" && as_dir=.
1606
for ac_exec_ext in '' $ac_executable_extensions; do
1607
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608
ac_cv_prog_ac_ct_CC="$ac_prog"
1609
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618
if test -n "$ac_ct_CC"; then
1619
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620
echo "${ECHO_T}$ac_ct_CC" >&6
1622
echo "$as_me:$LINENO: result: no" >&5
1623
echo "${ECHO_T}no" >&6
1626
test -n "$ac_ct_CC" && break
1635
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1636
See \`config.log' for more details." >&5
1637
echo "$as_me: error: no acceptable C compiler found in \$PATH
1638
See \`config.log' for more details." >&2;}
1639
{ (exit 1); exit 1; }; }
1641
# Provide some information about the compiler.
1642
echo "$as_me:$LINENO:" \
1643
"checking for C compiler version" >&5
1644
ac_compiler=`set X $ac_compile; echo $2`
1645
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1646
(eval $ac_compiler --version </dev/null >&5) 2>&5
1648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1649
(exit $ac_status); }
1650
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1651
(eval $ac_compiler -v </dev/null >&5) 2>&5
1653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654
(exit $ac_status); }
1655
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1656
(eval $ac_compiler -V </dev/null >&5) 2>&5
1658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659
(exit $ac_status); }
1661
cat >conftest.$ac_ext <<_ACEOF
1664
cat confdefs.h >>conftest.$ac_ext
1665
cat >>conftest.$ac_ext <<_ACEOF
1666
/* end confdefs.h. */
1676
ac_clean_files_save=$ac_clean_files
1677
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1678
# Try to create an executable without -o first, disregard a.out.
1679
# It will help us diagnose broken compilers, and finding out an intuition
1681
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1682
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1683
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1684
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1685
(eval $ac_link_default) 2>&5
1687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688
(exit $ac_status); }; then
1689
# Find the output, starting from the most likely. This scheme is
1690
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1693
# Be careful to initialize this variable, since it used to be cached.
1694
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1696
# b.out is created by i960 compilers.
1697
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1699
test -f "$ac_file" || continue
1701
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1704
# This is the source file.
1707
# We found the default executable, but exeext='' is most
1711
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1712
# FIXME: I believe we export ac_cv_exeext for Libtool,
1713
# but it would be cool to find out if it's true. Does anybody
1714
# maintain Libtool? --akim.
1722
echo "$as_me: failed program was:" >&5
1723
sed 's/^/| /' conftest.$ac_ext >&5
1725
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1726
See \`config.log' for more details." >&5
1727
echo "$as_me: error: C compiler cannot create executables
1728
See \`config.log' for more details." >&2;}
1729
{ (exit 77); exit 77; }; }
1732
ac_exeext=$ac_cv_exeext
1733
echo "$as_me:$LINENO: result: $ac_file" >&5
1734
echo "${ECHO_T}$ac_file" >&6
1736
# Check the compiler produces executables we can run. If not, either
1737
# the compiler is broken, or we cross compile.
1738
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1739
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1740
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1741
# If not cross compiling, check that we can run a simple program.
1742
if test "$cross_compiling" != yes; then
1743
if { ac_try='./$ac_file'
1744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748
(exit $ac_status); }; }; then
1751
if test "$cross_compiling" = maybe; then
1754
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1755
If you meant to cross compile, use \`--host'.
1756
See \`config.log' for more details." >&5
1757
echo "$as_me: error: cannot run C compiled programs.
1758
If you meant to cross compile, use \`--host'.
1759
See \`config.log' for more details." >&2;}
1760
{ (exit 1); exit 1; }; }
1764
echo "$as_me:$LINENO: result: yes" >&5
1765
echo "${ECHO_T}yes" >&6
1767
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1768
ac_clean_files=$ac_clean_files_save
1769
# Check the compiler produces executables we can run. If not, either
1770
# the compiler is broken, or we cross compile.
1771
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1772
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1773
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1774
echo "${ECHO_T}$cross_compiling" >&6
1776
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1777
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1779
(eval $ac_link) 2>&5
1781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782
(exit $ac_status); }; then
1783
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1784
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1785
# work properly (i.e., refer to `conftest.exe'), while it won't with
1787
for ac_file in conftest.exe conftest conftest.*; do
1788
test -f "$ac_file" || continue
1790
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1791
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1799
See \`config.log' for more details." >&5
1800
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1801
See \`config.log' for more details." >&2;}
1802
{ (exit 1); exit 1; }; }
1805
rm -f conftest$ac_cv_exeext
1806
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1807
echo "${ECHO_T}$ac_cv_exeext" >&6
1809
rm -f conftest.$ac_ext
1810
EXEEXT=$ac_cv_exeext
1812
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1813
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1814
if test "${ac_cv_objext+set}" = set; then
1815
echo $ECHO_N "(cached) $ECHO_C" >&6
1817
cat >conftest.$ac_ext <<_ACEOF
1820
cat confdefs.h >>conftest.$ac_ext
1821
cat >>conftest.$ac_ext <<_ACEOF
1822
/* end confdefs.h. */
1832
rm -f conftest.o conftest.obj
1833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1834
(eval $ac_compile) 2>&5
1836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837
(exit $ac_status); }; then
1838
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1840
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1841
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1846
echo "$as_me: failed program was:" >&5
1847
sed 's/^/| /' conftest.$ac_ext >&5
1849
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1850
See \`config.log' for more details." >&5
1851
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1852
See \`config.log' for more details." >&2;}
1853
{ (exit 1); exit 1; }; }
1856
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1858
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1859
echo "${ECHO_T}$ac_cv_objext" >&6
1860
OBJEXT=$ac_cv_objext
1862
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1863
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1864
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1865
echo $ECHO_N "(cached) $ECHO_C" >&6
1867
cat >conftest.$ac_ext <<_ACEOF
1870
cat confdefs.h >>conftest.$ac_ext
1871
cat >>conftest.$ac_ext <<_ACEOF
1872
/* end confdefs.h. */
1885
rm -f conftest.$ac_objext
1886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887
(eval $ac_compile) 2>conftest.er1
1889
grep -v '^ *+' conftest.er1 >conftest.err
1891
cat conftest.err >&5
1892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893
(exit $ac_status); } &&
1894
{ ac_try='test -z "$ac_c_werror_flag"
1895
|| test ! -s conftest.err'
1896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900
(exit $ac_status); }; } &&
1901
{ ac_try='test -s conftest.$ac_objext'
1902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906
(exit $ac_status); }; }; then
1909
echo "$as_me: failed program was:" >&5
1910
sed 's/^/| /' conftest.$ac_ext >&5
1914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1915
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1918
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1919
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1920
GCC=`test $ac_compiler_gnu = yes && echo yes`
1921
ac_test_CFLAGS=${CFLAGS+set}
1922
ac_save_CFLAGS=$CFLAGS
1924
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1925
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1926
if test "${ac_cv_prog_cc_g+set}" = set; then
1927
echo $ECHO_N "(cached) $ECHO_C" >&6
1929
cat >conftest.$ac_ext <<_ACEOF
1932
cat confdefs.h >>conftest.$ac_ext
1933
cat >>conftest.$ac_ext <<_ACEOF
1934
/* end confdefs.h. */
1944
rm -f conftest.$ac_objext
1945
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1946
(eval $ac_compile) 2>conftest.er1
1948
grep -v '^ *+' conftest.er1 >conftest.err
1950
cat conftest.err >&5
1951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952
(exit $ac_status); } &&
1953
{ ac_try='test -z "$ac_c_werror_flag"
1954
|| test ! -s conftest.err'
1955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959
(exit $ac_status); }; } &&
1960
{ ac_try='test -s conftest.$ac_objext'
1961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965
(exit $ac_status); }; }; then
1968
echo "$as_me: failed program was:" >&5
1969
sed 's/^/| /' conftest.$ac_ext >&5
1973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1975
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1976
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1977
if test "$ac_test_CFLAGS" = set; then
1978
CFLAGS=$ac_save_CFLAGS
1979
elif test $ac_cv_prog_cc_g = yes; then
1980
if test "$GCC" = yes; then
1986
if test "$GCC" = yes; then
1992
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1993
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1994
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1995
echo $ECHO_N "(cached) $ECHO_C" >&6
1997
ac_cv_prog_cc_stdc=no
1999
cat >conftest.$ac_ext <<_ACEOF
2002
cat confdefs.h >>conftest.$ac_ext
2003
cat >>conftest.$ac_ext <<_ACEOF
2004
/* end confdefs.h. */
2007
#include <sys/types.h>
2008
#include <sys/stat.h>
2009
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2010
struct buf { int x; };
2011
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2012
static char *e (p, i)
2018
static char *f (char * (*g) (char **, int), char **p, ...)
2023
s = g (p, va_arg (v,int));
2028
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2029
function prototypes and stuff, but not '\xHH' hex character constants.
2030
These don't provoke an error unfortunately, instead are silently treated
2031
as 'x'. The following induces an error, until -std1 is added to get
2032
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2033
array size at least. It's necessary to write '\x00'==0 to get something
2034
that's true only with -std1. */
2035
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2037
int test (int i, double x);
2038
struct s1 {int (*f) (int a);};
2039
struct s2 {int (*f) (double a);};
2040
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2046
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2051
# Don't try gcc -ansi; that turns off useful extensions and
2052
# breaks some systems' header files.
2053
# AIX -qlanglvl=ansi
2054
# Ultrix and OSF/1 -std1
2055
# HP-UX 10.20 and later -Ae
2056
# HP-UX older versions -Aa -D_HPUX_SOURCE
2057
# SVR4 -Xc -D__EXTENSIONS__
2058
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2060
CC="$ac_save_CC $ac_arg"
2061
rm -f conftest.$ac_objext
2062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063
(eval $ac_compile) 2>conftest.er1
2065
grep -v '^ *+' conftest.er1 >conftest.err
2067
cat conftest.err >&5
2068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069
(exit $ac_status); } &&
2070
{ ac_try='test -z "$ac_c_werror_flag"
2071
|| test ! -s conftest.err'
2072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076
(exit $ac_status); }; } &&
2077
{ ac_try='test -s conftest.$ac_objext'
2078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082
(exit $ac_status); }; }; then
2083
ac_cv_prog_cc_stdc=$ac_arg
2086
echo "$as_me: failed program was:" >&5
2087
sed 's/^/| /' conftest.$ac_ext >&5
2090
rm -f conftest.err conftest.$ac_objext
2092
rm -f conftest.$ac_ext conftest.$ac_objext
2097
case "x$ac_cv_prog_cc_stdc" in
2099
echo "$as_me:$LINENO: result: none needed" >&5
2100
echo "${ECHO_T}none needed" >&6 ;;
2102
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2103
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2104
CC="$CC $ac_cv_prog_cc_stdc" ;;
2107
# Some people use a C++ compiler to compile C. Since we use `exit',
2108
# in C++ we need to declare it. In case someone uses the same compiler
2109
# for both compiling C and C++ we need to have the C++ compiler decide
2110
# the declaration of exit, since it's the most demanding environment.
2111
cat >conftest.$ac_ext <<_ACEOF
2116
rm -f conftest.$ac_objext
2117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118
(eval $ac_compile) 2>conftest.er1
2120
grep -v '^ *+' conftest.er1 >conftest.err
2122
cat conftest.err >&5
2123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124
(exit $ac_status); } &&
2125
{ ac_try='test -z "$ac_c_werror_flag"
2126
|| test ! -s conftest.err'
2127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131
(exit $ac_status); }; } &&
2132
{ ac_try='test -s conftest.$ac_objext'
2133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137
(exit $ac_status); }; }; then
2138
for ac_declaration in \
2140
'extern "C" void std::exit (int) throw (); using std::exit;' \
2141
'extern "C" void std::exit (int); using std::exit;' \
2142
'extern "C" void exit (int) throw ();' \
2143
'extern "C" void exit (int);' \
2146
cat >conftest.$ac_ext <<_ACEOF
2149
cat confdefs.h >>conftest.$ac_ext
2150
cat >>conftest.$ac_ext <<_ACEOF
2151
/* end confdefs.h. */
2162
rm -f conftest.$ac_objext
2163
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164
(eval $ac_compile) 2>conftest.er1
2166
grep -v '^ *+' conftest.er1 >conftest.err
2168
cat conftest.err >&5
2169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
(exit $ac_status); } &&
2171
{ ac_try='test -z "$ac_c_werror_flag"
2172
|| test ! -s conftest.err'
2173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
(exit $ac_status); }; } &&
2178
{ ac_try='test -s conftest.$ac_objext'
2179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183
(exit $ac_status); }; }; then
2186
echo "$as_me: failed program was:" >&5
2187
sed 's/^/| /' conftest.$ac_ext >&5
2191
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192
cat >conftest.$ac_ext <<_ACEOF
2195
cat confdefs.h >>conftest.$ac_ext
2196
cat >>conftest.$ac_ext <<_ACEOF
2197
/* end confdefs.h. */
2207
rm -f conftest.$ac_objext
2208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209
(eval $ac_compile) 2>conftest.er1
2211
grep -v '^ *+' conftest.er1 >conftest.err
2213
cat conftest.err >&5
2214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
(exit $ac_status); } &&
2216
{ ac_try='test -z "$ac_c_werror_flag"
2217
|| test ! -s conftest.err'
2218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
(exit $ac_status); }; } &&
2223
{ ac_try='test -s conftest.$ac_objext'
2224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
(exit $ac_status); }; }; then
2231
echo "$as_me: failed program was:" >&5
2232
sed 's/^/| /' conftest.$ac_ext >&5
2235
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238
if test -n "$ac_declaration"; then
2239
echo '#ifdef __cplusplus' >>confdefs.h
2240
echo $ac_declaration >>confdefs.h
2241
echo '#endif' >>confdefs.h
2245
echo "$as_me: failed program was:" >&5
2246
sed 's/^/| /' conftest.$ac_ext >&5
2249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251
ac_cpp='$CPP $CPPFLAGS'
2252
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260
ac_cpp='$CPP $CPPFLAGS'
2261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2265
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2266
# On Suns, sometimes $CPP names a directory.
2267
if test -n "$CPP" && test -d "$CPP"; then
2270
if test -z "$CPP"; then
2271
if test "${ac_cv_prog_CPP+set}" = set; then
2272
echo $ECHO_N "(cached) $ECHO_C" >&6
2274
# Double quotes because CPP needs to be expanded
2275
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2278
for ac_c_preproc_warn_flag in '' yes
2280
# Use a header file that comes with gcc, so configuring glibc
2281
# with a fresh cross-compiler works.
2282
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2283
# <limits.h> exists even on freestanding compilers.
2284
# On the NeXT, cc -E runs the code through the compiler's parser,
2285
# not just through cpp. "Syntax error" is here to catch this case.
2286
cat >conftest.$ac_ext <<_ACEOF
2289
cat confdefs.h >>conftest.$ac_ext
2290
cat >>conftest.$ac_ext <<_ACEOF
2291
/* end confdefs.h. */
2293
# include <limits.h>
2295
# include <assert.h>
2299
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2300
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2302
grep -v '^ *+' conftest.er1 >conftest.err
2304
cat conftest.err >&5
2305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306
(exit $ac_status); } >/dev/null; then
2307
if test -s conftest.err; then
2308
ac_cpp_err=$ac_c_preproc_warn_flag
2309
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2316
if test -z "$ac_cpp_err"; then
2319
echo "$as_me: failed program was:" >&5
2320
sed 's/^/| /' conftest.$ac_ext >&5
2322
# Broken: fails on valid input.
2325
rm -f conftest.err conftest.$ac_ext
2327
# OK, works on sane cases. Now check whether non-existent headers
2328
# can be detected and how.
2329
cat >conftest.$ac_ext <<_ACEOF
2332
cat confdefs.h >>conftest.$ac_ext
2333
cat >>conftest.$ac_ext <<_ACEOF
2334
/* end confdefs.h. */
2335
#include <ac_nonexistent.h>
2337
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2338
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2340
grep -v '^ *+' conftest.er1 >conftest.err
2342
cat conftest.err >&5
2343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
(exit $ac_status); } >/dev/null; then
2345
if test -s conftest.err; then
2346
ac_cpp_err=$ac_c_preproc_warn_flag
2347
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2354
if test -z "$ac_cpp_err"; then
2355
# Broken: success on invalid input.
2358
echo "$as_me: failed program was:" >&5
2359
sed 's/^/| /' conftest.$ac_ext >&5
2361
# Passes both tests.
2365
rm -f conftest.err conftest.$ac_ext
2368
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2369
rm -f conftest.err conftest.$ac_ext
2370
if $ac_preproc_ok; then
2382
echo "$as_me:$LINENO: result: $CPP" >&5
2383
echo "${ECHO_T}$CPP" >&6
2385
for ac_c_preproc_warn_flag in '' yes
2387
# Use a header file that comes with gcc, so configuring glibc
2388
# with a fresh cross-compiler works.
2389
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2390
# <limits.h> exists even on freestanding compilers.
2391
# On the NeXT, cc -E runs the code through the compiler's parser,
2392
# not just through cpp. "Syntax error" is here to catch this case.
2393
cat >conftest.$ac_ext <<_ACEOF
2396
cat confdefs.h >>conftest.$ac_ext
2397
cat >>conftest.$ac_ext <<_ACEOF
2398
/* end confdefs.h. */
2400
# include <limits.h>
2402
# include <assert.h>
2406
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2407
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2409
grep -v '^ *+' conftest.er1 >conftest.err
2411
cat conftest.err >&5
2412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
(exit $ac_status); } >/dev/null; then
2414
if test -s conftest.err; then
2415
ac_cpp_err=$ac_c_preproc_warn_flag
2416
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2423
if test -z "$ac_cpp_err"; then
2426
echo "$as_me: failed program was:" >&5
2427
sed 's/^/| /' conftest.$ac_ext >&5
2429
# Broken: fails on valid input.
2432
rm -f conftest.err conftest.$ac_ext
2434
# OK, works on sane cases. Now check whether non-existent headers
2435
# can be detected and how.
2436
cat >conftest.$ac_ext <<_ACEOF
2439
cat confdefs.h >>conftest.$ac_ext
2440
cat >>conftest.$ac_ext <<_ACEOF
2441
/* end confdefs.h. */
2442
#include <ac_nonexistent.h>
2444
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2445
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2447
grep -v '^ *+' conftest.er1 >conftest.err
2449
cat conftest.err >&5
2450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451
(exit $ac_status); } >/dev/null; then
2452
if test -s conftest.err; then
2453
ac_cpp_err=$ac_c_preproc_warn_flag
2454
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2461
if test -z "$ac_cpp_err"; then
2462
# Broken: success on invalid input.
2465
echo "$as_me: failed program was:" >&5
2466
sed 's/^/| /' conftest.$ac_ext >&5
2468
# Passes both tests.
2472
rm -f conftest.err conftest.$ac_ext
2475
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2476
rm -f conftest.err conftest.$ac_ext
2477
if $ac_preproc_ok; then
2480
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2481
See \`config.log' for more details." >&5
2482
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2483
See \`config.log' for more details." >&2;}
2484
{ (exit 1); exit 1; }; }
2488
ac_cpp='$CPP $CPPFLAGS'
2489
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494
echo "$as_me:$LINENO: checking for egrep" >&5
2495
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2496
if test "${ac_cv_prog_egrep+set}" = set; then
2497
echo $ECHO_N "(cached) $ECHO_C" >&6
2499
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2500
then ac_cv_prog_egrep='grep -E'
2501
else ac_cv_prog_egrep='egrep'
2504
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2505
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2506
EGREP=$ac_cv_prog_egrep
2509
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2510
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2511
if test "${ac_cv_header_stdc+set}" = set; then
2512
echo $ECHO_N "(cached) $ECHO_C" >&6
2514
cat >conftest.$ac_ext <<_ACEOF
2517
cat confdefs.h >>conftest.$ac_ext
2518
cat >>conftest.$ac_ext <<_ACEOF
2519
/* end confdefs.h. */
2533
rm -f conftest.$ac_objext
2534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535
(eval $ac_compile) 2>conftest.er1
2537
grep -v '^ *+' conftest.er1 >conftest.err
2539
cat conftest.err >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); } &&
2542
{ ac_try='test -z "$ac_c_werror_flag"
2543
|| test ! -s conftest.err'
2544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
(exit $ac_status); }; } &&
2549
{ ac_try='test -s conftest.$ac_objext'
2550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554
(exit $ac_status); }; }; then
2555
ac_cv_header_stdc=yes
2557
echo "$as_me: failed program was:" >&5
2558
sed 's/^/| /' conftest.$ac_ext >&5
2560
ac_cv_header_stdc=no
2562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564
if test $ac_cv_header_stdc = yes; then
2565
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2566
cat >conftest.$ac_ext <<_ACEOF
2569
cat confdefs.h >>conftest.$ac_ext
2570
cat >>conftest.$ac_ext <<_ACEOF
2571
/* end confdefs.h. */
2575
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2576
$EGREP "memchr" >/dev/null 2>&1; then
2579
ac_cv_header_stdc=no
2585
if test $ac_cv_header_stdc = yes; then
2586
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2587
cat >conftest.$ac_ext <<_ACEOF
2590
cat confdefs.h >>conftest.$ac_ext
2591
cat >>conftest.$ac_ext <<_ACEOF
2592
/* end confdefs.h. */
2596
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2597
$EGREP "free" >/dev/null 2>&1; then
2600
ac_cv_header_stdc=no
2606
if test $ac_cv_header_stdc = yes; then
2607
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2608
if test "$cross_compiling" = yes; then
2611
cat >conftest.$ac_ext <<_ACEOF
2614
cat confdefs.h >>conftest.$ac_ext
2615
cat >>conftest.$ac_ext <<_ACEOF
2616
/* end confdefs.h. */
2618
#if ((' ' & 0x0FF) == 0x020)
2619
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2620
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2622
# define ISLOWER(c) \
2623
(('a' <= (c) && (c) <= 'i') \
2624
|| ('j' <= (c) && (c) <= 'r') \
2625
|| ('s' <= (c) && (c) <= 'z'))
2626
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2629
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2634
for (i = 0; i < 256; i++)
2635
if (XOR (islower (i), ISLOWER (i))
2636
|| toupper (i) != TOUPPER (i))
2641
rm -f conftest$ac_exeext
2642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2643
(eval $ac_link) 2>&5
2645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651
(exit $ac_status); }; }; then
2654
echo "$as_me: program exited with status $ac_status" >&5
2655
echo "$as_me: failed program was:" >&5
2656
sed 's/^/| /' conftest.$ac_ext >&5
2659
ac_cv_header_stdc=no
2661
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2665
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2666
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2667
if test $ac_cv_header_stdc = yes; then
2669
cat >>confdefs.h <<\_ACEOF
2670
#define STDC_HEADERS 1
2675
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2685
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2686
inttypes.h stdint.h unistd.h
2688
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2689
echo "$as_me:$LINENO: checking for $ac_header" >&5
2690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2692
echo $ECHO_N "(cached) $ECHO_C" >&6
2694
cat >conftest.$ac_ext <<_ACEOF
2697
cat confdefs.h >>conftest.$ac_ext
2698
cat >>conftest.$ac_ext <<_ACEOF
2699
/* end confdefs.h. */
2700
$ac_includes_default
2702
#include <$ac_header>
2704
rm -f conftest.$ac_objext
2705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706
(eval $ac_compile) 2>conftest.er1
2708
grep -v '^ *+' conftest.er1 >conftest.err
2710
cat conftest.err >&5
2711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712
(exit $ac_status); } &&
2713
{ ac_try='test -z "$ac_c_werror_flag"
2714
|| test ! -s conftest.err'
2715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719
(exit $ac_status); }; } &&
2720
{ ac_try='test -s conftest.$ac_objext'
2721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725
(exit $ac_status); }; }; then
2726
eval "$as_ac_Header=yes"
2728
echo "$as_me: failed program was:" >&5
2729
sed 's/^/| /' conftest.$ac_ext >&5
2731
eval "$as_ac_Header=no"
2733
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2736
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2737
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2738
cat >>confdefs.h <<_ACEOF
2739
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2748
for ac_header in limits.h
2750
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2751
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2752
echo "$as_me:$LINENO: checking for $ac_header" >&5
2753
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2755
echo $ECHO_N "(cached) $ECHO_C" >&6
2757
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2758
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2760
# Is the header compilable?
2761
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2762
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2763
cat >conftest.$ac_ext <<_ACEOF
2766
cat confdefs.h >>conftest.$ac_ext
2767
cat >>conftest.$ac_ext <<_ACEOF
2768
/* end confdefs.h. */
2769
$ac_includes_default
2770
#include <$ac_header>
2772
rm -f conftest.$ac_objext
2773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774
(eval $ac_compile) 2>conftest.er1
2776
grep -v '^ *+' conftest.er1 >conftest.err
2778
cat conftest.err >&5
2779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780
(exit $ac_status); } &&
2781
{ ac_try='test -z "$ac_c_werror_flag"
2782
|| test ! -s conftest.err'
2783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787
(exit $ac_status); }; } &&
2788
{ ac_try='test -s conftest.$ac_objext'
2789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
(exit $ac_status); }; }; then
2794
ac_header_compiler=yes
2796
echo "$as_me: failed program was:" >&5
2797
sed 's/^/| /' conftest.$ac_ext >&5
2799
ac_header_compiler=no
2801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2803
echo "${ECHO_T}$ac_header_compiler" >&6
2805
# Is the header present?
2806
echo "$as_me:$LINENO: checking $ac_header presence" >&5
2807
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2808
cat >conftest.$ac_ext <<_ACEOF
2811
cat confdefs.h >>conftest.$ac_ext
2812
cat >>conftest.$ac_ext <<_ACEOF
2813
/* end confdefs.h. */
2814
#include <$ac_header>
2816
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2819
grep -v '^ *+' conftest.er1 >conftest.err
2821
cat conftest.err >&5
2822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
(exit $ac_status); } >/dev/null; then
2824
if test -s conftest.err; then
2825
ac_cpp_err=$ac_c_preproc_warn_flag
2826
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2833
if test -z "$ac_cpp_err"; then
2834
ac_header_preproc=yes
2836
echo "$as_me: failed program was:" >&5
2837
sed 's/^/| /' conftest.$ac_ext >&5
2839
ac_header_preproc=no
2841
rm -f conftest.err conftest.$ac_ext
2842
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2843
echo "${ECHO_T}$ac_header_preproc" >&6
2845
# So? What about this header?
2846
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2848
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2849
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2850
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2851
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2852
ac_header_preproc=yes
2855
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2856
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2857
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2858
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2859
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2860
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2861
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2862
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2863
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2864
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2865
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2866
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2869
## ------------------------------------------ ##
2870
## Report this to the AC_PACKAGE_NAME lists. ##
2871
## ------------------------------------------ ##
2874
sed "s/^/$as_me: WARNING: /" >&2
2877
echo "$as_me:$LINENO: checking for $ac_header" >&5
2878
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2879
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2880
echo $ECHO_N "(cached) $ECHO_C" >&6
2882
eval "$as_ac_Header=\$ac_header_preproc"
2884
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2885
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2888
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2889
cat >>confdefs.h <<_ACEOF
2890
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2899
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2900
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2901
if test "${ac_cv_c_const+set}" = set; then
2902
echo $ECHO_N "(cached) $ECHO_C" >&6
2904
cat >conftest.$ac_ext <<_ACEOF
2907
cat confdefs.h >>conftest.$ac_ext
2908
cat >>conftest.$ac_ext <<_ACEOF
2909
/* end confdefs.h. */
2914
/* FIXME: Include the comments suggested by Paul. */
2916
/* Ultrix mips cc rejects this. */
2917
typedef int charset[2];
2919
/* SunOS 4.1.1 cc rejects this. */
2920
char const *const *ccp;
2922
/* NEC SVR4.0.2 mips cc rejects this. */
2923
struct point {int x, y;};
2924
static struct point const zero = {0,0};
2925
/* AIX XL C 1.02.0.0 rejects this.
2926
It does not let you subtract one const X* pointer from another in
2927
an arm of an if-expression whose if-part is not a constant
2929
const char *g = "string";
2930
ccp = &g + (g ? g-g : 0);
2931
/* HPUX 7.0 cc rejects these. */
2934
ccp = (char const *const *) p;
2935
{ /* SCO 3.2v4 cc rejects this. */
2937
char const *s = 0 ? (char *) 0 : (char const *) 0;
2941
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2943
const int *foo = &x[0];
2946
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2947
typedef const int *iptr;
2951
{ /* AIX XL C 1.02.0.0 rejects this saying
2952
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2953
struct s { int j; const int *ap[3]; };
2954
struct s *b; b->j = 5;
2956
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2965
rm -f conftest.$ac_objext
2966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967
(eval $ac_compile) 2>conftest.er1
2969
grep -v '^ *+' conftest.er1 >conftest.err
2971
cat conftest.err >&5
2972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973
(exit $ac_status); } &&
2974
{ ac_try='test -z "$ac_c_werror_flag"
2975
|| test ! -s conftest.err'
2976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980
(exit $ac_status); }; } &&
2981
{ ac_try='test -s conftest.$ac_objext'
2982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986
(exit $ac_status); }; }; then
2989
echo "$as_me: failed program was:" >&5
2990
sed 's/^/| /' conftest.$ac_ext >&5
2994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2997
echo "${ECHO_T}$ac_cv_c_const" >&6
2998
if test $ac_cv_c_const = no; then
3000
cat >>confdefs.h <<\_ACEOF
3006
echo "$as_me:$LINENO: checking for size_t" >&5
3007
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3008
if test "${ac_cv_type_size_t+set}" = set; then
3009
echo $ECHO_N "(cached) $ECHO_C" >&6
3011
cat >conftest.$ac_ext <<_ACEOF
3014
cat confdefs.h >>conftest.$ac_ext
3015
cat >>conftest.$ac_ext <<_ACEOF
3016
/* end confdefs.h. */
3017
$ac_includes_default
3023
if (sizeof (size_t))
3029
rm -f conftest.$ac_objext
3030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031
(eval $ac_compile) 2>conftest.er1
3033
grep -v '^ *+' conftest.er1 >conftest.err
3035
cat conftest.err >&5
3036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037
(exit $ac_status); } &&
3038
{ ac_try='test -z "$ac_c_werror_flag"
3039
|| test ! -s conftest.err'
3040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
(exit $ac_status); }; } &&
3045
{ ac_try='test -s conftest.$ac_objext'
3046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050
(exit $ac_status); }; }; then
3051
ac_cv_type_size_t=yes
3053
echo "$as_me: failed program was:" >&5
3054
sed 's/^/| /' conftest.$ac_ext >&5
3056
ac_cv_type_size_t=no
3058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3061
echo "${ECHO_T}$ac_cv_type_size_t" >&6
3062
if test $ac_cv_type_size_t = yes; then
3066
cat >>confdefs.h <<_ACEOF
3067
#define size_t unsigned
3077
for ac_func in bcopy memmove strerror
3079
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3080
echo "$as_me:$LINENO: checking for $ac_func" >&5
3081
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3082
if eval "test \"\${$as_ac_var+set}\" = set"; then
3083
echo $ECHO_N "(cached) $ECHO_C" >&6
3085
cat >conftest.$ac_ext <<_ACEOF
3088
cat confdefs.h >>conftest.$ac_ext
3089
cat >>conftest.$ac_ext <<_ACEOF
3090
/* end confdefs.h. */
3091
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3092
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3093
#define $ac_func innocuous_$ac_func
3095
/* System header to define __stub macros and hopefully few prototypes,
3096
which can conflict with char $ac_func (); below.
3097
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098
<limits.h> exists even on freestanding compilers. */
3101
# include <limits.h>
3103
# include <assert.h>
3108
/* Override any gcc2 internal prototype to avoid an error. */
3113
/* We use char because int might match the return type of a gcc2
3114
builtin and then its argument prototype would still apply. */
3116
/* The GNU C library defines this for functions which it implements
3117
to always fail with ENOSYS. Some functions are actually named
3118
something starting with __ and the normal name is an alias. */
3119
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3122
char (*f) () = $ac_func;
3131
return f != $ac_func;
3136
rm -f conftest.$ac_objext conftest$ac_exeext
3137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138
(eval $ac_link) 2>conftest.er1
3140
grep -v '^ *+' conftest.er1 >conftest.err
3142
cat conftest.err >&5
3143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144
(exit $ac_status); } &&
3145
{ ac_try='test -z "$ac_c_werror_flag"
3146
|| test ! -s conftest.err'
3147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151
(exit $ac_status); }; } &&
3152
{ ac_try='test -s conftest$ac_exeext'
3153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157
(exit $ac_status); }; }; then
3158
eval "$as_ac_var=yes"
3160
echo "$as_me: failed program was:" >&5
3161
sed 's/^/| /' conftest.$ac_ext >&5
3163
eval "$as_ac_var=no"
3165
rm -f conftest.err conftest.$ac_objext \
3166
conftest$ac_exeext conftest.$ac_ext
3168
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3169
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3170
if test `eval echo '${'$as_ac_var'}'` = yes; then
3171
cat >>confdefs.h <<_ACEOF
3172
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3182
# Check whether --enable-shared or --disable-shared was given.
3183
if test "${enable_shared+set}" = set; then
3184
enableval="$enable_shared"
3185
if test "$enableval" = "no"; then
3193
# Check whether --enable-utf8 or --disable-utf8 was given.
3194
if test "${enable_utf8+set}" = set; then
3195
enableval="$enable_utf8"
3196
if test "$enableval" = "yes"; then
3203
# Check whether --enable-unicode-properties or --disable-unicode-properties was given.
3204
if test "${enable_unicode_properties+set}" = set; then
3205
enableval="$enable_unicode_properties"
3206
if test "$enableval" = "yes"; then
3213
# Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
3214
if test "${enable_newline_is_cr+set}" = set; then
3215
enableval="$enable_newline_is_cr"
3216
if test "$enableval" = "yes"; then
3217
NEWLINE=-DNEWLINE=13
3223
# Check whether --enable-newline-is-lf or --disable-newline-is-lf was given.
3224
if test "${enable_newline_is_lf+set}" = set; then
3225
enableval="$enable_newline_is_lf"
3226
if test "$enableval" = "yes"; then
3227
NEWLINE=-DNEWLINE=10
3233
# Check whether --enable-ebcdic or --disable-ebcdic was given.
3234
if test "${enable_ebcdic+set}" = set; then
3235
enableval="$enable_ebcdic"
3236
if test "$enableval" == "yes"; then
3243
# Check whether --enable-stack-for-recursion or --disable-stack-for-recursion was given.
3244
if test "${enable_stack_for_recursion+set}" = set; then
3245
enableval="$enable_stack_for_recursion"
3246
if test "$enableval" = "no"; then
3247
NO_RECURSE=-DNO_RECURSE
3255
# Check whether --with-posix-malloc-threshold or --without-posix-malloc-threshold was given.
3256
if test "${with_posix_malloc_threshold+set}" = set; then
3257
withval="$with_posix_malloc_threshold"
3258
POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=$withval
3264
# Check whether --with-link-size or --without-link-size was given.
3265
if test "${with_link_size+set}" = set; then
3266
withval="$with_link_size"
3267
LINK_SIZE=-DLINK_SIZE=$withval
3273
# Check whether --with-match-limit or --without-match-limit was given.
3274
if test "${with_match_limit+set}" = set; then
3275
withval="$with_match_limit"
3276
MATCH_LIMIT=-DMATCH_LIMIT=$withval
3281
if test "$UCP" != "" ; then
3310
if test "x$enable_shared" = "xno" ; then
3312
cat >>confdefs.h <<\_ACEOF
3313
#define PCRE_STATIC 1
3318
ac_config_files="$ac_config_files Makefile pcre.h:pcre.in pcre-config"
3319
ac_config_commands="$ac_config_commands default"
3320
cat >confcache <<\_ACEOF
3321
# This file is a shell script that caches the results of configure
3322
# tests run on this system so they can be shared between configure
3323
# scripts and configure runs, see configure's option --config-cache.
3324
# It is not useful on other systems. If it contains results you don't
3325
# want to keep, you may remove or edit it.
3327
# config.status only pays attention to the cache file if you give it
3328
# the --recheck option to rerun configure.
3330
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3331
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3336
# The following way of writing the cache mishandles newlines in values,
3337
# but we know of no workaround that is simple, portable, and efficient.
3338
# So, don't put newlines in cache variables' values.
3339
# Ultrix sh set writes to stderr and can't be redirected directly,
3340
# and sets the high bit in the cache file unless we assign to the vars.
3343
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3345
# `set' does not quote correctly, so add quotes (double-quote
3346
# substitution turns \\\\ into \\, and sed turns \\ into \).
3349
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3352
# `set' quotes correctly as required by POSIX, so do not add quotes.
3354
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3361
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3363
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3365
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3366
if test -w $cache_file; then
3367
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3368
cat confcache >$cache_file
3370
echo "not updating unwritable cache $cache_file"
3375
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3376
# Let make expand exec_prefix.
3377
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3379
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3380
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3381
# trailing colons and then remove the whole line if VPATH becomes empty
3382
# (actually we leave an empty line to preserve line numbers).
3383
if test "x$srcdir" = x.; then
3384
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3385
s/:*\$(srcdir):*/:/;
3386
s/:*\${srcdir}:*/:/;
3388
s/^\([^=]*=[ ]*\):*/\1/;
3394
DEFS=-DHAVE_CONFIG_H
3398
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3399
# 1. Remove the extension, and $U if already installed.
3400
ac_i=`echo "$ac_i" |
3401
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3403
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3404
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3408
LTLIBOBJS=$ac_ltlibobjs
3412
: ${CONFIG_STATUS=./config.status}
3413
ac_clean_files_save=$ac_clean_files
3414
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3415
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3416
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3417
cat >$CONFIG_STATUS <<_ACEOF
3419
# Generated by $as_me.
3420
# Run this file to recreate the current configuration.
3421
# Compiler output produced by configure, useful for debugging
3422
# configure, is in config.log if it exists.
3427
SHELL=\${CONFIG_SHELL-$SHELL}
3430
cat >>$CONFIG_STATUS <<\_ACEOF
3431
## --------------------- ##
3432
## M4sh Initialization. ##
3433
## --------------------- ##
3435
# Be Bourne compatible
3436
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3439
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3440
# is contrary to our usage. Disable this feature.
3441
alias -g '${1+"$@"}'='"$@"'
3442
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3445
DUALCASE=1; export DUALCASE # for MKS sh
3447
# Support unset when possible.
3448
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3455
# Work around bugs in pre-3.0 UWIN ksh.
3456
$as_unset ENV MAIL MAILPATH
3463
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3464
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3465
LC_TELEPHONE LC_TIME
3467
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3468
eval $as_var=C; export $as_var
3474
# Required to use basename.
3475
if expr a : '\(a\)' >/dev/null 2>&1; then
3481
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3482
as_basename=basename
3488
# Name of the executable.
3489
as_me=`$as_basename "$0" ||
3490
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3491
X"$0" : 'X\(//\)$' \| \
3492
X"$0" : 'X\(/\)$' \| \
3493
. : '\(.\)' 2>/dev/null ||
3495
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3496
/^X\/\(\/\/\)$/{ s//\1/; q; }
3497
/^X\/\(\/\).*/{ s//\1/; q; }
3501
# PATH needs CR, and LINENO needs CR and PATH.
3502
# Avoid depending upon Character Ranges.
3503
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3504
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3505
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3506
as_cr_digits='0123456789'
3507
as_cr_alnum=$as_cr_Letters$as_cr_digits
3509
# The user is always right.
3510
if test "${PATH_SEPARATOR+set}" != set; then
3511
echo "#! /bin/sh" >conf$$.sh
3512
echo "exit 0" >>conf$$.sh
3514
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3525
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3526
test "x$as_lineno_1" != "x$as_lineno_2" &&
3527
test "x$as_lineno_3" = "x$as_lineno_2" || {
3528
# Find who we are. Look in the path if we contain no path at all
3531
*[\\/]* ) as_myself=$0 ;;
3532
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536
test -z "$as_dir" && as_dir=.
3537
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3542
# We did not find ourselves, most probably we were run as `sh COMMAND'
3543
# in which case we are not to be found in the path.
3544
if test "x$as_myself" = x; then
3547
if test ! -f "$as_myself"; then
3548
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3549
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3550
{ (exit 1); exit 1; }; }
3552
case $CONFIG_SHELL in
3554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3558
test -z "$as_dir" && as_dir=.
3559
for as_base in sh bash ksh sh5; do
3562
if ("$as_dir/$as_base" -c '
3565
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3566
test "x$as_lineno_1" != "x$as_lineno_2" &&
3567
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3568
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3569
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3570
CONFIG_SHELL=$as_dir/$as_base
3572
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3580
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3581
# uniformly replaced by the line number. The first 'sed' inserts a
3582
# line-number line before each line; the second 'sed' does the real
3583
# work. The second script uses 'N' to pair each line-number line
3584
# with the numbered line, and appends trailing '-' during
3585
# substitution so that $LINENO is not a special case at line end.
3586
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3587
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3588
sed '=' <$as_myself |
3593
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3596
s,^['$as_cr_digits']*\n,,
3598
chmod +x $as_me.lineno ||
3599
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3600
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3601
{ (exit 1); exit 1; }; }
3603
# Don't try to exec as it changes $[0], causing all sort of problems
3604
# (the dirname of $[0] is not the place where we might find the
3605
# original and so on. Autoconf is especially sensible to this).
3607
# Exit status is that of the last command.
3612
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3613
*c*,-n*) ECHO_N= ECHO_C='
3615
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3616
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3619
if expr a : '\(a\)' >/dev/null 2>&1; then
3625
rm -f conf$$ conf$$.exe conf$$.file
3627
if ln -s conf$$.file conf$$ 2>/dev/null; then
3628
# We could just check for DJGPP; but this test a) works b) is more generic
3629
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3630
if test -f conf$$.exe; then
3631
# Don't use ln at all; we don't have any links
3636
elif ln conf$$.file conf$$ 2>/dev/null; then
3641
rm -f conf$$ conf$$.exe conf$$.file
3643
if mkdir -p . 2>/dev/null; then
3646
test -d ./-p && rmdir ./-p
3650
as_executable_p="test -f"
3652
# Sed expression to map a string onto a valid CPP name.
3653
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3655
# Sed expression to map a string onto a valid variable name.
3656
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3660
# We need space, tab and new line, in precisely that order.
3670
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3671
# report actual input values of CONFIG_FILES etc. instead of their
3672
# values after options handling. Logging --version etc. is OK.
3676
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3677
## Running $as_me. ##
3682
This file was extended by $as_me, which was
3683
generated by GNU Autoconf 2.59. Invocation command line was
3685
CONFIG_FILES = $CONFIG_FILES
3686
CONFIG_HEADERS = $CONFIG_HEADERS
3687
CONFIG_LINKS = $CONFIG_LINKS
3688
CONFIG_COMMANDS = $CONFIG_COMMANDS
3692
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3696
# Files that config.status was made for.
3697
if test -n "$ac_config_files"; then
3698
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3701
if test -n "$ac_config_headers"; then
3702
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3705
if test -n "$ac_config_links"; then
3706
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3709
if test -n "$ac_config_commands"; then
3710
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3713
cat >>$CONFIG_STATUS <<\_ACEOF
3716
\`$as_me' instantiates files from templates according to the
3717
current configuration.
3719
Usage: $0 [OPTIONS] [FILE]...
3721
-h, --help print this help, then exit
3722
-V, --version print version number, then exit
3723
-q, --quiet do not print progress messages
3724
-d, --debug don't remove temporary files
3725
--recheck update $as_me by reconfiguring in the same conditions
3726
--file=FILE[:TEMPLATE]
3727
instantiate the configuration file FILE
3728
--header=FILE[:TEMPLATE]
3729
instantiate the configuration header FILE
3731
Configuration files:
3734
Configuration headers:
3737
Configuration commands:
3740
Report bugs to <bug-autoconf@gnu.org>."
3743
cat >>$CONFIG_STATUS <<_ACEOF
3746
configured by $0, generated by GNU Autoconf 2.59,
3747
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3749
Copyright (C) 2003 Free Software Foundation, Inc.
3750
This config.status script is free software; the Free Software Foundation
3751
gives unlimited permission to copy, distribute and modify it."
3755
cat >>$CONFIG_STATUS <<\_ACEOF
3756
# If no file are specified by the user, then we need to provide default
3757
# value. By we need to know if files were specified by the user.
3763
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3764
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3772
*) # This is not an option, so the user has probably given explicit
3775
ac_need_defaults=false;;
3779
# Handling of the options.
3781
cat >>$CONFIG_STATUS <<\_ACEOF
3782
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3784
--version | --vers* | -V )
3785
echo "$ac_cs_version"; exit 0 ;;
3787
# Conflict between --help and --header
3788
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3789
Try \`$0 --help' for more information." >&5
3790
echo "$as_me: error: ambiguous option: $1
3791
Try \`$0 --help' for more information." >&2;}
3792
{ (exit 1); exit 1; }; };;
3793
--help | --hel | -h )
3794
echo "$ac_cs_usage"; exit 0 ;;
3795
--debug | --d* | -d )
3797
--file | --fil | --fi | --f )
3799
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3800
ac_need_defaults=false;;
3801
--header | --heade | --head | --hea )
3803
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3804
ac_need_defaults=false;;
3805
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3806
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3810
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3811
Try \`$0 --help' for more information." >&5
3812
echo "$as_me: error: unrecognized option: $1
3813
Try \`$0 --help' for more information." >&2;}
3814
{ (exit 1); exit 1; }; } ;;
3816
*) ac_config_targets="$ac_config_targets $1" ;;
3822
ac_configure_extra_args=
3824
if $ac_cs_silent; then
3826
ac_configure_extra_args="$ac_configure_extra_args --silent"
3830
cat >>$CONFIG_STATUS <<_ACEOF
3831
if \$ac_cs_recheck; then
3832
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3833
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3842
cat >>$CONFIG_STATUS <<\_ACEOF
3843
for ac_config_target in $ac_config_targets
3845
case "$ac_config_target" in
3846
# Handling of arguments.
3847
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3848
"pcre.h" ) CONFIG_FILES="$CONFIG_FILES pcre.h:pcre.in" ;;
3849
"pcre-config" ) CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
3850
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
3851
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
3852
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3853
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3854
{ (exit 1); exit 1; }; };;
3858
# If the user did not use the arguments to specify the items to instantiate,
3859
# then the envvar interface is used. Set only those that are not.
3860
# We use the long form for the default assignment because of an extremely
3861
# bizarre bug on SunOS 4.1.3.
3862
if $ac_need_defaults; then
3863
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3864
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3865
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3868
# Have a temporary directory for convenience. Make it in the build tree
3869
# simply because there is no reason to put it here, and in addition,
3870
# creating and moving files from /tmp can sometimes cause problems.
3871
# Create a temporary directory, and hook for its removal unless debugging.
3874
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3875
trap '{ (exit 1); exit 1; }' 1 2 13 15
3878
# Create a (secure) tmp directory for tmp files.
3881
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3882
test -n "$tmp" && test -d "$tmp"
3885
tmp=./confstat$$-$RANDOM
3886
(umask 077 && mkdir $tmp)
3889
echo "$me: cannot create a temporary directory in ." >&2
3890
{ (exit 1); exit 1; }
3895
cat >>$CONFIG_STATUS <<_ACEOF
3898
# CONFIG_FILES section.
3901
# No need to generate the scripts if there are no CONFIG_FILES.
3902
# This happens for instance when ./config.status config.h
3903
if test -n "\$CONFIG_FILES"; then
3904
# Protect against being on the right side of a sed subst in config.status.
3905
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3906
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3907
s,@SHELL@,$SHELL,;t t
3908
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3909
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3910
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3911
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3912
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3913
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3914
s,@exec_prefix@,$exec_prefix,;t t
3915
s,@prefix@,$prefix,;t t
3916
s,@program_transform_name@,$program_transform_name,;t t
3917
s,@bindir@,$bindir,;t t
3918
s,@sbindir@,$sbindir,;t t
3919
s,@libexecdir@,$libexecdir,;t t
3920
s,@datadir@,$datadir,;t t
3921
s,@sysconfdir@,$sysconfdir,;t t
3922
s,@sharedstatedir@,$sharedstatedir,;t t
3923
s,@localstatedir@,$localstatedir,;t t
3924
s,@libdir@,$libdir,;t t
3925
s,@includedir@,$includedir,;t t
3926
s,@oldincludedir@,$oldincludedir,;t t
3927
s,@infodir@,$infodir,;t t
3928
s,@mandir@,$mandir,;t t
3929
s,@build_alias@,$build_alias,;t t
3930
s,@host_alias@,$host_alias,;t t
3931
s,@target_alias@,$target_alias,;t t
3933
s,@ECHO_C@,$ECHO_C,;t t
3934
s,@ECHO_N@,$ECHO_N,;t t
3935
s,@ECHO_T@,$ECHO_T,;t t
3938
s,@CFLAGS@,$CFLAGS,;t t
3939
s,@LDFLAGS@,$LDFLAGS,;t t
3940
s,@CPPFLAGS@,$CPPFLAGS,;t t
3941
s,@ac_ct_CC@,$ac_ct_CC,;t t
3942
s,@EXEEXT@,$EXEEXT,;t t
3943
s,@OBJEXT@,$OBJEXT,;t t
3945
s,@EGREP@,$EGREP,;t t
3946
s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
3947
s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
3948
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
3949
s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
3950
s,@EBCDIC@,$EBCDIC,;t t
3951
s,@HAVE_MEMMOVE@,$HAVE_MEMMOVE,;t t
3952
s,@HAVE_STRERROR@,$HAVE_STRERROR,;t t
3953
s,@LIBTOOL@,$LIBTOOL,;t t
3954
s,@LIBSUFFIX@,$LIBSUFFIX,;t t
3955
s,@LINK_SIZE@,$LINK_SIZE,;t t
3956
s,@MATCH_LIMIT@,$MATCH_LIMIT,;t t
3957
s,@NEWLINE@,$NEWLINE,;t t
3958
s,@NO_RECURSE@,$NO_RECURSE,;t t
3959
s,@PCRE_MAJOR@,$PCRE_MAJOR,;t t
3960
s,@PCRE_MINOR@,$PCRE_MINOR,;t t
3961
s,@PCRE_DATE@,$PCRE_DATE,;t t
3962
s,@PCRE_VERSION@,$PCRE_VERSION,;t t
3963
s,@PCRE_LIB_VERSION@,$PCRE_LIB_VERSION,;t t
3964
s,@PCRE_POSIXLIB_VERSION@,$PCRE_POSIXLIB_VERSION,;t t
3965
s,@POSIX_MALLOC_THRESHOLD@,$POSIX_MALLOC_THRESHOLD,;t t
3968
s,@LIBOBJS@,$LIBOBJS,;t t
3969
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3974
cat >>$CONFIG_STATUS <<\_ACEOF
3975
# Split the substitutions into bite-sized pieces for seds with
3976
# small command number limits, like on Digital OSF/1 and HP-UX.
3978
ac_sed_frag=1 # Number of current file.
3979
ac_beg=1 # First line for current file.
3980
ac_end=$ac_max_sed_lines # Line after last line for current file.
3983
while $ac_more_lines; do
3984
if test $ac_beg -gt 1; then
3985
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3987
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3989
if test ! -s $tmp/subs.frag; then
3992
# The purpose of the label and of the branching condition is to
3993
# speed up the sed processing (if there are no `@' at all, there
3994
# is no need to browse any of the substitutions).
3995
# These are the two extra sed commands mentioned above.
3997
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3998
if test -z "$ac_sed_cmds"; then
3999
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4001
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4003
ac_sed_frag=`expr $ac_sed_frag + 1`
4005
ac_end=`expr $ac_end + $ac_max_sed_lines`
4008
if test -z "$ac_sed_cmds"; then
4011
fi # test -n "$CONFIG_FILES"
4014
cat >>$CONFIG_STATUS <<\_ACEOF
4015
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4016
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4018
- | *:- | *:-:* ) # input from stdin
4020
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4021
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4022
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4023
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4024
* ) ac_file_in=$ac_file.in ;;
4027
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4028
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4029
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4030
X"$ac_file" : 'X\(//\)[^/]' \| \
4031
X"$ac_file" : 'X\(//\)$' \| \
4032
X"$ac_file" : 'X\(/\)' \| \
4033
. : '\(.\)' 2>/dev/null ||
4035
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4036
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4037
/^X\(\/\/\)$/{ s//\1/; q; }
4038
/^X\(\/\).*/{ s//\1/; q; }
4040
{ if $as_mkdir_p; then
4045
while test ! -d "$as_dir"; do
4046
as_dirs="$as_dir $as_dirs"
4047
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4048
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4049
X"$as_dir" : 'X\(//\)[^/]' \| \
4050
X"$as_dir" : 'X\(//\)$' \| \
4051
X"$as_dir" : 'X\(/\)' \| \
4052
. : '\(.\)' 2>/dev/null ||
4054
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4055
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4056
/^X\(\/\/\)$/{ s//\1/; q; }
4057
/^X\(\/\).*/{ s//\1/; q; }
4060
test ! -n "$as_dirs" || mkdir $as_dirs
4061
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4062
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4063
{ (exit 1); exit 1; }; }; }
4067
if test "$ac_dir" != .; then
4068
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4069
# A "../" for each directory in $ac_dir_suffix.
4070
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4072
ac_dir_suffix= ac_top_builddir=
4076
.) # No --srcdir option. We are building in place.
4078
if test -z "$ac_top_builddir"; then
4081
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4083
[\\/]* | ?:[\\/]* ) # Absolute path.
4084
ac_srcdir=$srcdir$ac_dir_suffix;
4085
ac_top_srcdir=$srcdir ;;
4087
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4088
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4091
# Do not use `cd foo && pwd` to compute absolute paths, because
4092
# the directories may not exist.
4094
.) ac_abs_builddir="$ac_dir";;
4097
.) ac_abs_builddir=`pwd`;;
4098
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4099
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4102
case $ac_abs_builddir in
4103
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4105
case ${ac_top_builddir}. in
4106
.) ac_abs_top_builddir=$ac_abs_builddir;;
4107
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4108
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4111
case $ac_abs_builddir in
4112
.) ac_abs_srcdir=$ac_srcdir;;
4115
.) ac_abs_srcdir=$ac_abs_builddir;;
4116
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4117
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4120
case $ac_abs_builddir in
4121
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4123
case $ac_top_srcdir in
4124
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4125
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4126
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4132
if test x"$ac_file" != x-; then
4133
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4134
echo "$as_me: creating $ac_file" >&6;}
4137
# Let's still pretend it is `configure' which instantiates (i.e., don't
4138
# use $as_me), people would be surprised to read:
4139
# /* config.h. Generated by config.status. */
4140
if test x"$ac_file" = x-; then
4143
configure_input="$ac_file. "
4145
configure_input=$configure_input"Generated from `echo $ac_file_in |
4146
sed 's,.*/,,'` by configure."
4148
# First look for the input files in the build tree, otherwise in the
4150
ac_file_inputs=`IFS=:
4151
for f in $ac_file_in; do
4153
-) echo $tmp/stdin ;;
4155
# Absolute (can't be DOS-style, as IFS=:)
4156
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4157
echo "$as_me: error: cannot find input file: $f" >&2;}
4158
{ (exit 1); exit 1; }; }
4161
if test -f "$f"; then
4164
elif test -f "$srcdir/$f"; then
4169
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4170
echo "$as_me: error: cannot find input file: $f" >&2;}
4171
{ (exit 1); exit 1; }; }
4174
done` || { (exit 1); exit 1; }
4176
cat >>$CONFIG_STATUS <<_ACEOF
4180
cat >>$CONFIG_STATUS <<\_ACEOF
4182
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4183
s,@configure_input@,$configure_input,;t t
4184
s,@srcdir@,$ac_srcdir,;t t
4185
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4186
s,@top_srcdir@,$ac_top_srcdir,;t t
4187
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4188
s,@builddir@,$ac_builddir,;t t
4189
s,@abs_builddir@,$ac_abs_builddir,;t t
4190
s,@top_builddir@,$ac_top_builddir,;t t
4191
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4192
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4194
if test x"$ac_file" != x-; then
4195
mv $tmp/out $ac_file
4203
cat >>$CONFIG_STATUS <<\_ACEOF
4206
# CONFIG_HEADER section.
4209
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4210
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4212
# ac_d sets the value in "#define NAME VALUE" lines.
4213
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4214
ac_dB='[ ].*$,\1#\2'
4217
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4218
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4219
ac_uB='$,\1#\2define\3'
4223
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4224
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4226
- | *:- | *:-:* ) # input from stdin
4228
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4229
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4230
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4231
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4232
* ) ac_file_in=$ac_file.in ;;
4235
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4236
echo "$as_me: creating $ac_file" >&6;}
4238
# First look for the input files in the build tree, otherwise in the
4240
ac_file_inputs=`IFS=:
4241
for f in $ac_file_in; do
4243
-) echo $tmp/stdin ;;
4245
# Absolute (can't be DOS-style, as IFS=:)
4246
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4247
echo "$as_me: error: cannot find input file: $f" >&2;}
4248
{ (exit 1); exit 1; }; }
4249
# Do quote $f, to prevent DOS paths from being IFS'd.
4252
if test -f "$f"; then
4255
elif test -f "$srcdir/$f"; then
4260
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4261
echo "$as_me: error: cannot find input file: $f" >&2;}
4262
{ (exit 1); exit 1; }; }
4265
done` || { (exit 1); exit 1; }
4266
# Remove the trailing spaces.
4267
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4271
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4272
# `conftest.undefs', that substitutes the proper values into
4273
# config.h.in to produce config.h. The first handles `#define'
4274
# templates, and the second `#undef' templates.
4275
# And first: Protect against being on the right side of a sed subst in
4276
# config.status. Protect against being in an unquoted here document
4278
rm -f conftest.defines conftest.undefs
4279
# Using a here document instead of a string reduces the quoting nightmare.
4280
# Putting comments in sed scripts is not portable.
4282
# `end' is used to avoid that the second main sed command (meant for
4283
# 0-ary CPP macros) applies to n-ary macro definitions.
4284
# See the Autoconf documentation for `clear'.
4285
cat >confdef2sed.sed <<\_ACEOF
4290
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4292
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4295
# If some macros were called several times there might be several times
4296
# the same #defines, which is useless. Nevertheless, we may not want to
4297
# sort them, since we want the *last* AC-DEFINE to be honored.
4298
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4299
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4300
rm -f confdef2sed.sed
4302
# This sed command replaces #undef with comments. This is necessary, for
4303
# example, in the case of _POSIX_SOURCE, which is predefined and required
4304
# on some systems where configure will not decide to define it.
4305
cat >>conftest.undefs <<\_ACEOF
4306
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4309
# Break up conftest.defines because some shells have a limit on the size
4310
# of here documents, and old seds have small limits too (100 cmds).
4311
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4312
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4313
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4314
echo ' :' >>$CONFIG_STATUS
4316
while grep . conftest.defines >/dev/null
4318
# Write a limited-size here document to $tmp/defines.sed.
4319
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4320
# Speed up: don't consider the non `#define' lines.
4321
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4322
# Work around the forget-to-reset-the-flag bug.
4323
echo 't clr' >>$CONFIG_STATUS
4324
echo ': clr' >>$CONFIG_STATUS
4325
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4327
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4331
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4332
rm -f conftest.defines
4333
mv conftest.tail conftest.defines
4335
rm -f conftest.defines
4336
echo ' fi # grep' >>$CONFIG_STATUS
4337
echo >>$CONFIG_STATUS
4339
# Break up conftest.undefs because some shells have a limit on the size
4340
# of here documents, and old seds have small limits too (100 cmds).
4341
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4343
while grep . conftest.undefs >/dev/null
4345
# Write a limited-size here document to $tmp/undefs.sed.
4346
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4347
# Speed up: don't consider the non `#undef'
4348
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4349
# Work around the forget-to-reset-the-flag bug.
4350
echo 't clr' >>$CONFIG_STATUS
4351
echo ': clr' >>$CONFIG_STATUS
4352
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4354
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4358
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4359
rm -f conftest.undefs
4360
mv conftest.tail conftest.undefs
4362
rm -f conftest.undefs
4364
cat >>$CONFIG_STATUS <<\_ACEOF
4365
# Let's still pretend it is `configure' which instantiates (i.e., don't
4366
# use $as_me), people would be surprised to read:
4367
# /* config.h. Generated by config.status. */
4368
if test x"$ac_file" = x-; then
4369
echo "/* Generated by configure. */" >$tmp/config.h
4371
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4373
cat $tmp/in >>$tmp/config.h
4375
if test x"$ac_file" != x-; then
4376
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4377
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4378
echo "$as_me: $ac_file is unchanged" >&6;}
4380
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4381
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4382
X"$ac_file" : 'X\(//\)[^/]' \| \
4383
X"$ac_file" : 'X\(//\)$' \| \
4384
X"$ac_file" : 'X\(/\)' \| \
4385
. : '\(.\)' 2>/dev/null ||
4387
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4388
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4389
/^X\(\/\/\)$/{ s//\1/; q; }
4390
/^X\(\/\).*/{ s//\1/; q; }
4392
{ if $as_mkdir_p; then
4397
while test ! -d "$as_dir"; do
4398
as_dirs="$as_dir $as_dirs"
4399
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4400
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4401
X"$as_dir" : 'X\(//\)[^/]' \| \
4402
X"$as_dir" : 'X\(//\)$' \| \
4403
X"$as_dir" : 'X\(/\)' \| \
4404
. : '\(.\)' 2>/dev/null ||
4406
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4407
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4408
/^X\(\/\/\)$/{ s//\1/; q; }
4409
/^X\(\/\).*/{ s//\1/; q; }
4412
test ! -n "$as_dirs" || mkdir $as_dirs
4413
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4414
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4415
{ (exit 1); exit 1; }; }; }
4418
mv $tmp/config.h $ac_file
4426
cat >>$CONFIG_STATUS <<\_ACEOF
4429
# CONFIG_COMMANDS section.
4431
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4432
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4433
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4434
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4435
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4436
X"$ac_dest" : 'X\(//\)[^/]' \| \
4437
X"$ac_dest" : 'X\(//\)$' \| \
4438
X"$ac_dest" : 'X\(/\)' \| \
4439
. : '\(.\)' 2>/dev/null ||
4441
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4442
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4443
/^X\(\/\/\)$/{ s//\1/; q; }
4444
/^X\(\/\).*/{ s//\1/; q; }
4446
{ if $as_mkdir_p; then
4451
while test ! -d "$as_dir"; do
4452
as_dirs="$as_dir $as_dirs"
4453
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4454
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4455
X"$as_dir" : 'X\(//\)[^/]' \| \
4456
X"$as_dir" : 'X\(//\)$' \| \
4457
X"$as_dir" : 'X\(/\)' \| \
4458
. : '\(.\)' 2>/dev/null ||
4460
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4461
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4462
/^X\(\/\/\)$/{ s//\1/; q; }
4463
/^X\(\/\).*/{ s//\1/; q; }
4466
test ! -n "$as_dirs" || mkdir $as_dirs
4467
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4468
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4469
{ (exit 1); exit 1; }; }; }
4473
if test "$ac_dir" != .; then
4474
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4475
# A "../" for each directory in $ac_dir_suffix.
4476
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4478
ac_dir_suffix= ac_top_builddir=
4482
.) # No --srcdir option. We are building in place.
4484
if test -z "$ac_top_builddir"; then
4487
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4489
[\\/]* | ?:[\\/]* ) # Absolute path.
4490
ac_srcdir=$srcdir$ac_dir_suffix;
4491
ac_top_srcdir=$srcdir ;;
4493
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4494
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4497
# Do not use `cd foo && pwd` to compute absolute paths, because
4498
# the directories may not exist.
4500
.) ac_abs_builddir="$ac_dir";;
4503
.) ac_abs_builddir=`pwd`;;
4504
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4505
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4508
case $ac_abs_builddir in
4509
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4511
case ${ac_top_builddir}. in
4512
.) ac_abs_top_builddir=$ac_abs_builddir;;
4513
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4514
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4517
case $ac_abs_builddir in
4518
.) ac_abs_srcdir=$ac_srcdir;;
4521
.) ac_abs_srcdir=$ac_abs_builddir;;
4522
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4523
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4526
case $ac_abs_builddir in
4527
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4529
case $ac_top_srcdir in
4530
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4531
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4532
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4537
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4538
echo "$as_me: executing $ac_dest commands" >&6;}
4540
default ) chmod a+x pcre-config ;;
4545
cat >>$CONFIG_STATUS <<\_ACEOF
4547
{ (exit 0); exit 0; }
4549
chmod +x $CONFIG_STATUS
4550
ac_clean_files=$ac_clean_files_save
4553
# configure is writing to config.log, and then calls config.status.
4554
# config.status does its own redirection, appending to config.log.
4555
# Unfortunately, on DOS this fails, as config.log is still kept open
4556
# by configure, so config.status won't be able to write to it; its
4557
# output is simply discarded. So we exec the FD to /dev/null,
4558
# effectively closing config.log, so it can be properly (re)opened and
4559
# appended to by config.status. When coming back to configure, we
4560
# need to make the FD available again.
4561
if test "$no_create" != yes; then
4563
ac_config_status_args=
4564
test "$silent" = yes &&
4565
ac_config_status_args="$ac_config_status_args --quiet"
4567
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4569
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4570
# would make configure fail if this is the last instruction.
4571
$ac_cs_success || { (exit 1); exit 1; }