1 AC_INIT(include/libxfs.h)
3 AC_CONFIG_MACRO_DIR([m4])
4 AC_CONFIG_HEADER(include/platform_defs.h)
5 AC_PREFIX_DEFAULT(/usr)
10 [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
12 AC_SUBST(enable_shared)
14 AC_ARG_ENABLE(gettext,
15 [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
17 AC_SUBST(enable_gettext)
19 AC_ARG_ENABLE(readline,
20 [ --enable-readline=[yes/no] Enable readline command editing [default=no]],
21 test $enable_readline = yes && libreadline="-lreadline",
24 AC_SUBST(enable_readline)
26 AC_ARG_ENABLE(editline,
27 [ --enable-editline=[yes/no] Enable editline command editing [default=no]],
28 test $enable_editline = yes && libeditline="-ledit",
31 AC_SUBST(enable_editline)
33 AC_ARG_ENABLE(termcap,
34 [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
35 test $enable_termcap = yes && libtermcap="-ltermcap",)
38 # AC_HAVE_BLKID_TOPO below wil find the library & check for topo support
40 [ --enable-blkid=[yes/no] Enable block device id library [default=yes]],,
44 [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
46 AC_SUBST(enable_lib64)
49 # If the user specified a libdir ending in lib64 do not append another
50 # 64 to the library names.
52 base_libdir=`basename "$libdir"`
59 # Some important tools should be installed into the root partitions.
61 # Check whether exec_prefix=/usr: and install them to /sbin in that
62 # case. If the user choses a different prefix assume he just wants
63 # a local install for testing and not a system install.
65 case $exec_prefix:$prefix in
66 NONE:NONE | NONE:/usr | /usr:*)
68 AC_SUBST([root_sbindir])
70 root_libdir="/${base_libdir}"
71 AC_SUBST([root_libdir])
74 # Find localized files
76 for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do
77 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
79 AC_SUBST(LOCALIZED_FILES)
81 AC_PACKAGE_GLOBALS(xfsprogs)
82 AC_PACKAGE_UTILITIES(xfsprogs)
83 AC_MULTILIB($enable_lib64)
86 AC_PACKAGE_NEED_LIO_LISTIO
88 AC_PACKAGE_NEED_UUID_H
89 AC_PACKAGE_NEED_UUIDCOMPARE
91 AC_PACKAGE_NEED_PTHREAD_H
92 AC_PACKAGE_NEED_PTHREADMUTEXINIT
101 AC_HAVE_BLKID_TOPO($enable_blkid)
106 AC_SIZEOF_POINTERS_AND_LONG
109 AC_OUTPUT(include/builddefs)