Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 4, 2005, 7:25:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more variable configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5276 r5277  
    371371fi
    372372
     373#--------#
     374# openGL #
     375#--------#
     376ac_save_LDFLAGS="${LDFLAGS}"
     377
    373378# checking gl header
    374379   AC_CHECK_HEADERS([GL/gl.h] ,,
     
    376381
    377382#  checking for Unix GL
    378    AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"])
     383   AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"])
    379384   if test x$FOUND_GL != xyes ; then
    380385         echo "------------------"
     
    388393    AC_CHECK_HEADERS([GL/glu.h] ,,
    389394      [AC_MSG_ERROR([cannot find opengl headers]) ])
    390 ### FIXME ### THIS CHECK SHOULD WORK EVERYWHERE !!
    391 #    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
    392 #    if test x$FOUND_GLU != xyes ; then
    393       FOUND_GLU=yes
    394       LIBS="$LIBS -lGLU"
    395 #    else
    396 #         echo "------------------"
    397 #         echo "GLU library not found."
    398 #         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    399 #         echo "------------------"
    400 #         exit -1
    401 #    fi
     395    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
     396    if test x$FOUND_GLU != xyes ; then
     397         echo "------------------"
     398         echo "GLU library not found."
     399         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     400         echo "------------------"
     401         exit -1
     402    fi
    402403
    403404# checking for GLEW-headers
     
    413414         exit -1
    414415   fi
     416## resetting LD-flags as before GL
     417LDFLAGS="${ac_save_LDFLAGS}"
    415418
    416419#--------#
Note: See TracChangeset for help on using the changeset viewer.