From 39bc5376a7a29a1fab35e72aae3eb1a4676d80a6 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 27 May 2017 15:05:45 +0200 Subject: [PATCH] configure.ac: use preprocessor to detect libpqos version No need to run the program. --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 11fb9ab3..5ed0ab3f 100644 --- a/configure.ac +++ b/configure.ac @@ -4428,14 +4428,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 ]] ) ], -- 2.30.2