#!/bin/sh
#this script automaticly detected the os-system
#and set Gereric-Compiler-Defs

	    if [  $1 ]; then
	     echo "test for OS-System......"
	    fi

	if  test -d /usr/include/linux; then  if [  $1 ]; then echo "  Yup, Linux detected!" ;\
		    echo; echo "GENERIC-CFLAGS are: ";\
		    fi ;\
		  echo " -D_LINUX -D_SYSV -m486 "; \
		else \
		if [  $1 ]; then \
		uname -a | tail > .dummy ; \
        	fi ;\
		if  cat .dummy| grep NetBSD >/dev/null ;  then  if [  $1 ]; then echo " NetBSD detected!         " ;\
		    echo "   Warning: This is experimental-Support! " ;\
		    echo; echo "GENERIC-CFLAGS are: ";\
		    fi ;\
		  echo " -D_BSD -D_NETBSD  "; \
		else \
\
\
\
        if  cat .dummy| grep BSD >>/dev/null;  then  if [  $1 ]; then echo " unknown BSD detected." ;\
		    echo "   Warning: With this DEFS the src is  verry experimental!!!! " ;\
		    echo; echo "GENERIC-CFLAGS are: ";\
		    fi ;\
		  echo " -D_BSD  "; \
		else  if [  $1 ]; then echo " unknown SYSV detected." ;\
		    echo "   Warning: With this DEFS the src is verry experimental!!!! " ;\
		    echo; echo "GENERIC-CFLAGS are: ";\
		    fi ;\
		  echo " -D_SYSV  "; \
fi \
fi \
fi 
