configure.in
changeset 1875 4627eca2c02b
parent 1871 9ff9a58fa1e3
child 1879 cb232e63552c
--- 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"