diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7957cc2a0..e596766eb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -142,7 +142,7 @@ netbsd*) | |||
142 | AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system]) | 142 | AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system]) |
143 | AC_CHECK_LIB(intl, gettext) | 143 | AC_CHECK_LIB(intl, gettext) |
144 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" | 144 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" |
145 | LIBS="$LIBS -lws2_32 -lplibc" | 145 | LIBS="$LIBS -lws2_32 -lplibc -lgnurx" |
146 | CFLAGS="-mms-bitfields $CFLAGS" | 146 | CFLAGS="-mms-bitfields $CFLAGS" |
147 | CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS" | 147 | CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS" |
148 | build_target="mingw" | 148 | build_target="mingw" |
@@ -183,6 +183,14 @@ AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported])) | |||
183 | # will be more selective! | 183 | # will be more selective! |
184 | SAVE_LIBS=$LIBS | 184 | SAVE_LIBS=$LIBS |
185 | 185 | ||
186 | # libgnurx (regex library for W32) | ||
187 | gnurx=0 | ||
188 | AC_CHECK_LIB(gnurx, regexec, gnurx=1) | ||
189 | if test "x$gnurx" = "x0" -a "x$build_target" = "xmingw" | ||
190 | then | ||
191 | AC_MSG_ERROR([on W32 GNUnet needs libgnurx]) | ||
192 | fi | ||
193 | |||
186 | # libgcrypt | 194 | # libgcrypt |
187 | gcrypt=0 | 195 | gcrypt=0 |
188 | AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1) | 196 | AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1) |