|
|
@@ -1803,8 +1803,105 @@ EOF
|
|
|
fi
|
|
|
|
|
|
|
|
|
+for ac_func in getopt_long
|
|
|
+do
|
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
+echo "configure:1810: 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 1815 "configure"
|
|
|
+#include "confdefs.h"
|
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
|
+ which can conflict with char $ac_func(); below. */
|
|
|
+#include <assert.h>
|
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
+/* We use char because int might match the return type of a gcc2
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
+char $ac_func();
|
|
|
+
|
|
|
+int main() {
|
|
|
+
|
|
|
+/* The GNU C library defines this for functions which it implements
|
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
|
+ something starting with __ and the normal name is an alias. */
|
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
+choke me
|
|
|
+#else
|
|
|
+$ac_func();
|
|
|
+#endif
|
|
|
+
|
|
|
+; return 0; }
|
|
|
+EOF
|
|
|
+if { (eval echo configure:1838: \"$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
|
|
|
+ echo "configure: failed program was:" >&5
|
|
|
+ cat conftest.$ac_ext >&5
|
|
|
+ rm -rf conftest*
|
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
|
+fi
|
|
|
+rm -f conftest*
|
|
|
+fi
|
|
|
+
|
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
+ echo "$ac_t""yes" 1>&6
|
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
+ cat >> confdefs.h <<EOF
|
|
|
+#define $ac_tr_func 1
|
|
|
+EOF
|
|
|
+
|
|
|
+else
|
|
|
+ echo "$ac_t""no" 1>&6
|
|
|
+echo $ac_n "checking for getopt_long in -liberty""... $ac_c" 1>&6
|
|
|
+echo "configure:1860: checking for getopt_long in -liberty" >&5
|
|
|
+ac_lib_var=`echo iberty'_'getopt_long | sed 'y%./+-%__p_%'`
|
|
|
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
+else
|
|
|
+ ac_save_LIBS="$LIBS"
|
|
|
+LIBS="-liberty $LIBS"
|
|
|
+cat > conftest.$ac_ext <<EOF
|
|
|
+#line 1868 "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
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
+char getopt_long();
|
|
|
+
|
|
|
+int main() {
|
|
|
+getopt_long()
|
|
|
+; return 0; }
|
|
|
+EOF
|
|
|
+if { (eval echo configure:1879: \"$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
|
|
|
+ echo "configure: failed program was:" >&5
|
|
|
+ cat conftest.$ac_ext >&5
|
|
|
+ rm -rf conftest*
|
|
|
+ eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
+fi
|
|
|
+rm -f conftest*
|
|
|
+LIBS="$ac_save_LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
+ echo "$ac_t""yes" 1>&6
|
|
|
+ OTHERLIBS="$OTHERLIBS -liberty"
|
|
|
+else
|
|
|
+ echo "$ac_t""no" 1>&6
|
|
|
+fi
|
|
|
+
|
|
|
+fi
|
|
|
+done
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|
|
-echo "configure:1808: checking for main in -lnsl" >&5
|
|
|
+echo "configure:1905: 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
|
|
|
@@ -1812,14 +1909,14 @@ else
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
LIBS="-lnsl $LIBS"
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1816 "configure"
|
|
|
+#line 1913 "configure"
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
int main() {
|
|
|
main()
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:1920: \"$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
|
|
|
@@ -1840,7 +1937,7 @@ else
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
|
|
-echo "configure:1844: checking for socket in -lsocket" >&5
|
|
|
+echo "configure:1941: 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
|
|
|
@@ -1848,7 +1945,7 @@ else
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
LIBS="-lsocket $LIBS"
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1852 "configure"
|
|
|
+#line 1949 "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
|
|
|
@@ -1859,7 +1956,7 @@ int main() {
|
|
|
socket()
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:1960: \"$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
|
|
|
@@ -1883,12 +1980,12 @@ fi
|
|
|
for ac_func in strdup strstr strtoul initgroups
|
|
|
do
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
-echo "configure:1887: checking for $ac_func" >&5
|
|
|
+echo "configure:1984: 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 1892 "configure"
|
|
|
+#line 1989 "configure"
|
|
|
#include "confdefs.h"
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
@@ -1911,7 +2008,7 @@ $ac_func();
|
|
|
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
+if { (eval echo configure:2012: \"$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
|
|
|
@@ -1937,9 +2034,9 @@ done
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for type of socket size""... $ac_c" 1>&6
|
|
|
-echo "configure:1941: checking for type of socket size" >&5
|
|
|
+echo "configure:2038: checking for type of socket size" >&5
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
-#line 1943 "configure"
|
|
|
+#line 2040 "configure"
|
|
|
#include "confdefs.h"
|
|
|
#include <stdlib.h>
|
|
|
#include <sys/types.h>
|
|
|
@@ -1949,7 +2046,7 @@ int main() {
|
|
|
int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
|
|
|
; return 0; }
|
|
|
EOF
|
|
|
-if { (eval echo configure:1953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
+if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
rm -rf conftest*
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
#define SOCKET_SIZE_TYPE size_t
|
|
|
@@ -2010,7 +2107,7 @@ fi
|
|
|
|
|
|
if test x$check_for_ssl = xyes; then
|
|
|
echo $ac_n "checking for SSL""... $ac_c" 1>&6
|
|
|
-echo "configure:2014: checking for SSL" >&5
|
|
|
+echo "configure:2111: checking for SSL" >&5
|
|
|
found_ssl=no
|
|
|
for dir in $ssl_inc_dir /usr/local/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
|
|
|
ssldir="$dir"
|
|
|
@@ -2053,7 +2150,7 @@ EOF
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for Kerberos include files""... $ac_c" 1>&6
|
|
|
-echo "configure:2057: checking for Kerberos include files" >&5
|
|
|
+echo "configure:2154: checking for Kerberos include files" >&5
|
|
|
found_kerberos=no
|
|
|
for dir in $kerberos_inc_dir /usr/kerberos/include; do
|
|
|
kerbdir="$dir"
|
|
|
@@ -2123,7 +2220,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:2127: checking for $ac_word" >&5
|
|
|
+echo "configure:2224: 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
|
|
|
@@ -2249,6 +2346,7 @@ s%@INSTALL@%$INSTALL%g
|
|
|
s%@CC@%$CC%g
|
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
|
|
s%@CPP@%$CPP%g
|
|
|
+s%@OTHERLIBS@%$OTHERLIBS%g
|
|
|
s%@SOCKETLIBS@%$SOCKETLIBS%g
|
|
|
s%@HAVE_SSL@%$HAVE_SSL%g
|
|
|
s%@nrpe_user@%$nrpe_user%g
|