Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2188 in orxonox.OLD for orxonox/branches/chris/configure.ac


Ignore:
Timestamp:
Jul 17, 2004, 10:22:35 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/chris: now it compiles for Linux, but there remains a segmentation fault, when pushing a button, also the ship is not rendered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/configure.ac

    r2058 r2188  
    1313    mingw=yes
    1414    MSBITFIELDS="-mms-bitfields"
     15    MWINDOWS="-mwindows"
    1516    ;;
    1617  *)
     
    103104fi
    104105
     106## SDL CHECK
     107
     108#checking for SDL libs
     109AC_CHECK_HEADERS(SDL/SDL.h ,,
     110      [AC_MSG_ERROR([cannot find SDL headers]) ])
     111
     112AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
     113if test "$FOUND_SDL" = "yes" ; then
     114    LIBS="$LIBS -lSDL"
     115    #   checking for Windows sdl library
     116else
     117    echo "We did not find the Linux sdl Library. Checking for Windows Library"
     118    AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
     119    if test "$FOUND_sdlmain" = "yes" ; then
     120        LIBS="$LIBS -lsdlmain -lsdl"
     121    else
     122         echo "------------------"
     123         echo "sdl library not found."
     124         echo "please install the libsdl, which can be found at http://www.libsdl.org"
     125         echo "------------------"
     126         exit -1
     127    fi
     128fi
     129
     130#checking for pthread libs
     131AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     132if test "$FOUND_pthread" = "yes" ; then
     133    LIBS="$LIBS -lpthread"
     134fi
     135
     136#checking for  libs
     137AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     138if test "$FOUND_pthread" = "yes" ; then
     139    LIBS="$LIBS -lpthread"
     140fi
     141
     142
     143
     144
     145
    105146# FIXME: Replace `main' with a function in `-lm':
    106147AC_CHECK_LIB([m], [main])
Note: See TracChangeset for help on using the changeset viewer.