Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10475 in orxonox.OLD


Ignore:
Timestamp:
Jan 29, 2007, 9:32:37 AM (17 years ago)
Author:
bensch
Message:

fixed a compilation bug on tardis machines, now SDL is only searched for with sdl-config if SDL is not found natively by automake algorithms.
the only problem is, that if SDL is really not found, nothing is reported
but at least it works for the moment

please inform me if any problems on other platforms do arise

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/acinclude.m4

    r9883 r10475  
    66    _lib_check=""
    77
    8     AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"])
     8    AC_CHECK_HEADERS([$1], [_header_check="yes"], [_header_check="no"])
    99    AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"])
    1010    if [test "x$_header_check" = "xyes" && test "x$_lib_check" = "xyes"] ; then
     
    2828    _header_USED=""
    2929
     30##    AC_CHECK_HEADERS([$1], [_header_check="yes"],, [$7])
    3031    for _header in $1
    3132    do
    32       AC_CHECK_HEADER([${_header}], [_header_check="yes" ; _header_USED=${_header}], [_header_check="no"], $7)
     33      AC_CHECK_HEADERS([${_header}], [_header_check="yes" ; _header_USED=${_header}], [_header_check="no"], $7)
    3334      if  test "x${_header_check}" = "xyes" ; then
    3435        break
  • trunk/config.h.in

    r9110 r10475  
    99/* if we have CURL */
    1010#undef HAVE_CURL
     11
     12/* Define to 1 if you have the <curl/curl.h> header file. */
     13#undef HAVE_CURL_CURL_H
    1114
    1215/* Define to 1 if you have the <GL/glew.h> header file. */
  • trunk/configure.ac

    r10376 r10475  
    294294  SDL_VERSION=`sdl-config --version`
    295295  echo $SDL_VERSION
    296    CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
    297 
    298   AX_CHECK_REQUIRED_HEADER_LIB([SDL.h SDL/SDL.h], [SDL], [main],,, [http://www.libsdl.org])
     296   
     297
     298  AX_CHECK_REQUIRED_HEADER_LIB([SDL.h SDL/SDL.h], [SDL], [main],, [
     299     CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
     300     LDFLAGS="${LDFLAGS} `sdl-config --libs`"], [http://www.libsdl.org])
     301     
    299302
    300303    ;;
  • trunk/src/lib/graphics/importer/texture.cc

    r9869 r10475  
    2222
    2323#ifdef HAVE_SDL_SDL_H
    24 #include <SDL/SDL_image.h>
    25 #include <SDL/SDL_endian.h>
    26 #include <SDL/SDL_byteorder.h>
     24 #include <SDL/SDL_image.h>
     25 #include <SDL/SDL_endian.h>
     26 #include <SDL/SDL_byteorder.h>
    2727#else
    28 #include <SDL_endian.h>
    29 #include <SDL_image.h>
    30 #include <SDL_byteorder.h>
     28 #include <SDL_image.h>
     29 #include <SDL_endian.h>
     30 #include <SDL_byteorder.h>
    3131#endif
    3232#if SDL_BYTEORDER == SDL_BIG_ENDIAN
Note: See TracChangeset for help on using the changeset viewer.