Changeset 5221 in orxonox.OLD for trunk/configure.ac
- Timestamp:
- Sep 23, 2005, 5:05:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r5220 r5221 65 65 66 66 #-----------------# 67 # shared-lib-path # 68 #-----------------# 69 SHARED_LIB_PATH=no 70 AC_MSG_CHECKING([shared lib path]) 71 AC_ARG_WITH([shared-lib-path], 72 AC_HELP_STRING( [--with-shared-lib-path], [Tells the executable, where to look for the shared libraries.]), 73 SHARED_LIB_PATH=$enableval) 74 75 if test x$SHARED_LIB_PATH = xno; then 76 echo "no" 77 else 78 echo $SHARED_LIB_PATH 79 fi 80 81 82 #-----------------# 67 83 # DEBUG-statement # 68 84 #-----------------# … … 252 268 253 269 #-----------# 254 # SDL 270 # SDL(win) # 255 271 #-----------# 256 272 # checking for SDL-headers … … 346 362 Linux="yes" 347 363 348 CPPFLAGS="-I/usr/X11R6/include -I/usr/include -I$HOME/tmp/include" 349 LDFLAGS=" -Wl,-rpath,$HOME/tmp/lib -L/usr/lib -L$HOME/tmp/lib $LDFLAGS" 364 CPPFLAGS="-I/usr/include" 365 if test x$SHARED_LIB_PATH != xno; then 366 echo "setting new LDFlAGS with $SHARED_LIB_PATH" 367 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS" 368 fi 369 LDFLAGS="-L/usr/lib" 370 ## LDFLAGS="-L/usr/lib -L$HOME/tmp/lib $LDFLAGS" 371 350 372 # checking gl header 351 373 AC_CHECK_HEADERS([GL/gl.h] ,, … … 368 390 [AC_MSG_ERROR([cannot find opengl headers]) ]) 369 391 370 #AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)371 #if test x$FOUND_GLU = xyes ; then392 AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes) 393 if test x$FOUND_GLU = xyes ; then 372 394 LIBS="$LIBS -lGLU" 373 #else374 #echo "------------------"375 #echo "GLU library not found."376 #echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"377 #echo "------------------"378 #exit -1379 #fi395 else 396 echo "------------------" 397 echo "GLU library not found." 398 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 399 echo "------------------" 400 exit -1 401 fi 380 402 381 403 #--------# … … 397 419 fi 398 420 # checking for alut 399 AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])400 if test x$FOUND_openal = xyes ; then401 LIBS="$LIBS -lalut"402 fi421 # AC_CHECK_LIB([alut], [main], [FOUND_openal=yes]) 422 # if test x$FOUND_openal = xyes ; then 423 # LIBS="$LIBS -lalut" 424 # fi 403 425 404 426 # checking for SDL … … 407 429 echo $SDL_VERSION 408 430 409 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"410 431 AC_CHECK_HEADERS([SDL.h] ,, 411 432 [AC_CHECK_HEADERS([SDL/SDL.h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])])) 412 413 LIBS="`sdl-config --libs` $LIBS" 433 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 434 AC_CHECK_LIB([SDL], [main], [FOUND_SDL=yes]) 435 if test x$FOUND_SDL = xyes ; then 436 LIBS="`sdl-config --libs` $LIBS" 437 else 438 echo "------------------" 439 echo "SDL library not found." 440 echo "please install the SDL library, which can be found at http://www.libsdl.org" 441 echo "------------------" 442 exit -1 443 fi 444 414 445 ;; 415 446 … … 483 514 exit -1 484 515 fi 485 486 516 487 517 #-----------#
Note: See TracChangeset
for help on using the changeset viewer.