2052
2055
} # ac_fn_c_compute_int
2057
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058
# -------------------------------------------
2059
# Tests whether TYPE exists after having included INCLUDES, setting cache
2060
# variable VAR accordingly.
2061
ac_fn_c_check_type ()
2063
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065
$as_echo_n "checking for $2... " >&6; }
2066
if eval "test \"\${$3+set}\"" = set; then :
2067
$as_echo_n "(cached) " >&6
2070
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071
/* end confdefs.h. */
2082
if ac_fn_c_try_compile "$LINENO"; then :
2083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084
/* end confdefs.h. */
2095
if ac_fn_c_try_compile "$LINENO"; then :
2100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106
$as_echo "$ac_res" >&6; }
2107
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109
} # ac_fn_c_check_type
2054
2111
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2055
2112
# -------------------------------------------------------
2056
2113
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
4193
if test "x$CC" != xcc; then
4194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4195
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4198
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4200
set dummy $CC; ac_cc=`$as_echo "$2" |
4201
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4202
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4203
$as_echo_n "(cached) " >&6
4205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206
/* end confdefs.h. */
4216
# Make sure it works both with $CC and with simple cc.
4217
# We do the test twice because some compilers refuse to overwrite an
4218
# existing .o file with -o, though they will create one.
4219
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4221
if { { case "(($ac_try" in
4222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223
*) ac_try_echo=$ac_try;;
4225
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226
$as_echo "$ac_try_echo"; } >&5
4227
(eval "$ac_try") 2>&5
4229
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230
test $ac_status = 0; } &&
4231
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233
*) ac_try_echo=$ac_try;;
4235
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236
$as_echo "$ac_try_echo"; } >&5
4237
(eval "$ac_try") 2>&5
4239
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4240
test $ac_status = 0; };
4242
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4243
if test "x$CC" != xcc; then
4244
# Test first that cc exists at all.
4245
if { ac_try='cc -c conftest.$ac_ext >&5'
4246
{ { case "(($ac_try" in
4247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248
*) ac_try_echo=$ac_try;;
4250
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251
$as_echo "$ac_try_echo"; } >&5
4252
(eval "$ac_try") 2>&5
4254
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255
test $ac_status = 0; }; }; then
4256
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4258
if { { case "(($ac_try" in
4259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260
*) ac_try_echo=$ac_try;;
4262
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263
$as_echo "$ac_try_echo"; } >&5
4264
(eval "$ac_try") 2>&5
4266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267
test $ac_status = 0; } &&
4268
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270
*) ac_try_echo=$ac_try;;
4272
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273
$as_echo "$ac_try_echo"; } >&5
4274
(eval "$ac_try") 2>&5
4276
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277
test $ac_status = 0; };
4282
# cc exists but doesn't like -o.
4283
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4288
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4290
rm -f core conftest*
4293
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295
$as_echo "yes" >&6; }
4297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298
$as_echo "no" >&6; }
4300
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4304
# FIXME: we rely on the cache variable name because
4305
# there is no other way.
4307
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4308
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4309
if test "$am_t" != yes; then
4310
# Losing compiler, so override with the script.
4311
# FIXME: It is wrong to rewrite CC.
4312
# But if we don't then we get into trouble of one sort or another.
4313
# A longer-term fix would be to have automake use am__CC in this case,
4314
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315
CC="$am_aux_dir/compile $CC"
4133
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4134
4321
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168
4355
# AC_TYPE_PID_T
4169
4356
# AC_HEADER_TIME
4171
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** C compiler flags" >&5
4172
$as_echo "$as_me: **************************************** C compiler flags" >&6;}
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** compiler/linker flags" >&5
4359
$as_echo "$as_me: **************************************** compiler/linker flags" >&6;}
4173
4362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
4174
4363
$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
4175
4364
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -pthread"
4177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178
/* end confdefs.h. */
4179
int main() {return 0;}
4181
if ac_fn_c_try_link "$LINENO"; then :
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183
$as_echo "yes" >&6; }
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
4188
rm -f core conftest.err conftest.$ac_objext \
4189
conftest$ac_exeext conftest.$ac_ext
4365
valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -pthread"
4367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368
/* end confdefs.h. */
4369
int main() {return 0;}
4371
if ac_fn_c_try_link "$LINENO"; then :
4373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4374
$as_echo "yes" >&6; }
4375
stunnel_CFLAGS="$stunnel_CFLAGS -pthread"
4377
stunnel_LDLAGS="$stunnel_LDLAGS -pthread"
4382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383
$as_echo "no" >&6; }
4386
rm -f core conftest.err conftest.$ac_objext \
4387
conftest$ac_exeext conftest.$ac_ext
4388
CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fstack-protector" >&5
4391
$as_echo_n "checking whether $CC accepts -fstack-protector... " >&6; }
4392
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fstack-protector"
4393
valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -fstack-protector"
4394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395
/* end confdefs.h. */
4396
int main() {return 0;}
4398
if ac_fn_c_try_link "$LINENO"; then :
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401
$as_echo "yes" >&6; }
4402
stunnel_CFLAGS="$stunnel_CFLAGS -fstack-protector"
4404
stunnel_LDLAGS="$stunnel_LDLAGS -fstack-protector"
4409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410
$as_echo "no" >&6; }
4413
rm -f core conftest.err conftest.$ac_objext \
4414
conftest$ac_exeext conftest.$ac_ext
4415
CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
4191
4417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
4192
4418
$as_echo_n "checking whether $CC accepts -Wall... " >&6; }
4222
4448
rm -f core conftest.err conftest.$ac_objext \
4223
4449
conftest$ac_exeext conftest.$ac_ext
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-long-long" >&5
4452
$as_echo_n "checking whether $CC accepts -Wno-long-long... " >&6; }
4453
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wno-long-long"
4454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455
/* end confdefs.h. */
4456
int main() {return 0;}
4458
if ac_fn_c_try_link "$LINENO"; then :
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460
$as_echo "yes" >&6; }
4462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
4465
rm -f core conftest.err conftest.$ac_objext \
4466
conftest$ac_exeext conftest.$ac_ext
4225
4468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pedantic" >&5
4226
4469
$as_echo_n "checking whether $CC accepts -pedantic... " >&6; }
4227
4470
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -pedantic"
4239
4482
rm -f core conftest.err conftest.$ac_objext \
4240
4483
conftest$ac_exeext conftest.$ac_ext
4242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-long-long" >&5
4243
$as_echo_n "checking whether $CC accepts -Wno-long-long... " >&6; }
4244
valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wno-long-long"
4245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246
/* end confdefs.h. */
4247
int main() {return 0;}
4249
if ac_fn_c_try_link "$LINENO"; then :
4250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4251
$as_echo "yes" >&6; }
4253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254
$as_echo "no" >&6; }; CFLAGS="$valid_CFLAGS"
4256
rm -f core conftest.err conftest.$ac_objext \
4257
conftest$ac_exeext conftest.$ac_ext
4259
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** libtool" >&5
4260
4486
$as_echo "$as_me: **************************************** libtool" >&6;}
4868
5094
lt_cv_nm_interface="BSD nm"
4869
5095
echo "int some_variable = 0;" > conftest.$ac_ext
4870
(eval echo "\"\$as_me:4870: $ac_compile\"" >&5)
5096
(eval echo "\"\$as_me:5096: $ac_compile\"" >&5)
4871
5097
(eval "$ac_compile" 2>conftest.err)
4872
5098
cat conftest.err >&5
4873
(eval echo "\"\$as_me:4873: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5099
(eval echo "\"\$as_me:5099: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4874
5100
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4875
5101
cat conftest.err >&5
4876
(eval echo "\"\$as_me:4876: output\"" >&5)
5102
(eval echo "\"\$as_me:5102: output\"" >&5)
4877
5103
cat conftest.out >&5
4878
5104
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4879
5105
lt_cv_nm_interface="MS dumpbin"
7606
7832
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7607
7833
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7608
7834
-e 's:$: $lt_compiler_flag:'`
7609
(eval echo "\"\$as_me:7609: $lt_compile\"" >&5)
7835
(eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7610
7836
(eval "$lt_compile" 2>conftest.err)
7612
7838
cat conftest.err >&5
7613
echo "$as_me:7613: \$? = $ac_status" >&5
7839
echo "$as_me:7839: \$? = $ac_status" >&5
7614
7840
if (exit $ac_status) && test -s "$ac_outfile"; then
7615
7841
# The compiler can only warn and ignore the option if not recognized
7616
7842
# So say no if there are warnings other than the usual output.
7945
8171
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946
8172
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947
8173
-e 's:$: $lt_compiler_flag:'`
7948
(eval echo "\"\$as_me:7948: $lt_compile\"" >&5)
8174
(eval echo "\"\$as_me:8174: $lt_compile\"" >&5)
7949
8175
(eval "$lt_compile" 2>conftest.err)
7951
8177
cat conftest.err >&5
7952
echo "$as_me:7952: \$? = $ac_status" >&5
8178
echo "$as_me:8178: \$? = $ac_status" >&5
7953
8179
if (exit $ac_status) && test -s "$ac_outfile"; then
7954
8180
# The compiler can only warn and ignore the option if not recognized
7955
8181
# So say no if there are warnings other than the usual output.
8050
8276
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051
8277
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052
8278
-e 's:$: $lt_compiler_flag:'`
8053
(eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8279
(eval echo "\"\$as_me:8279: $lt_compile\"" >&5)
8054
8280
(eval "$lt_compile" 2>out/conftest.err)
8056
8282
cat out/conftest.err >&5
8057
echo "$as_me:8057: \$? = $ac_status" >&5
8283
echo "$as_me:8283: \$? = $ac_status" >&5
8058
8284
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060
8286
# The compiler can only warn and ignore the option if not recognized
8105
8331
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106
8332
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107
8333
-e 's:$: $lt_compiler_flag:'`
8108
(eval echo "\"\$as_me:8108: $lt_compile\"" >&5)
8334
(eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8109
8335
(eval "$lt_compile" 2>out/conftest.err)
8111
8337
cat out/conftest.err >&5
8112
echo "$as_me:8112: \$? = $ac_status" >&5
8338
echo "$as_me:8338: \$? = $ac_status" >&5
8113
8339
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115
8341
# The compiler can only warn and ignore the option if not recognized
10964
11190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (defined as int)" >&5
10965
11191
$as_echo "no (defined as int)" >&6; }
10966
$as_echo "#define socklen_t int" >>confdefs.h
11193
$as_echo "#define socklen_t int" >>confdefs.h
10969
11196
rm -f conftest*
11199
ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/un.h>
11201
if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then :
11203
cat >>confdefs.h <<_ACEOF
11204
#define HAVE_STRUCT_SOCKADDR_UN 1
11210
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h>
11212
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
11214
cat >>confdefs.h <<_ACEOF
11215
#define HAVE_STRUCT_ADDRINFO 1
10972
11222
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************** PTY device files" >&5
10973
11223
$as_echo "$as_me: **************************************** PTY device files" >&6;}
10974
11224
if test "$cross_compiling" = "no"; then
11104
11358
# AC_HEADER_DIRENT
11105
11359
# AC_HEADER_STDC
11106
11360
# AC_HEADER_SYS_WAIT
11107
for ac_header in ucontext.h pthread.h
11109
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11111
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11112
cat >>confdefs.h <<_ACEOF
11113
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11120
for ac_header in sys/select.h poll.h sys/poll.h tcpd.h
11122
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11124
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11125
cat >>confdefs.h <<_ACEOF
11126
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11133
for ac_header in sys/ioctl.h sys/filio.h stropts.h
11135
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11137
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11138
cat >>confdefs.h <<_ACEOF
11139
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146
for ac_header in grp.h unistd.h util.h libutil.h sys/resource.h pty.h
11148
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11150
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11151
cat >>confdefs.h <<_ACEOF
11152
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11159
for ac_header in sys/socket.h
11161
ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11162
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
11163
cat >>confdefs.h <<_ACEOF
11164
#define HAVE_SYS_SOCKET_H 1
11361
for ac_header in ucontext.h pthread.h poll.h tcpd.h stropts.h grp.h unistd.h util.h libutil.h pty.h
11363
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11365
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11366
cat >>confdefs.h <<_ACEOF
11367
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11374
for ac_header in sys/select.h sys/poll.h sys/socket.h sys/un.h sys/ioctl.h sys/filio.h sys/resource.h
11376
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11377
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11378
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11379
cat >>confdefs.h <<_ACEOF
11380
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11318
$as_echo_n "checking for socket in -lsocket... " >&6; }
11319
if test "${ac_cv_lib_socket_socket+set}" = set; then :
11534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11535
$as_echo_n "checking for library containing socket... " >&6; }
11536
if test "${ac_cv_search_socket+set}" = set; then :
11320
11537
$as_echo_n "(cached) " >&6
11322
ac_check_lib_save_LIBS=$LIBS
11323
LIBS="-lsocket $LIBS"
11539
ac_func_search_save_LIBS=$LIBS
11324
11540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325
11541
/* end confdefs.h. */
11342
if ac_fn_c_try_link "$LINENO"; then :
11343
ac_cv_lib_socket_socket=yes
11345
ac_cv_lib_socket_socket=no
11558
for ac_lib in '' socket; do
11559
if test -z "$ac_lib"; then
11560
ac_res="none required"
11563
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11565
if ac_fn_c_try_link "$LINENO"; then :
11566
ac_cv_search_socket=$ac_res
11347
11568
rm -f core conftest.err conftest.$ac_objext \
11348
conftest$ac_exeext conftest.$ac_ext
11349
LIBS=$ac_check_lib_save_LIBS
11351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11352
$as_echo "$ac_cv_lib_socket_socket" >&6; }
11353
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11354
cat >>confdefs.h <<_ACEOF
11355
#define HAVE_LIBSOCKET 1
11358
LIBS="-lsocket $LIBS"
11362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
11363
$as_echo_n "checking for openpty in -lutil... " >&6; }
11364
if test "${ac_cv_lib_util_openpty+set}" = set; then :
11570
if test "${ac_cv_search_socket+set}" = set; then :
11574
if test "${ac_cv_search_socket+set}" = set; then :
11577
ac_cv_search_socket=no
11579
rm conftest.$ac_ext
11580
LIBS=$ac_func_search_save_LIBS
11582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11583
$as_echo "$ac_cv_search_socket" >&6; }
11584
ac_res=$ac_cv_search_socket
11585
if test "$ac_res" != no; then :
11586
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
11591
$as_echo_n "checking for library containing openpty... " >&6; }
11592
if test "${ac_cv_search_openpty+set}" = set; then :
11365
11593
$as_echo_n "(cached) " >&6
11367
ac_check_lib_save_LIBS=$LIBS
11368
LIBS="-lutil $LIBS"
11595
ac_func_search_save_LIBS=$LIBS
11369
11596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370
11597
/* end confdefs.h. */
11387
if ac_fn_c_try_link "$LINENO"; then :
11388
ac_cv_lib_util_openpty=yes
11614
for ac_lib in '' util; do
11615
if test -z "$ac_lib"; then
11616
ac_res="none required"
11619
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11621
if ac_fn_c_try_link "$LINENO"; then :
11622
ac_cv_search_openpty=$ac_res
11624
rm -f core conftest.err conftest.$ac_objext \
11626
if test "${ac_cv_search_openpty+set}" = set; then :
11630
if test "${ac_cv_search_openpty+set}" = set; then :
11390
ac_cv_lib_util_openpty=no
11392
rm -f core conftest.err conftest.$ac_objext \
11393
conftest$ac_exeext conftest.$ac_ext
11394
LIBS=$ac_check_lib_save_LIBS
11396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
11397
$as_echo "$ac_cv_lib_util_openpty" >&6; }
11398
if test "x$ac_cv_lib_util_openpty" = x""yes; then :
11399
cat >>confdefs.h <<_ACEOF
11400
#define HAVE_LIBUTIL 1
11403
LIBS="-lutil $LIBS"
11633
ac_cv_search_openpty=no
11635
rm conftest.$ac_ext
11636
LIBS=$ac_func_search_save_LIBS
11638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
11639
$as_echo "$ac_cv_search_openpty" >&6; }
11640
ac_res=$ac_cv_search_openpty
11641
if test "$ac_res" != no; then :
11642
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11407
11646
# Checks for dynamic loader and zlib needed by OpenSSL
11408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11409
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11410
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11648
$as_echo_n "checking for library containing dlopen... " >&6; }
11649
if test "${ac_cv_search_dlopen+set}" = set; then :
11411
11650
$as_echo_n "(cached) " >&6
11413
ac_check_lib_save_LIBS=$LIBS
11652
ac_func_search_save_LIBS=$LIBS
11415
11653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416
11654
/* end confdefs.h. */
11433
if ac_fn_c_try_link "$LINENO"; then :
11434
ac_cv_lib_dl_dlopen=yes
11436
ac_cv_lib_dl_dlopen=no
11671
for ac_lib in '' dl; do
11672
if test -z "$ac_lib"; then
11673
ac_res="none required"
11676
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11678
if ac_fn_c_try_link "$LINENO"; then :
11679
ac_cv_search_dlopen=$ac_res
11438
11681
rm -f core conftest.err conftest.$ac_objext \
11439
conftest$ac_exeext conftest.$ac_ext
11440
LIBS=$ac_check_lib_save_LIBS
11442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11443
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11444
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11445
cat >>confdefs.h <<_ACEOF
11446
#define HAVE_LIBDL 1
11453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11454
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11455
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11683
if test "${ac_cv_search_dlopen+set}" = set; then :
11687
if test "${ac_cv_search_dlopen+set}" = set; then :
11690
ac_cv_search_dlopen=no
11692
rm conftest.$ac_ext
11693
LIBS=$ac_func_search_save_LIBS
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11696
$as_echo "$ac_cv_search_dlopen" >&6; }
11697
ac_res=$ac_cv_search_dlopen
11698
if test "$ac_res" != no; then :
11699
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11704
$as_echo_n "checking for library containing shl_load... " >&6; }
11705
if test "${ac_cv_search_shl_load+set}" = set; then :
11456
11706
$as_echo_n "(cached) " >&6
11458
ac_check_lib_save_LIBS=$LIBS
11708
ac_func_search_save_LIBS=$LIBS
11460
11709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461
11710
/* end confdefs.h. */
11478
if ac_fn_c_try_link "$LINENO"; then :
11479
ac_cv_lib_dld_shl_load=yes
11481
ac_cv_lib_dld_shl_load=no
11727
for ac_lib in '' dld; do
11728
if test -z "$ac_lib"; then
11729
ac_res="none required"
11732
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11734
if ac_fn_c_try_link "$LINENO"; then :
11735
ac_cv_search_shl_load=$ac_res
11483
11737
rm -f core conftest.err conftest.$ac_objext \
11484
conftest$ac_exeext conftest.$ac_ext
11485
LIBS=$ac_check_lib_save_LIBS
11487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11488
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11489
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11490
cat >>confdefs.h <<_ACEOF
11491
#define HAVE_LIBDLD 1
11498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
11499
$as_echo_n "checking for inflateEnd in -lz... " >&6; }
11500
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
11739
if test "${ac_cv_search_shl_load+set}" = set; then :
11743
if test "${ac_cv_search_shl_load+set}" = set; then :
11746
ac_cv_search_shl_load=no
11748
rm conftest.$ac_ext
11749
LIBS=$ac_func_search_save_LIBS
11751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11752
$as_echo "$ac_cv_search_shl_load" >&6; }
11753
ac_res=$ac_cv_search_shl_load
11754
if test "$ac_res" != no; then :
11755
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
11760
$as_echo_n "checking for library containing inflateEnd... " >&6; }
11761
if test "${ac_cv_search_inflateEnd+set}" = set; then :
11501
11762
$as_echo_n "(cached) " >&6
11503
ac_check_lib_save_LIBS=$LIBS
11764
ac_func_search_save_LIBS=$LIBS
11505
11765
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506
11766
/* end confdefs.h. */
11523
if ac_fn_c_try_link "$LINENO"; then :
11524
ac_cv_lib_z_inflateEnd=yes
11783
for ac_lib in '' z; do
11784
if test -z "$ac_lib"; then
11785
ac_res="none required"
11788
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11790
if ac_fn_c_try_link "$LINENO"; then :
11791
ac_cv_search_inflateEnd=$ac_res
11793
rm -f core conftest.err conftest.$ac_objext \
11795
if test "${ac_cv_search_inflateEnd+set}" = set; then :
11799
if test "${ac_cv_search_inflateEnd+set}" = set; then :
11526
ac_cv_lib_z_inflateEnd=no
11528
rm -f core conftest.err conftest.$ac_objext \
11529
conftest$ac_exeext conftest.$ac_ext
11530
LIBS=$ac_check_lib_save_LIBS
11532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
11533
$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
11534
if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
11535
cat >>confdefs.h <<_ACEOF
11536
#define HAVE_LIBZ 1
11802
ac_cv_search_inflateEnd=no
11804
rm conftest.$ac_ext
11805
LIBS=$ac_func_search_save_LIBS
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
11808
$as_echo "$ac_cv_search_inflateEnd" >&6; }
11809
ac_res=$ac_cv_search_inflateEnd
11810
if test "$ac_res" != no; then :
11811
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11592
11864
LIBS="$LIBS -pthread"
11593
11865
HAVE_LIBPTHREAD="yes"
11594
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
11601
# OSF hack instead of simple AC_CHECK_LIB here
11867
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
11874
# 2. try to use from standard libc (required by Android and possibly other platforms)
11875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
11876
$as_echo_n "checking for pthread_create in -lc... " >&6; }
11877
if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
11878
$as_echo_n "(cached) " >&6
11880
ac_check_lib_save_LIBS=$LIBS
11882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883
/* end confdefs.h. */
11885
/* Override any GCC internal prototype to avoid an error.
11886
Use char because int might match the return type of a GCC
11887
builtin and then its argument prototype would still apply. */
11891
char pthread_create ();
11895
return pthread_create ();
11900
if ac_fn_c_try_link "$LINENO"; then :
11901
ac_cv_lib_c_pthread_create=yes
11903
ac_cv_lib_c_pthread_create=no
11905
rm -f core conftest.err conftest.$ac_objext \
11906
conftest$ac_exeext conftest.$ac_ext
11907
LIBS=$ac_check_lib_save_LIBS
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
11910
$as_echo "$ac_cv_lib_c_pthread_create" >&6; }
11911
if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
11913
HAVE_LIBPTHREAD="yes"
11915
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
11922
# 3. try libpthread: OSF hack instead of simple AC_CHECK_LIB here
11602
11923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11603
11924
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11605
LIBS="$saved_LIBS -lpthread"
11926
LIBS="$valid_LIBS -lpthread"
11606
11927
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607
11928
/* end confdefs.h. */
11608
11929
#include <pthread.h>
11644
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: UCONTEXT mode selected" >&5
11645
11967
$as_echo "$as_me: UCONTEXT mode selected" >&6;}
11646
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
11969
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
11650
11973
checkpthreadlib
11651
11974
{ $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD mode selected" >&5
11652
11975
$as_echo "$as_me: PTHREAD mode selected" >&6;}
11653
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11977
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11657
11981
{ $as_echo "$as_me:${as_lineno-$LINENO}: FORK mode selected" >&5
11658
11982
$as_echo "$as_me: FORK mode selected" >&6;}
11659
$as_echo "#define USE_FORK 1" >>confdefs.h
11984
$as_echo "#define USE_FORK 1" >>confdefs.h
11670
11995
if test "$HAVE_LIBPTHREAD" = "yes" -a "$ac_cv_header_pthread_h" = "yes"; then
11671
11996
{ $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD thread model detected" >&5
11672
11997
$as_echo "$as_me: PTHREAD thread model detected" >&6;}
11673
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11999
$as_echo "#define USE_PTHREAD 1" >>confdefs.h
11675
12001
elif test "$ac_cv_func_getcontext" = "yes" -a "$ac_cv_header_ucontext_h" = "yes"; then
11676
12002
{ $as_echo "$as_me:${as_lineno-$LINENO}: UCONTEXT thread model detected" >&5
11677
12003
$as_echo "$as_me: UCONTEXT thread model detected" >&6;}
11678
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
12005
$as_echo "#define USE_UCONTEXT 1" >>confdefs.h
11681
12008
{ $as_echo "$as_me:${as_lineno-$LINENO}: FORK thread model detected" >&5
11682
12009
$as_echo "$as_me: FORK thread model detected" >&6;}
11683
$as_echo "#define USE_FORK 1" >>confdefs.h
12011
$as_echo "#define USE_FORK 1" >>confdefs.h
11783
# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
11784
# something else so we must include <netdb.h> to get the
11786
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
11787
12112
$as_echo_n "checking for getaddrinfo... " >&6; }
11788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115
# http://stackoverflow.com/questions/7818246/segmentation-fault-in-getaddrinfo
12116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (buggy Android implementation)" >&5
12117
$as_echo "no (buggy Android implementation)" >&6; }
12120
# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
12121
# something else so we must include <netdb.h> to get the
12123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789
12124
/* end confdefs.h. */
11790
12125
#include <stdio.h>
11791
12126
#include <sys/types.h>
12006
12345
Use --with-ssl option to fix this problem
12007
12346
" "$LINENO" 5
12009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
12010
$as_echo "$ssldir" >&6; }
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLDIR" >&5
12349
$as_echo "$SSLDIR" >&6; }
12012
12352
cat >>confdefs.h <<_ACEOF
12013
#define ssldir "$ssldir"
12017
CFLAGS="$CFLAGS -I$ssldir/include"
12018
LIBS="$LIBS -L$ssldir/lib64 -L$ssldir/lib -lssl -lcrypto"
12020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete RSAref library" >&5
12021
$as_echo_n "checking for obsolete RSAref library... " >&6; }
12023
LIBS="$saved_LIBS -lRSAglue -L$libdir -lrsaref"
12024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025
/* end confdefs.h. */
12035
if ac_fn_c_try_link "$LINENO"; then :
12036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037
$as_echo "yes" >&6; }
12039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040
$as_echo "no" >&6; }; LIBS="$saved_LIBS"
12043
rm -f core conftest.err conftest.$ac_objext \
12044
conftest$ac_exeext conftest.$ac_ext
12046
as_ac_Header=`$as_echo "ac_cv_header_$ssldir/include/openssl/engine.h" | $as_tr_sh`
12047
ac_fn_c_check_header_mongrel "$LINENO" "$ssldir/include/openssl/engine.h" "$as_ac_Header" "$ac_includes_default"
12353
#define SSLDIR "$SSLDIR"
12357
valid_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -I$SSLDIR/include"
12358
valid_LIBS="$LIBS"; LIBS="$LIBS -L$SSLDIR/lib64 -L$SSLDIR/lib -lssl -lcrypto"
12360
as_ac_Header=`$as_echo "ac_cv_header_$SSLDIR/include/openssl/engine.h" | $as_tr_sh`
12361
ac_fn_c_check_header_mongrel "$LINENO" "$SSLDIR/include/openssl/engine.h" "$as_ac_Header" "$ac_includes_default"
12048
12362
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12049
$as_echo "#define HAVE_OSSL_ENGINE_H 1" >>confdefs.h
12364
$as_echo "#define HAVE_OSSL_ENGINE_H 1" >>confdefs.h
12052
12367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL engine header not found" >&5
12172
12504
# Let make expand exec_prefix.
12173
12505
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12175
# Transform confdefs.h into DEFS.
12176
# Protect against shell expansion while executing Makefile rules.
12177
# Protect against Makefile macro expansion.
12179
# If the first sed substitution is executed (which looks for macros that
12180
# take arguments), then branch to the quote section. Otherwise,
12181
# look for a macro that doesn't take arguments.
12191
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12193
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12197
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12210
DEFS=`sed -n "$ac_script" confdefs.h`
12507
DEFS=-DHAVE_CONFIG_H
12214
12510
ac_ltlibobjs=
12766
13071
as_fn_append CONFIG_FILES " '$ac_optarg'"
12767
13072
ac_need_defaults=false;;
12768
--he | --h | --help | --hel | -h )
13073
--header | --heade | --head | --hea )
13076
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13078
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13079
ac_need_defaults=false;;
13081
# Conflict between --help and --header
13082
as_fn_error $? "ambiguous option: \`$1'
13083
Try \`$0 --help' for more information.";;
13084
--help | --hel | -h )
12769
13085
$as_echo "$ac_cs_usage"; exit ;;
12770
13086
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12771
13087
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13289
13607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13290
13608
fi # test -n "$CONFIG_FILES"
13293
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13610
# Set up the scripts for CONFIG_HEADERS section.
13611
# No need to generate them if there are no CONFIG_HEADERS.
13612
# This happens for instance with `./config.status Makefile'.
13613
if test -n "$CONFIG_HEADERS"; then
13614
cat >"$tmp/defines.awk" <<\_ACAWK ||
13618
# Transform confdefs.h into an awk script `defines.awk', embedded as
13619
# here-document in config.status, that substitutes the proper values into
13620
# config.h.in to produce config.h.
13622
# Create a delimiter string that does not exist in confdefs.h, to ease
13623
# handling of long lines.
13625
for ac_last_try in false false :; do
13626
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13627
if test -z "$ac_t"; then
13629
elif $ac_last_try; then
13630
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13632
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13636
# For the awk script, D is an array of macro values keyed by name,
13637
# likewise P contains macro parameters if any. Preserve backslash
13638
# newline sequences.
13640
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13642
s/.\{148\}/&'"$ac_delim"'/g
13645
s/^[ ]*#[ ]*define[ ][ ]*/ /
13652
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13654
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13658
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13659
D["\1"]=" \3\\\\\\n"\\/p
13661
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13666
s/.\{148\}/&'"$ac_delim"'/g
13671
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13674
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13676
' <confdefs.h | sed '
13677
s/'"$ac_delim"'/"\\\
13678
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13680
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13681
for (key in D) D_is_set[key] = 1
13684
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13686
split(line, arg, " ")
13687
if (arg[1] == "#") {
13691
defundef = substr(arg[1], 2)
13694
split(mac1, mac2, "(") #)
13696
prefix = substr(line, 1, index(line, defundef) - 1)
13697
if (D_is_set[macro]) {
13698
# Preserve the white space surrounding the "#".
13699
print prefix "define", macro P[macro] D[macro]
13702
# Replace #undef with comments. This is necessary, for example,
13703
# in the case of _POSIX_SOURCE, which is predefined and required
13704
# on some systems where configure will not decide to define it.
13705
if (defundef == "undef") {
13706
print "/*", prefix defundef, macro, "*/"
13714
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13716
fi # test -n "$CONFIG_HEADERS"
13719
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13509
13935
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13941
if test x"$ac_file" != x-; then
13943
$as_echo "/* $configure_input */" \
13944
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13945
} >"$tmp/config.h" \
13946
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13947
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13948
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13949
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13952
mv "$tmp/config.h" "$ac_file" \
13953
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13956
$as_echo "/* $configure_input */" \
13957
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13958
|| as_fn_error $? "could not create -" "$LINENO" 5
13960
# Compute "$ac_file"'s index in $config_headers.
13963
for _am_header in $config_headers :; do
13964
case $_am_header in
13965
$_am_arg | $_am_arg:* )
13968
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
13971
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13972
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13973
X"$_am_arg" : 'X\(//\)[^/]' \| \
13974
X"$_am_arg" : 'X\(//\)$' \| \
13975
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13976
$as_echo X"$_am_arg" |
13977
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13981
/^X\(\/\/\)[^/].*/{
13993
s/.*/./; q'`/stamp-h$_am_stamp_count
13513
13996
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13514
13997
$as_echo "$as_me: executing $ac_file commands" >&6;}