# AC_PATH_KERNEL_SOURCE(VARIABLE) # Tries to find path of currently running kernel. # MUST only be used as a default-value, and user # should be able to specify --with-kernel-dir= # -------------------------------------- AC_DEFUN([AC_PATH_KERNEL_SOURCE], [ AC_MSG_CHECKING([for kernel-source]) if test -r /lib/modules/`uname -r`/build/include/linux/autoconf.h; then $1=/lib/modules/`uname -r`/build/ AC_MSG_RESULT([$$1]) else if test -r /usr/src/linux/include/linux/autoconf.h; then $1=/usr/src/linux/ AC_MSG_RESULT([$$1]) else AC_MSG_RESULT([not found]) fi fi ])