2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for curl -.
3
# Generated by GNU Autoconf 2.64 for curl -.
5
5
# Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
8
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
13
11
# This configure script is free software; the Free Software Foundation
14
12
# gives unlimited permission to copy, distribute and modify it.
412
# as_fn_error STATUS ERROR [LINENO LOG_FD]
413
# ----------------------------------------
402
# as_fn_error ERROR [LINENO LOG_FD]
403
# ---------------------------------
414
404
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415
405
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416
# script with STATUS, using 1 if that was 0.
406
# script with status $?, using 1 if that was 0.
419
as_status=$1; test $as_status -eq 0 && as_status=1
421
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
409
as_status=$?; test $as_status -eq 0 && as_status=1
411
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
424
$as_echo "$as_me: error: $2" >&2
414
$as_echo "$as_me: error: $1" >&2
425
415
as_fn_exit $as_status
2256
2250
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2257
2251
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2258
2252
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259
( $as_echo "## ---------------------------------------------------------------------- ##
2254
## ---------------------------------------------------------------------- ##
2260
2255
## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2261
## ---------------------------------------------------------------------- ##"
2256
## ---------------------------------------------------------------------- ##
2262
2258
) | sed "s/^/$as_me: WARNING: /" >&2
2265
2261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266
2262
$as_echo_n "checking for $2... " >&6; }
2267
if eval \${$3+:} false; then :
2263
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268
2264
$as_echo_n "(cached) " >&6
2270
2266
eval "$3=\$ac_header_compiler"
2583
2582
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585
2584
test "x$ac_site_file" = xNONE && continue
2586
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2585
if test -r "$ac_site_file"; then
2587
2586
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2588
2587
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2589
2588
sed 's/^/| /' "$ac_site_file" >&5
2591
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593
as_fn_error $? "failed to load site script $ac_site_file
2594
See \`config.log' for more details" "$LINENO" 5; }
2598
2593
if test -r "$cache_file"; then
2599
# Some versions of bash will fail to source /dev/null (special files
2600
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2601
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2594
# Some versions of bash will fail to source /dev/null (special
2595
# files actually), so we avoid doing that.
2596
if test -f "$cache_file"; then
2602
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603
2598
$as_echo "$as_me: loading cache $cache_file" >&6;}
2604
2599
case $cache_file in
3166
3161
am__api_version="1.9"
3168
3163
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3169
if test -f "$ac_dir/install-sh"; then
3171
ac_install_sh="$ac_aux_dir/install-sh -c"
3173
elif test -f "$ac_dir/install.sh"; then
3175
ac_install_sh="$ac_aux_dir/install.sh -c"
3177
elif test -f "$ac_dir/shtool"; then
3179
ac_install_sh="$ac_aux_dir/shtool install -c"
3164
for ac_t in install-sh install.sh shtool; do
3165
if test -f "$ac_dir/$ac_t"; then
3167
ac_install_sh="$ac_aux_dir/$ac_t -c"
3183
3172
if test -z "$ac_aux_dir"; then
3184
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3173
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3187
3176
# These three variables are undocumented and unsupported,
3665
3654
# Make sure we can run config.sub.
3666
3655
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3667
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3656
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3669
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3670
3659
$as_echo_n "checking build system type... " >&6; }
3671
if ${ac_cv_build+:} false; then :
3660
if test "${ac_cv_build+set}" = set; then :
3672
3661
$as_echo_n "(cached) " >&6
3674
3663
ac_build_alias=$build_alias
3675
3664
test "x$ac_build_alias" = x &&
3676
3665
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3677
3666
test "x$ac_build_alias" = x &&
3678
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3667
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3679
3668
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3680
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3669
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3683
3672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3684
3673
$as_echo "$ac_cv_build" >&6; }
3685
3674
case $ac_cv_build in
3687
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3676
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3689
3678
build=$ac_cv_build
3690
3679
ac_save_IFS=$IFS; IFS='-'
4129
4118
... rest of stderr output deleted ...
4130
4119
10q' conftest.err >conftest.er1
4131
4120
cat conftest.er1 >&5
4121
rm -f conftest.er1 conftest.err
4133
rm -f conftest.er1 conftest.err
4134
4123
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135
4124
test $ac_status = 0; }
4138
4127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139
4128
/* end confdefs.h. */
4141
4130
int main (void)
4132
FILE *f = fopen ("conftest.out", "w");
4133
return ferror (f) || fclose (f) != 0;
4148
4139
ac_clean_files_save=$ac_clean_files
4149
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4140
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4150
4141
# Try to create an executable without -o first, disregard a.out.
4151
4142
# It will help us diagnose broken compilers, and finding out an intuition
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4154
$as_echo_n "checking whether the C compiler works... " >&6; }
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4145
$as_echo_n "checking for C compiler default output file name... " >&6; }
4155
4146
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4157
4148
# The possible output files:
4216
if test -z "$ac_file"; then :
4217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218
$as_echo "no" >&6; }
4219
$as_echo "$as_me: failed program was:" >&5
4220
sed 's/^/| /' conftest.$ac_ext >&5
4222
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224
as_fn_error 77 "C compiler cannot create executables
4225
See \`config.log' for more details" "$LINENO" 5; }
4227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228
$as_echo "yes" >&6; }
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4231
$as_echo_n "checking for C compiler default output file name... " >&6; }
4232
4207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4233
4208
$as_echo "$ac_file" >&6; }
4209
if test -z "$ac_file"; then :
4210
$as_echo "$as_me: failed program was:" >&5
4211
sed 's/^/| /' conftest.$ac_ext >&5
4213
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4214
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4215
{ as_fn_set_status 77
4216
as_fn_error "C compiler cannot create executables
4217
See \`config.log' for more details." "$LINENO" 5; }; }
4234
4219
ac_exeext=$ac_cv_exeext
4236
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4221
# Check that the compiler produces executables we can run. If not, either
4222
# the compiler is broken, or we cross compile.
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4224
$as_echo_n "checking whether the C compiler works... " >&6; }
4225
# If not cross compiling, check that we can run a simple program.
4226
if test "$cross_compiling" != yes; then
4227
if { ac_try='./$ac_file'
4228
{ { case "(($ac_try" in
4229
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230
*) ac_try_echo=$ac_try;;
4232
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4233
$as_echo "$ac_try_echo"; } >&5
4234
(eval "$ac_try") 2>&5
4236
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4237
test $ac_status = 0; }; }; then
4240
if test "$cross_compiling" = maybe; then
4243
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245
as_fn_error "cannot run C compiled programs.
4246
If you meant to cross compile, use \`--host'.
4247
See \`config.log' for more details." "$LINENO" 5; }
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4252
$as_echo "yes" >&6; }
4254
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4237
4255
ac_clean_files=$ac_clean_files_save
4256
# Check that the compiler produces executables we can run. If not, either
4257
# the compiler is broken, or we cross compile.
4258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4259
$as_echo_n "checking whether we are cross compiling... " >&6; }
4260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4261
$as_echo "$cross_compiling" >&6; }
4238
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239
4264
$as_echo_n "checking for suffix of executables... " >&6; }
4240
4265
if { { ac_try="$ac_link"
4265
4290
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266
4291
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4268
See \`config.log' for more details" "$LINENO" 5; }
4292
as_fn_error "cannot compute suffix of executables: cannot compile and link
4293
See \`config.log' for more details." "$LINENO" 5; }
4270
rm -f conftest conftest$ac_cv_exeext
4295
rm -f conftest$ac_cv_exeext
4271
4296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272
4297
$as_echo "$ac_cv_exeext" >&6; }
4274
4299
rm -f conftest.$ac_ext
4275
4300
EXEEXT=$ac_cv_exeext
4276
4301
ac_exeext=$EXEEXT
4277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278
/* end confdefs.h. */
4282
FILE *f = fopen ("conftest.out", "w");
4283
return ferror (f) || fclose (f) != 0;
4289
ac_clean_files="$ac_clean_files conftest.out"
4290
# Check that the compiler produces executables we can run. If not, either
4291
# the compiler is broken, or we cross compile.
4292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4293
$as_echo_n "checking whether we are cross compiling... " >&6; }
4294
if test "$cross_compiling" != yes; then
4295
{ { ac_try="$ac_link"
4297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298
*) ac_try_echo=$ac_try;;
4300
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301
$as_echo "$ac_try_echo"; } >&5
4302
(eval "$ac_link") 2>&5
4304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305
test $ac_status = 0; }
4306
if { ac_try='./conftest$ac_cv_exeext'
4307
{ { case "(($ac_try" in
4308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309
*) ac_try_echo=$ac_try;;
4311
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312
$as_echo "$ac_try_echo"; } >&5
4313
(eval "$ac_try") 2>&5
4315
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316
test $ac_status = 0; }; }; then
4319
if test "$cross_compiling" = maybe; then
4322
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324
as_fn_error $? "cannot run C compiled programs.
4325
If you meant to cross compile, use \`--host'.
4326
See \`config.log' for more details" "$LINENO" 5; }
4330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4331
$as_echo "$cross_compiling" >&6; }
4333
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4334
ac_clean_files=$ac_clean_files_save
4335
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4336
4303
$as_echo_n "checking for suffix of object files... " >&6; }
4337
if ${ac_cv_objext+:} false; then :
4304
if test "${ac_cv_objext+set}" = set; then :
4338
4305
$as_echo_n "(cached) " >&6
4340
4307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853
4821
ac_preproc_ok=:
4856
rm -f conftest.err conftest.i conftest.$ac_ext
4824
rm -f conftest.err conftest.$ac_ext
4859
4827
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860
rm -f conftest.i conftest.err conftest.$ac_ext
4828
rm -f conftest.err conftest.$ac_ext
4861
4829
if $ac_preproc_ok; then :
4864
4832
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4865
4833
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4867
See \`config.log' for more details" "$LINENO" 5; }
4834
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4835
See \`config.log' for more details." "$LINENO" 5; }
13867
13838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13868
13839
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13869
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13840
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13870
13841
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13872
13843
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13873
if test "x$ac_cv_func_dlopen" = xyes; then :
13844
if test "x$ac_cv_func_dlopen" = x""yes; then :
13874
13845
lt_cv_dlopen="dlopen"
13876
13847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13877
13848
$as_echo_n "checking for dlopen in -ldl... " >&6; }
13878
if ${ac_cv_lib_dl_dlopen+:} false; then :
13849
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13879
13850
$as_echo_n "(cached) " >&6
13881
13852
ac_check_lib_save_LIBS=$LIBS
15585
15556
if test "$compiler_id" = "GNU_C" ||
15586
15557
test "$compiler_id" = "CLANG"; then
15588
tmp_has_include="no"
15589
tmp_chg_FLAGS="$CFLAGS"
15590
for word1 in $tmp_chg_FLAGS; do
15593
tmp_has_include="yes"
15597
if test "$tmp_has_include" = "yes"; then
15598
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15599
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15600
CFLAGS="$tmp_chg_FLAGS"
15603
tmp_has_include="no"
15604
tmp_chg_FLAGS="$CPPFLAGS"
15605
for word1 in $tmp_chg_FLAGS; do
15608
tmp_has_include="yes"
15612
if test "$tmp_has_include" = "yes"; then
15613
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15614
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15615
CPPFLAGS="$tmp_chg_FLAGS"
15559
if test "$compiler_id" = "GNU_C" ||
15560
test "$compiler_id" = "CLANG"; then
15561
tmp_has_include="no"
15562
tmp_chg_FLAGS="$CFLAGS"
15563
for word1 in $tmp_chg_FLAGS; do
15566
tmp_has_include="yes"
15570
if test "$tmp_has_include" = "yes"; then
15571
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15572
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15573
CFLAGS="$tmp_chg_FLAGS"
15576
tmp_has_include="no"
15577
tmp_chg_FLAGS="$CPPFLAGS"
15578
for word1 in $tmp_chg_FLAGS; do
15581
tmp_has_include="yes"
15585
if test "$tmp_has_include" = "yes"; then
15586
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
15587
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
15588
CPPFLAGS="$tmp_chg_FLAGS"
18151
18145
if test "$HAVE_GETHOSTBYNAME" != "1"; then
18152
as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
18146
as_fn_error "couldn't find libraries for gethostbyname()" "$LINENO" 5
18155
18149
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18156
if test "x$ac_cv_func_strcasecmp" = xyes; then :
18150
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
18159
18153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
18160
18154
$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
18161
if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
18155
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then :
18162
18156
$as_echo_n "(cached) " >&6
18164
18158
ac_check_lib_save_LIBS=$LIBS
20541
20542
if test X"$OPT_SSL" != Xoff &&
20542
20543
test "$OPENSSL_ENABLED" != "1"; then
20543
as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
20544
as_fn_error "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
20547
20548
if test X"$OPENSSL_ENABLED" = X"1"; then
20548
20549
ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
20549
if test "x$ac_cv_func_ENGINE_init" = xyes; then :
20550
if test "x$ac_cv_func_ENGINE_init" = x""yes; then :
20551
20552
for ac_header in openssl/engine.h
20553
20554
ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
20554
if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
20555
if test "x$ac_cv_header_openssl_engine_h" = x""yes; then :
20555
20556
cat >>confdefs.h <<_ACEOF
20556
20557
#define HAVE_OPENSSL_ENGINE_H 1
21421
21424
if test x$cross_compiling != xyes; then
21422
as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
21423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
21425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
21424
21426
$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
21425
if eval \${$as_ac_File+:} false; then :
21427
if test "${ac_cv_file___dev_urandom_+set}" = set; then :
21426
21428
$as_echo_n "(cached) " >&6
21428
21430
test "$cross_compiling" = yes &&
21429
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21431
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21430
21432
if test -r ""/dev/urandom""; then
21431
eval "$as_ac_File=yes"
21433
ac_cv_file___dev_urandom_=yes
21433
eval "$as_ac_File=no"
21436
eval ac_res=\$$as_ac_File
21437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21438
$as_echo "$ac_res" >&6; }
21439
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
21435
ac_cv_file___dev_urandom_=no
21438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file___dev_urandom_" >&5
21439
$as_echo "$ac_cv_file___dev_urandom_" >&6; }
21440
if test "x$ac_cv_file___dev_urandom_" = x""yes; then :
21440
21441
RANDOM_FILE="/dev/urandom"
33298
tst_links_socketpair="unknown"
33299
tst_proto_socketpair="unknown"
33300
tst_compi_socketpair="unknown"
33301
tst_allow_socketpair="unknown"
33303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
33304
$as_echo_n "checking if socketpair can be linked... " >&6; }
33305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33306
/* end confdefs.h. */
33309
#define socketpair innocuous_socketpair
33311
# include <limits.h>
33313
# include <assert.h>
33319
char socketpair ();
33320
#if defined __stub_socketpair || defined __stub___socketpair
33326
return socketpair ();
33332
if ac_fn_c_try_link "$LINENO"; then :
33334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33335
$as_echo "yes" >&6; }
33336
tst_links_socketpair="yes"
33340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33341
$as_echo "no" >&6; }
33342
tst_links_socketpair="no"
33345
rm -f core conftest.err conftest.$ac_objext \
33346
conftest$ac_exeext conftest.$ac_ext
33348
if test "$tst_links_socketpair" = "yes"; then
33349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
33350
$as_echo_n "checking if socketpair is prototyped... " >&6; }
33351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33352
/* end confdefs.h. */
33354
$curl_includes_sys_socket
33355
$curl_includes_socket
33358
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33359
$EGREP "socketpair" >/dev/null 2>&1; then :
33361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362
$as_echo "yes" >&6; }
33363
tst_proto_socketpair="yes"
33367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368
$as_echo "no" >&6; }
33369
tst_proto_socketpair="no"
33376
if test "$tst_proto_socketpair" = "yes"; then
33377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
33378
$as_echo_n "checking if socketpair is compilable... " >&6; }
33379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33380
/* end confdefs.h. */
33383
$curl_includes_sys_socket
33384
$curl_includes_socket
33390
if(0 != socketpair(0, 0, 0, sv))
33398
if ac_fn_c_try_compile "$LINENO"; then :
33400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401
$as_echo "yes" >&6; }
33402
tst_compi_socketpair="yes"
33406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407
$as_echo "no" >&6; }
33408
tst_compi_socketpair="no"
33411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33414
if test "$tst_compi_socketpair" = "yes"; then
33415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
33416
$as_echo_n "checking if socketpair usage allowed... " >&6; }
33417
if test "x$curl_disallow_socketpair" != "xyes"; then
33418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33419
$as_echo "yes" >&6; }
33420
tst_allow_socketpair="yes"
33422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33423
$as_echo "no" >&6; }
33424
tst_allow_socketpair="no"
33428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
33429
$as_echo_n "checking if socketpair might be used... " >&6; }
33430
if test "$tst_links_socketpair" = "yes" &&
33431
test "$tst_proto_socketpair" = "yes" &&
33432
test "$tst_compi_socketpair" = "yes" &&
33433
test "$tst_allow_socketpair" = "yes"; then
33434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33435
$as_echo "yes" >&6; }
33437
cat >>confdefs.h <<_ACEOF
33438
#define HAVE_SOCKETPAIR 1
33441
ac_cv_func_socketpair="yes"
33443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33444
$as_echo "no" >&6; }
33445
ac_cv_func_socketpair="no"
33263
33450
tst_links_strcasecmp="unknown"
33264
33451
tst_proto_strcasecmp="unknown"
36868
OPT_NTLM_WB="default"
36869
# Check whether --enable-ntlm-wb was given.
36870
if test "${enable_ntlm_wb+set}" = set; then :
36871
enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
36874
want_ntlm_wb_file="/usr/bin/ntlm_auth"
36875
case "$OPT_NTLM_WB" in
36884
if test -n "$enableval" && test "$enableval" != "yes"; then
36885
want_ntlm_wb_file="$enableval"
36892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
36893
$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
36894
if test "$ac_cv_native_windows" = "yes" ||
36895
test "x$SSL_ENABLED" = "x"; then
36896
want_ntlm_wb_file=""
36899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
36900
$as_echo "$want_ntlm_wb" >&6; }
36901
if test "$want_ntlm_wb" = "yes"; then
36903
$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
36906
cat >>confdefs.h <<_ACEOF
36907
#define NTLM_WB_FILE "$want_ntlm_wb_file"
36676
36914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
36677
36915
$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
36678
36916
# Check whether --enable-tls-srp was given.
37037
37278
:end' >>confcache
37038
37279
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37039
37280
if test -w "$cache_file"; then
37040
if test "x$cache_file" != "x/dev/null"; then
37281
test "x$cache_file" != "x/dev/null" &&
37041
37282
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37042
37283
$as_echo "$as_me: updating cache $cache_file" >&6;}
37043
if test ! -f "$cache_file" || test -h "$cache_file"; then
37044
cat confcache >"$cache_file"
37046
case $cache_file in #(
37048
mv -f confcache "$cache_file"$$ &&
37049
mv -f "$cache_file"$$ "$cache_file" ;; #(
37051
mv -f confcache "$cache_file" ;;
37284
cat confcache >$cache_file
37056
37286
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37057
37287
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37085
37314
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
37086
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
37315
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
37087
37316
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37089
37318
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37090
as_fn_error $? "conditional \"AMDEP\" was never defined.
37319
as_fn_error "conditional \"AMDEP\" was never defined.
37091
37320
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37093
37322
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37094
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37323
as_fn_error "conditional \"am__fastdepCC\" was never defined.
37095
37324
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37097
37326
if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
37098
as_fn_error $? "conditional \"MIMPURE\" was never defined.
37099
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37101
if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
37102
as_fn_error $? "conditional \"STATICLIB\" was never defined.
37103
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37105
if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
37106
as_fn_error $? "conditional \"STATICLIB\" was never defined.
37327
as_fn_error "conditional \"MIMPURE\" was never defined.
37328
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37330
if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
37331
as_fn_error "conditional \"STATICLIB\" was never defined.
37332
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37334
if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
37335
as_fn_error "conditional \"STATICLIB\" was never defined.
37107
37336
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37109
37338
if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
37110
as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
37339
as_fn_error "conditional \"NO_UNDEFINED\" was never defined.
37111
37340
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37113
37342
if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
37114
as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
37343
as_fn_error "conditional \"CURLDEBUG\" was never defined.
37115
37344
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37117
37346
if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
37118
as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
37347
as_fn_error "conditional \"BUILD_UNITTESTS\" was never defined.
37119
37348
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37121
37350
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
37122
as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
37351
as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
37123
37352
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37125
37354
if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
37126
as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
37355
as_fn_error "conditional \"USE_MANUAL\" was never defined.
37127
37356
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37129
37358
if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
37130
as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
37359
as_fn_error "conditional \"USE_EMBEDDED_ARES\" was never defined.
37131
37360
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37133
37362
if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
37134
as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
37363
as_fn_error "conditional \"BUILD_LIBHOSTNAME\" was never defined.
37135
37364
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37137
37366
if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
37138
as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
37367
as_fn_error "conditional \"SONAME_BUMP\" was never defined.
37139
37368
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37141
37370
if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
37142
as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
37371
as_fn_error "conditional \"CROSSCOMPILING\" was never defined.
37143
37372
Usually this means the macro was only invoked conditionally." "$LINENO" 5
37146
: "${CONFIG_STATUS=./config.status}"
37375
: ${CONFIG_STATUS=./config.status}
37147
37376
ac_write_fail=0
37148
37377
ac_clean_files_save=$ac_clean_files
37149
37378
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37282
37510
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37285
# as_fn_error STATUS ERROR [LINENO LOG_FD]
37286
# ----------------------------------------
37513
# as_fn_error ERROR [LINENO LOG_FD]
37514
# ---------------------------------
37287
37515
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37288
37516
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37289
# script with STATUS, using 1 if that was 0.
37517
# script with status $?, using 1 if that was 0.
37290
37518
as_fn_error ()
37292
as_status=$1; test $as_status -eq 0 && as_status=1
37294
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37295
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37520
as_status=$?; test $as_status -eq 0 && as_status=1
37522
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37523
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
37297
$as_echo "$as_me: error: $2" >&2
37525
$as_echo "$as_me: error: $1" >&2
37298
37526
as_fn_exit $as_status
37299
37527
} # as_fn_error
37609
37836
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37610
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37611
37837
ac_cs_version="\\
37612
37838
curl config.status -
37613
configured by $0, generated by GNU Autoconf 2.68,
37614
with options \\"\$ac_cs_config\\"
37839
configured by $0, generated by GNU Autoconf 2.64,
37840
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37616
Copyright (C) 2010 Free Software Foundation, Inc.
37842
Copyright (C) 2009 Free Software Foundation, Inc.
37617
37843
This config.status script is free software; the Free Software Foundation
37618
37844
gives unlimited permission to copy, distribute and modify it."
38122
38338
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38123
38339
echo "_ACEOF"
38124
38340
} >conf$$subs.sh ||
38125
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38126
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38341
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
38342
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
38127
38343
ac_delim='%!_!# '
38128
38344
for ac_last_try in false false false false false :; do
38129
38345
. ./conf$$subs.sh ||
38130
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38346
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
38132
38348
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38133
38349
if test $ac_delim_n = $ac_delim_num; then
38135
38351
elif $ac_last_try; then
38136
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38352
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
38138
38354
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38221
38437
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38224
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38225
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38440
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
38441
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
38228
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38229
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38444
# VPATH may cause trouble with some makes, so we remove $(srcdir),
38445
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38230
38446
# trailing colons and then remove the whole line if VPATH becomes empty
38231
38447
# (actually we leave an empty line to preserve line numbers).
38232
38448
if test "x$srcdir" = x.; then
38233
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38449
ac_vpsub='/^[ ]*VPATH[ ]*=/{
38450
s/:*\$(srcdir):*/:/
38451
s/:*\${srcdir}:*/:/
38453
s/^\([^=]*=[ ]*\):*/\1/
38247
38455
s/^[^=]*=[ ]*$//
38554
38762
s&@INSTALL@&$ac_INSTALL&;t t
38555
38763
$ac_datarootdir_hack
38557
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38558
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38765
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
38766
|| as_fn_error "could not create $ac_file" "$LINENO" 5
38560
38768
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38561
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38562
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38563
"$ac_tmp/out"`; test -z "$ac_out"; } &&
38769
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38770
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38564
38771
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38565
which seems to be undefined. Please make sure it is defined" >&5
38772
which seems to be undefined. Please make sure it is defined." >&5
38566
38773
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38567
which seems to be undefined. Please make sure it is defined" >&2;}
38774
which seems to be undefined. Please make sure it is defined." >&2;}
38569
rm -f "$ac_tmp/stdin"
38570
38777
case $ac_file in
38571
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38572
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38778
-) cat "$tmp/out" && rm -f "$tmp/out";;
38779
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
38574
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38781
|| as_fn_error "could not create $ac_file" "$LINENO" 5
38580
38787
if test x"$ac_file" != x-; then
38582
38789
$as_echo "/* $configure_input */" \
38583
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38584
} >"$ac_tmp/config.h" \
38585
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38586
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38790
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
38791
} >"$tmp/config.h" \
38792
|| as_fn_error "could not create $ac_file" "$LINENO" 5
38793
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
38587
38794
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38588
38795
$as_echo "$as_me: $ac_file is unchanged" >&6;}
38590
38797
rm -f "$ac_file"
38591
mv "$ac_tmp/config.h" "$ac_file" \
38592
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38798
mv "$tmp/config.h" "$ac_file" \
38799
|| as_fn_error "could not create $ac_file" "$LINENO" 5
38595
38802
$as_echo "/* $configure_input */" \
38596
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38597
|| as_fn_error $? "could not create -" "$LINENO" 5
38803
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
38804
|| as_fn_error "could not create -" "$LINENO" 5
38599
38806
# Compute "$ac_file"'s index in $config_headers.
38600
38807
_am_stamp_count=1