]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: don't call AC_SUBST() if unnecessary
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2022 14:13:03 +0000 (16:13 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2022 14:13:03 +0000 (16:13 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 83c49d94443a5cbc97dd095d00e530eff919237a..5821a3bf1c5435f7fbfe85c64d149d5a92bbb4d0 100644 (file)
@@ -2506,8 +2506,9 @@ AC_ARG_WITH([bashcompletiondir],
       [with_bashcompletiondir=${datadir}/bash-completion/completions])
   ])
 ])
-AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
-
+AS_IF([test "x$enable_bash_completion" = xyes], [
+  AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
+])
 
 
 AC_ARG_WITH([python],