Changeset 3238 in orxonox.OLD for orxonox/branches/nico/configure.ac
- Timestamp:
- Dec 20, 2004, 2:42:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/nico/configure.ac
r3001 r3238 2 2 # Process this file with autoconf to produce a configure script. 3 3 4 #AC_PREREQ(2.56)5 AC_INIT(orxonox, 0. 1-pre-alpha, orxonox-dev@mail.datacore.ch)4 AC_PREREQ(2.56) 5 AC_INIT(orxonox, 0.2.0_alpha-r1, orxonox-dev@mail.datacore.ch) 6 6 7 7 # Detect the canonical host and target build environment. … … 20 20 AC_PROG_CXX 21 21 AC_HEADER_STDC 22 23 ### CHECKING OPTIONAT ARGUMENTS 24 ## DEBUG-statement 25 DEBUG=no 26 AC_MSG_CHECKING([if DEBUG-mode should be enabled]) 27 AC_ARG_ENABLE([debug], 28 AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]), 29 DEBUG=$enableval) 30 31 if test "$DEBUG" = "no"; then 32 echo "no" 33 echo " -> Setting debuglevel to 1. Like this you can still see errors." 34 DEBUG=1 35 elif test "$DEBUG" = yes; then 36 echo "yes" 37 echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." 38 DEBUG=3 39 else 40 echo "yes set to $DEBUG" 41 fi 42 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 43 44 AC_SUBST(DEBUG) 45 46 ## GTK-disabled 47 AC_MSG_CHECKING([if gtk should be enabled]) 48 AC_ARG_WITH([gtk], 49 AC_HELP_STRING( [--without-gtk], 50 [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes]) 51 if test "$def_gtk" = yes; then 52 echo "yes" 53 fi 54 if test "$def_gtk" = no; then 55 echo "no" 56 fi 57 ### SDL_image-disable 58 def_sdl_image=yes 59 AC_MSG_CHECKING([if SDL_image should be enabled]) 60 AC_ARG_WITH([sdl_image], 61 AC_HELP_STRING( [--without-sdl-image], 62 [Prevents SDL_image from being loaded]), [def_sdl_image=no]) 63 if test "$def_sdl_image" = yes; then 64 echo "yes" 65 fi 66 if test "$def_sdl_image" = no; then 67 echo "no" 68 fi 69 70 71 ## PROGRAMM CHECKING 72 # checking for Doxygen 73 AC_PATH_PROG(DOXYGEN, doxygen) 74 AM_CONDITIONAL(DOXYGEN, test $DOXYGEN) 22 75 23 76 ### CHECKING FOR SYSTEM ### … … 99 152 fi 100 153 101 102 154 ;; 103 155 … … 108 160 Linux="yes" 109 161 162 CPPFLAGS="-I/usr/X11R6/include" 163 LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 110 164 # checking gl header 111 165 AC_CHECK_HEADERS(GL/gl.h ,, … … 143 197 [AC_MSG_ERROR([cannot find SDL headers]) ]) 144 198 145 # checking for SDL-lib s199 # checking for SDL-lib 146 200 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 147 201 if test "$FOUND_SDL" = "yes" ; then … … 154 208 exit -1 155 209 fi 210 156 211 157 212 ## checking for SDL … … 171 226 osX="yes" 172 227 228 CPPFLAGS="-I/sw/include $CPPFLAGS" 173 229 # checking gl header 174 230 AC_CHECK_HEADERS(OpenGL/gl.h ,, … … 195 251 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 196 252 LIBS="$LIBS $SDL_LIBS" 253 197 254 ;; 198 255 … … 203 260 AC_SUBST(MSBITFIELDS) 204 261 205 206 262 ## check for SDL_Image 263 if test "$def_sdl_image" = "yes"; then 264 # checking for SDL_image-headers 265 AC_CHECK_HEADERS(SDL/SDL_image.h ,, 266 [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ]) 267 fi 268 if test "$def_sdl_image" = "yes"; then 269 # checking for SDL_image-lib 270 AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes) 271 if test "$FOUND_SDL_image" = "yes" ; then 272 LIBS="$LIBS -lSDL_image" 273 else 274 echo "------------------" 275 echo "SDL_image library not found." 276 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 277 echo "------------------" 278 exit -1 279 fi 280 fi 281 282 283 if test "$def_sdl_image" = "no"; then 284 ## checking for libjpeg 285 AC_CHECK_HEADERS(jpeglib.h ,jpegHeader="yes", 286 jpegHeader="no") 287 if test $jpegHeader = "no"; then 288 echo " not including jpeg." 289 else 290 AC_CHECK_LIB([jpeg], [main], FOUND_jpeg=yes) 291 if test "$FOUND_jpeg" = "yes" ; then 292 LIBS="$LIBS -ljpeg" 293 else 294 echo "------------------" 295 echo "jpeg library not found." 296 echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" 297 echo "------------------" 298 exit -1 299 fi 300 fi 301 302 ## checking for libpng 303 AC_CHECK_HEADERS(png.h ,pngHeader="yes", 304 pngHeader="no") 305 if test $pngHeader = "no"; then 306 echo " not including png." 307 else 308 AC_CHECK_LIB([png], [main], FOUND_png=yes) 309 if test "$FOUND_png" = "yes" ; then 310 LIBS="$LIBS -lpng" 311 else 312 echo "------------------" 313 echo "png library not found." 314 echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" 315 echo "------------------" 316 exit -1 317 fi 318 fi 319 fi 207 320 208 321 ## checking for GTK 209 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 322 if test "$def_gtk" = yes; then 323 324 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 325 AC_MSG_CHECKING([for gtk2.0]) 326 if `pkg-config --exists gtk+-2.0`; then 327 echo "yes" 328 have_gtk2=yes 329 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 330 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 331 AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2]) 332 else 333 echo "no" 334 fi 335 336 fi 210 337 AC_SUBST(GTK2_LIBS) 211 338 AC_SUBST(GTK2_CFLAGS) 212 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes) 339 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 340 213 341 214 342 215 343 #checking for pthread libs 216 AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)217 if test "$FOUND_pthread" = "yes" ; then218 LIBS="$LIBS -lpthread"219 fi344 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) 345 # if test "$FOUND_pthread" = "yes" ; then 346 # LIBS="$LIBS -lpthread" 347 # fi 220 348 221 349 … … 223 351 AC_CHECK_LIB([m], [main]) 224 352 225 353 226 354 # Checks for header files. 227 355 AC_HEADER_STDC … … 236 364 237 365 AC_CONFIG_FILES([Makefile 238 console/Makefile239 gui/Makefile366 src/console/Makefile 367 src/gui/Makefile 240 368 src/Makefile 241 importer/Makefile])369 src/importer/Makefile]) 242 370 AC_OUTPUT
Note: See TracChangeset
for help on using the changeset viewer.