diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-01-30 08:37:12 -0500 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2021-01-30 08:37:12 -0500 |
commit | de1b87ea351b7cf33751df45e044b895c0ef4bd5 (patch) | |
tree | ec082d50be58bcf1e856598fafb8c1a853825fe3 /configure.ac | |
parent | a5f200d5376c2a269c186c008264dddcc0edeba4 (diff) | |
download | gnunet-de1b87ea351b7cf33751df45e044b895c0ef4bd5.tar.gz gnunet-de1b87ea351b7cf33751df45e044b895c0ef4bd5.zip |
fix #6722: use AX_COMPARE_VERSION
Also, the var ‘gl_libunistring_hexversion’ is not documented,
so we switch to ‘LIBUNISTRING_VERSION’, which is.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index eca988bb3..2f1184296 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1261,8 +1261,9 @@ gl_LIBUNISTRING | |||
1261 | AS_IF([test $HAVE_LIBUNISTRING != yes], | 1261 | AS_IF([test $HAVE_LIBUNISTRING != yes], |
1262 | [AC_MSG_ERROR([GNUnet requires libunistring])]) | 1262 | [AC_MSG_ERROR([GNUnet requires libunistring])]) |
1263 | 1263 | ||
1264 | AS_IF([test "x$gl_libunistring_hexversion" = "x" || test "$gl_libunistring_hexversion" -le 2305], | 1264 | AX_COMPARE_VERSION([$LIBUNISTRING_VERSION],[le],[0.9.1.1], |
1265 | [AC_MSG_ERROR([GNUnet requires libunistring >= 0.9.1.1])]) | 1265 | [AC_MSG_ERROR([GNUnet requires libunistring >= 0.9.1.1])]) |
1266 | |||
1266 | AC_CHECK_HEADERS([unistr.h], | 1267 | AC_CHECK_HEADERS([unistr.h], |
1267 | , | 1268 | , |
1268 | AC_MSG_ERROR([Compiling GNUnet requires unistr.h (from libunistring) to be installed])) | 1269 | AC_MSG_ERROR([Compiling GNUnet requires unistr.h (from libunistring) to be installed])) |