diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-25 10:06:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-25 10:06:56 +0000 |
commit | 5f7b5fb33b16a170fde12325150233f1bc014893 (patch) | |
tree | 3288b09252cfb8f5efab3554c3195de282ef27e0 /configure.ac | |
parent | 7d6a6d6b4ebfaae41b05a4a948a89520420fcd11 (diff) | |
download | gnunet-5f7b5fb33b16a170fde12325150233f1bc014893.tar.gz gnunet-5f7b5fb33b16a170fde12325150233f1bc014893.zip |
fix #2901: fail hard if libidn or header are not found
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 0f6602f21..db01a1460 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -384,15 +384,13 @@ if test "$libidn" != "no"; then | |||
384 | CPPFLAGS="${CPPFLAGS} -I$libidn/include" | 384 | CPPFLAGS="${CPPFLAGS} -I$libidn/include" |
385 | fi | 385 | fi |
386 | AC_CHECK_HEADER(idna.h, | 386 | AC_CHECK_HEADER(idna.h, |
387 | AC_CHECK_LIB(idn, stringprep_check_version, | 387 | AC_CHECK_LIB(idn, stringprep_check_version, |
388 | [libidn=yes LIBS="${LIBS} -lidn"], libidn=no), | 388 | [libidn=yes LIBS="${LIBS} -lidn"], |
389 | libidn=no) | 389 | AC_MSG_FAILURE([GNUnet requires libidn])), |
390 | AC_MSG_FAILURE([GNUnet requires libidn])) | ||
390 | fi | 391 | fi |
391 | AM_CONDITIONAL([HAVE_LIBIDN], [test "$libidn" != "no"]) | ||
392 | AC_MSG_RESULT($libidn) | 392 | AC_MSG_RESULT($libidn) |
393 | 393 | ||
394 | |||
395 | |||
396 | # restore LIBS | 394 | # restore LIBS |
397 | LIBS=$SAVE_LIBS | 395 | LIBS=$SAVE_LIBS |
398 | 396 | ||