diff options
author | Nils Durner <durner@gnunet.org> | 2014-08-16 10:18:16 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2014-08-16 10:18:16 +0000 |
commit | 9d6fcf6964aa39a0b4d737b78bd9f5931cce25d4 (patch) | |
tree | 43528c031ace3ca75a2eb75af77e4c8d7cbd8510 /configure.ac | |
parent | a952bdf9866ced9e04c756e1b079dea6ddd1970b (diff) |
fail if plibc is not available
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index cefc482436..24915a14eb 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 |