freebsd-ports/net-mgmt/tork/files/patch-configure
Martin Wilke 70cff39f48 - Update to 0.28
PR:		123055
Submitted by:	"Beat Gätzi" <beat@chruetertee.ch>
Approved by:	maintainer implicit
2008-04-26 20:19:16 +00:00

41 lines
1.6 KiB
Text

--- configure.orig 2008-04-21 19:36:01.000000000 +0200
+++ configure 2008-04-21 19:41:19.000000000 +0200
@@ -12289,13 +12289,13 @@
if test $ac_cv_func_dlopen = yes; then
lt_cv_dlopen="dlopen"
else
- { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
+ { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
+echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl $LIBS"
+LIBS="-lc $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -12351,7 +12351,7 @@
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
if test $ac_cv_lib_dl_dlopen = yes; then
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lc"
else
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
@@ -38129,9 +38129,9 @@
{ echo "$as_me:$LINENO: checking for correct poll prototype" >&5
echo $ECHO_N "checking for correct poll prototype... $ECHO_C" >&6; }
-PROTO=
-for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' \
- 'struct pollfd *ufds, nfds_t nfds, int timeout'
+PROTO1="struct pollfd fds[], nfds_t nfds, int timeout"
+PROTO2="struct pollfd *fds, unsigned int nfds, int timeout"
+for PROTO in "$PROTO1" "$PROTO2"
do
if test "${PROTO}" = ""; then
cat >conftest.$ac_ext <<_ACEOF