* minor new port: i386-pc-linux-fc6.
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 26 Oct 2006 17:36:26 +0000 (17:36 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Thu, 26 Oct 2006 17:36:26 +0000 (17:36 +0000)
* m4/macros/linux_headers.m4: handle newer Linux kernels which
removed UTS_RELEASE from <linux/version.h>.

* minor new ports: i386-pc-linux-centos4.4 and
powerpc-apple-darwin8.7.0.

* config.guess.long: recognize CentOS Linux.

.cvsignore
ChangeLog
NEWS
config.guess.long
m4/macros/linux_headers.m4

index f05ce15e09f42347bb5cfd62f335283f4608ccc2..33be610721cbc6155a409a40fc40d551c63aa804 100644 (file)
@@ -170,3 +170,6 @@ A.powerpc-apple-darwin8.6.0
 A.i386-unknown-freebsd6.1
 A.i386-unknown-openbsd3.9
 A.i386-pc-solaris2.11-nexentaos
+A.i386-pc-linux-centos4.4
+A.powerpc-apple-darwin8.7.0
+A.i386-pc-linux-fc6
index 563d3bab2fe023bf081306a2128d78b5d8b2aafb..685a8c4648a8331df19fcc855965b2116e479aa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2006-10-26  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * minor new port: i386-pc-linux-fc6.
+
+       * m4/macros/linux_headers.m4: handle newer Linux kernels which
+       removed UTS_RELEASE from <linux/version.h>.
+
+2006-10-25  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * minor new ports: i386-pc-linux-centos4.4 and
+       powerpc-apple-darwin8.7.0.
+
+       * config.guess.long: recognize CentOS Linux.
+
 2006-06-20  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * minor new port: i386-pc-solaris2.11-nexentaos (GNU/OpenSolaris).
diff --git a/NEWS b/NEWS
index 8ae69779d6cd6eeb340b8f4307fd78dc0beebd63..129fe505ae2ea19fba73d709bc8befb95674e451 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,10 @@
-*** Notes specific to am-utils version 6.2a2
+*** Notes specific to am-utils version 6.2a3
 
 - minor new ports:
+       i386-pc-linux-centos4.4 (RHEL4 clone)
+       i386-pc-linux-fc6 (Fedora Core 6)
        i386-pc-solaris2.11-nexentaos (GNU/OpenSolaris)
+       powerpc-apple-darwin8.7.0
 
 
 *** Notes specific to am-utils version 6.2a2
index e64bfb87b55df87534252c15666f57feb9e887a8..4af3a587e6bae2c35c52d77ed54e1ccca4e1d7b6 100755 (executable)
@@ -35,6 +35,8 @@ case "${GCONFIG}" in
                echo ${GCONFIG}-rhel${long}
            elif grep -q 'Fedora Core' /etc/redhat-release; then
                echo ${GCONFIG}-fc${long}
+           elif grep -q 'CentOS' /etc/redhat-release; then
+               echo ${GCONFIG}-centos${long}
            else
                echo ${GCONFIG}-rh${long}
            fi
index 8b0dd721596ccc6eb6028b431b7d1fde2f75a777..63c5d6a05acdd5e3d1a1678948de4a5055d2cb46 100644 (file)
@@ -14,7 +14,14 @@ AC_DEFUN([AMU_LINUX_HEADERS],
 ],
 [
 if (argc > 1)
+#ifdef UTS_RELEASE
   printf("%s", UTS_RELEASE);
+#else
+# define AMU_MA(a) ((a) >> 16)
+# define AMU_MI(a) (((a) & 0xffff) >> 8)
+# define AMU_PL(a) ((a) & 0xff)
+ printf("%d.%d.%d", AMU_MA(LINUX_VERSION_CODE), AMU_MI(LINUX_VERSION_CODE), AMU_PL(LINUX_VERSION_CODE));
+#endif
 ],
 [ host_header_version=$value ],
 [ echo