configure.ac
author Florian Pose <fp@igh-essen.com>
Mon, 25 Sep 2006 12:20:44 +0000
branchstable-1.1
changeset 1724 07c82e520ddd
child 367 e85e3143dc8d
permissions -rw-r--r--
MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
1724
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#------------------------------------------------------------------------------
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
# $Id$
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#------------------------------------------------------------------------------
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
AC_INIT([ethercat],[1.1],[fp@igh-essen.com])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
AC_PREFIX_DEFAULT([/opt/etherlab])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
AC_CONFIG_FILES([Makefile master/Makefile devices/Makefile \
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
	         examples/mini/Makefile \
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
		 examples/rtai/Makefile \
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
		 examples/msr/Makefile])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
#------------------------------------------------------------------------------
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
# Linux sources
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
#------------------------------------------------------------------------------
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
AC_ARG_WITH([linux-dir],
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
    AC_HELP_STRING(
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
        [--with-linux-dir=<linux-dir>],
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
        [Linux source directory @<:@/lib/modules/<kernelversion>/build@:>@]),
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
    [ ],
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
    [
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
	modulesdir=/lib/modules/`uname -r`
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
        withval=${modulesdir}/build
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
    ])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
AC_MSG_CHECKING([for Linux source tree])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
if test \! -r ${withval}/Makefile; then
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
   echo
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
   AC_MSG_ERROR([No Linux kernel tree in $withval])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
fi
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    33
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
AC_SUBST(LINUX_DIR,[$withval])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
AC_SUBST(LINUX_MODULES_DIR,[$modulesdir])
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
AC_MSG_RESULT($LINUX_DIR)
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
#------------------------------------------------------------------------------
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
AC_OUTPUT
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
07c82e520ddd MERGE trunk -r546:550 -> branches/stable-1.1 (Bugfix, Autotools, still w/o XML)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
#------------------------------------------------------------------------------