Changeset 3863 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- Apr 18, 2005, 10:10:26 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r3790 r3863 142 142 143 143 #-------------------# 144 # SDL_image-disable #145 #-------------------#146 def_sdl_image=yes147 AC_MSG_CHECKING([if SDL_image should be enabled])148 AC_ARG_WITH([sdl_image],149 AC_HELP_STRING( [--without-sdl-image],150 [Prevents SDL_image from being loaded]), [def_sdl_image=no])151 if test x$def_sdl_image = xyes; then152 echo "yes"153 fi154 if test x$def_sdl_image = xno; then155 echo "no"156 fi157 158 #-------------------#159 144 # SubProject-enable # 160 145 #-------------------# … … 181 166 [builds orxonox with profiling support]), [def_profiling=yes]) 182 167 if test x$def_profiling = xyes; then 183 AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)184 168 echo "yes" 185 169 CXXFLAGS="$CXXFLAGS -pg" 186 170 fi 187 171 if test x$def_profiling = xno; then 172 echo "no" 173 fi 174 175 #----------------# 176 # efence Enabled # 177 #----------------# 178 def_efence=no 179 AC_MSG_CHECKING([if efence should be enabled]) 180 AC_ARG_ENABLE([efence], 181 AC_HELP_STRING( [--enable-efence], 182 [builds orxonox with efence support]), [def_efence=yes]) 183 if test x$def_efence = xyes; then 184 echo "yes" 185 fi 186 if test x$def_efence = xno; then 188 187 echo "no" 189 188 fi … … 444 443 # SDL_Image # 445 444 #-----------# 446 if test x$def_sdl_image = xyes; then447 445 # checking for SDL_image-headers 448 AC_CHECK_HEADERS([SDL_image.h] ,, 449 [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ]) 450 fi 451 if test x$def_sdl_image = xyes; then 446 AC_CHECK_HEADERS([SDL_image.h] ,, 447 [echo "sdl_image header not found."; def_sdl_image=no; exit -1]) 452 448 # checking for SDL_image-lib 453 AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes]) 454 if test x$FOUND_SDL_image = xyes ; then 455 LIBS="$LIBS -lSDL_image" 456 else 457 echo "------------------" 458 echo "SDL_image library not found." 459 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 460 echo "------------------" 461 exit -1 462 fi 463 fi 464 465 ## case no SDL-image: 466 if test x$def_sdl_image = xno; then 467 #---------# 468 # libjpeg # 469 #---------# 470 AC_CHECK_HEADERS([jpeglib.h], [jpegHeader="yes"], 471 [jpegHeader="no"]) 472 if test x$jpegHeader = xno; then 473 echo " not including jpeg." 474 else 475 AC_CHECK_LIB([jpeg], [main], [FOUND_jpeg=yes]) 476 if test x$FOUND_jpeg = xyes ; then 477 LIBS="$LIBS -ljpeg" 478 else 479 echo "------------------" 480 echo "jpeg library not found." 481 echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" 482 echo "------------------" 483 exit -1 484 fi 485 fi 486 487 #--------# 488 # libpng # 489 #--------# 490 AC_CHECK_HEADERS([png.h], [pngHeader="yes"], 491 [pngHeader="no"]) 492 if test x$pngHeader = xno; then 493 echo " not including png." 494 else 495 AC_CHECK_LIB([png], [main], FOUND_png=yes) 496 if test x$FOUND_png = xyes ; then 497 LIBS="$LIBS -lpng" 498 else 499 echo "------------------" 500 echo "png library not found." 501 echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" 502 echo "------------------" 503 exit -1 504 fi 505 fi 506 fi 449 AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes]) 450 if test x$FOUND_SDL_image = xyes ; then 451 LIBS="$LIBS -lSDL_image" 452 else 453 echo "------------------" 454 echo "SDL_image library not found." 455 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 456 echo "------------------" 457 exit -1 458 fi 507 459 508 460 #-----# … … 583 535 fi 584 536 537 538 #--------# 539 # efence # 540 #--------# 541 if test x$def_efence = xyes ; then 542 AC_CHECK_LIB([efence], [main], [FOUND_efence=yes]) 543 if test x$FOUND_efence = xyes ; then 544 LIBS="$LIBS -lefence" 545 fi 546 547 fi 585 548 586 549 # FIXME: Replace `main' with a function in `-lm':
Note: See TracChangeset
for help on using the changeset viewer.