]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix gnutls.pc for multiarch builds
authorTim Rühsen <tim.ruehsen@gmx.de>
Thu, 17 Jan 2019 09:22:45 +0000 (10:22 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Thu, 17 Jan 2019 10:22:27 +0000 (11:22 +0100)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
configure.ac

index e81ff89709bef8c6eb85681833dba9a06d4f5aed..c21660c3f3560ce869cdab52b95b20a06bdbb0de 100644 (file)
@@ -365,17 +365,17 @@ AC_ARG_WITH(included-unistring, AS_HELP_STRING([--with-included-unistring],
 if test "$included_unistring" = yes;then
   ac_have_unistring=no
 else
-  AC_LIB_HAVE_LINKFLAGS(unistring,, [#include <uninorm.h>], [u8_normalize(0, 0, 0, 0, 0);])
-
-  if test "$HAVE_LIBUNISTRING" = "yes";then
+  AC_SEARCH_LIBS(u8_normalize, unistring, [
     included_unistring=no
     ac_have_unistring=yes
-  else
-      AC_MSG_ERROR([[
+    AC_SUBST([LIBUNISTRING], [$ac_cv_search_u8_normalize])
+  ], [
+    ac_cv_libunistring=no
+    AC_MSG_ERROR([[
   ***
   *** Libunistring was not found. To use the included one, use --with-included-unistring
-  ]])
-  fi
+    ]])
+  ])
 fi
 
 AM_CONDITIONAL(HAVE_LIBUNISTRING, test "$ac_have_unistring" = "yes")