# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT([lxcfs], [2.0.0.rc5], [lxc-devel@lists.linuxcontainers.org])
+AC_INIT([lxcfs], [3.0.0], [lxc-devel@lists.linuxcontainers.org])
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
AC_CONFIG_MACRO_DIR([m4])
share/lxc.reboot.hook
tests/Makefile ])
-AM_INIT_AUTOMAKE
-
LT_INIT
AC_PROG_CC
AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
+ AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
fi
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
ubuntu)
distroconf=default.conf.ubuntu
;;
- redhat|centos|fedora|oracle|oracleserver)
+ redhat|centos|fedora|oracle|oracleserver|pld)
distroconf=default.conf.libvirt
;;
*)
ubuntu)
init_script=upstart,systemd,sysvinit
;;
+ pld)
+ init_script=systemd,sysvinit
+ ;;
slackware)
echo -n "Warning: bsd init job not yet implemented"
init_script=
AM_CONDITIONAL([INIT_SCRIPT_UPSTART], [echo "$init_script" |grep -q "upstart"])
AC_MSG_RESULT($init_script)
-
-AC_ARG_WITH(
- [pamdir],
- [AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
- or "none" if PAM modules are not to be built])],
- [pamdir="${withval}"],
- [
- if test "${prefix}" = "/usr"; then
- pamdir="/lib${libdir##*/lib}/security"
- else
- pamdir="\$(libdir)/security"
- fi
- ]
-)
-
-AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"])
-if test "z$pamdir" != "znone"; then
- AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
- AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
- AC_CHECK_LIB(
- [pam],
- [pam_authenticate],
- [PAM_LIBS="-lpam"],
- [AC_MSG_ERROR([*** libpam not found.])
- ])
-
- AC_SUBST(PAM_LIBS)
- AC_SUBST([pamdir])
-fi
+AC_SUBST([lxcfsdir], "${libdir}/lxcfs")
# Rootfs path, where the container mount structure is assembled
AC_ARG_WITH([rootfs-path],