|
Lines 5-26
Link Here
|
| 5 |
AC_ARG_WITH([rpm], [ --with-rpm used inside RPM installation],,with_rpm=no) |
5 |
AC_ARG_WITH([rpm], [ --with-rpm used inside RPM installation],,with_rpm=no) |
| 6 |
AC_ARG_WITH([docdir], [ --with-docdir directory used for the documents]) |
6 |
AC_ARG_WITH([docdir], [ --with-docdir directory used for the documents]) |
| 7 |
|
7 |
|
| 8 |
dnl Checking CFLAGS |
|
|
| 9 |
if (test "${CFLAGS}" = ""); then |
| 10 |
default_flags=yes |
| 11 |
else |
| 12 |
default_flags=no |
| 13 |
fi |
| 14 |
|
| 15 |
dnl Checks for programs. |
8 |
dnl Checks for programs. |
| 16 |
AC_PROG_CC |
9 |
AC_PROG_CC |
| 17 |
AC_PROG_INSTALL |
10 |
AC_PROG_INSTALL |
| 18 |
|
11 |
|
| 19 |
dnl Checking CFLAGS |
|
|
| 20 |
dnl if (test "${default_flags}" = yes); then |
| 21 |
CFLAGS="${CFLAGS} -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -Wall" |
| 22 |
dnl fi |
| 23 |
|
| 24 |
dnl Checks for header files. |
12 |
dnl Checks for header files. |
| 25 |
AC_HEADER_STDC |
13 |
AC_HEADER_STDC |
| 26 |
|
14 |
|
|
Lines 73-108
Link Here
|
| 73 |
exit 1 |
61 |
exit 1 |
| 74 |
fi |
62 |
fi |
| 75 |
|
63 |
|
| 76 |
AC_MSG_CHECKING(if /proc/bus/i2c exists) |
|
|
| 77 |
if !(test -e /proc/bus/i2c); then |
| 78 |
AC_MSG_RESULT(no) |
| 79 |
echo 1>&5 |
| 80 |
echo "i2c driver does not appear to be running." |
| 81 |
echo "Install anyway ? (y, n)" |
| 82 |
read |
| 83 |
if test "${REPLY}" != "y" && test "${REPLY}" != "Y"; then |
| 84 |
exit 1 |
| 85 |
fi |
| 86 |
else |
| 87 |
AC_MSG_RESULT(yes) |
| 88 |
echo "Bus: " `cat /proc/bus/i2c` |
| 89 |
fi |
| 90 |
|
| 91 |
AC_MSG_CHECKING(if /proc/sys/dev/sensors/chips exists) |
| 92 |
if !(test -e /proc/sys/dev/sensors/chips); then |
| 93 |
AC_MSG_RESULT(no) |
| 94 |
echo 1>&5 |
| 95 |
echo "It appears to be no supported sensor chips." |
| 96 |
echo "Install anyway ? (y, n)" |
| 97 |
read |
| 98 |
if test "${REPLY}" != "y" && test "${REPLY}" != "Y"; then |
| 99 |
exit 1 |
| 100 |
fi |
| 101 |
else |
| 102 |
AC_MSG_RESULT(yes) |
| 103 |
echo "Sensor(-s): " `cat /proc/sys/dev/sensors/chips` |
| 104 |
fi |
| 105 |
|
| 106 |
x_parms="${x_lib_parms} ${x_inc_parms}" |
64 |
x_parms="${x_lib_parms} ${x_inc_parms}" |
| 107 |
|
65 |
|
| 108 |
LIBS="" |
66 |
LIBS="" |