openbsd-ports/net/libnet/patches/patch-configure.in

30 lines
751 B
Plaintext
Raw Normal View History

--- configure.in.orig 2001-01-17 21:59:30.000000000 +0100
+++ configure.in 2003-12-31 10:41:03.000000000 +0100
@@ -33,6 +33,9 @@ AC_PREFIX_DEFAULT(/usr)
if test "$prefix" = "NONE"; then
prefix="/usr"
+else
+ LIBNET_CONFIG_CFLAGS="-I${prefix}/include"
+ LIBNET_CONFIG_LIBS="-L${prefix}/lib"
fi
dnl
@@ -49,12 +52,12 @@ AC_C_CONST
2001-01-09 20:00:36 -05:00
dnl
dnl Use these compiler flags if we have gcc.
dnl
-if test $ac_cv_prog_gcc = yes; then
+dnl if test $ac_cv_prog_gcc = yes; then
2001-02-22 02:50:22 -05:00
dnl if test -z $CFLAGS; then
- CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
- CFLAGS="$CCOPTS"
+dnl CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
+dnl CFLAGS="$CCOPTS"
2001-01-09 20:00:36 -05:00
+dnl fi
2001-02-22 02:50:22 -05:00
dnl fi
-fi
2001-01-09 20:00:36 -05:00
dnl
dnl Check for package inclusion/exclusion