[strongSwan] [PATCH] Fix gperf related build bug on fedora-24
greearb at candelatech.com
greearb at candelatech.com
Sat Jul 13 23:21:04 CEST 2019
From: Ben Greear <greearb at candelatech.com>
(And probably other older systems)
Signed-off-by: Ben Greear <greearb at candelatech.com>
---
configure.ac | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 186202a..52aa086 100644
--- a/configure.ac
+++ b/configure.ac
@@ -390,7 +390,14 @@ if test -x "$GPERF"; then
[[#include <string.h>
const char *in_word_set(const char*, unsigned); $GPERF_OUTPUT]])],
[GPERF_LEN_TYPE=unsigned],
- [AC_MSG_ERROR([unable to determine gperf len type])]
+ [AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <string.h>
+ const char *in_word_set(register const char*, register unsigned int); $GPERF_OUTPUT]])],
+ [GPERF_LEN_TYPE=unsigned],
+ [AC_MSG_ERROR([unable to determine gperf len type])]
+ )]
+
)]
)
AC_SUBST(GPERF_LEN_TYPE)
--
2.7.5
More information about the Users
mailing list