2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
1 |
# Copyright (C) 2006-2007 International Business Machines Corp. |
2 |
# |
|
3 |
# This file is free software; as a special exception the author gives |
|
4 |
# unlimited permission to copy and/or distribute it, with or without |
|
5 |
# modifications, as long as this notice is preserved. |
|
6 |
# |
|
7 |
# This program is distributed in the hope that it will be useful, but |
|
8 |
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
|
9 |
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
10 |
||
11 |
||
195
by Mike Halcrow
Update userspace filename crypto test code. |
12 |
AC_PREREQ(2.59) |
368
by Dustin Kirkland
releasing ecryptfs-utils-73 |
13 |
AC_INIT([ecryptfs-utils],[73]) |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
14 |
AC_CANONICAL_HOST
|
15 |
AC_CANONICAL_TARGET
|
|
16 |
AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}]) |
|
17 |
AC_CONFIG_SRCDIR([src/libecryptfs]) |
|
111
by Mike halcrow
1. Ready to libtool-2 |
18 |
AC_CONFIG_HEADERS([config.h]) |
19 |
AC_CONFIG_MACRO_DIR([m4]) |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
20 |
|
213
by Mike halcrow
Proof-of-concept key escrow. |
21 |
AC_DISABLE_STATIC
|
225
by Mike halcrow
Correctly detect Python version for pywrap |
22 |
AM_PATH_PYTHON(2.5, [have_python="yes"], [have_python="no"]) |
213
by Mike halcrow
Proof-of-concept key escrow. |
23 |
AC_PROG_SWIG(1.3.31) |
24 |
SWIG_PYTHON
|
|
25 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
26 |
LIBECRYPTFS_LT_CURRENT="0" |
27 |
LIBECRYPTFS_LT_REVISION="0" |
|
28 |
LIBECRYPTFS_LT_AGE="0" |
|
29 |
AC_SUBST([LIBECRYPTFS_LT_CURRENT]) |
|
30 |
AC_SUBST([LIBECRYPTFS_LT_REVISION]) |
|
31 |
AC_SUBST([LIBECRYPTFS_LT_AGE]) |
|
32 |
||
33 |
AC_ARG_ENABLE( |
|
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
34 |
[nss], |
35 |
[AS_HELP_STRING([--disable-nss],[Build against gcrypt rather than NSS])], |
|
36 |
, |
|
37 |
[enable_nss="detect"] |
|
38 |
)
|
|
39 |
||
40 |
AC_ARG_ENABLE( |
|
213
by Mike halcrow
Proof-of-concept key escrow. |
41 |
[pywrap], |
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
42 |
[AS_HELP_STRING([--disable-pywrap],[Disable build of libecryptfs Python wrappers])], |
213
by Mike halcrow
Proof-of-concept key escrow. |
43 |
, |
44 |
[enable_pywrap="detect"] |
|
45 |
)
|
|
46 |
||
47 |
AC_ARG_ENABLE( |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
48 |
[openssl], |
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
49 |
[AS_HELP_STRING([--disable-openssl],[Disable build of OpenSSL key module])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
50 |
, |
51 |
[enable_openssl="detect"] |
|
52 |
)
|
|
53 |
||
54 |
AC_ARG_ENABLE( |
|
55 |
[pkcs11-helper], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
56 |
[AS_HELP_STRING([--enable-pkcs11-helper],[Build pkcs11-helper key module])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
57 |
, |
58 |
enable_pkcs11_helper="no" |
|
59 |
)
|
|
60 |
||
61 |
AC_ARG_ENABLE( |
|
62 |
[tspi], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
63 |
[AS_HELP_STRING([--enable-tspi],[Build TrouSerS key module])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
64 |
, |
65 |
[enable_tspi="no"] |
|
66 |
)
|
|
67 |
||
68 |
AC_ARG_ENABLE( |
|
69 |
[gpg], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
70 |
[AS_HELP_STRING([--enable-gpg],[Build GnuPG key module])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
71 |
, |
72 |
[enable_gpg="no"] |
|
73 |
)
|
|
74 |
||
75 |
AC_ARG_ENABLE( |
|
76 |
[pam], |
|
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
77 |
[AS_HELP_STRING([--disable-pam],[Disable build of PAM module])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
78 |
, |
79 |
[enable_pam="yes"] |
|
80 |
)
|
|
81 |
||
82 |
AC_ARG_ENABLE( |
|
83 |
[gui], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
84 |
[AS_HELP_STRING([--enable-gui],[Enable building of GUI components])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
85 |
, |
86 |
[enable_gui="no"] |
|
87 |
)
|
|
88 |
||
89 |
AC_ARG_ENABLE( |
|
90 |
[docs], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
91 |
[AS_HELP_STRING([--enable-docs],[Enable installing document])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
92 |
, |
93 |
[enable_docs="no"] |
|
94 |
)
|
|
95 |
||
96 |
AC_ARG_ENABLE( |
|
97 |
[docs-gen], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
98 |
[AS_HELP_STRING([--enable-docs-gen],[Enable generating documents])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
99 |
, |
100 |
[enable_docs_gen="no"] |
|
101 |
)
|
|
102 |
test "${enable_docs_gen}" = "yes" && enable_docs="yes" |
|
103 |
||
104 |
AC_ARG_ENABLE( |
|
117
by Mike halcrow
This patch detects the correct libtool version at runtime. It also |
105 |
[tests], |
106 |
[AS_HELP_STRING([--enable-tests],[Enable system specific tests])], |
|
107 |
, |
|
108 |
[enable_tests="no"] |
|
109 |
)
|
|
110 |
||
111 |
AC_ARG_ENABLE( |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
112 |
[mudflap], |
111
by Mike halcrow
1. Ready to libtool-2 |
113 |
[AS_HELP_STRING([--enable-mudflap],[Build with -fmudflap gcc option])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
114 |
[ |
115 |
if "${enableval}" = "yes"; then
|
|
116 |
CFLAGS="$CFLAGS -fmudflap"
|
|
117 |
LDFLAGS="$LDFLAGS -lmudflap"
|
|
118 |
fi
|
|
119 |
] |
|
120 |
)
|
|
121 |
||
122 |
AC_ARG_WITH( |
|
16
by mike@halcrow.us
Use gpgme-config. |
123 |
[gpgme-prefix], |
111
by Mike halcrow
1. Ready to libtool-2 |
124 |
[AS_HELP_STRING([--with-gpgme-prefix=PATH],[Specify the directory where gpgme install, default /usr])], |
16
by mike@halcrow.us
Use gpgme-config. |
125 |
, |
126 |
[with_gpgme_prefix="/usr"] |
|
127 |
)
|
|
128 |
||
129 |
AC_ARG_WITH( |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
130 |
[pamdir], |
111
by Mike halcrow
1. Ready to libtool-2 |
131 |
[AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
132 |
[pamdir="${withval}"], |
133 |
[ |
|
32
by mhalcrow@us.ibm.com
Better way of specifying the PAM directory (by Alon Bar-Lev) |
134 |
if test "${prefix}" = "/usr"; then
|
135 |
pamdir="/lib${libdir##*/lib}/security"
|
|
136 |
else
|
|
137 |
pamdir="\$(libdir)/security"
|
|
138 |
fi
|
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
139 |
] |
140 |
)
|
|
141 |
||
142 |
AC_ARG_WITH( |
|
143 |
[ecryptfskeymoddir], |
|
111
by Mike halcrow
1. Ready to libtool-2 |
144 |
[AS_HELP_STRING([--with-ecryptfskeymoddir=PATH],[Specify the directory where key modules are stored])], |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
145 |
[ |
146 |
ecryptfskeymoddir="${withval}"
|
|
147 |
full_ecryptfskeymoddir="${ecryptfskeymoddir}"
|
|
148 |
], |
|
149 |
[ |
|
150 |
full_ecryptfskeymoddir=`eval eval eval eval eval echo "${libdir}/ecryptfs" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
|
|
151 |
ecryptfskeymoddir="\$(libdir)/ecryptfs"
|
|
152 |
] |
|
153 |
)
|
|
154 |
AC_DEFINE_UNQUOTED([ECRYPTFS_DEFAULT_KEY_MOD_DIR], ["$full_ecryptfskeymoddir"], "Location of key modules") |
|
155 |
||
111
by Mike halcrow
1. Ready to libtool-2 |
156 |
AC_GNU_SOURCE
|
157 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
158 |
AC_PROG_CC
|
159 |
AC_MINIX
|
|
160 |
AM_PROG_CC_C_O
|
|
131
by Mike halcrow
I believe symbolic link is the right way to go, it is more compatible and |
161 |
AC_PROG_LN_S
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
162 |
PKG_PROG_PKG_CONFIG
|
117
by Mike halcrow
This patch detects the correct libtool version at runtime. It also |
163 |
|
164 |
ifdef( |
|
165 |
[LT_INIT], |
|
166 |
[LT_INIT], |
|
167 |
[AC_PROG_LIBTOOL] |
|
168 |
)
|
|
169 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
170 |
AC_PATH_PROGS([POD2MAN], [pod2man]) |
171 |
test -z "${POD2MAN}" && AC_MSG_ERROR([I couldn't find pod2man; make sure it's installed and in your path]) |
|
172 |
||
173 |
AC_PATH_PROGS([TAR], [tar]) |
|
174 |
AC_PATH_PROGS([PS2PDF], [ps2pdf]) |
|
175 |
AC_PATH_PROGS([DVIPS], [dvips]) |
|
176 |
AC_PATH_PROGS([LATEX2HTML], [latex2html]) |
|
177 |
AC_PATH_PROGS([LATEX], [latex]) |
|
178 |
if test "${enable_docs_gen}" = "yes"; then |
|
179 |
test -z "${TAR}" && AC_MSG_ERROR([Couldn't find tar]) |
|
180 |
test -z "${PS2PDF}" && AC_MSG_ERROR([Couldn't find ps2pdf]) |
|
181 |
test -z "${DVIPS}" && AC_MSG_ERROR([Couldn't find dvips]) |
|
182 |
test -z "${LATEX2HTML}" && AC_MSG_ERROR([Couldn't find latex2html]) |
|
183 |
test -z "${LATEX}" && AC_MSG_ERROR([Couldn't find latex]) |
|
184 |
fi
|
|
185 |
||
186 |
AC_ISC_POSIX
|
|
111
by Mike halcrow
1. Ready to libtool-2 |
187 |
AC_HEADER_STDC
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
188 |
AC_CHECK_LIB([dl], [dlopen]) |
189 |
||
190 |
# Verify gcrypt |
|
191 |
AC_MSG_CHECKING([for libgcrypt]) |
|
192 |
AM_PATH_LIBGCRYPT(,,[AC_MSG_ERROR([eCryptfs userspace tools require libgcrypt |
|
193 |
You might find the package at:
|
|
194 |
http://directory.fsf.org/security/libgcrypt.html
|
|
195 |
])] |
|
196 |
)
|
|
197 |
||
198 |
# Verify keyutils version 1.0 or higher |
|
199 |
if test -z "${KEYUTILS_LIBS}"; then |
|
200 |
AC_ARG_VAR([KEYUTILS_CFLAGS], [C compiler flags for keyutils]) |
|
201 |
AC_ARG_VAR([KEYUTILS_LIBS], [linker flags for keyutils]) |
|
202 |
AC_CHECK_LIB( |
|
203 |
[keyutils], |
|
204 |
[keyctl_search], |
|
205 |
[KEYUTILS_LIBS="-lkeyutils"], |
|
206 |
[AC_MSG_ERROR([eCryptfs userspace tools require Keyutils version 1.0 or higher. |
|
207 |
You might find the package at:
|
|
208 |
http://people.redhat.com/~dhowells/keyutils/
|
|
209 |
]) |
|
210 |
] |
|
211 |
) |
|
212 |
fi
|
|
213 |
||
214 |
if test -z "${OPENSSL_LIBS}"; then |
|
215 |
PKG_CHECK_MODULES( |
|
216 |
[OPENSSL], |
|
217 |
[libcrypto >= 0.9.7], |
|
218 |
[have_openssl="yes"], |
|
219 |
[PKG_CHECK_MODULES( |
|
220 |
[OPENSSL], |
|
221 |
[openssl >= 0.9.7], |
|
222 |
[have_openssl="yes"], |
|
223 |
[AC_CHECK_LIB( |
|
224 |
[crypto], |
|
225 |
[RSA_version], |
|
226 |
[ |
|
227 |
have_openssl="yes"
|
|
228 |
OPENSSL_LIBS="-lcrypto"
|
|
229 |
], |
|
230 |
[have_openssl="no"] |
|
231 |
)] |
|
232 |
)] |
|
233 |
) |
|
234 |
else
|
|
235 |
have_openssl="yes" |
|
236 |
fi
|
|
237 |
||
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
238 |
#Verify nss |
239 |
NSS_LIBS=`nss-config --libs` |
|
240 |
if test "x${NSS_LIBS}" != "x" ; then |
|
241 |
NSS_CFLAGS=`nss-config --cflags` |
|
242 |
NSPR_CFLAGS=`nspr-config --cflags` |
|
243 |
NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS ${NSPR_CFLAGS}" |
|
244 |
have_nss="yes" |
|
245 |
else
|
|
246 |
NSS_CFLAGS="" |
|
247 |
have_nss="no" |
|
248 |
fi
|
|
249 |
||
250 |
if test "${enable_nss}" = "detect" ; then |
|
251 |
if test "$have_nss" == "yes" ; then |
|
252 |
enable_nss="yes" |
|
253 |
else |
|
254 |
enable_nss="no" |
|
255 |
fi |
|
256 |
fi
|
|
257 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
258 |
OLD_CFLAGS="${CFLAGS}" |
259 |
CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}" |
|
260 |
AC_CHECK_HEADER([openssl/rsa.h],, [have_openssl="no"]) |
|
261 |
CFLAGS="${OLD_CFLAGS}" |
|
262 |
||
213
by Mike halcrow
Proof-of-concept key escrow. |
263 |
if test "x${SWIG}" != "x" ; then |
264 |
have_swig="yes" |
|
225
by Mike halcrow
Correctly detect Python version for pywrap |
265 |
else
|
266 |
have_swig="no" |
|
213
by Mike halcrow
Proof-of-concept key escrow. |
267 |
fi
|
268 |
||
269 |
if test "${enable_pywrap}" = "detect" ; then |
|
270 |
if test "${have_python}" = "yes" ; then |
|
271 |
if test "${have_swig}" = "yes" ; then |
|
272 |
enable_pywrap="yes" |
|
273 |
fi |
|
274 |
fi |
|
275 |
fi
|
|
276 |
||
277 |
if test "${enable_pywrap}" = "yes" ; then |
|
278 |
test "${have_python}" != "yes" && AC_MSG_ERROR([Python not found]) |
|
279 |
test "${have_swig}" != "yes" && AC_MSG_ERROR([SWIG not found]) |
|
280 |
fi
|
|
281 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
282 |
test "${enable_openssl}" = "detect" && enable_openssl="${have_openssl}" |
283 |
||
284 |
if test "${enable_openssl}" = "yes" ; then |
|
285 |
test "${have_openssl}" != "yes" && AC_MSG_ERROR([OpenSSL not found]) |
|
286 |
fi
|
|
287 |
||
288 |
if test "${enable_pkcs11_helper}" = "yes" ; then |
|
289 |
test "${have_openssl}" != "yes" && AC_MSG_ERROR([OpenSSL not found]) |
|
290 |
PKG_CHECK_MODULES([PKCS11_HELPER], [libpkcs11-helper-1 >= 1.04],, [AC_MSG_ERROR([Cannot locate pkcs11-helper])]) |
|
291 |
fi
|
|
292 |
||
293 |
if test "${enable_tspi}" = "yes" ; then |
|
294 |
if test -z "${TSPI_LIBS}"; then |
|
295 |
AC_ARG_VAR([TSPI_CFLAGS], [C compiler flags for tspi]) |
|
296 |
AC_ARG_VAR([TSPI_LIBS], [linker flags for tspi]) |
|
297 |
AC_CHECK_LIB( |
|
298 |
[tspi], |
|
299 |
[Tspi_Context_Create], |
|
300 |
[TSPI_LIBS="-ltspi"], |
|
301 |
[AC_MSG_ERROR([Cannot find tspi])] |
|
302 |
) |
|
303 |
fi |
|
304 |
fi
|
|
305 |
||
306 |
if test "${enable_gpg}" = "yes" ; then |
|
16
by mike@halcrow.us
Use gpgme-config. |
307 |
AC_MSG_CHECKING([for gpgme]) |
308 |
if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then |
|
309 |
AC_MSG_ERROR([Cannot locate gpgme]) |
|
310 |
else |
|
311 |
AC_MSG_RESULT([found]) |
|
312 |
GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`" |
|
313 |
GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`" |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
314 |
fi |
315 |
fi
|
|
316 |
||
317 |
if test "${enable_pam}" = "yes" ; then |
|
318 |
if test -z "${PAM_LIBS}"; then |
|
319 |
AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam]) |
|
320 |
AC_ARG_VAR([PAM_LIBS], [linker flags for pam]) |
|
321 |
AC_CHECK_LIB( |
|
322 |
[pam], |
|
323 |
[pam_authenticate], |
|
324 |
[PAM_LIBS="-lpam"], |
|
325 |
[AC_MSG_ERROR([Cannot find pam])] |
|
326 |
) |
|
327 |
AC_CHECK_LIB( |
|
328 |
[pam_misc], |
|
329 |
[pam_misc_setenv], |
|
330 |
[PAM_LIBS="${TSPI_LIBS} -lpam_misc"], |
|
331 |
[AC_MSG_ERROR([Cannot find pam_misc])] |
|
332 |
) |
|
333 |
fi |
|
334 |
fi
|
|
335 |
||
336 |
if test "${enable_gui}" = "yes"; then |
|
20
by mike@halcrow.us
Better detection of GTK+ (contributed by Alon Bar-Lev) |
337 |
PKG_CHECK_MODULES( |
338 |
[GTK], |
|
339 |
[gtk+-2.0 >= 2.0], |
|
340 |
, |
|
341 |
PKG_CHECK_MODULES( |
|
342 |
[GTK], |
|
343 |
[gtk+ >= 1.0],, |
|
344 |
AC_MSG_ERROR([Cannot locate gtk+]) |
|
345 |
) |
|
346 |
) |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
347 |
fi
|
348 |
||
349 |
pkgconfigdir="\$(libdir)/pkgconfig" |
|
350 |
if test "${prefix}" = "/usr"; then |
|
351 |
rootsbindir="/sbin" |
|
352 |
else
|
|
353 |
rootsbindir="\$(sbindir)" |
|
354 |
fi
|
|
111
by Mike halcrow
1. Ready to libtool-2 |
355 |
|
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
356 |
if test "${enable_nss}" == "yes" ; then |
357 |
CRYPTO_CFLAGS=${NSS_CFLAGS} |
|
358 |
CRYPTO_LIBS=${NSS_LIBS} |
|
359 |
else
|
|
360 |
CRYPTO_CFLAGS=${LIBGCRYPT_CFLAGS} |
|
361 |
CRYPTO_LIBS=${LIBGCRYPT_LIBS} |
|
362 |
fi
|
|
363 |
||
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
364 |
AC_SUBST([pamdir]) |
365 |
AC_SUBST([pamlibdir]) |
|
366 |
AC_SUBST([pkgconfigdir]) |
|
367 |
AC_SUBST([rootsbindir]) |
|
368 |
AC_SUBST([ecryptfskeymoddir]) |
|
16
by mike@halcrow.us
Use gpgme-config. |
369 |
AC_SUBST([GPGME_CFLAGS]) |
370 |
AC_SUBST([GPGME_LIBS]) |
|
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
371 |
AC_SUBST([CRYPTO_CFLAGS]) |
372 |
AC_SUBST([CRYPTO_LIBS]) |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
373 |
AM_CONDITIONAL([BUILD_OPENSSL], [test "${enable_openssl}" = "yes"]) |
374 |
AM_CONDITIONAL([BUILD_PKCS11_HELPER], [test "${enable_pkcs11_helper}" = "yes"]) |
|
375 |
AM_CONDITIONAL([BUILD_TSPI], [test "${enable_tspi}" = "yes"]) |
|
376 |
AM_CONDITIONAL([BUILD_GPG], [test "${enable_gpg}" = "yes"]) |
|
377 |
AM_CONDITIONAL([BUILD_PAM], [test "${enable_pam}" = "yes"]) |
|
213
by Mike halcrow
Proof-of-concept key escrow. |
378 |
AM_CONDITIONAL([BUILD_PYWRAP], [test "${enable_pywrap}" = "yes"]) |
241
by Mike halcrow
Migrate the default crypto provider for libecryptfs from gcrypt to |
379 |
AM_CONDITIONAL([BUILD_NSS], [test "${enable_nss}" = "yes"]) |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
380 |
AM_CONDITIONAL([BUILD_GUI], [test "${enable_gui}" = "yes"]) |
381 |
AM_CONDITIONAL([BUILD_DOCS], [test "${enable_docs}" = "yes"]) |
|
382 |
AM_CONDITIONAL([BUILD_DOCS_GEN], [test "${enable_docs_gen}" = "yes"]) |
|
117
by Mike halcrow
This patch detects the correct libtool version at runtime. It also |
383 |
AM_CONDITIONAL([ENABLE_TESTS], [test "${enable_tests}" = "yes"]) |
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
384 |
|
385 |
# workaround for <autoconf-2.60 |
|
386 |
if test -z "${docdir}"; then |
|
387 |
docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)" |
|
388 |
AC_SUBST([docdir]) |
|
389 |
fi
|
|
390 |
if test -z "${htmldir}"; then |
|
391 |
htmldir="\$(docdir)" |
|
392 |
AC_SUBST([htmldir]) |
|
393 |
fi
|
|
394 |
# end workaround |
|
117
by Mike halcrow
This patch detects the correct libtool version at runtime. It also |
395 |
# workaround for <automake-1.10 |
396 |
if test -z "${MKDIR_P}"; then |
|
397 |
MKDIR_P="\$(mkdir_p)" |
|
398 |
AC_SUBST([MKDIR_P]) |
|
399 |
fi
|
|
400 |
# end workaround |
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
401 |
|
402 |
AC_CONFIG_FILES([ |
|
403 |
Makefile
|
|
404 |
doc/Makefile
|
|
405 |
src/Makefile
|
|
406 |
src/libecryptfs/Makefile
|
|
407 |
src/utils/Makefile
|
|
408 |
src/key_mod/Makefile
|
|
409 |
src/daemon/Makefile
|
|
371
by Dustin Kirkland
src/desktop: add the desktop files to the dist tarball |
410 |
src/desktop/Makefile
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
411 |
src/include/Makefile
|
412 |
doc/manpage/Makefile
|
|
413 |
src/pam_ecryptfs/Makefile
|
|
414 |
src/libecryptfs/libecryptfs.pc
|
|
213
by Mike halcrow
Proof-of-concept key escrow. |
415 |
src/libecryptfs-swig/Makefile
|
2
by mhalcrow@us.ibm.com
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component, |
416 |
]) |
417 |
AC_OUTPUT
|
|
418 |
||
419 |
if test "${prefix}" != "/usr"; then |
|
420 |
echo |
|
421 |
echo "Warning: install prefix is $prefix" |
|
422 |
echo |
|
423 |
echo "Most mount applications expect the mount helper to install to" |
|
424 |
echo "/sbin. You can install the mount helper to that location by " |
|
425 |
echo "running the configure script again with --prefix=/usr:" |
|
426 |
echo |
|
427 |
echo "./configure --prefix=/usr" |
|
428 |
echo |
|
429 |
fi
|