2018-04-03 13:50:44 +00:00
|
|
|
AC_INIT(
|
|
|
|
[pam_panic],
|
2018-11-09 16:50:46 +00:00
|
|
|
[0.2.6],
|
2018-04-03 13:50:44 +00:00
|
|
|
[https://github.com/pampanic/pam_panic/issues],
|
|
|
|
[pam_panic])
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
2018-05-11 02:03:19 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wall subdir-objects])
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_PREREQ([2.69])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2018-04-02 21:40:56 +00:00
|
|
|
AC_CONFIG_HEADER([src/config.h])
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
|
|
AC_SUBST(PACKAGE)
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2018-11-03 15:43:49 +00:00
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MKDIR_P
|
2018-04-02 22:45:37 +00:00
|
|
|
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_PROG_CC
|
2018-04-02 23:08:31 +00:00
|
|
|
CFLAGS+=" -std=gnu11"
|
2018-04-02 22:45:37 +00:00
|
|
|
|
2018-04-02 18:34:43 +00:00
|
|
|
AM_PROG_AR
|
|
|
|
|
2018-09-30 16:49:59 +00:00
|
|
|
AM_GNU_GETTEXT_VERSION(0.18.3)
|
2018-09-21 20:28:32 +00:00
|
|
|
AM_GNU_GETTEXT([external])
|
2018-04-02 22:45:37 +00:00
|
|
|
|
2018-09-29 17:02:11 +00:00
|
|
|
AC_PATH_PROG([PO4A],po4a)
|
|
|
|
if test -z "$PO4A" ; then
|
|
|
|
AC_MSG_ERROR([Please install po4a before building pam_panic.])
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED([PO4A], "$PO4A",
|
|
|
|
[path to po4a])
|
|
|
|
|
2018-10-31 22:31:37 +00:00
|
|
|
AC_PATH_PROG([DIALOG],dialog)
|
|
|
|
if test -z "$DIALOG" ; then
|
|
|
|
AC_MSG_ERROR([Please install dialog. Needed by pam_panic_config])
|
|
|
|
fi
|
|
|
|
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_PATH_PROG([REBOOT], [reboot])
|
2018-04-02 21:40:56 +00:00
|
|
|
AC_DEFINE_UNQUOTED([REBOOT], "$REBOOT",
|
|
|
|
[path to the reboot command])
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_PATH_PROG([POWEROFF], [poweroff])
|
2018-04-02 21:40:56 +00:00
|
|
|
AC_DEFINE_UNQUOTED([POWEROFF], "$POWEROFF",
|
|
|
|
[path to the poweroff command])
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_PATH_PROG([CRYPTSETUP], [cryptsetup])
|
2018-04-02 21:40:56 +00:00
|
|
|
AC_DEFINE_UNQUOTED([CRYPTSETUP], "$CRYPTSETUP",
|
|
|
|
[path to the cryptsetup command])
|
2018-04-02 18:34:43 +00:00
|
|
|
|
2018-09-29 17:02:11 +00:00
|
|
|
AC_PATH_PROG([FIND], [find])
|
|
|
|
AC_DEFINE_UNQUOTED([FIND], "$FIND",
|
|
|
|
[path to the find command])
|
|
|
|
|
2018-04-02 18:34:43 +00:00
|
|
|
AC_ARG_ENABLE(securedir,
|
|
|
|
AS_HELP_STRING([--enable-securedir=DIR],
|
2018-04-02 21:40:56 +00:00
|
|
|
[path to location of PAMs @<:@default=LIBDIR/security@:>@]),
|
2018-04-02 18:34:43 +00:00
|
|
|
SECUREDIR=$enableval, SECUREDIR=$libdir/security)
|
|
|
|
AC_SUBST(SECUREDIR)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ppassfile,
|
|
|
|
AS_HELP_STRING([--enable-ppassfile=FILE],
|
2018-04-03 13:52:18 +00:00
|
|
|
[path to file to be used for storing passwords @<:@default=/var/lib/pam_panic/auth@:>@]),
|
2018-04-02 21:40:56 +00:00
|
|
|
PPASSFILE=$enableval, PPASSFILE=/var/lib/pam_panic/auth)
|
|
|
|
AC_DEFINE_UNQUOTED([PPASSFILE], "$PPASSFILE",
|
|
|
|
[path to file to be used for storing passwords])
|
2018-04-03 13:52:18 +00:00
|
|
|
AC_SUBST(PPASSFILE)
|
2018-04-02 18:34:43 +00:00
|
|
|
|
|
|
|
LT_INIT([disable-static])
|
|
|
|
AC_ENABLE_STATIC([no])
|
|
|
|
AC_ENABLE_SHARED([yes])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
2018-09-21 20:28:32 +00:00
|
|
|
po/Makefile.in
|
2018-09-29 17:02:11 +00:00
|
|
|
po4a/Makefile
|
2018-04-02 18:34:43 +00:00
|
|
|
src/pam_panic/Makefile
|
|
|
|
src/pam_panic/man/Makefile
|
|
|
|
src/pam_panic_pw/Makefile
|
|
|
|
src/pam_panic_pw/man/Makefile
|
2018-10-31 22:21:08 +00:00
|
|
|
src/pam_panic_config/Makefile
|
2018-11-02 20:48:39 +00:00
|
|
|
src/pam_panic_config/applications/Makefile
|
2018-11-03 01:57:43 +00:00
|
|
|
src/pam_panic_config/icons/48x48/Makefile
|
2018-11-03 01:33:05 +00:00
|
|
|
src/pam_panic_config/icons/64x64/Makefile
|
|
|
|
src/pam_panic_config/icons/scalable/Makefile
|
2018-05-10 23:29:13 +00:00
|
|
|
test/Makefile
|
2018-04-02 18:34:43 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|