From 1a7017e44cd1f6bc2ba16f46c7e92b6c0252e5c7 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 30 May 2022 17:59:56 +0200 Subject: build: set HAVE_QRENCODE only once and use CLFAGS not cflags --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8fe1ff4a..9f78d7ec 100644 --- a/configure.ac +++ b/configure.ac @@ -348,10 +348,8 @@ AC_SUBST(THEMES_PATH) AM_CONDITIONAL([THEMES_INSTALL], "$THEMES_INSTALL") if test "x$enable_omemo_qrcode" != xno; then - AC_DEFINE([HAVE_QRENCODE], [1], [Have QRencode]) - PKG_CHECK_MODULES([libqrencode], [libqrencode], - [LIBS="$libqrencode_LIBS $LIBS" CFLAGS="$libqrencode_CFLAGS $cflags"], + [AC_DEFINE([HAVE_QRENCODE], [1], [Have QRencode]) LIBS="$libqrencode_LIBS $LIBS" CFLAGS="$libqrencode_CFLAGS $CFLAGS"], [AC_DEFINE([HAVE_QRENCODE], [0], [Dont have QRencode]) AS_IF([test "x$enable_qrcode" = xyes], [AC_MSG_ERROR([libqrencode not found])], -- cgit 1.4.1-2-gfad0