Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6164 in orxonox.OLD for trunk/configure.ac


Ignore:
Timestamp:
Dec 19, 2005, 6:44:32 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: ac-files for easier checks in the configure.ac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5944 r6164  
    3636AC_CONFIG_SRCDIR([./src])
    3737AC_CONFIG_HEADER([config.h])
     38AC_CONFIG_MACRO_DIR([m4])
    3839
    3940#########################
     
    399400# openGL #
    400401#--------#
    401 # checking gl header
    402    AC_CHECK_HEADERS([GL/gl.h] ,,
    403       [AC_MSG_ERROR([cannot find opengl headers]) ])
    404 
    405 #  checking for Unix GL
    406    AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"])
    407    if test x$FOUND_GL != xyes ; then
    408          echo "------------------"
    409          echo "opengl not found."
    410          echo "please install the opengl package which can be found at http://www.opengl.org"
    411          echo "------------------"
    412          exit -1
    413    fi
    414 
    415 # cheking for GLU-header
    416     AC_CHECK_HEADERS([GL/glu.h] ,,
    417       [AC_MSG_ERROR([cannot find opengl headers]) ])
    418     AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
    419     if test x$FOUND_GLU != xyes ; then
    420          echo "------------------"
    421          echo "GLU library not found."
    422          echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    423          echo "------------------"
    424          exit -1
    425     fi
    426 
    427 # checking for GLEW-headers
    428    AC_CHECK_HEADERS([GL/glew.h] ,,
    429       [AC_MSG_ERROR([cannot find glew headers]) ])
    430 # checking for GLEW-lib
    431   AC_CHECK_LIB([GLEW], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"])
    432    if test x$FOUND_GLEW != xyes ; then
    433          echo "------------------"
    434          echo "glew not found."
    435          echo "please install the glew package which can be found at http://glew.sourceforge.net"
    436          echo "------------------"
    437          exit -1
    438    fi
     402AX_CHECK_REQUIRED_HEADER_LIB([GL/gl.h], [GL], [main],,, [http://www.opengl.org])
     403AX_CHECK_REQUIRED_HEADER_LIB([GL/glu.h], [GLU], [main],,, [http://www.opengl.org])
     404AX_CHECK_REQUIRED_HEADER_LIB([GL/glew.h], [GLEW], [main],,, [http://glew.sourceforge.net])
    439405
    440406#--------#
    441407# openAL #
    442408#--------#
     409
     410
    443411# checking for openAL-headers
    444412  AC_CHECK_HEADERS([AL/al.h] ,,
Note: See TracChangeset for help on using the changeset viewer.