diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-06-05 19:54:48 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-06-05 19:54:48 +0200 |
commit | 2c570e76d4c627a0b0417cfa0d0f2e787a6d629d (patch) | |
tree | 1656390cc51e949da563c2802958f63c869a2e1b /configure.ac | |
parent | 324651944e03072cde144d41896b2e207672d0f2 (diff) |
build: check for missing feature files
linux/dccp.h is unlikely to be installed before 2.6.18 (which was
when headers_install was introduced), and does not exist at all
before 2.6.14. Add a compile-time check to skip compilation of
libxt_dccp in case this was detected.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e718effc..d063605e 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,14 @@ AC_ARG_ENABLE([libipq], AS_HELP_STRING([--enable-libipq], [Build and install libipq])) AC_CHECK_HEADER([netinet/ip6.h], [], [AC_MSG_ERROR(but we need that for IPv6)]) +AC_CHECK_HEADER([linux/dccp.h]) + +blacklist_modules=""; +if test "$ac_cv_header_linux_dccp_h" != "yes"; then + blacklist_modules="$blacklist_modules dccp"; +fi; +AC_SUBST([blacklist_modules]) + AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" == "yes"]) AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" == "yes"]) AM_CONDITIONAL([ENABLE_DEVEL], [test "$enable_devel" == "yes"]) |