From e8ba01d1a23041d6d2bdb8c8dd7c4e1c929df848 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 22 Jul 2017 18:36:22 -0700 Subject: [PATCH] * configure.ac (MODULES_SUFFIX): Always give it a value. This prevents a Makefile thinko like "rm *${MODULE_SUFFIX}". --- configure.ac | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 056c8c35c57..b127563c9d3 100644 --- a/configure.ac +++ b/configure.ac @@ -3557,27 +3557,22 @@ AC_SUBST(LIBZ) LIBMODULES= HAVE_MODULES=no MODULES_OBJ= -MODULES_SUFFIX= +case $opsys in + cygwin|mingw32) MODULES_SUFFIX=".dll" ;; + *) MODULES_SUFFIX=".so" ;; +esac if test "${with_modules}" != "no"; then case $opsys in gnu|gnu-linux) LIBMODULES="-ldl" - MODULES_SUFFIX=".so" - HAVE_MODULES=yes - ;; - cygwin|mingw32) - MODULES_SUFFIX=".dll" HAVE_MODULES=yes ;; - darwin) - MODULES_SUFFIX=".so" + cygwin|mingw32|darwin) HAVE_MODULES=yes ;; *) # BSD systems have dlopen in libc. - AC_CHECK_FUNC([dlopen], - [MODULES_SUFFIX=".so" - HAVE_MODULES=yes]) + AC_CHECK_FUNC([dlopen], [HAVE_MODULES=yes]) ;; esac -- 2.39.5