comparison configure.in @ 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 9ff9a58fa1e3
children cb232e63552c
comparison
equal deleted inserted replaced
1874:9e85b267f8f3 1875:4627eca2c02b
874 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" 874 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
875 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" 875 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
876 if test x$have_loadso != xyes && \ 876 if test x$have_loadso != xyes && \
877 test x$enable_x11_shared = xyes; then 877 test x$enable_x11_shared = xyes; then
878 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading]) 878 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
879 fi 879 enable_x11_shared=no
880 fi
881
882 if test x$have_gcc_fvisibility != xyes && \
883 test x$enable_x11_shared = xyes; then
884 AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading])
885 enable_x11_shared=no
886 fi
887
880 if test x$have_loadso = xyes && \ 888 if test x$have_loadso = xyes && \
881 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then 889 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
882 echo "-- dynamic libX11 -> $x11_lib" 890 echo "-- dynamic libX11 -> $x11_lib"
883 echo "-- dynamic libX11ext -> $x11ext_lib" 891 echo "-- dynamic libX11ext -> $x11ext_lib"
884 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") 892 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")