From: Ted Lemon Date: Thu, 29 Jun 2000 20:04:18 +0000 (+0000) Subject: Add support for gcc2-free BSD/os 4.1. X-Git-Tag: V3-BETA-2-PATCH-1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b662406a75206097a666ed8a9b68684a0401c88e;p=thirdparty%2Fdhcp.git Add support for gcc2-free BSD/os 4.1. --- diff --git a/Makefile.conf b/Makefile.conf index 90c099581..576513cad 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -160,7 +160,7 @@ MINORVERSION=MinorVersion #VARDB = /etc ##--alphaosf-- -## BSD/OS 2.1 and higher. +## BSD/OS 2.1 through 4.0 ##--bsdos-- #LIBS = -lresolv #CC=gcc2 @@ -168,6 +168,12 @@ MINORVERSION=MinorVersion #SCRIPT=bsdos ##--bsdos-- +## BSD/OS 4.1 and higher. +##--bsdos-4.1-- +#CF = cf/bsdos.h +#SCRIPT=bsdos +##--bsdos-4.1-- + ## OpenBSD ##--openbsd-- #CF = cf/openbsd.h @@ -198,6 +204,7 @@ MINORVERSION=MinorVersion # -Wmissing-declarations -Wnested-externs \ # -pipe $(BINDDEF) #SCRIPT=netbsd +##MKDEP=makedepend ##--netbsd-- ## NetBSD Arm32 diff --git a/configure b/configure index a749d5a83..d591d3ce8 100755 --- a/configure +++ b/configure @@ -29,7 +29,17 @@ if [ "$sysname" = "" ]; then ULTRIX) sysname=ultrix;; BSD/OS) - sysname=bsdos;; + release=`uname -r` + minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'` + major=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'` + + case $major in + [123]) sysname=bsdos ;; + *) case $minor in + 0) sysname=bsdos ;; + *) sysname=bsdos-4.1 ;; + esac;; + esac;; OSF1) if [ $machine = 'alpha' ]; then sysname=alphaosf