Changeset 2189 in orxonox.OLD for orxonox/branches/chris/configure.ac
- Timestamp:
- Jul 17, 2004, 10:57:20 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/configure.ac
r2188 r2189 11 11 case `uname` in 12 12 *MINGW*) 13 mingw= yes13 mingw="yes" 14 14 MSBITFIELDS="-mms-bitfields" 15 15 MWINDOWS="-mwindows" 16 16 ;; 17 17 *) 18 mingw= no18 mingw="no" 19 19 ;; 20 20 esac … … 104 104 fi 105 105 106 ## mingw CHECK 107 if test $mingw = yes ; then 108 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 109 if test $FOUND_mingw32 = "yes"; then 110 LIBS="$LIBS -lmingw32" 111 fi 112 fi 113 106 114 ## SDL CHECK 107 115 … … 109 117 AC_CHECK_HEADERS(SDL/SDL.h ,, 110 118 [AC_MSG_ERROR([cannot find SDL headers]) ]) 111 112 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 113 if test "$FOUND_SDL" = "yes" ; then 114 LIBS="$LIBS -lSDL" 115 # checking for Windows sdl library 119 if test $mingw = no ; then 120 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 121 if test "$FOUND_SDL" = "yes" ; then 122 LIBS="$LIBS -lSDL" 123 fi 124 # checking for Windows sdl library 116 125 else 117 echo "We did not find the Linux sdl Library. Checking for Windows Library"118 126 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 119 127 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 128 LIBS="$LIBS -lsdlmain" 127 129 fi 130 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 131 if test "$FOUND_sdl" = "yes" ; then 132 LIBS="$LIBS -lsdl" 133 fi 128 134 fi 129 135 … … 133 139 LIBS="$LIBS -lpthread" 134 140 fi 135 136 #checking for libs137 AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)138 if test "$FOUND_pthread" = "yes" ; then139 LIBS="$LIBS -lpthread"140 fi141 142 141 143 142
Note: See TracChangeset
for help on using the changeset viewer.