91
112
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156
138
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
158
178
as_have_required=yes
160
180
as_have_required=no
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
190
test -z "$as_dir" && as_dir=.
230
194
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: openvpn-users@lists.sourceforge.net about your system,
235
$0: including any error possibly output before this
236
$0: message. Then install a modern shell, or manually run
237
$0: the script under such a shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1429
1491
test -n "$ac_init_help" && exit $ac_status
1430
1492
if $ac_init_version; then
1432
OpenVPN configure 2.1.3
1433
generated by GNU Autoconf 2.61
1494
OpenVPN configure 2.2.0
1495
generated by GNU Autoconf 2.66
1435
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1436
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1497
Copyright (C) 2010 Free Software Foundation, Inc.
1437
1498
This configure script is free software; the Free Software Foundation
1438
1499
gives unlimited permission to copy, distribute and modify it.
1504
## ------------------------ ##
1505
## Autoconf initialization. ##
1506
## ------------------------ ##
1508
# ac_fn_c_try_compile LINENO
1509
# --------------------------
1510
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511
ac_fn_c_try_compile ()
1513
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514
rm -f conftest.$ac_objext
1515
if { { ac_try="$ac_compile"
1517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518
*) ac_try_echo=$ac_try;;
1520
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521
$as_echo "$ac_try_echo"; } >&5
1522
(eval "$ac_compile") 2>conftest.err
1524
if test -s conftest.err; then
1525
grep -v '^ *+' conftest.err >conftest.er1
1526
cat conftest.er1 >&5
1527
mv -f conftest.er1 conftest.err
1529
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530
test $ac_status = 0; } && {
1531
test -z "$ac_c_werror_flag" ||
1532
test ! -s conftest.err
1533
} && test -s conftest.$ac_objext; then :
1536
$as_echo "$as_me: failed program was:" >&5
1537
sed 's/^/| /' conftest.$ac_ext >&5
1541
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542
as_fn_set_status $ac_retval
1544
} # ac_fn_c_try_compile
1546
# ac_fn_c_try_cpp LINENO
1547
# ----------------------
1548
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552
if { { ac_try="$ac_cpp conftest.$ac_ext"
1554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555
*) ac_try_echo=$ac_try;;
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558
$as_echo "$ac_try_echo"; } >&5
1559
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561
if test -s conftest.err; then
1562
grep -v '^ *+' conftest.err >conftest.er1
1563
cat conftest.er1 >&5
1564
mv -f conftest.er1 conftest.err
1566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567
test $ac_status = 0; } >/dev/null && {
1568
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569
test ! -s conftest.err
1573
$as_echo "$as_me: failed program was:" >&5
1574
sed 's/^/| /' conftest.$ac_ext >&5
1578
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579
as_fn_set_status $ac_retval
1583
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584
# -------------------------------------------------------
1585
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586
# the include files in INCLUDES and setting the cache variable VAR
1588
ac_fn_c_check_header_mongrel ()
1590
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591
if eval "test \"\${$3+set}\"" = set; then :
1592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593
$as_echo_n "checking for $2... " >&6; }
1594
if eval "test \"\${$3+set}\"" = set; then :
1595
$as_echo_n "(cached) " >&6
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599
$as_echo "$ac_res" >&6; }
1601
# Is the header compilable?
1602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603
$as_echo_n "checking $2 usability... " >&6; }
1604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605
/* end confdefs.h. */
1609
if ac_fn_c_try_compile "$LINENO"; then :
1610
ac_header_compiler=yes
1612
ac_header_compiler=no
1614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616
$as_echo "$ac_header_compiler" >&6; }
1618
# Is the header present?
1619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620
$as_echo_n "checking $2 presence... " >&6; }
1621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622
/* end confdefs.h. */
1625
if ac_fn_c_try_cpp "$LINENO"; then :
1626
ac_header_preproc=yes
1628
ac_header_preproc=no
1630
rm -f conftest.err conftest.$ac_ext
1631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632
$as_echo "$ac_header_preproc" >&6; }
1634
# So? What about this header?
1635
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653
( $as_echo "## -------------------------------------------------- ##
1654
## Report this to openvpn-users@lists.sourceforge.net ##
1655
## -------------------------------------------------- ##"
1656
) | sed "s/^/$as_me: WARNING: /" >&2
1659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660
$as_echo_n "checking for $2... " >&6; }
1661
if eval "test \"\${$3+set}\"" = set; then :
1662
$as_echo_n "(cached) " >&6
1664
eval "$3=\$ac_header_compiler"
1667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668
$as_echo "$ac_res" >&6; }
1670
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672
} # ac_fn_c_check_header_mongrel
1674
# ac_fn_c_try_run LINENO
1675
# ----------------------
1676
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677
# that executables *can* be run.
1680
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681
if { { ac_try="$ac_link"
1683
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684
*) ac_try_echo=$ac_try;;
1686
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687
$as_echo "$ac_try_echo"; } >&5
1688
(eval "$ac_link") 2>&5
1690
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692
{ { case "(($ac_try" in
1693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694
*) ac_try_echo=$ac_try;;
1696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697
$as_echo "$ac_try_echo"; } >&5
1698
(eval "$ac_try") 2>&5
1700
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701
test $ac_status = 0; }; }; then :
1704
$as_echo "$as_me: program exited with status $ac_status" >&5
1705
$as_echo "$as_me: failed program was:" >&5
1706
sed 's/^/| /' conftest.$ac_ext >&5
1708
ac_retval=$ac_status
1710
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712
as_fn_set_status $ac_retval
1716
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717
# -------------------------------------------------------
1718
# Tests whether HEADER exists and can be compiled using the include files in
1719
# INCLUDES, setting the cache variable VAR accordingly.
1720
ac_fn_c_check_header_compile ()
1722
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724
$as_echo_n "checking for $2... " >&6; }
1725
if eval "test \"\${$3+set}\"" = set; then :
1726
$as_echo_n "(cached) " >&6
1728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729
/* end confdefs.h. */
1733
if ac_fn_c_try_compile "$LINENO"; then :
1738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742
$as_echo "$ac_res" >&6; }
1743
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745
} # ac_fn_c_check_header_compile
1747
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1748
# -------------------------------------------
1749
# Tests whether TYPE exists after having included INCLUDES, setting cache
1750
# variable VAR accordingly.
1751
ac_fn_c_check_type ()
1753
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755
$as_echo_n "checking for $2... " >&6; }
1756
if eval "test \"\${$3+set}\"" = set; then :
1757
$as_echo_n "(cached) " >&6
1760
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761
/* end confdefs.h. */
1772
if ac_fn_c_try_compile "$LINENO"; then :
1773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774
/* end confdefs.h. */
1785
if ac_fn_c_try_compile "$LINENO"; then :
1790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796
$as_echo "$ac_res" >&6; }
1797
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
} # ac_fn_c_check_type
1801
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1802
# --------------------------------------------
1803
# Tries to find the compile-time value of EXPR in a program that includes
1804
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1806
ac_fn_c_compute_int ()
1808
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809
if test "$cross_compiling" = yes; then
1810
# Depending upon the size, compute the lo and hi bounds.
1811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812
/* end confdefs.h. */
1817
static int test_array [1 - 2 * !(($2) >= 0)];
1824
if ac_fn_c_try_compile "$LINENO"; then :
1827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828
/* end confdefs.h. */
1833
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1840
if ac_fn_c_try_compile "$LINENO"; then :
1841
ac_hi=$ac_mid; break
1843
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1844
if test $ac_lo -le $ac_mid; then
1848
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854
/* end confdefs.h. */
1859
static int test_array [1 - 2 * !(($2) < 0)];
1866
if ac_fn_c_try_compile "$LINENO"; then :
1869
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870
/* end confdefs.h. */
1875
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1882
if ac_fn_c_try_compile "$LINENO"; then :
1883
ac_lo=$ac_mid; break
1885
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1886
if test $ac_mid -le $ac_hi; then
1890
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900
# Binary search between lo and hi bounds.
1901
while test "x$ac_lo" != "x$ac_hi"; do
1902
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904
/* end confdefs.h. */
1909
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1916
if ac_fn_c_try_compile "$LINENO"; then :
1919
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929
/* end confdefs.h. */
1931
static long int longval () { return $2; }
1932
static unsigned long int ulongval () { return $2; }
1939
FILE *f = fopen ("conftest.val", "w");
1944
long int i = longval ();
1947
fprintf (f, "%ld", i);
1951
unsigned long int i = ulongval ();
1954
fprintf (f, "%lu", i);
1956
/* Do not output a trailing newline, as this causes \r\n confusion
1957
on some platforms. */
1958
return ferror (f) || fclose (f) != 0;
1964
if ac_fn_c_try_run "$LINENO"; then :
1965
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1969
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1970
conftest.$ac_objext conftest.beam conftest.$ac_ext
1974
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
as_fn_set_status $ac_retval
1977
} # ac_fn_c_compute_int
1979
# ac_fn_c_try_link LINENO
1980
# -----------------------
1981
# Try to link conftest.$ac_ext, and return whether this succeeded.
1984
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985
rm -f conftest.$ac_objext conftest$ac_exeext
1986
if { { ac_try="$ac_link"
1988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989
*) ac_try_echo=$ac_try;;
1991
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992
$as_echo "$ac_try_echo"; } >&5
1993
(eval "$ac_link") 2>conftest.err
1995
if test -s conftest.err; then
1996
grep -v '^ *+' conftest.err >conftest.er1
1997
cat conftest.er1 >&5
1998
mv -f conftest.er1 conftest.err
2000
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001
test $ac_status = 0; } && {
2002
test -z "$ac_c_werror_flag" ||
2003
test ! -s conftest.err
2004
} && test -s conftest$ac_exeext && {
2005
test "$cross_compiling" = yes ||
2006
$as_test_x conftest$ac_exeext
2010
$as_echo "$as_me: failed program was:" >&5
2011
sed 's/^/| /' conftest.$ac_ext >&5
2015
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017
# interfere with the next link command; also delete a directory that is
2018
# left behind by Apple's compiler. We do this before executing the actions.
2019
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
as_fn_set_status $ac_retval
2023
} # ac_fn_c_try_link
2025
# ac_fn_c_check_func LINENO FUNC VAR
2026
# ----------------------------------
2027
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2028
ac_fn_c_check_func ()
2030
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032
$as_echo_n "checking for $2... " >&6; }
2033
if eval "test \"\${$3+set}\"" = set; then :
2034
$as_echo_n "(cached) " >&6
2036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037
/* end confdefs.h. */
2038
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2039
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2040
#define $2 innocuous_$2
2042
/* System header to define __stub macros and hopefully few prototypes,
2043
which can conflict with char $2 (); below.
2044
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2045
<limits.h> exists even on freestanding compilers. */
2048
# include <limits.h>
2050
# include <assert.h>
2055
/* Override any GCC internal prototype to avoid an error.
2056
Use char because int might match the return type of a GCC
2057
builtin and then its argument prototype would still apply. */
2062
/* The GNU C library defines this for functions which it implements
2063
to always fail with ENOSYS. Some functions are actually named
2064
something starting with __ and the normal name is an alias. */
2065
#if defined __stub_$2 || defined __stub___$2
2077
if ac_fn_c_try_link "$LINENO"; then :
2082
rm -f core conftest.err conftest.$ac_objext \
2083
conftest$ac_exeext conftest.$ac_ext
2086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087
$as_echo "$ac_res" >&6; }
2088
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
} # ac_fn_c_check_func
1442
2091
cat >config.log <<_ACEOF
1443
2092
This file contains any messages produced by compilers while
1444
2093
running configure, to aid debugging if configure makes a mistake.
1446
It was created by OpenVPN $as_me 2.1.3, which was
1447
generated by GNU Autoconf 2.61. Invocation command line was
2095
It was created by OpenVPN $as_me 2.2.0, which was
2096
generated by GNU Autoconf 2.66. Invocation command line was
2079
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080
Check your system clock" >&5
2081
echo "$as_me: error: newly created file is older than distributed files!
2082
Check your system clock" >&2;}
2083
{ (exit 1); exit 1; }; }
2689
as_fn_error $? "newly created file is older than distributed files!
2690
Check your system clock" "$LINENO" 5
2085
{ echo "$as_me:$LINENO: result: yes" >&5
2086
echo "${ECHO_T}yes" >&6; }
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2693
$as_echo "yes" >&6; }
2087
2694
test "$program_prefix" != NONE &&
2088
2695
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089
2696
# Use a double $ so make ignores it.
2090
2697
test "$program_suffix" != NONE &&
2091
2698
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092
# Double any \ or $. echo might interpret backslashes.
2699
# Double any \ or $.
2093
2700
# By default was `s,x,x', remove it if useless.
2094
cat <<\_ACEOF >conftest.sed
2095
s/[\\$]/&&/g;s/;s,x,x,$//
2097
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2701
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2702
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2100
2704
# expand $ac_aux_dir to an absolute path
2101
2705
am_aux_dir=`cd $ac_aux_dir && pwd`
2103
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2707
if test x"${MISSING+set}" != xset; then
2710
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2712
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2104
2715
# Use eval to expand $SHELL
2105
2716
if eval "$MISSING --run true"; then
2106
2717
am_missing_run="$MISSING --run "
2108
2719
am_missing_run=
2109
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2114
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2721
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2724
if test x"${install_sh}" != xset; then
2727
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2729
install_sh="\${SHELL} $am_aux_dir/install-sh"
2733
# Installed binaries are usually stripped using `strip' when the user
2734
# run `make install-strip'. However `strip' might not be the right
2735
# tool to use in cross-compilation environments, therefore Automake
2736
# will honor the `STRIP' environment variable to overrule this program.
2737
if test "$cross_compiling" != no; then
2738
if test -n "$ac_tool_prefix"; then
2739
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2740
set dummy ${ac_tool_prefix}strip; ac_word=$2
2741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742
$as_echo_n "checking for $ac_word... " >&6; }
2743
if test "${ac_cv_prog_STRIP+set}" = set; then :
2744
$as_echo_n "(cached) " >&6
2746
if test -n "$STRIP"; then
2747
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753
test -z "$as_dir" && as_dir=.
2754
for ac_exec_ext in '' $ac_executable_extensions; do
2755
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2757
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766
STRIP=$ac_cv_prog_STRIP
2767
if test -n "$STRIP"; then
2768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2769
$as_echo "$STRIP" >&6; }
2771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772
$as_echo "no" >&6; }
2777
if test -z "$ac_cv_prog_STRIP"; then
2779
# Extract the first word of "strip", so it can be a program name with args.
2780
set dummy strip; ac_word=$2
2781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782
$as_echo_n "checking for $ac_word... " >&6; }
2783
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2784
$as_echo_n "(cached) " >&6
2786
if test -n "$ac_ct_STRIP"; then
2787
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793
test -z "$as_dir" && as_dir=.
2794
for ac_exec_ext in '' $ac_executable_extensions; do
2795
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796
ac_cv_prog_ac_ct_STRIP="strip"
2797
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2807
if test -n "$ac_ct_STRIP"; then
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2809
$as_echo "$ac_ct_STRIP" >&6; }
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812
$as_echo "no" >&6; }
2815
if test "x$ac_ct_STRIP" = x; then
2818
case $cross_compiling:$ac_tool_warned in
2820
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822
ac_tool_warned=yes ;;
2827
STRIP="$ac_cv_prog_STRIP"
2831
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2834
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2115
2835
if test -z "$MKDIR_P"; then
2116
if test "${ac_cv_path_mkdir+set}" = set; then
2117
echo $ECHO_N "(cached) $ECHO_C" >&6
2836
if test "${ac_cv_path_mkdir+set}" = set; then :
2837
$as_echo_n "(cached) " >&6
2119
2839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120
2840
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2122
2842
IFS=$as_save_IFS
2123
2843
test -z "$as_dir" && as_dir=.
2124
for ac_prog in mkdir gmkdir; do
2844
for ac_prog in mkdir gmkdir; do
2125
2845
for ac_exec_ext in '' $ac_executable_extensions; do
2126
2846
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2127
2847
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5548
rm -f conftest.$ac_objext
5549
if { (ac_try="$ac_compile"
5551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552
*) ac_try_echo=$ac_try;;
5554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555
(eval "$ac_compile") 2>conftest.er1
5557
grep -v '^ *+' conftest.er1 >conftest.err
5559
cat conftest.err >&5
5560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561
(exit $ac_status); } && {
5562
test -z "$ac_c_werror_flag" ||
5563
test ! -s conftest.err
5564
} && test -s conftest.$ac_objext; then
5608
if ac_fn_c_try_compile "$LINENO"; then :
5565
5609
ac_cv_header_time=yes
5567
echo "$as_me: failed program was:" >&5
5568
sed 's/^/| /' conftest.$ac_ext >&5
5570
ac_cv_header_time=no
5611
ac_cv_header_time=no
5573
5613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5576
echo "${ECHO_T}$ac_cv_header_time" >&6; }
5615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5616
$as_echo "$ac_cv_header_time" >&6; }
5577
5617
if test $ac_cv_header_time = yes; then
5579
cat >>confdefs.h <<\_ACEOF
5580
#define TIME_WITH_SYS_TIME 1
5619
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5585
{ echo "$as_me:$LINENO: checking for ISO C 1999 vararg macro support" >&5
5586
echo $ECHO_N "checking for ISO C 1999 vararg macro support... $ECHO_C" >&6; }
5587
if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then
5588
echo $ECHO_N "(cached) $ECHO_C" >&6
5623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
5624
$as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
5625
if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then :
5626
$as_echo_n "(cached) " >&6
5590
cat >conftest.$ac_ext <<_ACEOF
5628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629
/* end confdefs.h. */
5592
5631
#define macro(a, ...) func(a, __VA_ARGS__)
5593
5632
int func(int a, int b, int c);
5594
5633
int test() { return macro(1, 2, 3); }
5597
rm -f conftest.$ac_objext
5598
if { (ac_try="$ac_compile"
5600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601
*) ac_try_echo=$ac_try;;
5603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604
(eval "$ac_compile") 2>conftest.er1
5606
grep -v '^ *+' conftest.er1 >conftest.err
5608
cat conftest.err >&5
5609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610
(exit $ac_status); } && {
5611
test -z "$ac_c_werror_flag" ||
5612
test ! -s conftest.err
5613
} && test -s conftest.$ac_objext; then
5636
if ac_fn_c_try_compile "$LINENO"; then :
5614
5637
ax_cv_cpp_vararg_macro_iso=yes
5616
echo "$as_me: failed program was:" >&5
5617
sed 's/^/| /' conftest.$ac_ext >&5
5619
ax_cv_cpp_vararg_macro_iso=no
5639
ax_cv_cpp_vararg_macro_iso=no
5622
5641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624
{ echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_iso" >&5
5625
echo "${ECHO_T}$ax_cv_cpp_vararg_macro_iso" >&6; }
5643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
5644
$as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
5626
5645
if test $ax_cv_cpp_vararg_macro_iso = yes ; then
5628
cat >>confdefs.h <<\_ACEOF
5629
#define HAVE_CPP_VARARG_MACRO_ISO 1
5647
$as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
5634
{ echo "$as_me:$LINENO: checking for GNU GCC vararg macro support" >&5
5635
echo $ECHO_N "checking for GNU GCC vararg macro support... $ECHO_C" >&6; }
5636
if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then
5637
echo $ECHO_N "(cached) $ECHO_C" >&6
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
5652
$as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
5653
if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then :
5654
$as_echo_n "(cached) " >&6
5639
cat >conftest.$ac_ext <<_ACEOF
5656
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657
/* end confdefs.h. */
5641
5659
#define macro(a, b...) func(a, b)
5642
5660
int func(int a, int b, int c);
5643
5661
int test() { return macro(1, 2, 3); }
5646
rm -f conftest.$ac_objext
5647
if { (ac_try="$ac_compile"
5649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650
*) ac_try_echo=$ac_try;;
5652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653
(eval "$ac_compile") 2>conftest.er1
5655
grep -v '^ *+' conftest.er1 >conftest.err
5657
cat conftest.err >&5
5658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
(exit $ac_status); } && {
5660
test -z "$ac_c_werror_flag" ||
5661
test ! -s conftest.err
5662
} && test -s conftest.$ac_objext; then
5664
if ac_fn_c_try_compile "$LINENO"; then :
5663
5665
ax_cv_cpp_vararg_macro_gcc=yes
5665
echo "$as_me: failed program was:" >&5
5666
sed 's/^/| /' conftest.$ac_ext >&5
5668
ax_cv_cpp_vararg_macro_gcc=no
5667
ax_cv_cpp_vararg_macro_gcc=no
5671
5669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
{ echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_gcc" >&5
5674
echo "${ECHO_T}$ax_cv_cpp_vararg_macro_gcc" >&6; }
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
5672
$as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
5675
5673
if test $ax_cv_cpp_vararg_macro_gcc = yes ; then
5677
cat >>confdefs.h <<\_ACEOF
5678
#define HAVE_CPP_VARARG_MACRO_GCC 1
5675
$as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
5684
{ echo "$as_me:$LINENO: result: checking for C compiler empty array support" >&5
5685
echo "${ECHO_T}checking for C compiler empty array support" >&6; }
5686
cat >conftest.$ac_ext <<_ACEOF
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for C compiler empty array support" >&5
5681
$as_echo "checking for C compiler empty array support" >&6; }
5682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683
/* end confdefs.h. */
5688
5685
struct { int foo; int bar[0]; } mystruct;
5691
rm -f conftest.$ac_objext
5692
if { (ac_try="$ac_compile"
5694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695
*) ac_try_echo=$ac_try;;
5697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698
(eval "$ac_compile") 2>conftest.er1
5700
grep -v '^ *+' conftest.er1 >conftest.err
5702
cat conftest.err >&5
5703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
(exit $ac_status); } && {
5705
test -z "$ac_c_werror_flag" ||
5706
test ! -s conftest.err
5707
} && test -s conftest.$ac_objext; then
5688
if ac_fn_c_try_compile "$LINENO"; then :
5710
5691
cat >>confdefs.h <<_ACEOF
5716
echo "$as_me: failed program was:" >&5
5717
sed 's/^/| /' conftest.$ac_ext >&5
5720
cat >conftest.$ac_ext <<_ACEOF
5698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699
/* end confdefs.h. */
5722
5701
struct { int foo; int bar[]; } mystruct;
5725
rm -f conftest.$ac_objext
5726
if { (ac_try="$ac_compile"
5728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729
*) ac_try_echo=$ac_try;;
5731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732
(eval "$ac_compile") 2>conftest.er1
5734
grep -v '^ *+' conftest.er1 >conftest.err
5736
cat conftest.err >&5
5737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738
(exit $ac_status); } && {
5739
test -z "$ac_c_werror_flag" ||
5740
test ! -s conftest.err
5741
} && test -s conftest.$ac_objext; then
5704
if ac_fn_c_try_compile "$LINENO"; then :
5744
5707
cat >>confdefs.h <<_ACEOF
5745
#define EMPTY_ARRAY_SIZE
5708
#define EMPTY_ARRAY_SIZE /**/
5750
echo "$as_me: failed program was:" >&5
5751
sed 's/^/| /' conftest.$ac_ext >&5
5754
{ { echo "$as_me:$LINENO: error: C compiler is unable to creaty empty arrays" >&5
5755
echo "$as_me: error: C compiler is unable to creaty empty arrays" >&2;}
5756
{ (exit 1); exit 1; }; }
5760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714
as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
5717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776
5724
for ac_header in fcntl.h stdlib.h stdarg.h stdio.h string.h strings.h ctype.h errno.h
5778
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5781
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783
echo $ECHO_N "(cached) $ECHO_C" >&6
5785
ac_res=`eval echo '${'$as_ac_Header'}'`
5786
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5787
echo "${ECHO_T}$ac_res" >&6; }
5789
# Is the header compilable?
5790
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5792
cat >conftest.$ac_ext <<_ACEOF
5795
cat confdefs.h >>conftest.$ac_ext
5796
cat >>conftest.$ac_ext <<_ACEOF
5797
/* end confdefs.h. */
5798
$ac_includes_default
5799
#include <$ac_header>
5801
rm -f conftest.$ac_objext
5802
if { (ac_try="$ac_compile"
5804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805
*) ac_try_echo=$ac_try;;
5807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808
(eval "$ac_compile") 2>conftest.er1
5810
grep -v '^ *+' conftest.er1 >conftest.err
5812
cat conftest.err >&5
5813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
(exit $ac_status); } && {
5815
test -z "$ac_c_werror_flag" ||
5816
test ! -s conftest.err
5817
} && test -s conftest.$ac_objext; then
5818
ac_header_compiler=yes
5820
echo "$as_me: failed program was:" >&5
5821
sed 's/^/| /' conftest.$ac_ext >&5
5823
ac_header_compiler=no
5826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828
echo "${ECHO_T}$ac_header_compiler" >&6; }
5830
# Is the header present?
5831
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5833
cat >conftest.$ac_ext <<_ACEOF
5836
cat confdefs.h >>conftest.$ac_ext
5837
cat >>conftest.$ac_ext <<_ACEOF
5838
/* end confdefs.h. */
5839
#include <$ac_header>
5841
if { (ac_try="$ac_cpp conftest.$ac_ext"
5843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844
*) ac_try_echo=$ac_try;;
5846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849
grep -v '^ *+' conftest.er1 >conftest.err
5851
cat conftest.err >&5
5852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
(exit $ac_status); } >/dev/null && {
5854
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5855
test ! -s conftest.err
5857
ac_header_preproc=yes
5859
echo "$as_me: failed program was:" >&5
5860
sed 's/^/| /' conftest.$ac_ext >&5
5862
ac_header_preproc=no
5865
rm -f conftest.err conftest.$ac_ext
5866
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867
echo "${ECHO_T}$ac_header_preproc" >&6; }
5869
# So? What about this header?
5870
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5872
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5873
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5875
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5876
ac_header_preproc=yes
5879
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5880
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5881
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5882
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5883
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5884
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5885
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5886
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5887
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5890
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5892
## -------------------------------------------------- ##
5893
## Report this to openvpn-users@lists.sourceforge.net ##
5894
## -------------------------------------------------- ##
5896
) | sed "s/^/$as_me: WARNING: /" >&2
5899
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5900
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5901
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5902
echo $ECHO_N "(cached) $ECHO_C" >&6
5904
eval "$as_ac_Header=\$ac_header_preproc"
5906
ac_res=`eval echo '${'$as_ac_Header'}'`
5907
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5908
echo "${ECHO_T}$ac_res" >&6; }
5911
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5726
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5728
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5912
5729
cat >>confdefs.h <<_ACEOF
5913
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5730
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952
rm -f conftest.$ac_objext
5953
if { (ac_try="$ac_compile"
5955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956
*) ac_try_echo=$ac_try;;
5958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959
(eval "$ac_compile") 2>conftest.er1
5961
grep -v '^ *+' conftest.er1 >conftest.err
5963
cat conftest.err >&5
5964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965
(exit $ac_status); } && {
5966
test -z "$ac_c_werror_flag" ||
5967
test ! -s conftest.err
5968
} && test -s conftest.$ac_objext; then
5765
if ac_fn_c_try_compile "$LINENO"; then :
5969
5766
ac_cv_header_sys_wait_h=yes
5971
echo "$as_me: failed program was:" >&5
5972
sed 's/^/| /' conftest.$ac_ext >&5
5974
ac_cv_header_sys_wait_h=no
5768
ac_cv_header_sys_wait_h=no
5977
5770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5980
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5773
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5981
5774
if test $ac_cv_header_sys_wait_h = yes; then
5983
cat >>confdefs.h <<\_ACEOF
5984
#define HAVE_SYS_WAIT_H 1
6026
for ac_header in sys/time.h sys/socket.h sys/un.h sys/ioctl.h sys/stat.h sys/mman.h fcntl.h sys/file.h stdlib.h stdint.h stdarg.h unistd.h signal.h stdio.h string.h strings.h ctype.h errno.h syslog.h pwd.h grp.h net/if_tun.h net/tun/if_tun.h stropts.h sys/sockio.h netinet/in.h netinet/in_systm.h netinet/tcp.h arpa/inet.h netdb.h sys/uio.h linux/if_tun.h linux/sockios.h linux/types.h sys/poll.h sys/epoll.h err.h
6028
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033
echo $ECHO_N "(cached) $ECHO_C" >&6
6035
ac_res=`eval echo '${'$as_ac_Header'}'`
6036
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6037
echo "${ECHO_T}$ac_res" >&6; }
6039
# Is the header compilable?
6040
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6042
cat >conftest.$ac_ext <<_ACEOF
6045
cat confdefs.h >>conftest.$ac_ext
6046
cat >>conftest.$ac_ext <<_ACEOF
6047
/* end confdefs.h. */
6048
$ac_includes_default
6049
#include <$ac_header>
6051
rm -f conftest.$ac_objext
6052
if { (ac_try="$ac_compile"
6054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055
*) ac_try_echo=$ac_try;;
6057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058
(eval "$ac_compile") 2>conftest.er1
6060
grep -v '^ *+' conftest.er1 >conftest.err
6062
cat conftest.err >&5
6063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064
(exit $ac_status); } && {
6065
test -z "$ac_c_werror_flag" ||
6066
test ! -s conftest.err
6067
} && test -s conftest.$ac_objext; then
6068
ac_header_compiler=yes
6070
echo "$as_me: failed program was:" >&5
6071
sed 's/^/| /' conftest.$ac_ext >&5
6073
ac_header_compiler=no
6076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078
echo "${ECHO_T}$ac_header_compiler" >&6; }
6080
# Is the header present?
6081
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6083
cat >conftest.$ac_ext <<_ACEOF
6086
cat confdefs.h >>conftest.$ac_ext
6087
cat >>conftest.$ac_ext <<_ACEOF
6088
/* end confdefs.h. */
6089
#include <$ac_header>
6091
if { (ac_try="$ac_cpp conftest.$ac_ext"
6093
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094
*) ac_try_echo=$ac_try;;
6096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6099
grep -v '^ *+' conftest.er1 >conftest.err
6101
cat conftest.err >&5
6102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103
(exit $ac_status); } >/dev/null && {
6104
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6105
test ! -s conftest.err
6107
ac_header_preproc=yes
6109
echo "$as_me: failed program was:" >&5
6110
sed 's/^/| /' conftest.$ac_ext >&5
6112
ac_header_preproc=no
6115
rm -f conftest.err conftest.$ac_ext
6116
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117
echo "${ECHO_T}$ac_header_preproc" >&6; }
6119
# So? What about this header?
6120
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126
ac_header_preproc=yes
6129
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6132
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6133
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6136
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6137
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142
## -------------------------------------------------- ##
6143
## Report this to openvpn-users@lists.sourceforge.net ##
6144
## -------------------------------------------------- ##
6146
) | sed "s/^/$as_me: WARNING: /" >&2
6149
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152
echo $ECHO_N "(cached) $ECHO_C" >&6
6154
eval "$as_ac_Header=\$ac_header_preproc"
6156
ac_res=`eval echo '${'$as_ac_Header'}'`
6157
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6158
echo "${ECHO_T}$ac_res" >&6; }
6161
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5780
for ac_header in sys/time.h sys/socket.h sys/un.h sys/ioctl.h sys/stat.h sys/mman.h fcntl.h sys/file.h stdlib.h stdint.h stdarg.h unistd.h signal.h stdio.h string.h strings.h ctype.h errno.h syslog.h pwd.h grp.h net/if_tun.h net/tun/if_tun.h stropts.h sys/sockio.h netinet/in.h netinet/in_systm.h netinet/tcp.h arpa/inet.h netdb.h sys/uio.h linux/if_tun.h linux/sockios.h linux/types.h sys/poll.h sys/epoll.h err.h
5782
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5783
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5784
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162
5785
cat >>confdefs.h <<_ACEOF
6163
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6171
for ac_header in net/if.h
6173
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6175
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6176
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177
echo $ECHO_N "(cached) $ECHO_C" >&6
6179
cat >conftest.$ac_ext <<_ACEOF
6182
cat confdefs.h >>conftest.$ac_ext
6183
cat >>conftest.$ac_ext <<_ACEOF
6184
/* end confdefs.h. */
6185
#ifdef HAVE_SYS_SOCKET_H
5793
for ac_header in net/if.h
5795
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_TYPES_H
5796
# include <sys/types.h>
5798
#ifdef HAVE_SYS_SOCKET_H
6186
5799
# include <sys/socket.h>
6190
#include <$ac_header>
6192
rm -f conftest.$ac_objext
6193
if { (ac_try="$ac_compile"
6195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196
*) ac_try_echo=$ac_try;;
6198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199
(eval "$ac_compile") 2>conftest.er1
6201
grep -v '^ *+' conftest.er1 >conftest.err
6203
cat conftest.err >&5
6204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
(exit $ac_status); } && {
6206
test -z "$ac_c_werror_flag" ||
6207
test ! -s conftest.err
6208
} && test -s conftest.$ac_objext; then
6209
eval "$as_ac_Header=yes"
6211
echo "$as_me: failed program was:" >&5
6212
sed 's/^/| /' conftest.$ac_ext >&5
6214
eval "$as_ac_Header=no"
6217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219
ac_res=`eval echo '${'$as_ac_Header'}'`
6220
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6221
echo "${ECHO_T}$ac_res" >&6; }
6222
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803
if test "x$ac_cv_header_net_if_h" = x""yes; then :
6223
5804
cat >>confdefs.h <<_ACEOF
6224
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805
#define HAVE_NET_IF_H 1
6232
for ac_header in netinet/ip.h
6234
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6236
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6237
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6238
echo $ECHO_N "(cached) $ECHO_C" >&6
6240
cat >conftest.$ac_ext <<_ACEOF
6243
cat confdefs.h >>conftest.$ac_ext
6244
cat >>conftest.$ac_ext <<_ACEOF
6245
/* end confdefs.h. */
6246
#ifdef HAVE_SYS_TYPES_H
5812
for ac_header in netinet/ip.h
5814
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#ifdef HAVE_SYS_TYPES_H
6247
5815
# include <sys/types.h>
6249
5817
#ifdef HAVE_NETINET_IN_H
6550
5952
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6551
5953
if test -w "$cache_file"; then
6552
5954
test "x$cache_file" != "x/dev/null" &&
6553
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
6554
echo "$as_me: updating cache $cache_file" >&6;}
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5956
$as_echo "$as_me: updating cache $cache_file" >&6;}
6555
5957
cat confcache >$cache_file
6557
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6558
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5960
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6561
5963
rm -f confcache
6563
{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
6564
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
6565
if test "${ac_cv_type_in_addr_t+set}" = set; then
6566
echo $ECHO_N "(cached) $ECHO_C" >&6
6568
cat >conftest.$ac_ext <<_ACEOF
6571
cat confdefs.h >>conftest.$ac_ext
6572
cat >>conftest.$ac_ext <<_ACEOF
6573
/* end confdefs.h. */
6574
#include "syshead.h"
6576
typedef in_addr_t ac__type_new_;
6580
if ((ac__type_new_ *) 0)
6582
if (sizeof (ac__type_new_))
6588
rm -f conftest.$ac_objext
6589
if { (ac_try="$ac_compile"
6591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592
*) ac_try_echo=$ac_try;;
6594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595
(eval "$ac_compile") 2>conftest.er1
6597
grep -v '^ *+' conftest.er1 >conftest.err
6599
cat conftest.err >&5
6600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
(exit $ac_status); } && {
6602
test -z "$ac_c_werror_flag" ||
6603
test ! -s conftest.err
6604
} && test -s conftest.$ac_objext; then
6605
ac_cv_type_in_addr_t=yes
6607
echo "$as_me: failed program was:" >&5
6608
sed 's/^/| /' conftest.$ac_ext >&5
6610
ac_cv_type_in_addr_t=no
6613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615
{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
6616
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
6617
if test $ac_cv_type_in_addr_t = yes; then
6621
cat >>confdefs.h <<\_ACEOF
6622
#define in_addr_t uint32_t
6628
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
6629
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6630
if test "${ac_cv_type_uint8_t+set}" = set; then
6631
echo $ECHO_N "(cached) $ECHO_C" >&6
6633
cat >conftest.$ac_ext <<_ACEOF
6636
cat confdefs.h >>conftest.$ac_ext
6637
cat >>conftest.$ac_ext <<_ACEOF
6638
/* end confdefs.h. */
6639
#include "syshead.h"
6641
typedef uint8_t ac__type_new_;
6645
if ((ac__type_new_ *) 0)
6647
if (sizeof (ac__type_new_))
6653
rm -f conftest.$ac_objext
6654
if { (ac_try="$ac_compile"
6656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657
*) ac_try_echo=$ac_try;;
6659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660
(eval "$ac_compile") 2>conftest.er1
6662
grep -v '^ *+' conftest.er1 >conftest.err
6664
cat conftest.err >&5
6665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666
(exit $ac_status); } && {
6667
test -z "$ac_c_werror_flag" ||
6668
test ! -s conftest.err
6669
} && test -s conftest.$ac_objext; then
6670
ac_cv_type_uint8_t=yes
6672
echo "$as_me: failed program was:" >&5
6673
sed 's/^/| /' conftest.$ac_ext >&5
6675
ac_cv_type_uint8_t=no
6678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6681
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6682
if test $ac_cv_type_uint8_t = yes; then
6686
cat >>confdefs.h <<\_ACEOF
6687
#define uint8_t unsigned char
6692
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
6693
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6694
if test "${ac_cv_type_uint16_t+set}" = set; then
6695
echo $ECHO_N "(cached) $ECHO_C" >&6
6697
cat >conftest.$ac_ext <<_ACEOF
6700
cat confdefs.h >>conftest.$ac_ext
6701
cat >>conftest.$ac_ext <<_ACEOF
6702
/* end confdefs.h. */
6703
#include "syshead.h"
6705
typedef uint16_t ac__type_new_;
6709
if ((ac__type_new_ *) 0)
6711
if (sizeof (ac__type_new_))
6717
rm -f conftest.$ac_objext
6718
if { (ac_try="$ac_compile"
6720
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721
*) ac_try_echo=$ac_try;;
6723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724
(eval "$ac_compile") 2>conftest.er1
6726
grep -v '^ *+' conftest.er1 >conftest.err
6728
cat conftest.err >&5
6729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730
(exit $ac_status); } && {
6731
test -z "$ac_c_werror_flag" ||
6732
test ! -s conftest.err
6733
} && test -s conftest.$ac_objext; then
6734
ac_cv_type_uint16_t=yes
6736
echo "$as_me: failed program was:" >&5
6737
sed 's/^/| /' conftest.$ac_ext >&5
6739
ac_cv_type_uint16_t=no
6742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6745
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6746
if test $ac_cv_type_uint16_t = yes; then
6750
cat >>confdefs.h <<\_ACEOF
6751
#define uint16_t unsigned char
6756
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
6757
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6758
if test "${ac_cv_type_uint32_t+set}" = set; then
6759
echo $ECHO_N "(cached) $ECHO_C" >&6
6761
cat >conftest.$ac_ext <<_ACEOF
6764
cat confdefs.h >>conftest.$ac_ext
6765
cat >>conftest.$ac_ext <<_ACEOF
6766
/* end confdefs.h. */
6767
#include "syshead.h"
6769
typedef uint32_t ac__type_new_;
6773
if ((ac__type_new_ *) 0)
6775
if (sizeof (ac__type_new_))
6781
rm -f conftest.$ac_objext
6782
if { (ac_try="$ac_compile"
6784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785
*) ac_try_echo=$ac_try;;
6787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788
(eval "$ac_compile") 2>conftest.er1
6790
grep -v '^ *+' conftest.er1 >conftest.err
6792
cat conftest.err >&5
6793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794
(exit $ac_status); } && {
6795
test -z "$ac_c_werror_flag" ||
6796
test ! -s conftest.err
6797
} && test -s conftest.$ac_objext; then
6798
ac_cv_type_uint32_t=yes
6800
echo "$as_me: failed program was:" >&5
6801
sed 's/^/| /' conftest.$ac_ext >&5
6803
ac_cv_type_uint32_t=no
6806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6809
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6810
if test $ac_cv_type_uint32_t = yes; then
6814
cat >>confdefs.h <<\_ACEOF
6815
#define uint32_t unsigned long
6821
{ echo "$as_me:$LINENO: checking for struct tun_pi" >&5
6822
echo $ECHO_N "checking for struct tun_pi... $ECHO_C" >&6; }
6823
if test "${ac_cv_type_struct_tun_pi+set}" = set; then
6824
echo $ECHO_N "(cached) $ECHO_C" >&6
6826
cat >conftest.$ac_ext <<_ACEOF
6829
cat confdefs.h >>conftest.$ac_ext
6830
cat >>conftest.$ac_ext <<_ACEOF
6831
/* end confdefs.h. */
6832
#include "syshead.h"
6834
typedef struct tun_pi ac__type_new_;
6838
if ((ac__type_new_ *) 0)
6840
if (sizeof (ac__type_new_))
6846
rm -f conftest.$ac_objext
6847
if { (ac_try="$ac_compile"
6849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850
*) ac_try_echo=$ac_try;;
6852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853
(eval "$ac_compile") 2>conftest.er1
6855
grep -v '^ *+' conftest.er1 >conftest.err
6857
cat conftest.err >&5
6858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859
(exit $ac_status); } && {
6860
test -z "$ac_c_werror_flag" ||
6861
test ! -s conftest.err
6862
} && test -s conftest.$ac_objext; then
6863
ac_cv_type_struct_tun_pi=yes
6865
echo "$as_me: failed program was:" >&5
6866
sed 's/^/| /' conftest.$ac_ext >&5
6868
ac_cv_type_struct_tun_pi=no
6871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tun_pi" >&5
6874
echo "${ECHO_T}$ac_cv_type_struct_tun_pi" >&6; }
6875
if test $ac_cv_type_struct_tun_pi = yes; then
6877
cat >>confdefs.h <<\_ACEOF
6878
#define HAVE_TUN_PI 1
6883
{ echo "$as_me:$LINENO: checking for struct iphdr" >&5
6884
echo $ECHO_N "checking for struct iphdr... $ECHO_C" >&6; }
6885
if test "${ac_cv_type_struct_iphdr+set}" = set; then
6886
echo $ECHO_N "(cached) $ECHO_C" >&6
6888
cat >conftest.$ac_ext <<_ACEOF
6891
cat confdefs.h >>conftest.$ac_ext
6892
cat >>conftest.$ac_ext <<_ACEOF
6893
/* end confdefs.h. */
6894
#include "syshead.h"
6896
typedef struct iphdr ac__type_new_;
6900
if ((ac__type_new_ *) 0)
6902
if (sizeof (ac__type_new_))
6908
rm -f conftest.$ac_objext
6909
if { (ac_try="$ac_compile"
6911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912
*) ac_try_echo=$ac_try;;
6914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915
(eval "$ac_compile") 2>conftest.er1
6917
grep -v '^ *+' conftest.er1 >conftest.err
6919
cat conftest.err >&5
6920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921
(exit $ac_status); } && {
6922
test -z "$ac_c_werror_flag" ||
6923
test ! -s conftest.err
6924
} && test -s conftest.$ac_objext; then
6925
ac_cv_type_struct_iphdr=yes
6927
echo "$as_me: failed program was:" >&5
6928
sed 's/^/| /' conftest.$ac_ext >&5
6930
ac_cv_type_struct_iphdr=no
6933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iphdr" >&5
6936
echo "${ECHO_T}$ac_cv_type_struct_iphdr" >&6; }
6937
if test $ac_cv_type_struct_iphdr = yes; then
6939
cat >>confdefs.h <<\_ACEOF
6940
#define HAVE_IPHDR 1
6945
{ echo "$as_me:$LINENO: checking for struct iovec" >&5
6946
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
6947
if test "${ac_cv_type_struct_iovec+set}" = set; then
6948
echo $ECHO_N "(cached) $ECHO_C" >&6
6950
cat >conftest.$ac_ext <<_ACEOF
6953
cat confdefs.h >>conftest.$ac_ext
6954
cat >>conftest.$ac_ext <<_ACEOF
6955
/* end confdefs.h. */
6956
#include "syshead.h"
6958
typedef struct iovec ac__type_new_;
6962
if ((ac__type_new_ *) 0)
6964
if (sizeof (ac__type_new_))
6970
rm -f conftest.$ac_objext
6971
if { (ac_try="$ac_compile"
6973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974
*) ac_try_echo=$ac_try;;
6976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977
(eval "$ac_compile") 2>conftest.er1
6979
grep -v '^ *+' conftest.er1 >conftest.err
6981
cat conftest.err >&5
6982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
(exit $ac_status); } && {
6984
test -z "$ac_c_werror_flag" ||
6985
test ! -s conftest.err
6986
} && test -s conftest.$ac_objext; then
6987
ac_cv_type_struct_iovec=yes
6989
echo "$as_me: failed program was:" >&5
6990
sed 's/^/| /' conftest.$ac_ext >&5
6992
ac_cv_type_struct_iovec=no
6995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
6998
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
6999
if test $ac_cv_type_struct_iovec = yes; then
7001
cat >>confdefs.h <<\_ACEOF
7002
#define HAVE_IOVEC 1
7008
{ echo "$as_me:$LINENO: checking for struct sock_extended_err" >&5
7009
echo $ECHO_N "checking for struct sock_extended_err... $ECHO_C" >&6; }
7010
if test "${ac_cv_type_struct_sock_extended_err+set}" = set; then
7011
echo $ECHO_N "(cached) $ECHO_C" >&6
7013
cat >conftest.$ac_ext <<_ACEOF
7016
cat confdefs.h >>conftest.$ac_ext
7017
cat >>conftest.$ac_ext <<_ACEOF
7018
/* end confdefs.h. */
7019
#include "syshead.h"
7021
typedef struct sock_extended_err ac__type_new_;
7025
if ((ac__type_new_ *) 0)
7027
if (sizeof (ac__type_new_))
7033
rm -f conftest.$ac_objext
7034
if { (ac_try="$ac_compile"
7036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037
*) ac_try_echo=$ac_try;;
7039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040
(eval "$ac_compile") 2>conftest.er1
7042
grep -v '^ *+' conftest.er1 >conftest.err
7044
cat conftest.err >&5
7045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046
(exit $ac_status); } && {
7047
test -z "$ac_c_werror_flag" ||
7048
test ! -s conftest.err
7049
} && test -s conftest.$ac_objext; then
7050
ac_cv_type_struct_sock_extended_err=yes
7052
echo "$as_me: failed program was:" >&5
7053
sed 's/^/| /' conftest.$ac_ext >&5
7055
ac_cv_type_struct_sock_extended_err=no
7058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sock_extended_err" >&5
7061
echo "${ECHO_T}$ac_cv_type_struct_sock_extended_err" >&6; }
7062
if test $ac_cv_type_struct_sock_extended_err = yes; then
7064
cat >>confdefs.h <<\_ACEOF
7065
#define HAVE_SOCK_EXTENDED_ERR 1
7070
{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
7071
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
7072
if test "${ac_cv_type_struct_msghdr+set}" = set; then
7073
echo $ECHO_N "(cached) $ECHO_C" >&6
7075
cat >conftest.$ac_ext <<_ACEOF
7078
cat confdefs.h >>conftest.$ac_ext
7079
cat >>conftest.$ac_ext <<_ACEOF
7080
/* end confdefs.h. */
7081
#include "syshead.h"
7083
typedef struct msghdr ac__type_new_;
7087
if ((ac__type_new_ *) 0)
7089
if (sizeof (ac__type_new_))
7095
rm -f conftest.$ac_objext
7096
if { (ac_try="$ac_compile"
7098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099
*) ac_try_echo=$ac_try;;
7101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102
(eval "$ac_compile") 2>conftest.er1
7104
grep -v '^ *+' conftest.er1 >conftest.err
7106
cat conftest.err >&5
7107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108
(exit $ac_status); } && {
7109
test -z "$ac_c_werror_flag" ||
7110
test ! -s conftest.err
7111
} && test -s conftest.$ac_objext; then
7112
ac_cv_type_struct_msghdr=yes
7114
echo "$as_me: failed program was:" >&5
7115
sed 's/^/| /' conftest.$ac_ext >&5
7117
ac_cv_type_struct_msghdr=no
7120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
7123
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
7124
if test $ac_cv_type_struct_msghdr = yes; then
7126
cat >>confdefs.h <<\_ACEOF
7127
#define HAVE_MSGHDR 1
7132
{ echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
7133
echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6; }
7134
if test "${ac_cv_type_struct_cmsghdr+set}" = set; then
7135
echo $ECHO_N "(cached) $ECHO_C" >&6
7137
cat >conftest.$ac_ext <<_ACEOF
7140
cat confdefs.h >>conftest.$ac_ext
7141
cat >>conftest.$ac_ext <<_ACEOF
7142
/* end confdefs.h. */
7143
#include "syshead.h"
7145
typedef struct cmsghdr ac__type_new_;
7149
if ((ac__type_new_ *) 0)
7151
if (sizeof (ac__type_new_))
7157
rm -f conftest.$ac_objext
7158
if { (ac_try="$ac_compile"
7160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161
*) ac_try_echo=$ac_try;;
7163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164
(eval "$ac_compile") 2>conftest.er1
7166
grep -v '^ *+' conftest.er1 >conftest.err
7168
cat conftest.err >&5
7169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170
(exit $ac_status); } && {
7171
test -z "$ac_c_werror_flag" ||
7172
test ! -s conftest.err
7173
} && test -s conftest.$ac_objext; then
7174
ac_cv_type_struct_cmsghdr=yes
7176
echo "$as_me: failed program was:" >&5
7177
sed 's/^/| /' conftest.$ac_ext >&5
7179
ac_cv_type_struct_cmsghdr=no
7182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsghdr" >&5
7185
echo "${ECHO_T}$ac_cv_type_struct_cmsghdr" >&6; }
7186
if test $ac_cv_type_struct_cmsghdr = yes; then
7188
cat >>confdefs.h <<\_ACEOF
7189
#define HAVE_CMSGHDR 1
7194
{ echo "$as_me:$LINENO: checking for struct in_pktinfo" >&5
7195
echo $ECHO_N "checking for struct in_pktinfo... $ECHO_C" >&6; }
7196
if test "${ac_cv_type_struct_in_pktinfo+set}" = set; then
7197
echo $ECHO_N "(cached) $ECHO_C" >&6
7199
cat >conftest.$ac_ext <<_ACEOF
7202
cat confdefs.h >>conftest.$ac_ext
7203
cat >>conftest.$ac_ext <<_ACEOF
7204
/* end confdefs.h. */
7205
#include "syshead.h"
7207
typedef struct in_pktinfo ac__type_new_;
7211
if ((ac__type_new_ *) 0)
7213
if (sizeof (ac__type_new_))
7219
rm -f conftest.$ac_objext
7220
if { (ac_try="$ac_compile"
7222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223
*) ac_try_echo=$ac_try;;
7225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226
(eval "$ac_compile") 2>conftest.er1
7228
grep -v '^ *+' conftest.er1 >conftest.err
7230
cat conftest.err >&5
7231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232
(exit $ac_status); } && {
7233
test -z "$ac_c_werror_flag" ||
7234
test ! -s conftest.err
7235
} && test -s conftest.$ac_objext; then
7236
ac_cv_type_struct_in_pktinfo=yes
7238
echo "$as_me: failed program was:" >&5
7239
sed 's/^/| /' conftest.$ac_ext >&5
7241
ac_cv_type_struct_in_pktinfo=no
7244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_in_pktinfo" >&5
7247
echo "${ECHO_T}$ac_cv_type_struct_in_pktinfo" >&6; }
7248
if test $ac_cv_type_struct_in_pktinfo = yes; then
7250
cat >>confdefs.h <<\_ACEOF
7251
#define HAVE_IN_PKTINFO 1
7257
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
7258
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
7259
if test "${ac_cv_type_unsigned_int+set}" = set; then
7260
echo $ECHO_N "(cached) $ECHO_C" >&6
7262
cat >conftest.$ac_ext <<_ACEOF
7265
cat confdefs.h >>conftest.$ac_ext
7266
cat >>conftest.$ac_ext <<_ACEOF
7267
/* end confdefs.h. */
7268
$ac_includes_default
7269
typedef unsigned int ac__type_new_;
7273
if ((ac__type_new_ *) 0)
7275
if (sizeof (ac__type_new_))
7281
rm -f conftest.$ac_objext
7282
if { (ac_try="$ac_compile"
7284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285
*) ac_try_echo=$ac_try;;
7287
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288
(eval "$ac_compile") 2>conftest.er1
7290
grep -v '^ *+' conftest.er1 >conftest.err
7292
cat conftest.err >&5
7293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
(exit $ac_status); } && {
7295
test -z "$ac_c_werror_flag" ||
7296
test ! -s conftest.err
7297
} && test -s conftest.$ac_objext; then
7298
ac_cv_type_unsigned_int=yes
7300
echo "$as_me: failed program was:" >&5
7301
sed 's/^/| /' conftest.$ac_ext >&5
7303
ac_cv_type_unsigned_int=no
7306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
7309
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
5965
ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include \"syshead.h\"
5967
if test "x$ac_cv_type_in_addr_t" = x""yes; then :
5971
$as_echo "#define in_addr_t uint32_t" >>confdefs.h
5976
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include \"syshead.h\"
5978
if test "x$ac_cv_type_uint8_t" = x""yes; then :
5982
$as_echo "#define uint8_t unsigned char" >>confdefs.h
5986
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include \"syshead.h\"
5988
if test "x$ac_cv_type_uint16_t" = x""yes; then :
5992
$as_echo "#define uint16_t unsigned char" >>confdefs.h
5996
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include \"syshead.h\"
5998
if test "x$ac_cv_type_uint32_t" = x""yes; then :
6002
$as_echo "#define uint32_t unsigned long" >>confdefs.h
6007
ac_fn_c_check_type "$LINENO" "struct tun_pi" "ac_cv_type_struct_tun_pi" "#include \"syshead.h\"
6009
if test "x$ac_cv_type_struct_tun_pi" = x""yes; then :
6011
$as_echo "#define HAVE_TUN_PI 1" >>confdefs.h
6015
ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "#include \"syshead.h\"
6017
if test "x$ac_cv_type_struct_iphdr" = x""yes; then :
6019
$as_echo "#define HAVE_IPHDR 1" >>confdefs.h
6023
ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "#include \"syshead.h\"
6025
if test "x$ac_cv_type_struct_iovec" = x""yes; then :
6027
$as_echo "#define HAVE_IOVEC 1" >>confdefs.h
6032
ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "#include \"syshead.h\"
6034
if test "x$ac_cv_type_struct_sock_extended_err" = x""yes; then :
6036
$as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
6040
ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "#include \"syshead.h\"
6042
if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
6044
$as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
6048
ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "#include \"syshead.h\"
6050
if test "x$ac_cv_type_struct_cmsghdr" = x""yes; then :
6052
$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
6056
ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#include \"syshead.h\"
6058
if test "x$ac_cv_type_struct_in_pktinfo" = x""yes; then :
6060
$as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
7311
6065
# The cast to long int works around a bug in the HP C Compiler
7312
6066
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7313
6067
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7314
6068
# This bug is HP SR number 8606223364.
7315
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
7316
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
7317
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
7318
echo $ECHO_N "(cached) $ECHO_C" >&6
7320
if test "$cross_compiling" = yes; then
7321
# Depending upon the size, compute the lo and hi bounds.
7322
cat >conftest.$ac_ext <<_ACEOF
7325
cat confdefs.h >>conftest.$ac_ext
7326
cat >>conftest.$ac_ext <<_ACEOF
7327
/* end confdefs.h. */
7328
$ac_includes_default
7329
typedef unsigned int ac__type_sizeof_;
7333
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7340
rm -f conftest.$ac_objext
7341
if { (ac_try="$ac_compile"
7343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344
*) ac_try_echo=$ac_try;;
7346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347
(eval "$ac_compile") 2>conftest.er1
7349
grep -v '^ *+' conftest.er1 >conftest.err
7351
cat conftest.err >&5
7352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
(exit $ac_status); } && {
7354
test -z "$ac_c_werror_flag" ||
7355
test ! -s conftest.err
7356
} && test -s conftest.$ac_objext; then
7359
cat >conftest.$ac_ext <<_ACEOF
7362
cat confdefs.h >>conftest.$ac_ext
7363
cat >>conftest.$ac_ext <<_ACEOF
7364
/* end confdefs.h. */
7365
$ac_includes_default
7366
typedef unsigned int ac__type_sizeof_;
7370
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7377
rm -f conftest.$ac_objext
7378
if { (ac_try="$ac_compile"
7380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381
*) ac_try_echo=$ac_try;;
7383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384
(eval "$ac_compile") 2>conftest.er1
7386
grep -v '^ *+' conftest.er1 >conftest.err
7388
cat conftest.err >&5
7389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390
(exit $ac_status); } && {
7391
test -z "$ac_c_werror_flag" ||
7392
test ! -s conftest.err
7393
} && test -s conftest.$ac_objext; then
7394
ac_hi=$ac_mid; break
7396
echo "$as_me: failed program was:" >&5
7397
sed 's/^/| /' conftest.$ac_ext >&5
7399
ac_lo=`expr $ac_mid + 1`
7400
if test $ac_lo -le $ac_mid; then
7404
ac_mid=`expr 2 '*' $ac_mid + 1`
7407
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410
echo "$as_me: failed program was:" >&5
7411
sed 's/^/| /' conftest.$ac_ext >&5
7413
cat >conftest.$ac_ext <<_ACEOF
7416
cat confdefs.h >>conftest.$ac_ext
7417
cat >>conftest.$ac_ext <<_ACEOF
7418
/* end confdefs.h. */
7419
$ac_includes_default
7420
typedef unsigned int ac__type_sizeof_;
7424
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7431
rm -f conftest.$ac_objext
7432
if { (ac_try="$ac_compile"
7434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435
*) ac_try_echo=$ac_try;;
7437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438
(eval "$ac_compile") 2>conftest.er1
7440
grep -v '^ *+' conftest.er1 >conftest.err
7442
cat conftest.err >&5
7443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444
(exit $ac_status); } && {
7445
test -z "$ac_c_werror_flag" ||
7446
test ! -s conftest.err
7447
} && test -s conftest.$ac_objext; then
7450
cat >conftest.$ac_ext <<_ACEOF
7453
cat confdefs.h >>conftest.$ac_ext
7454
cat >>conftest.$ac_ext <<_ACEOF
7455
/* end confdefs.h. */
7456
$ac_includes_default
7457
typedef unsigned int ac__type_sizeof_;
7461
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7468
rm -f conftest.$ac_objext
7469
if { (ac_try="$ac_compile"
7471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472
*) ac_try_echo=$ac_try;;
7474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475
(eval "$ac_compile") 2>conftest.er1
7477
grep -v '^ *+' conftest.er1 >conftest.err
7479
cat conftest.err >&5
7480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481
(exit $ac_status); } && {
7482
test -z "$ac_c_werror_flag" ||
7483
test ! -s conftest.err
7484
} && test -s conftest.$ac_objext; then
7485
ac_lo=$ac_mid; break
7487
echo "$as_me: failed program was:" >&5
7488
sed 's/^/| /' conftest.$ac_ext >&5
7490
ac_hi=`expr '(' $ac_mid ')' - 1`
7491
if test $ac_mid -le $ac_hi; then
7495
ac_mid=`expr 2 '*' $ac_mid`
7498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501
echo "$as_me: failed program was:" >&5
7502
sed 's/^/| /' conftest.$ac_ext >&5
7507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511
# Binary search between lo and hi bounds.
7512
while test "x$ac_lo" != "x$ac_hi"; do
7513
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514
cat >conftest.$ac_ext <<_ACEOF
7517
cat confdefs.h >>conftest.$ac_ext
7518
cat >>conftest.$ac_ext <<_ACEOF
7519
/* end confdefs.h. */
7520
$ac_includes_default
7521
typedef unsigned int ac__type_sizeof_;
7525
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7532
rm -f conftest.$ac_objext
7533
if { (ac_try="$ac_compile"
7535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536
*) ac_try_echo=$ac_try;;
7538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539
(eval "$ac_compile") 2>conftest.er1
7541
grep -v '^ *+' conftest.er1 >conftest.err
7543
cat conftest.err >&5
7544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
(exit $ac_status); } && {
7546
test -z "$ac_c_werror_flag" ||
7547
test ! -s conftest.err
7548
} && test -s conftest.$ac_objext; then
7551
echo "$as_me: failed program was:" >&5
7552
sed 's/^/| /' conftest.$ac_ext >&5
7554
ac_lo=`expr '(' $ac_mid ')' + 1`
7557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7561
'') if test "$ac_cv_type_unsigned_int" = yes; then
7562
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7563
See \`config.log' for more details." >&5
7564
echo "$as_me: error: cannot compute sizeof (unsigned int)
7565
See \`config.log' for more details." >&2;}
7566
{ (exit 77); exit 77; }; }
7568
ac_cv_sizeof_unsigned_int=0
7572
cat >conftest.$ac_ext <<_ACEOF
7575
cat confdefs.h >>conftest.$ac_ext
7576
cat >>conftest.$ac_ext <<_ACEOF
7577
/* end confdefs.h. */
7578
$ac_includes_default
7579
typedef unsigned int ac__type_sizeof_;
7580
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7581
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7588
FILE *f = fopen ("conftest.val", "w");
7591
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7593
long int i = longval ();
7594
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7596
fprintf (f, "%ld\n", i);
7600
unsigned long int i = ulongval ();
7601
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7603
fprintf (f, "%lu\n", i);
7605
return ferror (f) || fclose (f) != 0;
7611
rm -f conftest$ac_exeext
7612
if { (ac_try="$ac_link"
7614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615
*) ac_try_echo=$ac_try;;
7617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618
(eval "$ac_link") 2>&5
7620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7622
{ (case "(($ac_try" in
7623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624
*) ac_try_echo=$ac_try;;
7626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627
(eval "$ac_try") 2>&5
7629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630
(exit $ac_status); }; }; then
7631
ac_cv_sizeof_unsigned_int=`cat conftest.val`
7633
echo "$as_me: program exited with status $ac_status" >&5
7634
echo "$as_me: failed program was:" >&5
7635
sed 's/^/| /' conftest.$ac_ext >&5
7638
if test "$ac_cv_type_unsigned_int" = yes; then
7639
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7640
See \`config.log' for more details." >&5
7641
echo "$as_me: error: cannot compute sizeof (unsigned int)
7642
See \`config.log' for more details." >&2;}
7643
{ (exit 77); exit 77; }; }
6069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
6070
$as_echo_n "checking size of unsigned int... " >&6; }
6071
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
6072
$as_echo_n "(cached) " >&6
6074
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
6077
if test "$ac_cv_type_unsigned_int" = yes; then
6078
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080
as_fn_error 77 "cannot compute sizeof (unsigned int)
6081
See \`config.log' for more details" "$LINENO" 5; }
7645
6083
ac_cv_sizeof_unsigned_int=0
7648
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7652
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7653
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
6089
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
7662
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
7663
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7664
if test "${ac_cv_type_unsigned_long+set}" = set; then
7665
echo $ECHO_N "(cached) $ECHO_C" >&6
7667
cat >conftest.$ac_ext <<_ACEOF
7670
cat confdefs.h >>conftest.$ac_ext
7671
cat >>conftest.$ac_ext <<_ACEOF
7672
/* end confdefs.h. */
7673
$ac_includes_default
7674
typedef unsigned long ac__type_new_;
7678
if ((ac__type_new_ *) 0)
7680
if (sizeof (ac__type_new_))
7686
rm -f conftest.$ac_objext
7687
if { (ac_try="$ac_compile"
7689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690
*) ac_try_echo=$ac_try;;
7692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693
(eval "$ac_compile") 2>conftest.er1
7695
grep -v '^ *+' conftest.er1 >conftest.err
7697
cat conftest.err >&5
7698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
(exit $ac_status); } && {
7700
test -z "$ac_c_werror_flag" ||
7701
test ! -s conftest.err
7702
} && test -s conftest.$ac_objext; then
7703
ac_cv_type_unsigned_long=yes
7705
echo "$as_me: failed program was:" >&5
7706
sed 's/^/| /' conftest.$ac_ext >&5
7708
ac_cv_type_unsigned_long=no
7711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7714
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7716
6098
# The cast to long int works around a bug in the HP C Compiler
7717
6099
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7718
6100
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7719
6101
# This bug is HP SR number 8606223364.
7720
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
7721
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7722
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7723
echo $ECHO_N "(cached) $ECHO_C" >&6
7725
if test "$cross_compiling" = yes; then
7726
# Depending upon the size, compute the lo and hi bounds.
7727
cat >conftest.$ac_ext <<_ACEOF
7730
cat confdefs.h >>conftest.$ac_ext
7731
cat >>conftest.$ac_ext <<_ACEOF
7732
/* end confdefs.h. */
7733
$ac_includes_default
7734
typedef unsigned long ac__type_sizeof_;
7738
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7745
rm -f conftest.$ac_objext
7746
if { (ac_try="$ac_compile"
7748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749
*) ac_try_echo=$ac_try;;
7751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752
(eval "$ac_compile") 2>conftest.er1
7754
grep -v '^ *+' conftest.er1 >conftest.err
7756
cat conftest.err >&5
7757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758
(exit $ac_status); } && {
7759
test -z "$ac_c_werror_flag" ||
7760
test ! -s conftest.err
7761
} && test -s conftest.$ac_objext; then
7764
cat >conftest.$ac_ext <<_ACEOF
7767
cat confdefs.h >>conftest.$ac_ext
7768
cat >>conftest.$ac_ext <<_ACEOF
7769
/* end confdefs.h. */
7770
$ac_includes_default
7771
typedef unsigned long ac__type_sizeof_;
7775
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7782
rm -f conftest.$ac_objext
7783
if { (ac_try="$ac_compile"
7785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786
*) ac_try_echo=$ac_try;;
7788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789
(eval "$ac_compile") 2>conftest.er1
7791
grep -v '^ *+' conftest.er1 >conftest.err
7793
cat conftest.err >&5
7794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795
(exit $ac_status); } && {
7796
test -z "$ac_c_werror_flag" ||
7797
test ! -s conftest.err
7798
} && test -s conftest.$ac_objext; then
7799
ac_hi=$ac_mid; break
7801
echo "$as_me: failed program was:" >&5
7802
sed 's/^/| /' conftest.$ac_ext >&5
7804
ac_lo=`expr $ac_mid + 1`
7805
if test $ac_lo -le $ac_mid; then
7809
ac_mid=`expr 2 '*' $ac_mid + 1`
7812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815
echo "$as_me: failed program was:" >&5
7816
sed 's/^/| /' conftest.$ac_ext >&5
7818
cat >conftest.$ac_ext <<_ACEOF
7821
cat confdefs.h >>conftest.$ac_ext
7822
cat >>conftest.$ac_ext <<_ACEOF
7823
/* end confdefs.h. */
7824
$ac_includes_default
7825
typedef unsigned long ac__type_sizeof_;
7829
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7836
rm -f conftest.$ac_objext
7837
if { (ac_try="$ac_compile"
7839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840
*) ac_try_echo=$ac_try;;
7842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843
(eval "$ac_compile") 2>conftest.er1
7845
grep -v '^ *+' conftest.er1 >conftest.err
7847
cat conftest.err >&5
7848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849
(exit $ac_status); } && {
7850
test -z "$ac_c_werror_flag" ||
7851
test ! -s conftest.err
7852
} && test -s conftest.$ac_objext; then
7855
cat >conftest.$ac_ext <<_ACEOF
7858
cat confdefs.h >>conftest.$ac_ext
7859
cat >>conftest.$ac_ext <<_ACEOF
7860
/* end confdefs.h. */
7861
$ac_includes_default
7862
typedef unsigned long ac__type_sizeof_;
7866
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7873
rm -f conftest.$ac_objext
7874
if { (ac_try="$ac_compile"
7876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877
*) ac_try_echo=$ac_try;;
7879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880
(eval "$ac_compile") 2>conftest.er1
7882
grep -v '^ *+' conftest.er1 >conftest.err
7884
cat conftest.err >&5
7885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
(exit $ac_status); } && {
7887
test -z "$ac_c_werror_flag" ||
7888
test ! -s conftest.err
7889
} && test -s conftest.$ac_objext; then
7890
ac_lo=$ac_mid; break
7892
echo "$as_me: failed program was:" >&5
7893
sed 's/^/| /' conftest.$ac_ext >&5
7895
ac_hi=`expr '(' $ac_mid ')' - 1`
7896
if test $ac_mid -le $ac_hi; then
7900
ac_mid=`expr 2 '*' $ac_mid`
7903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906
echo "$as_me: failed program was:" >&5
7907
sed 's/^/| /' conftest.$ac_ext >&5
7912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916
# Binary search between lo and hi bounds.
7917
while test "x$ac_lo" != "x$ac_hi"; do
7918
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7919
cat >conftest.$ac_ext <<_ACEOF
7922
cat confdefs.h >>conftest.$ac_ext
7923
cat >>conftest.$ac_ext <<_ACEOF
7924
/* end confdefs.h. */
7925
$ac_includes_default
7926
typedef unsigned long ac__type_sizeof_;
7930
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7937
rm -f conftest.$ac_objext
7938
if { (ac_try="$ac_compile"
7940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941
*) ac_try_echo=$ac_try;;
7943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944
(eval "$ac_compile") 2>conftest.er1
7946
grep -v '^ *+' conftest.er1 >conftest.err
7948
cat conftest.err >&5
7949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
(exit $ac_status); } && {
7951
test -z "$ac_c_werror_flag" ||
7952
test ! -s conftest.err
7953
} && test -s conftest.$ac_objext; then
7956
echo "$as_me: failed program was:" >&5
7957
sed 's/^/| /' conftest.$ac_ext >&5
7959
ac_lo=`expr '(' $ac_mid ')' + 1`
7962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7966
'') if test "$ac_cv_type_unsigned_long" = yes; then
7967
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7968
See \`config.log' for more details." >&5
7969
echo "$as_me: error: cannot compute sizeof (unsigned long)
7970
See \`config.log' for more details." >&2;}
7971
{ (exit 77); exit 77; }; }
7973
ac_cv_sizeof_unsigned_long=0
7977
cat >conftest.$ac_ext <<_ACEOF
7980
cat confdefs.h >>conftest.$ac_ext
7981
cat >>conftest.$ac_ext <<_ACEOF
7982
/* end confdefs.h. */
7983
$ac_includes_default
7984
typedef unsigned long ac__type_sizeof_;
7985
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7986
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7993
FILE *f = fopen ("conftest.val", "w");
7996
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7998
long int i = longval ();
7999
if (i != ((long int) (sizeof (ac__type_sizeof_))))
8001
fprintf (f, "%ld\n", i);
8005
unsigned long int i = ulongval ();
8006
if (i != ((long int) (sizeof (ac__type_sizeof_))))
8008
fprintf (f, "%lu\n", i);
8010
return ferror (f) || fclose (f) != 0;
8016
rm -f conftest$ac_exeext
8017
if { (ac_try="$ac_link"
8019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020
*) ac_try_echo=$ac_try;;
8022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023
(eval "$ac_link") 2>&5
8025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8027
{ (case "(($ac_try" in
8028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029
*) ac_try_echo=$ac_try;;
8031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032
(eval "$ac_try") 2>&5
8034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035
(exit $ac_status); }; }; then
8036
ac_cv_sizeof_unsigned_long=`cat conftest.val`
8038
echo "$as_me: program exited with status $ac_status" >&5
8039
echo "$as_me: failed program was:" >&5
8040
sed 's/^/| /' conftest.$ac_ext >&5
8043
if test "$ac_cv_type_unsigned_long" = yes; then
8044
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
8045
See \`config.log' for more details." >&5
8046
echo "$as_me: error: cannot compute sizeof (unsigned long)
8047
See \`config.log' for more details." >&2;}
8048
{ (exit 77); exit 77; }; }
6102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6103
$as_echo_n "checking size of unsigned long... " >&6; }
6104
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
6105
$as_echo_n "(cached) " >&6
6107
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
6110
if test "$ac_cv_type_unsigned_long" = yes; then
6111
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6112
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6113
as_fn_error 77 "cannot compute sizeof (unsigned long)
6114
See \`config.log' for more details" "$LINENO" 5; }
8050
6116
ac_cv_sizeof_unsigned_long=0
8053
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8057
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
8058
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
6121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6122
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8129
6194
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8130
6195
if test -w "$cache_file"; then
8131
6196
test "x$cache_file" != "x/dev/null" &&
8132
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
8133
echo "$as_me: updating cache $cache_file" >&6;}
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6198
$as_echo "$as_me: updating cache $cache_file" >&6;}
8134
6199
cat confcache >$cache_file
8136
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8137
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6202
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8140
6205
rm -f confcache
8146
6207
for ac_func in ctime memset vsnprintf strdup
8148
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8150
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8151
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8152
echo $ECHO_N "(cached) $ECHO_C" >&6
8154
cat >conftest.$ac_ext <<_ACEOF
8157
cat confdefs.h >>conftest.$ac_ext
8158
cat >>conftest.$ac_ext <<_ACEOF
8159
/* end confdefs.h. */
8160
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8161
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8162
#define $ac_func innocuous_$ac_func
8164
/* System header to define __stub macros and hopefully few prototypes,
8165
which can conflict with char $ac_func (); below.
8166
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167
<limits.h> exists even on freestanding compilers. */
8170
# include <limits.h>
8172
# include <assert.h>
8177
/* Override any GCC internal prototype to avoid an error.
8178
Use char because int might match the return type of a GCC
8179
builtin and then its argument prototype would still apply. */
8184
/* The GNU C library defines this for functions which it implements
8185
to always fail with ENOSYS. Some functions are actually named
8186
something starting with __ and the normal name is an alias. */
8187
#if defined __stub_$ac_func || defined __stub___$ac_func
8199
rm -f conftest.$ac_objext conftest$ac_exeext
8200
if { (ac_try="$ac_link"
8202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203
*) ac_try_echo=$ac_try;;
8205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206
(eval "$ac_link") 2>conftest.er1
8208
grep -v '^ *+' conftest.er1 >conftest.err
8210
cat conftest.err >&5
8211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212
(exit $ac_status); } && {
8213
test -z "$ac_c_werror_flag" ||
8214
test ! -s conftest.err
8215
} && test -s conftest$ac_exeext &&
8216
$as_test_x conftest$ac_exeext; then
8217
eval "$as_ac_var=yes"
8219
echo "$as_me: failed program was:" >&5
8220
sed 's/^/| /' conftest.$ac_ext >&5
8222
eval "$as_ac_var=no"
8225
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8226
conftest$ac_exeext conftest.$ac_ext
8228
ac_res=`eval echo '${'$as_ac_var'}'`
8229
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8230
echo "${ECHO_T}$ac_res" >&6; }
8231
if test `eval echo '${'$as_ac_var'}'` = yes; then
6209
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6210
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6211
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8232
6212
cat >>confdefs.h <<_ACEOF
8233
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6213
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8237
{ { echo "$as_me:$LINENO: error: Required library function not found" >&5
8238
echo "$as_me: error: Required library function not found" >&2;}
8239
{ (exit 1); exit 1; }; }
6217
as_fn_error $? "Required library function not found" "$LINENO" 5
8275
6221
for ac_func in daemon chroot getpwnam setuid nice system getpid dup dup2 getpass strerror syslog openlog mlockall getgrnam setgid setgroups stat flock readv writev time setsid chdir putenv getpeername unlink chsize ftruncate execve getpeereid umask
8277
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8278
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8279
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8280
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8281
echo $ECHO_N "(cached) $ECHO_C" >&6
8283
cat >conftest.$ac_ext <<_ACEOF
8286
cat confdefs.h >>conftest.$ac_ext
8287
cat >>conftest.$ac_ext <<_ACEOF
8288
/* end confdefs.h. */
8289
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8290
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8291
#define $ac_func innocuous_$ac_func
8293
/* System header to define __stub macros and hopefully few prototypes,
8294
which can conflict with char $ac_func (); below.
8295
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296
<limits.h> exists even on freestanding compilers. */
8299
# include <limits.h>
8301
# include <assert.h>
8306
/* Override any GCC internal prototype to avoid an error.
8307
Use char because int might match the return type of a GCC
8308
builtin and then its argument prototype would still apply. */
8313
/* The GNU C library defines this for functions which it implements
8314
to always fail with ENOSYS. Some functions are actually named
8315
something starting with __ and the normal name is an alias. */
8316
#if defined __stub_$ac_func || defined __stub___$ac_func
8328
rm -f conftest.$ac_objext conftest$ac_exeext
8329
if { (ac_try="$ac_link"
8331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332
*) ac_try_echo=$ac_try;;
8334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335
(eval "$ac_link") 2>conftest.er1
8337
grep -v '^ *+' conftest.er1 >conftest.err
8339
cat conftest.err >&5
8340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
(exit $ac_status); } && {
8342
test -z "$ac_c_werror_flag" ||
8343
test ! -s conftest.err
8344
} && test -s conftest$ac_exeext &&
8345
$as_test_x conftest$ac_exeext; then
8346
eval "$as_ac_var=yes"
8348
echo "$as_me: failed program was:" >&5
8349
sed 's/^/| /' conftest.$ac_ext >&5
8351
eval "$as_ac_var=no"
8354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8355
conftest$ac_exeext conftest.$ac_ext
8357
ac_res=`eval echo '${'$as_ac_var'}'`
8358
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8359
echo "${ECHO_T}$ac_res" >&6; }
8360
if test `eval echo '${'$as_ac_var'}'` = yes; then
6223
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6224
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6225
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8361
6226
cat >>confdefs.h <<_ACEOF
8362
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6227
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8722
6471
ac_res=-l$ac_lib
8723
6472
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8725
rm -f conftest.$ac_objext conftest$ac_exeext
8726
if { (ac_try="$ac_link"
8728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729
*) ac_try_echo=$ac_try;;
8731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732
(eval "$ac_link") 2>conftest.er1
8734
grep -v '^ *+' conftest.er1 >conftest.err
8736
cat conftest.err >&5
8737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738
(exit $ac_status); } && {
8739
test -z "$ac_c_werror_flag" ||
8740
test ! -s conftest.err
8741
} && test -s conftest$ac_exeext &&
8742
$as_test_x conftest$ac_exeext; then
6474
if ac_fn_c_try_link "$LINENO"; then :
8743
6475
ac_cv_search_gethostbyname=$ac_res
8745
echo "$as_me: failed program was:" >&5
8746
sed 's/^/| /' conftest.$ac_ext >&5
8751
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8753
if test "${ac_cv_search_gethostbyname+set}" = set; then
6477
rm -f core conftest.err conftest.$ac_objext \
6479
if test "${ac_cv_search_gethostbyname+set}" = set; then :
8757
if test "${ac_cv_search_gethostbyname+set}" = set; then
6483
if test "${ac_cv_search_gethostbyname+set}" = set; then :
8760
6486
ac_cv_search_gethostbyname=no
8762
6488
rm conftest.$ac_ext
8763
6489
LIBS=$ac_func_search_save_LIBS
8765
{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8766
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6492
$as_echo "$ac_cv_search_gethostbyname" >&6; }
8767
6493
ac_res=$ac_cv_search_gethostbyname
8768
if test "$ac_res" != no; then
6494
if test "$ac_res" != no; then :
8769
6495
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775
for ac_header in vfork.h
8777
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8780
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8781
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782
echo $ECHO_N "(cached) $ECHO_C" >&6
8784
ac_res=`eval echo '${'$as_ac_Header'}'`
8785
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8786
echo "${ECHO_T}$ac_res" >&6; }
8788
# Is the header compilable?
8789
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8790
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8791
cat >conftest.$ac_ext <<_ACEOF
8794
cat confdefs.h >>conftest.$ac_ext
8795
cat >>conftest.$ac_ext <<_ACEOF
8796
/* end confdefs.h. */
8797
$ac_includes_default
8798
#include <$ac_header>
8800
rm -f conftest.$ac_objext
8801
if { (ac_try="$ac_compile"
8803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804
*) ac_try_echo=$ac_try;;
8806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807
(eval "$ac_compile") 2>conftest.er1
8809
grep -v '^ *+' conftest.er1 >conftest.err
8811
cat conftest.err >&5
8812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813
(exit $ac_status); } && {
8814
test -z "$ac_c_werror_flag" ||
8815
test ! -s conftest.err
8816
} && test -s conftest.$ac_objext; then
8817
ac_header_compiler=yes
8819
echo "$as_me: failed program was:" >&5
8820
sed 's/^/| /' conftest.$ac_ext >&5
8822
ac_header_compiler=no
8825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8827
echo "${ECHO_T}$ac_header_compiler" >&6; }
8829
# Is the header present?
8830
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8831
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8832
cat >conftest.$ac_ext <<_ACEOF
8835
cat confdefs.h >>conftest.$ac_ext
8836
cat >>conftest.$ac_ext <<_ACEOF
8837
/* end confdefs.h. */
8838
#include <$ac_header>
8840
if { (ac_try="$ac_cpp conftest.$ac_ext"
8842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843
*) ac_try_echo=$ac_try;;
8845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8848
grep -v '^ *+' conftest.er1 >conftest.err
8850
cat conftest.err >&5
8851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
(exit $ac_status); } >/dev/null && {
8853
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8854
test ! -s conftest.err
8856
ac_header_preproc=yes
8858
echo "$as_me: failed program was:" >&5
8859
sed 's/^/| /' conftest.$ac_ext >&5
8861
ac_header_preproc=no
8864
rm -f conftest.err conftest.$ac_ext
8865
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866
echo "${ECHO_T}$ac_header_preproc" >&6; }
8868
# So? What about this header?
8869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8871
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875
ac_header_preproc=yes
8878
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8881
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8882
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8885
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8886
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8891
## -------------------------------------------------- ##
8892
## Report this to openvpn-users@lists.sourceforge.net ##
8893
## -------------------------------------------------- ##
8895
) | sed "s/^/$as_me: WARNING: /" >&2
8898
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8899
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8900
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8901
echo $ECHO_N "(cached) $ECHO_C" >&6
8903
eval "$as_ac_Header=\$ac_header_preproc"
8905
ac_res=`eval echo '${'$as_ac_Header'}'`
8906
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8907
echo "${ECHO_T}$ac_res" >&6; }
8910
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500
for ac_header in vfork.h
6502
ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6503
if test "x$ac_cv_header_vfork_h" = x""yes; then :
8911
6504
cat >>confdefs.h <<_ACEOF
8912
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505
#define HAVE_VFORK_H 1
8921
6512
for ac_func in fork vfork
8923
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8924
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8925
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8926
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8927
echo $ECHO_N "(cached) $ECHO_C" >&6
8929
cat >conftest.$ac_ext <<_ACEOF
8932
cat confdefs.h >>conftest.$ac_ext
8933
cat >>conftest.$ac_ext <<_ACEOF
8934
/* end confdefs.h. */
8935
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8936
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937
#define $ac_func innocuous_$ac_func
8939
/* System header to define __stub macros and hopefully few prototypes,
8940
which can conflict with char $ac_func (); below.
8941
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942
<limits.h> exists even on freestanding compilers. */
8945
# include <limits.h>
8947
# include <assert.h>
8952
/* Override any GCC internal prototype to avoid an error.
8953
Use char because int might match the return type of a GCC
8954
builtin and then its argument prototype would still apply. */
8959
/* The GNU C library defines this for functions which it implements
8960
to always fail with ENOSYS. Some functions are actually named
8961
something starting with __ and the normal name is an alias. */
8962
#if defined __stub_$ac_func || defined __stub___$ac_func
8974
rm -f conftest.$ac_objext conftest$ac_exeext
8975
if { (ac_try="$ac_link"
8977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978
*) ac_try_echo=$ac_try;;
8980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981
(eval "$ac_link") 2>conftest.er1
8983
grep -v '^ *+' conftest.er1 >conftest.err
8985
cat conftest.err >&5
8986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987
(exit $ac_status); } && {
8988
test -z "$ac_c_werror_flag" ||
8989
test ! -s conftest.err
8990
} && test -s conftest$ac_exeext &&
8991
$as_test_x conftest$ac_exeext; then
8992
eval "$as_ac_var=yes"
8994
echo "$as_me: failed program was:" >&5
8995
sed 's/^/| /' conftest.$ac_ext >&5
8997
eval "$as_ac_var=no"
9000
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9001
conftest$ac_exeext conftest.$ac_ext
9003
ac_res=`eval echo '${'$as_ac_var'}'`
9004
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9005
echo "${ECHO_T}$ac_res" >&6; }
9006
if test `eval echo '${'$as_ac_var'}'` = yes; then
6514
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6515
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6516
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9007
6517
cat >>confdefs.h <<_ACEOF
9008
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6518
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9014
6524
if test "x$ac_cv_func_fork" = xyes; then
9015
{ echo "$as_me:$LINENO: checking for working fork" >&5
9016
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9017
if test "${ac_cv_func_fork_works+set}" = set; then
9018
echo $ECHO_N "(cached) $ECHO_C" >&6
6525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6526
$as_echo_n "checking for working fork... " >&6; }
6527
if test "${ac_cv_func_fork_works+set}" = set; then :
6528
$as_echo_n "(cached) " >&6
9020
if test "$cross_compiling" = yes; then
6530
if test "$cross_compiling" = yes; then :
9021
6531
ac_cv_func_fork_works=cross
9023
cat >conftest.$ac_ext <<_ACEOF
9026
cat confdefs.h >>conftest.$ac_ext
9027
cat >>conftest.$ac_ext <<_ACEOF
6533
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028
6534
/* end confdefs.h. */
9029
6535
$ac_includes_default
9200
rm -f conftest$ac_exeext
9201
if { (ac_try="$ac_link"
9203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204
*) ac_try_echo=$ac_try;;
9206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207
(eval "$ac_link") 2>&5
9209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9211
{ (case "(($ac_try" in
9212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213
*) ac_try_echo=$ac_try;;
9215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216
(eval "$ac_try") 2>&5
9218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
(exit $ac_status); }; }; then
6678
if ac_fn_c_try_run "$LINENO"; then :
9220
6679
ac_cv_func_vfork_works=yes
9222
echo "$as_me: program exited with status $ac_status" >&5
9223
echo "$as_me: failed program was:" >&5
9224
sed 's/^/| /' conftest.$ac_ext >&5
9227
ac_cv_func_vfork_works=no
9229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9234
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9235
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6681
ac_cv_func_vfork_works=no
6683
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6684
conftest.$ac_objext conftest.beam conftest.$ac_ext
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6689
$as_echo "$ac_cv_func_vfork_works" >&6; }
9238
6692
if test "x$ac_cv_func_fork_works" = xcross; then
9239
6693
ac_cv_func_vfork_works=$ac_cv_func_vfork
9240
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9241
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6695
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9244
6698
if test "x$ac_cv_func_vfork_works" = xyes; then
9246
cat >>confdefs.h <<\_ACEOF
9247
#define HAVE_WORKING_VFORK 1
6700
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9252
cat >>confdefs.h <<\_ACEOF
6704
$as_echo "#define vfork fork" >>confdefs.h
9257
6707
if test "x$ac_cv_func_fork_works" = xyes; then
9259
cat >>confdefs.h <<\_ACEOF
9260
#define HAVE_WORKING_FORK 1
9267
for ac_func in gettimeofday
9269
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9271
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273
echo $ECHO_N "(cached) $ECHO_C" >&6
9275
cat >conftest.$ac_ext <<_ACEOF
9278
cat confdefs.h >>conftest.$ac_ext
9279
cat >>conftest.$ac_ext <<_ACEOF
9280
/* end confdefs.h. */
9281
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283
#define $ac_func innocuous_$ac_func
9285
/* System header to define __stub macros and hopefully few prototypes,
9286
which can conflict with char $ac_func (); below.
9287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288
<limits.h> exists even on freestanding compilers. */
9291
# include <limits.h>
9293
# include <assert.h>
9298
/* Override any GCC internal prototype to avoid an error.
9299
Use char because int might match the return type of a GCC
9300
builtin and then its argument prototype would still apply. */
9305
/* The GNU C library defines this for functions which it implements
9306
to always fail with ENOSYS. Some functions are actually named
9307
something starting with __ and the normal name is an alias. */
9308
#if defined __stub_$ac_func || defined __stub___$ac_func
9320
rm -f conftest.$ac_objext conftest$ac_exeext
9321
if { (ac_try="$ac_link"
9323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324
*) ac_try_echo=$ac_try;;
9326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327
(eval "$ac_link") 2>conftest.er1
9329
grep -v '^ *+' conftest.er1 >conftest.err
9331
cat conftest.err >&5
9332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333
(exit $ac_status); } && {
9334
test -z "$ac_c_werror_flag" ||
9335
test ! -s conftest.err
9336
} && test -s conftest$ac_exeext &&
9337
$as_test_x conftest$ac_exeext; then
9338
eval "$as_ac_var=yes"
9340
echo "$as_me: failed program was:" >&5
9341
sed 's/^/| /' conftest.$ac_ext >&5
9343
eval "$as_ac_var=no"
9346
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347
conftest$ac_exeext conftest.$ac_ext
9349
ac_res=`eval echo '${'$as_ac_var'}'`
9350
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9351
echo "${ECHO_T}$ac_res" >&6; }
9352
if test `eval echo '${'$as_ac_var'}'` = yes; then
9353
cat >>confdefs.h <<_ACEOF
9354
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9373
for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
9375
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9377
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9378
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9379
echo $ECHO_N "(cached) $ECHO_C" >&6
9381
cat >conftest.$ac_ext <<_ACEOF
9384
cat confdefs.h >>conftest.$ac_ext
9385
cat >>conftest.$ac_ext <<_ACEOF
9386
/* end confdefs.h. */
9387
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389
#define $ac_func innocuous_$ac_func
9391
/* System header to define __stub macros and hopefully few prototypes,
9392
which can conflict with char $ac_func (); below.
9393
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394
<limits.h> exists even on freestanding compilers. */
9397
# include <limits.h>
9399
# include <assert.h>
9404
/* Override any GCC internal prototype to avoid an error.
9405
Use char because int might match the return type of a GCC
9406
builtin and then its argument prototype would still apply. */
9411
/* The GNU C library defines this for functions which it implements
9412
to always fail with ENOSYS. Some functions are actually named
9413
something starting with __ and the normal name is an alias. */
9414
#if defined __stub_$ac_func || defined __stub___$ac_func
9426
rm -f conftest.$ac_objext conftest$ac_exeext
9427
if { (ac_try="$ac_link"
9429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430
*) ac_try_echo=$ac_try;;
9432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433
(eval "$ac_link") 2>conftest.er1
9435
grep -v '^ *+' conftest.er1 >conftest.err
9437
cat conftest.err >&5
9438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439
(exit $ac_status); } && {
9440
test -z "$ac_c_werror_flag" ||
9441
test ! -s conftest.err
9442
} && test -s conftest$ac_exeext &&
9443
$as_test_x conftest$ac_exeext; then
9444
eval "$as_ac_var=yes"
9446
echo "$as_me: failed program was:" >&5
9447
sed 's/^/| /' conftest.$ac_ext >&5
9449
eval "$as_ac_var=no"
9452
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453
conftest$ac_exeext conftest.$ac_ext
9455
ac_res=`eval echo '${'$as_ac_var'}'`
9456
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9457
echo "${ECHO_T}$ac_res" >&6; }
9458
if test `eval echo '${'$as_ac_var'}'` = yes; then
9459
cat >>confdefs.h <<_ACEOF
9460
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9464
{ { echo "$as_me:$LINENO: error: Required library function not found" >&5
9465
echo "$as_me: error: Required library function not found" >&2;}
9466
{ (exit 1); exit 1; }; }
9476
for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
9478
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9479
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9480
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9481
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9482
echo $ECHO_N "(cached) $ECHO_C" >&6
9484
cat >conftest.$ac_ext <<_ACEOF
9487
cat confdefs.h >>conftest.$ac_ext
9488
cat >>conftest.$ac_ext <<_ACEOF
9489
/* end confdefs.h. */
9490
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9491
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9492
#define $ac_func innocuous_$ac_func
9494
/* System header to define __stub macros and hopefully few prototypes,
9495
which can conflict with char $ac_func (); below.
9496
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497
<limits.h> exists even on freestanding compilers. */
9500
# include <limits.h>
9502
# include <assert.h>
9507
/* Override any GCC internal prototype to avoid an error.
9508
Use char because int might match the return type of a GCC
9509
builtin and then its argument prototype would still apply. */
9514
/* The GNU C library defines this for functions which it implements
9515
to always fail with ENOSYS. Some functions are actually named
9516
something starting with __ and the normal name is an alias. */
9517
#if defined __stub_$ac_func || defined __stub___$ac_func
9529
rm -f conftest.$ac_objext conftest$ac_exeext
9530
if { (ac_try="$ac_link"
9532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533
*) ac_try_echo=$ac_try;;
9535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536
(eval "$ac_link") 2>conftest.er1
9538
grep -v '^ *+' conftest.er1 >conftest.err
9540
cat conftest.err >&5
9541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542
(exit $ac_status); } && {
9543
test -z "$ac_c_werror_flag" ||
9544
test ! -s conftest.err
9545
} && test -s conftest$ac_exeext &&
9546
$as_test_x conftest$ac_exeext; then
9547
eval "$as_ac_var=yes"
9549
echo "$as_me: failed program was:" >&5
9550
sed 's/^/| /' conftest.$ac_ext >&5
9552
eval "$as_ac_var=no"
9555
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9556
conftest$ac_exeext conftest.$ac_ext
9558
ac_res=`eval echo '${'$as_ac_var'}'`
9559
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9560
echo "${ECHO_T}$ac_res" >&6; }
9561
if test `eval echo '${'$as_ac_var'}'` = yes; then
9562
cat >>confdefs.h <<_ACEOF
9563
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9572
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
9573
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9574
if test "${ac_cv_func_memcmp_working+set}" = set; then
9575
echo $ECHO_N "(cached) $ECHO_C" >&6
9577
if test "$cross_compiling" = yes; then
6709
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6714
for ac_func in gettimeofday
6716
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6717
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6718
cat >>confdefs.h <<_ACEOF
6719
#define HAVE_GETTIMEOFDAY 1
6726
for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
6728
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6729
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6730
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6731
cat >>confdefs.h <<_ACEOF
6732
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6736
as_fn_error $? "Required library function not found" "$LINENO" 5
6740
for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
6742
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6743
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6744
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6745
cat >>confdefs.h <<_ACEOF
6746
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6756
$as_echo_n "checking for working memcmp... " >&6; }
6757
if test "${ac_cv_func_memcmp_working+set}" = set; then :
6758
$as_echo_n "(cached) " >&6
6760
if test "$cross_compiling" = yes; then :
9578
6761
ac_cv_func_memcmp_working=no
9580
cat >conftest.$ac_ext <<_ACEOF
9583
cat confdefs.h >>conftest.$ac_ext
9584
cat >>conftest.$ac_ext <<_ACEOF
6763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585
6764
/* end confdefs.h. */
9586
6765
$ac_includes_default
9819
6865
if test "$MEMCHECK" = "valgrind"; then
9820
{ echo "$as_me:$LINENO: checking for valgrind tool and Header files..." >&5
9821
echo "$as_me: checking for valgrind tool and Header files..." >&6;}
9822
if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9823
{ echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9824
echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9825
if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9826
echo $ECHO_N "(cached) $ECHO_C" >&6
9828
{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9829
echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9831
# Is the header compilable?
9832
{ echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
9833
echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6; }
9834
cat >conftest.$ac_ext <<_ACEOF
9837
cat confdefs.h >>conftest.$ac_ext
9838
cat >>conftest.$ac_ext <<_ACEOF
9839
/* end confdefs.h. */
9840
$ac_includes_default
9841
#include <valgrind/memcheck.h>
9843
rm -f conftest.$ac_objext
9844
if { (ac_try="$ac_compile"
9846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847
*) ac_try_echo=$ac_try;;
9849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850
(eval "$ac_compile") 2>conftest.er1
9852
grep -v '^ *+' conftest.er1 >conftest.err
9854
cat conftest.err >&5
9855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
(exit $ac_status); } && {
9857
test -z "$ac_c_werror_flag" ||
9858
test ! -s conftest.err
9859
} && test -s conftest.$ac_objext; then
9860
ac_header_compiler=yes
9862
echo "$as_me: failed program was:" >&5
9863
sed 's/^/| /' conftest.$ac_ext >&5
9865
ac_header_compiler=no
9868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870
echo "${ECHO_T}$ac_header_compiler" >&6; }
9872
# Is the header present?
9873
{ echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
9874
echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6; }
9875
cat >conftest.$ac_ext <<_ACEOF
9878
cat confdefs.h >>conftest.$ac_ext
9879
cat >>conftest.$ac_ext <<_ACEOF
9880
/* end confdefs.h. */
9881
#include <valgrind/memcheck.h>
9883
if { (ac_try="$ac_cpp conftest.$ac_ext"
9885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886
*) ac_try_echo=$ac_try;;
9888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9891
grep -v '^ *+' conftest.er1 >conftest.err
9893
cat conftest.err >&5
9894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
(exit $ac_status); } >/dev/null && {
9896
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9897
test ! -s conftest.err
9899
ac_header_preproc=yes
9901
echo "$as_me: failed program was:" >&5
9902
sed 's/^/| /' conftest.$ac_ext >&5
9904
ac_header_preproc=no
9907
rm -f conftest.err conftest.$ac_ext
9908
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909
echo "${ECHO_T}$ac_header_preproc" >&6; }
9911
# So? What about this header?
9912
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9914
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
9915
echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
9917
echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
9918
ac_header_preproc=yes
9921
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
9922
echo "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
9923
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&5
9924
echo "$as_me: WARNING: valgrind/memcheck.h: check for missing prerequisite headers?" >&2;}
9925
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
9926
echo "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
9927
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&5
9928
echo "$as_me: WARNING: valgrind/memcheck.h: section \"Present But Cannot Be Compiled\"" >&2;}
9929
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
9930
echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
9931
{ echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
9932
echo "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
9934
## -------------------------------------------------- ##
9935
## Report this to openvpn-users@lists.sourceforge.net ##
9936
## -------------------------------------------------- ##
9938
) | sed "s/^/$as_me: WARNING: /" >&2
9941
{ echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9942
echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9943
if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9944
echo $ECHO_N "(cached) $ECHO_C" >&6
9946
ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
9948
{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9949
echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9952
if test $ac_cv_header_valgrind_memcheck_h = yes; then
9955
cat >>confdefs.h <<\_ACEOF
9956
#define USE_VALGRIND 1
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind tool and Header files..." >&5
6867
$as_echo "$as_me: checking for valgrind tool and Header files..." >&6;}
6868
ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
6869
if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
6872
$as_echo "#define USE_VALGRIND 1" >>confdefs.h
9959
6874
CFLAGS="-g -fno-inline"
9962
{ { echo "$as_me:$LINENO: error: valgrind headers not found." >&5
9963
echo "$as_me: error: valgrind headers not found." >&2;}
9964
{ (exit 1); exit 1; }; }
9972
if test "$PTHREAD" = "yes"; then
9973
{ echo "$as_me:$LINENO: checking for pthread support..." >&5
9974
echo "$as_me: checking for pthread support..." >&6;}
9975
{ echo "$as_me:$LINENO: result: ********* WARNING: pthread support is experimental for OpenVPN 2.0" >&5
9976
echo "${ECHO_T}********* WARNING: pthread support is experimental for OpenVPN 2.0" >&6; }
9981
# We used to check for pthread.h first, but this fails if pthread.h
9982
# requires special compiler flags (e.g. on True64 or Sequent).
9983
# It gets checked for in the link test anyway.
9985
# First of all, check if the user has set any of the PTHREAD_LIBS,
9986
# etcetera environment variables, and if threads linking works using
9988
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9989
save_CFLAGS="$CFLAGS"
9990
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9992
LIBS="$PTHREAD_LIBS $LIBS"
9993
{ echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9994
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
9995
cat >conftest.$ac_ext <<_ACEOF
9998
cat confdefs.h >>conftest.$ac_ext
9999
cat >>conftest.$ac_ext <<_ACEOF
10000
/* end confdefs.h. */
10002
/* Override any GCC internal prototype to avoid an error.
10003
Use char because int might match the return type of a GCC
10004
builtin and then its argument prototype would still apply. */
10008
char pthread_join ();
10012
return pthread_join ();
10017
rm -f conftest.$ac_objext conftest$ac_exeext
10018
if { (ac_try="$ac_link"
10019
case "(($ac_try" in
10020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021
*) ac_try_echo=$ac_try;;
10023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024
(eval "$ac_link") 2>conftest.er1
10026
grep -v '^ *+' conftest.er1 >conftest.err
10028
cat conftest.err >&5
10029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030
(exit $ac_status); } && {
10031
test -z "$ac_c_werror_flag" ||
10032
test ! -s conftest.err
10033
} && test -s conftest$ac_exeext &&
10034
$as_test_x conftest$ac_exeext; then
10037
echo "$as_me: failed program was:" >&5
10038
sed 's/^/| /' conftest.$ac_ext >&5
10043
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044
conftest$ac_exeext conftest.$ac_ext
10045
{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10046
echo "${ECHO_T}$acx_pthread_ok" >&6; }
10047
if test x"$acx_pthread_ok" = xno; then
10052
CFLAGS="$save_CFLAGS"
10055
# We must check for the threads library under a number of different
10056
# names; the ordering is very important because some systems
10057
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10058
# libraries is broken (non-POSIX).
10060
# Create a list of thread flags to try. Items starting with a "-" are
10061
# C compiler flags, and other items are library names, except for "none"
10062
# which indicates that we try without any flags at all.
10064
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
10066
# The ordering *is* (sometimes) important. Some notes on the
10067
# individual items follow:
10069
# pthreads: AIX (must check this before -lpthread)
10070
# none: in case threads are in libc; should be tried before -Kthread and
10071
# other compiler flags to prevent continual compiler warnings
10072
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10073
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10074
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10075
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10076
# -pthreads: Solaris/gcc
10077
# -mthreads: Mingw32/gcc, Lynx/gcc
10078
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10079
# doesn't hurt to check since this sometimes defines pthreads too;
10080
# also defines -D_REENTRANT)
10081
# pthread: Linux, etcetera
10082
# --thread-safe: KAI C++
10087
# On Solaris (at least, for some versions), libc contains stubbed
10088
# (non-functional) versions of the pthreads routines, so link-based
10089
# tests will erroneously succeed. (We need to link with -pthread or
10090
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10091
# a function called by this macro, so we could check for that, but
10092
# who knows whether they'll stub that too in a future libc.) So,
10093
# we'll just look for -pthreads and -lpthread first:
10095
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
10099
if test x"$acx_pthread_ok" = xno; then
10100
for flag in $acx_pthread_flags; do
10104
{ echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
10105
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
10109
{ echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
10110
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
10111
PTHREAD_CFLAGS="$flag"
10115
{ echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
10116
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
10117
PTHREAD_LIBS="-l$flag"
10122
save_CFLAGS="$CFLAGS"
10123
LIBS="$PTHREAD_LIBS $LIBS"
10124
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10126
# Check for various functions. We must include pthread.h,
10127
# since some functions may be macros. (On the Sequent, we
10128
# need a special flag -Kthread to make this header compile.)
10129
# We check for pthread_join because it is in -lpthread on IRIX
10130
# while pthread_create is in libc. We check for pthread_attr_init
10131
# due to DEC craziness with -lpthreads. We check for
10132
# pthread_cleanup_push because it is one of the few pthread
10133
# functions on Solaris that doesn't have a non-functional libc stub.
10134
# We try pthread_create on general principles.
10135
cat >conftest.$ac_ext <<_ACEOF
10138
cat confdefs.h >>conftest.$ac_ext
10139
cat >>conftest.$ac_ext <<_ACEOF
10140
/* end confdefs.h. */
10141
#include <pthread.h>
10145
pthread_t th; pthread_join(th, 0);
10146
pthread_attr_init(0); pthread_cleanup_push(0, 0);
10147
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
10152
rm -f conftest.$ac_objext conftest$ac_exeext
10153
if { (ac_try="$ac_link"
10154
case "(($ac_try" in
10155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156
*) ac_try_echo=$ac_try;;
10158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159
(eval "$ac_link") 2>conftest.er1
10161
grep -v '^ *+' conftest.er1 >conftest.err
10163
cat conftest.err >&5
10164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165
(exit $ac_status); } && {
10166
test -z "$ac_c_werror_flag" ||
10167
test ! -s conftest.err
10168
} && test -s conftest$ac_exeext &&
10169
$as_test_x conftest$ac_exeext; then
10172
echo "$as_me: failed program was:" >&5
10173
sed 's/^/| /' conftest.$ac_ext >&5
10178
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179
conftest$ac_exeext conftest.$ac_ext
10182
CFLAGS="$save_CFLAGS"
10184
{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10185
echo "${ECHO_T}$acx_pthread_ok" >&6; }
10186
if test "x$acx_pthread_ok" = xyes; then
10195
# Various other checks:
10196
if test "x$acx_pthread_ok" = xyes; then
10198
LIBS="$PTHREAD_LIBS $LIBS"
10199
save_CFLAGS="$CFLAGS"
10200
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10202
# Detect AIX lossage: threads are created detached by default
10203
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
10204
{ echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
10205
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
10206
cat >conftest.$ac_ext <<_ACEOF
10209
cat confdefs.h >>conftest.$ac_ext
10210
cat >>conftest.$ac_ext <<_ACEOF
10211
/* end confdefs.h. */
10212
#include <pthread.h>
10216
int attr=PTHREAD_CREATE_JOINABLE;
10221
rm -f conftest.$ac_objext conftest$ac_exeext
10222
if { (ac_try="$ac_link"
10223
case "(($ac_try" in
10224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225
*) ac_try_echo=$ac_try;;
10227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228
(eval "$ac_link") 2>conftest.er1
10230
grep -v '^ *+' conftest.er1 >conftest.err
10232
cat conftest.err >&5
10233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
(exit $ac_status); } && {
10235
test -z "$ac_c_werror_flag" ||
10236
test ! -s conftest.err
10237
} && test -s conftest$ac_exeext &&
10238
$as_test_x conftest$ac_exeext; then
10239
ok=PTHREAD_CREATE_JOINABLE
10241
echo "$as_me: failed program was:" >&5
10242
sed 's/^/| /' conftest.$ac_ext >&5
10247
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248
conftest$ac_exeext conftest.$ac_ext
10249
if test x"$ok" = xunknown; then
10250
cat >conftest.$ac_ext <<_ACEOF
10253
cat confdefs.h >>conftest.$ac_ext
10254
cat >>conftest.$ac_ext <<_ACEOF
10255
/* end confdefs.h. */
10256
#include <pthread.h>
10260
int attr=PTHREAD_CREATE_UNDETACHED;
10265
rm -f conftest.$ac_objext conftest$ac_exeext
10266
if { (ac_try="$ac_link"
10267
case "(($ac_try" in
10268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269
*) ac_try_echo=$ac_try;;
10271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272
(eval "$ac_link") 2>conftest.er1
10274
grep -v '^ *+' conftest.er1 >conftest.err
10276
cat conftest.err >&5
10277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278
(exit $ac_status); } && {
10279
test -z "$ac_c_werror_flag" ||
10280
test ! -s conftest.err
10281
} && test -s conftest$ac_exeext &&
10282
$as_test_x conftest$ac_exeext; then
10283
ok=PTHREAD_CREATE_UNDETACHED
10285
echo "$as_me: failed program was:" >&5
10286
sed 's/^/| /' conftest.$ac_ext >&5
10291
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292
conftest$ac_exeext conftest.$ac_ext
10294
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
10296
cat >>confdefs.h <<\_ACEOF
10297
#define PTHREAD_CREATE_JOINABLE $ok
10301
{ echo "$as_me:$LINENO: result: ${ok}" >&5
10302
echo "${ECHO_T}${ok}" >&6; }
10303
if test x"$ok" = xunknown; then
10304
{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
10305
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
10308
{ echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
10309
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
10312
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
10313
*solaris* | alpha*-osf* | *linux*) flag="-D_REENTRANT";;
10315
{ echo "$as_me:$LINENO: result: ${flag}" >&5
10316
echo "${ECHO_T}${flag}" >&6; }
10317
if test "x$flag" != xno; then
10318
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10322
CFLAGS="$save_CFLAGS"
10324
# More AIX lossage: must compile with cc_r
10325
# Extract the first word of "cc_r", so it can be a program name with args.
10326
set dummy cc_r; ac_word=$2
10327
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10329
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
10330
echo $ECHO_N "(cached) $ECHO_C" >&6
10332
if test -n "$PTHREAD_CC"; then
10333
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336
for as_dir in $PATH
10339
test -z "$as_dir" && as_dir=.
10340
for ac_exec_ext in '' $ac_executable_extensions; do
10341
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342
ac_cv_prog_PTHREAD_CC="cc_r"
10343
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10350
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
10353
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10354
if test -n "$PTHREAD_CC"; then
10355
{ echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
10356
echo "${ECHO_T}$PTHREAD_CC" >&6; }
10358
{ echo "$as_me:$LINENO: result: no" >&5
10359
echo "${ECHO_T}no" >&6; }
10371
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10372
if test x"$acx_pthread_ok" = xyes; then
10376
{ echo "$as_me:$LINENO: result: WARNING: pthread support on OpenBSD is unstable!" >&5
10377
echo "${ECHO_T}WARNING: pthread support on OpenBSD is unstable!" >&6; }
10378
CFLAGS="$CFLAGS -pthread"
10381
LIBS="$PTHREAD_LIBS $LIBS"
10382
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10385
cat >>confdefs.h <<\_ACEOF
10386
#define USE_PTHREAD 1
10394
{ echo "$as_me:$LINENO: result: I don't know how to build with pthread support on this platform." >&5
10395
echo "${ECHO_T}I don't know how to build with pthread support on this platform." >&6; }
10396
{ { echo "$as_me:$LINENO: error: try ./configure --disable-pthread" >&5
10397
echo "$as_me: error: try ./configure --disable-pthread" >&2;}
10398
{ (exit 1); exit 1; }; }
6877
as_fn_error $? "valgrind headers not found." "$LINENO" 5
10635
6948
if test "${WIN32}" != "yes"; then
10636
6949
if test "$PLUGINS" = "yes"; then
10637
{ echo "$as_me:$LINENO: checking for libdl Library and Header files..." >&5
10638
echo "$as_me: checking for libdl Library and Header files..." >&6;}
10639
if test "${ac_cv_header_dlfcn_h+set}" = set; then
10640
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10641
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10642
if test "${ac_cv_header_dlfcn_h+set}" = set; then
10643
echo $ECHO_N "(cached) $ECHO_C" >&6
10645
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10646
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10648
# Is the header compilable?
10649
{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10650
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10651
cat >conftest.$ac_ext <<_ACEOF
10654
cat confdefs.h >>conftest.$ac_ext
10655
cat >>conftest.$ac_ext <<_ACEOF
10656
/* end confdefs.h. */
10657
$ac_includes_default
10660
rm -f conftest.$ac_objext
10661
if { (ac_try="$ac_compile"
10662
case "(($ac_try" in
10663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664
*) ac_try_echo=$ac_try;;
10666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667
(eval "$ac_compile") 2>conftest.er1
10669
grep -v '^ *+' conftest.er1 >conftest.err
10671
cat conftest.err >&5
10672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673
(exit $ac_status); } && {
10674
test -z "$ac_c_werror_flag" ||
10675
test ! -s conftest.err
10676
} && test -s conftest.$ac_objext; then
10677
ac_header_compiler=yes
10679
echo "$as_me: failed program was:" >&5
10680
sed 's/^/| /' conftest.$ac_ext >&5
10682
ac_header_compiler=no
10685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10687
echo "${ECHO_T}$ac_header_compiler" >&6; }
10689
# Is the header present?
10690
{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10691
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10692
cat >conftest.$ac_ext <<_ACEOF
10695
cat confdefs.h >>conftest.$ac_ext
10696
cat >>conftest.$ac_ext <<_ACEOF
10697
/* end confdefs.h. */
10700
if { (ac_try="$ac_cpp conftest.$ac_ext"
10701
case "(($ac_try" in
10702
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703
*) ac_try_echo=$ac_try;;
10705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10708
grep -v '^ *+' conftest.er1 >conftest.err
10710
cat conftest.err >&5
10711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712
(exit $ac_status); } >/dev/null && {
10713
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10714
test ! -s conftest.err
10716
ac_header_preproc=yes
10718
echo "$as_me: failed program was:" >&5
10719
sed 's/^/| /' conftest.$ac_ext >&5
10721
ac_header_preproc=no
10724
rm -f conftest.err conftest.$ac_ext
10725
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726
echo "${ECHO_T}$ac_header_preproc" >&6; }
10728
# So? What about this header?
10729
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10731
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10732
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10734
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10735
ac_header_preproc=yes
10738
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10739
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10740
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
10741
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
10742
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10743
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10744
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
10745
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
10746
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10747
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10748
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10749
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10751
## -------------------------------------------------- ##
10752
## Report this to openvpn-users@lists.sourceforge.net ##
10753
## -------------------------------------------------- ##
10755
) | sed "s/^/$as_me: WARNING: /" >&2
10758
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10759
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10760
if test "${ac_cv_header_dlfcn_h+set}" = set; then
10761
echo $ECHO_N "(cached) $ECHO_C" >&6
10763
ac_cv_header_dlfcn_h=$ac_header_preproc
10765
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10766
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10769
if test $ac_cv_header_dlfcn_h = yes; then
10770
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10771
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10772
if test "${ac_cv_func_dlopen+set}" = set; then
10773
echo $ECHO_N "(cached) $ECHO_C" >&6
10775
cat >conftest.$ac_ext <<_ACEOF
10778
cat confdefs.h >>conftest.$ac_ext
10779
cat >>conftest.$ac_ext <<_ACEOF
10780
/* end confdefs.h. */
10781
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10782
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10783
#define dlopen innocuous_dlopen
10785
/* System header to define __stub macros and hopefully few prototypes,
10786
which can conflict with char dlopen (); below.
10787
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788
<limits.h> exists even on freestanding compilers. */
10791
# include <limits.h>
10793
# include <assert.h>
10798
/* Override any GCC internal prototype to avoid an error.
10799
Use char because int might match the return type of a GCC
10800
builtin and then its argument prototype would still apply. */
10805
/* The GNU C library defines this for functions which it implements
10806
to always fail with ENOSYS. Some functions are actually named
10807
something starting with __ and the normal name is an alias. */
10808
#if defined __stub_dlopen || defined __stub___dlopen
10820
rm -f conftest.$ac_objext conftest$ac_exeext
10821
if { (ac_try="$ac_link"
10822
case "(($ac_try" in
10823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824
*) ac_try_echo=$ac_try;;
10826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827
(eval "$ac_link") 2>conftest.er1
10829
grep -v '^ *+' conftest.er1 >conftest.err
10831
cat conftest.err >&5
10832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833
(exit $ac_status); } && {
10834
test -z "$ac_c_werror_flag" ||
10835
test ! -s conftest.err
10836
} && test -s conftest$ac_exeext &&
10837
$as_test_x conftest$ac_exeext; then
10838
ac_cv_func_dlopen=yes
10840
echo "$as_me: failed program was:" >&5
10841
sed 's/^/| /' conftest.$ac_ext >&5
10843
ac_cv_func_dlopen=no
10846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10847
conftest$ac_exeext conftest.$ac_ext
10849
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10850
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10851
if test $ac_cv_func_dlopen = yes; then
10853
cat >>confdefs.h <<\_ACEOF
10854
#define USE_LIBDL 1
10858
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10859
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10860
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10861
echo $ECHO_N "(cached) $ECHO_C" >&6
6950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl Library and Header files..." >&5
6951
$as_echo "$as_me: checking for libdl Library and Header files..." >&6;}
6952
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6953
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6954
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6955
if test "x$ac_cv_func_dlopen" = x""yes; then :
6957
$as_echo "#define USE_LIBDL 1" >>confdefs.h
6960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6961
$as_echo_n "checking for dlopen in -ldl... " >&6; }
6962
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6963
$as_echo_n "(cached) " >&6
10863
6965
ac_check_lib_save_LIBS=$LIBS
10864
6966
LIBS="-ldl $LIBS"
10865
cat >conftest.$ac_ext <<_ACEOF
10868
cat confdefs.h >>conftest.$ac_ext
10869
cat >>conftest.$ac_ext <<_ACEOF
6967
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870
6968
/* end confdefs.h. */
10872
6970
/* Override any GCC internal prototype to avoid an error.
10969
rm -f conftest.$ac_objext conftest$ac_exeext
10970
if { (ac_try="$ac_link"
10971
case "(($ac_try" in
10972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973
*) ac_try_echo=$ac_try;;
10975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976
(eval "$ac_link") 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } && {
10983
test -z "$ac_c_werror_flag" ||
10984
test ! -s conftest.err
10985
} && test -s conftest$ac_exeext &&
10986
$as_test_x conftest$ac_exeext; then
10988
{ echo "$as_me:$LINENO: result: LoadLibrary DEFINED" >&5
10989
echo "${ECHO_T}LoadLibrary DEFINED" >&6; }
10991
cat >>confdefs.h <<\_ACEOF
10992
#define USE_LOAD_LIBRARY 1
7045
if ac_fn_c_try_link "$LINENO"; then :
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LoadLibrary DEFINED" >&5
7048
$as_echo "LoadLibrary DEFINED" >&6; }
7050
$as_echo "#define USE_LOAD_LIBRARY 1" >>confdefs.h
10997
echo "$as_me: failed program was:" >&5
10998
sed 's/^/| /' conftest.$ac_ext >&5
11001
{ echo "$as_me:$LINENO: result: LoadLibrary UNDEFINED" >&5
11002
echo "${ECHO_T}LoadLibrary UNDEFINED" >&6; }
7055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LoadLibrary UNDEFINED" >&5
7056
$as_echo "LoadLibrary UNDEFINED" >&6; }
11006
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007
conftest$ac_exeext conftest.$ac_ext
7059
rm -f core conftest.err conftest.$ac_objext \
7060
conftest$ac_exeext conftest.$ac_ext
11012
7065
if test "$LZO" = "yes"; then
11014
{ echo "$as_me:$LINENO: checking for LZO Library and Header files..." >&5
11015
echo "$as_me: checking for LZO Library and Header files..." >&6;}
11016
if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11017
{ echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11018
echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11019
if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11020
echo $ECHO_N "(cached) $ECHO_C" >&6
11022
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11023
echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11025
# Is the header compilable?
11026
{ echo "$as_me:$LINENO: checking lzo/lzo1x.h usability" >&5
11027
echo $ECHO_N "checking lzo/lzo1x.h usability... $ECHO_C" >&6; }
11028
cat >conftest.$ac_ext <<_ACEOF
11031
cat confdefs.h >>conftest.$ac_ext
11032
cat >>conftest.$ac_ext <<_ACEOF
11033
/* end confdefs.h. */
11034
$ac_includes_default
11035
#include <lzo/lzo1x.h>
11037
rm -f conftest.$ac_objext
11038
if { (ac_try="$ac_compile"
11039
case "(($ac_try" in
11040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041
*) ac_try_echo=$ac_try;;
11043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044
(eval "$ac_compile") 2>conftest.er1
11046
grep -v '^ *+' conftest.er1 >conftest.err
11048
cat conftest.err >&5
11049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050
(exit $ac_status); } && {
11051
test -z "$ac_c_werror_flag" ||
11052
test ! -s conftest.err
11053
} && test -s conftest.$ac_objext; then
11054
ac_header_compiler=yes
11056
echo "$as_me: failed program was:" >&5
11057
sed 's/^/| /' conftest.$ac_ext >&5
11059
ac_header_compiler=no
11062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064
echo "${ECHO_T}$ac_header_compiler" >&6; }
11066
# Is the header present?
11067
{ echo "$as_me:$LINENO: checking lzo/lzo1x.h presence" >&5
11068
echo $ECHO_N "checking lzo/lzo1x.h presence... $ECHO_C" >&6; }
11069
cat >conftest.$ac_ext <<_ACEOF
11072
cat confdefs.h >>conftest.$ac_ext
11073
cat >>conftest.$ac_ext <<_ACEOF
11074
/* end confdefs.h. */
11075
#include <lzo/lzo1x.h>
11077
if { (ac_try="$ac_cpp conftest.$ac_ext"
11078
case "(($ac_try" in
11079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080
*) ac_try_echo=$ac_try;;
11082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085
grep -v '^ *+' conftest.er1 >conftest.err
11087
cat conftest.err >&5
11088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089
(exit $ac_status); } >/dev/null && {
11090
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11091
test ! -s conftest.err
11093
ac_header_preproc=yes
11095
echo "$as_me: failed program was:" >&5
11096
sed 's/^/| /' conftest.$ac_ext >&5
11098
ac_header_preproc=no
11101
rm -f conftest.err conftest.$ac_ext
11102
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103
echo "${ECHO_T}$ac_header_preproc" >&6; }
11105
# So? What about this header?
11106
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109
echo "$as_me: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&5
11111
echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&2;}
11112
ac_header_preproc=yes
11115
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&5
11116
echo "$as_me: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&2;}
11117
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: check for missing prerequisite headers?" >&5
11118
echo "$as_me: WARNING: lzo/lzo1x.h: check for missing prerequisite headers?" >&2;}
11119
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&5
11120
echo "$as_me: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&2;}
11121
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: section \"Present But Cannot Be Compiled\"" >&5
11122
echo "$as_me: WARNING: lzo/lzo1x.h: section \"Present But Cannot Be Compiled\"" >&2;}
11123
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&5
11124
echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&2;}
11125
{ echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&5
11126
echo "$as_me: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&2;}
11128
## -------------------------------------------------- ##
11129
## Report this to openvpn-users@lists.sourceforge.net ##
11130
## -------------------------------------------------- ##
11132
) | sed "s/^/$as_me: WARNING: /" >&2
11135
{ echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11136
echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11137
if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11138
echo $ECHO_N "(cached) $ECHO_C" >&6
11140
ac_cv_header_lzo_lzo1x_h=$ac_header_preproc
11142
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11143
echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11146
if test $ac_cv_header_lzo_lzo1x_h = yes; then
7067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZO Library and Header files..." >&5
7068
$as_echo "$as_me: checking for LZO Library and Header files..." >&6;}
7069
ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
7070
if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
11148
7072
lzolibs="lzo2 lzo"
11150
cat >>confdefs.h <<\_ACEOF
11151
#define LZO_HEADER_DIR 1
11156
if test "${ac_cv_header_lzo1x_h+set}" = set; then
11157
{ echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11158
echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11159
if test "${ac_cv_header_lzo1x_h+set}" = set; then
11160
echo $ECHO_N "(cached) $ECHO_C" >&6
11162
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11163
echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11165
# Is the header compilable?
11166
{ echo "$as_me:$LINENO: checking lzo1x.h usability" >&5
11167
echo $ECHO_N "checking lzo1x.h usability... $ECHO_C" >&6; }
11168
cat >conftest.$ac_ext <<_ACEOF
11171
cat confdefs.h >>conftest.$ac_ext
11172
cat >>conftest.$ac_ext <<_ACEOF
11173
/* end confdefs.h. */
11174
$ac_includes_default
11177
rm -f conftest.$ac_objext
11178
if { (ac_try="$ac_compile"
11179
case "(($ac_try" in
11180
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181
*) ac_try_echo=$ac_try;;
11183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184
(eval "$ac_compile") 2>conftest.er1
11186
grep -v '^ *+' conftest.er1 >conftest.err
11188
cat conftest.err >&5
11189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190
(exit $ac_status); } && {
11191
test -z "$ac_c_werror_flag" ||
11192
test ! -s conftest.err
11193
} && test -s conftest.$ac_objext; then
11194
ac_header_compiler=yes
11196
echo "$as_me: failed program was:" >&5
11197
sed 's/^/| /' conftest.$ac_ext >&5
11199
ac_header_compiler=no
11202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204
echo "${ECHO_T}$ac_header_compiler" >&6; }
11206
# Is the header present?
11207
{ echo "$as_me:$LINENO: checking lzo1x.h presence" >&5
11208
echo $ECHO_N "checking lzo1x.h presence... $ECHO_C" >&6; }
11209
cat >conftest.$ac_ext <<_ACEOF
11212
cat confdefs.h >>conftest.$ac_ext
11213
cat >>conftest.$ac_ext <<_ACEOF
11214
/* end confdefs.h. */
11217
if { (ac_try="$ac_cpp conftest.$ac_ext"
11218
case "(($ac_try" in
11219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220
*) ac_try_echo=$ac_try;;
11222
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11225
grep -v '^ *+' conftest.er1 >conftest.err
11227
cat conftest.err >&5
11228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229
(exit $ac_status); } >/dev/null && {
11230
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231
test ! -s conftest.err
11233
ac_header_preproc=yes
11235
echo "$as_me: failed program was:" >&5
11236
sed 's/^/| /' conftest.$ac_ext >&5
11238
ac_header_preproc=no
11241
rm -f conftest.err conftest.$ac_ext
11242
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243
echo "${ECHO_T}$ac_header_preproc" >&6; }
11245
# So? What about this header?
11246
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249
echo "$as_me: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the compiler's result" >&5
11251
echo "$as_me: WARNING: lzo1x.h: proceeding with the compiler's result" >&2;}
11252
ac_header_preproc=yes
11255
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: present but cannot be compiled" >&5
11256
echo "$as_me: WARNING: lzo1x.h: present but cannot be compiled" >&2;}
11257
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: check for missing prerequisite headers?" >&5
11258
echo "$as_me: WARNING: lzo1x.h: check for missing prerequisite headers?" >&2;}
11259
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: see the Autoconf documentation" >&5
11260
echo "$as_me: WARNING: lzo1x.h: see the Autoconf documentation" >&2;}
11261
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: section \"Present But Cannot Be Compiled\"" >&5
11262
echo "$as_me: WARNING: lzo1x.h: section \"Present But Cannot Be Compiled\"" >&2;}
11263
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&5
11264
echo "$as_me: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&2;}
11265
{ echo "$as_me:$LINENO: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&5
11266
echo "$as_me: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&2;}
11268
## -------------------------------------------------- ##
11269
## Report this to openvpn-users@lists.sourceforge.net ##
11270
## -------------------------------------------------- ##
11272
) | sed "s/^/$as_me: WARNING: /" >&2
11275
{ echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11276
echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11277
if test "${ac_cv_header_lzo1x_h+set}" = set; then
11278
echo $ECHO_N "(cached) $ECHO_C" >&6
11280
ac_cv_header_lzo1x_h=$ac_header_preproc
11282
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11283
echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11286
if test $ac_cv_header_lzo1x_h = yes; then
7074
$as_echo "#define LZO_HEADER_DIR 1" >>confdefs.h
7078
ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
7079
if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
11287
7080
LZO_H="1" ; lzolibs=lzo
11384
7150
if test $havelzolib = 0 ; then
11385
{ { echo "$as_me:$LINENO: error: LZO headers were found but LZO library was not found" >&5
11386
echo "$as_me: error: LZO headers were found but LZO library was not found" >&2;}
11387
{ (exit 1); exit 1; }; }
7151
as_fn_error $? "LZO headers were found but LZO library was not found" "$LINENO" 5
11390
{ echo "$as_me:$LINENO: result: LZO headers were not found" >&5
11391
echo "${ECHO_T}LZO headers were not found" >&6; }
11392
{ echo "$as_me:$LINENO: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
11393
echo "${ECHO_T}LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6; }
11394
{ { echo "$as_me:$LINENO: error: Or try ./configure --disable-lzo" >&5
11395
echo "$as_me: error: Or try ./configure --disable-lzo" >&2;}
11396
{ (exit 1); exit 1; }; }
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LZO headers were not found" >&5
7155
$as_echo "LZO headers were not found" >&6; }
7156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
7157
$as_echo "LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6; }
7158
as_fn_error $? "Or try ./configure --disable-lzo" "$LINENO" 5
11401
7163
if test "$CRYPTO" = "yes"; then
11402
{ echo "$as_me:$LINENO: checking for OpenSSL Crypto Library and Header files..." >&5
11403
echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
11404
if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11405
{ echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11406
echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11407
if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11408
echo $ECHO_N "(cached) $ECHO_C" >&6
11410
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11411
echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11413
# Is the header compilable?
11414
{ echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
11415
echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
11416
cat >conftest.$ac_ext <<_ACEOF
11419
cat confdefs.h >>conftest.$ac_ext
11420
cat >>conftest.$ac_ext <<_ACEOF
11421
/* end confdefs.h. */
11422
$ac_includes_default
11423
#include <openssl/evp.h>
11425
rm -f conftest.$ac_objext
11426
if { (ac_try="$ac_compile"
11427
case "(($ac_try" in
11428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429
*) ac_try_echo=$ac_try;;
11431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432
(eval "$ac_compile") 2>conftest.er1
11434
grep -v '^ *+' conftest.er1 >conftest.err
11436
cat conftest.err >&5
11437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438
(exit $ac_status); } && {
11439
test -z "$ac_c_werror_flag" ||
11440
test ! -s conftest.err
11441
} && test -s conftest.$ac_objext; then
11442
ac_header_compiler=yes
11444
echo "$as_me: failed program was:" >&5
11445
sed 's/^/| /' conftest.$ac_ext >&5
11447
ac_header_compiler=no
11450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11452
echo "${ECHO_T}$ac_header_compiler" >&6; }
11454
# Is the header present?
11455
{ echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
11456
echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
11457
cat >conftest.$ac_ext <<_ACEOF
11460
cat confdefs.h >>conftest.$ac_ext
11461
cat >>conftest.$ac_ext <<_ACEOF
11462
/* end confdefs.h. */
11463
#include <openssl/evp.h>
11465
if { (ac_try="$ac_cpp conftest.$ac_ext"
11466
case "(($ac_try" in
11467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468
*) ac_try_echo=$ac_try;;
11470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11473
grep -v '^ *+' conftest.er1 >conftest.err
11475
cat conftest.err >&5
11476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477
(exit $ac_status); } >/dev/null && {
11478
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11479
test ! -s conftest.err
11481
ac_header_preproc=yes
11483
echo "$as_me: failed program was:" >&5
11484
sed 's/^/| /' conftest.$ac_ext >&5
11486
ac_header_preproc=no
11489
rm -f conftest.err conftest.$ac_ext
11490
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11491
echo "${ECHO_T}$ac_header_preproc" >&6; }
11493
# So? What about this header?
11494
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11496
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
11497
echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11498
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
11499
echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
11500
ac_header_preproc=yes
11503
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
11504
echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
11505
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
11506
echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
11507
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
11508
echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
11509
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
11510
echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
11511
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
11512
echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
11513
{ echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
11514
echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
11516
## -------------------------------------------------- ##
11517
## Report this to openvpn-users@lists.sourceforge.net ##
11518
## -------------------------------------------------- ##
11520
) | sed "s/^/$as_me: WARNING: /" >&2
11523
{ echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11524
echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11525
if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11526
echo $ECHO_N "(cached) $ECHO_C" >&6
11528
ac_cv_header_openssl_evp_h=$ac_header_preproc
11530
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11531
echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11534
if test $ac_cv_header_openssl_evp_h = yes; then
11537
{ { echo "$as_me:$LINENO: error: OpenSSL Crypto headers not found." >&5
11538
echo "$as_me: error: OpenSSL Crypto headers not found." >&2;}
11539
{ (exit 1); exit 1; }; }
7164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Crypto Library and Header files..." >&5
7165
$as_echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
7166
ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
7167
if test "x$ac_cv_header_openssl_evp_h" = x""yes; then :
7170
as_fn_error $? "OpenSSL Crypto headers not found." "$LINENO" 5
11544
7175
for lib in crypto eay32; do
11545
as_ac_Lib=`echo "ac_cv_lib_$lib''_EVP_CIPHER_CTX_init" | $as_tr_sh`
11546
{ echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_init in -l$lib" >&5
11547
echo $ECHO_N "checking for EVP_CIPHER_CTX_init in -l$lib... $ECHO_C" >&6; }
11548
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11549
echo $ECHO_N "(cached) $ECHO_C" >&6
7176
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_EVP_CIPHER_CTX_init" | $as_tr_sh`
7177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -l$lib" >&5
7178
$as_echo_n "checking for EVP_CIPHER_CTX_init in -l$lib... " >&6; }
7179
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7180
$as_echo_n "(cached) " >&6
11551
7182
ac_check_lib_save_LIBS=$LIBS
11552
7183
LIBS="-l$lib $LIBS"
11553
cat >conftest.$ac_ext <<_ACEOF
11556
cat confdefs.h >>conftest.$ac_ext
11557
cat >>conftest.$ac_ext <<_ACEOF
7184
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558
7185
/* end confdefs.h. */
11560
7187
/* Override any GCC internal prototype to avoid an error.
11639
7239
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11640
$EGREP "yes" >/dev/null 2>&1; then
11642
{ echo "$as_me:$LINENO: result: yes" >&5
11643
echo "${ECHO_T}yes" >&6; }
11645
cat >>confdefs.h <<\_ACEOF
11646
#define USE_CRYPTO 1
11650
for ac_func in EVP_CIPHER_CTX_set_key_length
11652
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11654
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656
echo $ECHO_N "(cached) $ECHO_C" >&6
11658
cat >conftest.$ac_ext <<_ACEOF
11661
cat confdefs.h >>conftest.$ac_ext
11662
cat >>conftest.$ac_ext <<_ACEOF
11663
/* end confdefs.h. */
11664
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666
#define $ac_func innocuous_$ac_func
11668
/* System header to define __stub macros and hopefully few prototypes,
11669
which can conflict with char $ac_func (); below.
11670
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671
<limits.h> exists even on freestanding compilers. */
11674
# include <limits.h>
11676
# include <assert.h>
11681
/* Override any GCC internal prototype to avoid an error.
11682
Use char because int might match the return type of a GCC
11683
builtin and then its argument prototype would still apply. */
11688
/* The GNU C library defines this for functions which it implements
11689
to always fail with ENOSYS. Some functions are actually named
11690
something starting with __ and the normal name is an alias. */
11691
#if defined __stub_$ac_func || defined __stub___$ac_func
11698
return $ac_func ();
11703
rm -f conftest.$ac_objext conftest$ac_exeext
11704
if { (ac_try="$ac_link"
11705
case "(($ac_try" in
11706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707
*) ac_try_echo=$ac_try;;
11709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710
(eval "$ac_link") 2>conftest.er1
11712
grep -v '^ *+' conftest.er1 >conftest.err
11714
cat conftest.err >&5
11715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716
(exit $ac_status); } && {
11717
test -z "$ac_c_werror_flag" ||
11718
test ! -s conftest.err
11719
} && test -s conftest$ac_exeext &&
11720
$as_test_x conftest$ac_exeext; then
11721
eval "$as_ac_var=yes"
11723
echo "$as_me: failed program was:" >&5
11724
sed 's/^/| /' conftest.$ac_ext >&5
11726
eval "$as_ac_var=no"
11729
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730
conftest$ac_exeext conftest.$ac_ext
11732
ac_res=`eval echo '${'$as_ac_var'}'`
11733
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11734
echo "${ECHO_T}$ac_res" >&6; }
11735
if test `eval echo '${'$as_ac_var'}'` = yes; then
11736
cat >>confdefs.h <<_ACEOF
11737
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745
for ac_header in openssl/engine.h
11747
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11750
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752
echo $ECHO_N "(cached) $ECHO_C" >&6
11754
ac_res=`eval echo '${'$as_ac_Header'}'`
11755
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11756
echo "${ECHO_T}$ac_res" >&6; }
11758
# Is the header compilable?
11759
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761
cat >conftest.$ac_ext <<_ACEOF
11764
cat confdefs.h >>conftest.$ac_ext
11765
cat >>conftest.$ac_ext <<_ACEOF
11766
/* end confdefs.h. */
11767
$ac_includes_default
11768
#include <$ac_header>
11770
rm -f conftest.$ac_objext
11771
if { (ac_try="$ac_compile"
11772
case "(($ac_try" in
11773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774
*) ac_try_echo=$ac_try;;
11776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777
(eval "$ac_compile") 2>conftest.er1
11779
grep -v '^ *+' conftest.er1 >conftest.err
11781
cat conftest.err >&5
11782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783
(exit $ac_status); } && {
11784
test -z "$ac_c_werror_flag" ||
11785
test ! -s conftest.err
11786
} && test -s conftest.$ac_objext; then
11787
ac_header_compiler=yes
11789
echo "$as_me: failed program was:" >&5
11790
sed 's/^/| /' conftest.$ac_ext >&5
11792
ac_header_compiler=no
11795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797
echo "${ECHO_T}$ac_header_compiler" >&6; }
11799
# Is the header present?
11800
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11802
cat >conftest.$ac_ext <<_ACEOF
11805
cat confdefs.h >>conftest.$ac_ext
11806
cat >>conftest.$ac_ext <<_ACEOF
11807
/* end confdefs.h. */
11808
#include <$ac_header>
11810
if { (ac_try="$ac_cpp conftest.$ac_ext"
11811
case "(($ac_try" in
11812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813
*) ac_try_echo=$ac_try;;
11815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11818
grep -v '^ *+' conftest.er1 >conftest.err
11820
cat conftest.err >&5
11821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822
(exit $ac_status); } >/dev/null && {
11823
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11824
test ! -s conftest.err
11826
ac_header_preproc=yes
11828
echo "$as_me: failed program was:" >&5
11829
sed 's/^/| /' conftest.$ac_ext >&5
11831
ac_header_preproc=no
11834
rm -f conftest.err conftest.$ac_ext
11835
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836
echo "${ECHO_T}$ac_header_preproc" >&6; }
11838
# So? What about this header?
11839
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845
ac_header_preproc=yes
11848
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11851
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11852
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11855
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11856
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11861
## -------------------------------------------------- ##
11862
## Report this to openvpn-users@lists.sourceforge.net ##
11863
## -------------------------------------------------- ##
11865
) | sed "s/^/$as_me: WARNING: /" >&2
11868
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11869
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871
echo $ECHO_N "(cached) $ECHO_C" >&6
11873
eval "$as_ac_Header=\$ac_header_preproc"
11875
ac_res=`eval echo '${'$as_ac_Header'}'`
11876
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11877
echo "${ECHO_T}$ac_res" >&6; }
11880
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11881
cat >>confdefs.h <<_ACEOF
11882
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11890
for ac_func in ENGINE_load_builtin_engines
11892
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11894
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896
echo $ECHO_N "(cached) $ECHO_C" >&6
11898
cat >conftest.$ac_ext <<_ACEOF
11901
cat confdefs.h >>conftest.$ac_ext
11902
cat >>conftest.$ac_ext <<_ACEOF
11903
/* end confdefs.h. */
11904
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906
#define $ac_func innocuous_$ac_func
11908
/* System header to define __stub macros and hopefully few prototypes,
11909
which can conflict with char $ac_func (); below.
11910
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911
<limits.h> exists even on freestanding compilers. */
11914
# include <limits.h>
11916
# include <assert.h>
11921
/* Override any GCC internal prototype to avoid an error.
11922
Use char because int might match the return type of a GCC
11923
builtin and then its argument prototype would still apply. */
11928
/* The GNU C library defines this for functions which it implements
11929
to always fail with ENOSYS. Some functions are actually named
11930
something starting with __ and the normal name is an alias. */
11931
#if defined __stub_$ac_func || defined __stub___$ac_func
11938
return $ac_func ();
11943
rm -f conftest.$ac_objext conftest$ac_exeext
11944
if { (ac_try="$ac_link"
11945
case "(($ac_try" in
11946
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947
*) ac_try_echo=$ac_try;;
11949
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950
(eval "$ac_link") 2>conftest.er1
11952
grep -v '^ *+' conftest.er1 >conftest.err
11954
cat conftest.err >&5
11955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956
(exit $ac_status); } && {
11957
test -z "$ac_c_werror_flag" ||
11958
test ! -s conftest.err
11959
} && test -s conftest$ac_exeext &&
11960
$as_test_x conftest$ac_exeext; then
11961
eval "$as_ac_var=yes"
11963
echo "$as_me: failed program was:" >&5
11964
sed 's/^/| /' conftest.$ac_ext >&5
11966
eval "$as_ac_var=no"
11969
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970
conftest$ac_exeext conftest.$ac_ext
11972
ac_res=`eval echo '${'$as_ac_var'}'`
11973
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11974
echo "${ECHO_T}$ac_res" >&6; }
11975
if test `eval echo '${'$as_ac_var'}'` = yes; then
11976
cat >>confdefs.h <<_ACEOF
11977
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984
for ac_func in ENGINE_register_all_complete
11986
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11988
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990
echo $ECHO_N "(cached) $ECHO_C" >&6
11992
cat >conftest.$ac_ext <<_ACEOF
11995
cat confdefs.h >>conftest.$ac_ext
11996
cat >>conftest.$ac_ext <<_ACEOF
11997
/* end confdefs.h. */
11998
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000
#define $ac_func innocuous_$ac_func
12002
/* System header to define __stub macros and hopefully few prototypes,
12003
which can conflict with char $ac_func (); below.
12004
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005
<limits.h> exists even on freestanding compilers. */
12008
# include <limits.h>
12010
# include <assert.h>
12015
/* Override any GCC internal prototype to avoid an error.
12016
Use char because int might match the return type of a GCC
12017
builtin and then its argument prototype would still apply. */
12022
/* The GNU C library defines this for functions which it implements
12023
to always fail with ENOSYS. Some functions are actually named
12024
something starting with __ and the normal name is an alias. */
12025
#if defined __stub_$ac_func || defined __stub___$ac_func
12032
return $ac_func ();
12037
rm -f conftest.$ac_objext conftest$ac_exeext
12038
if { (ac_try="$ac_link"
12039
case "(($ac_try" in
12040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041
*) ac_try_echo=$ac_try;;
12043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044
(eval "$ac_link") 2>conftest.er1
12046
grep -v '^ *+' conftest.er1 >conftest.err
12048
cat conftest.err >&5
12049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050
(exit $ac_status); } && {
12051
test -z "$ac_c_werror_flag" ||
12052
test ! -s conftest.err
12053
} && test -s conftest$ac_exeext &&
12054
$as_test_x conftest$ac_exeext; then
12055
eval "$as_ac_var=yes"
12057
echo "$as_me: failed program was:" >&5
12058
sed 's/^/| /' conftest.$ac_ext >&5
12060
eval "$as_ac_var=no"
12063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12064
conftest$ac_exeext conftest.$ac_ext
12066
ac_res=`eval echo '${'$as_ac_var'}'`
12067
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12068
echo "${ECHO_T}$ac_res" >&6; }
12069
if test `eval echo '${'$as_ac_var'}'` = yes; then
12070
cat >>confdefs.h <<_ACEOF
12071
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078
for ac_func in ENGINE_cleanup
12080
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12082
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084
echo $ECHO_N "(cached) $ECHO_C" >&6
12086
cat >conftest.$ac_ext <<_ACEOF
12089
cat confdefs.h >>conftest.$ac_ext
12090
cat >>conftest.$ac_ext <<_ACEOF
12091
/* end confdefs.h. */
12092
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094
#define $ac_func innocuous_$ac_func
12096
/* System header to define __stub macros and hopefully few prototypes,
12097
which can conflict with char $ac_func (); below.
12098
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099
<limits.h> exists even on freestanding compilers. */
12102
# include <limits.h>
12104
# include <assert.h>
12109
/* Override any GCC internal prototype to avoid an error.
12110
Use char because int might match the return type of a GCC
12111
builtin and then its argument prototype would still apply. */
12116
/* The GNU C library defines this for functions which it implements
12117
to always fail with ENOSYS. Some functions are actually named
12118
something starting with __ and the normal name is an alias. */
12119
#if defined __stub_$ac_func || defined __stub___$ac_func
12126
return $ac_func ();
12131
rm -f conftest.$ac_objext conftest$ac_exeext
12132
if { (ac_try="$ac_link"
12133
case "(($ac_try" in
12134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135
*) ac_try_echo=$ac_try;;
12137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138
(eval "$ac_link") 2>conftest.er1
12140
grep -v '^ *+' conftest.er1 >conftest.err
12142
cat conftest.err >&5
12143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144
(exit $ac_status); } && {
12145
test -z "$ac_c_werror_flag" ||
12146
test ! -s conftest.err
12147
} && test -s conftest$ac_exeext &&
12148
$as_test_x conftest$ac_exeext; then
12149
eval "$as_ac_var=yes"
12151
echo "$as_me: failed program was:" >&5
12152
sed 's/^/| /' conftest.$ac_ext >&5
12154
eval "$as_ac_var=no"
12157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158
conftest$ac_exeext conftest.$ac_ext
12160
ac_res=`eval echo '${'$as_ac_var'}'`
12161
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12162
echo "${ECHO_T}$ac_res" >&6; }
12163
if test `eval echo '${'$as_ac_var'}'` = yes; then
12164
cat >>confdefs.h <<_ACEOF
12165
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173
{ { echo "$as_me:$LINENO: error: OpenSSL crypto Library is too old." >&5
12174
echo "$as_me: error: OpenSSL crypto Library is too old." >&2;}
12175
{ (exit 1); exit 1; }; }
7240
$EGREP "yes" >/dev/null 2>&1; then :
7242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7243
$as_echo "yes" >&6; }
7245
$as_echo "#define USE_CRYPTO 1" >>confdefs.h
7247
for ac_func in EVP_CIPHER_CTX_set_key_length
7249
ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
7250
if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = x""yes; then :
7251
cat >>confdefs.h <<_ACEOF
7252
#define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
7259
for ac_header in openssl/engine.h
7261
ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
7262
if test "x$ac_cv_header_openssl_engine_h" = x""yes; then :
7263
cat >>confdefs.h <<_ACEOF
7264
#define HAVE_OPENSSL_ENGINE_H 1
7271
for ac_func in ENGINE_load_builtin_engines
7273
ac_fn_c_check_func "$LINENO" "ENGINE_load_builtin_engines" "ac_cv_func_ENGINE_load_builtin_engines"
7274
if test "x$ac_cv_func_ENGINE_load_builtin_engines" = x""yes; then :
7275
cat >>confdefs.h <<_ACEOF
7276
#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1
7282
for ac_func in ENGINE_register_all_complete
7284
ac_fn_c_check_func "$LINENO" "ENGINE_register_all_complete" "ac_cv_func_ENGINE_register_all_complete"
7285
if test "x$ac_cv_func_ENGINE_register_all_complete" = x""yes; then :
7286
cat >>confdefs.h <<_ACEOF
7287
#define HAVE_ENGINE_REGISTER_ALL_COMPLETE 1
7293
for ac_func in ENGINE_cleanup
7295
ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
7296
if test "x$ac_cv_func_ENGINE_cleanup" = x""yes; then :
7297
cat >>confdefs.h <<_ACEOF
7298
#define HAVE_ENGINE_CLEANUP 1
7306
as_fn_error $? "OpenSSL crypto Library is too old." "$LINENO" 5
12178
7309
rm -f conftest*
12182
7313
if test "$SSL" = "yes"; then
12183
{ echo "$as_me:$LINENO: checking for OpenSSL SSL Library and Header files..." >&5
12184
echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
12185
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12186
{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12187
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12188
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12189
echo $ECHO_N "(cached) $ECHO_C" >&6
12191
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12192
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12194
# Is the header compilable?
12195
{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12196
echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12197
cat >conftest.$ac_ext <<_ACEOF
12200
cat confdefs.h >>conftest.$ac_ext
12201
cat >>conftest.$ac_ext <<_ACEOF
12202
/* end confdefs.h. */
12203
$ac_includes_default
12204
#include <openssl/ssl.h>
12206
rm -f conftest.$ac_objext
12207
if { (ac_try="$ac_compile"
12208
case "(($ac_try" in
12209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210
*) ac_try_echo=$ac_try;;
12212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213
(eval "$ac_compile") 2>conftest.er1
12215
grep -v '^ *+' conftest.er1 >conftest.err
12217
cat conftest.err >&5
12218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
(exit $ac_status); } && {
12220
test -z "$ac_c_werror_flag" ||
12221
test ! -s conftest.err
12222
} && test -s conftest.$ac_objext; then
12223
ac_header_compiler=yes
12225
echo "$as_me: failed program was:" >&5
12226
sed 's/^/| /' conftest.$ac_ext >&5
12228
ac_header_compiler=no
12231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233
echo "${ECHO_T}$ac_header_compiler" >&6; }
12235
# Is the header present?
12236
{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12237
echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12238
cat >conftest.$ac_ext <<_ACEOF
12241
cat confdefs.h >>conftest.$ac_ext
12242
cat >>conftest.$ac_ext <<_ACEOF
12243
/* end confdefs.h. */
12244
#include <openssl/ssl.h>
12246
if { (ac_try="$ac_cpp conftest.$ac_ext"
12247
case "(($ac_try" in
12248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249
*) ac_try_echo=$ac_try;;
12251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12254
grep -v '^ *+' conftest.er1 >conftest.err
12256
cat conftest.err >&5
12257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258
(exit $ac_status); } >/dev/null && {
12259
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12260
test ! -s conftest.err
12262
ac_header_preproc=yes
12264
echo "$as_me: failed program was:" >&5
12265
sed 's/^/| /' conftest.$ac_ext >&5
12267
ac_header_preproc=no
12270
rm -f conftest.err conftest.$ac_ext
12271
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12272
echo "${ECHO_T}$ac_header_preproc" >&6; }
12274
# So? What about this header?
12275
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12277
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12278
echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12279
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12280
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12281
ac_header_preproc=yes
12284
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12285
echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12286
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12287
echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12288
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12289
echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12290
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12291
echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12292
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12293
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12294
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12295
echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12297
## -------------------------------------------------- ##
12298
## Report this to openvpn-users@lists.sourceforge.net ##
12299
## -------------------------------------------------- ##
12301
) | sed "s/^/$as_me: WARNING: /" >&2
12304
{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12305
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12306
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12307
echo $ECHO_N "(cached) $ECHO_C" >&6
12309
ac_cv_header_openssl_ssl_h=$ac_header_preproc
12311
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12312
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12315
if test $ac_cv_header_openssl_ssl_h = yes; then
12318
{ { echo "$as_me:$LINENO: error: OpenSSL SSL headers not found." >&5
12319
echo "$as_me: error: OpenSSL SSL headers not found." >&2;}
12320
{ (exit 1); exit 1; }; }
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL SSL Library and Header files..." >&5
7315
$as_echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
7316
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
7317
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
7320
as_fn_error $? "OpenSSL SSL headers not found." "$LINENO" 5
12326
7326
for lib in ssl ssl32; do
12327
as_ac_Lib=`echo "ac_cv_lib_$lib''_SSL_CTX_new" | $as_tr_sh`
12328
{ echo "$as_me:$LINENO: checking for SSL_CTX_new in -l$lib" >&5
12329
echo $ECHO_N "checking for SSL_CTX_new in -l$lib... $ECHO_C" >&6; }
12330
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12331
echo $ECHO_N "(cached) $ECHO_C" >&6
7327
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_SSL_CTX_new" | $as_tr_sh`
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -l$lib" >&5
7329
$as_echo_n "checking for SSL_CTX_new in -l$lib... " >&6; }
7330
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7331
$as_echo_n "(cached) " >&6
12333
7333
ac_check_lib_save_LIBS=$LIBS
12334
7334
LIBS="-l$lib $LIBS"
12335
cat >conftest.$ac_ext <<_ACEOF
12338
cat confdefs.h >>conftest.$ac_ext
12339
cat >>conftest.$ac_ext <<_ACEOF
7335
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340
7336
/* end confdefs.h. */
12342
7338
/* Override any GCC internal prototype to avoid an error.
12438
rm -f conftest.$ac_objext conftest$ac_exeext
12439
if { (ac_try="$ac_link"
12440
case "(($ac_try" in
12441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442
*) ac_try_echo=$ac_try;;
12444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445
(eval "$ac_link") 2>conftest.er1
12447
grep -v '^ *+' conftest.er1 >conftest.err
12449
cat conftest.err >&5
12450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451
(exit $ac_status); } && {
12452
test -z "$ac_c_werror_flag" ||
12453
test ! -s conftest.err
12454
} && test -s conftest$ac_exeext &&
12455
$as_test_x conftest$ac_exeext; then
7407
if ac_fn_c_try_link "$LINENO"; then :
12456
7408
ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
12458
echo "$as_me: failed program was:" >&5
12459
sed 's/^/| /' conftest.$ac_ext >&5
12461
ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
7410
ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
12464
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465
conftest$ac_exeext conftest.$ac_ext
7412
rm -f core conftest.err conftest.$ac_objext \
7413
conftest$ac_exeext conftest.$ac_ext
12466
7414
LIBS=$ac_check_lib_save_LIBS
12468
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
12469
echo "${ECHO_T}$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
12470
if test $ac_cv_lib_ssl_CRYPTO_mem_ctrl = yes; then
12473
cat >>confdefs.h <<\_ACEOF
12474
#define CRYPTO_MDEBUG 1
12477
{ echo "$as_me:$LINENO: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
12478
echo "${ECHO_T}NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6; }
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
7417
$as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
7418
if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = x""yes; then :
7421
$as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
7423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
7424
$as_echo "NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6; }
12481
{ { echo "$as_me:$LINENO: error: Memory Debugging function in OpenSSL library not found." >&5
12482
echo "$as_me: error: Memory Debugging function in OpenSSL library not found." >&2;}
12483
{ (exit 1); exit 1; }; }
7427
as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
12490
cat >>confdefs.h <<\_ACEOF
7434
$as_echo "#define USE_SSL 1" >>confdefs.h
7439
if test "$X509ALTUSERNAME" = "yes"; then
7441
$as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
12497
7445
if test "$PKCS11" = "yes"; then
12498
{ echo "$as_me:$LINENO: checking for pkcs11-helper Library and Header files..." >&5
12499
echo "$as_me: checking for pkcs11-helper Library and Header files..." >&6;}
12500
if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12501
{ echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12502
echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12503
if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12504
echo $ECHO_N "(cached) $ECHO_C" >&6
12506
{ echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12507
echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12509
# Is the header compilable?
12510
{ echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h usability" >&5
12511
echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h usability... $ECHO_C" >&6; }
12512
cat >conftest.$ac_ext <<_ACEOF
12515
cat confdefs.h >>conftest.$ac_ext
12516
cat >>conftest.$ac_ext <<_ACEOF
12517
/* end confdefs.h. */
12518
$ac_includes_default
12519
#include <pkcs11-helper-1.0/pkcs11h-core.h>
12521
rm -f conftest.$ac_objext
12522
if { (ac_try="$ac_compile"
12523
case "(($ac_try" in
12524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525
*) ac_try_echo=$ac_try;;
12527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528
(eval "$ac_compile") 2>conftest.er1
12530
grep -v '^ *+' conftest.er1 >conftest.err
12532
cat conftest.err >&5
12533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534
(exit $ac_status); } && {
12535
test -z "$ac_c_werror_flag" ||
12536
test ! -s conftest.err
12537
} && test -s conftest.$ac_objext; then
12538
ac_header_compiler=yes
12540
echo "$as_me: failed program was:" >&5
12541
sed 's/^/| /' conftest.$ac_ext >&5
12543
ac_header_compiler=no
12546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548
echo "${ECHO_T}$ac_header_compiler" >&6; }
12550
# Is the header present?
12551
{ echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h presence" >&5
12552
echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h presence... $ECHO_C" >&6; }
12553
cat >conftest.$ac_ext <<_ACEOF
12556
cat confdefs.h >>conftest.$ac_ext
12557
cat >>conftest.$ac_ext <<_ACEOF
12558
/* end confdefs.h. */
12559
#include <pkcs11-helper-1.0/pkcs11h-core.h>
12561
if { (ac_try="$ac_cpp conftest.$ac_ext"
12562
case "(($ac_try" in
12563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564
*) ac_try_echo=$ac_try;;
12566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12569
grep -v '^ *+' conftest.er1 >conftest.err
12571
cat conftest.err >&5
12572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573
(exit $ac_status); } >/dev/null && {
12574
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12575
test ! -s conftest.err
12577
ac_header_preproc=yes
12579
echo "$as_me: failed program was:" >&5
12580
sed 's/^/| /' conftest.$ac_ext >&5
12582
ac_header_preproc=no
12585
rm -f conftest.err conftest.$ac_ext
12586
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587
echo "${ECHO_T}$ac_header_preproc" >&6; }
12589
# So? What about this header?
12590
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&5
12595
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&2;}
12596
ac_header_preproc=yes
12599
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&5
12600
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&2;}
12601
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: check for missing prerequisite headers?" >&5
12602
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: check for missing prerequisite headers?" >&2;}
12603
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&5
12604
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&2;}
12605
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: section \"Present But Cannot Be Compiled\"" >&5
12606
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: section \"Present But Cannot Be Compiled\"" >&2;}
12607
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&5
12608
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&2;}
12609
{ echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&5
12610
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&2;}
12612
## -------------------------------------------------- ##
12613
## Report this to openvpn-users@lists.sourceforge.net ##
12614
## -------------------------------------------------- ##
12616
) | sed "s/^/$as_me: WARNING: /" >&2
12619
{ echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12620
echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12621
if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12622
echo $ECHO_N "(cached) $ECHO_C" >&6
12624
ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h=$ac_header_preproc
12626
{ echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12627
echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12630
if test $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h = yes; then
12631
{ echo "$as_me:$LINENO: checking for pkcs11h_initialize in -lpkcs11-helper" >&5
12632
echo $ECHO_N "checking for pkcs11h_initialize in -lpkcs11-helper... $ECHO_C" >&6; }
12633
if test "${ac_cv_lib_pkcs11_helper_pkcs11h_initialize+set}" = set; then
12634
echo $ECHO_N "(cached) $ECHO_C" >&6
7446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkcs11-helper Library and Header files..." >&5
7447
$as_echo "$as_me: checking for pkcs11-helper Library and Header files..." >&6;}
7448
ac_fn_c_check_header_mongrel "$LINENO" "pkcs11-helper-1.0/pkcs11h-core.h" "ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" "$ac_includes_default"
7449
if test "x$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" = x""yes; then :
7450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkcs11h_initialize in -lpkcs11-helper" >&5
7451
$as_echo_n "checking for pkcs11h_initialize in -lpkcs11-helper... " >&6; }
7452
if test "${ac_cv_lib_pkcs11_helper_pkcs11h_initialize+set}" = set; then :
7453
$as_echo_n "(cached) " >&6
12636
7455
ac_check_lib_save_LIBS=$LIBS
12637
7456
LIBS="-lpkcs11-helper $LIBS"
12638
cat >conftest.$ac_ext <<_ACEOF
12641
cat confdefs.h >>conftest.$ac_ext
12642
cat >>conftest.$ac_ext <<_ACEOF
7457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643
7458
/* end confdefs.h. */
12645
7460
/* Override any GCC internal prototype to avoid an error.
12826
7594
if test "$STRICT_OPTIONS" = "yes"; then
12828
cat >>confdefs.h <<\_ACEOF
12829
#define STRICT_OPTIONS_CHECK 1
7596
$as_echo "#define STRICT_OPTIONS_CHECK 1" >>confdefs.h
12834
7600
if test "$PASSWORD_SAVE" = "yes"; then
12836
cat >>confdefs.h <<\_ACEOF
12837
#define ENABLE_PASSWORD_SAVE 1
7602
$as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
12842
7606
if test "$SELINUX" = "yes"; then
12843
{ echo "$as_me:$LINENO: checking for libselinux Library and Header files..." >&5
12844
echo "$as_me: checking for libselinux Library and Header files..." >&6;}
12845
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12846
{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12847
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12848
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12849
echo $ECHO_N "(cached) $ECHO_C" >&6
12851
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12852
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12854
# Is the header compilable?
12855
{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
12856
echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
12857
cat >conftest.$ac_ext <<_ACEOF
12860
cat confdefs.h >>conftest.$ac_ext
12861
cat >>conftest.$ac_ext <<_ACEOF
12862
/* end confdefs.h. */
12863
$ac_includes_default
12864
#include <selinux/selinux.h>
12866
rm -f conftest.$ac_objext
12867
if { (ac_try="$ac_compile"
12868
case "(($ac_try" in
12869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870
*) ac_try_echo=$ac_try;;
12872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873
(eval "$ac_compile") 2>conftest.er1
12875
grep -v '^ *+' conftest.er1 >conftest.err
12877
cat conftest.err >&5
12878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879
(exit $ac_status); } && {
12880
test -z "$ac_c_werror_flag" ||
12881
test ! -s conftest.err
12882
} && test -s conftest.$ac_objext; then
12883
ac_header_compiler=yes
12885
echo "$as_me: failed program was:" >&5
12886
sed 's/^/| /' conftest.$ac_ext >&5
12888
ac_header_compiler=no
12891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12893
echo "${ECHO_T}$ac_header_compiler" >&6; }
12895
# Is the header present?
12896
{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
12897
echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
12898
cat >conftest.$ac_ext <<_ACEOF
12901
cat confdefs.h >>conftest.$ac_ext
12902
cat >>conftest.$ac_ext <<_ACEOF
12903
/* end confdefs.h. */
12904
#include <selinux/selinux.h>
12906
if { (ac_try="$ac_cpp conftest.$ac_ext"
12907
case "(($ac_try" in
12908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909
*) ac_try_echo=$ac_try;;
12911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12914
grep -v '^ *+' conftest.er1 >conftest.err
12916
cat conftest.err >&5
12917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918
(exit $ac_status); } >/dev/null && {
12919
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12920
test ! -s conftest.err
12922
ac_header_preproc=yes
12924
echo "$as_me: failed program was:" >&5
12925
sed 's/^/| /' conftest.$ac_ext >&5
12927
ac_header_preproc=no
12930
rm -f conftest.err conftest.$ac_ext
12931
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12932
echo "${ECHO_T}$ac_header_preproc" >&6; }
12934
# So? What about this header?
12935
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12937
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
12938
echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12939
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
12940
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
12941
ac_header_preproc=yes
12944
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
12945
echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
12946
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
12947
echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
12948
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
12949
echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
12950
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
12951
echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
12952
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
12953
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
12954
{ echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
12955
echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
12957
## -------------------------------------------------- ##
12958
## Report this to openvpn-users@lists.sourceforge.net ##
12959
## -------------------------------------------------- ##
12961
) | sed "s/^/$as_me: WARNING: /" >&2
12964
{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12965
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12966
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12967
echo $ECHO_N "(cached) $ECHO_C" >&6
12969
ac_cv_header_selinux_selinux_h=$ac_header_preproc
12971
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12972
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12975
if test $ac_cv_header_selinux_selinux_h = yes; then
12976
{ echo "$as_me:$LINENO: checking for setcon in -lselinux" >&5
12977
echo $ECHO_N "checking for setcon in -lselinux... $ECHO_C" >&6; }
12978
if test "${ac_cv_lib_selinux_setcon+set}" = set; then
12979
echo $ECHO_N "(cached) $ECHO_C" >&6
7607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libselinux Library and Header files..." >&5
7608
$as_echo "$as_me: checking for libselinux Library and Header files..." >&6;}
7609
ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
7610
if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
7611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
7612
$as_echo_n "checking for setcon in -lselinux... " >&6; }
7613
if test "${ac_cv_lib_selinux_setcon+set}" = set; then :
7614
$as_echo_n "(cached) " >&6
12981
7616
ac_check_lib_save_LIBS=$LIBS
12982
7617
LIBS="-lselinux $LIBS"
12983
cat >conftest.$ac_ext <<_ACEOF
12986
cat confdefs.h >>conftest.$ac_ext
12987
cat >>conftest.$ac_ext <<_ACEOF
7618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988
7619
/* end confdefs.h. */
12990
7621
/* Override any GCC internal prototype to avoid an error.
13740
8480
tmp=./conf$$-$RANDOM
13741
8481
(umask 077 && mkdir "$tmp")
13744
echo "$me: cannot create a temporary directory in ." >&2
13745
{ (exit 1); exit 1; }
13749
# Set up the sed scripts for CONFIG_FILES section.
13752
# No need to generate the scripts if there are no CONFIG_FILES.
13753
# This happens for instance when ./config.status config.h
8482
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8484
# Set up the scripts for CONFIG_FILES section.
8485
# No need to generate them if there are no CONFIG_FILES.
8486
# This happens for instance with `./config.status config.h'.
13754
8487
if test -n "$CONFIG_FILES"; then
13761
for ac_last_try in false false false false false :; do
13762
cat >conf$$subs.sed <<_ACEOF
13763
SHELL!$SHELL$ac_delim
13764
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13765
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13766
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13767
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13768
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13769
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13770
exec_prefix!$exec_prefix$ac_delim
13771
prefix!$prefix$ac_delim
13772
program_transform_name!$program_transform_name$ac_delim
13773
bindir!$bindir$ac_delim
13774
sbindir!$sbindir$ac_delim
13775
libexecdir!$libexecdir$ac_delim
13776
datarootdir!$datarootdir$ac_delim
13777
datadir!$datadir$ac_delim
13778
sysconfdir!$sysconfdir$ac_delim
13779
sharedstatedir!$sharedstatedir$ac_delim
13780
localstatedir!$localstatedir$ac_delim
13781
includedir!$includedir$ac_delim
13782
oldincludedir!$oldincludedir$ac_delim
13783
docdir!$docdir$ac_delim
13784
infodir!$infodir$ac_delim
13785
htmldir!$htmldir$ac_delim
13786
dvidir!$dvidir$ac_delim
13787
pdfdir!$pdfdir$ac_delim
13788
psdir!$psdir$ac_delim
13789
libdir!$libdir$ac_delim
13790
localedir!$localedir$ac_delim
13791
mandir!$mandir$ac_delim
13792
DEFS!$DEFS$ac_delim
13793
ECHO_C!$ECHO_C$ac_delim
13794
ECHO_N!$ECHO_N$ac_delim
13795
ECHO_T!$ECHO_T$ac_delim
13796
LIBS!$LIBS$ac_delim
13797
build_alias!$build_alias$ac_delim
13798
host_alias!$host_alias$ac_delim
13799
target_alias!$target_alias$ac_delim
13800
build!$build$ac_delim
13801
build_cpu!$build_cpu$ac_delim
13802
build_vendor!$build_vendor$ac_delim
13803
build_os!$build_os$ac_delim
13804
host!$host$ac_delim
13805
host_cpu!$host_cpu$ac_delim
13806
host_vendor!$host_vendor$ac_delim
13807
host_os!$host_os$ac_delim
13808
target!$target$ac_delim
13809
target_cpu!$target_cpu$ac_delim
13810
target_vendor!$target_vendor$ac_delim
13811
target_os!$target_os$ac_delim
13812
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13813
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13814
INSTALL_DATA!$INSTALL_DATA$ac_delim
13815
am__isrc!$am__isrc$ac_delim
13816
CYGPATH_W!$CYGPATH_W$ac_delim
13817
PACKAGE!$PACKAGE$ac_delim
13818
VERSION!$VERSION$ac_delim
13819
ACLOCAL!$ACLOCAL$ac_delim
13820
AUTOCONF!$AUTOCONF$ac_delim
13821
AUTOMAKE!$AUTOMAKE$ac_delim
13822
AUTOHEADER!$AUTOHEADER$ac_delim
13823
MAKEINFO!$MAKEINFO$ac_delim
13824
install_sh!$install_sh$ac_delim
13825
STRIP!$STRIP$ac_delim
13826
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13827
mkdir_p!$mkdir_p$ac_delim
13829
SET_MAKE!$SET_MAKE$ac_delim
13830
am__leading_dot!$am__leading_dot$ac_delim
13831
AMTAR!$AMTAR$ac_delim
13832
am__tar!$am__tar$ac_delim
13833
am__untar!$am__untar$ac_delim
13834
IFCONFIG!$IFCONFIG$ac_delim
13835
IPROUTE!$IPROUTE$ac_delim
13836
ROUTE!$ROUTE$ac_delim
13838
CFLAGS!$CFLAGS$ac_delim
13839
LDFLAGS!$LDFLAGS$ac_delim
13840
CPPFLAGS!$CPPFLAGS$ac_delim
13841
ac_ct_CC!$ac_ct_CC$ac_delim
13842
EXEEXT!$EXEEXT$ac_delim
13843
OBJEXT!$OBJEXT$ac_delim
13844
DEPDIR!$DEPDIR$ac_delim
13845
am__include!$am__include$ac_delim
13846
am__quote!$am__quote$ac_delim
13847
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13848
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13849
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13850
CCDEPMODE!$CCDEPMODE$ac_delim
13851
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13852
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13854
GREP!$GREP$ac_delim
13855
EGREP!$EGREP$ac_delim
13856
MAN2HTML!$MAN2HTML$ac_delim
13857
LIBOBJS!$LIBOBJS$ac_delim
13858
PTHREAD_CC!$PTHREAD_CC$ac_delim
13859
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
13862
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13864
elif $ac_last_try; then
13865
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13866
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13867
{ (exit 1); exit 1; }; }
13869
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13873
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13874
if test -n "$ac_eof"; then
13875
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13876
ac_eof=`expr $ac_eof + 1`
13879
cat >>$CONFIG_STATUS <<_ACEOF
13880
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13881
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13884
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13885
s/^/s,@/; s/!/@,|#_!!_#|/
13888
s/'"$ac_delim"'$/,g/; t
13890
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13891
' >>$CONFIG_STATUS <conf$$subs.sed
13892
rm -f conf$$subs.sed
13893
cat >>$CONFIG_STATUS <<_ACEOF
13899
for ac_last_try in false false false false false :; do
13900
cat >conf$$subs.sed <<_ACEOF
13901
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
13902
TAP_ID!$TAP_ID$ac_delim
13903
TAP_WIN32_MIN_MAJOR!$TAP_WIN32_MIN_MAJOR$ac_delim
13904
TAP_WIN32_MIN_MINOR!$TAP_WIN32_MIN_MINOR$ac_delim
13905
win32datadir!$win32datadir$ac_delim
13906
WIN32_TRUE!$WIN32_TRUE$ac_delim
13907
WIN32_FALSE!$WIN32_FALSE$ac_delim
13908
LTLIBOBJS!$LTLIBOBJS$ac_delim
13911
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
13913
elif $ac_last_try; then
13914
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13915
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13916
{ (exit 1); exit 1; }; }
13918
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13922
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13923
if test -n "$ac_eof"; then
13924
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13925
ac_eof=`expr $ac_eof + 1`
13928
cat >>$CONFIG_STATUS <<_ACEOF
13929
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13930
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13933
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13934
s/^/s,@/; s/!/@,|#_!!_#|/
13937
s/'"$ac_delim"'$/,g/; t
13939
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13940
' >>$CONFIG_STATUS <conf$$subs.sed
13941
rm -f conf$$subs.sed
13942
cat >>$CONFIG_STATUS <<_ACEOF
13949
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13950
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8490
ac_cr=`echo X | tr X '\015'`
8491
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8492
# But we know of no other shell where ac_cr would be empty at this
8493
# point, so we can use a bashism as a fallback.
8494
if test "x$ac_cr" = x; then
8495
eval ac_cr=\$\'\\r\'
8497
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8498
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8504
echo 'BEGIN {' >"$tmp/subs1.awk" &&
8509
echo "cat >conf$$subs.awk <<_ACEOF" &&
8510
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8513
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8514
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8516
for ac_last_try in false false false false false :; do
8517
. ./conf$$subs.sh ||
8518
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8520
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8521
if test $ac_delim_n = $ac_delim_num; then
8523
elif $ac_last_try; then
8524
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8526
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8531
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8532
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8536
s/^/S["/; s/!.*/"]=/
8546
s/\(.\{148\}\)..*/\1/
8548
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8553
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8560
s/\(.\{148\}\)..*/\1/
8562
s/["\\]/\\&/g; s/^/"/; s/$/"/
8566
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8571
' <conf$$subs.awk | sed '
8576
' >>$CONFIG_STATUS || ac_write_fail=1
8577
rm -f conf$$subs.awk
8578
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8580
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8581
for (key in S) S_is_set[key] = 1
8587
nfields = split(line, field, "@")
8589
len = length(field[1])
8590
for (i = 2; i < nfields; i++) {
8592
keylen = length(key)
8593
if (S_is_set[key]) {
8595
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8596
len += length(value) + length(field[++i])
8607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8608
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8609
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8612
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8613
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8616
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8617
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13951
8618
# trailing colons and then remove the whole line if VPATH becomes empty
13952
8619
# (actually we leave an empty line to preserve line numbers).
13953
8620
if test "x$srcdir" = x.; then
13954
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13955
s/:*\$(srcdir):*/:/
13956
s/:*\${srcdir}:*/:/
13958
s/^\([^=]*=[ ]*\):*/\1/
8621
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13960
8635
s/^[^=]*=[ ]*$//
13964
cat >>$CONFIG_STATUS <<\_ACEOF
8639
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965
8640
fi # test -n "$CONFIG_FILES"
13968
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8642
# Set up the scripts for CONFIG_HEADERS section.
8643
# No need to generate them if there are no CONFIG_HEADERS.
8644
# This happens for instance with `./config.status Makefile'.
8645
if test -n "$CONFIG_HEADERS"; then
8646
cat >"$tmp/defines.awk" <<\_ACAWK ||
8650
# Transform confdefs.h into an awk script `defines.awk', embedded as
8651
# here-document in config.status, that substitutes the proper values into
8652
# config.h.in to produce config.h.
8654
# Create a delimiter string that does not exist in confdefs.h, to ease
8655
# handling of long lines.
8657
for ac_last_try in false false :; do
8658
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8659
if test -z "$ac_t"; then
8661
elif $ac_last_try; then
8662
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8664
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8668
# For the awk script, D is an array of macro values keyed by name,
8669
# likewise P contains macro parameters if any. Preserve backslash
8670
# newline sequences.
8672
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8674
s/.\{148\}/&'"$ac_delim"'/g
8677
s/^[ ]*#[ ]*define[ ][ ]*/ /
8684
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8686
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8690
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8691
D["\1"]=" \3\\\\\\n"\\/p
8693
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8698
s/.\{148\}/&'"$ac_delim"'/g
8703
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8706
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8708
' <confdefs.h | sed '
8709
s/'"$ac_delim"'/"\\\
8710
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8712
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8713
for (key in D) D_is_set[key] = 1
8716
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8718
split(line, arg, " ")
8719
if (arg[1] == "#") {
8723
defundef = substr(arg[1], 2)
8726
split(mac1, mac2, "(") #)
8728
prefix = substr(line, 1, index(line, defundef) - 1)
8729
if (D_is_set[macro]) {
8730
# Preserve the white space surrounding the "#".
8731
print prefix "define", macro P[macro] D[macro]
8734
# Replace #undef with comments. This is necessary, for example,
8735
# in the case of _POSIX_SOURCE, which is predefined and required
8736
# on some systems where configure will not decide to define it.
8737
if (defundef == "undef") {
8738
print "/*", prefix defundef, macro, "*/"
8746
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8747
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8748
fi # test -n "$CONFIG_HEADERS"
8751
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13970
8755
case $ac_tag in
13971
8756
:[FHLC]) ac_mode=$ac_tag; continue;;
13973
8758
case $ac_mode$ac_tag in
13975
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13976
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13977
{ (exit 1); exit 1; }; };;
8760
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13978
8761
:[FH]-) ac_tag=-:-;;
13979
8762
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;