From 242f76768460fffca5cf1bbea288f25b1f0f1d8d Mon Sep 17 00:00:00 2001 From: Dave Hart Date: Sat, 17 Jun 2023 00:16:41 +0000 Subject: [PATCH] Enable containing package CFLAGS etc. Add AC_SUBST of LIBEVENT_FLAGS, LIBEVENT_CPPFLAGS, and LIBEVENT_LDFLAGS so they are relayed from the configure command line to the Makefile --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 4c126129..318aea89 100644 --- a/configure.ac +++ b/configure.ac @@ -859,6 +859,11 @@ AC_SUBST([LIBEVENT_GC_SECTIONS]) AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"]) +dnl Allow additional flags from a containing package such as NTP +AC_SUBST([LIBEVENT_CFLAGS]) +AC_SUBST([LIBEVENT_CPPFLAGS]) +AC_SUBST([LIBEVENT_LDFLAGS]) + AC_C_BIGENDIAN([CFLAGS="$CFLAGS -DBIG_ENDIAN"], [CFLAGS="$CFLAGS -DLITTLE_ENDIAN"]) dnl Doxygen support