summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2014-08-16 10:18:16 +0000
committerNils Durner <durner@gnunet.org>2014-08-16 10:18:16 +0000
commit9d6fcf6964aa39a0b4d737b78bd9f5931cce25d4 (patch)
tree43528c031ace3ca75a2eb75af77e4c8d7cbd8510 /configure.ac
parenta952bdf9866ced9e04c756e1b079dea6ddd1970b (diff)
fail if plibc is not available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index cefc48243..24915a14e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -216,12 +216,11 @@ AC_CHECK_DECLS([_stati64])
# will be more selective!
SAVE_LIBS=$LIBS
-# libgnurx (regex library for W32)
-gnurx=0
-AC_CHECK_LIB(gnurx, regexec, gnurx=1)
-if test "x$gnurx" = "x0" -a "x$build_target" = "xmingw"
+# tests only run on Windows
+if test "x$build_target" = "xmingw"
then
- AC_MSG_ERROR([on W32 GNUnet needs libgnurx])
+ AC_CHECK_LIB(plibc, plibc_init, [], [AC_MSG_ERROR([GNUnet requires PlibC on Windows])])
+ AC_CHECK_LIB(gnurx, regexec, [], [AC_MSG_ERROR([GNUnet requires libgnurx on Windows])])
fi
# libgcrypt