]>
Commit | Line | Data |
---|---|---|
341db5f3 | 1 | AC_INIT([xfsprogs], [3.1.11]) |
86b99f0a | 2 | AC_PREREQ(2.50) |
07c561fe AG |
3 | AC_CONFIG_AUX_DIR([.]) |
4 | AC_CONFIG_MACRO_DIR([m4]) | |
f474cd4f | 5 | AC_CONFIG_SRCDIR([include/libxfs.h]) |
9440d84d | 6 | AC_CONFIG_HEADER(include/platform_defs.h) |
521902a9 | 7 | AC_PREFIX_DEFAULT(/usr) |
9440d84d | 8 | |
07c561fe AG |
9 | AC_PROG_LIBTOOL |
10 | ||
534b0bfd | 11 | AC_ARG_ENABLE(shared, |
dfc13ce1 | 12 | [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, |
d5dca43b NS |
13 | enable_shared=yes) |
14 | AC_SUBST(enable_shared) | |
15 | ||
16c44ed2 NS |
16 | AC_ARG_ENABLE(gettext, |
17 | [ --enable-gettext=[yes/no] Enable alternate language support [default=yes]],, | |
18 | enable_gettext=yes) | |
19 | AC_SUBST(enable_gettext) | |
20 | ||
e246ba5f | 21 | AC_ARG_ENABLE(readline, |
16c44ed2 | 22 | [ --enable-readline=[yes/no] Enable readline command editing [default=no]], |
541a1d4f | 23 | test $enable_readline = yes && libreadline="-lreadline", |
e246ba5f | 24 | enable_readline=no) |
e246ba5f NS |
25 | AC_SUBST(libreadline) |
26 | AC_SUBST(enable_readline) | |
27 | ||
d4b9ebda | 28 | AC_ARG_ENABLE(editline, |
16c44ed2 | 29 | [ --enable-editline=[yes/no] Enable editline command editing [default=no]], |
541a1d4f | 30 | test $enable_editline = yes && libeditline="-ledit", |
d4b9ebda | 31 | enable_editline=no) |
d4b9ebda NS |
32 | AC_SUBST(libeditline) |
33 | AC_SUBST(enable_editline) | |
34 | ||
541a1d4f NS |
35 | AC_ARG_ENABLE(termcap, |
36 | [ --enable-termcap=[yes/no] Enable terminal capabilities library [default=no]], | |
37 | test $enable_termcap = yes && libtermcap="-ltermcap",) | |
38 | AC_SUBST(libtermcap) | |
39 | ||
4cd1322d | 40 | # AC_HAVE_BLKID_TOPO below wil find the library & check for topo support |
e4da9941 | 41 | AC_ARG_ENABLE(blkid, |
4cd1322d ES |
42 | [ --enable-blkid=[yes/no] Enable block device id library [default=yes]],, |
43 | enable_blkid=yes) | |
e4da9941 | 44 | |
82805b60 | 45 | AC_ARG_ENABLE(lib64, |
595e27db CH |
46 | [ --enable-lib64=[yes/no] Enable lib64 support [default=yes]],, |
47 | enable_lib64=yes) | |
82805b60 TS |
48 | AC_SUBST(enable_lib64) |
49 | ||
595e27db CH |
50 | # |
51 | # If the user specified a libdir ending in lib64 do not append another | |
52 | # 64 to the library names. | |
53 | # | |
54 | base_libdir=`basename "$libdir"` | |
55 | case $base_libdir in | |
56 | lib64) | |
57 | enable_lib64=no | |
58 | esac | |
59 | ||
60 | # | |
61 | # Some important tools should be installed into the root partitions. | |
62 | # | |
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. | |
66 | # | |
67 | case $exec_prefix:$prefix in | |
68 | NONE:NONE | NONE:/usr | /usr:*) | |
69 | root_sbindir='/sbin' | |
595e27db | 70 | root_libdir="/${base_libdir}" |
2ccb8cf0 CH |
71 | ;; |
72 | *) | |
73 | root_sbindir="${sbindir}" | |
74 | root_libdir="${libdir}" | |
75 | ;; | |
595e27db CH |
76 | esac |
77 | ||
2ccb8cf0 CH |
78 | AC_SUBST([root_sbindir]) |
79 | AC_SUBST([root_libdir]) | |
80 | ||
d9ee1c4c AE |
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 | |
84 | # list. | |
8c053393 | 85 | LOCALIZED_FILES="" |
d9ee1c4c | 86 | for lfile in `find ${srcdir} -path './.??*' -prune -o -name '*.c' -type f -print || exit 1`; do |
8c053393 AM |
87 | LOCALIZED_FILES="$LOCALIZED_FILES \$(TOPDIR)/$lfile" |
88 | done | |
89 | AC_SUBST(LOCALIZED_FILES) | |
90 | ||
16c44ed2 NS |
91 | AC_PACKAGE_GLOBALS(xfsprogs) |
92 | AC_PACKAGE_UTILITIES(xfsprogs) | |
82805b60 | 93 | AC_MULTILIB($enable_lib64) |
93d9f139 | 94 | |
6ec3f6ba NS |
95 | AC_PACKAGE_NEED_AIO_H |
96 | AC_PACKAGE_NEED_LIO_LISTIO | |
97 | ||
0686de0f | 98 | AC_PACKAGE_NEED_UUID_H |
7b9d2be9 | 99 | AC_PACKAGE_NEED_UUIDCOMPARE |
fc49813f | 100 | |
949c0f10 NS |
101 | AC_PACKAGE_NEED_PTHREAD_H |
102 | AC_PACKAGE_NEED_PTHREADMUTEXINIT | |
103 | ||
0bba1a49 NS |
104 | AC_HAVE_FADVISE |
105 | AC_HAVE_MADVISE | |
106 | AC_HAVE_MINCORE | |
107 | AC_HAVE_SENDFILE | |
cfe6e3f0 NS |
108 | AC_HAVE_GETMNTENT |
109 | AC_HAVE_GETMNTINFO | |
c0b5232a | 110 | AC_HAVE_FALLOCATE |
8f0e0912 | 111 | AC_HAVE_FIEMAP |
197d5828 ES |
112 | AC_HAVE_PREADV |
113 | AC_HAVE_SYNC_FILE_RANGE | |
4cd1322d | 114 | AC_HAVE_BLKID_TOPO($enable_blkid) |
0bba1a49 | 115 | |
865f1075 JE |
116 | AC_CHECK_SIZEOF([long]) |
117 | AC_CHECK_SIZEOF([char *]) | |
16c44ed2 NS |
118 | AC_TYPE_PSINT |
119 | AC_TYPE_PSUNSIGNED | |
7413a3b2 | 120 | AC_TYPE_U32 |
cd960ece | 121 | AC_TYPE_UMODE_T |
16c44ed2 | 122 | AC_MANUAL_FORMAT |
fc49813f | 123 | |
f474cd4f JE |
124 | AC_CONFIG_FILES([include/builddefs]) |
125 | AC_OUTPUT |