Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 8, 2005, 4:58:11 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: compile with the ogg, and vorbis lib again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r4789 r4825  
    226226## checking for openGL-environment and other sys-specific parameters
    227227case "$target" in
     228
     229###########
    228230#---------#
    229231# WINDOWS #
    230232#---------#
     233###########
    231234  *-*-mingw32*)
    232235echo "mingw-WINDOWS detected"
     
    330333     fi
    331334    ;;
     335
     336#########
    332337#-------#
    333338# LINUX #
    334339#-------#
     340#########
    335341 *-*-linux*)
    336342echo "Linux detected"
     
    401407    ;;
    402408
     409#############
    403410#-----------#
    404411# MAC -OS X #
    405412#-----------#
     413#############
    406414 *darwin*)
    407415 echo "OS X detected"
     
    491499# ogg #
    492500#-----#
    493 ## checking for ogg-headers
    494 #  AC_CHECK_HEADERS([ogg/ogg.h] ,,
    495 #      [AC_MSG_ERROR([cannot find ogg header.])])
    496 ## checking for ogg-lib
    497 #  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
    498 #     if test x$FOUND_ogg = xyes ; then
    499 #       LIBS="$LIBS -logg"
    500 #     else
    501 #        echo "------------------"
    502 #        echo "ogg library not found."
    503 #        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    504 #        echo "------------------"
    505 #        exit -1
    506 #     fi
     501# checking for ogg-headers
     502  AC_CHECK_HEADERS([ogg/ogg.h] ,,
     503      [AC_MSG_ERROR([cannot find ogg header.])])
     504# checking for ogg-lib
     505  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
     506     if test x$FOUND_ogg = xyes ; then
     507       LIBS="$LIBS -logg"
     508     else
     509        echo "------------------"
     510        echo "ogg library not found."
     511        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     512        echo "------------------"
     513        exit -1
     514     fi
    507515
    508516#--------#
    509517# vorbis #
    510518#--------#
    511 ## checking for vorbis-lib
    512 #  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
    513 #     if test x$FOUND_vorbis = xyes ; then
    514 #       LIBS="$LIBS -lvorbis"
    515 #     else
    516 #        echo "------------------"
    517 #        echo "vorbis library not found."
    518 #        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    519 #        echo "------------------"
    520 #        exit -1
    521 #     fi
     519# checking for vorbis-lib
     520  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
     521     if test x$FOUND_vorbis = xyes ; then
     522       LIBS="$LIBS -lvorbis"
     523     else
     524        echo "------------------"
     525        echo "vorbis library not found."
     526        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     527        echo "------------------"
     528        exit -1
     529     fi
    522530
    523531#------------#
    524532# vorbisfile #
    525533#------------#
    526 ## checking for vorbis-headers
    527 #  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
    528 #      [AC_MSG_ERROR([cannot find vorbisfile header.])])
    529 ## checking for vorbisfile-lib
    530 #  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
    531 #     if test x$FOUND_vorbisfile = xyes ; then
    532 #       LIBS="$LIBS -lvorbisfile"
    533 #     else
    534 #        echo "------------------"
    535 #        echo "vorbisfile library not found."
    536 #        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    537 #        echo "------------------"
    538 #        exit -1
    539 #     fi
     534# checking for vorbis-headers
     535  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
     536      [AC_MSG_ERROR([cannot find vorbisfile header.])])
     537# checking for vorbisfile-lib
     538  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
     539     if test x$FOUND_vorbisfile = xyes ; then
     540       LIBS="$LIBS -lvorbisfile"
     541     else
     542        echo "------------------"
     543        echo "vorbisfile library not found."
     544        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     545        echo "------------------"
     546        exit -1
     547     fi
    540548
    541549#-----#
Note: See TracChangeset for help on using the changeset viewer.