Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2189 in orxonox.OLD for orxonox/branches/chris/configure.ac


Ignore:
Timestamp:
Jul 17, 2004, 10:57:20 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/chris: now it configures the right values for Linux&Winodws.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/configure.ac

    r2188 r2189  
    1111case `uname` in
    1212  *MINGW*)
    13     mingw=yes
     13    mingw="yes"
    1414    MSBITFIELDS="-mms-bitfields"
    1515    MWINDOWS="-mwindows"
    1616    ;;
    1717  *)
    18     mingw=no
     18    mingw="no"
    1919    ;;
    2020esac
     
    104104fi
    105105
     106## mingw CHECK
     107if 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
     112fi
     113
    106114## SDL CHECK
    107115
     
    109117AC_CHECK_HEADERS(SDL/SDL.h ,,
    110118      [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
     119if 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
    116125else
    117     echo "We did not find the Linux sdl Library. Checking for Windows Library"
    118126    AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
    119127    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"
    127129    fi
     130        AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
     131        if test "$FOUND_sdl" = "yes" ; then
     132                LIBS="$LIBS -lsdl"
     133        fi
    128134fi
    129135
     
    133139    LIBS="$LIBS -lpthread"
    134140fi
    135 
    136 #checking for  libs
    137 AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
    138 if test "$FOUND_pthread" = "yes" ; then
    139     LIBS="$LIBS -lpthread"
    140 fi
    141 
    142141
    143142
Note: See TracChangeset for help on using the changeset viewer.