From 133dd1bd70d30813d6669a91da88740474dd3ddd Mon Sep 17 00:00:00 2001 From: wlestes Date: Sun, 28 Dec 2008 15:46:20 +0000 Subject: check for regex.h; resolves bug #2337486 --- configure.in | 3 ++- flexdef.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 969c515..c03e258 100644 --- a/configure.in +++ b/configure.in @@ -84,7 +84,8 @@ fi AC_FUNC_ALLOCA AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h stddef.h stdlib.h string.h strings.h unistd.h]) +AC_CHECK_HEADERS([inttypes.h libintl.h limits.h locale.h malloc.h +netinet/in.h stddef.h stdlib.h string.h strings.h unistd.h regex.h]) AC_CHECK_LIB(m, log10) # The test test-pthread uses libpthread, so we check for it here, but diff --git a/flexdef.h b/flexdef.h index d038952..7282711 100644 --- a/flexdef.h +++ b/flexdef.h @@ -91,7 +91,9 @@ char *alloca (); #define true 1 #define false 0 #endif +#ifdef HAVE_REGEX_H #include +#endif #include "flexint.h" /* We use gettext. So, when we write strings which should be translated, we mark them with _() */ -- cgit v1.2.1