}
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`
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'
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
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