From c42f469cc2a6f7639273d4d65f74fdb73993e9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 19 Sep 2014 09:04:15 +0000 Subject: [PATCH] need variables; refs #33 --- ax_check_qt.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ax_check_qt.m4 b/ax_check_qt.m4 index 26d9b4e..a2019a5 100644 --- a/ax_check_qt.m4 +++ b/ax_check_qt.m4 @@ -62,10 +62,16 @@ AC_DEFUN([AX_CXX_CHECK_QT], [ PKG_CHECK_MODULES([$1], [${qt_modules//Qt/Qt5}], [ HAVE_$1=1 AC_DEFINE([HAVE_$1]) + CPPFLAGS+=" ${$1_CFLAGS}" + CXXFLAGS+=" ${$1_CFLAGS}" + LIBS+=" ${$1_LIBS}" ], [ PKG_CHECK_MODULES([$1], [${qt_modules}], [ HAVE_$1=1 AC_DEFINE([HAVE_$1]) + CPPFLAGS+=" ${$1_CFLAGS}" + CXXFLAGS+=" ${$1_CFLAGS}" + LIBS+=" ${$1_LIBS}" ]) ]) AM_CONDITIONAL(HAVE_$1, test $HAVE_$1 -eq 1)