Skip to content

Commit 339ac72

Browse files
committed
Throw an error when pkg-config is needed but not found
1 parent 4f20246 commit 339ac72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ AC_ARG_WITH([systemdsystemunitdir],
222222
[AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],,
223223
[with_systemdsystemunitdir=auto])
224224
AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [
225+
AS_IF([test "x$PKG_CONFIG" = "x"],AC_MSG_ERROR([systemd support requested but no pkg-config available to query systemd package]))
225226
def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
226227
227228
AS_IF([test "x$def_systemdsystemunitdir" = "x"],

0 commit comments

Comments
 (0)