ports/net-mgmt/bsnmp-regex/files/patch-configure.in
Muhammad Moinur Rahman fdf1eb985c
net-mgmt/bsnmp-regex: Fix build time warnings
- Utilize OPTIONSNG
- Utilize USES=localbase
- Refresh patches
2024-03-10 16:32:55 +01:00

52 lines
1.8 KiB
Text

--- configure.in.orig 2024-03-10 15:09:20 UTC
+++ configure.in
@@ -13,14 +13,14 @@ AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LIBTOOL
-AC_CHECK_PROG(GENSNMPTREE, gensnmptree, "gensnmptree")
-if test -z "$GENSNMPTREE"; then
- echo "ERROR: gensnmptree program not found."
- exit 1
+AC_CHECK_PROG(GENSNMPTREE, gensnmptree, "gensnmptree")
+if test -z "$GENSNMPTREE"; then
+ echo "ERROR: gensnmptree program not found."
+ exit 1
fi
# Debug mode
-AC_ARG_ENABLE(debug,
+AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[Compile binaries in debug mode]))
@@ -36,20 +36,21 @@ AC_ARG_ENABLE(pcre,
AC_ARG_ENABLE(pcre,
AC_HELP_STRING([--with-pcre],
[Use PCRE instead of the default regular expression library]))
-
+
if test "$enable_pcre" = "yes"; then
- AC_CHECK_LIB(pcre, pcre_compile, ,
+ AC_CHECK_LIB(pcre, pcre_compile, ,
[echo "Couldn't find the pcre library"; exit 1])
- AC_CHECK_HEADERS("pcre.h", ,
+ AC_CHECK_HEADERS("pcre.h", ,
[echo "Couldn't find pcre headers"; exit 1])
AC_DEFINE_UNQUOTED(WITH_PCRE, 1, [Use PCRE regular expression library])
fi
-AC_CHECK_HEADERS([sys/queue.h sys/limits.h sys/stat.h sys/time.h sys/un.h], ,
- [echo "ERROR: required header not found."; exit 1])
-AC_CHECK_HEADERS([bsnmp/snmpmod.h], ,
- [echo "ERROR: required bsnmp header not found." exit 1])
-
+AC_CHECK_HEADERS([sys/queue.h sys/limits.h sys/stat.h sys/time.h sys/un.h], ,
+ [echo "ERROR: required header not found."; exit 1])
+AC_CHECK_HEADERS([bsnmp/snmpmod.h], ,
+ [echo "ERROR: required bsnmp header not found." exit 1],
+ [#include <sys/queue.h>])
+
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T