3 echo -n "checking os type... "
 
   7 echo -n "checking stdint.h... "
 
   8 if [ -f /usr/include/stdint.h ]
 
  10     DEFINES="$DEFINES -DHAVE_STDINT"
 
  15     echo -n "checking inttypes.h... "
 
  16     if [ -f /usr/include/inttypes.h ]
 
  18         DEFINES="$DEFINES -DHAVE_INTTYPES"
 
  22         echo "You need either stdint.h or inttypes.h to compile this"
 
  29     DEFINES="$DEFINES -DLINUX"
 
  30     echo -n "checking gmake... "
 
  31     gmake --version > /dev/null 2> /dev/null
 
  38         echo -n "checking make... "
 
  39         make --version > /dev/null 2> /dev/null
 
  46             echo "You need a GNU Make to compile this"
 
  51     if [ "$OS"=="FreeBSD" ]
 
  53         DEFINES="$DEFINES -DFREEBSD"
 
  54         echo -n "checking gmake... "
 
  55         gmake --version > /dev/null 2> /dev/null
 
  62             echo "You need a GNU Make to use this"
 
  66         echo "This version of software is only compatible with Linux and FreeBSD"
 
  71 echo "Configuration successfull. Details:"
 
  73 echo -e "\tGNU Make utility: $MAKE"
 
  74 echo -e "\nType $MAKE and $MAKE install now"
 
  77 echo "OS = $OS" >> make.conf
 
  78 echo "DEFINES = $DEFINES" >> make.conf