Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 25, 2005, 11:41:14 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: compiling again on Windows (this was pain)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r4672 r4697  
    221221    MWINDOWS="-mwindows"
    222222
    223 # checking gl header
    224         #done before loop
    225 
     223
     224
     225# checking for mingw32
     226    AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
     227    if test x$FOUND_mingw32 = xyes; then
     228        LIBS="$LIBS -lmingw32"
     229    fi
     230
     231#-----------#
     232# SDL (win) #
     233#-----------#
     234# checking for SDL-headers
     235    AC_CHECK_HEADERS([SDL/SDL.h] ,,
     236      [AC_MSG_ERROR([cannot find SDL headers]) ])
     237
     238#checking for libSDL
     239    AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
     240    if test x$FOUND_sdlmain = xyes ; then
     241       LIBS="$LIBS -lsdlmain"
     242    else
     243        echo "------------------"
     244        echo "SDL library not found."
     245        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     246        echo "------------------"
     247        exit 1
     248    fi
     249    AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
     250    if test x$FOUND_sdl = xyes ; then
     251       LIBS="$LIBS -lsdl"
     252    else
     253        echo "------------------"
     254        echo "SDL library not found."
     255        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     256        echo "------------------"
     257        exit -1
     258    fi
     259
     260#---------------#
     261# open-GL (win) #
     262#---------------#
    226263# checking gl header
    227264   AC_CHECK_HEADERS(GL/gl.h ,,
     
    255292    fi
    256293
    257 # checking for mingw32
    258     AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
    259     if test x$FOUND_mingw32 = xyes; then
    260         LIBS="$LIBS -lmingw32"
    261     fi
    262 # checking for SDL-headers
    263     AC_CHECK_HEADERS([SDL/SDL.h] ,,
    264       [AC_MSG_ERROR([cannot find SDL headers]) ])
    265 
    266 #checking for libSDL
    267     AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
    268     if test x$FOUND_sdlmain = xyes ; then
    269        LIBS="$LIBS -lsdlmain"
    270     else
    271         echo "------------------"
    272         echo "SDL library not found."
    273         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    274         echo "------------------"
    275         exit 1
    276     fi
    277     AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
    278     if test x$FOUND_sdl = xyes ; then
    279        LIBS="$LIBS -lsdl"
    280     else
    281         echo "------------------"
    282         echo "SDL library not found."
    283         echo "please install the SDL library, which can be found at http://www.libsdl.org"
     294#--------#
     295# openAL #
     296#--------#
     297# checking for openAL-headers
     298  AC_CHECK_HEADERS([AL/al.h] ,,
     299      [AC_MSG_ERROR([cannot find openAL header.])])
     300# checking for openAL-lib
     301  AC_CHECK_LIB([OpenAL32], [main], [FOUND_openal=yes])
     302  AC_CHECK_LIB([ALut], [main], [FOUND_ALut=yes])
     303     if test x$FOUND_openal = xyes ; then
     304      if test x$FOUND_ALut = xyes ; then
     305       LIBS="$LIBS -lALut -lOpenAL32"
     306     else
     307        echo "------------------"
     308        echo "openal library not found."
     309        echo "please install the openal library, which can be found at http://www.openal.org"
    284310        echo "------------------"
    285311        exit -1
    286     fi
    287 
     312      fi
     313     fi
    288314    ;;
    289315#-------#
     
    327353         exit -1
    328354    fi
     355
     356#--------#
     357# openAL #
     358#--------#
     359# checking for openAL-headers
     360  AC_CHECK_HEADERS([AL/al.h] ,,
     361      [AC_MSG_ERROR([cannot find openAL header.])])
     362# checking for openAL-lib
     363  AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])
     364     if test x$FOUND_openal = xyes ; then
     365       LIBS="$LIBS -lopenal"
     366     else
     367        echo "------------------"
     368        echo "openal library not found."
     369        echo "please install the openal library, which can be found at http://www.openal.org"
     370        echo "------------------"
     371        exit -1
     372     fi
    329373
    330374# checking for SDL
     
    397441      [AC_CHECK_HEADERS([SDL/SDL_ttf.h] ,,AC_MSG_ERROR([cannot find SDL_ttf header.])]))
    398442# checking for SDL_ttf-lib
    399   AC_CHECK_LIB([SDL_ttf], [main], [FOUND_SDL_ttf=yes])
     443  AC_CHECK_LIB([SDL_ttf], [TTF_OpenFont], [FOUND_SDL_ttf=yes])
    400444     if test x$FOUND_SDL_ttf = xyes ; then
    401445       LIBS="$LIBS -lSDL_ttf"
     
    427471   fi
    428472
    429 #--------#
    430 # openAL #
    431 #--------#
    432 # checking for openAL-headers
    433   AC_CHECK_HEADERS([AL/al.h] ,,
    434       [AC_MSG_ERROR([cannot find openAL header.])])
    435 # checking for openAL-lib
    436   AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])
    437      if test x$FOUND_openal = xyes ; then
    438        LIBS="$LIBS -lopenal"
    439      else
    440         echo "------------------"
    441         echo "openal library not found."
    442         echo "please install the openal library, which can be found at http://www.openal.org"
    443         echo "------------------"
    444         exit -1
    445      fi
    446 
    447473#-----#
    448474# ogg #
    449475#-----#
    450 # checking for ogg-headers
    451   AC_CHECK_HEADERS([ogg/ogg.h] ,,
    452       [AC_MSG_ERROR([cannot find ogg header.])])
    453 # checking for ogg-lib
    454   AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
    455      if test x$FOUND_ogg = xyes ; then
    456        LIBS="$LIBS -logg"
    457      else
    458         echo "------------------"
    459         echo "ogg library not found."
    460         echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    461         echo "------------------"
    462         exit -1
    463      fi
     476## checking for ogg-headers
     477#  AC_CHECK_HEADERS([ogg/ogg.h] ,,
     478#      [AC_MSG_ERROR([cannot find ogg header.])])
     479## checking for ogg-lib
     480#  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
     481#     if test x$FOUND_ogg = xyes ; then
     482#       LIBS="$LIBS -logg"
     483#     else
     484#        echo "------------------"
     485#        echo "ogg library not found."
     486#        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     487#        echo "------------------"
     488#        exit -1
     489#     fi
    464490
    465491#--------#
    466492# vorbis #
    467493#--------#
    468 # checking for vorbis-lib
    469   AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
    470      if test x$FOUND_vorbis = xyes ; then
    471        LIBS="$LIBS -lvorbis"
    472      else
    473         echo "------------------"
    474         echo "vorbis library not found."
    475         echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    476         echo "------------------"
    477         exit -1
    478      fi
     494## checking for vorbis-lib
     495#  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
     496#     if test x$FOUND_vorbis = xyes ; then
     497#       LIBS="$LIBS -lvorbis"
     498#     else
     499#        echo "------------------"
     500#        echo "vorbis library not found."
     501#        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     502#        echo "------------------"
     503#        exit -1
     504#     fi
    479505
    480506#------------#
    481507# vorbisfile #
    482508#------------#
    483 # checking for vorbis-headers
    484   AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
    485       [AC_MSG_ERROR([cannot find vorbisfile header.])])
    486 # checking for vorbisfile-lib
    487   AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
    488      if test x$FOUND_vorbisfile = xyes ; then
    489        LIBS="$LIBS -lvorbisfile"
    490      else
    491         echo "------------------"
    492         echo "vorbisfile library not found."
    493         echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    494         echo "------------------"
    495         exit -1
    496      fi
     509## checking for vorbis-headers
     510#  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
     511#      [AC_MSG_ERROR([cannot find vorbisfile header.])])
     512## checking for vorbisfile-lib
     513#  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
     514#     if test x$FOUND_vorbisfile = xyes ; then
     515#       LIBS="$LIBS -lvorbisfile"
     516#     else
     517#        echo "------------------"
     518#        echo "vorbisfile library not found."
     519#        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     520#        echo "------------------"
     521#        exit -1
     522#     fi
    497523
    498524#-----#
Note: See TracChangeset for help on using the changeset viewer.