# HG changeset patch # User Florian Pose # Date 1159182770 0 # Node ID 7aede8ed6025aecf67f2ac685fc9ec6cd5bf72c4 # Parent 9028b20e3c123a67b52b2ef0ebbdb7f047edfa1e Corrected autotools. diff -r 9028b20e3c12 -r 7aede8ed6025 configure.ac --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.ac Mon Sep 25 11:12:50 2006 +0000 @@ -0,0 +1,43 @@ +#------------------------------------------------------------------------------ +# $Id$ +#------------------------------------------------------------------------------ + +AC_INIT([ethercat],[1.1],[fp@igh-essen.com]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2]) +AC_PREFIX_DEFAULT([/opt/etherlab]) +AC_CONFIG_FILES([Makefile master/Makefile devices/Makefile \ + examples/mini/Makefile \ + examples/rtai/Makefile \ + examples/msr/Makefile]) + +#------------------------------------------------------------------------------ +# Linux sources +#------------------------------------------------------------------------------ + +AC_ARG_WITH([linux-dir], + AC_HELP_STRING( + [--with-linux-dir=], + [Linux source directory @<:@/lib/modules//build@:>@]), + [ ], + [ + modulesdir=/lib/modules/`uname -r` + withval=${modulesdir}/build + ]) + +AC_MSG_CHECKING([for Linux source tree]) + +if test \! -r ${withval}/Makefile; then + echo + AC_MSG_ERROR([No Linux kernel tree in $withval]) +fi + +AC_SUBST(LINUX_DIR,[$withval]) +AC_SUBST(LINUX_MODULES_DIR,[$modulesdir]) + +AC_MSG_RESULT($LINUX_DIR) + +#------------------------------------------------------------------------------ + +AC_OUTPUT + +#------------------------------------------------------------------------------