* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722)

This commit is contained in:
Glenn Morris 2016-04-15 19:19:47 -04:00
parent ab849b7fac
commit f3653ec446

View file

@ -3336,24 +3336,26 @@ HAVE_MODULES=no
MODULES_OBJ= MODULES_OBJ=
MODULES_SUFFIX= MODULES_SUFFIX=
if test "${with_modules}" != "no"; then if test "${with_modules}" != "no"; then
if test "$opsys" = "gnu-linux"; then case $opsys in
LIBMODULES="-ldl" gnu*)
MODULES_SUFFIX=".so" LIBMODULES="-ldl"
HAVE_MODULES=yes MODULES_SUFFIX=".so"
elif test "$opsys" = "cygwin"; then HAVE_MODULES=yes
MODULES_SUFFIX=".dll" ;;
HAVE_MODULES=yes cygwin|mingw32)
elif test "$opsys" = "darwin"; then MODULES_SUFFIX=".dll"
MODULES_SUFFIX=".so" HAVE_MODULES=yes
HAVE_MODULES=yes ;;
elif test "$opsys" = "mingw32"; then darwin)
MODULES_SUFFIX=".dll" MODULES_SUFFIX=".so"
HAVE_MODULES=yes HAVE_MODULES=yes
else ;;
# BSD system have dlopen in the libc *)
AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"] # BSD system have dlopen in the libc
[HAVE_MODULES=yes], []) AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"]
fi [HAVE_MODULES=yes], [])
;;
esac
if test "${HAVE_MODULES}" = no; then if test "${HAVE_MODULES}" = no; then
AC_MSG_ERROR([Dynamic modules are not supported on your system]) AC_MSG_ERROR([Dynamic modules are not supported on your system])