changeset 1875:4627eca2c02b

Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used. Fixes Bugzilla #242.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 23 Jun 2006 02:19:52 +0000
parents 9e85b267f8f3
children 406b8325ee34
files configure.in
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Jun 23 02:16:49 2006 +0000
+++ b/configure.in	Fri Jun 23 02:19:52 2006 +0000
@@ -876,7 +876,15 @@
             if test x$have_loadso != xyes && \
                test x$enable_x11_shared = xyes; then
                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
+                enable_x11_shared=no
             fi
+
+            if test x$have_gcc_fvisibility != xyes && \
+               test x$enable_x11_shared = xyes; then
+                AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading])
+                enable_x11_shared=no
+            fi
+
             if test x$have_loadso = xyes && \
                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
                 echo "-- dynamic libX11 -> $x11_lib"