summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fe56ff382ce8..7d58d676b7a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2079,7 +2079,7 @@ AC_ARG_WITH(gssapi,
AC_ARG_WITH(iwyu,
AS_HELP_STRING([--with-iwyu],
- [Provide IWYU binary path to check unneeded includes instead of building.
+ [Use given IWYU binary path to check unneeded includes instead of building.
Use only if you are hacking on it.]),
,)
@@ -12512,6 +12512,12 @@ AC_SUBST(PARALLELISM)
IWYU_PATH="$with_iwyu"
AC_SUBST(IWYU_PATH)
+if test ! -z "$IWYU_PATH"; then
+ if test ! -f "$IWYU_PATH"; then
+ AC_MSG_ERROR([cannot find include-what-you-use binary specified by --with-iwyu])
+ fi
+fi
+
#
# Set up ILIB for MSVC build
#