Andrew Savchenko

configure.ac cleanup

1. Remove unneeded block in capability check.
2. Reorder --with flags in alphabetical order.
... ... @@ -56,34 +56,29 @@ dnl -lrt is needed on < glibc-2.17
AC_SEARCH_LIBS([clock_getres], [rt], [],
[AC_MSG_ERROR("Unable to find librt; clock_getres() is needed")])
dnl mhash check
AC_ARG_WITH(mhash,
AS_HELP_STRING(--with-mhash,
[use mhash instead of internal version of hash algo, default: enabled]))
AS_IF([test "x$with_mhash" = "xno"], [], [
AC_CHECK_HEADER([mhash.h], [], [AC_MSG_ERROR("Unable to find mhash.h")])
AC_SEARCH_LIBS([mhash_init], [mhash], [CPPFLAGS+=" -DHAVE_MHASH"],
[AC_MSG_ERROR("Unable to find libmhash")])
])
dnl capabilities check
AC_ARG_WITH(capabilities,
AS_HELP_STRING(--with-capabilities,
[enable linux capabilities support, default: disabled]))
AS_IF(
[test "x$with_capabilities" = "xyes"],
[
[test "x$with_capabilities" = "xyes"], [
AC_CHECK_HEADER(
[sys/capability.h],
[CPPFLAGS+=" -DHAVE_CAPABILITIES"],
[AC_MSG_ERROR("Unable to find sys/capability.h")])
],
])
dnl mhash check
AC_ARG_WITH(mhash,
AS_HELP_STRING(--with-mhash,
[use mhash instead of internal version of hash algo, default: enabled]))
[]
)
AS_IF([test "x$with_mhash" = "xno"], [], [
AC_CHECK_HEADER([mhash.h], [], [AC_MSG_ERROR("Unable to find mhash.h")])
AC_SEARCH_LIBS([mhash_init], [mhash], [CPPFLAGS+=" -DHAVE_MHASH"],
[AC_MSG_ERROR("Unable to find libmhash")])
])
LIBS="${GLIB_LIBS} ${LIBS}"
... ...