diff mbox series

[bluez/bluez] configure.ac: Fix --disable-cups

Message ID 20240416052603.4373-2-polynomial-c@gmx.de
State New
Headers show
Series [bluez/bluez] configure.ac: Fix --disable-cups | expand

Commit Message

Lars Wendler April 16, 2024, 5:26 a.m. UTC
or else we get:
  configure: error: conditional "CUPS_SERVERBIN" was never defined.
  Usually this means the macro was only invoked conditionally.

Fixes: https://github.com/bluez/bluez/issues/773
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--
2.44.0

Comments

bluez.test.bot@gmail.com April 16, 2024, 7:01 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=844910

---Test result---

Test Summary:
CheckPatch                    PASS      0.23 seconds
GitLint                       PASS      0.19 seconds
BuildEll                      PASS      24.48 seconds
BluezMake                     PASS      1689.88 seconds
MakeCheck                     PASS      12.81 seconds
MakeDistcheck                 PASS      178.27 seconds
CheckValgrind                 PASS      248.88 seconds
CheckSmatch                   PASS      352.63 seconds
bluezmakeextell               PASS      119.54 seconds
IncrementalBuild              PASS      1451.34 seconds
ScanBuild                     PASS      1022.03 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 9ebc250cf..047ec1a7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -249,12 +249,12 @@  AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no")
 if (test "${enable_cups}" != "no"); then
 	AC_MSG_CHECKING([cups directory])
 	cups_serverbin=`$PKG_CONFIG cups --variable=cups_serverbin`
-	AM_CONDITIONAL(CUPS_SERVERBIN, test "${cups_serverbin}" != "")
-	if (test "${cups_serverbin}" != ""); then
-		AC_SUBST(CUPS_SERVERBIN, ${cups_serverbin})
-	fi
 	AC_MSG_RESULT([${cups_serverbin}])
 fi
+AM_CONDITIONAL(CUPS_SERVERBIN, test "${cups_serverbin}" != "")
+AS_IF([test "${cups_serverbin}" != ""],[
+	AC_SUBST(CUPS_SERVERBIN, ${cups_serverbin})
+])

 AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh],
 		[enable Mesh profile support]), [enable_mesh=${enableval}])