1 AC_INIT([xfsprogs], [4.8.0-rc1], [linux-xfs@vger.kernel.org])
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 if test $cross_compiling = no; then
16 AC_CHECK_PROGS(BUILD_CC, gcc cc)
20 [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
22 AC_SUBST(enable_shared)
24 AC_ARG_ENABLE(gettext,
25 [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],,
27 AC_SUBST(enable_gettext)
30 [ --enable-blkid=[yes/no] Enable use of block device id library [default=yes]],,
32 AC_SUBST(enable_blkid)
34 AC_ARG_ENABLE(readline,
35 [ --enable-readline=[yes/no] Enable readline command editing [default=no]],
36 test $enable_readline = yes && libreadline="-lreadline",
39 AC_SUBST(enable_readline)
41 AC_ARG_ENABLE(editline,
42 [ --enable-editline=[yes/no] Enable editline command editing [default=no]],
43 test $enable_editline = yes && libeditline="-ledit",
46 AC_SUBST(enable_editline)
48 AC_ARG_ENABLE(termcap,
49 [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]],
50 test $enable_termcap = yes && libtermcap="-ltermcap",)
55 [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],,
57 AC_SUBST(enable_lib64)
60 [ --enable-librt=[yes/no] Enable librt support [default=yes]],,
62 AC_SUBST(enable_librt)
65 # If the user specified a libdir ending in lib64 do not append another
66 # 64 to the library names.
68 base_libdir=`basename "$libdir"`
75 # Some important tools should be installed into the root partitions.
77 # Check whether exec_prefix=/usr: and install them to /sbin in that
78 # case. If the user choses a different prefix assume he just wants
79 # a local install for testing and not a system install.
81 case $exec_prefix:$prefix in
82 NONE:NONE | NONE:/usr | /usr:*)
84 root_libdir="/${base_libdir}"
87 root_sbindir="${sbindir}"
88 root_libdir="${libdir}"
92 AC_SUBST([root_sbindir])
93 AC_SUBST([root_libdir])
95 # Find localized files. Don't descend into any "dot directories"
96 # (like .git or .pc from quilt). Strangely, the "-print" argument
97 # to "find" is required, to avoid including such directories in the
100 for lfile in `find ${srcdir} -path './.??*' -prune -o -name '*.c' -type f -print || exit 1`; do
101 LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile"
103 AC_SUBST(LOCALIZED_FILES)
105 AC_PACKAGE_GLOBALS(xfsprogs)
106 AC_PACKAGE_UTILITIES(xfsprogs)
107 AC_MULTILIB($enable_lib64)
110 AC_PACKAGE_NEED_UUID_H
111 AC_PACKAGE_NEED_UUIDCOMPARE
113 AC_PACKAGE_NEED_PTHREAD_H
114 AC_PACKAGE_NEED_PTHREADMUTEXINIT
125 AC_HAVE_COPY_FILE_RANGE
126 AC_HAVE_SYNC_FILE_RANGE
133 if test "$enable_blkid" = yes; then
137 AC_CHECK_SIZEOF([long])
138 AC_CHECK_SIZEOF([char *])
142 AC_CONFIG_FILES([include/builddefs])