5 AM_INIT_AUTOMAKE(module-init-tools, "3.5")
7 # If zlib is required, libz must be linked static, modprobe is in
8 # /sbin, libz is in /usr/lib and may not be available when it is run.
10 [ --enable-zlib Handle gzipped modules],
11 [if test "$enableval" = "yes"; then
12 AC_DEFINE(CONFIG_USE_ZLIB)
13 zlib_flags="-Wl,-Bstatic -lz -Wl,-Bdynamic"
18 # Delay adding the zlib_flags until after AC_PROG_CC, so we can distinguish
19 # between a broken cc and a working cc but missing libz.a.
20 LDADD="$LDADD $zlib_flags"
25 *) AC_MSG_ERROR([Linux only, dude!]);;
28 # Thanks to Martin Pool
29 if test x"$GCC" = xyes
31 CFLAGS="$CFLAGS -Wunused -Wall"
32 AC_MSG_NOTICE([Adding gcc options: $CFLAGS])
36 [ --with-moddir=path Give the path for system modules directory.]
37 [ [ Defaults to /lib/modules ]],
38 [if test ! -z "$withval"; then
39 MODULE_DIR="\\\"$withval/\\\""
40 CFLAGS="$CFLAGS -DMODULE_DIR=$MODULE_DIR"