aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-07-14 15:40:13 -0700
committerGuy Harris <gharris@sonic.net>2020-07-14 15:40:13 -0700
commit30e7209da667e7e9de87f330c64136ee83f0eec5 (patch)
tree0575a791e75f512422176e92da192655f1bdaa5d
parent1b5e454310d1de44bc985d62290bf72af17a62b8 (diff)
configure: "XXX not requested" is "$with_XXX is not no".
with_XXX might be an argument to --with-XXX=; --with-XXX=yyy still requests XXX, so if we don't find it, we should report an error. This is the other part of GitHub issue #952.
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 1a99e2f7..86643062 100755
--- a/configure
+++ b/configure
@@ -6992,7 +6992,7 @@ else
#
# No, we don't have libnl at all.
#
- if test x$with_libnl = xyes ; then
+ if test x$with_libnl != xno ; then
as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
fi
diff --git a/configure.ac b/configure.ac
index e07d1a92..30a6c1b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -915,7 +915,7 @@ linux)
#
# No, we don't have libnl at all.
#
- if test x$with_libnl = xyes ; then
+ if test x$with_libnl != xno ; then
AC_MSG_ERROR([libnl support requested but libnl not found])
fi
], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )