Changeset 2982 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 25, 2004, 1:17:21 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r2980 r2982 68 68 fi 69 69 70 71 70 # checking for mingw32 72 71 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) … … 74 73 LIBS="$LIBS -lmingw32" 75 74 fi 75 # checking for SDL-headers 76 AC_CHECK_HEADERS(SDL/SDL.h ,, 77 [AC_MSG_ERROR([cannot find SDL headers]) ]) 78 79 #checking for libSDL 80 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 81 if test "$FOUND_sdlmain" = "yes" ; then 82 LIBS="$LIBS -lsdlmain" 83 else 84 echo "------------------" 85 echo "SDL library not found." 86 echo "please install the SDL library, which can be found at http://www.libsdl.org" 87 echo "------------------" 88 exit 1 89 fi 90 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 91 if test "$FOUND_sdl" = "yes" ; then 92 LIBS="$LIBS -lsdl" 93 else 94 echo "------------------" 95 echo "SDL library not found." 96 echo "please install the SDL library, which can be found at http://www.libsdl.org" 97 echo "------------------" 98 exit -1 99 fi 100 76 101 77 102 ;; … … 113 138 exit -1 114 139 fi 140 141 ## checking for SDL 142 SDL_VERSION=1.2.7 143 AM_PATH_SDL($SDL_VERSION, 144 :, 145 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 146 ) 147 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 148 LIBS="$LIBS $SDL_LIBS" 115 149 ;; 116 150 *) … … 122 156 123 157 124 ## checking for SDL125 SDL_VERSION=1.2.7126 AM_PATH_SDL($SDL_VERSION,127 :,128 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])129 )130 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"131 LIBS="$LIBS $SDL_LIBS"132 158 133 159
Note: See TracChangeset
for help on using the changeset viewer.