2007-01-04 06:44:06 -06:00
AC_INIT(util-linux-ng, 2.13devel, kzak@redhat.com)
2006-12-06 17:26:58 -06:00
AC_PREREQ(2.59)
2006-12-06 17:26:54 -06:00
AC_CONFIG_AUX_DIR(config)
2007-05-15 13:46:34 -05:00
AM_INIT_AUTOMAKE([check-news -Wall foreign 1.9 dist-bzip2])
2006-12-06 17:26:54 -06:00
AC_CONFIG_SRCDIR(mount/mount.c)
2007-05-15 13:46:24 -05:00
AC_PREFIX_DEFAULT([/usr])
# Check whether exec_prefix=/usr:
case $exec_prefix:$prefix in
NONE:NONE | NONE:/usr | /usr:*)
AC_MSG_NOTICE([Default --exec-prefix detected.])
case $bindir in
'${exec_prefix}/bin') bindir=/bin
AC_MSG_NOTICE([ --bindir defaults to /bin]) ;;
esac
case $sbindir in
'${exec_prefix}/sbin') sbindir=/sbin
AC_MSG_NOTICE([ --sbindir defaults to /sbin]) ;;
esac ;;
esac
2006-12-06 17:26:54 -06:00
AC_PROG_CC_STDC
2007-05-16 05:56:28 -05:00
AC_GNU_SOURCE
2007-03-14 08:10:18 -05:00
AC_PROG_LIBTOOL
2006-12-06 17:26:54 -06:00
AC_PATH_PROG(PERL, perl)
2007-05-17 13:16:25 -05:00
AC_PATH_PROG(BLKID, blkid, [], [$PATH:/sbin])
AC_PATH_PROG(VOLID, vol_id, [], [$PATH:/lib/udev])
2006-12-06 17:26:54 -06:00
AC_SYS_LARGEFILE
2007-05-15 13:46:16 -05:00
AC_CHECK_HEADERS([linux/compiler.h linux/blkpg.h], [], [], [
2006-12-06 17:26:54 -06:00
#ifdef HAVE_LINUX_COMPILER_H
#include <linux/compiler.h>
#endif
])
2007-05-15 13:46:16 -05:00
AC_CHECK_HEADERS(
[scsi/scsi.h \
langinfo.h \
sys/user.h \
rpcsvc/nfs_prot.h \
sys/io.h \
2007-05-15 13:46:17 -05:00
pty.h])
AC_CHECK_HEADERS([linux/raw.h],
[AM_CONDITIONAL([HAVE_RAW], [true])],
[AM_CONDITIONAL([HAVE_RAW], [false])])
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:16 -05:00
AC_CHECK_FUNCS(
[inet_aton \
fsync \
getdomainname \
nanosleep \
personality \
updwtmp \
lchown \
rpmatch])
2006-12-06 17:26:54 -06:00
AC_FUNC_FSEEKO
2007-05-15 13:46:17 -05:00
dnl UTIL_CHECK_LIB(LIBRARY, FUNCTION)
dnl ---------------------------------
AC_DEFUN([UTIL_CHECK_LIB], [
dnl The trick is to keep the third argument to AC_CHECK_LIB empty,
dnl and thus keep the default action.
have_$1=yes
AC_CHECK_LIB([$1], [$2], [], [have_$1=no])
AM_CONDITIONAL(AS_TR_CPP(HAVE_$1), [test $have_$1 = yes])
])
UTIL_CHECK_LIB(uuid, uuid_is_null)
UTIL_CHECK_LIB(util, openpty)
UTIL_CHECK_LIB(termcap, tgetnum)
2006-12-06 17:26:54 -06:00
2007-05-09 10:35:27 -05:00
AC_ARG_WITH([fsprobe],
2007-05-22 17:04:24 -05:00
[AS_HELP_STRING([--with-fsprobe], [library to guess filesystems (blkid|volume_id), default is blkid])],
[], [with_fsprobe=blkid]
2007-05-09 10:35:27 -05:00
)
AM_CONDITIONAL(HAVE_BLKID, false)
AM_CONDITIONAL(HAVE_VOLUME_ID, false)
have_blkid=no
have_volume_id=no
if test x$with_fsprobe = xblkid; then
UTIL_CHECK_LIB(blkid, blkid_known_fstype)
elif test x$with_fsprobe = xvolume_id; then
UTIL_CHECK_LIB(volume_id, volume_id_open_fd)
fi
if test $have_blkid = no && test $have_volume_id = no; then
2007-05-22 17:04:24 -05:00
AC_MSG_ERROR([blkid or volume_id is needed to build util-linux-ng.])
2007-05-09 10:35:27 -05:00
fi
2006-12-06 17:26:54 -06:00
2007-01-03 15:20:44 -06:00
AM_GNU_GETTEXT_VERSION([0.14.1])
2006-12-06 17:26:54 -06:00
AM_GNU_GETTEXT([external])
2007-05-15 13:46:33 -05:00
if test -d $srcdir/po
2007-01-03 15:20:44 -06:00
then
2007-05-15 13:46:33 -05:00
ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
2007-01-03 15:20:44 -06:00
else
ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
fi
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:17 -05:00
have_ncurses=no
AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [have_ncurses=yes])
case $have_ncurses in
2007-06-14 06:32:32 -05:00
yes)
AC_MSG_NOTICE([you have ncurses])
AC_DEFINE(HAVE_NCURSES, 1, [Do we have -lncurses?])
;;
no)
AC_MSG_NOTICE([you do not have ncurses])
;;
2007-05-15 13:46:17 -05:00
esac
2006-12-06 17:26:54 -06:00
AM_CONDITIONAL(HAVE_NCURSES, test x$have_ncurses = xyes)
AC_ARG_WITH([slang],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--with-slang], [compile cfdisk with slang]),
2007-05-15 13:46:14 -05:00
[], with_slang=no
2006-12-06 17:26:54 -06:00
)
2007-05-15 13:46:17 -05:00
use_slang=no
2006-12-06 17:26:54 -06:00
if test x$with_slang = xyes; then
2007-05-15 13:46:17 -05:00
AC_CHECK_HEADERS([slcurses.h slang/slcurses.h], [use_slang=yes])
if test $use_slang = no; then
2006-12-06 17:26:54 -06:00
AC_MSG_ERROR([slang selected but slcurses.h not found])
fi
fi
2007-05-15 13:46:17 -05:00
AM_CONDITIONAL(USE_SLANG, test $use_slang = yes)
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:19 -05:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#define _XOPEN_SOURCE
#include <unistd.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
char *c = crypt("abc","pw");
2007-05-15 13:46:19 -05:00
]])],[],[
2006-12-06 17:26:54 -06:00
LIBS="$LIBS -lcrypt"
2007-05-15 13:46:19 -05:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#define _XOPEN_SOURCE
#include <unistd.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
char *c = crypt("abc","pw");
2007-05-15 13:46:19 -05:00
]])],[
2006-12-06 17:26:54 -06:00
AC_DEFINE(NEED_LIBCRYPT, 1, [Do we need -lcrypt?])
need_libcrypt=yes
],[
AC_MSG_ERROR([crypt() is not available])
])
])
AM_CONDITIONAL(NEED_LIBCRYPT, test x$need_libcrypt = xyes)
2007-05-15 13:46:19 -05:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#include <stdio.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
printf(__progname);
2007-05-15 13:46:19 -05:00
]])],
[AC_DEFINE(HAVE___PROGNAME, 1, Do we have __progname?)
])
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:19 -05:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#include <wchar.h>
#include <wctype.h>
#include <stdio.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
wchar_t wc;
wint_t w;
w = fgetwc(stdin);
if (w == WEOF) exit(1);
wc = w;
fputwc(wc,stdout);
2007-05-15 13:46:19 -05:00
]])],
[AC_DEFINE(HAVE_WIDECHAR,1,Do we have wide character support?)
])
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:19 -05:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#include <sys/syscall.h>
#include <unistd.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
int test = SYS_pivot_root;
2007-05-15 13:46:19 -05:00
]])],
[AM_CONDITIONAL(HAVE_PIVOT_ROOT, true)],
[AM_CONDITIONAL(HAVE_PIVOT_ROOT, false)])
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:19 -05:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2006-12-06 17:26:54 -06:00
#include <time.h>
#include <unistd.h>
2007-05-15 13:46:19 -05:00
]], [[
2006-12-06 17:26:54 -06:00
int a = 0;
struct tm *tm = localtime(0);
if (a == -1) /* false */
sleep(tm->tm_gmtoff);
2007-05-15 13:46:19 -05:00
]])],
[AC_DEFINE(HAVE_TM_GMTOFF,1,[Does struct tm have a field tm_gmtoff?])
])
2006-12-06 17:26:54 -06:00
2007-05-15 13:46:20 -05:00
AC_CHECK_HEADERS([asm/page.h sys/swap.h], [], [], [
#ifdef HAVE_ASM_PAGE_H
# include <asm/page.h>
#endif
])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[
#ifdef HAVE_ASM_PAGE_H
# include <asm/page.h>
#endif
#ifdef HAVE_SYS_SWAP_H
# include <sys/swap.h>
#endif
#include <unistd.h>
]],
[[swapon("/dev/null", 0);]])],
[AC_DEFINE(SWAPON_HAS_TWO_ARGS, 1, [Is swapon() declared with two parameters?])
],
[AC_MSG_NOTICE([Your libc thinks that swapon has 1 arg only.])
])
2006-12-06 17:26:54 -06:00
case "$host" in
2006-12-06 17:27:06 -06:00
i?86-*) intel=true ;;
m68*) m68k=true ;;
2006-12-06 17:26:54 -06:00
sparc*) sparc=true ;;
esac
AM_CONDITIONAL(INTEL, test x$intel = xtrue)
2006-12-06 17:27:06 -06:00
AM_CONDITIONAL(M68K, test x$m68k = xtrue)
2006-12-06 17:26:54 -06:00
AM_CONDITIONAL(SPARC, test x$sparc = xtrue)
AC_ARG_ENABLE([agetty],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-agetty], [do not build agetty]),
2007-05-15 13:46:14 -05:00
[], enable_agetty=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_AGETTY, test x$enable_agetty = xyes)
2006-12-06 17:26:54 -06:00
2006-12-06 17:27:03 -06:00
AC_ARG_ENABLE([cramfs],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-cramfs], [do not build fsck.cramfs, mkfs.cramfs]),
2007-05-15 13:46:14 -05:00
[], enable_cramfs=check
2006-12-06 17:27:03 -06:00
)
2007-05-15 13:46:17 -05:00
if test $enable_cramfs = no; then
build_cramfs=no
else
build_cramfs=yes
dnl Trick: leave the third parameter empty to get the default action.
AC_CHECK_LIB(z, crc32, [], build_cramfs=no)
case $enable_cramfs:$build_cramfs in
yes:no) AC_MSG_ERROR([cramfs selected but libz not found]);;
esac
2006-12-06 17:27:03 -06:00
fi
2007-05-15 13:46:17 -05:00
AM_CONDITIONAL(BUILD_CRAMFS, test $build_cramfs = yes)
2006-12-06 17:27:03 -06:00
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([elvtune],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-elvtune], [build elvtune (only works with 2.2 and 2.4 kernels)]),
2007-05-15 13:46:14 -05:00
[], enable_elvtune=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_ELVTUNE, test x$enable_elvtune = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([init],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-init], [build simpleinit, shutdown, initctl]),
2007-05-15 13:46:14 -05:00
[], enable_init=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_INIT, test x$enable_init = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([kill],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-kill], [build kill]),
2007-05-15 13:46:14 -05:00
[], enable_kill=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_KILL, test x$enable_kill = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([last],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-last], [build last]),
2007-05-15 13:46:14 -05:00
[], enable_last=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_LAST, test x$enable_last = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([mesg],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-mesg], [build mesg]),
2007-05-15 13:46:14 -05:00
[], enable_mesg=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_MESG, test x$enable_mesg = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([partx],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-partx], [build addpart, delpart, partx]),
2007-05-15 13:46:14 -05:00
[], enable_partx=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_PARTX, test x$enable_partx = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([raw],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-raw], [build raw]),
2007-05-15 13:46:14 -05:00
[], enable_raw=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_RAW, test x$enable_raw = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([rdev],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-rdev], [build rdev on i386]),
2007-05-15 13:46:14 -05:00
[], enable_rdev=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_RDEV, test x$enable_rdev = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([rename],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-rename], [do not build rename]),
2007-05-15 13:46:14 -05:00
[], enable_rename=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_RENAME, test x$enable_rename = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([reset],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-reset], [build reset]),
2007-05-15 13:46:14 -05:00
[], enable_reset=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_RESET, test x$enable_reset = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([login-utils],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]),
2007-05-15 13:46:14 -05:00
[], enable_login_utils=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_LOGIN_UTILS, test x$enable_login_utils = xyes)
2006-12-06 17:26:54 -06:00
2006-12-06 17:27:03 -06:00
AC_ARG_WITH([pam],
2007-05-15 13:46:18 -05:00
[AS_HELP_STRING([--without-pam], [compile login-utils without PAM support])])
2006-12-06 17:27:03 -06:00
2007-05-15 13:46:17 -05:00
AM_CONDITIONAL(HAVE_PAM, false)
2006-12-06 17:27:03 -06:00
if test x$enable_login_utils = xyes && test x$with_pam != xno; then
2007-05-15 13:46:17 -05:00
AC_CHECK_HEADERS([security/pam_misc.h],
[AM_CONDITIONAL(HAVE_PAM, true)],
[if test x$with_pam = xyes; then
AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
fi
])
2006-12-06 17:27:03 -06:00
fi
AC_ARG_WITH([selinux],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
2007-05-15 13:46:14 -05:00
[], with_selinux=no
2006-12-06 17:27:03 -06:00
)
2007-05-15 13:46:17 -05:00
if test x$with_selinux = xno; then
AM_CONDITIONAL(HAVE_SELINUX, false)
else
UTIL_CHECK_LIB(selinux, getprevcon)
case $with_selinux:$have_selinux in
yes:no) AC_MSG_ERROR([SELinux selected but libselinux not found]);;
esac
2006-12-06 17:27:03 -06:00
fi
2007-03-12 06:20:54 -05:00
AC_ARG_WITH([audit],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--with-audit], [compile with audit support]),
2007-05-15 13:46:14 -05:00
[], with_audit=no
2007-03-12 06:20:54 -05:00
)
2007-05-15 13:46:17 -05:00
if test x$with_audit = xno; then
AM_CONDITIONAL(HAVE_AUDIT, false)
else
UTIL_CHECK_LIB(audit, audit_log_user_message)
case $with_audit:$have_audit in
yes:no)
AC_MSG_ERROR([Audit selected but libaudit not found (or doesn't support audit_log_user_message())])
;;
esac
2007-03-12 06:20:54 -05:00
fi
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([schedutils],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]),
2007-05-15 13:46:14 -05:00
[], enable_schedutils=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_SCHEDUTILS, test x$enable_schedutils = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([wall],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-wall], [do not build wall]),
2007-05-15 13:46:14 -05:00
[], enable_wall=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_WALL, test x$enable_wall = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([write],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-write], [build write]),
2007-05-15 13:46:14 -05:00
[], enable_write=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(BUILD_WRITE, test x$enable_write = xyes)
2006-12-06 17:26:54 -06:00
AC_ARG_ENABLE([chsh-only-listed],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-chsh-only-listed], [chsh: allow shells not in /etc/shells]),
2007-05-15 13:46:14 -05:00
[], enable_chsh_only_listed=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
if test x$enable_chsh_only_listed = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(ONLY_LISTED_SHELLS, 1, [Should chsh allow only shells in /etc/shells?])
fi
AC_ARG_ENABLE([login-chown-vcs],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-login-chown-vcs], [let login chown /dev/vcsN]),
2007-05-15 13:46:14 -05:00
[], enable_login_chown_vcs=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
if test x$enable_login_chown_vcs = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(LOGIN_CHOWN_VCS, 1, [Should login chown /dev/vcsN?])
fi
AC_ARG_ENABLE([login-stat-mail],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--enable-login-stat-mail], [let login stat() the mailbox]),
2007-05-15 13:46:14 -05:00
[], enable_login_stat_mail=no
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
if test x$enable_login_stat_mail = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(LOGIN_STAT_MAIL, 1, [Should login stat() the mailbox?])
fi
AC_ARG_ENABLE([pg-bell],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-pg-bell], [let pg not ring the bell on invalid keys]),
2007-05-15 13:46:14 -05:00
[], enable_pg_bell=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
if test x$enable_pg_bell = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(PG_BELL, 1, [Should pg ring the bell on invalid keys?])
fi
AC_ARG_ENABLE([require-password],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-require-password], [do not require the user to enter the password in chfn and chsh]),
2007-05-15 13:46:14 -05:00
[], enable_require_password=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
if test x$enable_require_password = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(REQUIRE_PASSWORD, 1, [Should chfn and chsh require the user to enter the password?])
fi
AC_ARG_ENABLE([use-tty-group],
2007-05-15 13:46:18 -05:00
AS_HELP_STRING([--disable-use-tty-group], [do not install wall and write setgid tty]),
2007-05-15 13:46:14 -05:00
[], enable_use_tty_group=yes
2006-12-06 17:26:54 -06:00
)
2006-12-06 17:26:58 -06:00
AM_CONDITIONAL(USE_TTY_GROUP, test x$enable_use_tty_group = xyes)
2006-12-06 17:26:54 -06:00
2006-12-06 17:26:58 -06:00
if test x$enable_use_tty_group = xyes; then
2006-12-06 17:26:54 -06:00
AC_DEFINE(USE_TTY_GROUP, 1, [Should wall and write be installed setgid tty?])
fi
2007-04-24 04:44:19 -05:00
2007-05-15 13:46:05 -05:00
AC_ARG_VAR([SUID_CFLAGS],
[CFLAGS used for binaries which are usually with the suid bit])
AC_ARG_VAR([SUID_LDFLAGS],
[LDFLAGS used for binaries which are usually with the suid bit])
2007-04-24 04:44:19 -05:00
2006-12-06 17:27:03 -06:00
LIBS=""
2006-12-06 17:26:54 -06:00
AC_CONFIG_HEADERS(config.h)
2007-01-03 15:20:44 -06:00
AC_CONFIG_FILES([
Makefile
disk-utils/Makefile
2007-01-04 04:57:07 -06:00
fdisk/Makefile
2007-01-03 15:20:44 -06:00
getopt/Makefile
hwclock/Makefile
2007-01-04 04:57:07 -06:00
include/Makefile
2007-01-03 15:20:44 -06:00
login-utils/Makefile
misc-utils/Makefile
mount/Makefile
partx/Makefile
po/Makefile.in
schedutils/Makefile
sys-utils/Makefile
text-utils/Makefile
2007-01-04 07:23:48 -06:00
tests/Makefile
2007-01-04 07:53:19 -06:00
tests/helpers/Makefile
2007-01-04 07:23:48 -06:00
tests/commands.sh
2007-05-15 13:46:25 -05:00
misc-utils/chkdupexe:misc-utils/chkdupexe.pl
misc-utils/scriptreplay:misc-utils/scriptreplay.pl
2007-01-03 15:20:44 -06:00
])
2006-12-06 17:26:54 -06:00
AC_OUTPUT