aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-04-15 19:19:47 -0400
committerGlenn Morris2016-04-15 19:19:47 -0400
commitf3653ec446ed95404889cf16c67b2d96b3955f52 (patch)
tree22369e7d04e84d1032cff3fcfa2df5f274fe9fcd
parentab849b7fac5f7a4bb301eb830fa0acc3ad18c18f (diff)
downloademacs-f3653ec446ed95404889cf16c67b2d96b3955f52.tar.gz
emacs-f3653ec446ed95404889cf16c67b2d96b3955f52.zip
* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722)
-rw-r--r--configure.ac38
1 files changed, 20 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index d31b8df2b04..d803363a279 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3336,24 +3336,26 @@ HAVE_MODULES=no
3336MODULES_OBJ= 3336MODULES_OBJ=
3337MODULES_SUFFIX= 3337MODULES_SUFFIX=
3338if test "${with_modules}" != "no"; then 3338if test "${with_modules}" != "no"; then
3339 if test "$opsys" = "gnu-linux"; then 3339 case $opsys in
3340 LIBMODULES="-ldl" 3340 gnu*)
3341 MODULES_SUFFIX=".so" 3341 LIBMODULES="-ldl"
3342 HAVE_MODULES=yes 3342 MODULES_SUFFIX=".so"
3343 elif test "$opsys" = "cygwin"; then 3343 HAVE_MODULES=yes
3344 MODULES_SUFFIX=".dll" 3344 ;;
3345 HAVE_MODULES=yes 3345 cygwin|mingw32)
3346 elif test "$opsys" = "darwin"; then 3346 MODULES_SUFFIX=".dll"
3347 MODULES_SUFFIX=".so" 3347 HAVE_MODULES=yes
3348 HAVE_MODULES=yes 3348 ;;
3349 elif test "$opsys" = "mingw32"; then 3349 darwin)
3350 MODULES_SUFFIX=".dll" 3350 MODULES_SUFFIX=".so"
3351 HAVE_MODULES=yes 3351 HAVE_MODULES=yes
3352 else 3352 ;;
3353 # BSD system have dlopen in the libc 3353 *)
3354 AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"] 3354 # BSD system have dlopen in the libc
3355 [HAVE_MODULES=yes], []) 3355 AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"]
3356 fi 3356 [HAVE_MODULES=yes], [])
3357 ;;
3358 esac
3357 3359
3358 if test "${HAVE_MODULES}" = no; then 3360 if test "${HAVE_MODULES}" = no; then
3359 AC_MSG_ERROR([Dynamic modules are not supported on your system]) 3361 AC_MSG_ERROR([Dynamic modules are not supported on your system])