projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure.ac: use preprocessor to detect libpqos version
[collectd.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
90acfb8
..
5ed0ab3
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-2803,7
+2803,7
@@
if test "x$with_libdpdk" != "xno"; then
AC_CHECK_HEADERS([rte_config.h],
[
with_libdpdk="yes"
AC_CHECK_HEADERS([rte_config.h],
[
with_libdpdk="yes"
- AC_
COMPILE
_IFELSE(
+ AC_
PREPROC
_IFELSE(
[
AC_LANG_PROGRAM(
[[
[
AC_LANG_PROGRAM(
[[
@@
-4428,14
+4428,14
@@
fi
if test "x$with_libpqos" = "xyes"; then
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags"
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 <pqos.h>
[[
#include <pqos.h>
- ]],
- [[
- return !(PQOS_VERSION >= 106)
+ #if PQOS_VERSION < 106
+ #error "required PQOS version >= 1.06"
+ #endif
]]
)
],
]]
)
],