Adds '/lib/modules/`uname -r`/source' to the first loop's list
of search paths. This path is already used by the rest of the
code.

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index c5201d0..61a74f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,8 +37,9 @@ AC_MSG_CHECKING(for kernel source/headers)
 if test "$WCM_KERNEL_DIR" = "yes" -o -z "$WCM_KERNEL_DIR"; then
        WCM_KERNEL_DIR=
        dnl Kernel source not specified, guess where it is
-       for i in /lib/modules/`uname -r`/build /usr/src/linux \
-               /usr/src/linux-`uname -r` /usr/src/linux-2.6; do
+       for i in /lib/modules/`uname -r`/source /lib/modules/`uname -r`/build \
+               /usr/src/linux /usr/src/linux-`uname -r` \
+               /usr/src/linux-2.6; do
                if test -f "$i/.config"; then
                        WCM_KERNEL_DIR=$i
                        WCM_ENV_KERNEL=yes
-- 
2.2.1


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to