openbsd-ports/net/amule/patches/patch-acinclude_m4

47 lines
1.5 KiB
Plaintext

$OpenBSD: patch-acinclude_m4,v 1.2 2011/11/28 15:28:49 dcoppa Exp $
--- acinclude.m4.orig Mon Jun 13 10:50:25 2011
+++ acinclude.m4 Mon Nov 28 14:10:57 2011
@@ -253,7 +253,7 @@ AC_DEFUN([MULE_CHECK_SYSTEM],
;;
openbsd*)
SYS=openbsd
- LIBS="$LIBS -L/usr/local/lib"
+ LIBS="$LIBS -L${LOCALDIR}/lib"
MULECPPFLAGS="-D__OPENBSD__"
;;
*cygwin* | *mingw32*)
@@ -282,11 +282,11 @@ AC_DEFUN([MULE_CHECK_SYSTEM],
;;
esac
- # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
+ # -lpthread is needed by Debian but OpenBSD doesn't support it
AS_IF([test ${SYS:-unknown} != win32],
[
- AC_MSG_CHECKING([if this is a FreeBSD 4 or earlier system])
- AS_IF([test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5],
+ AC_MSG_CHECKING([if this is an OpenBSD system])
+ AS_IF([test x"`uname -s`" = xOpenBSD],
[
MULE_ADDFLAG([LD], [-pthread])
AC_MSG_RESULT(yes)
@@ -464,9 +464,6 @@ AC_DEFUN([MULE_CHECK_BFD],
AC_MSG_RESULT([$result])
- AS_IF([test $result = no],
- [MULE_WARNING([bfd.h not found or unusable, please install binutils development package if you are a developer or want to help testing aMule])])
-
AC_SUBST([BFD_CPPFLAGS])dnl
AC_SUBST([BFD_LIBS])dnl
])
@@ -480,7 +477,7 @@ AC_DEFUN([MULE_CHECK_FLEX_EXTENDED],
[
AC_MSG_CHECKING([for extended flex capabilities])
- extended_flex=`flex --help | grep header-file`
+ extended_flex=`${LEX} --help | grep header-file`
AS_IF([test -n "$extended_flex"], [HAVE_FLEX_EXTENDED=yes], [HAVE_FLEX_EXTENDED=no])
AC_MSG_RESULT($HAVE_FLEX_EXTENDED)