summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-11-12 17:27:52 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-01-09 14:49:41 +0000
commit0b148750027fd0557c5ed93afda861ddf4b92e0f (patch)
tree7503074669dc590cb31abcb31a1e2f81cde295be
parentcd25cab4b5b957641183ce72dd1ae0424aff1663 (diff)
downloadxorg-lib-libX11-0b148750027fd0557c5ed93afda861ddf4b92e0f.tar.gz
Fix config check for loadable modules
The config check of the results of testing for dlfcn.h or dl.h just tests the value of the ac_cv_ variables, which will be 'yes' or 'no', rather than checking it is 'yes', so loadable module support would always be detected. This is necessary for successful compilation for the MinGW target without the optional dlfcn-win32 library. v2: Also, fixed typoed name of ac_cv_header_dlfcn_h, so check still works correctly when dlfcn.h is available Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fe317994..c2920942 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,7 +177,7 @@ else
AC_DEFINE(HAVE_DLOPEN,1,[Use dlopen to load shared libraries])
AC_CHECK_HEADERS([dlfcn.h])
fi
-if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
+if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
HAVE_LOADABLE_MODULES=yes
else
HAVE_LOADABLE_MODULES=no