X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=a769d492c4776313d3788a0ae50f6e0fe825a205;hb=cdebbb94ea37ea1325545dcb20e3405b478a7e2f;hp=d3187b557ec907d3b4c494fe6bb30c4ea8c47504;hpb=8337d6739405e50ffaa58e326b789a2825123f14;p=collectd.git diff --git a/configure.ac b/configure.ac index d3187b55..a769d492 100644 --- a/configure.ac +++ b/configure.ac @@ -60,9 +60,9 @@ if test "x$collectd_cv_prog_bison" = "xno" && test ! -f "${srcdir}/src/liboconfi AC_MSG_ERROR([bison is missing and you do not have ${srcdir}/src/liboconfig/parser.c. Please install bison]) fi -AS_IF([test "x$lt_cv_dlopen" = "xno"], - [AC_MSG_ERROR([Your system does not support dlopen])] -) +if test "x$lt_cv_dlopen" = "xno"; then + AC_MSG_ERROR([Your system does not support dlopen]) +fi AC_SUBST([DLOPEN_LIBS], [$lt_cv_dlopen_libs]) @@ -2803,17 +2803,14 @@ if test "x$with_libdpdk" != "xno"; then AC_CHECK_HEADERS([rte_config.h], [ with_libdpdk="yes" - AC_COMPILE_IFELSE( + AC_PREPROC_IFELSE( [ - AC_LANG_PROGRAM( + AC_LANG_SOURCE( [[ #include #if RTE_VERSION < RTE_VERSION_NUM(16,7,0,0) #error "required DPDK >= 16.07" #endif - ]], - [[ - return 0; ]] ) ], @@ -4428,14 +4425,14 @@ fi if test "x$with_libpqos" = "xyes"; then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags" - AC_RUN_IFELSE( + AC_PREPROC_IFELSE( [ - AC_LANG_PROGRAM( + AC_LANG_SOURCE( [[ #include - ]], - [[ - return !(PQOS_VERSION >= 106) + #if PQOS_VERSION < 106 + #error "required PQOS version >= 1.06" + #endif ]] ) ],