365
|
1 |
#------------------------------------------------------------------------------
|
|
2 |
# $Id$
|
|
3 |
#------------------------------------------------------------------------------
|
|
4 |
|
|
5 |
AC_INIT([ethercat],[1.1],[fp@igh-essen.com])
|
|
6 |
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
|
|
7 |
AC_PREFIX_DEFAULT([/opt/etherlab])
|
|
8 |
AC_CONFIG_FILES([Makefile master/Makefile devices/Makefile \
|
|
9 |
examples/mini/Makefile \
|
|
10 |
examples/rtai/Makefile \
|
|
11 |
examples/msr/Makefile])
|
|
12 |
|
|
13 |
#------------------------------------------------------------------------------
|
|
14 |
# Linux sources
|
|
15 |
#------------------------------------------------------------------------------
|
|
16 |
|
|
17 |
AC_ARG_WITH([linux-dir],
|
|
18 |
AC_HELP_STRING(
|
|
19 |
[--with-linux-dir=<linux-dir>],
|
|
20 |
[Linux source directory @<:@/lib/modules/<kernelversion>/build@:>@]),
|
|
21 |
[ ],
|
|
22 |
[
|
|
23 |
modulesdir=/lib/modules/`uname -r`
|
|
24 |
withval=${modulesdir}/build
|
|
25 |
])
|
|
26 |
|
|
27 |
AC_MSG_CHECKING([for Linux source tree])
|
|
28 |
|
|
29 |
if test \! -r ${withval}/Makefile; then
|
|
30 |
echo
|
|
31 |
AC_MSG_ERROR([No Linux kernel tree in $withval])
|
|
32 |
fi
|
|
33 |
|
|
34 |
AC_SUBST(LINUX_DIR,[$withval])
|
|
35 |
AC_SUBST(LINUX_MODULES_DIR,[$modulesdir])
|
|
36 |
|
|
37 |
AC_MSG_RESULT($LINUX_DIR)
|
|
38 |
|
|
39 |
#------------------------------------------------------------------------------
|
|
40 |
|
|
41 |
AC_OUTPUT
|
|
42 |
|
|
43 |
#------------------------------------------------------------------------------
|