From eb81a88093e7d71530eebb2957f8ba4317b26ee6 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 31 Jan 2007 14:09:55 +0000 Subject: - Patch net/libnet* to versioned libraries and header files, so they can coexist PR: ports/103861 Submitted by: alepulver Tested by: pointyhat With hat: portmgr --- net/nast/files/patch-configure | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 net/nast/files/patch-configure (limited to 'net/nast/files/patch-configure') diff --git a/net/nast/files/patch-configure b/net/nast/files/patch-configure new file mode 100644 index 000000000000..a2fd431efbcb --- /dev/null +++ b/net/nast/files/patch-configure @@ -0,0 +1,57 @@ +--- ./configure.orig Wed Sep 27 18:27:36 2006 ++++ ./configure Wed Sep 27 19:04:20 2006 +@@ -2337,52 +2337,8 @@ + # + + filechk="yes" +-echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5 +-echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6 +-if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- test "$cross_compiling" = yes && +- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} +- { (exit 1); exit 1; }; } +-if test -r "/usr/lib/libnet.a"; then +- ac_cv_file__usr_lib_libnet_a=yes +-else +- ac_cv_file__usr_lib_libnet_a=no +-fi +-fi +-echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libnet_a" >&5 +-echo "${ECHO_T}$ac_cv_file__usr_lib_libnet_a" >&6 +-if test $ac_cv_file__usr_lib_libnet_a = yes; then +- : +-else +- filechk="no" +-fi +- +-if test "$filechk" = "no"; then +- echo "$as_me:$LINENO: checking for /usr/local/lib/libnet.a" >&5 +-echo $ECHO_N "checking for /usr/local/lib/libnet.a... $ECHO_C" >&6 +-if test "${ac_cv_file__usr_local_lib_libnet_a+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- test "$cross_compiling" = yes && +- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} +- { (exit 1); exit 1; }; } +-if test -r "/usr/local/lib/libnet.a"; then +- ac_cv_file__usr_local_lib_libnet_a=yes +-else +- ac_cv_file__usr_local_lib_libnet_a=no +-fi +-fi +-echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libnet_a" >&5 +-echo "${ECHO_T}$ac_cv_file__usr_local_lib_libnet_a" >&6 +-if test $ac_cv_file__usr_local_lib_libnet_a = yes; then +- filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include" +-fi +- +-fi ++CPPFLAGS="`libnet-config --cflags`" ++LDFLAGS="`libnet-config --libs`" + + if test "$filechk" = "no"; then { { echo "$as_me:$LINENO: error: + -- cgit v1.2.3