fix version check code for libmsbios in configure.in

Michael E Brown Michael_E_Brown at dell.com
Thu Nov 15 12:07:55 PST 2007


The following patch fixes the version check for libsmbios. It currently
fails if the major bumps (which I am planning to do shortly).

--
Michael Brown
libsmbios maintainer
-------------- next part --------------
diff -ruP hal-0.5.10/configure hal-0.5.10-MEB/configure
--- hal-0.5.10/configure	2007-09-25 14:08:31.000000000 -0500
+++ hal-0.5.10-MEB/configure	2007-11-15 13:25:43.000000000 -0600
@@ -22602,7 +22602,7 @@
 
         if ( sscanf( LIBSMBIOS_RELEASE_VERSION , "%d.%d.%d", &major, &minor, &micro ) == 3 ) {
 	    if ((major == 0 && minor == 13 && micro >= 4) ||
-               (major >= 0 && minor > 13)) {
+               (major >= 0)) {
 		return 0;
 	    }
 	}
diff -ruP hal-0.5.10/configure.in hal-0.5.10-MEB/configure.in
--- hal-0.5.10/configure.in	2007-09-25 10:47:27.000000000 -0500
+++ hal-0.5.10-MEB/configure.in	2007-11-15 13:26:59.000000000 -0600
@@ -405,7 +405,8 @@
 
         if ( sscanf( LIBSMBIOS_RELEASE_VERSION , "%d.%d.%d", &major, &minor, &micro ) == 3 ) {
 	    if ((major == 0 && minor == 13 && micro >= 4) ||
-               (major >= 0 && minor > 13)) {
+               (major == 0 && minor > 13) ||
+               (major >= 0)) {
 		return 0;
 	    }
 	}
Only in hal-0.5.10/doc/api/libhal: tmpl
Only in hal-0.5.10/doc/api/libhal: version.xml
Only in hal-0.5.10/doc/api/libhal-storage: tmpl
Only in hal-0.5.10/doc/api/libhal-storage: version.xml
Only in hal-0.5.10/doc/spec: hal-spec.xml.in
Only in hal-0.5.10: hal.conf
Only in hal-0.5.10/hald: hald_marshal.c
Only in hal-0.5.10/hald: hald_marshal.h
Only in hal-0.5.10/tools: hal-setup-keymap-hash-name.h


More information about the hal mailing list