From 2100f7108a51d20d659810381ecc8e88d0dabc91 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 9 Sep 2006 13:01:46 +0200 Subject: [PATCH] Don't check Linux kernel version. --- ChangeLog | 3 +++ lib/configure | 26 ++++++-------------------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca01e8b..71107e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-09-09 Martin Mares + * 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. diff --git a/lib/configure b/lib/configure index 7c828d9..2fc33bb 100755 --- a/lib/configure +++ b/lib/configure @@ -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 -- 2.39.2