]> mj.ucw.cz Git - pciutils.git/commitdiff
Don't check Linux kernel version.
authorMartin Mares <mj@ucw.cz>
Sat, 9 Sep 2006 11:01:46 +0000 (13:01 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 9 Sep 2006 11:01:46 +0000 (13:01 +0200)
ChangeLog
lib/configure

index ca01e8b19e3dadcaa8655a62b5a99812f1ac2072..71107e15b043887735d8113b057ae8402507f9e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-09  Martin Mares  <mj@ucw.cz>
 
+       * lib/configure: When configuring for Linux, ignore the kernel version
+       and always build all access methods.
+
        * Makefile (CFLAGS): Removed -Winline, it's not needed and triggers
        at many non-interesting places with gcc 3.4.
 
index 7c828d9974b96a7de0c4c17b91190a275abbb544..2fc33bb2e379a6611845b2eef75476720a18a869 100755 (executable)
@@ -42,20 +42,15 @@ echo_n "Looking for access methods..."
 
 case $sys in
        linux*)
-               case $rel in
-                       2.[1-9]*|[3-9]*)        echo_n " sysfs proc"
-                                               echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
-                                               echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'
-                                               echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H'
-                                               echo >>$c '#define PCI_PATH_PROC_BUS_PCI "/proc/bus/pci"'
-                                               echo >>$c '#define PCI_PATH_SYS_BUS_PCI "/sys/bus/pci"'
-                                               ok=1
-                                               ;;
-               esac
+               echo_n " sysfs proc"
+               echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
+               echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'
+               echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H'
+               echo >>$c '#define PCI_PATH_PROC_BUS_PCI "/proc/bus/pci"'
+               echo >>$c '#define PCI_PATH_SYS_BUS_PCI "/sys/bus/pci"'
                case $cpu in
                                i386)           echo_n " i386-ports"
                                                echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
-                                               ok=1
                                                ;;
                esac
                echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
@@ -64,7 +59,6 @@ case $sys in
                case $cpu in
                                i386)           echo_n " i386-ports"
                                                echo >>$c "#define PCI_HAVE_PM_INTEL_CONF"
-                                               ok=1
                                                ;;
                                *)
                                                echo " The PCI library is does not support Solaris for this architecture: $cpu"
@@ -76,29 +70,24 @@ case $sys in
                echo_n " fbsd-device"
                echo >>$c '#define PCI_HAVE_PM_FBSD_DEVICE'
                echo >>$c '#define PCI_PATH_FBSD_DEVICE "/dev/pci"'
-               ok=1
                ;;
         openbsd)
                echo_n " obsd-device"
                echo >>$c '#define PCI_HAVE_PM_OBSD_DEVICE'
                echo >>$c '#define PCI_PATH_OBSD_DEVICE "/dev/pci"'
-               ok=1
                ;;
        aix)
                echo_n " aix-device"
                echo >>$c '#define PCI_HAVE_PM_AIX_DEVICE'
-               ok=1
                ;;
        netbsd)
                echo_n " nbsd-libpci"
                echo >>$c '#define PCI_HAVE_PM_NBSD_LIBPCI'
                echo >>$c '#define PCI_PATH_NBSD_DEVICE "/dev/pci0"'
-               ok=1
                ;;
        gnu)
                echo_n " i386-ports"
                echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
-               ok=1
                ;;
         *)
                echo " Unfortunately, your OS is not supported by the PCI Library"
@@ -108,9 +97,6 @@ esac
 
 echo >>$c '#define PCI_HAVE_PM_DUMP'
 echo " dump"
-if [ -z "$ok" ] ; then
-       echo "WARNING: No real configuration access method is available."
-fi
 
 echo_n "Checking for zlib support... "
 if [ "$zlib" = yes -o "$zlib" = no ] ; then