commit 5f7b5fb33b16a170fde12325150233f1bc014893
parent 7d6a6d6b4ebfaae41b05a4a948a89520420fcd11
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 25 Jun 2013 10:06:56 +0000
fix #2901: fail hard if libidn or header are not found
Diffstat:
3 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/README b/README
@@ -45,6 +45,7 @@ These are the direct dependencies for running GNUnet:
- libcurl >= 7.21.3
- libunistring >= 0.9.2
- gnutls >= 2.12.0
+- libidn >= 1.0
- libltdl >= 2.2 (part of GNU libtool)
- sqlite >= 3.0 (default database)
- mysql >= 5.1 (alternative to sqLite)
diff --git a/configure.ac b/configure.ac
@@ -384,15 +384,13 @@ if test "$libidn" != "no"; then
CPPFLAGS="${CPPFLAGS} -I$libidn/include"
fi
AC_CHECK_HEADER(idna.h,
- AC_CHECK_LIB(idn, stringprep_check_version,
- [libidn=yes LIBS="${LIBS} -lidn"], libidn=no),
- libidn=no)
+ AC_CHECK_LIB(idn, stringprep_check_version,
+ [libidn=yes LIBS="${LIBS} -lidn"],
+ AC_MSG_FAILURE([GNUnet requires libidn])),
+ AC_MSG_FAILURE([GNUnet requires libidn]))
fi
-AM_CONDITIONAL([HAVE_LIBIDN], [test "$libidn" != "no"])
AC_MSG_RESULT($libidn)
-
-
# restore LIBS
LIBS=$SAVE_LIBS
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -2,24 +2,16 @@
# INTLEMU_SUBDIRS = intlemu
#endif
-if HAVE_LIBIDN
- EXIT = exit
- PT = pt
-else
- EXIT =
- PT =
-endif
-
if HAVE_EXPERIMENTAL
EXP_DIR = gns set dv consensus experimentation
endif
if LINUX
-# All of these currently only work on GNU/Linux
- LINUX_DIR = $(EXIT) vpn $(PT)
+# All of these currently only work on GNU/Linux or W32
+ LINUX_DIR = exit vpn pt
endif
if MINGW
- MINGW_DIR = vpn $(EXIT)
+ MINGW_DIR = vpn exit pt
endif
if HAVE_MYSQL