|
|
@@ -1647,47 +1647,13 @@ cat >> confdefs.h <<EOF
|
|
|
EOF
|
|
|
|
|
|
|
|
|
-if test "$ac_cv_sizeof_int" = 4 ; then
|
|
|
- echo $ac_n "checking for int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1653: checking for int32_t" >&5
|
|
|
-if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
-else
|
|
|
- cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1658 "configure"
|
|
|
-#include "confdefs.h"
|
|
|
-#include <sys/types.h>
|
|
|
-#if STDC_HEADERS
|
|
|
-#include <stdlib.h>
|
|
|
-#include <stddef.h>
|
|
|
-#endif
|
|
|
-EOF
|
|
|
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
- egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=yes
|
|
|
-else
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=no
|
|
|
-fi
|
|
|
-rm -f conftest*
|
|
|
-
|
|
|
-fi
|
|
|
-echo "$ac_t""$ac_cv_type_int32_t" 1>&6
|
|
|
-if test $ac_cv_type_int32_t = no; then
|
|
|
- cat >> confdefs.h <<\EOF
|
|
|
-#define int32_t int
|
|
|
-EOF
|
|
|
-
|
|
|
-fi
|
|
|
-
|
|
|
- echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1686: checking for u_int32_t" >&5
|
|
|
+echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
|
|
|
+echo "configure:1652: checking for u_int32_t" >&5
|
|
|
if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
else
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1691 "configure"
|
|
|
+#line 1657 "configure"
|
|
|
#include "confdefs.h"
|
|
|
#include <sys/types.h>
|
|
|
#if STDC_HEADERS
|
|
|
@@ -1714,146 +1680,32 @@ EOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
-elif test "$ac_cv_sizeof_short" = 4 ; then
|
|
|
- echo $ac_n "checking for int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1720: checking for int32_t" >&5
|
|
|
-if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
-else
|
|
|
- cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1725 "configure"
|
|
|
-#include "confdefs.h"
|
|
|
-#include <sys/types.h>
|
|
|
-#if STDC_HEADERS
|
|
|
-#include <stdlib.h>
|
|
|
-#include <stddef.h>
|
|
|
-#endif
|
|
|
-EOF
|
|
|
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
- egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=yes
|
|
|
-else
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=no
|
|
|
-fi
|
|
|
-rm -f conftest*
|
|
|
-
|
|
|
-fi
|
|
|
-echo "$ac_t""$ac_cv_type_int32_t" 1>&6
|
|
|
-if test $ac_cv_type_int32_t = no; then
|
|
|
- cat >> confdefs.h <<\EOF
|
|
|
-#define int32_t short
|
|
|
-EOF
|
|
|
-
|
|
|
-fi
|
|
|
-
|
|
|
- echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1753: checking for u_int32_t" >&5
|
|
|
-if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
-else
|
|
|
- cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1758 "configure"
|
|
|
-#include "confdefs.h"
|
|
|
-#include <sys/types.h>
|
|
|
-#if STDC_HEADERS
|
|
|
-#include <stdlib.h>
|
|
|
-#include <stddef.h>
|
|
|
-#endif
|
|
|
-EOF
|
|
|
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
- egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_u_int32_t=yes
|
|
|
-else
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_u_int32_t=no
|
|
|
-fi
|
|
|
-rm -f conftest*
|
|
|
-
|
|
|
-fi
|
|
|
-echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
|
|
|
-if test $ac_cv_type_u_int32_t = no; then
|
|
|
- cat >> confdefs.h <<\EOF
|
|
|
-#define u_int32_t unsigned short
|
|
|
-EOF
|
|
|
-
|
|
|
-fi
|
|
|
-
|
|
|
-elif test "$ac_cv_sizeof_long" = 4 ; then
|
|
|
- echo $ac_n "checking for int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1787: checking for int32_t" >&5
|
|
|
-if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
-else
|
|
|
- cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1792 "configure"
|
|
|
-#include "confdefs.h"
|
|
|
-#include <sys/types.h>
|
|
|
-#if STDC_HEADERS
|
|
|
-#include <stdlib.h>
|
|
|
-#include <stddef.h>
|
|
|
-#endif
|
|
|
-EOF
|
|
|
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
- egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=yes
|
|
|
-else
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_int32_t=no
|
|
|
-fi
|
|
|
-rm -f conftest*
|
|
|
-
|
|
|
-fi
|
|
|
-echo "$ac_t""$ac_cv_type_int32_t" 1>&6
|
|
|
-if test $ac_cv_type_int32_t = no; then
|
|
|
- cat >> confdefs.h <<\EOF
|
|
|
-#define int32_t long
|
|
|
+if test "$ac_cv_type_u_int32_t" = no ; then
|
|
|
+ if test "$ac_cv_sizeof_long" = 4 ; then
|
|
|
+ cat >> confdefs.h <<\EOF
|
|
|
+#define U_INT32_T_IS_ULONG 1
|
|
|
EOF
|
|
|
|
|
|
-fi
|
|
|
-
|
|
|
- echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
|
|
|
-echo "configure:1820: checking for u_int32_t" >&5
|
|
|
-if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
|
|
|
- echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
-else
|
|
|
- cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1825 "configure"
|
|
|
-#include "confdefs.h"
|
|
|
-#include <sys/types.h>
|
|
|
-#if STDC_HEADERS
|
|
|
-#include <stdlib.h>
|
|
|
-#include <stddef.h>
|
|
|
-#endif
|
|
|
+ else
|
|
|
+ if test "$ac_cv_sizeof_int" = 4 ; then
|
|
|
+ cat >> confdefs.h <<\EOF
|
|
|
+#define U_INT32_T_IS_UINT 1
|
|
|
EOF
|
|
|
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
- egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_u_int32_t=yes
|
|
|
-else
|
|
|
- rm -rf conftest*
|
|
|
- ac_cv_type_u_int32_t=no
|
|
|
-fi
|
|
|
-rm -f conftest*
|
|
|
|
|
|
-fi
|
|
|
-echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
|
|
|
-if test $ac_cv_type_u_int32_t = no; then
|
|
|
- cat >> confdefs.h <<\EOF
|
|
|
-#define u_int32_t unsigned long
|
|
|
+ else
|
|
|
+ if test "$ac_cv_sizeof_short" = 4 ; then
|
|
|
+ cat >> confdefs.h <<\EOF
|
|
|
+#define U_INT32_T_IS_USHORT 1
|
|
|
EOF
|
|
|
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
-else
|
|
|
- { echo "configure: error: Cannot find a type with size of 32 bits" 1>&2; exit 1; }
|
|
|
-fi
|
|
|
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|
|
-echo "configure:1857: checking for main in -lnsl" >&5
|
|
|
+echo "configure:1709: checking for main in -lnsl" >&5
|
|
|
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
@@ -1861,14 +1713,14 @@ else
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
LIBS="-lnsl $LIBS"
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1865 "configure"
|
|
|
+#line 1717 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
int main() {
|
|
|
main()
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
rm -rf conftest*
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
else
|
|
|
@@ -1889,7 +1741,7 @@ else
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
|
|
-echo "configure:1893: checking for socket in -lsocket" >&5
|
|
|
+echo "configure:1745: checking for socket in -lsocket" >&5
|
|
|
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
@@ -1897,7 +1749,7 @@ else
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
LIBS="-lsocket $LIBS"
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1901 "configure"
|
|
|
+#line 1753 "configure"
|
|
|
#include "confdefs.h"
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
@@ -1908,7 +1760,7 @@ int main() {
|
|
|
socket()
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
rm -rf conftest*
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
else
|
|
|
@@ -1932,12 +1784,12 @@ fi
|
|
|
for ac_func in strdup strstr strtoul initgroups
|
|
|
do
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
-echo "configure:1936: checking for $ac_func" >&5
|
|
|
+echo "configure:1788: checking for $ac_func" >&5
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
else
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1941 "configure"
|
|
|
+#line 1793 "configure"
|
|
|
#include "confdefs.h"
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
@@ -1960,7 +1812,7 @@ $ac_func();
|
|
|
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
rm -rf conftest*
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
else
|
|
|
@@ -1986,9 +1838,9 @@ done
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for type of socket size""... $ac_c" 1>&6
|
|
|
-echo "configure:1990: checking for type of socket size" >&5
|
|
|
+echo "configure:1842: checking for type of socket size" >&5
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1992 "configure"
|
|
|
+#line 1844 "configure"
|
|
|
#include "confdefs.h"
|
|
|
#include <stdlib.h>
|
|
|
#include <sys/types.h>
|
|
|
@@ -1998,7 +1850,7 @@ int main() {
|
|
|
int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
+if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
rm -rf conftest*
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
#define SOCKET_SIZE_TYPE size_t
|
|
|
@@ -2051,7 +1903,7 @@ fi
|
|
|
|
|
|
if test x$check_for_ssl = xyes; then
|
|
|
echo $ac_n "checking for SSL""... $ac_c" 1>&6
|
|
|
-echo "configure:2055: checking for SSL" >&5
|
|
|
+echo "configure:1907: checking for SSL" >&5
|
|
|
found_ssl=no
|
|
|
for dir in $ssl_inc_dir /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
|
|
|
ssldir="$dir"
|
|
|
@@ -2135,7 +1987,7 @@ fi
|
|
|
# Extract the first word of "perl", so it can be a program name with args.
|
|
|
set dummy perl; ac_word=$2
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
-echo "configure:2139: checking for $ac_word" >&5
|
|
|
+echo "configure:1991: checking for $ac_word" >&5
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
else
|