1 AC_INIT(module-init-tools,3.6)
5 # Use -no-portability since we're never going to use module-init-tools on
6 # non-Linux systems and it's reasonable to expect GNU-compatibility here.
7 AM_INIT_AUTOMAKE([-Wno-portability])
9 # If zlib is required, libz must be linked static, modprobe is in
10 # /sbin, libz is in /usr/lib and may not be available when it is run.
12 [ --enable-zlib Handle gzipped modules],
13 [if test "$enableval" = "yes"; then
14 AC_DEFINE(CONFIG_USE_ZLIB)
15 zlib_flags="-Wl,-Bstatic -lz -Wl,-Bdynamic"
20 # Delay adding the zlib_flags until after AC_PROG_CC, so we can distinguish
21 # between a broken cc and a working cc but missing libz.a.
22 LDADD="$LDADD $zlib_flags"
27 *) AC_MSG_ERROR([Linux only, dude!]);;
30 # Thanks to Martin Pool
31 if test x"$GCC" = xyes
33 CFLAGS="$CFLAGS -Wunused -Wall"
34 AC_MSG_NOTICE([Adding gcc options: $CFLAGS])
38 [ --with-moddir=path Give the path for system modules directory.]
39 [ [ Defaults to /lib/modules ]],
40 [if test ! -z "$withval"; then
41 MODULE_DIR="\\\"$withval/\\\""
42 CFLAGS="$CFLAGS -DMODULE_DIR=$MODULE_DIR"