Makefile: WARNINGS: add -Winit-self
[olsrd.git] / make / guess_os.sh
index 7a19445..8bdc528 100755 (executable)
@@ -1,11 +1,6 @@
 #!/bin/sh
 
 if test -n "$OS"; then
-       # cygwin exports the OS environment vaiable - fix it. 
-       # otherwiese accept the user supplied OS
-       case "$OS" in
-               Windows*)       OS=win32 ;;
-       esac
        echo $OS;
        exit;
 else
@@ -13,14 +8,15 @@ else
        # get it from uname
        arch=`uname -s | tr '[A-Z]' '[a-z]'`
        case "$arch" in
-               linux)          arch=linux ;;
-               freebsd*)       arch=fbsd ;;
-               netbsd*)        arch=nbsd ;;
-               openbsd*)       arch=obsd ;;
-               osx*)           arch=osx ;;
-               cygwin_*)       arch=win32 ;;
-               Windows_*)      arch=win32 ;;
-               *)              arch="UNKNOWN" ;;
+               linux)               arch=linux ;;
+               freebsd*)            arch=fbsd ;;
+               gnu/kfreebsd*) arch=kfbsd ;;
+               netbsd*)             arch=nbsd ;;
+               openbsd*)            arch=obsd ;;
+               darwin*)             arch=osx ;;
+               cygwin_*)            arch=win32 ;;
+               Windows_*)         arch=win32 ;;
+               *)                       arch="UNKNOWN" ;;
        esac
        echo $arch
 fi