]>
git.ipfire.org Git - thirdparty/pciutils.git/blob - lib/configure
3 echo -n "Configuring libpci for your system..."
8 cpu
=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/'`
10 if [ "$sys" != Linux
] ; then
11 echo "libpci currently supports only Linux"
14 echo -n "Looking for access methods..."
16 echo >$c "#define ARCH_`echo $cpu | tr 'a-z' 'A-Z'`"
18 2.
[1-9]*|
[3-9]*) echo -n " proc"
19 echo >>$c '#define HAVE_PM_LINUX_PROC'
20 echo >>$c '#define HAVE_LINUX_BYTEORDER_H'
21 echo >>$c '#define PATH_PROC_BUS_PCI "/proc/bus/pci"'
26 i386
) echo -n " i386-ports"
27 echo >>$c '#define HAVE_PM_INTEL_CONF'
30 alpha
) echo >>$c '#define HAVE_64BIT_ADDRESS'
32 # echo >>$c '#define HAVE_PM_SYSCALLS'
35 sparc|sparc64
) echo >>$c '#define HAVE_64BIT_ADDRESS'
36 echo >>$c '#define HAVE_LONG_ADDRESS'
38 # echo >>$c '#define HAVE_PM_SYSCALLS'
42 echo >>$c '#define HAVE_PM_DUMP'
44 if [ -z "$ok" ] ; then
45 echo "WARNING: No real configuration access method is available."
47 echo >>$c "#define PATH_PCI_IDS \"$prefix/share/pci.ids\""
48 if [ -f header.h
] ; then
49 echo >>$c '#define HAVE_OWN_HEADER_H'
51 echo >>$c "#define PCILIB_VERSION \"$version\""
52 sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk