configure script reports stray, confusing "yes"
The configure
script produced from configure.ac
in Git HEAD produces puzzling output.
checking for strcasecmp... yes
checking for strlcpy... no
checking if run-time linking is supported... checking for library containing dlopen... -ldl
checking for dlfcn.h... (cached) yes
yes
checking if loadable i18n module support should be enabled... no
checking if loadable Xcursor library support should be enabled... yes
checking for sys/filio.h... no
checking for sys/select.h... yes
The text of Autoconf CHECKING
and RESULT
messages should not be nested.
Here's a patch.
diff --git a/configure.ac b/configure.ac
index 045dbb87..17a8ebce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,7 +98,6 @@ m4_pattern_forbid([^XTRANS_CONNECTION_FLAGS$])
XTRANS_CONNECTION_FLAGS
# Check for dlopen
-AC_MSG_CHECKING([if run-time linking is supported])
AC_SEARCH_LIBS(dlopen,[dl svld])
if test "x$ac_cv_search_dlopen" = xno; then
AC_SEARCH_LIBS(shl_load,[dld])
@@ -111,6 +110,7 @@ else
AC_DEFINE(HAVE_DLOPEN,1,[Use dlopen to load shared libraries])
AC_CHECK_HEADERS([dlfcn.h])
fi
+AC_MSG_CHECKING([if run-time linking is supported])
if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
HAVE_LOADABLE_MODULES=yes
else
Here's the result, having used autogen.sh
to regenerate the configure
script.
checking for strcasecmp... yes
checking for strlcpy... no
checking for library containing dlopen... -ldl
checking for dlfcn.h... (cached) yes
checking if run-time linking is supported... yes
checking if loadable i18n module support should be enabled... no
checking if loadable Xcursor library support should be enabled... yes
checking for sys/filio.h... no
checking for sys/select.h... yes
checking for sys/ioctl.h... yes
Edited by G. Branden Robinson