]>
Commit | Line | Data |
---|---|---|
d0191583 | 1 | ############################################################################### |
ad6254c5 | 2 | ## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved. |
b6d7a484 | 3 | ## Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved. |
795ca3e5 | 4 | ## |
ad6254c5 AK |
5 | ## This copyrighted material is made available to anyone wishing to use, |
6 | ## modify, copy, or redistribute it subject to the terms and conditions | |
7 | ## of the GNU General Public License v.2. | |
795ca3e5 | 8 | ## |
ad6254c5 AK |
9 | ## You should have received a copy of the GNU General Public License |
10 | ## along with this program; if not, write to the Free Software Foundation, | |
11 | ## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
795ca3e5 AK |
12 | ################################################################################ |
13 | ||
e24fb506 | 14 | AC_PREREQ(2.61) |
80992638 | 15 | ################################################################################ |
8ce0cbda | 16 | dnl -- Process this file with autoconf to produce a configure script. |
7a197a62 AK |
17 | AC_INIT |
18 | AC_CONFIG_SRCDIR([lib/device/dev-cache.h]) | |
d0191583 | 19 | AC_CONFIG_HEADERS([lib/misc/configure.h]) |
72b2cb61 | 20 | |
80992638 | 21 | ################################################################################ |
ad6254c5 | 22 | dnl -- Setup the directory where autoconf has auxilary files |
d3a356b4 | 23 | AC_CONFIG_AUX_DIR(autoconf) |
795ca3e5 | 24 | |
80992638 | 25 | ################################################################################ |
8ce0cbda | 26 | dnl -- Get system type |
7a197a62 | 27 | AC_CANONICAL_TARGET([]) |
b896caa1 AK |
28 | |
29 | case "$host_os" in | |
30 | linux*) | |
7f54ef36 | 31 | CFLAGS="$CFLAGS" |
8ce0cbda | 32 | COPTIMISE_FLAG="-O2" |
80992638 | 33 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" |
bf09a320 AK |
34 | ELDFLAGS="-Wl,--export-dynamic" |
35 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
8106cdd5 AK |
36 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
37 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
80992638 | 38 | LDDEPS="$LDDEPS .export.sym" |
d0191583 | 39 | LIB_SUFFIX=so |
8106cdd5 | 40 | DEVMAPPER=yes |
615534d3 | 41 | LVMETAD=no |
1a9ea74d | 42 | ODIRECT=yes |
d0191583 | 43 | DM_IOCTLS=yes |
80992638 | 44 | SELINUX=yes |
d3c8211f | 45 | CLUSTER=internal |
f6fc418d | 46 | FSADM=yes |
d0191583 | 47 | ;; |
8106cdd5 | 48 | darwin*) |
80992638 | 49 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" |
8ce0cbda | 50 | COPTIMISE_FLAG="-O2" |
80992638 | 51 | CLDFLAGS="$CLDFLAGS" |
bf09a320 | 52 | ELDFLAGS= |
8106cdd5 AK |
53 | CLDWHOLEARCHIVE="-all_load" |
54 | CLDNOWHOLEARCHIVE= | |
d0191583 | 55 | LIB_SUFFIX=dylib |
a653923f | 56 | DEVMAPPER=yes |
1a9ea74d | 57 | ODIRECT=no |
d0191583 | 58 | DM_IOCTLS=no |
80992638 | 59 | SELINUX=no |
d3c8211f | 60 | CLUSTER=none |
d0191583 JM |
61 | FSADM=no |
62 | ;; | |
b896caa1 AK |
63 | esac |
64 | ||
80992638 | 65 | ################################################################################ |
8ce0cbda | 66 | dnl -- Checks for programs. |
162aefe8 | 67 | AC_PROG_SED |
8ce0cbda AK |
68 | AC_PROG_AWK |
69 | AC_PROG_CC | |
d0191583 JM |
70 | |
71 | dnl probably no longer needed in 2008, but... | |
72 | AC_PROG_GCC_TRADITIONAL | |
8ce0cbda AK |
73 | AC_PROG_INSTALL |
74 | AC_PROG_LN_S | |
75 | AC_PROG_MAKE_SET | |
162aefe8 | 76 | AC_PROG_MKDIR_P |
5556819a | 77 | AC_PROG_RANLIB |
8a2fc586 AK |
78 | AC_PATH_PROG(CFLOW_CMD, cflow) |
79 | AC_PATH_PROG(CSCOPE_CMD, cscope) | |
8ce0cbda AK |
80 | |
81 | ################################################################################ | |
d0191583 | 82 | dnl -- Check for header files. |
80992638 | 83 | AC_HEADER_DIRENT |
d911ec67 | 84 | AC_HEADER_MAJOR |
80992638 | 85 | AC_HEADER_STDC |
ad6254c5 AK |
86 | AC_HEADER_SYS_WAIT |
87 | AC_HEADER_TIME | |
88 | ||
d0191583 | 89 | AC_CHECK_HEADERS([locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ |
d911ec67 AK |
90 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ |
91 | sys/wait.h time.h], , | |
d0191583 | 92 | [AC_MSG_ERROR(bailing out)]) |
ad6254c5 AK |
93 | |
94 | case "$host_os" in | |
95 | linux*) | |
96 | AC_CHECK_HEADERS(asm/byteorder.h linux/fs.h malloc.h,,AC_MSG_ERROR(bailing out)) ;; | |
97 | darwin*) | |
98 | AC_CHECK_HEADERS(machine/endian.h sys/disk.h,,AC_MSG_ERROR(bailing out)) ;; | |
99 | esac | |
80992638 | 100 | |
d0191583 JM |
101 | AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ |
102 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
103 | sys/types.h unistd.h], , [AC_MSG_ERROR(bailing out)]) | |
104 | AC_CHECK_HEADERS(termios.h sys/statvfs.h) | |
105 | ||
80992638 | 106 | ################################################################################ |
d0191583 | 107 | dnl -- Check for typedefs, structures, and compiler characteristics. |
80992638 AK |
108 | AC_C_CONST |
109 | AC_C_INLINE | |
d0191583 | 110 | AC_CHECK_MEMBERS([struct stat.st_rdev]) |
80992638 AK |
111 | AC_TYPE_OFF_T |
112 | AC_TYPE_PID_T | |
d0191583 | 113 | AC_TYPE_SIGNAL |
80992638 | 114 | AC_TYPE_SIZE_T |
ad6254c5 | 115 | AC_TYPE_MODE_T |
d911ec67 AK |
116 | AC_TYPE_INT8_T |
117 | AC_TYPE_INT16_T | |
118 | AC_TYPE_INT32_T | |
119 | AC_TYPE_INT64_T | |
120 | AC_TYPE_SSIZE_T | |
121 | AC_TYPE_UID_T | |
122 | AC_TYPE_UINT8_T | |
123 | AC_TYPE_UINT16_T | |
124 | AC_TYPE_UINT32_T | |
125 | AC_TYPE_UINT64_T | |
7a197a62 | 126 | AC_CHECK_MEMBERS([struct stat.st_rdev]) |
ad6254c5 AK |
127 | AC_STRUCT_TM |
128 | ||
129 | ################################################################################ | |
130 | dnl -- Check for functions | |
7c9fd3ea | 131 | AC_CHECK_FUNCS([ftruncate gethostname getpagesize \ |
d911ec67 AK |
132 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ |
133 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
134 | strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)]) | |
a0f9708e | 135 | AC_CHECK_FUNCS(siginterrupt) |
ad6254c5 AK |
136 | AC_FUNC_ALLOCA |
137 | AC_FUNC_CLOSEDIR_VOID | |
d911ec67 | 138 | AC_FUNC_CHOWN |
ad6254c5 AK |
139 | AC_FUNC_FORK |
140 | AC_FUNC_LSTAT | |
141 | AC_FUNC_MALLOC | |
142 | AC_FUNC_MEMCMP | |
143 | AC_FUNC_MMAP | |
d911ec67 | 144 | AC_FUNC_REALLOC |
ad6254c5 AK |
145 | AC_FUNC_STAT |
146 | AC_FUNC_STRTOD | |
d0191583 | 147 | AC_FUNC_VPRINTF |
80992638 | 148 | |
9c961554 MB |
149 | ################################################################################ |
150 | dnl -- Enables statically-linked tools | |
151 | AC_MSG_CHECKING(whether to use static linking) | |
152 | AC_ARG_ENABLE(static_link, | |
71082be4 ZK |
153 | AC_HELP_STRING([--enable-static_link], |
154 | [use this to link the tools to their libraries | |
155 | statically (default is dynamic linking]), | |
156 | STATIC_LINK=$enableval, STATIC_LINK=no) | |
9c961554 MB |
157 | AC_MSG_RESULT($STATIC_LINK) |
158 | ||
80992638 | 159 | ################################################################################ |
8ce0cbda | 160 | dnl -- Prefix is /usr by default, the exec_prefix default is setup later |
795ca3e5 AK |
161 | AC_PREFIX_DEFAULT(/usr) |
162 | ||
80992638 | 163 | ################################################################################ |
8ce0cbda | 164 | dnl -- Setup the ownership of the files |
ad6254c5 | 165 | AC_MSG_CHECKING(file owner) |
795ca3e5 | 166 | AC_ARG_WITH(user, |
71082be4 ZK |
167 | AC_HELP_STRING([--with-user=USER], |
168 | [set the owner of installed files [[USER=]]]), | |
169 | OWNER=$withval) | |
ad6254c5 | 170 | AC_MSG_RESULT($OWNER) |
a38df97f AK |
171 | |
172 | if test x$OWNER != x; then | |
23b059e7 | 173 | INSTALL="$INSTALL -o $OWNER" |
a38df97f | 174 | fi |
795ca3e5 | 175 | |
80992638 | 176 | ################################################################################ |
8ce0cbda | 177 | dnl -- Setup the group ownership of the files |
ad6254c5 | 178 | AC_MSG_CHECKING(group owner) |
795ca3e5 | 179 | AC_ARG_WITH(group, |
71082be4 ZK |
180 | AC_HELP_STRING([--with-group=GROUP], |
181 | [set the group owner of installed files [[GROUP=]]]), | |
182 | GROUP=$withval) | |
ad6254c5 | 183 | AC_MSG_RESULT($GROUP) |
a38df97f AK |
184 | |
185 | if test x$GROUP != x; then | |
23b059e7 | 186 | INSTALL="$INSTALL -g $GROUP" |
a38df97f | 187 | fi |
795ca3e5 | 188 | |
0782ad50 AK |
189 | ################################################################################ |
190 | dnl -- Setup device node ownership | |
191 | AC_MSG_CHECKING(device node uid) | |
192 | ||
193 | AC_ARG_WITH(device-uid, | |
71082be4 ZK |
194 | AC_HELP_STRING([--with-device-uid=UID], |
195 | [set the owner used for new device nodes [[UID=0]]]), | |
196 | DM_DEVICE_UID=$withval, DM_DEVICE_UID=0) | |
0782ad50 AK |
197 | AC_MSG_RESULT($DM_DEVICE_UID) |
198 | ||
199 | ################################################################################ | |
200 | dnl -- Setup device group ownership | |
201 | AC_MSG_CHECKING(device node gid) | |
202 | ||
203 | AC_ARG_WITH(device-gid, | |
71082be4 ZK |
204 | AC_HELP_STRING([--with-device-gid=GID], |
205 | [set the group used for new device nodes [[GID=0]]]), | |
206 | DM_DEVICE_GID=$withval, DM_DEVICE_GID=0) | |
0782ad50 AK |
207 | AC_MSG_RESULT($DM_DEVICE_GID) |
208 | ||
f6fc418d AK |
209 | ################################################################################ |
210 | dnl -- Setup device mode | |
211 | AC_MSG_CHECKING(device node mode) | |
212 | ||
213 | AC_ARG_WITH(device-mode, | |
71082be4 ZK |
214 | AC_HELP_STRING([--with-device-mode=MODE], |
215 | [set the mode used for new device nodes [[MODE=0600]]]), | |
216 | DM_DEVICE_MODE=$withval, DM_DEVICE_MODE=0600) | |
f6fc418d AK |
217 | AC_MSG_RESULT($DM_DEVICE_MODE) |
218 | ||
d0df875d ZK |
219 | AC_MSG_CHECKING(when to create device nodes) |
220 | AC_ARG_WITH(device-nodes-on, | |
221 | AC_HELP_STRING([--with-device-nodes-on=ON], | |
222 | [create nodes on resume or create [[ON=resume]]]), | |
223 | ADD_NODE=$withval, ADD_NODE=resume) | |
224 | case "$ADD_NODE" in | |
225 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
226 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
227 | *) AC_MSG_ERROR([--with-device-nodes-on parameter invalid]);; | |
228 | esac | |
229 | AC_MSG_RESULT(on $ADD_NODE) | |
230 | AC_DEFINE_UNQUOTED([DEFAULT_DM_ADD_NODE], $add_on, [Define default node creation behavior with dmsetup create]) | |
231 | ||
53f3ebce PR |
232 | AC_MSG_CHECKING(default name mangling) |
233 | AC_ARG_WITH(default-name-mangling, | |
234 | AC_HELP_STRING([--with-default-name-mangling=MANGLING], | |
235 | [default name mangling: auto/none/hex [[MANGLING=auto]]]), | |
236 | MANGLING=$withval, MANGLING=auto) | |
237 | case "$MANGLING" in | |
238 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
239 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
240 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
241 | *) AC_MSG_ERROR([--with-default-name-mangling parameter invalid]);; | |
242 | esac | |
243 | AC_MSG_RESULT($MANGLING) | |
244 | AC_DEFINE_UNQUOTED([DEFAULT_DM_NAME_MANGLING], $mangling, [Define default name mangling behaviour]) | |
245 | ||
80992638 | 246 | ################################################################################ |
7d1552c9 | 247 | dnl -- LVM1 tool fallback option |
ad6254c5 | 248 | AC_MSG_CHECKING(whether to enable lvm1 fallback) |
71082be4 ZK |
249 | AC_ARG_ENABLE(lvm1_fallback, |
250 | AC_HELP_STRING([--enable-lvm1_fallback], | |
251 | [use this to fall back and use LVM1 binaries if | |
252 | device-mapper is missing from the kernel]), | |
253 | LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no) | |
ad6254c5 | 254 | AC_MSG_RESULT($LVM1_FALLBACK) |
7d1552c9 AK |
255 | |
256 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 | 257 | AC_DEFINE([LVM1_FALLBACK], 1, [Define to 1 if 'lvm' should fall back to using LVM1 binaries if device-mapper is missing from the kernel]) |
7d1552c9 AK |
258 | fi |
259 | ||
80992638 | 260 | ################################################################################ |
5a52dca9 | 261 | dnl -- format1 inclusion type |
ad6254c5 | 262 | AC_MSG_CHECKING(whether to include support for lvm1 metadata) |
5a52dca9 | 263 | AC_ARG_WITH(lvm1, |
71082be4 ZK |
264 | AC_HELP_STRING([--with-lvm1=TYPE], |
265 | [LVM1 metadata support: internal/shared/none | |
266 | [[TYPE=internal]]]), | |
267 | LVM1=$withval, LVM1=internal) | |
ad6254c5 | 268 | AC_MSG_RESULT($LVM1) |
5a52dca9 AK |
269 | |
270 | if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]]; | |
271 | then AC_MSG_ERROR( | |
272 | --with-lvm1 parameter invalid | |
273 | ) | |
5a52dca9 AK |
274 | fi; |
275 | ||
b896caa1 | 276 | if test x$LVM1 = xinternal; then |
72b2cb61 | 277 | AC_DEFINE([LVM1_INTERNAL], 1, [Define to 1 to include built-in support for LVM1 metadata.]) |
b896caa1 AK |
278 | fi |
279 | ||
80992638 | 280 | ################################################################################ |
d8ac0fbc | 281 | dnl -- format_pool inclusion type |
ad6254c5 | 282 | AC_MSG_CHECKING(whether to include support for GFS pool metadata) |
d8ac0fbc | 283 | AC_ARG_WITH(pool, |
71082be4 ZK |
284 | AC_HELP_STRING([--with-pool=TYPE], |
285 | [GFS pool read-only support: internal/shared/none | |
286 | [[TYPE=internal]]]), | |
287 | POOL=$withval, POOL=internal) | |
ad6254c5 | 288 | AC_MSG_RESULT($POOL) |
d8ac0fbc AK |
289 | |
290 | if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]]; | |
291 | then AC_MSG_ERROR( | |
292 | --with-pool parameter invalid | |
293 | ) | |
d8ac0fbc AK |
294 | fi; |
295 | ||
296 | if test x$POOL = xinternal; then | |
72b2cb61 | 297 | AC_DEFINE([POOL_INTERNAL], 1, [Define to 1 to include built-in support for GFS pool metadata.]) |
d8ac0fbc AK |
298 | fi |
299 | ||
80992638 | 300 | ################################################################################ |
d3c8211f | 301 | dnl -- cluster_locking inclusion type |
ad6254c5 | 302 | AC_MSG_CHECKING(whether to include support for cluster locking) |
d3c8211f | 303 | AC_ARG_WITH(cluster, |
71082be4 ZK |
304 | AC_HELP_STRING([--with-cluster=TYPE], |
305 | [cluster LVM locking support: internal/shared/none | |
306 | [[TYPE=internal]]]), | |
307 | CLUSTER=$withval) | |
ad6254c5 | 308 | AC_MSG_RESULT($CLUSTER) |
d3c8211f AK |
309 | |
310 | if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]]; | |
311 | then AC_MSG_ERROR( | |
312 | --with-cluster parameter invalid | |
313 | ) | |
d3c8211f AK |
314 | fi; |
315 | ||
316 | if test x$CLUSTER = xinternal; then | |
72b2cb61 | 317 | AC_DEFINE([CLUSTER_LOCKING_INTERNAL], 1, [Define to 1 to include built-in support for clustered LVM locking.]) |
d3c8211f | 318 | fi |
d8ac0fbc | 319 | |
80992638 | 320 | ################################################################################ |
4922197a | 321 | dnl -- snapshots inclusion type |
ad6254c5 | 322 | AC_MSG_CHECKING(whether to include snapshots) |
4922197a | 323 | AC_ARG_WITH(snapshots, |
71082be4 ZK |
324 | AC_HELP_STRING([--with-snapshots=TYPE], |
325 | [snapshot support: internal/shared/none | |
326 | [[TYPE=internal]]]), | |
327 | SNAPSHOTS=$withval, SNAPSHOTS=internal) | |
ad6254c5 | 328 | AC_MSG_RESULT($SNAPSHOTS) |
4922197a AK |
329 | |
330 | if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]]; | |
331 | then AC_MSG_ERROR( | |
332 | --with-snapshots parameter invalid | |
333 | ) | |
4922197a AK |
334 | fi; |
335 | ||
336 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 | 337 | AC_DEFINE([SNAPSHOT_INTERNAL], 1, [Define to 1 to include built-in support for snapshots.]) |
4922197a AK |
338 | fi |
339 | ||
80992638 | 340 | ################################################################################ |
4922197a | 341 | dnl -- mirrors inclusion type |
ad6254c5 | 342 | AC_MSG_CHECKING(whether to include mirrors) |
4922197a | 343 | AC_ARG_WITH(mirrors, |
71082be4 ZK |
344 | AC_HELP_STRING([--with-mirrors=TYPE], |
345 | [mirror support: internal/shared/none | |
346 | [[TYPE=internal]]]), | |
347 | MIRRORS=$withval, MIRRORS=internal) | |
ad6254c5 | 348 | AC_MSG_RESULT($MIRRORS) |
4922197a AK |
349 | |
350 | if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]]; | |
351 | then AC_MSG_ERROR( | |
352 | --with-mirrors parameter invalid | |
353 | ) | |
4922197a AK |
354 | fi; |
355 | ||
356 | if test x$MIRRORS = xinternal; then | |
72b2cb61 | 357 | AC_DEFINE([MIRRORED_INTERNAL], 1, [Define to 1 to include built-in support for mirrors.]) |
4922197a AK |
358 | fi |
359 | ||
cac52ca4 JEB |
360 | ################################################################################ |
361 | dnl -- raid inclusion type | |
362 | AC_MSG_CHECKING(whether to include raid) | |
363 | AC_ARG_WITH(raid, | |
364 | AC_HELP_STRING([--with-raid=TYPE], | |
365 | [mirror support: internal/shared/none | |
366 | [[TYPE=internal]]]), | |
367 | RAID=$withval, RAID=internal) | |
368 | AC_MSG_RESULT($RAID) | |
369 | ||
370 | if [[ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]]; | |
371 | then AC_MSG_ERROR( | |
372 | --with-raid parameter invalid | |
373 | ) | |
374 | fi; | |
375 | ||
376 | if test x$RAID = xinternal; then | |
377 | AC_DEFINE([RAID_INTERNAL], 1, [Define to 1 to include built-in support for raid.]) | |
378 | fi | |
379 | ||
8fea97b7 ZK |
380 | ################################################################################ |
381 | dnl -- asynchronous volume replicator inclusion type | |
382 | AC_MSG_CHECKING(whether to include replicators) | |
71082be4 ZK |
383 | AC_ARG_WITH(replicators, |
384 | AC_HELP_STRING([--with-replicators=TYPE], | |
385 | [replicator support: internal/shared/none | |
386 | [[TYPE=none]]]), | |
387 | REPLICATORS=$withval, REPLICATORS=none) | |
8fea97b7 ZK |
388 | AC_MSG_RESULT($REPLICATORS) |
389 | ||
390 | case "$REPLICATORS" in | |
391 | none|shared) ;; | |
392 | internal) AC_DEFINE([REPLICATOR_INTERNAL], 1, | |
393 | [Define to 1 to include built-in support for replicators.]) ;; | |
394 | *) AC_MSG_ERROR([--with-replicators parameter invalid ($REPLICATORS)]) ;; | |
395 | esac | |
396 | ||
3ba4a195 ZK |
397 | ################################################################################ |
398 | dnl -- thin provisioning | |
399 | AC_MSG_CHECKING(whether to include thin provisioning) | |
400 | AC_ARG_WITH(thin, | |
401 | AC_HELP_STRING([--with-thin=TYPE], | |
402 | [thin provisioning support: internal/shared/none | |
403 | [[TYPE=none]]]), | |
404 | THIN=$withval, THIN=none) | |
405 | AC_MSG_RESULT($THIN) | |
406 | ||
407 | case "$THIN" in | |
408 | none|shared) ;; | |
409 | internal) AC_DEFINE([THIN_INTERNAL], 1, | |
410 | [Define to 1 to include built-in support for thin provisioning.]) ;; | |
411 | *) AC_MSG_ERROR([--with-thin parameter invalid ($THIN)]) ;; | |
412 | esac | |
413 | ||
f61cacad ZK |
414 | case "$THIN" in |
415 | internal|shared) | |
416 | AC_ARG_WITH(thin-check, | |
417 | AC_HELP_STRING([--with-thin-check=PATH], | |
418 | [thin_check tool: [[autodetect]]]), | |
419 | THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="autodetect") | |
420 | # Empty means a config way to ignore thin checking | |
421 | if test "$THIN_CHECK_CMD" = "autodetect"; then | |
422 | AC_PATH_PROG(THIN_CHECK_CMD, thin_check) | |
423 | test -z "$THIN_CHECK_CMD" && AC_MSG_ERROR(thin_check not found in path $PATH) | |
424 | fi | |
f61cacad ZK |
425 | ;; |
426 | esac | |
427 | ||
909887be ZK |
428 | AC_DEFINE_UNQUOTED([THIN_CHECK_CMD], ["$THIN_CHECK_CMD"], |
429 | [The path to 'thin_check', if available.]) | |
430 | ||
f61cacad | 431 | |
80992638 | 432 | ################################################################################ |
1b523347 | 433 | dnl -- Disable readline |
ad6254c5 | 434 | AC_MSG_CHECKING(whether to enable readline) |
2c189a57 | 435 | AC_ARG_ENABLE([readline], |
71082be4 ZK |
436 | AC_HELP_STRING([--disable-readline], [disable readline support]), |
437 | READLINE=$enableval, READLINE=maybe) | |
ad6254c5 | 438 | AC_MSG_RESULT($READLINE) |
795ca3e5 | 439 | |
8b1a3214 AK |
440 | ################################################################################ |
441 | dnl -- Disable realtime clock support | |
442 | AC_MSG_CHECKING(whether to enable realtime support) | |
71082be4 ZK |
443 | AC_ARG_ENABLE(realtime, |
444 | AC_HELP_STRING([--enable-realtime], [enable realtime clock support]), | |
445 | REALTIME=$enableval) | |
8b1a3214 AK |
446 | AC_MSG_RESULT($REALTIME) |
447 | ||
e40d44be ZK |
448 | ################################################################################ |
449 | dnl -- disable OCF resource agents | |
450 | AC_MSG_CHECKING(whether to enable OCF resource agents) | |
451 | AC_ARG_ENABLE(ocf, | |
452 | AC_HELP_STRING([--enable-ocf], | |
453 | [enable Open Cluster Framework (OCF) compliant resource agents]), | |
454 | OCF=$enableval, OCF=no) | |
455 | AC_MSG_RESULT($OCF) | |
349da06c ZK |
456 | AC_ARG_WITH(ocfdir, |
457 | AC_HELP_STRING([--with-ocfdir=DIR], | |
458 | [install OCF files in DIR [[PREFIX/lib/ocf/resource.d/lvm2]]]), | |
459 | OCFDIR=$withval, OCFDIR='${prefix}/lib/ocf/resource.d/lvm2') | |
e40d44be | 460 | |
90c80887 AK |
461 | ################################################################################ |
462 | dnl -- Init pkg-config with dummy invokation: | |
463 | dnl -- this is required because PKG_CHECK_MODULES macro is expanded | |
464 | dnl -- to initialize the pkg-config environment only at the first invokation, | |
465 | dnl -- that would be conditional in this configure.in. | |
466 | pkg_config_init() { | |
467 | PKG_CHECK_MODULES(PKGCONFIGINIT, pkgconfiginit, [], | |
468 | [AC_MSG_RESULT([pkg-config initialized])]) | |
469 | PKGCONFIG_INIT=1 | |
470 | } | |
471 | ||
80992638 | 472 | ################################################################################ |
8ce0cbda | 473 | dnl -- Build cluster LVM daemon |
ad6254c5 | 474 | AC_MSG_CHECKING(whether to build cluster LVM daemon) |
a266258f | 475 | AC_ARG_WITH(clvmd, |
71082be4 | 476 | [ --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 477 | The following cluster manager combinations are valid: |
a946372e AK |
478 | * cman (RHEL5 or equivalent) |
479 | * cman,corosync,openais (or selection of them) | |
649c4507 | 480 | * singlenode (localhost only) |
a946372e AK |
481 | * all (autodetect) |
482 | * none (disable build) | |
71082be4 ZK |
483 | [[TYPE=none]]], |
484 | CLVMD=$withval, CLVMD=none) | |
a266258f | 485 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 486 | CLVMD=all |
b1098701 | 487 | fi |
ad6254c5 | 488 | AC_MSG_RESULT($CLVMD) |
80992638 | 489 | |
8ce0cbda | 490 | dnl -- If clvmd enabled without cluster locking, automagically include it |
a266258f | 491 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
d3c8211f AK |
492 | CLUSTER=internal |
493 | fi | |
d3c8211f | 494 | |
90c80887 | 495 | dnl -- init pkgconfig if required |
34b6075d | 496 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
90c80887 AK |
497 | pkg_config_init |
498 | fi | |
499 | ||
34b6075d FDN |
500 | dnl -- Express clvmd init script Required-Start / Required-Stop |
501 | CLVMD_CMANAGERS="" | |
502 | dnl -- On RHEL4/RHEL5, qdiskd is started from a separate init script. | |
7cf60770 | 503 | dnl -- Enable if we are build for cman. |
34b6075d | 504 | CLVMD_NEEDS_QDISKD=no |
90c80887 | 505 | |
a946372e AK |
506 | dnl -- define build types |
507 | if [[ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]]; then | |
7cf60770 | 508 | AC_MSG_ERROR([Since version 2.02.87 GULM locking is no longer supported.]); |
34b6075d FDN |
509 | fi |
510 | if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then | |
511 | BUILDCMAN=yes | |
512 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
513 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
514 | fi |
515 | if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then | |
516 | BUILDCOROSYNC=yes | |
34b6075d | 517 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
a946372e AK |
518 | fi |
519 | if [[ `expr x"$CLVMD" : '.*openais.*'` != 0 ]]; then | |
520 | BUILDOPENAIS=yes | |
34b6075d | 521 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
a946372e | 522 | fi |
34b6075d FDN |
523 | if test x$CLVMD_NEEDS_QDISKD != xno; then |
524 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
a946372e AK |
525 | fi |
526 | ||
a946372e AK |
527 | dnl -- define a soft bailout if we are autodetecting |
528 | soft_bailout() { | |
529 | NOTFOUND=1 | |
530 | } | |
531 | ||
532 | hard_bailout() { | |
533 | AC_MSG_ERROR([bailing out]) | |
534 | } | |
535 | ||
536 | dnl -- if clvmd=all then set soft_bailout (we don't want to error) | |
537 | dnl -- and set all builds to yes. We need to do this here | |
7cf60770 | 538 | dnl -- to skip the openais|corosync sanity check above. |
a946372e AK |
539 | if test x$CLVMD = xall; then |
540 | bailout=soft_bailout | |
a946372e AK |
541 | BUILDCMAN=yes |
542 | BUILDCOROSYNC=yes | |
543 | BUILDOPENAIS=yes | |
544 | else | |
545 | bailout=hard_bailout | |
546 | fi | |
547 | ||
548 | dnl -- helper macro to check libs without adding them to LIBS | |
549 | check_lib_no_libs() { | |
550 | lib_no_libs_arg1=$1 | |
551 | shift | |
552 | lib_no_libs_arg2=$1 | |
553 | shift | |
554 | lib_no_libs_args=$@ | |
555 | AC_CHECK_LIB([$lib_no_libs_arg1], | |
556 | [$lib_no_libs_arg2],, | |
557 | [$bailout], | |
558 | [$lib_no_libs_args]) | |
559 | LIBS=$ac_check_lib_save_LIBS | |
560 | } | |
561 | ||
a946372e AK |
562 | dnl -- Look for cman libraries if required. |
563 | if test x$BUILDCMAN = xyes; then | |
564 | PKG_CHECK_MODULES(CMAN, libcman, [HAVE_CMAN=yes], | |
565 | [NOTFOUND=0 | |
566 | AC_CHECK_HEADERS(libcman.h,,$bailout) | |
567 | check_lib_no_libs cman cman_init | |
568 | if test $NOTFOUND = 0; then | |
569 | AC_MSG_RESULT([no pkg for libcman, using -lcman]) | |
570 | CMAN_LIBS="-lcman" | |
571 | HAVE_CMAN=yes | |
572 | fi]) | |
573 | CHECKCONFDB=yes | |
574 | CHECKDLM=yes | |
575 | fi | |
576 | ||
577 | dnl -- Look for corosync that's required also for openais build | |
578 | dnl -- only enough recent version of corosync ship pkg-config files. | |
579 | dnl -- We can safely rely on that to detect the correct bits. | |
580 | if test x$BUILDCOROSYNC = xyes || \ | |
581 | test x$BUILDOPENAIS = xyes; then | |
582 | PKG_CHECK_MODULES(COROSYNC, corosync, [HAVE_COROSYNC=yes], $bailout) | |
583 | CHECKCONFDB=yes | |
b6d7a484 | 584 | CHECKCMAP=yes |
a946372e AK |
585 | fi |
586 | ||
edf47283 | 587 | dnl -- Look for corosync libraries if required. |
a946372e AK |
588 | if test x$BUILDCOROSYNC = xyes; then |
589 | PKG_CHECK_MODULES(QUORUM, libquorum, [HAVE_QUORUM=yes], $bailout) | |
590 | CHECKCPG=yes | |
591 | CHECKDLM=yes | |
592 | fi | |
593 | ||
594 | dnl -- Look for openais libraries if required. | |
595 | if test x$BUILDOPENAIS = xyes; then | |
596 | PKG_CHECK_MODULES(SALCK, libSaLck, [HAVE_SALCK=yes], $bailout) | |
597 | CHECKCPG=yes | |
598 | fi | |
599 | ||
600 | dnl -- Below are checks for libraries common to more than one build. | |
601 | ||
602 | dnl -- Check confdb library. | |
b6d7a484 | 603 | dnl -- mandatory for corosync < 2.0 build. |
a946372e AK |
604 | dnl -- optional for openais/cman build. |
605 | ||
606 | if test x$CHECKCONFDB = xyes; then | |
607 | PKG_CHECK_MODULES(CONFDB, libconfdb, | |
608 | [HAVE_CONFDB=yes], | |
609 | [HAVE_CONFDB=no]) | |
610 | ||
611 | AC_CHECK_HEADERS(corosync/confdb.h, | |
612 | [HAVE_CONFDB_H=yes], | |
613 | [HAVE_CONFDB_H=no]) | |
614 | ||
615 | if test x$HAVE_CONFDB != xyes && \ | |
616 | test x$HAVE_CONFDB_H = xyes; then | |
617 | check_lib_no_libs confdb confdb_initialize | |
618 | AC_MSG_RESULT([no pkg for confdb, using -lconfdb]) | |
619 | CONFDB_LIBS="-lconfdb" | |
620 | HAVE_CONFDB=yes | |
621 | fi | |
b6d7a484 AK |
622 | fi |
623 | ||
624 | dnl -- Check cmap library | |
625 | dnl -- mandatory for corosync >= 2.0 build. | |
626 | ||
627 | if test x$CHECKCMAP = xyes; then | |
628 | PKG_CHECK_MODULES(CMAP, libcmap, | |
629 | [HAVE_CMAP=yes], | |
630 | [HAVE_CMAP=no]) | |
a946372e | 631 | |
b6d7a484 AK |
632 | AC_CHECK_HEADERS(corosync/cmap.h, |
633 | [HAVE_CMAP_H=yes], | |
634 | [HAVE_CMAP_H=no]) | |
635 | ||
636 | if test x$HAVE_CMAP != xyes && \ | |
637 | test x$HAVE_CMAP_H = xyes; then | |
638 | check_lib_no_libs cmap cmap_initialize | |
639 | AC_MSG_RESULT([no pkg for cmap, using -lcmap]) | |
640 | CMAP_LIBS="-lcmap" | |
641 | HAVE_CMAP=yes | |
642 | fi | |
643 | fi | |
644 | ||
645 | if test x$BUILDCOROSYNC = xyes; then | |
646 | if test x$HAVE_CMAP != xyes && \ | |
647 | test x$HAVE_CONFDB != xyes && \ | |
a946372e | 648 | test x$CLVMD != xall; then |
b6d7a484 | 649 | AC_MSG_ERROR([bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required]) |
a946372e AK |
650 | fi |
651 | fi | |
652 | ||
653 | dnl -- Check cpg library. | |
654 | if test x$CHECKCPG = xyes; then | |
655 | PKG_CHECK_MODULES(CPG, libcpg, [HAVE_CPG=yes], $bailout) | |
656 | fi | |
657 | ||
658 | dnl -- Check dlm library. | |
659 | if test x$CHECKDLM = xyes; then | |
660 | PKG_CHECK_MODULES(DLM, libdlm, [HAVE_DLM=yes], | |
661 | [NOTFOUND=0 | |
662 | AC_CHECK_HEADERS(libdlm.h,,$bailout) | |
663 | check_lib_no_libs dlm dlm_lock -lpthread | |
664 | if test $NOTFOUND = 0; then | |
665 | AC_MSG_RESULT([no pkg for libdlm, using -ldlm]) | |
666 | DLM_LIBS="-ldlm -lpthread" | |
667 | HAVE_DLM=yes | |
668 | fi]) | |
669 | fi | |
670 | ||
671 | dnl -- If we are autodetecting, we need to re-create | |
34b6075d FDN |
672 | dnl -- the depedencies checks and set a proper CLVMD, |
673 | dnl -- together with init script Required-Start/Stop entries. | |
a946372e | 674 | if test x$CLVMD = xall; then |
8c222979 | 675 | CLVMD=none |
34b6075d FDN |
676 | CLVMD_CMANAGERS="" |
677 | CLVMD_NEEDS_QDISKD=no | |
a946372e AK |
678 | if test x$HAVE_CMAN = xyes && \ |
679 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
680 | AC_MSG_RESULT([Enabling clvmd cman cluster manager]) |
681 | CLVMD="$CLVMD,cman" | |
34b6075d FDN |
682 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" |
683 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
684 | fi |
685 | if test x$HAVE_COROSYNC = xyes && \ | |
686 | test x$HAVE_QUORUM = xyes && \ | |
687 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
688 | test x$HAVE_DLM = xyes; then |
689 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
8c222979 FDN |
690 | AC_MSG_RESULT([Enabling clvmd corosync cluster manager]) |
691 | CLVMD="$CLVMD,corosync" | |
34b6075d | 692 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
b6d7a484 | 693 | fi |
a946372e AK |
694 | fi |
695 | if test x$HAVE_COROSYNC = xyes && \ | |
696 | test x$HAVE_CPG = xyes && \ | |
697 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
698 | AC_MSG_RESULT([Enabling clvmd openais cluster manager]) |
699 | CLVMD="$CLVMD,openais" | |
34b6075d FDN |
700 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
701 | fi | |
702 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
703 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8c222979 FDN |
704 | fi |
705 | if test x$CLVMD = xnone; then | |
706 | AC_MSG_RESULT([Disabling clvmd build. No cluster manager detected.]) | |
a946372e | 707 | fi |
edf47283 AK |
708 | fi |
709 | ||
94424fab FDN |
710 | dnl -- Fixup CLVMD_CMANAGERS with new corosync |
711 | dnl -- clvmd built with corosync >= 2.0 needs dlm (either init or systemd service) | |
712 | dnl -- to be started. | |
713 | if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then | |
714 | if test x$HAVE_CMAP = xyes; then | |
715 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
716 | fi | |
717 | fi | |
718 | ||
8c4e8a18 FDN |
719 | ################################################################################ |
720 | dnl -- clvmd pidfile | |
721 | if test "x$CLVMD" != xnone; then | |
722 | AC_ARG_WITH(clvmd-pidfile, | |
723 | AC_HELP_STRING([--with-clvmd-pidfile=PATH], | |
724 | [clvmd pidfile [[/var/run/clvmd.pid]]]), | |
725 | CLVMD_PIDFILE=$withval, | |
726 | CLVMD_PIDFILE="/var/run/clvmd.pid") | |
727 | AC_DEFINE_UNQUOTED(CLVMD_PIDFILE, ["$CLVMD_PIDFILE"], | |
728 | [Path to clvmd pidfile.]) | |
729 | fi | |
730 | ||
3c14bcca | 731 | ################################################################################ |
66fd4529 AK |
732 | dnl -- Build cluster mirror log daemon |
733 | AC_MSG_CHECKING(whether to build cluster mirror log daemon) | |
71082be4 ZK |
734 | AC_ARG_ENABLE(cmirrord, |
735 | AC_HELP_STRING([--enable-cmirrord], | |
736 | [enable the cluster mirror log daemon]), | |
737 | CMIRRORD=$enableval, CMIRRORD=no) | |
66fd4529 | 738 | AC_MSG_RESULT($CMIRRORD) |
3c14bcca | 739 | |
66fd4529 AK |
740 | BUILD_CMIRRORD=$CMIRRORD |
741 | ||
742 | ################################################################################ | |
743 | dnl -- cmirrord pidfile | |
66fd4529 AK |
744 | if test "x$BUILD_CMIRRORD" = xyes; then |
745 | AC_ARG_WITH(cmirrord-pidfile, | |
71082be4 ZK |
746 | AC_HELP_STRING([--with-cmirrord-pidfile=PATH], |
747 | [cmirrord pidfile [[/var/run/cmirrord.pid]]]), | |
748 | CMIRRORD_PIDFILE=$withval, | |
749 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid") | |
750 | AC_DEFINE_UNQUOTED(CMIRRORD_PIDFILE, ["$CMIRRORD_PIDFILE"], | |
751 | [Path to cmirrord pidfile.]) | |
66fd4529 AK |
752 | fi |
753 | ||
754 | ################################################################################ | |
3c14bcca | 755 | dnl -- Look for corosync libraries if required. |
66fd4529 | 756 | if [[ "x$BUILD_CMIRRORD" = xyes ]]; then |
90c80887 AK |
757 | dnl -- init pkgconfig if required |
758 | if test x$PKGCONFIG_INIT != x1; then | |
759 | pkg_config_init | |
760 | fi | |
62e38da1 JEB |
761 | |
762 | AC_DEFINE([CMIRROR_HAS_CHECKPOINT], 1, [Define to 1 to include libSaCkpt.]) | |
763 | PKG_CHECK_MODULES(SACKPT, libSaCkpt, [HAVE_SACKPT=yes], | |
764 | [AC_MSG_RESULT([no libSaCkpt, compiling without it]) | |
765 | AC_DEFINE([CMIRROR_HAS_CHECKPOINT], 0, [Define to 0 to exclude libSaCkpt.])]) | |
766 | ||
90c80887 AK |
767 | if test x$HAVE_CPG != xyes; then |
768 | PKG_CHECK_MODULES(CPG, libcpg) | |
769 | fi | |
3c14bcca JEB |
770 | fi |
771 | ||
80992638 | 772 | ################################################################################ |
8ce0cbda | 773 | dnl -- Enable debugging |
ad6254c5 | 774 | AC_MSG_CHECKING(whether to enable debugging) |
71082be4 ZK |
775 | AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debugging]), |
776 | DEBUG=$enableval, DEBUG=no) | |
ad6254c5 | 777 | AC_MSG_RESULT($DEBUG) |
8ef2b021 | 778 | |
8ce0cbda AK |
779 | dnl -- Normally turn off optimisation for debug builds |
780 | if test x$DEBUG = xyes; then | |
781 | COPTIMISE_FLAG= | |
8a2fc586 AK |
782 | else |
783 | CSCOPE_CMD= | |
8ce0cbda AK |
784 | fi |
785 | ||
786 | ################################################################################ | |
787 | dnl -- Override optimisation | |
ad6254c5 | 788 | AC_MSG_CHECKING(for C optimisation flag) |
8ce0cbda | 789 | AC_ARG_WITH(optimisation, |
71082be4 ZK |
790 | AC_HELP_STRING([--with-optimisation=OPT], |
791 | [C optimisation flag [[OPT=-O2]]]), | |
792 | COPTIMISE_FLAG=$withval) | |
ad6254c5 | 793 | AC_MSG_RESULT($COPTIMISE_FLAG) |
8ce0cbda | 794 | |
fddafd51 ZK |
795 | ################################################################################ |
796 | dnl -- Enable profiling | |
5556819a | 797 | AC_MSG_CHECKING(whether to gather gcov profiling data) |
fddafd51 | 798 | AC_ARG_ENABLE(profiling, |
71082be4 ZK |
799 | AC_HELP_STRING(--enable-profiling, [gather gcov profiling data]), |
800 | PROFILING=$enableval, PROFILING=no) | |
5556819a AK |
801 | AC_MSG_RESULT($PROFILING) |
802 | ||
803 | if test "x$PROFILING" = xyes; then | |
804 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
fd4728e1 ZK |
805 | AC_PATH_PROG(LCOV, lcov) |
806 | AC_PATH_PROG(GENHTML, genhtml) | |
807 | if test -z "$LCOV" -o -z "$GENHTML"; then | |
b145d876 ZK |
808 | AC_MSG_ERROR([lcov and genhtml are required for profiling]) |
809 | fi | |
fd4728e1 ZK |
810 | AC_PATH_PROG(GENPNG, genpng) |
811 | if test -n "$GENPNG"; then | |
812 | AC_MSG_CHECKING([whether $GENPNG has all required modules]) | |
813 | if $GENPNG --help > /dev/null 2>&1 ; then | |
814 | AC_MSG_RESULT(ok) | |
815 | GENHTML="$GENHTML --frames" | |
816 | else | |
817 | AC_MSG_RESULT(not supported) | |
818 | AC_MSG_WARN([GD.pm perl module is not installed]) | |
819 | GENPNG= | |
820 | fi | |
821 | fi | |
5556819a | 822 | fi |
fddafd51 | 823 | |
1033d120 JT |
824 | ################################################################################ |
825 | dnl -- Enable testing | |
826 | AC_MSG_CHECKING(whether to enable unit testing) | |
827 | AC_ARG_ENABLE(testing, | |
828 | AC_HELP_STRING(--enable-testing, [enable testing targets in the makefile]), | |
829 | TESTING=$enableval, TESTING=no) | |
830 | AC_MSG_RESULT($TESTING) | |
831 | ||
832 | if test "$TESTING" = yes; then | |
5da88e5b | 833 | PKG_CHECK_MODULES(CUNIT, cunit >= 2.0) |
1033d120 JT |
834 | fi |
835 | ||
52e1564f JT |
836 | ################################################################################ |
837 | dnl -- Enable valgrind awareness of memory pools | |
838 | AC_MSG_CHECKING(whether to enable valgrind awareness of pools) | |
839 | AC_ARG_ENABLE(valgrind_pool, | |
840 | AC_HELP_STRING(--enable-valgrind-pool, [enable valgrind awareness of pools]), | |
841 | VALGRIND_POOL=$enableval, VALGRIND_POOL=no) | |
842 | AC_MSG_RESULT($VALGRIND_POOL) | |
843 | ||
844 | if test "$VALGRIND_POOL" = yes; then | |
845 | AC_CHECK_HEADERS([valgrind/memcheck.h], , [AC_MSG_ERROR(bailing out)]) | |
846 | AC_DEFINE([VALGRIND_POOL], 1, [Enable a valgrind aware build of pool]) | |
847 | fi | |
848 | ||
80992638 | 849 | ################################################################################ |
8ce0cbda | 850 | dnl -- Disable devmapper |
ad6254c5 | 851 | AC_MSG_CHECKING(whether to use device-mapper) |
71082be4 ZK |
852 | AC_ARG_ENABLE(devmapper, |
853 | AC_HELP_STRING([--disable-devmapper], | |
854 | [disable LVM2 device-mapper interaction]), | |
855 | DEVMAPPER=$enableval) | |
ad6254c5 | 856 | AC_MSG_RESULT($DEVMAPPER) |
199e490e | 857 | |
b896caa1 | 858 | if test x$DEVMAPPER = xyes; then |
f6fc418d | 859 | AC_DEFINE([DEVMAPPER_SUPPORT], 1, [Define to 1 to enable LVM2 device-mapper interaction.]) |
b896caa1 AK |
860 | fi |
861 | ||
615534d3 PR |
862 | ################################################################################ |
863 | dnl -- Build lvmetad | |
864 | AC_MSG_CHECKING(whether to build LVMetaD) | |
865 | AC_ARG_ENABLE(lvmetad, | |
d38de32b AK |
866 | AC_HELP_STRING([--enable-lvmetad], |
867 | [enable the LVM Metadata Daemon]), | |
615534d3 PR |
868 | LVMETAD=$enableval) |
869 | AC_MSG_RESULT($LVMETAD) | |
870 | ||
871 | BUILD_LVMETAD=$LVMETAD | |
872 | ||
832a1e73 AK |
873 | if test x$BUILD_LVMETAD = xyes; then |
874 | AC_DEFINE([LVMETAD_SUPPORT], 1, [Define to 1 to include code that uses lvmetad.]) | |
875 | fi | |
876 | ||
5d518f1f AK |
877 | ################################################################################ |
878 | dnl -- Enable udev synchronisation | |
879 | AC_MSG_CHECKING(whether to enable synchronisation with udev processing) | |
71082be4 ZK |
880 | AC_ARG_ENABLE(udev_sync, |
881 | AC_HELP_STRING([--enable-udev_sync], | |
882 | [enable synchronisation with udev processing]), | |
883 | UDEV_SYNC=$enableval, UDEV_SYNC=no) | |
5d518f1f AK |
884 | AC_MSG_RESULT($UDEV_SYNC) |
885 | ||
886 | if test x$UDEV_SYNC = xyes; then | |
86ba564a AK |
887 | dnl -- init pkgconfig if required |
888 | if test x$PKGCONFIG_INIT != x1; then | |
889 | pkg_config_init | |
890 | fi | |
71b29ddc | 891 | PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) |
5d518f1f AK |
892 | AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) |
893 | fi | |
894 | ||
895 | dnl -- Enable udev rules | |
896 | AC_MSG_CHECKING(whether to enable installation of udev rules required for synchronisation) | |
71082be4 ZK |
897 | AC_ARG_ENABLE(udev_rules, |
898 | AC_HELP_STRING([--enable-udev_rules], | |
899 | [install rule files needed for udev synchronisation]), | |
900 | UDEV_RULES=$enableval, UDEV_RULES=$UDEV_SYNC) | |
5d518f1f AK |
901 | AC_MSG_RESULT($UDEV_RULES) |
902 | ||
b559a1e6 PR |
903 | if test x$UDEV_RULES = xyes; then |
904 | AC_MSG_CHECKING(whether udev supports builtin blkid) | |
905 | udev_version=$(udevadm info --version 2>/dev/null) | |
906 | if test -n "$udev_version" && test "$udev_version" -ge 176; then | |
907 | UDEV_HAS_BUILTIN_BLKID=yes | |
908 | else | |
909 | UDEV_HAS_BUILTIN_BLKID=no | |
910 | fi | |
911 | AC_MSG_RESULT($UDEV_HAS_BUILTIN_BLKID) | |
912 | fi | |
913 | ||
f6fc418d AK |
914 | ################################################################################ |
915 | dnl -- Compatibility mode | |
71082be4 ZK |
916 | AC_ARG_ENABLE(compat, |
917 | AC_HELP_STRING([--enable-compat], | |
918 | [enable support for old device-mapper versions]), | |
919 | DM_COMPAT=$enableval, DM_COMPAT=no) | |
f6fc418d | 920 | |
2061c0ec AK |
921 | if test x$DM_COMPAT = xyes; then |
922 | AC_MSG_ERROR( | |
923 | [--enable-compat is not currently supported. | |
924 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
925 | ioctl protocol is supported.] | |
926 | ) | |
927 | fi | |
928 | ||
95eaa683 AK |
929 | ################################################################################ |
930 | dnl -- Compatible units suffix mode | |
931 | AC_ARG_ENABLE(units-compat, | |
71082be4 ZK |
932 | AC_HELP_STRING([--enable-units-compat], |
933 | [enable output compatibility with old versions that | |
934 | that do not use KiB-style unit suffixes]), | |
935 | UNITS_COMPAT=$enableval, UNITS_COMPAT=no) | |
95eaa683 AK |
936 | |
937 | if test x$UNITS_COMPAT = xyes; then | |
938 | AC_DEFINE([DEFAULT_SI_UNIT_CONSISTENCY], 0, [Define to 0 to reinstate the pre-2.02.54 handling of unit suffixes.]) | |
939 | fi | |
940 | ||
f6fc418d AK |
941 | ################################################################################ |
942 | dnl -- Disable ioctl | |
71082be4 ZK |
943 | AC_ARG_ENABLE(ioctl, |
944 | AC_HELP_STRING([--disable-driver], | |
945 | [disable calls to device-mapper in the kernel]), | |
946 | DM_IOCTLS=$enableval) | |
f6fc418d | 947 | |
80992638 | 948 | ################################################################################ |
8ce0cbda | 949 | dnl -- Disable O_DIRECT |
ad6254c5 | 950 | AC_MSG_CHECKING(whether to enable O_DIRECT) |
71082be4 ZK |
951 | AC_ARG_ENABLE(o_direct, |
952 | AC_HELP_STRING([--disable-o_direct], [disable O_DIRECT]), | |
953 | ODIRECT=$enableval) | |
ad6254c5 | 954 | AC_MSG_RESULT($ODIRECT) |
2dc95e1c AK |
955 | |
956 | if test x$ODIRECT = xyes; then | |
72b2cb61 | 957 | AC_DEFINE([O_DIRECT_SUPPORT], 1, [Define to 1 to enable O_DIRECT support.]) |
2dc95e1c AK |
958 | fi |
959 | ||
572fefeb AK |
960 | ################################################################################ |
961 | dnl -- Enable liblvm2app.so | |
962 | AC_MSG_CHECKING(whether to build liblvm2app.so application library) | |
963 | AC_ARG_ENABLE(applib, | |
71082be4 ZK |
964 | AC_HELP_STRING([--enable-applib], [build application library]), |
965 | APPLIB=$enableval, APPLIB=no) | |
572fefeb AK |
966 | AC_MSG_RESULT($APPLIB) |
967 | AC_SUBST([LVM2APP_LIB]) | |
968 | test x$APPLIB = xyes \ | |
969 | && LVM2APP_LIB=-llvm2app \ | |
970 | || LVM2APP_LIB= | |
971 | ||
80992638 | 972 | ################################################################################ |
8ce0cbda | 973 | dnl -- Enable cmdlib |
ad6254c5 | 974 | AC_MSG_CHECKING(whether to compile liblvm2cmd.so) |
71082be4 ZK |
975 | AC_ARG_ENABLE(cmdlib, |
976 | AC_HELP_STRING([--enable-cmdlib], [build shared command library]), | |
977 | CMDLIB=$enableval, CMDLIB=no) | |
ad6254c5 | 978 | AC_MSG_RESULT($CMDLIB) |
aa4d1e31 | 979 | AC_SUBST([LVM2CMD_LIB]) |
2a9a80c9 | 980 | test x$CMDLIB = xyes \ |
aa4d1e31 JM |
981 | && LVM2CMD_LIB=-llvm2cmd \ |
982 | || LVM2CMD_LIB= | |
8106cdd5 | 983 | |
f6fc418d AK |
984 | ################################################################################ |
985 | dnl -- Enable pkg-config | |
71082be4 ZK |
986 | AC_ARG_ENABLE(pkgconfig, |
987 | AC_HELP_STRING([--enable-pkgconfig], [install pkgconfig support]), | |
988 | PKGCONFIG=$enableval, PKGCONFIG=no) | |
2a9a80c9 | 989 | |
23b059e7 ZK |
990 | ################################################################################ |
991 | dnl -- Enable installation of writable files by user | |
71082be4 ZK |
992 | AC_ARG_ENABLE(write_install, |
993 | AC_HELP_STRING([--enable-write_install], | |
994 | [install user writable files]), | |
995 | WRITE_INSTALL=$enableval, WRITE_INSTALL=no) | |
23b059e7 | 996 | |
80992638 | 997 | ################################################################################ |
8ce0cbda | 998 | dnl -- Enable fsadm |
1995c9ff | 999 | AC_MSG_CHECKING(whether to install fsadm) |
71082be4 ZK |
1000 | AC_ARG_ENABLE(fsadm, AC_HELP_STRING([--disable-fsadm], [disable fsadm]), |
1001 | FSADM=$enableval) | |
ad6254c5 | 1002 | AC_MSG_RESULT($FSADM) |
809fae91 | 1003 | |
06f62ad1 AK |
1004 | ################################################################################ |
1005 | dnl -- enable dmeventd handling | |
1006 | AC_MSG_CHECKING(whether to use dmeventd) | |
71082be4 ZK |
1007 | AC_ARG_ENABLE(dmeventd, AC_HELP_STRING([--enable-dmeventd], |
1008 | [enable the device-mapper event daemon]), | |
1009 | DMEVENTD=$enableval) | |
06f62ad1 AK |
1010 | AC_MSG_RESULT($DMEVENTD) |
1011 | ||
f6fc418d AK |
1012 | BUILD_DMEVENTD=$DMEVENTD |
1013 | ||
06f62ad1 | 1014 | dnl -- dmeventd currently requires internal mirror support |
2a9a80c9 PR |
1015 | if test x$DMEVENTD = xyes; then |
1016 | if test x$MIRRORS != xinternal; then | |
1017 | AC_MSG_ERROR( | |
1018 | --enable-dmeventd currently requires --with-mirrors=internal | |
1019 | ) | |
1020 | fi | |
1021 | if test x$CMDLIB = xno; then | |
1022 | AC_MSG_ERROR( | |
1023 | --enable-dmeventd requires --enable-cmdlib to be used as well | |
1024 | ) | |
1025 | fi | |
06f62ad1 AK |
1026 | fi |
1027 | ||
15d91f5a | 1028 | if test x$DMEVENTD = xyes; then |
72b2cb61 | 1029 | AC_DEFINE([DMEVENTD], 1, [Define to 1 to enable the device-mapper event daemon.]) |
15d91f5a | 1030 | fi |
f6fc418d AK |
1031 | |
1032 | ################################################################################ | |
1033 | dnl -- getline included in recent libc | |
1034 | ||
1035 | AC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1, | |
1036 | [Define to 1 if getline is available.])) | |
1037 | ||
1038 | ################################################################################ | |
1039 | dnl -- canonicalize_file_name included in recent libc | |
1040 | ||
1041 | AC_CHECK_LIB(c, canonicalize_file_name, | |
1042 | AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1, | |
1043 | [Define to 1 if canonicalize_file_name is available.])) | |
1044 | ||
80992638 | 1045 | ################################################################################ |
d0191583 | 1046 | dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbin |
795ca3e5 AK |
1047 | if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]]; |
1048 | then exec_prefix=""; | |
1049 | fi; | |
1050 | ||
80992638 | 1051 | ################################################################################ |
8ce0cbda | 1052 | dnl -- Check for dlopen |
19a2c6e0 | 1053 | AC_CHECK_LIB(dl, dlopen, [ |
72b2cb61 | 1054 | AC_DEFINE([HAVE_LIBDL], 1, [Define to 1 if dynamic libraries are available.]) |
19a2c6e0 ZK |
1055 | DL_LIBS="-ldl" |
1056 | HAVE_LIBDL=yes ], [ | |
1057 | DL_LIBS= | |
1058 | HAVE_LIBDL=no ]) | |
26e7f2e0 | 1059 | |
80992638 | 1060 | ################################################################################ |
8ce0cbda | 1061 | dnl -- Check for shared/static conflicts |
80992638 AK |
1062 | if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ |
1063 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 1064 | -o "x$RAID" = xshared \ |
4922197a | 1065 | \) -a "x$STATIC_LINK" = xyes ]]; |
d68a82ec | 1066 | then AC_MSG_ERROR( |
036f273a | 1067 | Features cannot be 'shared' when building statically |
d68a82ec | 1068 | ) |
036f273a AK |
1069 | fi |
1070 | ||
f30875db ZK |
1071 | ################################################################################ |
1072 | if [[ "$DMEVENTD" = yes -o "$CLVMD" != none ]] ; then | |
1073 | AC_CHECK_LIB([pthread], [pthread_mutex_lock], | |
1074 | [PTHREAD_LIBS="-lpthread"], hard_bailout) | |
1075 | fi | |
1076 | ||
d0191583 JM |
1077 | ################################################################################ |
1078 | dnl -- Disable selinux | |
1079 | AC_MSG_CHECKING(whether to enable selinux support) | |
71082be4 ZK |
1080 | AC_ARG_ENABLE(selinux, |
1081 | AC_HELP_STRING([--disable-selinux], [disable selinux support]), | |
1082 | SELINUX=$enableval) | |
d0191583 JM |
1083 | AC_MSG_RESULT($SELINUX) |
1084 | ||
80992638 | 1085 | ################################################################################ |
8a2fc586 | 1086 | dnl -- Check for selinux |
80992638 | 1087 | if test x$SELINUX = xyes; then |
f8f6ec92 ZK |
1088 | AC_CHECK_LIB([sepol], [sepol_check_context], [ |
1089 | AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) | |
1090 | SELINUX_LIBS="-lsepol"]) | |
8a2fc586 | 1091 | |
f8f6ec92 ZK |
1092 | AC_CHECK_LIB([selinux], [is_selinux_enabled], [ |
1093 | AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) | |
7dfce0e4 | 1094 | AC_CHECK_HEADERS([selinux/label.h]) |
72b2cb61 | 1095 | AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) |
e1b8a236 | 1096 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
f7f0854e | 1097 | SELINUX_PC="libselinux" |
f8f6ec92 | 1098 | HAVE_SELINUX=yes ], [ |
ad6254c5 | 1099 | AC_MSG_WARN(Disabling selinux) |
f8f6ec92 | 1100 | SELINUX_LIBS= |
f7f0854e | 1101 | SELINUX_PC= |
f8f6ec92 | 1102 | HAVE_SELINUX=no ]) |
036f273a | 1103 | fi |
d68a82ec | 1104 | |
8b1a3214 AK |
1105 | ################################################################################ |
1106 | dnl -- Check for realtime clock support | |
1107 | if test x$REALTIME = xyes; then | |
8b1a3214 | 1108 | AC_CHECK_LIB(rt, clock_gettime, HAVE_REALTIME=yes, HAVE_REALTIME=no) |
8b1a3214 AK |
1109 | |
1110 | if test x$HAVE_REALTIME = xyes; then | |
1111 | AC_DEFINE([HAVE_REALTIME], 1, [Define to 1 to include support for realtime clock.]) | |
1112 | LIBS="-lrt $LIBS" | |
1113 | else | |
1114 | AC_MSG_WARN(Disabling realtime clock) | |
1115 | fi | |
1116 | fi | |
1117 | ||
80992638 | 1118 | ################################################################################ |
8ce0cbda | 1119 | dnl -- Check for getopt |
d0191583 | 1120 | AC_CHECK_HEADERS(getopt.h, AC_DEFINE([HAVE_GETOPTLONG], 1, [Define to 1 if getopt_long is available.])) |
b896caa1 | 1121 | |
80992638 | 1122 | ################################################################################ |
8ce0cbda | 1123 | dnl -- Check for readline (Shamelessly copied from parted 1.4.17) |
ea7cfb00 | 1124 | if test x$READLINE != xno; then |
539f4a77 ZK |
1125 | lvm_saved_libs=$LIBS |
1126 | AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib], | |
1127 | READLINE_LIBS=$ac_cv_search_tgetent, [ | |
1128 | if test "$READLINE" = yes; then | |
1129 | AC_MSG_ERROR( | |
1130 | [termcap could not be found which is required for the | |
1131 | --enable-readline option (which is enabled by default). Either disable readline | |
1132 | support with --disable-readline or download and install termcap from: | |
1133 | ftp.gnu.org/gnu/termcap | |
1134 | Note: if you are using precompiled packages you will also need the development | |
1135 | package as well (which may be called termcap-devel or something similar). | |
1136 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
1137 | not found either - but you could try installing that as well.]) | |
1138 | fi]) | |
1139 | dnl -- Old systems may need extra termcap dependency explicitly in LIBS | |
1140 | AC_CHECK_LIB([readline], [readline], [ | |
1141 | AC_DEFINE([READLINE_SUPPORT], 1, | |
1142 | [Define to 1 to include the LVM readline shell.]) | |
1143 | dnl -- Try only with -lreadline and check for different symbol | |
1144 | LIBS=$lvm_saved_libs | |
1145 | AC_CHECK_LIB([readline], [rl_line_buffer], | |
1146 | [ READLINE_LIBS="-lreadline" ], [ | |
1147 | AC_MSG_RESULT([linking -lreadline with $READLINE_LIBS needed]) | |
1148 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
1149 | ]) ], [ | |
1150 | READLINE_LIBS= | |
1151 | if test "$READLINE" = yes; then | |
1152 | AC_MSG_ERROR( | |
1153 | [GNU Readline could not be found which is required for the | |
795ca3e5 AK |
1154 | --enable-readline option (which is enabled by default). Either disable readline |
1155 | support with --disable-readline or download and install readline from: | |
1156 | ftp.gnu.org/gnu/readline | |
1157 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 ZK |
1158 | package as well (which may be called readline-devel or something similar).]) |
1159 | fi ]) | |
1160 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
1161 | AC_CHECK_FUNCS([rl_completion_matches]) | |
1162 | LIBS=$lvm_saved_libs | |
795ca3e5 AK |
1163 | fi |
1164 | ||
80992638 | 1165 | ################################################################################ |
8ce0cbda | 1166 | dnl -- Internationalisation stuff |
ad6254c5 | 1167 | AC_MSG_CHECKING(whether to enable internationalisation) |
71082be4 ZK |
1168 | AC_ARG_ENABLE(nls, |
1169 | AC_HELP_STRING([--enable-nls], [enable Native Language Support]), | |
1170 | INTL=$enableval, INTL=no) | |
ad6254c5 | 1171 | AC_MSG_RESULT($INTL) |
69792976 AK |
1172 | |
1173 | if test x$INTL = xyes; then | |
f6fc418d | 1174 | # FIXME - Move this - can be device-mapper too |
69792976 AK |
1175 | INTL_PACKAGE="lvm2" |
1176 | AC_PATH_PROG(MSGFMT, msgfmt) | |
1177 | if [[ "x$MSGFMT" == x ]]; | |
1178 | then AC_MSG_ERROR( | |
1179 | msgfmt not found in path $PATH | |
1180 | ) | |
69792976 AK |
1181 | fi; |
1182 | ||
1183 | AC_ARG_WITH(localedir, | |
71082be4 ZK |
1184 | AC_HELP_STRING([--with-localedir=DIR], |
1185 | [translation files in DIR | |
1186 | [[PREFIX/share/locale]]]), | |
1187 | LOCALEDIR=$withval, LOCALEDIR='${prefix}/share/locale') | |
69792976 AK |
1188 | fi |
1189 | ||
80992638 | 1190 | ################################################################################ |
4a7f3eb2 | 1191 | AC_ARG_WITH(confdir, |
71082be4 ZK |
1192 | AC_HELP_STRING([--with-confdir=DIR], |
1193 | [configuration files in DIR [[/etc]]]), | |
1194 | CONFDIR=$withval, CONFDIR="/etc") | |
0a62c911 AK |
1195 | |
1196 | AC_ARG_WITH(staticdir, | |
71082be4 ZK |
1197 | AC_HELP_STRING([--with-staticdir=DIR], |
1198 | [static binaries in DIR [[EPREFIX/sbin]]]), | |
1199 | STATICDIR=$withval, STATICDIR='${exec_prefix}/sbin') | |
0a62c911 | 1200 | |
68f2de6d | 1201 | AC_ARG_WITH(usrlibdir, |
71082be4 ZK |
1202 | AC_HELP_STRING([--with-usrlibdir=DIR], |
1203 | [usrlib in DIR [[PREFIX/lib]]]), | |
1204 | usrlibdir=$withval, usrlibdir='${prefix}/lib') | |
68f2de6d AK |
1205 | |
1206 | AC_ARG_WITH(usrsbindir, | |
71082be4 ZK |
1207 | AC_HELP_STRING([--with-usrsbindir=DIR], |
1208 | [usrsbin executables in DIR [[PREFIX/sbin]]]), | |
1209 | usrsbindir=$withval, usrsbindir='${prefix}/sbin') | |
68f2de6d | 1210 | |
5d518f1f AK |
1211 | ################################################################################ |
1212 | AC_ARG_WITH(udev_prefix, | |
71082be4 ZK |
1213 | AC_HELP_STRING([--with-udev-prefix=UPREFIX], |
1214 | [install udev rule files in UPREFIX [[EPREFIX]]]), | |
1215 | udev_prefix=$withval, udev_prefix='${exec_prefix}') | |
5d518f1f | 1216 | |
78ce7acc | 1217 | AC_ARG_WITH(udevdir, |
71082be4 ZK |
1218 | AC_HELP_STRING([--with-udevdir=DIR], |
1219 | [udev rules in DIR [[UPREFIX/lib/udev/rules.d]]]), | |
1220 | udevdir=$withval, udevdir='${udev_prefix}/lib/udev/rules.d') | |
5d518f1f | 1221 | |
e587cb6a PR |
1222 | ################################################################################ |
1223 | dnl -- Get the systemd system unit dir value from pkg_config automatically if value not given explicitly. | |
1224 | dnl -- This follows the recommendation for systemd integration best practices mentioned in daemon(7) manpage. | |
1225 | AC_ARG_WITH(systemdsystemunitdir, | |
1226 | AC_HELP_STRING([--with-systemdsystemunitdir=DIR], | |
1227 | [systemd service files in DIR]), | |
1228 | systemdsystemunitdir=$withval, | |
1229 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)) | |
1230 | ||
1231 | if test -n "$pkg_systemdsystemunitdir"; then | |
1232 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
1233 | fi | |
1234 | ||
1235 | if test -z "$systemdsystemunitdir"; then | |
1236 | systemdsystemunitdir='/lib/systemd/system'; | |
1237 | fi | |
ad6254c5 | 1238 | ################################################################################ |
4417a8bd PR |
1239 | AC_ARG_WITH(tmpfilesdir, |
1240 | AC_HELP_STRING([--with-tmpfilesdir=DIR], | |
1241 | [install configuration files for management of volatile files and directories in DIR [[SYSCONFDIR/tmpfiles.d]]]), | |
1242 | tmpfilesdir=$withval, tmpfilesdir='${sysconfdir}/tmpfiles.d') | |
1243 | ################################################################################ | |
ad6254c5 AK |
1244 | dnl -- Ensure additional headers required |
1245 | if test x$READLINE = xyes; then | |
1246 | AC_CHECK_HEADERS(readline/readline.h readline/history.h,,AC_MSG_ERROR(bailing out)) | |
1247 | fi | |
1248 | ||
5c7fc7c4 | 1249 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
1250 | AC_CHECK_HEADERS(mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h,,AC_MSG_ERROR(bailing out)) |
1251 | AC_CHECK_FUNCS(dup2 getmntent memmove select socket,,AC_MSG_ERROR(bailing out)) | |
1252 | AC_FUNC_GETMNTENT | |
ad6254c5 AK |
1253 | AC_FUNC_SELECT_ARGTYPES |
1254 | fi | |
1255 | ||
ad6254c5 AK |
1256 | if test x$CLUSTER != xnone; then |
1257 | AC_CHECK_HEADERS(sys/socket.h sys/un.h,,AC_MSG_ERROR(bailing out)) | |
1258 | AC_CHECK_FUNCS(socket,,AC_MSG_ERROR(bailing out)) | |
1259 | fi | |
1260 | ||
d911ec67 AK |
1261 | if test x$DMEVENTD = xyes; then |
1262 | AC_CHECK_HEADERS(arpa/inet.h,,AC_MSG_ERROR(bailing out)) | |
1263 | fi | |
1264 | ||
ad6254c5 AK |
1265 | if test x$HAVE_LIBDL = xyes; then |
1266 | AC_CHECK_HEADERS(dlfcn.h,,AC_MSG_ERROR(bailing out)) | |
1267 | fi | |
1268 | ||
1269 | if test x$INTL = xyes; then | |
1270 | AC_CHECK_HEADERS(libintl.h,,AC_MSG_ERROR(bailing out)) | |
1271 | fi | |
1272 | ||
5d518f1f AK |
1273 | if test x$UDEV_SYNC = xyes; then |
1274 | AC_CHECK_HEADERS(sys/ipc.h sys/sem.h,,AC_MSG_ERROR(bailing out)) | |
1275 | fi | |
1276 | ||
a653923f AK |
1277 | ################################################################################ |
1278 | AC_PATH_PROG(MODPROBE_CMD, modprobe) | |
1279 | ||
1280 | if test x$MODPROBE_CMD != x; then | |
72b2cb61 | 1281 | AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) |
a653923f AK |
1282 | fi |
1283 | ||
a9b601e2 ZK |
1284 | |
1285 | lvm_exec_prefix=$exec_prefix | |
1286 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
1287 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 ZK |
1288 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
1289 | AC_DEFINE_UNQUOTED(LVM_PATH, ["$LVM_PATH"], [Path to lvm binary.]) | |
b5c2529b ZK |
1290 | |
1291 | if test "$CLVMD" != none; then | |
1292 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 1293 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b | 1294 | test "$prefix" != NONE && clvmd_prefix=$prefix |
d2c11605 | 1295 | AC_DEFINE_UNQUOTED(CLVMD_PATH, ["$CLVMD_PATH"], [Path to clvmd binary.]) |
b5c2529b ZK |
1296 | fi |
1297 | ||
80992638 | 1298 | ################################################################################ |
f6fc418d | 1299 | dnl -- dmeventd pidfile and executable path |
f6fc418d AK |
1300 | if test "$BUILD_DMEVENTD" = yes; then |
1301 | AC_ARG_WITH(dmeventd-pidfile, | |
71082be4 ZK |
1302 | AC_HELP_STRING([--with-dmeventd-pidfile=PATH], |
1303 | [dmeventd pidfile [[/var/run/dmeventd.pid]]]), | |
1304 | DMEVENTD_PIDFILE=$withval, | |
1305 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid") | |
1306 | AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE, ["$DMEVENTD_PIDFILE"], | |
1307 | [Path to dmeventd pidfile.]) | |
f6fc418d AK |
1308 | fi |
1309 | ||
f6fc418d | 1310 | if test "$BUILD_DMEVENTD" = yes; then |
f6fc418d | 1311 | AC_ARG_WITH(dmeventd-path, |
71082be4 ZK |
1312 | AC_HELP_STRING([--with-dmeventd-path=PATH], |
1313 | [dmeventd path [[EPREFIX/sbin/dmeventd]]]), | |
1314 | DMEVENTD_PATH=$withval, | |
1315 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd") | |
1316 | AC_DEFINE_UNQUOTED(DMEVENTD_PATH, ["$DMEVENTD_PATH"], | |
1317 | [Path to dmeventd binary.]) | |
f6fc418d AK |
1318 | fi |
1319 | ||
8bae0a1e AK |
1320 | AH_TEMPLATE(DEFAULT_RUN_DIR, [Name of default run directory.]) |
1321 | AC_ARG_WITH(default-run-dir, | |
1322 | [ --with-default-run-dir=DIR Default run directory [[/var/run/lvm]] ], | |
1323 | [ DEFAULT_RUN_DIR="$withval" ], | |
1324 | [ DEFAULT_RUN_DIR="/var/run/lvm" ]) | |
1325 | AC_DEFINE_UNQUOTED(DEFAULT_RUN_DIR,["$DEFAULT_RUN_DIR"] ) | |
1326 | ||
3399ae32 AK |
1327 | ################################################################################ |
1328 | dnl -- various defaults | |
3399ae32 | 1329 | AC_ARG_WITH(default-system-dir, |
71082be4 ZK |
1330 | AC_HELP_STRING([--with-default-system-dir=DIR], |
1331 | [default LVM system directory [[/etc/lvm]]]), | |
1332 | DEFAULT_SYS_DIR=$withval, DEFAULT_SYS_DIR="/etc/lvm") | |
1333 | AC_DEFINE_UNQUOTED(DEFAULT_SYS_DIR, ["$DEFAULT_SYS_DIR"], | |
1334 | [Path to LVM system directory.]) | |
3399ae32 | 1335 | |
3399ae32 | 1336 | AC_ARG_WITH(default-archive-subdir, |
71082be4 ZK |
1337 | AC_HELP_STRING([--with-default-archive-subdir=SUBDIR], |
1338 | [default metadata archive subdir [[archive]]]), | |
1339 | DEFAULT_ARCHIVE_SUBDIR=$withval, DEFAULT_ARCHIVE_SUBDIR=archive) | |
1340 | AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE_SUBDIR, ["$DEFAULT_ARCHIVE_SUBDIR"], | |
1341 | [Name of default metadata archive subdirectory.]) | |
3399ae32 | 1342 | |
3399ae32 | 1343 | AC_ARG_WITH(default-backup-subdir, |
71082be4 ZK |
1344 | AC_HELP_STRING([--with-default-backup-subdir=SUBDIR], |
1345 | [default metadata backup subdir [[backup]]]), | |
1346 | DEFAULT_BACKUP_SUBDIR=$withval, DEFAULT_BACKUP_SUBDIR=backup) | |
1347 | AC_DEFINE_UNQUOTED(DEFAULT_BACKUP_SUBDIR, ["$DEFAULT_BACKUP_SUBDIR"], | |
1348 | [Name of default metadata backup subdirectory.]) | |
3399ae32 | 1349 | |
3399ae32 | 1350 | AC_ARG_WITH(default-cache-subdir, |
71082be4 ZK |
1351 | AC_HELP_STRING([--with-default-cache-subdir=SUBDIR], |
1352 | [default metadata cache subdir [[cache]]]), | |
1353 | DEFAULT_CACHE_SUBDIR=$withval, DEFAULT_CACHE_SUBDIR=cache) | |
1354 | AC_DEFINE_UNQUOTED(DEFAULT_CACHE_SUBDIR, ["$DEFAULT_CACHE_SUBDIR"], | |
1355 | [Name of default metadata cache subdirectory.]) | |
3399ae32 | 1356 | |
3399ae32 | 1357 | AC_ARG_WITH(default-locking-dir, |
71082be4 ZK |
1358 | AC_HELP_STRING([--with-default-locking-dir=DIR], |
1359 | [default locking directory [[/var/lock/lvm]]]), | |
1360 | DEFAULT_LOCK_DIR=$withval, DEFAULT_LOCK_DIR="/var/lock/lvm") | |
1361 | AC_DEFINE_UNQUOTED(DEFAULT_LOCK_DIR, ["$DEFAULT_LOCK_DIR"], | |
1362 | [Name of default locking directory.]) | |
3399ae32 | 1363 | |
7063efe1 MS |
1364 | ################################################################################ |
1365 | dnl -- Setup default data alignment | |
1366 | AC_ARG_WITH(default-data-alignment, | |
1367 | AC_HELP_STRING([--with-default-data-alignment=NUM], | |
1368 | [set the default data alignment in MiB [[1]]]), | |
1369 | DEFAULT_DATA_ALIGNMENT=$withval, DEFAULT_DATA_ALIGNMENT=1) | |
1370 | AC_DEFINE_UNQUOTED(DEFAULT_DATA_ALIGNMENT, [$DEFAULT_DATA_ALIGNMENT], | |
1371 | [Default data alignment.]) | |
1372 | ||
f6fc418d AK |
1373 | ################################################################################ |
1374 | dnl -- which kernel interface to use (ioctl only) | |
1375 | AC_MSG_CHECKING(for kernel interface choice) | |
1376 | AC_ARG_WITH(interface, | |
71082be4 ZK |
1377 | AC_HELP_STRING([--with-interface=IFACE], |
1378 | [choose kernel interface (ioctl) [[ioctl]]]), | |
1379 | interface=$withval, interface=ioctl) | |
f6fc418d AK |
1380 | if [[ "x$interface" != xioctl ]]; |
1381 | then | |
1382 | AC_MSG_ERROR(--with-interface=ioctl required. fs no longer supported.) | |
1383 | fi | |
1384 | AC_MSG_RESULT($interface) | |
1385 | ||
1386 | ################################################################################ | |
db8b5af9 | 1387 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
f58b35b5 AK |
1388 | AC_DEFINE_UNQUOTED(DM_LIB_VERSION, $DM_LIB_VERSION, [Library version]) |
1389 | ||
db8b5af9 | 1390 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[[-. ]]' '{printf "%s.%s.%s",$1,$2,$3}'` |
597c3f8e | 1391 | |
db8b5af9 | 1392 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 1393 | |
db8b5af9 | 1394 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 1395 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
1396 | VER=`echo "$VER" | $AWK '{print $1}'` |
1397 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
1398 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
1399 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
1400 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
1401 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[[(.]]' '{print $3}'` |
1402 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[[()]]' '{print $2}'` | |
ec6a6fbe | 1403 | |
80992638 | 1404 | ################################################################################ |
572fefeb | 1405 | AC_SUBST(APPLIB) |
aaa2e046 | 1406 | AC_SUBST(AWK) |
66fd4529 | 1407 | AC_SUBST(BUILD_CMIRRORD) |
d0191583 | 1408 | AC_SUBST(BUILD_DMEVENTD) |
615534d3 | 1409 | AC_SUBST(BUILD_LVMETAD) |
b896caa1 | 1410 | AC_SUBST(CFLAGS) |
d0191583 | 1411 | AC_SUBST(CFLOW_CMD) |
8106cdd5 | 1412 | AC_SUBST(CLDFLAGS) |
8106cdd5 | 1413 | AC_SUBST(CLDNOWHOLEARCHIVE) |
d0191583 JM |
1414 | AC_SUBST(CLDWHOLEARCHIVE) |
1415 | AC_SUBST(CLUSTER) | |
1416 | AC_SUBST(CLVMD) | |
34b6075d | 1417 | AC_SUBST(CLVMD_CMANAGERS) |
d2c11605 | 1418 | AC_SUBST(CLVMD_PATH) |
a946372e AK |
1419 | AC_SUBST(CMAN_CFLAGS) |
1420 | AC_SUBST(CMAN_LIBS) | |
b6d7a484 AK |
1421 | AC_SUBST(CMAP_CFLAGS) |
1422 | AC_SUBST(CMAP_LIBS) | |
d0191583 | 1423 | AC_SUBST(CMDLIB) |
edf47283 AK |
1424 | AC_SUBST(CONFDB_CFLAGS) |
1425 | AC_SUBST(CONFDB_LIBS) | |
1426 | AC_SUBST(CONFDIR) | |
d0191583 | 1427 | AC_SUBST(COPTIMISE_FLAG) |
edf47283 AK |
1428 | AC_SUBST(CPG_CFLAGS) |
1429 | AC_SUBST(CPG_LIBS) | |
d0191583 | 1430 | AC_SUBST(CSCOPE_CMD) |
8ef2b021 | 1431 | AC_SUBST(DEBUG) |
3399ae32 AK |
1432 | AC_SUBST(DEFAULT_SYS_DIR) |
1433 | AC_SUBST(DEFAULT_ARCHIVE_SUBDIR) | |
1434 | AC_SUBST(DEFAULT_BACKUP_SUBDIR) | |
1435 | AC_SUBST(DEFAULT_CACHE_SUBDIR) | |
7063efe1 | 1436 | AC_SUBST(DEFAULT_DATA_ALIGNMENT) |
3399ae32 | 1437 | AC_SUBST(DEFAULT_LOCK_DIR) |
b1f08e51 | 1438 | AC_SUBST(DEFAULT_RUN_DIR) |
199e490e | 1439 | AC_SUBST(DEVMAPPER) |
a946372e AK |
1440 | AC_SUBST(DLM_CFLAGS) |
1441 | AC_SUBST(DLM_LIBS) | |
19a2c6e0 | 1442 | AC_SUBST(DL_LIBS) |
d0191583 | 1443 | AC_SUBST(DMEVENTD) |
d1e8046f | 1444 | AC_SUBST(DMEVENTD_PATH) |
d0191583 JM |
1445 | AC_SUBST(DM_COMPAT) |
1446 | AC_SUBST(DM_DEVICE_GID) | |
1447 | AC_SUBST(DM_DEVICE_MODE) | |
1448 | AC_SUBST(DM_DEVICE_UID) | |
1449 | AC_SUBST(DM_IOCTLS) | |
1450 | AC_SUBST(DM_LIB_VERSION) | |
597c3f8e | 1451 | AC_SUBST(DM_LIB_PATCHLEVEL) |
bf09a320 | 1452 | AC_SUBST(ELDFLAGS) |
d0191583 | 1453 | AC_SUBST(FSADM) |
26e7f2e0 | 1454 | AC_SUBST(HAVE_LIBDL) |
8b1a3214 | 1455 | AC_SUBST(HAVE_REALTIME) |
d0191583 JM |
1456 | AC_SUBST(INTL) |
1457 | AC_SUBST(INTL_PACKAGE) | |
1458 | AC_SUBST(JOBS) | |
1459 | AC_SUBST(LDDEPS) | |
1460 | AC_SUBST(LIBS) | |
1461 | AC_SUBST(LIB_SUFFIX) | |
69792976 | 1462 | AC_SUBST(LOCALEDIR) |
d0191583 JM |
1463 | AC_SUBST(LVM1) |
1464 | AC_SUBST(LVM1_FALLBACK) | |
d0191583 | 1465 | AC_SUBST(LVM_VERSION) |
bf456146 | 1466 | AC_SUBST(LVM_LIBAPI) |
ec6a6fbe AK |
1467 | AC_SUBST(LVM_MAJOR) |
1468 | AC_SUBST(LVM_MINOR) | |
1469 | AC_SUBST(LVM_PATCHLEVEL) | |
d2c11605 | 1470 | AC_SUBST(LVM_PATH) |
ec6a6fbe AK |
1471 | AC_SUBST(LVM_RELEASE) |
1472 | AC_SUBST(LVM_RELEASE_DATE) | |
d0191583 | 1473 | AC_SUBST(MIRRORS) |
cac52ca4 | 1474 | AC_SUBST(MSGFMT) |
e40d44be | 1475 | AC_SUBST(OCF) |
349da06c | 1476 | AC_SUBST(OCFDIR) |
d0191583 JM |
1477 | AC_SUBST(PKGCONFIG) |
1478 | AC_SUBST(POOL) | |
f30875db | 1479 | AC_SUBST(PTHREAD_LIBS) |
edf47283 AK |
1480 | AC_SUBST(QUORUM_CFLAGS) |
1481 | AC_SUBST(QUORUM_LIBS) | |
cac52ca4 | 1482 | AC_SUBST(RAID) |
539f4a77 | 1483 | AC_SUBST(READLINE_LIBS) |
cac52ca4 | 1484 | AC_SUBST(REPLICATORS) |
90c80887 AK |
1485 | AC_SUBST(SACKPT_CFLAGS) |
1486 | AC_SUBST(SACKPT_LIBS) | |
a946372e AK |
1487 | AC_SUBST(SALCK_CFLAGS) |
1488 | AC_SUBST(SALCK_LIBS) | |
e1b8a236 | 1489 | AC_SUBST(SELINUX_LIBS) |
f7f0854e | 1490 | AC_SUBST(SELINUX_PC) |
d0191583 | 1491 | AC_SUBST(SNAPSHOTS) |
0a62c911 | 1492 | AC_SUBST(STATICDIR) |
d0191583 | 1493 | AC_SUBST(STATIC_LINK) |
1033d120 | 1494 | AC_SUBST(TESTING) |
3ba4a195 | 1495 | AC_SUBST(THIN) |
f61cacad | 1496 | AC_SUBST(THIN_CHECK_CMD) |
db724a44 | 1497 | AC_SUBST(UDEV_LIBS) |
f7f0854e | 1498 | AC_SUBST(UDEV_PC) |
5d518f1f | 1499 | AC_SUBST(UDEV_RULES) |
4df024c4 | 1500 | AC_SUBST(UDEV_SYNC) |
b559a1e6 | 1501 | AC_SUBST(UDEV_HAS_BUILTIN_BLKID) |
5da88e5b PR |
1502 | AC_SUBST(CUNIT_LIBS) |
1503 | AC_SUBST(CUNIT_CFLAGS) | |
23b059e7 | 1504 | AC_SUBST(WRITE_INSTALL) |
395d204d | 1505 | AC_SUBST(DMEVENTD_PIDFILE) |
f6fc418d AK |
1506 | AC_SUBST(interface) |
1507 | AC_SUBST(kerneldir) | |
1508 | AC_SUBST(missingkernel) | |
1509 | AC_SUBST(kernelvsn) | |
1510 | AC_SUBST(tmpdir) | |
5d518f1f AK |
1511 | AC_SUBST(udev_prefix) |
1512 | AC_SUBST(udevdir) | |
e587cb6a | 1513 | AC_SUBST(systemdsystemunitdir) |
4417a8bd | 1514 | AC_SUBST(tmpfilesdir) |
68f2de6d AK |
1515 | AC_SUBST(usrlibdir) |
1516 | AC_SUBST(usrsbindir) | |
8106cdd5 | 1517 | |
80992638 | 1518 | ################################################################################ |
d3a356b4 | 1519 | dnl -- First and last lines should not contain files to generate in order to |
8ce0cbda | 1520 | dnl -- keep utility scripts running properly |
d3a356b4 JM |
1521 | AC_CONFIG_FILES([ |
1522 | Makefile | |
1523 | make.tmpl | |
1524 | daemons/Makefile | |
1525 | daemons/clvmd/Makefile | |
5d311afb | 1526 | daemons/cmirrord/Makefile |
f6fc418d AK |
1527 | daemons/dmeventd/Makefile |
1528 | daemons/dmeventd/libdevmapper-event.pc | |
b7edb5bf | 1529 | daemons/dmeventd/plugins/Makefile |
d3d98fdc | 1530 | daemons/dmeventd/plugins/lvm2/Makefile |
3041b72f | 1531 | daemons/dmeventd/plugins/raid/Makefile |
f6fc418d AK |
1532 | daemons/dmeventd/plugins/mirror/Makefile |
1533 | daemons/dmeventd/plugins/snapshot/Makefile | |
2bc1d759 | 1534 | daemons/dmeventd/plugins/thin/Makefile |
615534d3 | 1535 | daemons/lvmetad/Makefile |
d3a356b4 | 1536 | doc/Makefile |
da05c479 | 1537 | doc/example.conf |
db8b5af9 | 1538 | include/.symlinks |
f6fc418d AK |
1539 | include/Makefile |
1540 | lib/Makefile | |
d3a356b4 JM |
1541 | lib/format1/Makefile |
1542 | lib/format_pool/Makefile | |
1543 | lib/locking/Makefile | |
1544 | lib/mirror/Makefile | |
8fea97b7 | 1545 | lib/replicator/Makefile |
ec6a6fbe | 1546 | lib/misc/lvm-version.h |
40dbaac8 | 1547 | lib/raid/Makefile |
d3a356b4 | 1548 | lib/snapshot/Makefile |
3ba4a195 | 1549 | lib/thin/Makefile |
832a1e73 AK |
1550 | libdaemon/Makefile |
1551 | libdaemon/client/Makefile | |
1552 | libdaemon/server/Makefile | |
f6fc418d AK |
1553 | libdm/Makefile |
1554 | libdm/libdevmapper.pc | |
e0c64c6c | 1555 | liblvm/Makefile |
70046623 | 1556 | liblvm/liblvm2app.pc |
f6fc418d AK |
1557 | man/Makefile |
1558 | po/Makefile | |
2de38033 | 1559 | scripts/clvmd_init_red_hat |
81410c8f | 1560 | scripts/cmirrord_init_red_hat |
a30491b2 | 1561 | scripts/lvm2_lvmetad_init_red_hat |
dac3c36f | 1562 | scripts/lvm2_lvmetad_systemd_red_hat.socket |
da532741 | 1563 | scripts/lvm2_lvmetad_systemd_red_hat.service |
595eaf92 | 1564 | scripts/lvm2_monitoring_init_red_hat |
395d204d PR |
1565 | scripts/dm_event_systemd_red_hat.service |
1566 | scripts/lvm2_monitoring_systemd_red_hat.service | |
4417a8bd | 1567 | scripts/lvm2_tmpfiles_red_hat.conf |
d3a356b4 | 1568 | scripts/Makefile |
f6fc418d | 1569 | test/Makefile |
c7e363f9 | 1570 | test/api/Makefile |
d4fed285 | 1571 | test/unit/Makefile |
d3a356b4 | 1572 | tools/Makefile |
5d518f1f | 1573 | udev/Makefile |
66392e66 | 1574 | unit-tests/datastruct/Makefile |
15106c50 | 1575 | unit-tests/regex/Makefile |
52e1564f | 1576 | unit-tests/mm/Makefile |
7a197a62 AK |
1577 | ]) |
1578 | AC_OUTPUT | |
2dc95e1c AK |
1579 | |
1580 | if test x$ODIRECT != xyes; then | |
ad6254c5 | 1581 | AC_MSG_WARN(Warning: O_DIRECT disabled: low-memory pvmove may lock up) |
2dc95e1c | 1582 | fi |