openbsd-ports/net/freeradius/patches/patch-configure
rui 1297ae0164 - maintenance update to freeradius 2.1.0.
- SNMP support is now available through an experimental Perl script.
- If snmp.conf is being used in your radiusd.conf you should delete or comment that entry.
- Check the Changelog for more information.

input and ok ajacoutot@
2008-09-21 15:39:14 +00:00

109 lines
3.5 KiB
Plaintext

$OpenBSD: patch-configure,v 1.6 2008/09/21 15:39:14 rui Exp $
--- configure.orig Fri Sep 5 14:27:57 2008
+++ configure Fri Sep 19 17:29:38 2008
@@ -4862,7 +4862,7 @@ fi
LTDLINCL='-I${top_srcdir}/''libltdl'
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
+ LIBLTDL="-L$with_ltdl_lib -lltdl"
LTDLINCL=
fi
# For backwards non-gettext consistent compatibility...
@@ -8874,7 +8874,6 @@ bsdi[45]*)
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
@@ -20336,13 +20335,13 @@ fi
done
- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
+ { echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
+echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -20399,7 +20398,7 @@ fi
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
if test $ac_cv_lib_pthread_pthread_create = yes; then
CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
- LIBS="$LIBS -lpthread"
+ LIBS="$LIBS -pthread"
else
{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
@@ -20649,7 +20648,6 @@ if test "${ac_cv_lib_resolv_inet_aton+set}" = set; the
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -20709,8 +20707,6 @@ if test $ac_cv_lib_resolv_inet_aton = yes; then
#define HAVE_LIBRESOLV 1
_ACEOF
- LIBS="-lresolv $LIBS"
-
fi
@@ -20867,7 +20863,7 @@ if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lssl $LIBS"
+LIBS="-lcrypto -lssl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -21096,7 +21092,7 @@ if test "${ac_cv_lib_readline_readline+set}" = set; th
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline $LIBS"
+LIBS="-lreadline -lncurses $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -21152,7 +21148,7 @@ fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
if test $ac_cv_lib_readline_readline = yes; then
- LIBREADLINE="-lreadline"
+ LIBREADLINE="-lreadline -lncurses"
fi
@@ -23035,7 +23031,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
+#include <unistd.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@@ -23102,7 +23098,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-
+#include <unistd.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif