-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.ac
88 lines (74 loc) · 2.26 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
AC_INIT(
[pam_panic],
[0.3.4],
[https://github.com/pampanic/pam_panic/issues],
[pam_panic])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall subdir-objects])
AC_PREREQ([2.69])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([src/config.h])
AC_CANONICAL_HOST
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_CC
CFLAGS+=" -std=gnu11"
AM_PROG_AR
AM_GNU_GETTEXT_VERSION(0.18.3)
AM_GNU_GETTEXT([external])
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])
AC_PATH_PROG([DIALOG],dialog)
if test -z "$DIALOG" ; then
AC_MSG_ERROR([Please install dialog. Needed by pam_panic_config])
fi
AC_PATH_PROG([REBOOT], [reboot])
AC_DEFINE_UNQUOTED([REBOOT], "$REBOOT",
[path to the reboot command])
AC_PATH_PROG([POWEROFF], [poweroff])
AC_DEFINE_UNQUOTED([POWEROFF], "$POWEROFF",
[path to the poweroff command])
AC_PATH_PROG([CRYPTSETUP], [cryptsetup])
AC_DEFINE_UNQUOTED([CRYPTSETUP], "$CRYPTSETUP",
[path to the cryptsetup command])
AC_PATH_PROG([FIND], [find])
AC_DEFINE_UNQUOTED([FIND], "$FIND",
[path to the find command])
AC_ARG_ENABLE(securedir,
AS_HELP_STRING([--enable-securedir=DIR],
[path to location of PAMs @<:@default=LIBDIR/security@:>@]),
SECUREDIR=$enableval, SECUREDIR=$libdir/security)
AC_SUBST(SECUREDIR)
AC_ARG_ENABLE(ppassfile,
AS_HELP_STRING([--enable-ppassfile=FILE],
[path to file to be used for storing passwords @<:@default=/var/lib/pam_panic/auth@:>@]),
PPASSFILE=$enableval, PPASSFILE=/var/lib/pam_panic/auth)
AC_DEFINE_UNQUOTED([PPASSFILE], "$PPASSFILE",
[path to file to be used for storing passwords])
AC_SUBST(PPASSFILE)
LT_INIT([disable-static])
AC_ENABLE_STATIC([no])
AC_ENABLE_SHARED([yes])
AC_CONFIG_FILES([
Makefile
po/Makefile.in
po4a/Makefile
src/pam_panic/Makefile
src/pam_panic/man/Makefile
src/pam_panic_pw/Makefile
src/pam_panic_pw/man/Makefile
src/pam_panic_config/Makefile
src/pam_panic_config/applications/Makefile
src/pam_panic_config/icons/48x48/Makefile
src/pam_panic_config/icons/64x64/Makefile
src/pam_panic_config/icons/scalable/Makefile
test/Makefile
])
AC_OUTPUT