66
127
# Name of the executable.
67
as_me=`$as_basename "$0" ||
128
as_me=`$as_basename -- "$0" ||
68
129
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
130
X"$0" : 'X\(//\)$' \| \
70
X"$0" : 'X\(/\)$' \| \
71
. : '\(.\)' 2>/dev/null ||
131
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
73
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
/^X\/\(\/\/\)$/{ s//\1/; q; }
75
/^X\/\(\/\).*/{ s//\1/; q; }
79
# PATH needs CR, and LINENO needs CR and PATH.
80
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
echo "#! /bin/sh" >conf$$.sh
90
echo "exit 0" >>conf$$.sh
92
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
test "x$as_lineno_1" != "x$as_lineno_2" &&
105
test "x$as_lineno_3" = "x$as_lineno_2" || {
106
# Find who we are. Look in the path if we contain no path at all
109
*[\\/]* ) as_myself=$0 ;;
110
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
test -z "$as_dir" && as_dir=.
115
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120
# We did not find ourselves, most probably we were run as `sh COMMAND'
121
# in which case we are not to be found in the path.
122
if test "x$as_myself" = x; then
125
if test ! -f "$as_myself"; then
126
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
{ (exit 1); exit 1; }; }
129
case $CONFIG_SHELL in
133
sed '/^.*\/\([^/][^/]*\)\/*$/{
151
if test "x$CONFIG_SHELL" = x; then
152
if (eval ":") 2>/dev/null; then
158
if test $as_have_required = yes && (eval ":
168
as_func_ret_success () {
171
as_func_ret_failure () {
176
if as_func_success; then
180
echo as_func_success failed.
183
if as_func_failure; then
185
echo as_func_failure succeeded.
188
if as_func_ret_success; then
192
echo as_func_ret_success failed.
195
if as_func_ret_failure; then
197
echo as_func_ret_failure succeeded.
200
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
echo positional parameters were not saved.
207
test \$exitcode = 0) || { (exit 1); exit 1; }
212
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214
") 2> /dev/null; then
131
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
222
test -z "$as_dir" && as_dir=.
136
for as_base in sh bash ksh sh5; do
139
if ("$as_dir/$as_base" -c '
142
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
test "x$as_lineno_1" != "x$as_lineno_2" &&
144
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
CONFIG_SHELL=$as_dir/$as_base
149
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
225
for as_base in sh bash ksh sh5; do
226
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233
for as_shell in $as_candidate_shells $SHELL; do
234
# Try only shells that exist, to save several forks.
235
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236
{ ("$as_shell") 2> /dev/null <<\_ASEOF
237
# Be Bourne compatible
238
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242
# is contrary to our usage. Disable this feature.
243
alias -g '${1+"$@"}'='"$@"'
246
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248
BIN_SH=xpg4; export BIN_SH # for Tru64
249
DUALCASE=1; export DUALCASE # for MKS sh
254
CONFIG_SHELL=$as_shell
256
if { "$as_shell" 2> /dev/null <<\_ASEOF
257
# Be Bourne compatible
258
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262
# is contrary to our usage. Disable this feature.
263
alias -g '${1+"$@"}'='"$@"'
266
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268
BIN_SH=xpg4; export BIN_SH # for Tru64
269
DUALCASE=1; export DUALCASE # for MKS sh
281
as_func_ret_success () {
284
as_func_ret_failure () {
289
if as_func_success; then
293
echo as_func_success failed.
296
if as_func_failure; then
298
echo as_func_failure succeeded.
301
if as_func_ret_success; then
305
echo as_func_ret_success failed.
308
if as_func_ret_failure; then
310
echo as_func_ret_failure succeeded.
313
if ( set x; as_func_ret_success y && test x = "$1" ); then
317
echo positional parameters were not saved.
320
test $exitcode = 0) || { (exit 1); exit 1; }
325
test "x$as_lineno_1" != "x$as_lineno_2" &&
326
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337
if test "x$CONFIG_SHELL" != x; then
338
for as_var in BASH_ENV ENV
339
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346
if test $as_have_required = no; then
347
echo This script requires a shell more modern than all the
348
echo shells that I found on your system. Please install a
349
echo modern shell, or manually run the script under such a
350
echo shell if you do have one.
351
{ (exit 1); exit 1; }
361
(eval "as_func_return () {
370
as_func_ret_success () {
373
as_func_ret_failure () {
378
if as_func_success; then
382
echo as_func_success failed.
385
if as_func_failure; then
387
echo as_func_failure succeeded.
390
if as_func_ret_success; then
394
echo as_func_ret_success failed.
397
if as_func_ret_failure; then
399
echo as_func_ret_failure succeeded.
402
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406
echo positional parameters were not saved.
409
test \$exitcode = 0") || {
410
echo No shell found that supports shell functions.
411
echo Please tell autoconf@gnu.org about your system,
412
echo including any error possibly output before this
420
test "x$as_lineno_1" != "x$as_lineno_2" &&
421
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157
423
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
424
# uniformly replaced by the line number. The first 'sed' inserts a
159
# line-number line before each line; the second 'sed' does the real
160
# work. The second script uses 'N' to pair each line-number line
161
# with the numbered line, and appends trailing '-' during
162
# substitution so that $LINENO is not a special case at line end.
425
# line-number line after each line using $LINENO; the second 'sed'
426
# does the real work. The second script uses 'N' to pair each
427
# line-number line with the line containing $LINENO, and appends
428
# trailing '-' during substitution so that $LINENO is not a special
163
430
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165
sed '=' <$as_myself |
431
# scripts with optimization help from Paolo Bonzini. Blame Lee
432
# E. McMahon (1931-1989) for sed's syntax. :-)
170
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
444
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
173
s,^['$as_cr_digits']*\n,,
174
447
' >$as_me.lineno &&
175
chmod +x $as_me.lineno ||
448
chmod +x "$as_me.lineno" ||
176
449
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
450
{ (exit 1); exit 1; }; }
179
452
# Don't try to exec as it changes $[0], causing all sort of problems
180
453
# (the dirname of $[0] is not the place where we might find the
181
# original and so on. Autoconf is especially sensible to this).
454
# original and so on. Autoconf is especially sensitive to this).
183
456
# Exit status is that of the last command.
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
*c*,-n*) ECHO_N= ECHO_C='
191
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
461
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467
ECHO_C= ECHO_N= ECHO_T=
471
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
195
if expr a : '\(a\)' >/dev/null 2>&1; then
478
if expr a : '\(a\)' >/dev/null 2>&1 &&
479
test "X`expr 00001 : '.*\(...\)'`" = X001; then
201
485
rm -f conf$$ conf$$.exe conf$$.file
486
if test -d conf$$.dir; then
487
rm -f conf$$.dir/conf$$.file
202
492
echo >conf$$.file
203
493
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
# We could just check for DJGPP; but this test a) works b) is more generic
205
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
if test -f conf$$.exe; then
207
# Don't use ln at all; we don't have any links
495
# ... but there are two gotchas:
496
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498
# In both cases, we have to default to `cp -p'.
499
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
212
501
elif ln conf$$.file conf$$ 2>/dev/null; then
217
rm -f conf$$ conf$$.exe conf$$.file
506
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507
rmdir conf$$.dir 2>/dev/null
219
509
if mkdir -p . 2>/dev/null; then
787
1191
--with-rlm-eap-tls-lib-dir directory for eap-tls libs
788
1192
--with-rlm-eap-tls-include-dir directory for eap-tls includes
1194
Some influential environment variables:
1195
CC C compiler command
1196
CFLAGS C compiler flags
1197
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1198
nonstandard directory <lib dir>
1199
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1200
you have headers in a nonstandard directory <include dir>
1202
Use these variables to override the choices made by `configure' or to help
1203
it to find libraries and programs with nonstandard names/locations.
793
1209
if test "$ac_init_help" = "recursive"; then
794
1210
# If there are subdirs, report their specific --help.
796
1211
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
797
test -d $ac_dir || continue
1212
test -d "$ac_dir" || continue
800
if test "$ac_dir" != .; then
1216
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
801
1218
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
802
# A "../" for each directory in $ac_dir_suffix.
803
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
805
ac_dir_suffix= ac_top_builddir=
1219
# A ".." for each directory in $ac_dir_suffix.
1220
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1221
case $ac_top_builddir_sub in
1222
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1223
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1226
ac_abs_top_builddir=$ac_pwd
1227
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1228
# for backward compatibility:
1229
ac_top_builddir=$ac_top_build_prefix
809
.) # No --srcdir option. We are building in place.
1232
.) # We are building in place.
811
if test -z "$ac_top_builddir"; then
814
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
816
[\\/]* | ?:[\\/]* ) # Absolute path.
1234
ac_top_srcdir=$ac_top_builddir_sub
1235
ac_abs_top_srcdir=$ac_pwd ;;
1236
[\\/]* | ?:[\\/]* ) # Absolute name.
817
1237
ac_srcdir=$srcdir$ac_dir_suffix;
818
ac_top_srcdir=$srcdir ;;
820
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
821
ac_top_srcdir=$ac_top_builddir$srcdir ;;
824
# Do not use `cd foo && pwd` to compute absolute paths, because
825
# the directories may not exist.
827
.) ac_abs_builddir="$ac_dir";;
830
.) ac_abs_builddir=`pwd`;;
831
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
832
*) ac_abs_builddir=`pwd`/"$ac_dir";;
835
case $ac_abs_builddir in
836
.) ac_abs_top_builddir=${ac_top_builddir}.;;
838
case ${ac_top_builddir}. in
839
.) ac_abs_top_builddir=$ac_abs_builddir;;
840
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
841
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
844
case $ac_abs_builddir in
845
.) ac_abs_srcdir=$ac_srcdir;;
848
.) ac_abs_srcdir=$ac_abs_builddir;;
849
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
850
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
853
case $ac_abs_builddir in
854
.) ac_abs_top_srcdir=$ac_top_srcdir;;
856
case $ac_top_srcdir in
857
.) ac_abs_top_srcdir=$ac_abs_builddir;;
858
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
859
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
864
# Check for guested configure; otherwise get Cygnus style configure.
865
if test -f $ac_srcdir/configure.gnu; then
867
$SHELL $ac_srcdir/configure.gnu --help=recursive
868
elif test -f $ac_srcdir/configure; then
870
$SHELL $ac_srcdir/configure --help=recursive
871
elif test -f $ac_srcdir/configure.ac ||
872
test -f $ac_srcdir/configure.in; then
1238
ac_top_srcdir=$srcdir
1239
ac_abs_top_srcdir=$srcdir ;;
1241
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1242
ac_top_srcdir=$ac_top_build_prefix$srcdir
1243
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1245
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1247
cd "$ac_dir" || { ac_status=$?; continue; }
1248
# Check for guested configure.
1249
if test -f "$ac_srcdir/configure.gnu"; then
1251
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1252
elif test -f "$ac_srcdir/configure"; then
1254
$SHELL "$ac_srcdir/configure" --help=recursive
876
1256
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1258
cd "$ac_pwd" || { ac_status=$?; break; }
882
test -n "$ac_init_help" && exit 0
1262
test -n "$ac_init_help" && exit $ac_status
883
1263
if $ac_init_version; then
1266
generated by GNU Autoconf 2.60
886
Copyright (C) 2003 Free Software Foundation, Inc.
1268
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1269
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
887
1270
This configure script is free software; the Free Software Foundation
888
1271
gives unlimited permission to copy, distribute and modify it.
1275
cat >config.log <<_ACEOF
894
1276
This file contains any messages produced by compilers while
895
1277
running configure, to aid debugging if configure makes a mistake.
897
1279
It was created by $as_me, which was
898
generated by GNU Autoconf 2.59. Invocation command line was
1280
generated by GNU Autoconf 2.60. Invocation command line was
1236
# Check whether --with-rlm-eap-tls-lib-dir or --without-rlm-eap-tls-lib-dir was given.
1635
# Check whether --with-rlm-eap-tls-lib-dir was given.
1237
1636
if test "${with_rlm_eap_tls_lib_dir+set}" = set; then
1238
withval="$with_rlm_eap_tls_lib_dir"
1239
eap_tls_ldflags="-L$withval"
1243
# Check whether --with-rlm-eap-tls-include-dir or --without-rlm-eap-tls-include-dir was given.
1637
withval=$with_rlm_eap_tls_lib_dir; eap_tls_ldflags="-L$withval"
1642
# Check whether --with-rlm-eap-tls-include-dir was given.
1244
1643
if test "${with_rlm_eap_tls_include_dir+set}" = set; then
1245
withval="$with_rlm_eap_tls_include_dir"
1246
eap_tls_cflags="-I$withval"
1250
echo "$as_me:$LINENO: checking for OpenSSL support" >&5
1251
echo $ECHO_N "checking for OpenSSL support... $ECHO_C" >&6
1644
withval=$with_rlm_eap_tls_include_dir; eap_tls_cflags="-I$withval"
1649
{ echo "$as_me:$LINENO: checking for OpenSSL support" >&5
1650
echo $ECHO_N "checking for OpenSSL support... $ECHO_C" >&6; }
1252
1651
if test "x$OPENSSL_LIBS" != "x"; then
1253
echo "$as_me:$LINENO: result: yes" >&5
1254
echo "${ECHO_T}yes" >&6
1652
{ echo "$as_me:$LINENO: result: yes" >&5
1653
echo "${ECHO_T}yes" >&6; }
1656
ac_cpp='$CPP $CPPFLAGS'
1657
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1660
if test -n "$ac_tool_prefix"; then
1661
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1662
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1665
if test "${ac_cv_prog_CC+set}" = set; then
1666
echo $ECHO_N "(cached) $ECHO_C" >&6
1668
if test -n "$CC"; then
1669
ac_cv_prog_CC="$CC" # Let the user override the test.
1671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675
test -z "$as_dir" && as_dir=.
1676
for ac_exec_ext in '' $ac_executable_extensions; do
1677
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1678
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1679
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689
if test -n "$CC"; then
1690
{ echo "$as_me:$LINENO: result: $CC" >&5
1691
echo "${ECHO_T}$CC" >&6; }
1693
{ echo "$as_me:$LINENO: result: no" >&5
1694
echo "${ECHO_T}no" >&6; }
1699
if test -z "$ac_cv_prog_CC"; then
1701
# Extract the first word of "gcc", so it can be a program name with args.
1702
set dummy gcc; ac_word=$2
1703
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1705
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706
echo $ECHO_N "(cached) $ECHO_C" >&6
1708
if test -n "$ac_ct_CC"; then
1709
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715
test -z "$as_dir" && as_dir=.
1716
for ac_exec_ext in '' $ac_executable_extensions; do
1717
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1718
ac_cv_prog_ac_ct_CC="gcc"
1719
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729
if test -n "$ac_ct_CC"; then
1730
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731
echo "${ECHO_T}$ac_ct_CC" >&6; }
1733
{ echo "$as_me:$LINENO: result: no" >&5
1734
echo "${ECHO_T}no" >&6; }
1737
if test "x$ac_ct_CC" = x; then
1740
case $cross_compiling:$ac_tool_warned in
1742
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1743
whose name does not start with the host triplet. If you think this
1744
configuration is useful to you, please write to autoconf@gnu.org." >&5
1745
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1746
whose name does not start with the host triplet. If you think this
1747
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1748
ac_tool_warned=yes ;;
1756
if test -z "$CC"; then
1757
if test -n "$ac_tool_prefix"; then
1758
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1759
set dummy ${ac_tool_prefix}cc; ac_word=$2
1760
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1762
if test "${ac_cv_prog_CC+set}" = set; then
1763
echo $ECHO_N "(cached) $ECHO_C" >&6
1765
if test -n "$CC"; then
1766
ac_cv_prog_CC="$CC" # Let the user override the test.
1768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772
test -z "$as_dir" && as_dir=.
1773
for ac_exec_ext in '' $ac_executable_extensions; do
1774
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1775
ac_cv_prog_CC="${ac_tool_prefix}cc"
1776
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786
if test -n "$CC"; then
1787
{ echo "$as_me:$LINENO: result: $CC" >&5
1788
echo "${ECHO_T}$CC" >&6; }
1790
{ echo "$as_me:$LINENO: result: no" >&5
1791
echo "${ECHO_T}no" >&6; }
1797
if test -z "$CC"; then
1798
# Extract the first word of "cc", so it can be a program name with args.
1799
set dummy cc; ac_word=$2
1800
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1802
if test "${ac_cv_prog_CC+set}" = set; then
1803
echo $ECHO_N "(cached) $ECHO_C" >&6
1805
if test -n "$CC"; then
1806
ac_cv_prog_CC="$CC" # Let the user override the test.
1809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813
test -z "$as_dir" && as_dir=.
1814
for ac_exec_ext in '' $ac_executable_extensions; do
1815
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1816
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1817
ac_prog_rejected=yes
1821
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828
if test $ac_prog_rejected = yes; then
1829
# We found a bogon in the path, so make sure we never use it.
1830
set dummy $ac_cv_prog_CC
1832
if test $# != 0; then
1833
# We chose a different compiler from the bogus one.
1834
# However, it has the same basename, so the bogon will be chosen
1835
# first if we set CC to just the basename; use the full file name.
1837
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1843
if test -n "$CC"; then
1844
{ echo "$as_me:$LINENO: result: $CC" >&5
1845
echo "${ECHO_T}$CC" >&6; }
1847
{ echo "$as_me:$LINENO: result: no" >&5
1848
echo "${ECHO_T}no" >&6; }
1853
if test -z "$CC"; then
1854
if test -n "$ac_tool_prefix"; then
1855
for ac_prog in cl.exe
1857
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861
if test "${ac_cv_prog_CC+set}" = set; then
1862
echo $ECHO_N "(cached) $ECHO_C" >&6
1864
if test -n "$CC"; then
1865
ac_cv_prog_CC="$CC" # Let the user override the test.
1867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871
test -z "$as_dir" && as_dir=.
1872
for ac_exec_ext in '' $ac_executable_extensions; do
1873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1874
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885
if test -n "$CC"; then
1886
{ echo "$as_me:$LINENO: result: $CC" >&5
1887
echo "${ECHO_T}$CC" >&6; }
1889
{ echo "$as_me:$LINENO: result: no" >&5
1890
echo "${ECHO_T}no" >&6; }
1894
test -n "$CC" && break
1897
if test -z "$CC"; then
1899
for ac_prog in cl.exe
1901
# Extract the first word of "$ac_prog", so it can be a program name with args.
1902
set dummy $ac_prog; ac_word=$2
1903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1905
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1906
echo $ECHO_N "(cached) $ECHO_C" >&6
1908
if test -n "$ac_ct_CC"; then
1909
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915
test -z "$as_dir" && as_dir=.
1916
for ac_exec_ext in '' $ac_executable_extensions; do
1917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1918
ac_cv_prog_ac_ct_CC="$ac_prog"
1919
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1929
if test -n "$ac_ct_CC"; then
1930
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1931
echo "${ECHO_T}$ac_ct_CC" >&6; }
1933
{ echo "$as_me:$LINENO: result: no" >&5
1934
echo "${ECHO_T}no" >&6; }
1938
test -n "$ac_ct_CC" && break
1941
if test "x$ac_ct_CC" = x; then
1944
case $cross_compiling:$ac_tool_warned in
1946
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1947
whose name does not start with the host triplet. If you think this
1948
configuration is useful to you, please write to autoconf@gnu.org." >&5
1949
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1950
whose name does not start with the host triplet. If you think this
1951
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1952
ac_tool_warned=yes ;;
1961
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1962
See \`config.log' for more details." >&5
1963
echo "$as_me: error: no acceptable C compiler found in \$PATH
1964
See \`config.log' for more details." >&2;}
1965
{ (exit 1); exit 1; }; }
1967
# Provide some information about the compiler.
1968
echo "$as_me:$LINENO: checking for C compiler version" >&5
1969
ac_compiler=`set X $ac_compile; echo $2`
1970
{ (ac_try="$ac_compiler --version >&5"
1972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973
*) ac_try_echo=$ac_try;;
1975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1976
(eval "$ac_compiler --version >&5") 2>&5
1978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979
(exit $ac_status); }
1980
{ (ac_try="$ac_compiler -v >&5"
1982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983
*) ac_try_echo=$ac_try;;
1985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1986
(eval "$ac_compiler -v >&5") 2>&5
1988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989
(exit $ac_status); }
1990
{ (ac_try="$ac_compiler -V >&5"
1992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993
*) ac_try_echo=$ac_try;;
1995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1996
(eval "$ac_compiler -V >&5") 2>&5
1998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999
(exit $ac_status); }
2001
cat >conftest.$ac_ext <<_ACEOF
2004
cat confdefs.h >>conftest.$ac_ext
2005
cat >>conftest.$ac_ext <<_ACEOF
2006
/* end confdefs.h. */
2016
ac_clean_files_save=$ac_clean_files
2017
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2018
# Try to create an executable without -o first, disregard a.out.
2019
# It will help us diagnose broken compilers, and finding out an intuition
2021
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2022
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2023
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2025
# List of possible output files, starting from the most likely.
2026
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2027
# only as a last resort. b.out is created by i960 compilers.
2028
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2030
# The IRIX 6 linker writes into existing files which may not be
2031
# executable, retaining their permissions. Remove them first so a
2032
# subsequent execution test works.
2034
for ac_file in $ac_files
2037
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2038
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2043
if { (ac_try="$ac_link_default"
2045
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046
*) ac_try_echo=$ac_try;;
2048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2049
(eval "$ac_link_default") 2>&5
2051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052
(exit $ac_status); }; then
2053
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2054
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2055
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2056
# so that the user can short-circuit this test for compilers unknown to
2058
for ac_file in $ac_files
2060
test -f "$ac_file" || continue
2062
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2065
# We found the default executable, but exeext='' is most
2069
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2071
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073
# We set ac_cv_exeext here because the later test for it is not
2074
# safe: cross compilers may not add the suffix if given an `-o'
2075
# argument, so we may need to know it at that point already.
2076
# Even if this section looks crufty: it has the advantage of
2083
test "$ac_cv_exeext" = no && ac_cv_exeext=
2086
echo "$as_me: failed program was:" >&5
2087
sed 's/^/| /' conftest.$ac_ext >&5
2089
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2090
See \`config.log' for more details." >&5
2091
echo "$as_me: error: C compiler cannot create executables
2092
See \`config.log' for more details." >&2;}
2093
{ (exit 77); exit 77; }; }
2096
ac_exeext=$ac_cv_exeext
2097
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2098
echo "${ECHO_T}$ac_file" >&6; }
2100
# Check that the compiler produces executables we can run. If not, either
2101
# the compiler is broken, or we cross compile.
2102
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2103
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2104
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2105
# If not cross compiling, check that we can run a simple program.
2106
if test "$cross_compiling" != yes; then
2107
if { ac_try='./$ac_file'
2108
{ (case "(($ac_try" in
2109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110
*) ac_try_echo=$ac_try;;
2112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113
(eval "$ac_try") 2>&5
2115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116
(exit $ac_status); }; }; then
2119
if test "$cross_compiling" = maybe; then
2122
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2123
If you meant to cross compile, use \`--host'.
2124
See \`config.log' for more details." >&5
2125
echo "$as_me: error: cannot run C compiled programs.
2126
If you meant to cross compile, use \`--host'.
2127
See \`config.log' for more details." >&2;}
2128
{ (exit 1); exit 1; }; }
2132
{ echo "$as_me:$LINENO: result: yes" >&5
2133
echo "${ECHO_T}yes" >&6; }
2135
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2136
ac_clean_files=$ac_clean_files_save
2137
# Check that the compiler produces executables we can run. If not, either
2138
# the compiler is broken, or we cross compile.
2139
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2141
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142
echo "${ECHO_T}$cross_compiling" >&6; }
2144
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2146
if { (ac_try="$ac_link"
2148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149
*) ac_try_echo=$ac_try;;
2151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152
(eval "$ac_link") 2>&5
2154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155
(exit $ac_status); }; then
2156
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2157
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2158
# work properly (i.e., refer to `conftest.exe'), while it won't with
2160
for ac_file in conftest.exe conftest conftest.*; do
2161
test -f "$ac_file" || continue
2163
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2164
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2171
See \`config.log' for more details." >&5
2172
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2173
See \`config.log' for more details." >&2;}
2174
{ (exit 1); exit 1; }; }
2177
rm -f conftest$ac_cv_exeext
2178
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2181
rm -f conftest.$ac_ext
2182
EXEEXT=$ac_cv_exeext
2184
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2186
if test "${ac_cv_objext+set}" = set; then
2187
echo $ECHO_N "(cached) $ECHO_C" >&6
2189
cat >conftest.$ac_ext <<_ACEOF
2192
cat confdefs.h >>conftest.$ac_ext
2193
cat >>conftest.$ac_ext <<_ACEOF
2194
/* end confdefs.h. */
2204
rm -f conftest.o conftest.obj
2205
if { (ac_try="$ac_compile"
2207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208
*) ac_try_echo=$ac_try;;
2210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211
(eval "$ac_compile") 2>&5
2213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214
(exit $ac_status); }; then
2215
for ac_file in conftest.o conftest.obj conftest.*; do
2216
test -f "$ac_file" || continue;
2218
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2219
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2224
echo "$as_me: failed program was:" >&5
2225
sed 's/^/| /' conftest.$ac_ext >&5
2227
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2228
See \`config.log' for more details." >&5
2229
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2230
See \`config.log' for more details." >&2;}
2231
{ (exit 1); exit 1; }; }
2234
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2236
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2237
echo "${ECHO_T}$ac_cv_objext" >&6; }
2238
OBJEXT=$ac_cv_objext
2240
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2242
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243
echo $ECHO_N "(cached) $ECHO_C" >&6
2245
cat >conftest.$ac_ext <<_ACEOF
2248
cat confdefs.h >>conftest.$ac_ext
2249
cat >>conftest.$ac_ext <<_ACEOF
2250
/* end confdefs.h. */
2263
rm -f conftest.$ac_objext
2264
if { (ac_try="$ac_compile"
2266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267
*) ac_try_echo=$ac_try;;
2269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270
(eval "$ac_compile") 2>conftest.er1
2272
grep -v '^ *+' conftest.er1 >conftest.err
2274
cat conftest.err >&5
2275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276
(exit $ac_status); } &&
2277
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2278
{ (case "(($ac_try" in
2279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280
*) ac_try_echo=$ac_try;;
2282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283
(eval "$ac_try") 2>&5
2285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286
(exit $ac_status); }; } &&
2287
{ ac_try='test -s conftest.$ac_objext'
2288
{ (case "(($ac_try" in
2289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290
*) ac_try_echo=$ac_try;;
2292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293
(eval "$ac_try") 2>&5
2295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296
(exit $ac_status); }; }; then
2299
echo "$as_me: failed program was:" >&5
2300
sed 's/^/| /' conftest.$ac_ext >&5
2305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2309
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2310
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2311
GCC=`test $ac_compiler_gnu = yes && echo yes`
2312
ac_test_CFLAGS=${CFLAGS+set}
2313
ac_save_CFLAGS=$CFLAGS
2314
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2315
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2316
if test "${ac_cv_prog_cc_g+set}" = set; then
2317
echo $ECHO_N "(cached) $ECHO_C" >&6
2319
ac_save_c_werror_flag=$ac_c_werror_flag
2320
ac_c_werror_flag=yes
2323
cat >conftest.$ac_ext <<_ACEOF
2326
cat confdefs.h >>conftest.$ac_ext
2327
cat >>conftest.$ac_ext <<_ACEOF
2328
/* end confdefs.h. */
2338
rm -f conftest.$ac_objext
2339
if { (ac_try="$ac_compile"
2341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342
*) ac_try_echo=$ac_try;;
2344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345
(eval "$ac_compile") 2>conftest.er1
2347
grep -v '^ *+' conftest.er1 >conftest.err
2349
cat conftest.err >&5
2350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351
(exit $ac_status); } &&
2352
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353
{ (case "(($ac_try" in
2354
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355
*) ac_try_echo=$ac_try;;
2357
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358
(eval "$ac_try") 2>&5
2360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
(exit $ac_status); }; } &&
2362
{ ac_try='test -s conftest.$ac_objext'
2363
{ (case "(($ac_try" in
2364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365
*) ac_try_echo=$ac_try;;
2367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368
(eval "$ac_try") 2>&5
2370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371
(exit $ac_status); }; }; then
2374
echo "$as_me: failed program was:" >&5
2375
sed 's/^/| /' conftest.$ac_ext >&5
2378
cat >conftest.$ac_ext <<_ACEOF
2381
cat confdefs.h >>conftest.$ac_ext
2382
cat >>conftest.$ac_ext <<_ACEOF
2383
/* end confdefs.h. */
2393
rm -f conftest.$ac_objext
2394
if { (ac_try="$ac_compile"
2396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397
*) ac_try_echo=$ac_try;;
2399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400
(eval "$ac_compile") 2>conftest.er1
2402
grep -v '^ *+' conftest.er1 >conftest.err
2404
cat conftest.err >&5
2405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
(exit $ac_status); } &&
2407
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2408
{ (case "(($ac_try" in
2409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410
*) ac_try_echo=$ac_try;;
2412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413
(eval "$ac_try") 2>&5
2415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
(exit $ac_status); }; } &&
2417
{ ac_try='test -s conftest.$ac_objext'
2418
{ (case "(($ac_try" in
2419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420
*) ac_try_echo=$ac_try;;
2422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423
(eval "$ac_try") 2>&5
2425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
(exit $ac_status); }; }; then
2429
echo "$as_me: failed program was:" >&5
2430
sed 's/^/| /' conftest.$ac_ext >&5
2432
ac_c_werror_flag=$ac_save_c_werror_flag
2434
cat >conftest.$ac_ext <<_ACEOF
2437
cat confdefs.h >>conftest.$ac_ext
2438
cat >>conftest.$ac_ext <<_ACEOF
2439
/* end confdefs.h. */
2449
rm -f conftest.$ac_objext
2450
if { (ac_try="$ac_compile"
2452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453
*) ac_try_echo=$ac_try;;
2455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456
(eval "$ac_compile") 2>conftest.er1
2458
grep -v '^ *+' conftest.er1 >conftest.err
2460
cat conftest.err >&5
2461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
(exit $ac_status); } &&
2463
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464
{ (case "(($ac_try" in
2465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466
*) ac_try_echo=$ac_try;;
2468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469
(eval "$ac_try") 2>&5
2471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
(exit $ac_status); }; } &&
2473
{ ac_try='test -s conftest.$ac_objext'
2474
{ (case "(($ac_try" in
2475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476
*) ac_try_echo=$ac_try;;
2478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479
(eval "$ac_try") 2>&5
2481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482
(exit $ac_status); }; }; then
2485
echo "$as_me: failed program was:" >&5
2486
sed 's/^/| /' conftest.$ac_ext >&5
2491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498
ac_c_werror_flag=$ac_save_c_werror_flag
2500
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2501
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2502
if test "$ac_test_CFLAGS" = set; then
2503
CFLAGS=$ac_save_CFLAGS
2504
elif test $ac_cv_prog_cc_g = yes; then
2505
if test "$GCC" = yes; then
2511
if test "$GCC" = yes; then
2517
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2518
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2519
if test "${ac_cv_prog_cc_c89+set}" = set; then
2520
echo $ECHO_N "(cached) $ECHO_C" >&6
2522
ac_cv_prog_cc_c89=no
2524
cat >conftest.$ac_ext <<_ACEOF
2527
cat confdefs.h >>conftest.$ac_ext
2528
cat >>conftest.$ac_ext <<_ACEOF
2529
/* end confdefs.h. */
2532
#include <sys/types.h>
2533
#include <sys/stat.h>
2534
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2535
struct buf { int x; };
2536
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2537
static char *e (p, i)
2543
static char *f (char * (*g) (char **, int), char **p, ...)
2548
s = g (p, va_arg (v,int));
2553
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2554
function prototypes and stuff, but not '\xHH' hex character constants.
2555
These don't provoke an error unfortunately, instead are silently treated
2556
as 'x'. The following induces an error, until -std is added to get
2557
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2558
array size at least. It's necessary to write '\x00'==0 to get something
2559
that's true only with -std. */
2560
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2562
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2563
inside strings and character constants. */
2565
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2567
int test (int i, double x);
2568
struct s1 {int (*f) (int a);};
2569
struct s2 {int (*f) (double a);};
2570
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2576
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2581
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2582
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2584
CC="$ac_save_CC $ac_arg"
2585
rm -f conftest.$ac_objext
2586
if { (ac_try="$ac_compile"
2588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589
*) ac_try_echo=$ac_try;;
2591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592
(eval "$ac_compile") 2>conftest.er1
2594
grep -v '^ *+' conftest.er1 >conftest.err
2596
cat conftest.err >&5
2597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598
(exit $ac_status); } &&
2599
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2600
{ (case "(($ac_try" in
2601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602
*) ac_try_echo=$ac_try;;
2604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605
(eval "$ac_try") 2>&5
2607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
(exit $ac_status); }; } &&
2609
{ ac_try='test -s conftest.$ac_objext'
2610
{ (case "(($ac_try" in
2611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612
*) ac_try_echo=$ac_try;;
2614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615
(eval "$ac_try") 2>&5
2617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618
(exit $ac_status); }; }; then
2619
ac_cv_prog_cc_c89=$ac_arg
2621
echo "$as_me: failed program was:" >&5
2622
sed 's/^/| /' conftest.$ac_ext >&5
2627
rm -f core conftest.err conftest.$ac_objext
2628
test "x$ac_cv_prog_cc_c89" != "xno" && break
2630
rm -f conftest.$ac_ext
2635
case "x$ac_cv_prog_cc_c89" in
2637
{ echo "$as_me:$LINENO: result: none needed" >&5
2638
echo "${ECHO_T}none needed" >&6; } ;;
2640
{ echo "$as_me:$LINENO: result: unsupported" >&5
2641
echo "${ECHO_T}unsupported" >&6; } ;;
2643
CC="$CC $ac_cv_prog_cc_c89"
2644
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2645
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2650
ac_cpp='$CPP $CPPFLAGS'
2651
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
as_ac_Lib=`echo "ac_cv_lib_c $OPENSSL_LIBS''_EVP_sha256" | $as_tr_sh`
2657
{ echo "$as_me:$LINENO: checking for EVP_sha256 in -lc $OPENSSL_LIBS" >&5
2658
echo $ECHO_N "checking for EVP_sha256 in -lc $OPENSSL_LIBS... $ECHO_C" >&6; }
2659
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
2660
echo $ECHO_N "(cached) $ECHO_C" >&6
2662
ac_check_lib_save_LIBS=$LIBS
2663
LIBS="-lc $OPENSSL_LIBS $LIBS"
2664
cat >conftest.$ac_ext <<_ACEOF
2667
cat confdefs.h >>conftest.$ac_ext
2668
cat >>conftest.$ac_ext <<_ACEOF
2669
/* end confdefs.h. */
2671
/* Override any GCC internal prototype to avoid an error.
2672
Use char because int might match the return type of a GCC
2673
builtin and then its argument prototype would still apply. */
2681
return EVP_sha256 ();
2686
rm -f conftest.$ac_objext conftest$ac_exeext
2687
if { (ac_try="$ac_link"
2689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690
*) ac_try_echo=$ac_try;;
2692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693
(eval "$ac_link") 2>conftest.er1
2695
grep -v '^ *+' conftest.er1 >conftest.err
2697
cat conftest.err >&5
2698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699
(exit $ac_status); } &&
2700
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701
{ (case "(($ac_try" in
2702
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703
*) ac_try_echo=$ac_try;;
2705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706
(eval "$ac_try") 2>&5
2708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709
(exit $ac_status); }; } &&
2710
{ ac_try='test -s conftest$ac_exeext'
2711
{ (case "(($ac_try" in
2712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713
*) ac_try_echo=$ac_try;;
2715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716
(eval "$ac_try") 2>&5
2718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719
(exit $ac_status); }; }; then
2720
eval "$as_ac_Lib=yes"
2722
echo "$as_me: failed program was:" >&5
2723
sed 's/^/| /' conftest.$ac_ext >&5
2725
eval "$as_ac_Lib=no"
2728
rm -f core conftest.err conftest.$ac_objext \
2729
conftest$ac_exeext conftest.$ac_ext
2730
LIBS=$ac_check_lib_save_LIBS
2732
ac_res=`eval echo '${'$as_ac_Lib'}'`
2733
{ echo "$as_me:$LINENO: result: $ac_res" >&5
2734
echo "${ECHO_T}$ac_res" >&6; }
2735
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
2737
cat >>confdefs.h <<\_ACEOF
2738
#define HAVE_OPENSSL_EVP_SHA256 1
2743
{ echo "$as_me:$LINENO: WARNING: EVP_sha256 not found, may have issues wirh WiMAX certificates" >&5
2744
echo "$as_me: WARNING: EVP_sha256 not found, may have issues wirh WiMAX certificates" >&2;}
1256
echo "$as_me:$LINENO: result: no" >&5
1257
echo "${ECHO_T}no" >&6
2749
{ echo "$as_me:$LINENO: result: no" >&5
2750
echo "${ECHO_T}no" >&6; }
1463
3026
# Name of the executable.
1464
as_me=`$as_basename "$0" ||
3027
as_me=`$as_basename -- "$0" ||
1465
3028
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1466
3029
X"$0" : 'X\(//\)$' \| \
1467
X"$0" : 'X\(/\)$' \| \
1468
. : '\(.\)' 2>/dev/null ||
3030
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1470
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1471
/^X\/\(\/\/\)$/{ s//\1/; q; }
1472
/^X\/\(\/\).*/{ s//\1/; q; }
1476
# PATH needs CR, and LINENO needs CR and PATH.
1477
# Avoid depending upon Character Ranges.
1478
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1479
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1480
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1481
as_cr_digits='0123456789'
1482
as_cr_alnum=$as_cr_Letters$as_cr_digits
1484
# The user is always right.
1485
if test "${PATH_SEPARATOR+set}" != set; then
1486
echo "#! /bin/sh" >conf$$.sh
1487
echo "exit 0" >>conf$$.sh
1489
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1500
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1501
test "x$as_lineno_1" != "x$as_lineno_2" &&
1502
test "x$as_lineno_3" = "x$as_lineno_2" || {
1503
# Find who we are. Look in the path if we contain no path at all
1506
*[\\/]* ) as_myself=$0 ;;
1507
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511
test -z "$as_dir" && as_dir=.
1512
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1517
# We did not find ourselves, most probably we were run as `sh COMMAND'
1518
# in which case we are not to be found in the path.
1519
if test "x$as_myself" = x; then
1522
if test ! -f "$as_myself"; then
1523
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1524
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1525
{ (exit 1); exit 1; }; }
1527
case $CONFIG_SHELL in
1529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1533
test -z "$as_dir" && as_dir=.
1534
for as_base in sh bash ksh sh5; do
1537
if ("$as_dir/$as_base" -c '
1540
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1541
test "x$as_lineno_1" != "x$as_lineno_2" &&
1542
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1543
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1544
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1545
CONFIG_SHELL=$as_dir/$as_base
1547
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3032
sed '/^.*\/\([^/][^/]*\)\/*$/{
3053
test "x$as_lineno_1" != "x$as_lineno_2" &&
3054
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1555
3056
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1556
3057
# uniformly replaced by the line number. The first 'sed' inserts a
1557
# line-number line before each line; the second 'sed' does the real
1558
# work. The second script uses 'N' to pair each line-number line
1559
# with the numbered line, and appends trailing '-' during
1560
# substitution so that $LINENO is not a special case at line end.
3058
# line-number line after each line using $LINENO; the second 'sed'
3059
# does the real work. The second script uses 'N' to pair each
3060
# line-number line with the line containing $LINENO, and appends
3061
# trailing '-' during substitution so that $LINENO is not a special
1561
3063
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1562
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1563
sed '=' <$as_myself |
3064
# scripts with optimization help from Paolo Bonzini. Blame Lee
3065
# E. McMahon (1931-1989) for sed's syntax. :-)
1568
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3077
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1571
s,^['$as_cr_digits']*\n,,
1572
3080
' >$as_me.lineno &&
1573
chmod +x $as_me.lineno ||
1574
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1575
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3081
chmod +x "$as_me.lineno" ||
3082
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1576
3083
{ (exit 1); exit 1; }; }
1578
3085
# Don't try to exec as it changes $[0], causing all sort of problems
1579
3086
# (the dirname of $[0] is not the place where we might find the
1580
# original and so on. Autoconf is especially sensible to this).
3087
# original and so on. Autoconf is especially sensitive to this).
1582
3089
# Exit status is that of the last command.
1587
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1588
*c*,-n*) ECHO_N= ECHO_C='
1590
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1591
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3094
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3100
ECHO_C= ECHO_N= ECHO_T=
3103
case `echo 'x\c'` in
3104
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
1594
if expr a : '\(a\)' >/dev/null 2>&1; then
3111
if expr a : '\(a\)' >/dev/null 2>&1 &&
3112
test "X`expr 00001 : '.*\(...\)'`" = X001; then
1600
3118
rm -f conf$$ conf$$.exe conf$$.file
3119
if test -d conf$$.dir; then
3120
rm -f conf$$.dir/conf$$.file
1601
3125
echo >conf$$.file
1602
3126
if ln -s conf$$.file conf$$ 2>/dev/null; then
1603
# We could just check for DJGPP; but this test a) works b) is more generic
1604
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1605
if test -f conf$$.exe; then
1606
# Don't use ln at all; we don't have any links
3128
# ... but there are two gotchas:
3129
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3130
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3131
# In both cases, we have to default to `cp -p'.
3132
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1607
3133
as_ln_s='cp -p'
1611
3134
elif ln conf$$.file conf$$ 2>/dev/null; then
1614
3137
as_ln_s='cp -p'
1616
rm -f conf$$ conf$$.exe conf$$.file
3139
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3140
rmdir conf$$.dir 2>/dev/null
1618
3142
if mkdir -p . 2>/dev/null; then
1836
3351
# Have a temporary directory for convenience. Make it in the build tree
1837
# simply because there is no reason to put it here, and in addition,
3352
# simply because there is no reason against having it here, and in addition,
1838
3353
# creating and moving files from /tmp can sometimes cause problems.
1839
# Create a temporary directory, and hook for its removal unless debugging.
3354
# Hook for its removal unless debugging.
3355
# Note that there is a small window in which the directory will not be cleaned:
3356
# after its creation but before its name has been assigned to `$tmp'.
1842
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3360
trap 'exit_status=$?
3361
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1843
3363
trap '{ (exit 1); exit 1; }' 1 2 13 15
1846
3365
# Create a (secure) tmp directory for tmp files.
1849
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3368
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1850
3369
test -n "$tmp" && test -d "$tmp"
1853
tmp=./confstat$$-$RANDOM
1854
(umask 077 && mkdir $tmp)
3372
tmp=./conf$$-$RANDOM
3373
(umask 077 && mkdir "$tmp")
1857
3376
echo "$me: cannot create a temporary directory in ." >&2
1858
3377
{ (exit 1); exit 1; }
1863
cat >>$CONFIG_STATUS <<_ACEOF
1866
# CONFIG_FILES section.
3381
# Set up the sed scripts for CONFIG_FILES section.
1869
3384
# No need to generate the scripts if there are no CONFIG_FILES.
1870
3385
# This happens for instance when ./config.status config.h
1871
if test -n "\$CONFIG_FILES"; then
1872
# Protect against being on the right side of a sed subst in config.status.
1873
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1874
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1875
s,@SHELL@,$SHELL,;t t
1876
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1877
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1878
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1879
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1880
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1881
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1882
s,@exec_prefix@,$exec_prefix,;t t
1883
s,@prefix@,$prefix,;t t
1884
s,@program_transform_name@,$program_transform_name,;t t
1885
s,@bindir@,$bindir,;t t
1886
s,@sbindir@,$sbindir,;t t
1887
s,@libexecdir@,$libexecdir,;t t
1888
s,@datadir@,$datadir,;t t
1889
s,@sysconfdir@,$sysconfdir,;t t
1890
s,@sharedstatedir@,$sharedstatedir,;t t
1891
s,@localstatedir@,$localstatedir,;t t
1892
s,@libdir@,$libdir,;t t
1893
s,@includedir@,$includedir,;t t
1894
s,@oldincludedir@,$oldincludedir,;t t
1895
s,@infodir@,$infodir,;t t
1896
s,@mandir@,$mandir,;t t
1897
s,@build_alias@,$build_alias,;t t
1898
s,@host_alias@,$host_alias,;t t
1899
s,@target_alias@,$target_alias,;t t
1901
s,@ECHO_C@,$ECHO_C,;t t
1902
s,@ECHO_N@,$ECHO_N,;t t
1903
s,@ECHO_T@,$ECHO_T,;t t
1905
s,@eap_tls_ldflags@,$eap_tls_ldflags,;t t
1906
s,@eap_tls_cflags@,$eap_tls_cflags,;t t
1907
s,@targetname@,$targetname,;t t
1908
s,@LIBOBJS@,$LIBOBJS,;t t
1909
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1914
cat >>$CONFIG_STATUS <<\_ACEOF
1915
# Split the substitutions into bite-sized pieces for seds with
1916
# small command number limits, like on Digital OSF/1 and HP-UX.
1918
ac_sed_frag=1 # Number of current file.
1919
ac_beg=1 # First line for current file.
1920
ac_end=$ac_max_sed_lines # Line after last line for current file.
1923
while $ac_more_lines; do
1924
if test $ac_beg -gt 1; then
1925
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1927
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1929
if test ! -s $tmp/subs.frag; then
1932
# The purpose of the label and of the branching condition is to
1933
# speed up the sed processing (if there are no `@' at all, there
1934
# is no need to browse any of the substitutions).
1935
# These are the two extra sed commands mentioned above.
1937
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1938
if test -z "$ac_sed_cmds"; then
1939
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1941
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1943
ac_sed_frag=`expr $ac_sed_frag + 1`
1945
ac_end=`expr $ac_end + $ac_max_sed_lines`
1948
if test -z "$ac_sed_cmds"; then
3386
if test -n "$CONFIG_FILES"; then
3393
for ac_last_try in false false false false false :; do
3394
cat >conf$$subs.sed <<_ACEOF
3395
SHELL!$SHELL$ac_delim
3396
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3397
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3398
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3399
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3400
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3401
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3402
exec_prefix!$exec_prefix$ac_delim
3403
prefix!$prefix$ac_delim
3404
program_transform_name!$program_transform_name$ac_delim
3405
bindir!$bindir$ac_delim
3406
sbindir!$sbindir$ac_delim
3407
libexecdir!$libexecdir$ac_delim
3408
datarootdir!$datarootdir$ac_delim
3409
datadir!$datadir$ac_delim
3410
sysconfdir!$sysconfdir$ac_delim
3411
sharedstatedir!$sharedstatedir$ac_delim
3412
localstatedir!$localstatedir$ac_delim
3413
includedir!$includedir$ac_delim
3414
oldincludedir!$oldincludedir$ac_delim
3415
docdir!$docdir$ac_delim
3416
infodir!$infodir$ac_delim
3417
htmldir!$htmldir$ac_delim
3418
dvidir!$dvidir$ac_delim
3419
pdfdir!$pdfdir$ac_delim
3420
psdir!$psdir$ac_delim
3421
libdir!$libdir$ac_delim
3422
localedir!$localedir$ac_delim
3423
mandir!$mandir$ac_delim
3425
ECHO_C!$ECHO_C$ac_delim
3426
ECHO_N!$ECHO_N$ac_delim
3427
ECHO_T!$ECHO_T$ac_delim
3429
build_alias!$build_alias$ac_delim
3430
host_alias!$host_alias$ac_delim
3431
target_alias!$target_alias$ac_delim
3433
CFLAGS!$CFLAGS$ac_delim
3434
LDFLAGS!$LDFLAGS$ac_delim
3435
CPPFLAGS!$CPPFLAGS$ac_delim
3436
ac_ct_CC!$ac_ct_CC$ac_delim
3437
EXEEXT!$EXEEXT$ac_delim
3438
OBJEXT!$OBJEXT$ac_delim
3439
eap_tls_ldflags!$eap_tls_ldflags$ac_delim
3440
eap_tls_cflags!$eap_tls_cflags$ac_delim
3441
targetname!$targetname$ac_delim
3442
LIBOBJS!$LIBOBJS$ac_delim
3443
LTLIBOBJS!$LTLIBOBJS$ac_delim
3446
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
3448
elif $ac_last_try; then
3449
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3450
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3451
{ (exit 1); exit 1; }; }
3453
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3457
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3458
if test -n "$ac_eof"; then
3459
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3460
ac_eof=`expr $ac_eof + 1`
3463
cat >>$CONFIG_STATUS <<_ACEOF
3464
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3465
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3468
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3469
s/^/s,@/; s/!/@,|#_!!_#|/
3472
s/'"$ac_delim"'$/,g/; t
3474
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3475
' >>$CONFIG_STATUS <conf$$subs.sed
3476
rm -f conf$$subs.sed
3477
cat >>$CONFIG_STATUS <<_ACEOF
3484
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3485
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3486
# trailing colons and then remove the whole line if VPATH becomes empty
3487
# (actually we leave an empty line to preserve line numbers).
3488
if test "x$srcdir" = x.; then
3489
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3493
s/^\([^=]*=[ ]*\):*/\1/
3499
cat >>$CONFIG_STATUS <<\_ACEOF
1951
3500
fi # test -n "$CONFIG_FILES"
1954
cat >>$CONFIG_STATUS <<\_ACEOF
1955
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1956
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1958
- | *:- | *:-:* ) # input from stdin
1960
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1961
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1962
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1963
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1964
* ) ac_file_in=$ac_file.in ;;
1967
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1968
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3503
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
3506
:[FHLC]) ac_mode=$ac_tag; continue;;
3508
case $ac_mode$ac_tag in
3510
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3511
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3512
{ (exit 1); exit 1; }; };;
3513
:[FH]-) ac_tag=-:-;;
3514
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3531
-) ac_f="$tmp/stdin";;
3532
*) # Look for the file first in the build tree, then in the source tree
3533
# (if the path is not absolute). The absolute path cannot be DOS-style,
3534
# because $ac_f cannot contain `:'.
3538
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3540
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3541
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3542
{ (exit 1); exit 1; }; };;
3544
ac_file_inputs="$ac_file_inputs $ac_f"
3547
# Let's still pretend it is `configure' which instantiates (i.e., don't
3548
# use $as_me), people would be surprised to read:
3549
# /* config.h. Generated by config.status. */
3550
configure_input="Generated from "`IFS=:
3551
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3552
if test x"$ac_file" != x-; then
3553
configure_input="$ac_file. $configure_input"
3554
{ echo "$as_me:$LINENO: creating $ac_file" >&5
3555
echo "$as_me: creating $ac_file" >&6;}
3559
*:-:* | *:-) cat >"$tmp/stdin";;
3564
ac_dir=`$as_dirname -- "$ac_file" ||
1969
3565
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1970
3566
X"$ac_file" : 'X\(//\)[^/]' \| \
1971
3567
X"$ac_file" : 'X\(//\)$' \| \
1972
X"$ac_file" : 'X\(/\)' \| \
1973
. : '\(.\)' 2>/dev/null ||
3568
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1974
3569
echo X"$ac_file" |
1975
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1976
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1977
/^X\(\/\/\)$/{ s//\1/; q; }
1978
/^X\(\/\).*/{ s//\1/; q; }
1980
{ if $as_mkdir_p; then
3570
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3589
-*) as_dir=./$as_dir;;
3591
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1985
while test ! -d "$as_dir"; do
1986
as_dirs="$as_dir $as_dirs"
1987
as_dir=`(dirname "$as_dir") 2>/dev/null ||
3595
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3596
*) as_qdir=$as_dir;;
3598
as_dirs="'$as_qdir' $as_dirs"
3599
as_dir=`$as_dirname -- "$as_dir" ||
1988
3600
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1989
3601
X"$as_dir" : 'X\(//\)[^/]' \| \
1990
3602
X"$as_dir" : 'X\(//\)$' \| \
1991
X"$as_dir" : 'X\(/\)' \| \
1992
. : '\(.\)' 2>/dev/null ||
3603
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1993
3604
echo X"$as_dir" |
1994
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1995
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1996
/^X\(\/\/\)$/{ s//\1/; q; }
1997
/^X\(\/\).*/{ s//\1/; q; }
3605
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3622
test -d "$as_dir" && break
2000
test ! -n "$as_dirs" || mkdir $as_dirs
2001
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2002
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3624
test -z "$as_dirs" || eval "mkdir $as_dirs"
3625
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3626
echo "$as_me: error: cannot create directory $as_dir" >&2;}
2003
3627
{ (exit 1); exit 1; }; }; }
2007
if test "$ac_dir" != .; then
3631
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2008
3633
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2009
# A "../" for each directory in $ac_dir_suffix.
2010
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2012
ac_dir_suffix= ac_top_builddir=
3634
# A ".." for each directory in $ac_dir_suffix.
3635
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
3636
case $ac_top_builddir_sub in
3637
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3638
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3641
ac_abs_top_builddir=$ac_pwd
3642
ac_abs_builddir=$ac_pwd$ac_dir_suffix
3643
# for backward compatibility:
3644
ac_top_builddir=$ac_top_build_prefix
2015
3646
case $srcdir in
2016
.) # No --srcdir option. We are building in place.
3647
.) # We are building in place.
2018
if test -z "$ac_top_builddir"; then
2021
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2023
[\\/]* | ?:[\\/]* ) # Absolute path.
3649
ac_top_srcdir=$ac_top_builddir_sub
3650
ac_abs_top_srcdir=$ac_pwd ;;
3651
[\\/]* | ?:[\\/]* ) # Absolute name.
2024
3652
ac_srcdir=$srcdir$ac_dir_suffix;
2025
ac_top_srcdir=$srcdir ;;
2027
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2028
ac_top_srcdir=$ac_top_builddir$srcdir ;;
2031
# Do not use `cd foo && pwd` to compute absolute paths, because
2032
# the directories may not exist.
2034
.) ac_abs_builddir="$ac_dir";;
2037
.) ac_abs_builddir=`pwd`;;
2038
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2039
*) ac_abs_builddir=`pwd`/"$ac_dir";;
2042
case $ac_abs_builddir in
2043
.) ac_abs_top_builddir=${ac_top_builddir}.;;
2045
case ${ac_top_builddir}. in
2046
.) ac_abs_top_builddir=$ac_abs_builddir;;
2047
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2048
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2051
case $ac_abs_builddir in
2052
.) ac_abs_srcdir=$ac_srcdir;;
2055
.) ac_abs_srcdir=$ac_abs_builddir;;
2056
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2057
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2060
case $ac_abs_builddir in
2061
.) ac_abs_top_srcdir=$ac_top_srcdir;;
2063
case $ac_top_srcdir in
2064
.) ac_abs_top_srcdir=$ac_abs_builddir;;
2065
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2066
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2072
# Let's still pretend it is `configure' which instantiates (i.e., don't
2073
# use $as_me), people would be surprised to read:
2074
# /* config.h. Generated by config.status. */
2075
if test x"$ac_file" = x-; then
2078
configure_input="$ac_file. "
2080
configure_input=$configure_input"Generated from `echo $ac_file_in |
2081
sed 's,.*/,,'` by configure."
2083
# First look for the input files in the build tree, otherwise in the
2085
ac_file_inputs=`IFS=:
2086
for f in $ac_file_in; do
2088
-) echo $tmp/stdin ;;
2090
# Absolute (can't be DOS-style, as IFS=:)
2091
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2092
echo "$as_me: error: cannot find input file: $f" >&2;}
2093
{ (exit 1); exit 1; }; }
2096
if test -f "$f"; then
2099
elif test -f "$srcdir/$f"; then
2104
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2105
echo "$as_me: error: cannot find input file: $f" >&2;}
2106
{ (exit 1); exit 1; }; }
2109
done` || { (exit 1); exit 1; }
2111
if test x"$ac_file" != x-; then
2112
{ echo "$as_me:$LINENO: creating $ac_file" >&5
2113
echo "$as_me: creating $ac_file" >&6;}
3653
ac_top_srcdir=$srcdir
3654
ac_abs_top_srcdir=$srcdir ;;
3656
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3657
ac_top_srcdir=$ac_top_build_prefix$srcdir
3658
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3660
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3671
cat >>$CONFIG_STATUS <<\_ACEOF
3672
# If the template does not know about datarootdir, expand it.
3673
# FIXME: This hack should be removed a few years after 2.60.
3674
ac_datarootdir_hack=; ac_datarootdir_seen=
3676
case `sed -n '/datarootdir/ {
3685
' $ac_file_inputs` in
3686
*datarootdir*) ac_datarootdir_seen=yes;;
3687
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3688
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3689
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3691
cat >>$CONFIG_STATUS <<_ACEOF
3692
ac_datarootdir_hack='
3693
s&@datadir@&$datadir&g
3694
s&@docdir@&$docdir&g
3695
s&@infodir@&$infodir&g
3696
s&@localedir@&$localedir&g
3697
s&@mandir@&$mandir&g
3698
s&\\\${datarootdir}&$datarootdir&g' ;;
3702
# Neutralize VPATH when `$srcdir' = `.'.
3703
# Shell code in configure.ac might set extrasub.
3704
# FIXME: do we really want to maintain this feature?
2117
3705
cat >>$CONFIG_STATUS <<_ACEOF
2121
3709
cat >>$CONFIG_STATUS <<\_ACEOF
2123
3711
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2124
s,@configure_input@,$configure_input,;t t
2125
s,@srcdir@,$ac_srcdir,;t t
2126
s,@abs_srcdir@,$ac_abs_srcdir,;t t
2127
s,@top_srcdir@,$ac_top_srcdir,;t t
2128
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2129
s,@builddir@,$ac_builddir,;t t
2130
s,@abs_builddir@,$ac_abs_builddir,;t t
2131
s,@top_builddir@,$ac_top_builddir,;t t
2132
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2133
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2135
if test x"$ac_file" != x-; then
2136
mv $tmp/out $ac_file
3712
s&@configure_input@&$configure_input&;t t
3713
s&@top_builddir@&$ac_top_builddir_sub&;t t
3714
s&@srcdir@&$ac_srcdir&;t t
3715
s&@abs_srcdir@&$ac_abs_srcdir&;t t
3716
s&@top_srcdir@&$ac_top_srcdir&;t t
3717
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3718
s&@builddir@&$ac_builddir&;t t
3719
s&@abs_builddir@&$ac_abs_builddir&;t t
3720
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3721
$ac_datarootdir_hack
3722
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
3724
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3725
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3726
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3727
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3728
which seems to be undefined. Please make sure it is defined." >&5
3729
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3730
which seems to be undefined. Please make sure it is defined." >&2;}
3734
-) cat "$tmp/out"; rm -f "$tmp/out";;
3735
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
2144
cat >>$CONFIG_STATUS <<\_ACEOF
2147
# CONFIG_HEADER section.
2150
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2151
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2153
# ac_d sets the value in "#define NAME VALUE" lines.
2154
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2155
ac_dB='[ ].*$,\1#\2'
3744
# Transform confdefs.h into a sed script `conftest.defines', that
3745
# substitutes the proper values into config.h.in to produce config.h.
3746
rm -f conftest.defines conftest.tail
3747
# First, append a space to every undef/define line, to ease matching.
3748
echo 's/$/ /' >conftest.defines
3749
# Then, protect against being on the right side of a sed subst, or in
3750
# an unquoted here document, in config.status. If some macros were
3751
# called several times there might be several #defines for the same
3752
# symbol, which is useless. But do not sort them, since the last
3753
# AC_DEFINE must be honored.
3754
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3755
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
3756
# NAME is the cpp macro being defined, VALUE is the value it is being given.
3757
# PARAMS is the parameter list in the macro definition--in most cases, it's
3758
# just an empty string.
3759
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
3760
ac_dB='\\)[ (].*,\\1define\\2'
2158
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2159
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2160
ac_uB='$,\1#\2define\3'
2164
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2165
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2167
- | *:- | *:-:* ) # input from stdin
2169
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2170
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2171
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2172
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2173
* ) ac_file_in=$ac_file.in ;;
2176
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
2177
echo "$as_me: creating $ac_file" >&6;}
2179
# First look for the input files in the build tree, otherwise in the
2181
ac_file_inputs=`IFS=:
2182
for f in $ac_file_in; do
2184
-) echo $tmp/stdin ;;
2186
# Absolute (can't be DOS-style, as IFS=:)
2187
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2188
echo "$as_me: error: cannot find input file: $f" >&2;}
2189
{ (exit 1); exit 1; }; }
2190
# Do quote $f, to prevent DOS paths from being IFS'd.
2193
if test -f "$f"; then
2196
elif test -f "$srcdir/$f"; then
2201
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2202
echo "$as_me: error: cannot find input file: $f" >&2;}
2203
{ (exit 1); exit 1; }; }
2206
done` || { (exit 1); exit 1; }
2207
# Remove the trailing spaces.
2208
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
2212
# Transform confdefs.h into two sed scripts, `conftest.defines' and
2213
# `conftest.undefs', that substitutes the proper values into
2214
# config.h.in to produce config.h. The first handles `#define'
2215
# templates, and the second `#undef' templates.
2216
# And first: Protect against being on the right side of a sed subst in
2217
# config.status. Protect against being in an unquoted here document
2219
rm -f conftest.defines conftest.undefs
2220
# Using a here document instead of a string reduces the quoting nightmare.
2221
# Putting comments in sed scripts is not portable.
2223
# `end' is used to avoid that the second main sed command (meant for
2224
# 0-ary CPP macros) applies to n-ary macro definitions.
2225
# See the Autoconf documentation for `clear'.
2226
cat >confdef2sed.sed <<\_ACEOF
2231
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
2233
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2236
# If some macros were called several times there might be several times
2237
# the same #defines, which is useless. Nevertheless, we may not want to
2238
# sort them, since we want the *last* AC-DEFINE to be honored.
2239
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2240
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2241
rm -f confdef2sed.sed
2243
# This sed command replaces #undef with comments. This is necessary, for
3768
s/^[ ]*#[ ]*define[ ][ ]*//
3773
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
3774
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
3775
' >>conftest.defines
3777
# Remove the space that was appended to ease matching.
3778
# Then replace #undef with comments. This is necessary, for
2244
3779
# example, in the case of _POSIX_SOURCE, which is predefined and required
2245
3780
# on some systems where configure will not decide to define it.
2246
cat >>conftest.undefs <<\_ACEOF
2247
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3781
# (The regexp can be short, since the line contains either #define or #undef.)
3783
s,^[ #]*u.*,/* & */,' >>conftest.defines
3785
# Break up conftest.defines:
3788
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
3789
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
3790
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
3792
ac_in='$ac_file_inputs'
3793
ac_out='"$tmp/out1"'
3794
ac_nxt='"$tmp/out2"'
3798
# Write a here document:
3799
cat >>$CONFIG_STATUS <<_ACEOF
3800
# First, check the format of the line:
3801
cat >"\$tmp/defines.sed" <<\\CEOF
3802
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
3803
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
2250
# Break up conftest.defines because some shells have a limit on the size
2251
# of here documents, and old seds have small limits too (100 cmds).
2252
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2253
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2254
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
2255
echo ' :' >>$CONFIG_STATUS
2257
while grep . conftest.defines >/dev/null
2259
# Write a limited-size here document to $tmp/defines.sed.
2260
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
2261
# Speed up: don't consider the non `#define' lines.
2262
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
2263
# Work around the forget-to-reset-the-flag bug.
2264
echo 't clr' >>$CONFIG_STATUS
2265
echo ': clr' >>$CONFIG_STATUS
2266
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3807
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
2268
sed -f $tmp/defines.sed $tmp/in >$tmp/out
2272
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3809
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
3810
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
3811
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
3812
grep . conftest.tail >/dev/null || break
2273
3813
rm -f conftest.defines
2274
3814
mv conftest.tail conftest.defines
2276
rm -f conftest.defines
2277
echo ' fi # grep' >>$CONFIG_STATUS
2278
echo >>$CONFIG_STATUS
2280
# Break up conftest.undefs because some shells have a limit on the size
2281
# of here documents, and old seds have small limits too (100 cmds).
2282
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2284
while grep . conftest.undefs >/dev/null
2286
# Write a limited-size here document to $tmp/undefs.sed.
2287
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
2288
# Speed up: don't consider the non `#undef'
2289
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
2290
# Work around the forget-to-reset-the-flag bug.
2291
echo 't clr' >>$CONFIG_STATUS
2292
echo ': clr' >>$CONFIG_STATUS
2293
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2295
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
2299
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
2300
rm -f conftest.undefs
2301
mv conftest.tail conftest.undefs
2303
rm -f conftest.undefs
3816
rm -f conftest.defines conftest.tail
3818
echo "ac_result=$ac_in" >>$CONFIG_STATUS
2305
3819
cat >>$CONFIG_STATUS <<\_ACEOF
2306
# Let's still pretend it is `configure' which instantiates (i.e., don't
2307
# use $as_me), people would be surprised to read:
2308
# /* config.h. Generated by config.status. */
2309
if test x"$ac_file" = x-; then
2310
echo "/* Generated by configure. */" >$tmp/config.h
2312
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
2314
cat $tmp/in >>$tmp/config.h
2316
3820
if test x"$ac_file" != x-; then
2317
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3821
echo "/* $configure_input */" >"$tmp/config.h"
3822
cat "$ac_result" >>"$tmp/config.h"
3823
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
2318
3824
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
2319
3825
echo "$as_me: $ac_file is unchanged" >&6;}
2321
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2322
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2323
X"$ac_file" : 'X\(//\)[^/]' \| \
2324
X"$ac_file" : 'X\(//\)$' \| \
2325
X"$ac_file" : 'X\(/\)' \| \
2326
. : '\(.\)' 2>/dev/null ||
2328
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2329
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
2330
/^X\(\/\/\)$/{ s//\1/; q; }
2331
/^X\(\/\).*/{ s//\1/; q; }
2333
{ if $as_mkdir_p; then
2338
while test ! -d "$as_dir"; do
2339
as_dirs="$as_dir $as_dirs"
2340
as_dir=`(dirname "$as_dir") 2>/dev/null ||
2341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2342
X"$as_dir" : 'X\(//\)[^/]' \| \
2343
X"$as_dir" : 'X\(//\)$' \| \
2344
X"$as_dir" : 'X\(/\)' \| \
2345
. : '\(.\)' 2>/dev/null ||
2347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2348
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
2349
/^X\(\/\/\)$/{ s//\1/; q; }
2350
/^X\(\/\).*/{ s//\1/; q; }
2353
test ! -n "$as_dirs" || mkdir $as_dirs
2354
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2355
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2356
{ (exit 1); exit 1; }; }; }
2359
mv $tmp/config.h $ac_file
3828
mv "$tmp/config.h" $ac_file
3831
echo "/* $configure_input */"
2368
cat >>$CONFIG_STATUS <<\_ACEOF
2370
3843
{ (exit 0); exit 0; }