1
1
dnl Process this file with autoconf to produce a configure script.
2
AC_INIT(conf/pam_conv1/pam_conv_y.y)
3
AM_INIT_AUTOMAKE("Linux-PAM", 1.0.1)
5
AM_CONFIG_HEADER(config.h)
3
AC_CONFIG_SRCDIR([conf/pam_conv1/pam_conv_y.y])
4
AM_INIT_AUTOMAKE("Linux-PAM", 1.1.0)
6
AC_CONFIG_HEADERS([config.h])
7
AC_CONFIG_MACRO_DIR([m4])
220
222
AC_ARG_ENABLE([prelude],
221
AC_HELP_STRING([--disable-prelude],[do not use prelude]),
223
AS_HELP_STRING([--disable-prelude],[do not use prelude]),
222
224
WITH_PRELUDE=$enableval, WITH_PRELUDE=yes)
223
225
if test "$WITH_PRELUDE" == "yes" ; then
224
226
AM_PATH_LIBPRELUDE([0.9.0])
230
232
dnl lots of debugging information goes to /var/run/pam-debug.log
231
233
AC_ARG_ENABLE([debug],
232
AC_HELP_STRING([--enable-debug],
233
[specify you are building with debugging on]),
234
WITH_DEBUG=yes ; AC_DEFINE([DEBUG],,
235
[lots of stuff gets written to /var/run/pam-debug.log]),
234
AS_HELP_STRING([--enable-debug],[specify you are building with debugging on]))
236
if test x"$enable_debug" = x"yes" ; then
238
[lots of stuff gets written to /var/run/pam-debug.log])
239
241
AC_ARG_ENABLE(securedir,
240
AC_HELP_STRING([--enable-securedir=DIR],[path to location of PAMs @<:@default=$libdir/security@:>@]),
242
AS_HELP_STRING([--enable-securedir=DIR],[path to location of PAMs @<:@default=$libdir/security@:>@]),
241
243
SECUREDIR=$enableval, SECUREDIR=$libdir/security)
242
244
AC_SUBST(SECUREDIR)
244
246
AC_ARG_ENABLE([isadir],
245
AC_HELP_STRING([--enable-isadir=DIR],[path to arch-specific module files @<:@default=../../(basename of $libdir)/security@:>@]),
247
AS_HELP_STRING([--enable-isadir=DIR],[path to arch-specific module files @<:@default=../../(basename of $libdir)/security@:>@]),
247
249
ISA=../../`basename $libdir`/security)
248
250
unset mylibdirbase
250
252
AC_MSG_RESULT([Defining \$ISA to "$ISA"])
252
254
AC_ARG_ENABLE(sconfigdir,
253
AC_HELP_STRING([--enable-sconfigdir=DIR],[path to module conf files @<:@default=$sysconfdir/security@:>@]),
255
AS_HELP_STRING([--enable-sconfigdir=DIR],[path to module conf files @<:@default=$sysconfdir/security@:>@]),
254
256
SCONFIGDIR=$enableval, SCONFIGDIR=$sysconfdir/security)
255
257
AC_SUBST(SCONFIGDIR)
257
259
AC_ARG_ENABLE(pamlocking,
258
AC_HELP_STRING([--enable-pamlocking],[configure libpam to observe a global authentication lock]),
259
WITH_PAMLOCKING=yes ; AC_DEFINE([PAM_LOCKING],,
260
[libpam should observe a global authentication lock]),
262
AC_SUBST(WITH_PAMLOCKING)
260
AS_HELP_STRING([--enable-pamlocking],[configure libpam to observe a global authentication lock]))
262
if test x"$enable_pamlocking" = "xyes"; then
263
AC_DEFINE([PAM_LOCKING],,
264
[libpam should observe a global authentication lock])
264
267
AC_ARG_ENABLE(read-both-confs,
265
AC_HELP_STRING([--enable-read-both-confs],[read both /etc/pam.d and /etc/pam.conf files]),
266
AC_DEFINE([PAM_READ_BOTH_CONFS],,
267
[read both /etc/pam.d and /etc/pam.conf files]))
268
AC_SUBST(PAM_READ_BOTH_CONFS)
268
AS_HELP_STRING([--enable-read-both-confs],[read both /etc/pam.d and /etc/pam.conf files]))
270
if test x"$enable_read_both_confs" = "xyes"; then
271
AC_DEFINE([PAM_READ_BOTH_CONFS],,
272
[read both /etc/pam.d and /etc/pam.conf files])
270
275
AC_ARG_ENABLE([lckpwdf],
271
AC_HELP_STRING([--disable-lckpwdf],[do not use the lckpwdf function]),
276
AS_HELP_STRING([--disable-lckpwdf],[do not use the lckpwdf function]),
272
277
WITH_LCKPWDF=$enableval, WITH_LCKPWDF=yes)
273
278
if test "$WITH_LCKPWDF" == "yes" ; then
274
279
AC_DEFINE([USE_LCKPWDF], 1,
294
}], pam_mail_spool="_PATH_MAILDIR",
295
pam_mail_spool="\"/var/spool/mail\"",
296
pam_mail_spool="\"/var/spool/mail\"")
299
}]])],[pam_mail_spool="_PATH_MAILDIR"],[pam_mail_spool="\"/var/spool/mail\""],[pam_mail_spool="\"/var/spool/mail\""])
298
301
AC_DEFINE_UNQUOTED(PAM_PATH_MAILDIR, $pam_mail_spool,
299
302
[Path where mails are stored])
322
325
# Check for cracklib
323
326
AC_ARG_ENABLE([cracklib],
324
AC_HELP_STRING([--disable-cracklib],[do not use cracklib]),
327
AS_HELP_STRING([--disable-cracklib],[do not use cracklib]),
325
328
WITH_CRACKLIB=$enableval, WITH_CRACKLIB=yes)
326
329
if test x"$WITH_CRACKLIB" != xno ; then
327
330
AC_CHECK_HEADERS([crack.h],
335
338
dnl Look for Linux Auditing library - see documentation
336
339
AC_ARG_ENABLE([audit],
337
AC_HELP_STRING([--disable-audit],[do not enable audit support]),
340
AS_HELP_STRING([--disable-audit],[do not enable audit support]),
338
341
WITH_LIBAUDIT=$enableval, WITH_LIBAUDIT=yes)
339
342
if test x"$WITH_LIBAUDIT" != xno ; then
340
343
AC_CHECK_HEADER([libaudit.h],
344
347
[HAVE_AUDIT_TTY_STATUS=""],
345
348
[#include <libaudit.h>])]
347
if test ! -z "$LIBAUDIT" -a "ac_cv_header_libaudit_h" != "no" ; then
350
if test ! -z "$LIBAUDIT" -a "$ac_cv_header_libaudit_h" != "no" ; then
348
351
AC_DEFINE([HAVE_LIBAUDIT], 1, [Define to 1 if audit support should be compiled in.])
350
353
if test ! -z "$HAVE_AUDIT_TTY_STATUS" ; then
357
360
AM_CONDITIONAL([HAVE_AUDIT_TTY_STATUS],
358
361
[test "x$HAVE_AUDIT_TTY_STATUS" = xyes])
363
AC_CHECK_HEADERS(xcrypt.h crypt.h)
360
364
BACKUP_LIBS=$LIBS
361
365
AC_SEARCH_LIBS([crypt],[xcrypt crypt], LIBCRYPT="-l$ac_lib", LIBCRYPT="")
362
AC_CHECK_FUNCS(crypt_r)
366
AC_CHECK_FUNCS(crypt_r crypt_gensalt_rn)
363
367
LIBS=$BACKUP_LIBS
364
368
AC_SUBST(LIBCRYPT)
369
if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then
370
AC_DEFINE([HAVE_LIBXCRYPT], 1, [Define to 1 if xcrypt support should be compiled in.])
366
AC_ARG_WITH([randomdev], AC_HELP_STRING([--with-randomdev=(<path>|yes|no)], [use specified random device instead of /dev/urandom or 'no' to disable]), opt_randomdev=$withval)
373
AC_ARG_WITH([randomdev], AS_HELP_STRING([--with-randomdev=(<path>|yes|no)],[use specified random device instead of /dev/urandom or 'no' to disable]), opt_randomdev=$withval)
367
374
if test "$opt_randomdev" = yes -o -z "$opt_randomdev"; then
368
375
opt_randomdev="/dev/urandom"
369
376
elif test "$opt_randomdev" = no; then
376
383
dnl check for libdb or libndbm as fallback. Some libndbm compat
377
384
dnl libraries are unuseable, so try libdb first.
378
385
AC_ARG_ENABLE([db],
379
AC_HELP_STRING([--enable-db=(db|ndbm|yes|no)],[Default behavior 'yes', which is to check for libdb first, followed by ndbm. Use 'no' to disable db support.]),
386
AS_HELP_STRING([--enable-db=(db|ndbm|yes|no)],[Default behavior 'yes', which is to check for libdb first, followed by ndbm. Use 'no' to disable db support.]),
380
387
WITH_DB=$enableval, WITH_DB=yes)
381
388
AC_ARG_WITH([db-uniquename],
382
AC_HELP_STRING([--with-db-uniquename=extension],[Unique name for db libraries and functions.]))
389
AS_HELP_STRING([--with-db-uniquename=extension],[Unique name for db libraries and functions.]))
383
390
if test x"$WITH_DB" != xno ; then
384
391
if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then
385
392
AC_CHECK_LIB([db$with_db_uniquename], [db_create$with_db_uniquename], LIBDB="-ldb$with_db_uniquename", LIBDB="")
409
416
AC_ARG_ENABLE([selinux],
410
AC_HELP_STRING([--disable-selinux],[do not use SELinux]),
417
AS_HELP_STRING([--disable-selinux],[do not use SELinux]),
411
418
WITH_SELINUX=$enableval, WITH_SELINUX=yes)
412
419
if test "$WITH_SELINUX" == "yes" ; then
413
420
AC_CHECK_LIB([selinux],[getfilecon], LIBSELINUX="-lselinux", LIBSELINUX="")
487
493
AM_CONDITIONAL(ENABLE_GENERATE_PDF, test ! -z "$FO2PDF")
490
AM_GNU_GETTEXT_VERSION
496
AM_GNU_GETTEXT_VERSION([0.15])
491
497
AM_GNU_GETTEXT([external])
492
498
AC_CHECK_FUNCS(dngettext)
494
AH_VERBATIM([_ZZENABLE_NLS],
500
AH_BOTTOM([#ifdef ENABLE_NLS
496
501
#include <libintl.h>
497
502
#define _(msgid) dgettext(PACKAGE, msgid)
498
503
#define N_(msgid) msgid
523
528
AM_CONDITIONAL([HAVE_KEY_MANAGEMENT], [test "$have_key_syscalls" = 1])
525
530
dnl Files to be created from when we run configure
526
AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \
531
AC_CONFIG_FILES([Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \
527
532
libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile \
529
534
modules/Makefile \
540
545
modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile \
541
546
modules/pam_namespace/Makefile \
542
547
modules/pam_nologin/Makefile modules/pam_permit/Makefile \
543
modules/pam_rhosts/Makefile \
548
modules/pam_pwhistory/Makefile modules/pam_rhosts/Makefile \
544
549
modules/pam_rootok/Makefile modules/pam_exec/Makefile \
545
550
modules/pam_securetty/Makefile modules/pam_selinux/Makefile \
546
551
modules/pam_sepermit/Makefile \
547
552
modules/pam_shells/Makefile modules/pam_stress/Makefile \
548
553
modules/pam_succeed_if/Makefile modules/pam_tally/Makefile \
549
modules/pam_time/Makefile modules/pam_tty_audit/Makefile \
554
modules/pam_tally2/Makefile modules/pam_time/Makefile \
555
modules/pam_timestamp/Makefile modules/pam_tty_audit/Makefile \
550
556
modules/pam_umask/Makefile \
551
557
modules/pam_unix/Makefile modules/pam_userdb/Makefile \
552
558
modules/pam_warn/Makefile modules/pam_wheel/Makefile \
553
559
modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile \
554
560
doc/man/Makefile doc/sag/Makefile doc/adg/Makefile \
555
561
doc/mwg/Makefile examples/Makefile tests/Makefile \