* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722)
This commit is contained in:
parent
ab849b7fac
commit
f3653ec446
1 changed files with 20 additions and 18 deletions
18
configure.ac
18
configure.ac
|
@ -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
|
||||||
|
gnu*)
|
||||||
LIBMODULES="-ldl"
|
LIBMODULES="-ldl"
|
||||||
MODULES_SUFFIX=".so"
|
MODULES_SUFFIX=".so"
|
||||||
HAVE_MODULES=yes
|
HAVE_MODULES=yes
|
||||||
elif test "$opsys" = "cygwin"; then
|
;;
|
||||||
|
cygwin|mingw32)
|
||||||
MODULES_SUFFIX=".dll"
|
MODULES_SUFFIX=".dll"
|
||||||
HAVE_MODULES=yes
|
HAVE_MODULES=yes
|
||||||
elif test "$opsys" = "darwin"; then
|
;;
|
||||||
|
darwin)
|
||||||
MODULES_SUFFIX=".so"
|
MODULES_SUFFIX=".so"
|
||||||
HAVE_MODULES=yes
|
HAVE_MODULES=yes
|
||||||
elif test "$opsys" = "mingw32"; then
|
;;
|
||||||
MODULES_SUFFIX=".dll"
|
*)
|
||||||
HAVE_MODULES=yes
|
|
||||||
else
|
|
||||||
# BSD system have dlopen in the libc
|
# BSD system have dlopen in the libc
|
||||||
AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"]
|
AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"]
|
||||||
[HAVE_MODULES=yes], [])
|
[HAVE_MODULES=yes], [])
|
||||||
fi
|
;;
|
||||||
|
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])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue