1 AC_INIT([xfsprogs], [3.2.0-alpha2])
4 AC_CONFIG_MACRO_DIR([m4])
5 AC_CONFIG_SRCDIR([include/libxfs.h])
6 AC_CONFIG_HEADER(include/platform_defs.h)
7 AC_PREFIX_DEFAULT(/usr)
12 [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
14 AC_SUBST(enable_shared)
16 AC_ARG_ENABLE(gettext,
17 [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
19 AC_SUBST(enable_gettext)
21 AC_ARG_ENABLE(readline,
22 [ --enable-readline=[yes/no] Enable readline command editing [default=no]],
23 test $enable_readline = yes && libreadline="-lreadline",
26 AC_SUBST(enable_readline)
28 AC_ARG_ENABLE(editline,
29 [ --enable-editline=[yes/no] Enable editline command editing [default=no]],
30 test $enable_editline = yes && libeditline="-ledit",
33 AC_SUBST(enable_editline)
35 AC_ARG_ENABLE(termcap,
36 [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
37 test $enable_termcap = yes && libtermcap="-ltermcap",)
40 # AC_HAVE_BLKID_TOPO below wil find the library & check for topo support
42 [ --enable-blkid=[yes/no] Enable block device id library [default=yes]],,
46 [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
48 AC_SUBST(enable_lib64)
51 # If the user specified a libdir ending in lib64 do not append another
52 # 64 to the library names.
54 base_libdir=`basename "$libdir"`
61 # Some important tools should be installed into the root partitions.
63 # Check whether exec_prefix=/usr: and install them to /sbin in that
64 # case. If the user choses a different prefix assume he just wants
65 # a local install for testing and not a system install.
67 case $exec_prefix:$prefix in
68 NONE:NONE | NONE:/usr | /usr:*)
70 root_libdir="/${base_libdir}"
73 root_sbindir="${sbindir}"
74 root_libdir="${libdir}"
78 AC_SUBST([root_sbindir])
79 AC_SUBST([root_libdir])
81 # Find localized files. Don't descend into any "dot directories"
82 # (like .git or .pc from quilt). Strangely, the "-print" argument
83 # to "find" is required, to avoid including such directories in the
86 for lfile in `find ${srcdir} -path './.??*' -prune -o -name '*.c' -type f -print || exit 1`; do
87 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
89 AC_SUBST(LOCALIZED_FILES)
91 AC_PACKAGE_GLOBALS(xfsprogs)
92 AC_PACKAGE_UTILITIES(xfsprogs)
93 AC_MULTILIB($enable_lib64)
96 AC_PACKAGE_NEED_LIO_LISTIO
98 AC_PACKAGE_NEED_UUID_H
99 AC_PACKAGE_NEED_UUIDCOMPARE
101 AC_PACKAGE_NEED_PTHREAD_H
102 AC_PACKAGE_NEED_PTHREADMUTEXINIT
113 AC_HAVE_SYNC_FILE_RANGE
114 AC_HAVE_BLKID_TOPO($enable_blkid)
117 AC_CHECK_SIZEOF([long])
118 AC_CHECK_SIZEOF([char *])
125 AC_CONFIG_FILES([include/builddefs])