configure.ac: fix --enable-utils

Running "configure --enable-utils" _disables_ compilation/installation of
utils (and vice versa) while omitting the --(en|dis)able-utils option auto-
enables utils.
This patch fixes the logic when the option is given on command line but
keeps utils build enabled when the option was omitted.
libnfs-4.0.0-vitalif
Lars Wendler 2018-07-06 11:54:54 +02:00
parent 37d49807ba
commit 5a5a5c1e70
No known key found for this signature in database
GPG Key ID: 571DD2D0343C6039
1 changed files with 4 additions and 2 deletions

View File

@ -25,11 +25,13 @@ fi
AC_SYS_LARGEFILE
#option: utils
MAYBE_UTILS="utils"
AC_ARG_ENABLE([utils],
[AC_HELP_STRING([--enable-utils],
[Build util programs])],
[MAYBE_UTILS=""],
[MAYBE_UTILS="utils"])
[if test $enableval = no ; then
MAYBE_UTILS=""
fi])
AC_SUBST(MAYBE_UTILS)
#option: examples