about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-05-30 17:59:56 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-05-30 19:45:05 +0200
commit1a7017e44cd1f6bc2ba16f46c7e92b6c0252e5c7 (patch)
tree78fb4338303f15cd7bd715acef27b95a6659a92d
parent0c7350e2e637aa07b4b1e926e84192030df8ff50 (diff)
downloadprofani-tty-1a7017e44cd1f6bc2ba16f46c7e92b6c0252e5c7.tar.gz
build: set HAVE_QRENCODE only once
and use CLFAGS not cflags
-rw-r--r--configure.ac4
1 files changed, 1 insertions, 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])],