diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-06 16:49:46 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-06 16:49:46 -0400 |
commit | 8b3a6039faff5b2df79626172fcb1df816e3e9a6 (patch) | |
tree | b3c6337bb591848e259523d1e99895ee83ca1ca4 /configure.ac | |
parent | cbf74de439b6c0334596a9fd461aad2f4552e7fe (diff) | |
parent | 57113f5edeb70b391bb0d93ccee457829fc4b64f (diff) |
Merge branch 'notsystemd/postmove' into notsystemd/master
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 83441e6459..634ab02d38 100644 --- a/configure.ac +++ b/configure.ac @@ -262,6 +262,28 @@ AC_CHECK_SIZEOF(rlim_t,,[ #include <sys/resource.h> ]) +GPERF_TEST="$(echo foo,bar | ${GPERF} -L ANSI-C)" + +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([ + #include <string.h> + const char * in_word_set(const char *, size_t); + $GPERF_TEST] + )], + [GPERF_LEN_TYPE=size_t], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([ + #include <string.h> + const char * in_word_set(const char *, unsigned); + $GPERF_TEST] + )], + [GPERF_LEN_TYPE=unsigned], + [AC_MSG_ERROR([** unable to determine gperf len type])] + )] +) + +AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type]) + # ------------------------------------------------------------------------------ # we use python to build the man page index have_python=no |