]> git.ipfire.org Git - thirdparty/util-linux.git/blame - configure.ac
libblkid: add BLKID_{VERSION,DATE} to blkid.h
[thirdparty/util-linux.git] / configure.ac
CommitLineData
29e107aa 1AC_INIT(util-linux-ng, 2.16, kzak@redhat.com)
baf39af1 2
7fc9786b 3AC_PREREQ(2.60)
48d7b13a
KZ
4
5AC_CONFIG_AUX_DIR(config)
b12991dd 6AC_CONFIG_MACRO_DIR([m4])
48d7b13a 7
42d2a7ba 8AM_INIT_AUTOMAKE([check-news -Wall foreign 1.9 dist-bzip2])
48d7b13a 9
eb35c251
GJ
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
11 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
12
48d7b13a
KZ
13AC_CONFIG_SRCDIR(mount/mount.c)
14
15a9b48c
SK
15AC_PREFIX_DEFAULT([/usr])
16
a77bfc3a 17GTK_DOC_CHECK([1.10])
1e018c15
KZ
18AC_PATH_PROG([XSLTPROC], [xsltproc])
19
33b0be6d
KZ
20dnl version details from <major>.<minor>[-<suffix>]
21PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
22PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
23 | awk -F- '{print $1}')
24PACKAGE_VERSION_RELEASE=0
a0948ffe 25
33b0be6d
KZ
26dnl libblkid version
27LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
28LIBBLKID_DATE="10-Feb-2009"
dc2b8d87
KZ
29LIBBLKID_LT_MAJOR=1
30LIBBLKID_LT_MINOR=1
31LIBBLKID_LT_MICRO=0
32LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
a0948ffe 33
f6076f55
KZ
34dnl libuuid version
35LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
dc2b8d87
KZ
36LIBUUID_LT_MAJOR=1
37LIBUUID_LT_MINOR=3
38LIBUUID_LT_MICRO=0
39LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
f6076f55 40
15a9b48c
SK
41# Check whether exec_prefix=/usr:
42case $exec_prefix:$prefix in
43NONE:NONE | NONE:/usr | /usr:*)
44 AC_MSG_NOTICE([Default --exec-prefix detected.])
45 case $bindir in
46 '${exec_prefix}/bin') bindir=/bin
47 AC_MSG_NOTICE([ --bindir defaults to /bin]) ;;
48 esac
49 case $sbindir in
50 '${exec_prefix}/sbin') sbindir=/sbin
51 AC_MSG_NOTICE([ --sbindir defaults to /sbin]) ;;
971f57f6
KZ
52 esac
53 case $libdir in
54 '${exec_prefix}/lib') libdir=/lib
55 AC_MSG_NOTICE([ --libdir defaults to /lib]) ;;
15a9b48c
SK
56 esac ;;
57esac
48d7b13a 58
cb5212e2 59libdirname=`basename "$libdir"`
b0a0d7d5
KZ
60AC_SUBST([libdirname])
61
996fb358 62# The original default values of {bin,sbin,lib}dir
aaf3e8f5 63usrbin_execdir='${exec_prefix}/bin'
30688dde 64AC_SUBST([usrbin_execdir])
996fb358 65
aaf3e8f5 66usrsbin_execdir='${exec_prefix}/sbin'
30688dde 67AC_SUBST([usrsbin_execdir])
996fb358 68
aaf3e8f5 69usrlib_execdir='${exec_prefix}/'$libdirname
30688dde 70AC_SUBST([usrlib_execdir])
996fb358
KZ
71
72
48d7b13a 73AC_PROG_CC_STDC
240f7101 74AC_GNU_SOURCE
a6996860 75AC_CANONICAL_HOST
85b4c147 76AC_C_CONST
e79829db 77AC_C_VOLATILE
fbaec83b 78AC_C_BIGENDIAN
b12991dd
KZ
79
80dnl libtool-2
81LT_INIT
48d7b13a 82
d06d028a
KZ
83PKG_PROG_PKG_CONFIG
84
8c182554
KZ
85linux_os=no
86case ${host_os} in
87 *linux*)
88 linux_os=yes
89 ;;
90esac
49ccbae6 91AM_CONDITIONAL([LINUX], test "x$linux_os" = xyes)
8c182554 92
48d7b13a 93AC_PATH_PROG(PERL, perl)
3f5bda01
KZ
94AC_PATH_PROG(BLKID, blkid, [], [$PATH:/sbin])
95AC_PATH_PROG(VOLID, vol_id, [], [$PATH:/lib/udev])
48d7b13a
KZ
96
97AC_SYS_LARGEFILE
98
e460a5bf 99AC_CHECK_HEADERS([linux/compiler.h linux/blkpg.h linux/major.h], [], [], [
48d7b13a
KZ
100#ifdef HAVE_LINUX_COMPILER_H
101#include <linux/compiler.h>
102#endif
103])
bf962c0a 104AC_CHECK_HEADERS(
a0948ffe
KZ
105 [err.h \
106 errno.h \
107 getopt.h \
bf962c0a 108 langinfo.h \
a0948ffe
KZ
109 linux/fd.h \
110 linux/tiocl.h \
111 linux/version.h \
8b7f16fc 112 locale.h \
754fed0c
KZ
113 stdint.h \
114 inttypes.h \
a0948ffe 115 pty.h \
607c2a72 116 mntent.h \
754fed0c
KZ
117 net/if.h \
118 net/if_dl.h \
119 netinet/in.h \
bf962c0a 120 rpcsvc/nfs_prot.h \
a0948ffe
KZ
121 scsi/scsi.h \
122 stdlib.h \
123 sys/disk.h \
124 sys/disklabel.h \
125 sys/ioctl.h \
bf962c0a 126 sys/io.h \
754fed0c 127 sys/time.h \
a0948ffe
KZ
128 sys/mkdev.h \
129 sys/prctl.h \
130 sys/queue.h \
754fed0c
KZ
131 sys/sockio.h \
132 sys/file.h \
133 sys/ioctl.h \
a0948ffe
KZ
134 sys/stat.h \
135 sys/types.h \
754fed0c 136 sys/un.h \
a0948ffe 137 sys/user.h \
754fed0c 138 sys/resource.h \
a0948ffe 139 unistd.h ])
fd67be31
SK
140AC_CHECK_HEADERS([linux/raw.h],
141 [AM_CONDITIONAL([HAVE_RAW], [true])],
142 [AM_CONDITIONAL([HAVE_RAW], [false])])
48d7b13a 143
a88057d9
TP
144AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
145
bf962c0a
SK
146AC_CHECK_FUNCS(
147 [inet_aton \
148 fsync \
149 getdomainname \
e27a08ab 150 get_current_dir_name \
437fa54f 151 usleep \
bf962c0a
SK
152 nanosleep \
153 personality \
154 updwtmp \
3ac22f7a 155 jrand48 \
bf962c0a 156 lchown \
a0948ffe
KZ
157 llseek \
158 lseek64 \
159 strtoull \
754fed0c
KZ
160 sysconf \
161 getdtablesize \
162 getrlimit \
163 srandom \
69045d3d
KZ
164 setresgid \
165 setresuid \
fc7aeb09 166 inotify_init \
a0948ffe 167 prctl \
acf6ab6f 168 getmntinfo \
a0948ffe 169 __secure_getenv \
bf962c0a 170 rpmatch])
48d7b13a 171AC_FUNC_FSEEKO
48d7b13a 172
940fd28c
KZ
173AC_CHECK_FUNCS([openat fstatat unlinkat], [have_openat=yes], [have_openat=no])
174
754fed0c
KZ
175AC_CHECK_MEMBER(struct sockaddr.sa_len,
176 AC_DEFINE_UNQUOTED(HAVE_SA_LEN,1,[Define if struct sockaddr contains sa_len]),,
177 [#include <sys/types.h>
178 #include <sys/socket.h>])
179
8569410c 180dnl Static compilation
642f01a3 181m4_define([UTIL_STATIC_PROGRAMS], [losetup, mount, umount, fdisk, sfdisk, blkid])
8569410c
SK
182
183AC_ARG_ENABLE([static-programs],
184 [AS_HELP_STRING([--enable-static-programs=LIST],
185 [link static the programs in LIST (comma-separated,
186 supported for ]m4_defn([UTIL_STATIC_PROGRAMS])[)])])
187
188case $enable_static_programs in
189yes) enable_static_programs=m4_quote(UTIL_STATIC_PROGRAMS) ;;
190no) enable_static_programs= ;;
191esac
192
8569410c
SK
193dnl Set all the individual AM_CONDITIONALs
194m4_foreach([UTIL_PRG], m4_defn([UTIL_STATIC_PROGRAMS]), [
195 case ,$enable_static_programs, in
196 *,UTIL_PRG,*) static_[]UTIL_PRG=yes ;;
197 esac
198 AM_CONDITIONAL([HAVE_STATIC_]m4_toupper(UTIL_PRG),
49ccbae6 199 [test "x$static_[]UTIL_PRG" = xyes])
8569410c
SK
200])
201
f910b559
KZ
202dnl UTIL_PKG_STATIC(VARIABLE, MODULES)
203dnl ----------------------------------
204AC_DEFUN([UTIL_PKG_STATIC], [
205 if AC_RUN_LOG([pkg-config --exists --print-errors "$2"]); then
206 $1=`pkg-config --libs --static "$2"`
207 else
208 AC_MSG_ERROR([pkg-config description of $2, needed for static build, is not available])
209 fi
210])
211
40cc242e
KZ
212dnl UTIL_CHECK_LIB(LIBRARY, FUNCTION, [VARSUFFIX = $1]))
213dnl The VARSUFFIX is optional and overrides the default behaviour. For example:
214dnl UTIL_CHECK_LIB(yyy, func, xxx) generates have_xxx and HAVE_LIBXXX
215dnl UTIL_CHECK_LIB(yyy, func) generates have_yyy and HAVE_LIBYYY
fd67be31
SK
216dnl ---------------------------------
217AC_DEFUN([UTIL_CHECK_LIB], [
40cc242e
KZ
218 m4_define([suffix], m4_default([$3],$1))
219 [have_]suffix=yes
220 m4_ifdef([$3],
221 [AC_CHECK_LIB([$1], [$2], [AC_DEFINE(AS_TR_CPP([HAVE_LIB]suffix), 1)], [[have_]suffix=no])],
222 [AC_CHECK_LIB([$1], [$2], [], [[have_]suffix=no])])
223 AM_CONDITIONAL(AS_TR_CPP([HAVE_]suffix), [test [$have_]suffix = yes])
fd67be31 224])
9dc801d2 225
6fed18f2
KZ
226dnl UTIL_SET_FLAGS(CFLAGS, CPPFLAGS, LDFLAGS)
227AC_DEFUN([UTIL_SET_FLAGS], [
228 old_CFLAGS="$CFLAGS"
229 old_CPPFLAGS="$CPPFLAGS"
230 old_LDFLAGS="$LDFLAGS"
231 CFLAGS="$CFLAGS $1"
232 CPPFLAGS="$CPPFLAGS $2"
233 LDFLAGS="$LDFLAGS $3"
234])
235
236dnl UTIL_RESTORE_FLAGS()
237AC_DEFUN([UTIL_RESTORE_FLAGS], [
238 CFLAGS="$old_CFLAGS"
239 CPPFLAGS="$old_CPPFLAGS"
240 LDFLAGS="$old_LDFLAGS"
241])
242
243
3ac22f7a
KZ
244AC_ARG_ENABLE([tls],
245 AS_HELP_STRING([--disable-tls], [disable use of thread local support]),
246 [], enable_tls=yes
247)
248if test "x$enable_tls" = xyes; then
249 AX_TLS
250fi
251
252
f910b559
KZ
253AC_ARG_ENABLE([mount],
254 AS_HELP_STRING([--disable-mount], [do not build mount utilities]),
255 [], enable_mount=check
256)
257build_mount=yes
258if test "x$enable_mount" = xcheck; then
259 if test "x$linux_os" = xno; then
260 AC_MSG_WARN([non-linux system; do not build mount utilities])
261 build_mount=no
262 fi
263elif test "x$enable_mount" = xno; then
264 build_mount=no
265fi
266AM_CONDITIONAL(BUILD_MOUNT, test "x$build_mount" = xyes)
267
268
269AC_ARG_ENABLE([fsck],
6c2a09b3
KZ
270 AS_HELP_STRING([--disable-fsck], [do not build fsck]),
271 [], enable_fsck=yes
f910b559
KZ
272)
273AM_CONDITIONAL(BUILD_FSCK, test "x$enable_fsck" = xyes)
274
275
17afb032
KZ
276AC_ARG_ENABLE([libuuid],
277 AS_HELP_STRING([--disable-libuuid], [do not build libuuid and uuid utilities]),
278 [], enable_libuuid=yes
279)
dc2b8d87
KZ
280AC_SUBST([LIBUUID_VERSION])
281AC_SUBST([LIBUUID_VERSION_INFO])
17afb032
KZ
282AM_CONDITIONAL(BUILD_LIBUUID, test "x$enable_libuuid" = xyes)
283have_uuid=yes
284
285if test "x$enable_libuuid" = xno; then
286 # Check for external (e2fsprogs) libuuid
287 PKG_CHECK_MODULES(UUID, uuid, [have_uuid=yes], [have_uuid=no])
288 if test "x$have_uuid" = xno; then
289 # system without pkg-config or so, try classic check
290 AC_CHECK_LIB(uuid, uuid_is_null, [have_uuid=yes], [have_uuid=no])
291 fi
292 if test "x$have_uuid" = xyes; then
293 UTIL_SET_FLAGS($UUID_CFLAGS, $UUID_CFLAGS, $UUID_LIBS)
294 AC_CHECK_HEADERS([uuid.h uuid/uuid.h], [break], [])
295 UTIL_RESTORE_FLAGS
296 fi
297else
f910b559 298 # internal library
17afb032 299 AC_DEFINE(HAVE_UUID_H, 1, [Define to 1 if you have the <uuid.h> header file.])
9dc801d2
KZ
300fi
301
17afb032
KZ
302if test "x$have_uuid" = xyes; then
303 AC_DEFINE(HAVE_LIBUUID, 1, [Define to 1 if you have the -luuid.])
304else
305 AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs])
306fi
307AM_CONDITIONAL(HAVE_UUID, test "x$have_uuid" = xyes)
308# default
309: ${UUID_LIBS='-luuid'}
48d7b13a 310
d06d028a 311
2ec884ac
KZ
312AC_ARG_ENABLE([uuidd],
313 AS_HELP_STRING([--disable-uuidd], [do not build the uuid daemon]),
314 [], enable_uuidd=auto
315)
316
317case "$enable_uuidd:$have_uuid" in
318yes:no)
319 AC_MSG_ERROR([cannot enable uuidd when libuuid is disabled]) ;;
320auto:*)
321 enable_uuidd=$have_uuid ;;
322esac
323if test "x$enable_uuidd" = xyes; then
324 AC_DEFINE(HAVE_UUIDD, 1, [Define to 1 if you want to use uuid daemon.])
325fi
326AM_CONDITIONAL(BUILD_UUIDD, test "x$enable_uuidd" = xyes)
327
328
f910b559
KZ
329AC_ARG_ENABLE([libblkid],
330 AS_HELP_STRING([--disable-libblkid], [do not build libblkid and blkid utilities]),
331 [], enable_libblkid=yes
40f07ff7 332)
033cf439 333AC_SUBST([LIBBLKID_DATE])
dc2b8d87
KZ
334AC_SUBST([LIBBLKID_VERSION])
335AC_SUBST([LIBBLKID_VERSION_INFO])
f910b559
KZ
336AM_CONDITIONAL(BUILD_LIBBLKID, test "x$enable_libblkid" = xyes)
337AC_DEFINE_UNQUOTED(LIBBLKID_VERSION, "$LIBBLKID_VERSION", [libblkid version string])
338AC_DEFINE_UNQUOTED(LIBBLKID_DATE, "$LIBBLKID_DATE", [libblkid date string])
339have_blkid=yes
340
341if test "x$enable_libblkid" = xno; then
342 if test "x$build_mount" = xyes || test "x$enable_fsck" = xyes; then
343 # Check for external (e2fsprogs) libblkid
344 PKG_CHECK_MODULES(BLKID, blkid, [have_blkid=yes], [have_blkid=no])
345 if test "x$have_blkid" = xno; then
346 # system without pkg-config or so, try classic check
347 AC_CHECK_LIB(blkid, blkid_get_cache, [have_blkid=yes], [have_blkid=no])
348 fi
349 if test "x$have_blkid" = xyes; then
350 UTIL_SET_FLAGS($BLKID_CFLAGS, $BLKID_CFLAGS, $BLKID_LIBS)
351 AC_CHECK_HEADERS([blkid.h blkid/blkid.h], [break], [])
352 UTIL_RESTORE_FLAGS
353 fi
354 if test -n "$enable_static_programs"; then
355 # TODO check only when mount of fsck are requested
356 UTIL_PKG_STATIC([BLKID_LIBS_STATIC], [blkid])
357 fi
7c950efa 358 fi
f910b559
KZ
359else
360 # internal library
361 AC_DEFINE(HAVE_BLKID_H, 1, [Define to 1 if you have the <blkid.h> header file.])
362 AC_DEFINE(HAVE_BLKID_EVALUATE_TAG, 1, [Define to 1 if you have the blkid_evaluate_tag().])
566f35bc 363 AC_DEFINE(HAVE_BLKID_PROBE_ENABLE_PARTITIONS, 1, [Define to 1 if you have the blkid_probe_enable_partitions().])
b446754d
KZ
364fi
365
f910b559 366if test "x$have_blkid" = xyes; then
d06d028a 367 AC_DEFINE(HAVE_LIBBLKID, 1, [Define to 1 if you have the -lblkid.])
7177d32e 368else
f910b559
KZ
369 if test "x$build_mount" = xyes; then
370 AC_MSG_ERROR([libblkid is needed to build util-linux-ng mount])
607c2a72 371 fi
f910b559
KZ
372 if test "x$enable_fsck" = xyes; then
373 AC_MSG_ERROR([libblkid is needed to build util-linux-ng fsck])
64754af9 374 fi
64754af9 375fi
f910b559
KZ
376AM_CONDITIONAL(HAVE_BLKID, test "x$have_blkid" = xyes)
377# default
378: ${BLKID_LIBS='-lblkid -luuid'}
8569410c 379
8569410c 380AC_ARG_VAR([BLKID_LIBS_STATIC], [-l options for linking statically with blkid])
f910b559 381
17afb032
KZ
382UTIL_CHECK_LIB(util, openpty)
383UTIL_CHECK_LIB(termcap, tgetnum)
8569410c 384
8eeb575c 385AM_GNU_GETTEXT_VERSION([0.14.1])
48d7b13a 386AM_GNU_GETTEXT([external])
49ccbae6 387if test -d "$srcdir/po"
8eeb575c 388then
1b4a3d89 389 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
8eeb575c
KZ
390else
391 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"
392fi
48d7b13a 393
08d64aa2
KZ
394AC_ARG_WITH([ncurses],
395 AS_HELP_STRING([--with-ncurses], [build with non-wide ncurses, default is wide version
396 (--without-ncurses disables all ncurses(w) support)]),
397 [], with_ncurses=auto
398)
399AM_CONDITIONAL(HAVE_NCURSES, false)
400
401if test "x$with_ncurses" != xno; then
402 have_ncurses=no
403 AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [
404 if test "x$with_ncurses" = xauto; then
9ea8ac37 405 UTIL_CHECK_LIB(ncursesw, initscr, ncurses)
08d64aa2
KZ
406 if test "x$have_ncurses" = xyes; then
407 NCURSES_LIBS="-lncursesw"
408 fi
409 fi
49ccbae6 410 if test "x$have_ncurses" = xno; then
9ea8ac37 411 UTIL_CHECK_LIB(ncurses, initscr)
49ccbae6 412 if test "x$have_ncurses" = xyes; then
08d64aa2
KZ
413 NCURSES_LIBS="-lncurses"
414 fi
415 fi
416 ])
49ccbae6 417 if test "x$have_ncurses" = xno; then
08d64aa2
KZ
418 AC_MSG_ERROR([ncurses or ncursesw selected, but library not found (--without-ncurses to disable)])
419 fi
420fi
421AC_SUBST([NCURSES_LIBS])
422
48d7b13a 423
48d7b13a 424AC_ARG_WITH([slang],
7fa4f112 425 AS_HELP_STRING([--with-slang], [compile cfdisk with slang]),
271d98e0 426 [], with_slang=no
48d7b13a
KZ
427)
428
46e71118
AM
429have_tinfo=no
430AC_CHECK_LIB(tinfo, tgetent, [have_tinfo=yes])
49ccbae6 431AM_CONDITIONAL(HAVE_TINFO, test "x$have_tinfo" = xyes)
46e71118 432
fd67be31 433use_slang=no
49ccbae6 434if test "x$with_slang" = xyes; then
fd67be31 435 AC_CHECK_HEADERS([slcurses.h slang/slcurses.h], [use_slang=yes])
49ccbae6 436 if test "x$use_slang" = xno; then
48d7b13a
KZ
437 AC_MSG_ERROR([slang selected but slcurses.h not found])
438 fi
439fi
49ccbae6 440AM_CONDITIONAL(USE_SLANG, test "x$use_slang" = xyes)
48d7b13a
KZ
441
442
cf002530 443AC_LINK_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
444#define _XOPEN_SOURCE
445#include <unistd.h>
cf002530 446]], [[
48d7b13a 447char *c = crypt("abc","pw");
cf002530 448]])],[],[
48d7b13a 449 LIBS="$LIBS -lcrypt"
cf002530 450 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
451 #define _XOPEN_SOURCE
452 #include <unistd.h>
cf002530 453 ]], [[
48d7b13a 454 char *c = crypt("abc","pw");
cf002530 455 ]])],[
48d7b13a
KZ
456 AC_DEFINE(NEED_LIBCRYPT, 1, [Do we need -lcrypt?])
457 need_libcrypt=yes
458 ],[
459 AC_MSG_ERROR([crypt() is not available])
460 ])
48d7b13a
KZ
461])
462
49ccbae6 463AM_CONDITIONAL(NEED_LIBCRYPT, test "x$need_libcrypt" = xyes)
48d7b13a 464
cf002530 465AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a 466#include <stdio.h>
cf002530 467]], [[
48d7b13a 468printf(__progname);
cf002530
SK
469]])],
470[AC_DEFINE(HAVE___PROGNAME, 1, Do we have __progname?)
471])
48d7b13a
KZ
472
473
869829e4
GJ
474AC_CHECK_TYPES([union semun], [], [], [[
475#include <sys/sem.h>
476]])
477
478
cf002530 479AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
480#include <wchar.h>
481#include <wctype.h>
482#include <stdio.h>
cf002530 483]], [[
48d7b13a
KZ
484 wchar_t wc;
485 wint_t w;
486 w = fgetwc(stdin);
487 if (w == WEOF) exit(1);
488 wc = w;
489 fputwc(wc,stdout);
cf002530
SK
490]])],
491[AC_DEFINE(HAVE_WIDECHAR,1,Do we have wide character support?)
492])
48d7b13a
KZ
493
494
72065909
MF
495dnl UTIL_CHECK_SYSCALL(SYSCALL, FALLBACK, ...)
496dnl Only specify FALLBACK if the SYSCALL
497dnl you're checking for is a "newish" one
498dnl -------------------------------------
499AC_DEFUN([UTIL_CHECK_SYSCALL], [
500 dnl This macro uses host_cpu.
501 AC_REQUIRE([AC_CANONICAL_HOST])
502 AC_CACHE_CHECK([for syscall $1],
503 [util_cv_syscall_$1],
504 [_UTIL_SYSCALL_CHECK_DECL([SYS_$1],
505 [syscall=SYS_$1],
506 [dnl Our libc failed use, so see if we can get the kernel
507 dnl headers to play ball ...
508 _UTIL_SYSCALL_CHECK_DECL([_NR_$1],
509 [syscall=_NR_$1],
510 [
511 syscall=no
49ccbae6 512 if test "x$linux_os" = xyes; then
8c182554
KZ
513 case $host_cpu in
514 _UTIL_CHECK_SYSCALL_FALLBACK(m4_shift($@))
515 esac
516 fi
72065909
MF
517 ])
518 ])
519 util_cv_syscall_$1=$syscall
520 ])
49ccbae6 521 AM_CONDITIONAL([HAVE_]m4_toupper($1), [test "x$util_cv_syscall_$1" != xno])
72065909
MF
522 case $util_cv_syscall_$1 in #(
523 no) AC_MSG_WARN([Unable to detect syscall $1.]) ;;
524 SYS_*) ;;
525 *) AC_DEFINE_UNQUOTED([SYS_$1], [$util_cv_syscall_$1],
526 [Fallback syscall number for $1]) ;;
527 esac
528])
529
530dnl _UTIL_SYSCALL_CHECK_DECL(SYMBOL, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
531dnl Check if SYMBOL is declared, using the headers needed for syscall checks.
532dnl -------------------------------------
533m4_define([_UTIL_SYSCALL_CHECK_DECL],
534[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
535#include <sys/syscall.h>
536#include <unistd.h>
72065909
MF
537]], [[int test = $1;]])],
538[$2], [$3])
539])
48d7b13a 540
72065909
MF
541dnl _UTIL_CHECK_SYSCALL_FALLBACK(PATTERN, VALUE, ...)
542dnl Helper macro to create the body for the above `case'.
543dnl -------------------------------------
544m4_define([_UTIL_CHECK_SYSCALL_FALLBACK],
545[m4_ifval([$1],
546 [#(
547 $1) syscall="$2" ;;dnl
548 _UTIL_CHECK_SYSCALL_FALLBACK(m4_shiftn(2, $@))])dnl
549])
48d7b13a 550
72065909
MF
551
552UTIL_CHECK_SYSCALL([pivot_root])
553UTIL_CHECK_SYSCALL([sched_getaffinity])
554UTIL_CHECK_SYSCALL([ioprio_set],
555 [alpha], [442],
556 [i*86], [289],
557 [ia64*], [1274],
558 [powerpc*], [273],
559 [s390*], [282],
560 [sparc*], [196],
447ae7b8 561 [sh*], [288],
72065909
MF
562 [x86_64*], [251])
563UTIL_CHECK_SYSCALL([ioprio_get],
564 [alpha], [443],
565 [i*86], [290],
566 [ia64*], [1275],
567 [powerpc*], [274],
568 [s390*], [283],
569 [sparc*], [218],
447ae7b8 570 [sh*], [289],
72065909 571 [x86_64*], [252])
19a224ad 572
d46a5499
KZ
573dnl fallocate could be available as libc function or as syscall only
574UTIL_CHECK_SYSCALL([fallocate])
575AC_CHECK_FUNCS([fallocate])
19a224ad 576
4205f1fd
MG
577dnl unshare could be available as libc function or as syscall only
578UTIL_CHECK_SYSCALL([unshare])
579AC_CHECK_FUNCS([unshare])
580
cf002530 581AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
582#include <time.h>
583#include <unistd.h>
cf002530 584]], [[
48d7b13a
KZ
585 int a = 0;
586 struct tm *tm = localtime(0);
587 if (a == -1) /* false */
588 sleep(tm->tm_gmtoff);
cf002530
SK
589]])],
590[AC_DEFINE(HAVE_TM_GMTOFF,1,[Does struct tm have a field tm_gmtoff?])
591])
48d7b13a 592
30e8b186
KZ
593AC_CHECK_MEMBERS([struct termios.c_line],,,
594 [[#include <termios.h>]])
595
2d281745
KZ
596AC_CHECK_DECLS([
597 ADDR_NO_RANDOMIZE,
598 FDPIC_FUNCPTRS,
599 MMAP_PAGE_ZERO,
600 ADDR_COMPAT_LAYOUT,
601 READ_IMPLIES_EXEC,
602 ADDR_LIMIT_32BIT,
603 WHOLE_SECONDS,
604 STICKY_TIMEOUTS,
605 ADDR_LIMIT_3GB], [], [], [#include <linux/personality.h>])
48d7b13a 606
22d36665 607AC_CHECK_HEADERS([sys/swap.h])
b3425806
SK
608
609AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
610[[
b3425806
SK
611#ifdef HAVE_SYS_SWAP_H
612# include <sys/swap.h>
613#endif
614#include <unistd.h>
615]],
616[[swapon("/dev/null", 0);]])],
617[AC_DEFINE(SWAPON_HAS_TWO_ARGS, 1, [Is swapon() declared with two parameters?])
618],
619[AC_MSG_NOTICE([Your libc thinks that swapon has 1 arg only.])
620])
621
622
e782f1d4
KZ
623dnl UTIL_SET_ARCH(ARCHNAME, PATTERN)
624dnl ---------------------------------
625AC_DEFUN([UTIL_SET_ARCH], [
626 cpu_$1=false
627 case "$host" in
628 $2) cpu_$1=true ;;
629 esac
49ccbae6 630 AM_CONDITIONAL(AS_TR_CPP(ARCH_$1), [test "x$cpu_$1" = xtrue])
e782f1d4 631])
48d7b13a 632
e782f1d4
KZ
633UTIL_SET_ARCH(I86, i?86-*)
634UTIL_SET_ARCH(86_64, x86_64*)
635UTIL_SET_ARCH(IA64, ia64*)
636UTIL_SET_ARCH(S390, s390*)
637UTIL_SET_ARCH(SPARC, sparc*)
638UTIL_SET_ARCH(PPC, ppc*|powerpc*)
639UTIL_SET_ARCH(M68K, m68*)
640UTIL_SET_ARCH(MIPS, mips*)
eeadb4f4 641UTIL_SET_ARCH(HPPA, hppa*)
48d7b13a 642
6a97809b
KZ
643AC_ARG_ENABLE([arch],
644 AS_HELP_STRING([--enable-arch], [do build arch]),
645 [], enable_arch=no
646)
49ccbae6 647AM_CONDITIONAL(BUILD_ARCH, test "x$enable_arch" = xyes)
48d7b13a
KZ
648
649AC_ARG_ENABLE([agetty],
7fa4f112 650 AS_HELP_STRING([--disable-agetty], [do not build agetty]),
271d98e0 651 [], enable_agetty=yes
48d7b13a 652)
49ccbae6 653AM_CONDITIONAL(BUILD_AGETTY, test "x$enable_agetty" = xyes)
48d7b13a 654
9cb68977 655AC_ARG_ENABLE([cramfs],
7fa4f112 656 AS_HELP_STRING([--disable-cramfs], [do not build fsck.cramfs, mkfs.cramfs]),
271d98e0 657 [], enable_cramfs=check
9cb68977
KZ
658)
659
49ccbae6 660if test "x$enable_cramfs" = xno; then
fd67be31
SK
661 build_cramfs=no
662else
663 build_cramfs=yes
664 dnl Trick: leave the third parameter empty to get the default action.
665 AC_CHECK_LIB(z, crc32, [], build_cramfs=no)
666 case $enable_cramfs:$build_cramfs in
667 yes:no) AC_MSG_ERROR([cramfs selected but libz not found]);;
668 esac
9cb68977 669fi
49ccbae6 670AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
9cb68977
KZ
671
672
bd671347
KZ
673AC_ARG_ENABLE([switch_root],
674 AS_HELP_STRING([--disable-switch_root], [do not build switch_root]),
940fd28c 675 [], enable_switch_root=check
bd671347 676)
940fd28c
KZ
677if test "x$enable_switch_root" = xno; then
678 build_switch_root=no
679else
680 build_switch_root=yes
681 case $enable_switch_root:$linux_os in
682 yes:no) AC_MSG_ERROR([switch_root selected for non-linux system]);;
683 check:no) AC_MSG_WARN([non-linux system; do not build switch_root])
684 build_switch_root=no;;
685 esac
686 if test "x$build_switch_root" = xyes; then
687 case $enable_switch_root:$have_openat in
688 yes:no) AC_MSG_ERROR([switch_root selected but openat() function not found]);;
689 check:no) AC_MSG_WARN([openat() function not found; do not build switch_root])
690 build_switch_root=no;;
691 esac
692 fi
693fi
694AM_CONDITIONAL(BUILD_SWITCH_ROOT, test "x$build_switch_root" = xyes)
bd671347
KZ
695
696
11125e7a
KZ
697AC_ARG_ENABLE([pivot_root],
698 AS_HELP_STRING([--disable-pivot_root], [do not build pivot_root]),
699 [], enable_pivot_root=check
700)
701if test "x$enable_pivot_root" = xno; then
702 build_pivot_root=no
703else
704 build_pivot_root=yes
705 case $enable_pivot_root:$linux_os in
706 yes:no) AC_MSG_ERROR([pivot_root selected for non-linux system]);;
707 check:no) AC_MSG_WARN([non-linux system; do not build pivot_root])
708 build_pivot_root=no;;
709 esac
710 if test "x$build_pivot_root" = xyes; then
711 case $enable_pivot_root:$util_cv_syscall_pivot_root in
712 yes:no) AC_MSG_ERROR([pivot_root selected but pivot_root syscall not found]);;
713 check:no) AC_MSG_WARN([pivot_root syscall not found; do not build pivot_root])
714 build_pivot_root=no;;
715 esac
716 fi
717fi
4a2ecf0a 718AM_CONDITIONAL(BUILD_PIVOT_ROOT, test "x$build_pivot_root" = xyes)
11125e7a
KZ
719
720
721AC_ARG_ENABLE([fallocate],
722 AS_HELP_STRING([--disable-fallocate], [do not build fallocate]),
723 [], enable_fallocate=check
724)
725if test "x$enable_fallocate" = xno; then
726 build_fallocate=no
727else
728 build_fallocate=yes
729 case $enable_fallocate:$linux_os in
730 yes:no) AC_MSG_ERROR([fallocate selected for non-linux system]);;
731 check:no) AC_MSG_WARN([non-linux system; do not build fallocate])
732 build_fallocate=no;;
733 esac
734 if test "x$build_fallocate" = xyes; then
735 case $enable_fallocate:$util_cv_syscall_fallocate in
736 yes:no) AC_MSG_ERROR([fallocate selected but fallocate syscall not found]);;
737 check:no) AC_MSG_WARN([fallocate syscall not found; do not build fallocate])
738 build_fallocate=no;;
739 esac
740 fi
741fi
742AM_CONDITIONAL(BUILD_FALLOCATE, test "x$build_fallocate" = xyes)
743
744
745AC_ARG_ENABLE([unshare],
746 AS_HELP_STRING([--disable-unshare], [do not build unshare]),
747 [], enable_unshare=check
748)
749if test "x$enable_unshare" = xno; then
750 build_unshare=no
751else
752 build_unshare=yes
753 case $enable_unshare:$linux_os in
754 yes:no) AC_MSG_ERROR([unshare selected for non-linux system]);;
755 check:no) AC_MSG_WARN([non-linux system; do not build unshare])
756 build_unshare=no;;
757 esac
758 if test "x$build_unshare" = xyes; then
759 case $enable_unshare:$util_cv_syscall_unshare in
760 yes:no) AC_MSG_ERROR([unshare selected but unshare syscall not found]);;
761 check:no) AC_MSG_WARN([unshare syscall not found; do not build unshare])
762 build_unshare=no;;
763 esac
764 fi
765fi
766AM_CONDITIONAL(BUILD_UNSHARE, test "x$build_unshare" = xyes)
767
768
769
48d7b13a 770AC_ARG_ENABLE([elvtune],
7fa4f112 771 AS_HELP_STRING([--enable-elvtune], [build elvtune (only works with 2.2 and 2.4 kernels)]),
271d98e0 772 [], enable_elvtune=no
48d7b13a 773)
49ccbae6 774AM_CONDITIONAL(BUILD_ELVTUNE, test "x$enable_elvtune" = xyes)
48d7b13a
KZ
775
776
777AC_ARG_ENABLE([init],
7fa4f112 778 AS_HELP_STRING([--enable-init], [build simpleinit, shutdown, initctl]),
271d98e0 779 [], enable_init=no
48d7b13a 780)
49ccbae6 781AM_CONDITIONAL(BUILD_INIT, test "x$enable_init" = xyes)
48d7b13a
KZ
782
783
784AC_ARG_ENABLE([kill],
7fa4f112 785 AS_HELP_STRING([--enable-kill], [build kill]),
271d98e0 786 [], enable_kill=no
48d7b13a 787)
49ccbae6 788AM_CONDITIONAL(BUILD_KILL, test "x$enable_kill" = xyes)
48d7b13a
KZ
789
790
791AC_ARG_ENABLE([last],
7fa4f112 792 AS_HELP_STRING([--enable-last], [build last]),
271d98e0 793 [], enable_last=no
48d7b13a 794)
49ccbae6 795AM_CONDITIONAL(BUILD_LAST, test "x$enable_last" = xyes)
48d7b13a
KZ
796
797
798AC_ARG_ENABLE([mesg],
7fa4f112 799 AS_HELP_STRING([--enable-mesg], [build mesg]),
271d98e0 800 [], enable_mesg=no
48d7b13a 801)
49ccbae6 802AM_CONDITIONAL(BUILD_MESG, test "x$enable_mesg" = xyes)
48d7b13a
KZ
803
804
805AC_ARG_ENABLE([partx],
7fa4f112 806 AS_HELP_STRING([--enable-partx], [build addpart, delpart, partx]),
271d98e0 807 [], enable_partx=no
48d7b13a 808)
49ccbae6 809AM_CONDITIONAL(BUILD_PARTX, test "x$enable_partx" = xyes)
48d7b13a
KZ
810
811
812AC_ARG_ENABLE([raw],
7fa4f112 813 AS_HELP_STRING([--enable-raw], [build raw]),
271d98e0 814 [], enable_raw=no
48d7b13a 815)
49ccbae6 816AM_CONDITIONAL(BUILD_RAW, test "x$enable_raw" = xyes)
48d7b13a
KZ
817
818
819AC_ARG_ENABLE([rdev],
7fa4f112 820 AS_HELP_STRING([--enable-rdev], [build rdev on i386]),
271d98e0 821 [], enable_rdev=no
48d7b13a 822)
49ccbae6 823AM_CONDITIONAL(BUILD_RDEV, test "x$enable_rdev" = xyes)
48d7b13a
KZ
824
825
826AC_ARG_ENABLE([rename],
7fa4f112 827 AS_HELP_STRING([--disable-rename], [do not build rename]),
271d98e0 828 [], enable_rename=yes
48d7b13a 829)
49ccbae6 830AM_CONDITIONAL(BUILD_RENAME, test "x$enable_rename" = xyes)
48d7b13a
KZ
831
832
833AC_ARG_ENABLE([reset],
7fa4f112 834 AS_HELP_STRING([--enable-reset], [build reset]),
271d98e0 835 [], enable_reset=no
48d7b13a 836)
49ccbae6 837AM_CONDITIONAL(BUILD_RESET, test "x$enable_reset" = xyes)
48d7b13a
KZ
838
839
840AC_ARG_ENABLE([login-utils],
7fa4f112 841 AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]),
271d98e0 842 [], enable_login_utils=no
48d7b13a 843)
49ccbae6 844AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes)
48d7b13a 845
9cb68977 846AC_ARG_WITH([pam],
7fa4f112 847 [AS_HELP_STRING([--without-pam], [compile login-utils without PAM support])])
9cb68977 848
fd67be31 849AM_CONDITIONAL(HAVE_PAM, false)
49ccbae6 850if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
fd67be31
SK
851 AC_CHECK_HEADERS([security/pam_misc.h],
852 [AM_CONDITIONAL(HAVE_PAM, true)],
49ccbae6 853 [if test "x$with_pam" = xyes; then
fd67be31
SK
854 AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
855 fi
856 ])
9cb68977 857fi
9cb68977
KZ
858
859AC_ARG_WITH([selinux],
7fa4f112 860 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
271d98e0 861 [], with_selinux=no
9cb68977
KZ
862)
863
49ccbae6 864if test "x$with_selinux" = xno; then
fd67be31
SK
865 AM_CONDITIONAL(HAVE_SELINUX, false)
866else
867 UTIL_CHECK_LIB(selinux, getprevcon)
49ccbae6 868 case "$with_selinux:$have_selinux" in
fd67be31
SK
869 yes:no) AC_MSG_ERROR([SELinux selected but libselinux not found]);;
870 esac
9cb68977 871fi
9cb68977 872
49ccbae6 873if test "x$have_selinux" = xyes; then
8569410c
SK
874 SELINUX_LIBS="-lselinux -lsepol"
875 SELINUX_LIBS_STATIC="-lselinux -lsepol"
28d39b6d
KZ
876 old_LDFLAGS="$LDFLAGS"
877 LDFLAGS="$LDFLAGS $SELINUX_LIBS"
878 # This function is missing in old libselinux 1.xx versions
879 AC_CHECK_FUNCS([security_get_initial_context])
880 LDFLAGS="$old_LDFLAGS"
8569410c
SK
881fi
882AC_SUBST([SELINUX_LIBS])
883AC_SUBST([SELINUX_LIBS_STATIC])
9cb68977 884
bbae9cb0 885AC_ARG_WITH([audit],
7fa4f112 886 AS_HELP_STRING([--with-audit], [compile with audit support]),
271d98e0 887 [], with_audit=no
bbae9cb0
KZ
888)
889
49ccbae6 890if test "x$with_audit" = xno; then
fd67be31
SK
891 AM_CONDITIONAL(HAVE_AUDIT, false)
892else
893 UTIL_CHECK_LIB(audit, audit_log_user_message)
49ccbae6 894 case "$with_audit:$have_audit" in
fd67be31
SK
895 yes:no)
896 AC_MSG_ERROR([Audit selected but libaudit not found (or doesn't support audit_log_user_message())])
897 ;;
898 esac
bbae9cb0 899fi
bbae9cb0 900
48d7b13a 901AC_ARG_ENABLE([schedutils],
7fa4f112 902 AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]),
271d98e0 903 [], enable_schedutils=yes
48d7b13a 904)
49ccbae6 905AM_CONDITIONAL(BUILD_SCHEDUTILS, test "x$enable_schedutils" = xyes)
48d7b13a
KZ
906
907
908AC_ARG_ENABLE([wall],
7fa4f112 909 AS_HELP_STRING([--disable-wall], [do not build wall]),
271d98e0 910 [], enable_wall=yes
48d7b13a 911)
49ccbae6 912AM_CONDITIONAL(BUILD_WALL, test "x$enable_wall" = xyes)
48d7b13a
KZ
913
914
915AC_ARG_ENABLE([write],
7fa4f112 916 AS_HELP_STRING([--enable-write], [build write]),
271d98e0 917 [], enable_write=no
48d7b13a 918)
49ccbae6 919AM_CONDITIONAL(BUILD_WRITE, test "x$enable_write" = xyes)
48d7b13a
KZ
920
921
922AC_ARG_ENABLE([chsh-only-listed],
7fa4f112 923 AS_HELP_STRING([--disable-chsh-only-listed], [chsh: allow shells not in /etc/shells]),
271d98e0 924 [], enable_chsh_only_listed=yes
48d7b13a
KZ
925)
926
49ccbae6 927if test "x$enable_chsh_only_listed" = xyes; then
48d7b13a
KZ
928 AC_DEFINE(ONLY_LISTED_SHELLS, 1, [Should chsh allow only shells in /etc/shells?])
929fi
930
931
932AC_ARG_ENABLE([login-chown-vcs],
7fa4f112 933 AS_HELP_STRING([--enable-login-chown-vcs], [let login chown /dev/vcsN]),
271d98e0 934 [], enable_login_chown_vcs=no
48d7b13a
KZ
935)
936
49ccbae6 937if test "x$enable_login_chown_vcs" = xyes; then
48d7b13a
KZ
938 AC_DEFINE(LOGIN_CHOWN_VCS, 1, [Should login chown /dev/vcsN?])
939fi
940
941
942AC_ARG_ENABLE([login-stat-mail],
7fa4f112 943 AS_HELP_STRING([--enable-login-stat-mail], [let login stat() the mailbox]),
271d98e0 944 [], enable_login_stat_mail=no
48d7b13a
KZ
945)
946
49ccbae6 947if test "x$enable_login_stat_mail" = xyes; then
48d7b13a
KZ
948 AC_DEFINE(LOGIN_STAT_MAIL, 1, [Should login stat() the mailbox?])
949fi
950
951
952AC_ARG_ENABLE([pg-bell],
7fa4f112 953 AS_HELP_STRING([--disable-pg-bell], [let pg not ring the bell on invalid keys]),
271d98e0 954 [], enable_pg_bell=yes
48d7b13a
KZ
955)
956
49ccbae6 957if test "x$enable_pg_bell" = xyes; then
48d7b13a
KZ
958 AC_DEFINE(PG_BELL, 1, [Should pg ring the bell on invalid keys?])
959fi
960
961
962AC_ARG_ENABLE([require-password],
7fa4f112 963 AS_HELP_STRING([--disable-require-password], [do not require the user to enter the password in chfn and chsh]),
271d98e0 964 [], enable_require_password=yes
48d7b13a
KZ
965)
966
49ccbae6 967if test "x$enable_require_password" = xyes; then
48d7b13a
KZ
968 AC_DEFINE(REQUIRE_PASSWORD, 1, [Should chfn and chsh require the user to enter the password?])
969fi
970
971
972AC_ARG_ENABLE([use-tty-group],
7fa4f112 973 AS_HELP_STRING([--disable-use-tty-group], [do not install wall and write setgid tty]),
271d98e0 974 [], enable_use_tty_group=yes
48d7b13a 975)
49ccbae6 976AM_CONDITIONAL(USE_TTY_GROUP, test "x$enable_use_tty_group" = xyes)
48d7b13a 977
49ccbae6 978if test "x$enable_use_tty_group" = xyes; then
48d7b13a
KZ
979 AC_DEFINE(USE_TTY_GROUP, 1, [Should wall and write be installed setgid tty?])
980fi
981
f3831bbd
KZ
982AC_ARG_ENABLE([makeinstall-chown],
983 AS_HELP_STRING([--disable-makeinstall-chown], [do not do chown-like operations during "make install"]),
984 [], enable_makeinstall_chown=yes
985)
49ccbae6 986AM_CONDITIONAL(MAKEINSTALL_DO_CHOWN, test "x$enable_makeinstall_chown" = xyes)
f3831bbd 987
4c24a7ae
KZ
988AC_ARG_ENABLE([makeinstall-setuid],
989 AS_HELP_STRING([--disable-makeinstall-setuid], [do not do setuid chmod operations during "make install"]),
990 [], enable_makeinstall_setuid=yes
991)
992AM_CONDITIONAL(MAKEINSTALL_DO_SETUID, test "x$enable_makeinstall_setuid" = xyes)
993
06bcee19 994
1f10890f
SK
995AC_ARG_VAR([SUID_CFLAGS],
996 [CFLAGS used for binaries which are usually with the suid bit])
997AC_ARG_VAR([SUID_LDFLAGS],
998 [LDFLAGS used for binaries which are usually with the suid bit])
06bcee19 999
9cb68977 1000LIBS=""
48d7b13a 1001
48d7b13a
KZ
1002
1003AC_CONFIG_HEADERS(config.h)
1004
8eeb575c 1005AC_CONFIG_FILES([
8eeb575c 1006disk-utils/Makefile
562218e6 1007fdisk/Makefile
607c2a72 1008fsck/Makefile
8eeb575c
KZ
1009getopt/Makefile
1010hwclock/Makefile
562218e6 1011include/Makefile
d00ed891 1012lib/Makefile
8eeb575c 1013login-utils/Makefile
20ad4963
KZ
1014Makefile
1015misc-utils/chkdupexe:misc-utils/chkdupexe.pl
8eeb575c
KZ
1016misc-utils/Makefile
1017mount/Makefile
1018partx/Makefile
1019po/Makefile.in
1020schedutils/Makefile
20ad4963
KZ
1021shlibs/blkid/blkid.pc
1022shlibs/blkid/Makefile
1e018c15
KZ
1023shlibs/blkid/docs/Makefile
1024shlibs/blkid/docs/version.xml
20ad4963 1025shlibs/blkid/src/Makefile
033cf439 1026shlibs/blkid/src/blkid.h
219227c2 1027shlibs/blkid/src/superblocks/Makefile
cc33d693 1028shlibs/blkid/src/topology/Makefile
e4799a35 1029shlibs/blkid/src/partitions/Makefile
e21677fe 1030shlibs/blkid/samples/Makefile
754fed0c
KZ
1031shlibs/uuid/uuid.pc
1032shlibs/uuid/Makefile
1033shlibs/uuid/man/Makefile
1034shlibs/uuid/src/Makefile
20ad4963 1035shlibs/Makefile
8eeb575c 1036sys-utils/Makefile
e83446da 1037tests/commands.sh
20ad4963
KZ
1038tests/helpers/Makefile
1039tests/Makefile
1040text-utils/Makefile
8eeb575c 1041])
48d7b13a 1042
996fb358 1043
48d7b13a 1044AC_OUTPUT