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