diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 23:04:12 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 23:04:12 +0100 |
commit | 22e4898519e9db7aabacad1343c20fc49176dbf4 (patch) | |
tree | a7f4edc6603cf447bcb41463b879645567bd915f /configure.ac | |
parent | 45b238fc6f2dc4705578e6a35cf6031e818a04c0 (diff) |
add autoconf test and fallback code for systems without gperf
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cf2f19c..00f7f0e 100644 --- a/configure.ac +++ b/configure.ac @@ -204,6 +204,15 @@ fi #manpage_support_enabled AM_CONDITIONAL(HAVE_POD2MAN, test "x$POD2MAN" != "x" -a "x$POD2MAN" != "xno") +AC_PATH_PROG(GPERF, gperf, no) +AM_CONDITIONAL(HAVE_GPERF, test "x$GPERF" != "x" -a "x$GPERF" != "xno") +AH_TEMPLATE([HAVE_GPERF], + [Whether you have gperf installed for faster config parsing.]) + +if test "x$GPERF" != "x" -a "x$GPERF" != "xno" ; then + AC_DEFINE(HAVE_GPERF) +fi + AC_CONFIG_FILES([ Makefile src/Makefile |