[vlc-commits] [Git][videolan/vlc][3.0.x] configure: detect GNU make before querying qmake for Qt flags

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Nov 11 10:59:24 UTC 2026



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
c8cd0588 by Brad Smith at 2026-11-11T11:52:01+01:00
configure: detect GNU make before querying qmake for Qt flags

The make/gmake detection ran after AC_OUTPUT, so it was only used for
the ./compile script and the final message. The Qt checks hardcoded
"make" to query the qmake-generated Makefiles for the Qt flags.

qmake-common.mk prints the flags with the GNU make $(info) function.
On the BSDs "make" is BSD make, where $(info ...) silently expands to
nothing, leaving QT_CFLAGS empty and the Qt module failing to find its
headers.

Move the make/gmake detection up with the other build tool checks and
use $MAKE for the qmake queries.

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -80,6 +80,15 @@ AC_PROG_CPP
 AC_PROG_OBJC
 AC_PROG_EGREP
 AC_PROG_MAKE_SET
+dnl Do we have to use make or gmake ?
+if make --version 2>&1|grep -q GNU
+then
+    # GNU make, all seems good
+    MAKE=make
+else
+    # Known GNU make alias (on BSD)
+    MAKE=gmake
+fi
 AC_PROG_INSTALL
 AM_PROG_AS
 AC_PROG_LEX([noyywrap])
@@ -4058,9 +4067,9 @@ AS_IF([test "${enable_qt}" != "no"], [
         echo "include ${ac_pwd}/modules/gui/qt/qmake-common.mk"  >> ${ac_pwd}/modules/gui/qt/qmake-qt
 
         AC_MSG_RESULT([yes])
-        QT_LIBS=$(cd ${ac_pwd}/modules/gui/qt && make -s -f qmake-qt get_libs)
-        QT_CFLAGS=$(cd ${ac_pwd}/modules/gui/qt && make -s -f qmake-qt get_cflags)
-        QT_LDFLAGS=$(cd ${ac_pwd}/modules/gui/qt && make -s -f qmake-qt get_ldflags)
+        QT_LIBS=$(cd ${ac_pwd}/modules/gui/qt && ${MAKE} -s -f qmake-qt get_libs)
+        QT_CFLAGS=$(cd ${ac_pwd}/modules/gui/qt && ${MAKE} -s -f qmake-qt get_cflags)
+        QT_LDFLAGS=$(cd ${ac_pwd}/modules/gui/qt && ${MAKE} -s -f qmake-qt get_ldflags)
         AC_SUBST([QT_LIBS])
         AC_SUBST([QT_CFLAGS])
         AC_SUBST([QT_LDFLAGS])
@@ -4081,7 +4090,7 @@ AS_IF([test "${enable_qt}" != "no"], [
           echo "include ${ac_pwd}/modules/gui/qt/qmake-common.mk"        >> ${ac_pwd}/modules/gui/qt/qmake-private-gui
 
           AC_MSG_RESULT([yes])
-          QT_GUI_PRIVATE_CFLAGS=$(cd ${ac_pwd}/modules/gui/qt && make -s -f qmake-private-gui get_cflags)
+          QT_GUI_PRIVATE_CFLAGS=$(cd ${ac_pwd}/modules/gui/qt && ${MAKE} -s -f qmake-private-gui get_cflags)
           AC_SUBST([QT_GUI_PRIVATE_CFLAGS])
           have_qt_gui_private="yes"
         ],[
@@ -4724,15 +4733,6 @@ AM_COND_IF([HAVE_DARWIN], [
 dnl Generate makefiles
 AC_OUTPUT
 
-dnl Do we have to use make or gmake ?
-if make --version 2>&1|grep -q GNU
-then
-    # GNU make, all seems good
-    MAKE=make
-else
-    # Known GNU make alias (on BSD)
-    MAKE=gmake
-fi
 dnl Shortcut to nice compile message
 if test -n $SHELL; then
   SHELL=${CONFIG_SHELL-/bin/sh}



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8cd058876d8809df7b6a185f4208aa6c8a07534

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8cd058876d8809df7b6a185f4208aa6c8a07534
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list