650
650
CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags`"
651
651
LIBS="`$XML2_CONFIG --libs` $LIBS"
652
652
AC_DEFINE(HAVE_LIBXML2, 1, [Define if you have the xml2 library (-lxml2).]),
653
AC_MSG_ERROR([You need the library xml2 to compile Armagetron. Read the file doc/install_linux.html.])
653
AC_MSG_ERROR([You need the library xml2 to compile ${progtitle}. Read the file doc/install_linux.html.])
654
654
,`$XML2_CONFIG --libs`)
656
656
AC_CHECK_FUNC(xmlParserInputBufferCreateFilenameDefault,
781
781
AC_CHECK_FUNC(SDL_Init,
782
782
AC_DEFINE(HAVE_LIBSDL,,[Define if you have the library SDL]),
783
AC_MSG_ERROR([You need the library SDL to compile Armagetron. Read the file doc/install_linux.html.])
783
AC_MSG_ERROR([You need the library SDL to compile ${progtitle}. Read the file doc/install_linux.html.])
786
786
dnl ***************** OPTIONAL STUFF AFTER THIS POINT **********************
816
816
dnl *************************************************
817
dnl Winsock linking for cross-compilation. Not really supported.
818
dnl *************************************************
820
if test "`${SDL_CONFIG} --libs | grep windows`" ; then
821
AC_CHECK_LIB(wsock32, connect)
824
dnl *************************************************
818
826
dnl *************************************************
824
832
AC_CHECK_LIB($SYS_GL_LIB, glVertex3f,,
825
833
AC_MSG_RESULT([OpenGL not found. Maybe it needs X11 to compile? Checking that...])
826
AC_CHECK_LIB(X11,main,
834
AC_CHECK_LIB(X11,XOpenDisplay,
827
835
LIBS="-lX11 -L/usr/X11R6/lib $LIBS"
828
836
AC_DEFINE(HAVE_LIBX11, 1, [Define if you have the X11 library (-lX11).])
831
839
Standard X11 library needed by OpenGL not found.
832
840
]),-L/usr/X11R6/lib)
833
AC_CHECK_LIB(Xext,main,-L/usr/X11R6/lib)
834
AC_CHECK_LIB(Xt,main,-L/usr/X11R6/lib)
835
AC_CHECK_LIB(Xi,main,-L/usr/X11R6/lib)
836
AC_CHECK_LIB(Xmu,main,-L/usr/X11R6/lib)
841
AC_CHECK_LIB(Xext,XextFindDisplay,-L/usr/X11R6/lib)
842
AC_CHECK_LIB(Xt,XtFree,-L/usr/X11R6/lib)
843
AC_CHECK_LIB(Xi,XOpenDevice,-L/usr/X11R6/lib)
844
AC_CHECK_LIB(Xmu,XmuDrawLogo,-L/usr/X11R6/lib)
837
845
AC_CHECK_LIB($SYS_GL_LIB, glBegin,,AC_MSG_ERROR([
838
You need Mesa or an OpenGL-System to compile Armagetron.
846
You need Mesa or an OpenGL-System to compile ${progtitle}.
839
847
Maybe your libGL needs the X libraries and your system does not
840
848
find them? Read the file doc/install_linux.html.]),-L/usr/X11R6/lib)
855
863
dnl AC_CHECK_LIB($SYS_GLU_LIB, gluBuild2DMipmaps,,
856
864
AC_CHECK_LIB($SYS_GLU_LIB, gluBuild3DMipmaps,,
858
You need GLU to compile Armagetron; it SHOULD have come with OpenGL.
866
You need GLU to compile ${progtitle}; it SHOULD have come with OpenGL.
859
867
Read the file doc/install_linux.html.]))
861
869
dnl *************************************************
966
974
dnl *************************************************
968
dnl AC_CHECK_LIB(g++, main,,
976
dnl AC_CHECK_LIB(g++, cin,,
969
977
dnl AC_MSG_WARN([C++ standard library not found. You can ignore this warning on non-GNU-systems.]))
973
AC_CHECK_LIB(z, main,,
974
AC_MSG_ERROR([You need libz to compile Armagetron.]))
981
AC_CHECK_LIB(z, gzread,,
982
AC_MSG_ERROR([You need libz to compile ${progtitle}.]))
976
984
AC_MSG_CHECKING(whether libpng is installed)
977
985
if PNGLIBS=`libpng-config --libs`; then
981
989
CPPFLAGS="$CPPFLAGS `libpng-config --cflags`"
982
990
LIBS="$LIBS $PNGLIBS"
984
AC_CHECK_FUNC(png_check_sig,
992
AC_CHECK_FUNC(png_sig_cmp,
986
AC_MSG_ERROR([You need libpng to compile Armagetron.]))
994
AC_MSG_ERROR([You need libpng to compile ${progtitle}.]))
988
AC_CHECK_LIB(jpeg, main,,
996
AC_CHECK_LIB(jpeg, jpeg_read_header,,
990
998
libjpeg not found. Expect small graphical errors ( missing moviepack title screen ).]
994
1002
AC_CHECK_LIB(SDL_image, IMG_Load,,
995
1003
dnl AC_CHECK_LIB(IMG, main,,
996
AC_MSG_ERROR([You need the library SDL_image to compile Armagetron.]
1004
AC_MSG_ERROR([You need the library SDL_image to compile ${progtitle}.]