1 # Process this file with autoconf to produce a configure script.
4 AC_INIT([lxcfs], [0.17], [lxc-devel@lists.linuxcontainers.org])
5 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
6 AC_CONFIG_MACRO_DIR([m4])
8 AC_SUBST([LXCFS_VERSION_ABI], "0.9.1")
10 AM_INIT_AUTOMAKE([subdir-objects -Wno-portability])
13 AC_CONFIG_HEADERS([config.h])
29 AC_CHECK_LIB(pthread, main)
31 PKG_CHECK_MODULES(FUSE, fuse)
33 AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
34 AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$HELP2MAN" != "xfalse // No help2man //" ])
36 AC_ARG_WITH([runtime-path],
38 [--with-runtime-path=dir],
39 [runtime directory (default: /run)]
40 )], [], [with_runtime_path=['/run']])
42 AS_AC_EXPAND(RUNTIME_PATH, "$with_runtime_path")
43 AS_AC_EXPAND(LXCFSSHAREDIR, "$datarootdir/lxcfs")
44 AS_AC_EXPAND(LXCCONFDIR, "$datarootdir/lxc/config/common.conf.d")
45 AS_AC_EXPAND(LXCFSTARGETDIR, "$localstatedir/lib/lxcfs")
49 [AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
50 or "none" if PAM modules are not to be built])],
51 [pamdir="${withval}"],
53 if test "${prefix}" = "/usr"; then
54 pamdir="/lib${libdir##*/lib}/security"
56 pamdir="\$(libdir)/security"
61 AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"])
62 if test "z$pamdir" != "znone"; then
63 AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
64 AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
69 [AC_MSG_ERROR([*** libpam not found.])
76 # Rootfs path, where the container mount structure is assembled
77 AC_ARG_WITH([rootfs-path],
79 [--with-rootfs-path=dir],
80 [lxc rootfs mount point]
81 )], [], [with_rootfs_path=['${libdir}/lxc/rootfs']])
83 AS_AC_EXPAND(LIBDIR, "$libdir")