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