]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/configure
Fixed 64 bit addresses and released as 2.2.0.
[pciutils.git] / lib / configure
index dd706515ee8e9d58f93012d85d2689d1b48cddeb..ecd350352d444fac3d1ddcc5b67b41c2cc5b8feb 100755 (executable)
@@ -10,7 +10,7 @@ echo_n() {
 }
 
 echo_n "Configuring libpci for your system..."
-sharedir=${1:-/usr/share}
+idsdir=${1:-/usr/share}
 version=${2:-0.0}
 sys=`uname -s`
 rel=`uname -r`
@@ -38,7 +38,7 @@ echo_n "Looking for access methods..."
 case $sys in
        linux*)
                case $rel in
-                       2.[1-9]*|[3-9]*)        echo_n "sysfs proc"
+                       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'
@@ -52,10 +52,8 @@ case $sys in
                                                echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
                                                ok=1
                                                ;;
-                               alpha|ia64|sparc|sparc64|ppc|ppc64)
-                                               echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
-                                               ;;
                esac
+               echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
                ;;
        sunos)
                case $cpu in
@@ -103,6 +101,6 @@ echo " dump"
 if [ -z "$ok" ] ; then
        echo "WARNING: No real configuration access method is available."
 fi
-echo >>$c "#define PCI_PATH_IDS \"$sharedir/pci.ids\""
+echo >>$c "#define PCI_PATH_IDS \"$idsdir/pci.ids\""
 echo >>$c "#define PCILIB_VERSION \"$version\""
 sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk