fix configure.ac for emscripten
authorFlorian Dold <florian.dold@gmail.com>
Thu, 13 Oct 2016 02:05:37 +0000 (02:05 +0000)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 13 Oct 2016 02:05:37 +0000 (02:05 +0000)
configure.ac

index ef98654568b85021a364b0c80f8767e2ac471318..6697db2c68d701a96d7aa5929c175c02071ffd07 100644 (file)
@@ -724,9 +724,12 @@ gl_LIBUNISTRING
 if test $HAVE_LIBUNISTRING != yes; then
  AC_MSG_ERROR([GNUnet requires libunistring])
 fi
-if test "$gl_libunistring_hexversion" -le 2305; then
+# under emscripten, $gl_libunistring_hexversion is undefined
+if test "$taler_only" != yes; then
+if test "x$gl_libunistring_hexversion" = "x" || test "$gl_libunistring_hexversion" -le 2305; then
  AC_MSG_ERROR([GNUnet requires libunistring >= 0.9.1.1])
 fi
+fi
 AC_CHECK_HEADERS([unistr.h],,AC_MSG_ERROR([Compiling GNUnet requires unistr.h (from libunistring) to be installed]))
 
 # restore LIBS