]> sourceware.org Git - lvm2.git/blob - configure.in
Only include selinux libs in libdevmapper.pc when selinux build enabled.
[lvm2.git] / configure.in
1 ###############################################################################
2 ## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved.
3 ## Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
4 ##
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.
8 ##
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
12 ################################################################################
13
14 AC_PREREQ(2.57)
15 ################################################################################
16 dnl -- Process this file with autoconf to produce a configure script.
17 AC_INIT
18 AC_CONFIG_SRCDIR([lib/device/dev-cache.h])
19 AC_CONFIG_HEADERS([lib/misc/configure.h])
20
21 ################################################################################
22 dnl -- Setup the directory where autoconf has auxilary files
23 AC_CONFIG_AUX_DIR(autoconf)
24
25 ################################################################################
26 dnl -- Get system type
27 AC_CANONICAL_TARGET([])
28
29 case "$host_os" in
30 linux*)
31 CFLAGS="$CFLAGS"
32 COPTIMISE_FLAG="-O2"
33 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
34 CLDWHOLEARCHIVE="-Wl,-whole-archive"
35 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
36 LDDEPS="$LDDEPS .export.sym"
37 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
38 LIB_SUFFIX=so
39 DEVMAPPER=yes
40 ODIRECT=yes
41 DM_IOCTLS=yes
42 SELINUX=yes
43 REALTIME=yes
44 CLUSTER=internal
45 FSADM=yes
46 ;;
47 darwin*)
48 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
49 COPTIMISE_FLAG="-O2"
50 CLDFLAGS="$CLDFLAGS"
51 CLDWHOLEARCHIVE="-all_load"
52 CLDNOWHOLEARCHIVE=
53 LIB_SUFFIX=dylib
54 DEVMAPPER=yes
55 ODIRECT=no
56 DM_IOCTLS=no
57 SELINUX=no
58 REALTIME=no
59 CLUSTER=none
60 FSADM=no
61 ;;
62 esac
63
64 ################################################################################
65 dnl -- Checks for programs.
66 AC_PROG_SED
67 AC_PROG_AWK
68 AC_PROG_CC
69
70 dnl probably no longer needed in 2008, but...
71 AC_PROG_GCC_TRADITIONAL
72 AC_PROG_INSTALL
73 AC_PROG_LN_S
74 AC_PROG_MAKE_SET
75 AC_PROG_MKDIR_P
76 AC_PROG_RANLIB
77 AC_PATH_PROG(CFLOW_CMD, cflow)
78 AC_PATH_PROG(CSCOPE_CMD, cscope)
79
80 ################################################################################
81 dnl -- Check for header files.
82 AC_HEADER_DIRENT
83 AC_HEADER_STDC
84 AC_HEADER_SYS_WAIT
85 AC_HEADER_TIME
86
87 AC_CHECK_HEADERS([locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
88 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h], ,
89 [AC_MSG_ERROR(bailing out)])
90
91 case "$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)) ;;
96 esac
97
98 AC_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)])
101 AC_CHECK_HEADERS(termios.h sys/statvfs.h)
102
103 ################################################################################
104 dnl -- Check for typedefs, structures, and compiler characteristics.
105 AC_C_CONST
106 AC_C_INLINE
107 AC_CHECK_MEMBERS([struct stat.st_rdev])
108 AC_TYPE_OFF_T
109 AC_TYPE_PID_T
110 AC_TYPE_SIGNAL
111 AC_TYPE_SIZE_T
112 AC_TYPE_MODE_T
113 AC_CHECK_MEMBERS([struct stat.st_rdev])
114 AC_STRUCT_TM
115
116 ################################################################################
117 dnl -- Check for functions
118 AC_CHECK_FUNCS([gethostname getpagesize memset mkdir rmdir munmap setlocale \
119 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
120 uname], , [AC_MSG_ERROR(bailing out)])
121 AC_CHECK_FUNCS(siginterrupt)
122 AC_FUNC_ALLOCA
123 AC_FUNC_CLOSEDIR_VOID
124 AC_FUNC_FORK
125 AC_FUNC_LSTAT
126 AC_FUNC_MALLOC
127 AC_FUNC_MEMCMP
128 AC_FUNC_MMAP
129 AC_FUNC_STAT
130 AC_FUNC_STRTOD
131 AC_FUNC_VPRINTF
132
133 ################################################################################
134 dnl -- Enables statically-linked tools
135 AC_MSG_CHECKING(whether to use static linking)
136 AC_ARG_ENABLE(static_link,
137 [ --enable-static_link Use this to link the tools to their libraries
138 statically. Default is dynamic linking],
139 STATIC_LINK=$enableval, STATIC_LINK=no)
140 AC_MSG_RESULT($STATIC_LINK)
141
142 ################################################################################
143 dnl -- Prefix is /usr by default, the exec_prefix default is setup later
144 AC_PREFIX_DEFAULT(/usr)
145
146 ################################################################################
147 dnl -- Setup the ownership of the files
148 AC_MSG_CHECKING(file owner)
149 OWNER="root"
150
151 AC_ARG_WITH(user,
152 [ --with-user=USER Set the owner of installed files [[USER=root]] ],
153 [ OWNER="$withval" ])
154 AC_MSG_RESULT($OWNER)
155
156 if test x$OWNER != x; then
157 OWNER="-o $OWNER"
158 fi
159
160 ################################################################################
161 dnl -- Setup the group ownership of the files
162 AC_MSG_CHECKING(group owner)
163 GROUP="root"
164 AC_ARG_WITH(group,
165 [ --with-group=GROUP Set the group owner of installed files [[GROUP=root]] ],
166 [ GROUP="$withval" ])
167 AC_MSG_RESULT($GROUP)
168
169 if test x$GROUP != x; then
170 GROUP="-g $GROUP"
171 fi
172
173 ################################################################################
174 dnl -- Setup device node ownership
175 AC_MSG_CHECKING(device node uid)
176
177 AC_ARG_WITH(device-uid,
178 [ --with-device-uid=UID Set the owner used for new device nodes [[UID=0]] ],
179 [ DM_DEVICE_UID="$withval" ], [ DM_DEVICE_UID="0" ] )
180 AC_MSG_RESULT($DM_DEVICE_UID)
181
182 ################################################################################
183 dnl -- Setup device group ownership
184 AC_MSG_CHECKING(device node gid)
185
186 AC_ARG_WITH(device-gid,
187 [ --with-device-gid=UID Set the group used for new device nodes [[GID=0]] ],
188 [ DM_DEVICE_GID="$withval" ], [ DM_DEVICE_GID="0" ] )
189 AC_MSG_RESULT($DM_DEVICE_GID)
190
191 ################################################################################
192 dnl -- Setup device mode
193 AC_MSG_CHECKING(device node mode)
194
195 AC_ARG_WITH(device-mode,
196 [ --with-device-mode=MODE Set the mode used for new device nodes [[MODE=0600]] ],
197 [ DM_DEVICE_MODE="$withval" ], [ DM_DEVICE_MODE="0600" ] )
198 AC_MSG_RESULT($DM_DEVICE_MODE)
199
200 ################################################################################
201 dnl -- LVM1 tool fallback option
202 AC_MSG_CHECKING(whether to enable lvm1 fallback)
203 AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
204 device-mapper is missing from the kernel], LVM1_FALLBACK=$enableval, LVM1_FALLBACK=no)
205 AC_MSG_RESULT($LVM1_FALLBACK)
206
207 if test x$LVM1_FALLBACK = xyes; then
208 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])
209 fi
210
211 ################################################################################
212 dnl -- format1 inclusion type
213 AC_MSG_CHECKING(whether to include support for lvm1 metadata)
214 AC_ARG_WITH(lvm1,
215 [ --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
216 [TYPE=internal] ],
217 [ LVM1="$withval" ],
218 [ LVM1="internal" ])
219 AC_MSG_RESULT($LVM1)
220
221 if [[ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]];
222 then AC_MSG_ERROR(
223 --with-lvm1 parameter invalid
224 )
225 fi;
226
227 if test x$LVM1 = xinternal; then
228 AC_DEFINE([LVM1_INTERNAL], 1, [Define to 1 to include built-in support for LVM1 metadata.])
229 fi
230
231 ################################################################################
232 dnl -- format_pool inclusion type
233 AC_MSG_CHECKING(whether to include support for GFS pool metadata)
234 AC_ARG_WITH(pool,
235 [ --with-pool=TYPE GFS pool read-only support: internal/shared/none
236 [TYPE=internal] ],
237 [ POOL="$withval" ],
238 [ POOL="internal" ])
239 AC_MSG_RESULT($POOL)
240
241 if [[ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]];
242 then AC_MSG_ERROR(
243 --with-pool parameter invalid
244 )
245 fi;
246
247 if test x$POOL = xinternal; then
248 AC_DEFINE([POOL_INTERNAL], 1, [Define to 1 to include built-in support for GFS pool metadata.])
249 fi
250
251 ################################################################################
252 dnl -- cluster_locking inclusion type
253 AC_MSG_CHECKING(whether to include support for cluster locking)
254 AC_ARG_WITH(cluster,
255 [ --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
256 [TYPE=internal] ],
257 [ CLUSTER="$withval" ])
258 AC_MSG_RESULT($CLUSTER)
259
260 if [[ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]];
261 then AC_MSG_ERROR(
262 --with-cluster parameter invalid
263 )
264 fi;
265
266 if test x$CLUSTER = xinternal; then
267 AC_DEFINE([CLUSTER_LOCKING_INTERNAL], 1, [Define to 1 to include built-in support for clustered LVM locking.])
268 fi
269
270 ################################################################################
271 dnl -- snapshots inclusion type
272 AC_MSG_CHECKING(whether to include snapshots)
273 AC_ARG_WITH(snapshots,
274 [ --with-snapshots=TYPE Snapshot support: internal/shared/none
275 [TYPE=internal] ],
276 [ SNAPSHOTS="$withval" ],
277 [ SNAPSHOTS="internal" ])
278 AC_MSG_RESULT($SNAPSHOTS)
279
280 if [[ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]];
281 then AC_MSG_ERROR(
282 --with-snapshots parameter invalid
283 )
284 fi;
285
286 if test x$SNAPSHOTS = xinternal; then
287 AC_DEFINE([SNAPSHOT_INTERNAL], 1, [Define to 1 to include built-in support for snapshots.])
288 fi
289
290 ################################################################################
291 dnl -- mirrors inclusion type
292 AC_MSG_CHECKING(whether to include mirrors)
293 AC_ARG_WITH(mirrors,
294 [ --with-mirrors=TYPE Mirror support: internal/shared/none
295 [TYPE=internal] ],
296 [ MIRRORS="$withval" ],
297 [ MIRRORS="internal" ])
298 AC_MSG_RESULT($MIRRORS)
299
300 if [[ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]];
301 then AC_MSG_ERROR(
302 --with-mirrors parameter invalid
303 )
304 fi;
305
306 if test x$MIRRORS = xinternal; then
307 AC_DEFINE([MIRRORED_INTERNAL], 1, [Define to 1 to include built-in support for mirrors.])
308 fi
309
310 ################################################################################
311 dnl -- Disable readline
312 AC_MSG_CHECKING(whether to enable readline)
313 AC_ARG_ENABLE([readline],
314 [ --disable-readline Disable readline support],
315 [READLINE=$enableval], [READLINE=maybe])
316 AC_MSG_RESULT($READLINE)
317
318 ################################################################################
319 dnl -- Disable realtime clock support
320 AC_MSG_CHECKING(whether to enable realtime support)
321 AC_ARG_ENABLE(realtime, [ --disable-realtime Disable realtime clock support],
322 REALTIME=$enableval)
323 AC_MSG_RESULT($REALTIME)
324
325 ################################################################################
326 dnl -- Init pkg-config with dummy invokation:
327 dnl -- this is required because PKG_CHECK_MODULES macro is expanded
328 dnl -- to initialize the pkg-config environment only at the first invokation,
329 dnl -- that would be conditional in this configure.in.
330 pkg_config_init() {
331 PKG_CHECK_MODULES(PKGCONFIGINIT, pkgconfiginit, [],
332 [AC_MSG_RESULT([pkg-config initialized])])
333 PKGCONFIG_INIT=1
334 }
335
336 ################################################################################
337 dnl -- Build cluster LVM daemon
338 AC_MSG_CHECKING(whether to build cluster LVM daemon)
339 AC_ARG_WITH(clvmd,
340 [ --with-clvmd=TYPE Build cluster LVM Daemon.
341 The following cluster manager combinations are valid:
342 * cman,gulm (RHEL4 or equivalent)
343 * cman (RHEL5 or equivalent)
344 * cman,corosync,openais (or selection of them)
345 * all (autodetect)
346 * none (disable build)
347 [TYPE=none] ],
348 [ CLVMD="$withval" ],
349 [ CLVMD="none" ])
350 if test x$CLVMD = xyes; then
351 CLVMD=all
352 fi
353 AC_MSG_RESULT($CLVMD)
354
355 dnl -- If clvmd enabled without cluster locking, automagically include it
356 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
357 CLUSTER=internal
358 fi
359
360 dnl -- init pkgconfig if required
361 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
362 pkg_config_init
363 fi
364
365
366 dnl -- define build types
367 if [[ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]]; then
368 BUILDGULM=yes
369 fi
370 if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
371 BUILDCOROSYNC=yes
372 fi
373 if [[ `expr x"$CLVMD" : '.*openais.*'` != 0 ]]; then
374 BUILDOPENAIS=yes
375 fi
376 if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then
377 BUILDCMAN=yes
378 fi
379
380 dnl -- sanity check around user selection
381 if test x$BUILDGULM = xyes; then
382 if test x$BUILDCOROSYNC = xyes || \
383 test x$BUILDOPENAIS = xyes; then
384 AC_MSG_ERROR([requested clvmd configuration is not valid])
385 fi
386 fi
387
388 dnl -- define a soft bailout if we are autodetecting
389 soft_bailout() {
390 NOTFOUND=1
391 }
392
393 hard_bailout() {
394 AC_MSG_ERROR([bailing out])
395 }
396
397 dnl -- if clvmd=all then set soft_bailout (we don't want to error)
398 dnl -- and set all builds to yes. We need to do this here
399 dnl -- to skip the gulm + openais|corosync sanity check above.
400 if test x$CLVMD = xall; then
401 bailout=soft_bailout
402 BUILDGULM=yes
403 BUILDCMAN=yes
404 BUILDCOROSYNC=yes
405 BUILDOPENAIS=yes
406 else
407 bailout=hard_bailout
408 fi
409
410 dnl -- helper macro to check libs without adding them to LIBS
411 check_lib_no_libs() {
412 lib_no_libs_arg1=$1
413 shift
414 lib_no_libs_arg2=$1
415 shift
416 lib_no_libs_args=$@
417 AC_CHECK_LIB([$lib_no_libs_arg1],
418 [$lib_no_libs_arg2],,
419 [$bailout],
420 [$lib_no_libs_args])
421 LIBS=$ac_check_lib_save_LIBS
422 }
423
424 dnl -- Look for gulm libraries if required.
425 if test x$BUILDGULM = xyes; then
426 PKG_CHECK_MODULES(CCS, libccs, [HAVE_CCS=yes],
427 [NOTFOUND=0
428 AC_CHECK_HEADERS(ccs.h,,$bailout)
429 check_lib_no_libs ccs ccs_connect
430 if test $NOTFOUND = 0; then
431 AC_MSG_RESULT([no pkg for libccs, using -lccs])
432 CCS_LIBS="-lccs"
433 HAVE_CCS=yes
434 fi])
435 PKG_CHECK_MODULES(GULM, libgulm, [HAVE_GULM=yes],
436 [NOTFOUND=0
437 AC_CHECK_HEADERS(libgulm.h,,$bailout)
438 check_lib_no_libs gulm lg_core_login
439 if test $NOTFOUND = 0; then
440 AC_MSG_RESULT([no pkg for libgulm, using -lgulm])
441 GULM_LIBS="-lgulm"
442 HAVE_GULM=yes
443 fi])
444 fi
445
446 dnl -- Look for cman libraries if required.
447 if test x$BUILDCMAN = xyes; then
448 PKG_CHECK_MODULES(CMAN, libcman, [HAVE_CMAN=yes],
449 [NOTFOUND=0
450 AC_CHECK_HEADERS(libcman.h,,$bailout)
451 check_lib_no_libs cman cman_init
452 if test $NOTFOUND = 0; then
453 AC_MSG_RESULT([no pkg for libcman, using -lcman])
454 CMAN_LIBS="-lcman"
455 HAVE_CMAN=yes
456 fi])
457 CHECKCONFDB=yes
458 CHECKDLM=yes
459 fi
460
461 dnl -- Look for corosync that's required also for openais build
462 dnl -- only enough recent version of corosync ship pkg-config files.
463 dnl -- We can safely rely on that to detect the correct bits.
464 if test x$BUILDCOROSYNC = xyes || \
465 test x$BUILDOPENAIS = xyes; then
466 PKG_CHECK_MODULES(COROSYNC, corosync, [HAVE_COROSYNC=yes], $bailout)
467 CHECKCONFDB=yes
468 fi
469
470 dnl -- Look for corosync libraries if required.
471 if test x$BUILDCOROSYNC = xyes; then
472 PKG_CHECK_MODULES(QUORUM, libquorum, [HAVE_QUORUM=yes], $bailout)
473 CHECKCPG=yes
474 CHECKDLM=yes
475 fi
476
477 dnl -- Look for openais libraries if required.
478 if test x$BUILDOPENAIS = xyes; then
479 PKG_CHECK_MODULES(SALCK, libSaLck, [HAVE_SALCK=yes], $bailout)
480 CHECKCPG=yes
481 fi
482
483 dnl -- Below are checks for libraries common to more than one build.
484
485 dnl -- Check confdb library.
486 dnl -- mandatory for corosync build.
487 dnl -- optional for openais/cman build.
488
489 if test x$CHECKCONFDB = xyes; then
490 PKG_CHECK_MODULES(CONFDB, libconfdb,
491 [HAVE_CONFDB=yes],
492 [HAVE_CONFDB=no])
493
494 AC_CHECK_HEADERS(corosync/confdb.h,
495 [HAVE_CONFDB_H=yes],
496 [HAVE_CONFDB_H=no])
497
498 if test x$HAVE_CONFDB != xyes && \
499 test x$HAVE_CONFDB_H = xyes; then
500 check_lib_no_libs confdb confdb_initialize
501 AC_MSG_RESULT([no pkg for confdb, using -lconfdb])
502 CONFDB_LIBS="-lconfdb"
503 HAVE_CONFDB=yes
504 fi
505
506 if test x$BUILDCOROSYNC = xyes && \
507 test x$HAVE_CONFDB != xyes &&
508 test x$CLVMD != xall; then
509 AC_MSG_ERROR([bailing out... confdb library is required])
510 fi
511 fi
512
513 dnl -- Check cpg library.
514 if test x$CHECKCPG = xyes; then
515 PKG_CHECK_MODULES(CPG, libcpg, [HAVE_CPG=yes], $bailout)
516 fi
517
518 dnl -- Check dlm library.
519 if test x$CHECKDLM = xyes; then
520 PKG_CHECK_MODULES(DLM, libdlm, [HAVE_DLM=yes],
521 [NOTFOUND=0
522 AC_CHECK_HEADERS(libdlm.h,,$bailout)
523 check_lib_no_libs dlm dlm_lock -lpthread
524 if test $NOTFOUND = 0; then
525 AC_MSG_RESULT([no pkg for libdlm, using -ldlm])
526 DLM_LIBS="-ldlm -lpthread"
527 HAVE_DLM=yes
528 fi])
529 fi
530
531 dnl -- If we are autodetecting, we need to re-create
532 dnl -- the depedencies checks and set a proper CLVMD.
533 if test x$CLVMD = xall; then
534 CLVMD=none
535 if test x$HAVE_CCS = xyes && \
536 test x$HAVE_GULM = xyes; then
537 AC_MSG_RESULT([Enabling clvmd gulm cluster manager])
538 CLVMD="$CLVMD,gulm"
539 fi
540 if test x$HAVE_CMAN = xyes && \
541 test x$HAVE_DLM = xyes; then
542 AC_MSG_RESULT([Enabling clvmd cman cluster manager])
543 CLVMD="$CLVMD,cman"
544 fi
545 if test x$HAVE_COROSYNC = xyes && \
546 test x$HAVE_QUORUM = xyes && \
547 test x$HAVE_CPG = xyes && \
548 test x$HAVE_DLM = xyes && \
549 test x$HAVE_CONFDB = xyes; then
550 AC_MSG_RESULT([Enabling clvmd corosync cluster manager])
551 CLVMD="$CLVMD,corosync"
552 fi
553 if test x$HAVE_COROSYNC = xyes && \
554 test x$HAVE_CPG = xyes && \
555 test x$HAVE_SALCK = xyes; then
556 AC_MSG_RESULT([Enabling clvmd openais cluster manager])
557 CLVMD="$CLVMD,openais"
558 fi
559 if test x$CLVMD = xnone; then
560 AC_MSG_RESULT([Disabling clvmd build. No cluster manager detected.])
561 fi
562 fi
563
564 ################################################################################
565 dnl -- Build cluster mirror log daemon
566 AC_MSG_CHECKING(whether to build cluster mirror log daemon)
567 AC_ARG_ENABLE(cmirrord, [ --enable-cmirrord Enable the cluster mirror log daemon],
568 CMIRRORD=$enableval, CMIRRORD=no)
569 AC_MSG_RESULT($CMIRRORD)
570
571 BUILD_CMIRRORD=$CMIRRORD
572
573 ################################################################################
574 dnl -- cmirrord pidfile
575 AH_TEMPLATE(CMIRRORD_PIDFILE, [Path to cmirrord pidfile.])
576 if test "x$BUILD_CMIRRORD" = xyes; then
577 AC_ARG_WITH(cmirrord-pidfile,
578 [ --with-cmirrord-pidfile=PATH cmirrord pidfile [[/var/run/cmirrord.pid]] ],
579 [ AC_DEFINE_UNQUOTED(CMIRRORD_PIDFILE,"$withval") ],
580 [ AC_DEFINE_UNQUOTED(CMIRRORD_PIDFILE,"/var/run/cmirrord.pid") ])
581 fi
582
583 ################################################################################
584 dnl -- Look for corosync libraries if required.
585 if [[ "x$BUILD_CMIRRORD" = xyes ]]; then
586 dnl -- init pkgconfig if required
587 if test x$PKGCONFIG_INIT != x1; then
588 pkg_config_init
589 fi
590 PKG_CHECK_MODULES(SACKPT, libSaCkpt)
591 if test x$HAVE_CPG != xyes; then
592 PKG_CHECK_MODULES(CPG, libcpg)
593 fi
594 fi
595
596 ################################################################################
597 dnl -- Enable debugging
598 AC_MSG_CHECKING(whether to enable debugging)
599 AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging],
600 DEBUG=$enableval, DEBUG=no)
601 AC_MSG_RESULT($DEBUG)
602
603 dnl -- Normally turn off optimisation for debug builds
604 if test x$DEBUG = xyes; then
605 COPTIMISE_FLAG=
606 else
607 CSCOPE_CMD=
608 fi
609
610 ################################################################################
611 dnl -- Override optimisation
612 AC_MSG_CHECKING(for C optimisation flag)
613 AC_ARG_WITH(optimisation,
614 [ --with-optimisation=OPT C optimisation flag [[OPT=-O2]] ],
615 [ COPTIMISE_FLAG="$withval" ])
616 AC_MSG_RESULT($COPTIMISE_FLAG)
617
618 ################################################################################
619 dnl -- Enable profiling
620 AC_MSG_CHECKING(whether to gather gcov profiling data)
621 AC_ARG_ENABLE(profiling,
622 AC_HELP_STRING(--enable-profiling, [Gather gcov profiling data]),
623 PROFILING=$enableval, PROFILING=no)
624 AC_MSG_RESULT($PROFILING)
625
626 if test "x$PROFILING" = xyes; then
627 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
628 AC_PATH_PROG(LCOV, lcov, no)
629 AC_PATH_PROG(GENHTML, genhtml, no)
630 if test "$LCOV" = no -o "$GENHTML" = no ; then
631 AC_MSG_ERROR([lcov and genhtml are required for profiling])
632 fi
633 fi
634
635 ################################################################################
636 dnl -- Disable devmapper
637 AC_MSG_CHECKING(whether to use device-mapper)
638 AC_ARG_ENABLE(devmapper, [ --disable-devmapper Disable LVM2 device-mapper interaction],
639 DEVMAPPER=$enableval)
640 AC_MSG_RESULT($DEVMAPPER)
641
642 if test x$DEVMAPPER = xyes; then
643 AC_DEFINE([DEVMAPPER_SUPPORT], 1, [Define to 1 to enable LVM2 device-mapper interaction.])
644 fi
645
646 ################################################################################
647 dnl -- Enable udev synchronisation
648 AC_MSG_CHECKING(whether to enable synchronisation with udev processing)
649 AC_ARG_ENABLE(udev_sync, [ --enable-udev_sync Enable synchronisation with udev processing],
650 UDEV_SYNC=$enableval, UDEV_SYNC=no)
651 AC_MSG_RESULT($UDEV_SYNC)
652
653 if test x$UDEV_SYNC = xyes; then
654 AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
655 fi
656
657 dnl -- Enable udev rules
658 AC_MSG_CHECKING(whether to enable installation of udev rules required for synchronisation)
659 AC_ARG_ENABLE(udev_rules, [ --enable-udev_rules Install rule files needed for udev synchronisation],
660 UDEV_RULES=$enableval, UDEV_RULES=$UDEV_SYNC)
661 AC_MSG_RESULT($UDEV_RULES)
662
663 ################################################################################
664 dnl -- Check for libudev's udev_queue_get_udev_is_active function when udev synchronisation is enabled
665
666 if test x$UDEV_SYNC = xyes; then
667 AC_CHECK_LIB(udev, udev_queue_get_udev_is_active, HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes,
668 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no)
669
670 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
671 AC_DEFINE([HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE], 1,
672 [Define to 1 if libudev's udev_queue_get_udev_is_active function is available.])
673 LIBS="-ludev $LIBS"
674 fi
675 fi
676
677 ################################################################################
678 dnl -- Compatibility mode
679 AC_ARG_ENABLE(compat, [ --enable-compat Enable support for old device-mapper versions],
680 DM_COMPAT=$enableval, DM_COMPAT=no)
681
682 ################################################################################
683 dnl -- Compatible units suffix mode
684 AC_ARG_ENABLE(units-compat,
685 [ --enable-units-compat Enable output compatibility with old versions that
686 that don't use KiB-style unit suffixes],
687 UNITS_COMPAT=$enableval, UNITS_COMPAT=no)
688
689 if test x$UNITS_COMPAT = xyes; then
690 AC_DEFINE([DEFAULT_SI_UNIT_CONSISTENCY], 0, [Define to 0 to reinstate the pre-2.02.54 handling of unit suffixes.])
691 fi
692
693 ################################################################################
694 dnl -- Disable ioctl
695 AC_ARG_ENABLE(ioctl, [ --disable-driver Disable calls to device-mapper in the kernel],
696 DM_IOCTLS=$enableval)
697
698 ################################################################################
699 dnl -- Disable O_DIRECT
700 AC_MSG_CHECKING(whether to enable O_DIRECT)
701 AC_ARG_ENABLE(o_direct, [ --disable-o_direct Disable O_DIRECT],
702 ODIRECT=$enableval)
703 AC_MSG_RESULT($ODIRECT)
704
705 if test x$ODIRECT = xyes; then
706 AC_DEFINE([O_DIRECT_SUPPORT], 1, [Define to 1 to enable O_DIRECT support.])
707 fi
708
709 ################################################################################
710 dnl -- Enable liblvm2app.so
711 AC_MSG_CHECKING(whether to build liblvm2app.so application library)
712 AC_ARG_ENABLE(applib,
713 [ --enable-applib Build application library],
714 APPLIB=$enableval, APPLIB=no)
715 AC_MSG_RESULT($APPLIB)
716 AC_SUBST([LVM2APP_LIB])
717 test x$APPLIB = xyes \
718 && LVM2APP_LIB=-llvm2app \
719 || LVM2APP_LIB=
720
721 ################################################################################
722 dnl -- Enable cmdlib
723 AC_MSG_CHECKING(whether to compile liblvm2cmd.so)
724 AC_ARG_ENABLE(cmdlib, [ --enable-cmdlib Build shared command library],
725 CMDLIB=$enableval, CMDLIB=no)
726 AC_MSG_RESULT($CMDLIB)
727 AC_SUBST([LVM2CMD_LIB])
728 test x$CMDLIB = xyes \
729 && LVM2CMD_LIB=-llvm2cmd \
730 || LVM2CMD_LIB=
731
732 ################################################################################
733 dnl -- Enable pkg-config
734 AC_ARG_ENABLE(pkgconfig, [ --enable-pkgconfig Install pkgconfig support],
735 PKGCONFIG=$enableval, PKGCONFIG=no)
736
737 ################################################################################
738 dnl -- Enable fsadm
739 AC_MSG_CHECKING(whether to install fsadm)
740 AC_ARG_ENABLE(fsadm, [ --enable-fsadm Enable fsadm],
741 FSADM=$enableval)
742 AC_MSG_RESULT($FSADM)
743
744 ################################################################################
745 dnl -- enable dmeventd handling
746 AC_MSG_CHECKING(whether to use dmeventd)
747 AC_ARG_ENABLE(dmeventd, [ --enable-dmeventd Enable the device-mapper event daemon],
748 DMEVENTD=$enableval)
749 AC_MSG_RESULT($DMEVENTD)
750
751 BUILD_DMEVENTD=$DMEVENTD
752
753 dnl -- dmeventd currently requires internal mirror support
754 if test x$DMEVENTD = xyes; then
755 if test x$MIRRORS != xinternal; then
756 AC_MSG_ERROR(
757 --enable-dmeventd currently requires --with-mirrors=internal
758 )
759 fi
760 if test x$CMDLIB = xno; then
761 AC_MSG_ERROR(
762 --enable-dmeventd requires --enable-cmdlib to be used as well
763 )
764 fi
765 fi
766
767 if test x$DMEVENTD = xyes; then
768 AC_DEFINE([DMEVENTD], 1, [Define to 1 to enable the device-mapper event daemon.])
769 fi
770
771 ################################################################################
772 dnl -- getline included in recent libc
773
774 AC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1,
775 [Define to 1 if getline is available.]))
776
777 ################################################################################
778 dnl -- canonicalize_file_name included in recent libc
779
780 AC_CHECK_LIB(c, canonicalize_file_name,
781 AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1,
782 [Define to 1 if canonicalize_file_name is available.]))
783
784 ################################################################################
785 dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbin
786 if [[ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]];
787 then exec_prefix="";
788 fi;
789
790 ################################################################################
791 dnl -- Check for termcap (Shamelessly copied from parted 1.4.17)
792 if test x$READLINE != xno; then
793 AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib],
794 [tg_found=yes], [tg_found=no])
795 test x$READLINE:$tg_found = xyes:no &&
796 AC_MSG_ERROR(
797 termcap could not be found which is required for the
798 --enable-readline option (which is enabled by default). Either disable readline
799 support with --disable-readline or download and install termcap from:
800 ftp.gnu.org/gnu/termcap
801 Note: if you are using precompiled packages you will also need the development
802 package as well (which may be called termcap-devel or something similar).
803 Note: (n)curses also seems to work as a substitute for termcap. This was
804 not found either - but you could try installing that as well.
805 )
806 fi
807
808 ################################################################################
809 dnl -- Check for dlopen
810 AC_CHECK_LIB(dl, dlopen, HAVE_LIBDL=yes, HAVE_LIBDL=no)
811
812 if [[ "x$HAVE_LIBDL" = xyes ]]; then
813 AC_DEFINE([HAVE_LIBDL], 1, [Define to 1 if dynamic libraries are available.])
814 LIBS="-ldl $LIBS"
815 else
816 HAVE_LIBDL=no
817 fi
818
819 ################################################################################
820 dnl -- Check for shared/static conflicts
821 if [[ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
822 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
823 \) -a "x$STATIC_LINK" = xyes ]];
824 then AC_MSG_ERROR(
825 Features cannot be 'shared' when building statically
826 )
827 fi
828
829 ################################################################################
830 dnl -- Disable selinux
831 AC_MSG_CHECKING(whether to enable selinux support)
832 AC_ARG_ENABLE(selinux, [ --disable-selinux Disable selinux support],
833 SELINUX=$enableval)
834 AC_MSG_RESULT($SELINUX)
835
836 ################################################################################
837 dnl -- Check for selinux
838 if test x$SELINUX = xyes; then
839 AC_CHECK_LIB(sepol, sepol_check_context, HAVE_SEPOL=yes, HAVE_SEPOL=no)
840
841 if test x$HAVE_SEPOL = xyes; then
842 AC_DEFINE([HAVE_SEPOL], 1,
843 [Define to 1 if sepol_check_context is available.])
844 SELINUX_LIBS="-lsepol $SELINUX_LIBS"
845 fi
846
847 AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)
848
849 if test x$HAVE_SELINUX = xyes; then
850 AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
851 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
852 else
853 AC_MSG_WARN(Disabling selinux)
854 fi
855 LIBS="$SELINUX_LIBS $LIBS"
856
857 # With --enable-static_link and selinux enabled, linking
858 # fails on at least Debian unstable due to unsatisfied references
859 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
860 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
861 lvm_saved_libs=$LIBS
862 LIBS="$LIBS -static"
863 AC_SEARCH_LIBS([pthread_mutex_lock], [pthread],
864 [test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
865 LIB_PTHREAD=-lpthread])
866 LIBS=$lvm_saved_libs
867 fi
868 fi
869
870 ################################################################################
871 dnl -- Check for realtime clock support
872 if test x$REALTIME = xyes; then
873 AC_CHECK_LIB(rt, clock_gettime, HAVE_REALTIME=yes, HAVE_REALTIME=no)
874
875 if test x$HAVE_REALTIME = xyes; then
876 AC_DEFINE([HAVE_REALTIME], 1, [Define to 1 to include support for realtime clock.])
877 LIBS="-lrt $LIBS"
878 else
879 AC_MSG_WARN(Disabling realtime clock)
880 fi
881 fi
882
883 ################################################################################
884 dnl -- Check for getopt
885 AC_CHECK_HEADERS(getopt.h, AC_DEFINE([HAVE_GETOPTLONG], 1, [Define to 1 if getopt_long is available.]))
886
887 ################################################################################
888 dnl -- Check for readline (Shamelessly copied from parted 1.4.17)
889 if test x$READLINE != xno; then
890 rl_found=yes
891 AC_CHECK_LIB([readline], [readline], , [rl_found=no])
892 test x$READLINE:$rl_found = xyes:no &&
893 AC_MSG_ERROR(
894 GNU Readline could not be found which is required for the
895 --enable-readline option (which is enabled by default). Either disable readline
896 support with --disable-readline or download and install readline from:
897 ftp.gnu.org/gnu/readline
898 Note: if you are using precompiled packages you will also need the development
899 package as well (which may be called readline-devel or something similar).
900 )
901 if test $rl_found = yes; then
902 AC_CHECK_FUNCS([rl_completion_matches])
903 AC_DEFINE([READLINE_SUPPORT], 1,
904 [Define to 1 to include the LVM readline shell.])
905 fi
906 fi
907
908 ################################################################################
909 dnl -- Internationalisation stuff
910 AC_MSG_CHECKING(whether to enable internationalisation)
911 AC_ARG_ENABLE(nls, [ --enable-nls Enable Native Language Support],
912 INTL=$enableval, INTL=no)
913 AC_MSG_RESULT($INTL)
914
915 if test x$INTL = xyes; then
916 # FIXME - Move this - can be device-mapper too
917 INTL_PACKAGE="lvm2"
918 AC_PATH_PROG(MSGFMT, msgfmt)
919 if [[ "x$MSGFMT" == x ]];
920 then AC_MSG_ERROR(
921 msgfmt not found in path $PATH
922 )
923 fi;
924
925 AC_ARG_WITH(localedir,
926 [ --with-localedir=DIR Translation files in DIR [[PREFIX/share/locale]] ],
927 [ LOCALEDIR="$withval" ],
928 [ LOCALEDIR='${prefix}/share/locale' ])
929 fi
930
931 ################################################################################
932 AC_ARG_WITH(confdir,
933 [ --with-confdir=DIR Configuration files in DIR [[/etc]]],
934 [ CONFDIR="$withval" ],
935 [ CONFDIR='/etc' ])
936
937 AC_ARG_WITH(staticdir,
938 [ --with-staticdir=DIR Static binary in DIR [[EPREFIX/sbin]]],
939 [ STATICDIR="$withval" ],
940 [ STATICDIR='${exec_prefix}/sbin' ])
941
942 AC_ARG_WITH(usrlibdir,
943 [ --with-usrlibdir=DIR],
944 [ usrlibdir="$withval"],
945 [ usrlibdir='${prefix}/lib' ])
946
947 AC_ARG_WITH(usrsbindir,
948 [ --with-usrsbindir=DIR],
949 [ usrsbindir="$withval"],
950 [ usrsbindir='${prefix}/sbin' ])
951
952 ################################################################################
953 AC_ARG_WITH(udev_prefix,
954 [ --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [[EPREFIX]]],
955 [ udev_prefix="$withval"],
956 [ udev_prefix='${exec_prefix}' ])
957
958 AC_ARG_WITH(udevdir,
959 [ --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]],
960 [ udevdir="$withval"],
961 [ udevdir='${udev_prefix}/lib/udev/rules.d' ])
962
963 ################################################################################
964 dnl -- Ensure additional headers required
965 if test x$READLINE = xyes; then
966 AC_CHECK_HEADERS(readline/readline.h readline/history.h,,AC_MSG_ERROR(bailing out))
967 fi
968
969 if test x$CLVMD != xnone; then
970 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))
971 AC_CHECK_FUNCS(dup2 getmntent memmove select socket,,AC_MSG_ERROR(bailing out))
972 AC_FUNC_GETMNTENT
973 # AC_FUNC_REALLOC
974 AC_FUNC_SELECT_ARGTYPES
975 fi
976
977 if test x$CLUSTER != xnone; then
978 AC_CHECK_HEADERS(sys/socket.h sys/un.h,,AC_MSG_ERROR(bailing out))
979 AC_CHECK_FUNCS(socket,,AC_MSG_ERROR(bailing out))
980 fi
981
982 if test x$HAVE_LIBDL = xyes; then
983 AC_CHECK_HEADERS(dlfcn.h,,AC_MSG_ERROR(bailing out))
984 fi
985
986 if test x$INTL = xyes; then
987 AC_CHECK_HEADERS(libintl.h,,AC_MSG_ERROR(bailing out))
988 fi
989
990 if test x$HAVE_SELINUX = xyes; then
991 AC_CHECK_HEADERS(selinux/selinux.h,,AC_MSG_ERROR(bailing out))
992 fi
993
994 if test x$UDEV_SYNC = xyes; then
995 AC_CHECK_HEADERS(sys/ipc.h sys/sem.h,,AC_MSG_ERROR(bailing out))
996 fi
997
998 ################################################################################
999 AC_PATH_PROG(MODPROBE_CMD, modprobe)
1000
1001 if test x$MODPROBE_CMD != x; then
1002 AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
1003 fi
1004
1005 ################################################################################
1006 dnl -- dmeventd pidfile and executable path
1007 AH_TEMPLATE(DMEVENTD_PIDFILE, [Path to dmeventd pidfile.])
1008 if test "$BUILD_DMEVENTD" = yes; then
1009 AC_ARG_WITH(dmeventd-pidfile,
1010 [ --with-dmeventd-pidfile=PATH dmeventd pidfile [[/var/run/dmeventd.pid]] ],
1011 [ AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE,"$withval") ],
1012 [ AC_DEFINE_UNQUOTED(DMEVENTD_PIDFILE,"/var/run/dmeventd.pid") ])
1013 fi
1014
1015 AH_TEMPLATE(DMEVENTD_PATH, [Path to dmeventd binary.])
1016 if test "$BUILD_DMEVENTD" = yes; then
1017 dmeventd_prefix="$exec_prefix"
1018 if test "x$dmeventd_prefix" = "xNONE"; then
1019 dmeventd_prefix="$prefix"
1020 fi
1021 if test "x$dmeventd_prefix" = "xNONE"; then
1022 dmeventd_prefix=""
1023 fi
1024 AC_ARG_WITH(dmeventd-path,
1025 [ --with-dmeventd-path=PATH dmeventd path [[EPREFIX/sbin/dmeventd]] ],
1026 [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$withval") ],
1027 [ AC_DEFINE_UNQUOTED(DMEVENTD_PATH,"$dmeventd_prefix/sbin/dmeventd") ])
1028 fi
1029
1030 ################################################################################
1031 dnl -- which kernel interface to use (ioctl only)
1032 AC_MSG_CHECKING(for kernel interface choice)
1033 AC_ARG_WITH(interface,
1034 [ --with-interface=IFACE Choose kernel interface (ioctl) [[ioctl]] ],
1035 [ interface="$withval" ],
1036 [ interface=ioctl ])
1037 if [[ "x$interface" != xioctl ]];
1038 then
1039 AC_MSG_ERROR(--with-interface=ioctl required. fs no longer supported.)
1040 fi
1041 AC_MSG_RESULT($interface)
1042
1043 ################################################################################
1044 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
1045 AC_DEFINE_UNQUOTED(DM_LIB_VERSION, $DM_LIB_VERSION, [Library version])
1046
1047 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[[-. ]]' '{printf "%s.%s.%s",$1,$2,$3}'`
1048
1049 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
1050
1051 VER=`cat "$srcdir"/VERSION`
1052 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
1053 VER=`echo "$VER" | $AWK '{print $1}'`
1054 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
1055 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
1056 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
1057 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
1058 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[[(.]]' '{print $3}'`
1059 LVM_LIBAPI=`echo "$VER" | $AWK -F '[[()]]' '{print $2}'`
1060
1061 ################################################################################
1062 AC_SUBST(APPLIB)
1063 AC_SUBST(BUILD_CMIRRORD)
1064 AC_SUBST(BUILD_DMEVENTD)
1065 AC_SUBST(CCS_CFLAGS)
1066 AC_SUBST(CCS_LIBS)
1067 AC_SUBST(CFLAGS)
1068 AC_SUBST(CFLOW_CMD)
1069 AC_SUBST(CLDFLAGS)
1070 AC_SUBST(CLDNOWHOLEARCHIVE)
1071 AC_SUBST(CLDWHOLEARCHIVE)
1072 AC_SUBST(CLUSTER)
1073 AC_SUBST(CLVMD)
1074 AC_SUBST(CMAN_CFLAGS)
1075 AC_SUBST(CMAN_LIBS)
1076 AC_SUBST(CMDLIB)
1077 AC_SUBST(CONFDB_CFLAGS)
1078 AC_SUBST(CONFDB_LIBS)
1079 AC_SUBST(CONFDIR)
1080 AC_SUBST(COPTIMISE_FLAG)
1081 AC_SUBST(CPG_CFLAGS)
1082 AC_SUBST(CPG_LIBS)
1083 AC_SUBST(CSCOPE_CMD)
1084 AC_SUBST(DEBUG)
1085 AC_SUBST(DEVMAPPER)
1086 AC_SUBST(DLM_CFLAGS)
1087 AC_SUBST(DLM_LIBS)
1088 AC_SUBST(DMEVENTD)
1089 AC_SUBST(DM_COMPAT)
1090 AC_SUBST(DM_DEVICE_GID)
1091 AC_SUBST(DM_DEVICE_MODE)
1092 AC_SUBST(DM_DEVICE_UID)
1093 AC_SUBST(DM_IOCTLS)
1094 AC_SUBST(DM_LIB_VERSION)
1095 AC_SUBST(DM_LIB_PATCHLEVEL)
1096 AC_SUBST(FSADM)
1097 AC_SUBST(GROUP)
1098 AC_SUBST(GULM_CFLAGS)
1099 AC_SUBST(GULM_LIBS)
1100 AC_SUBST(HAVE_LIBDL)
1101 AC_SUBST(HAVE_REALTIME)
1102 AC_SUBST(HAVE_SELINUX)
1103 AC_SUBST(INTL)
1104 AC_SUBST(INTL_PACKAGE)
1105 AC_SUBST(JOBS)
1106 AC_SUBST(LDDEPS)
1107 AC_SUBST(LIBS)
1108 AC_SUBST(LIB_SUFFIX)
1109 AC_SUBST(LOCALEDIR)
1110 AC_SUBST(LVM1)
1111 AC_SUBST(LVM1_FALLBACK)
1112 AC_SUBST(LVM_VERSION)
1113 AC_SUBST(LVM_LIBAPI)
1114 AC_SUBST(LVM_MAJOR)
1115 AC_SUBST(LVM_MINOR)
1116 AC_SUBST(LVM_PATCHLEVEL)
1117 AC_SUBST(LVM_RELEASE)
1118 AC_SUBST(LVM_RELEASE_DATE)
1119 AC_SUBST(MIRRORS)
1120 AC_SUBST(MSGFMT)
1121 AC_SUBST(OWNER)
1122 AC_SUBST(PKGCONFIG)
1123 AC_SUBST(POOL)
1124 AC_SUBST(QUORUM_CFLAGS)
1125 AC_SUBST(QUORUM_LIBS)
1126 AC_SUBST(SACKPT_CFLAGS)
1127 AC_SUBST(SACKPT_LIBS)
1128 AC_SUBST(SALCK_CFLAGS)
1129 AC_SUBST(SALCK_LIBS)
1130 AC_SUBST(SELINUX_LIBS)
1131 AC_SUBST(SNAPSHOTS)
1132 AC_SUBST(STATICDIR)
1133 AC_SUBST(STATIC_LINK)
1134 AC_SUBST(UDEV_RULES)
1135 AC_SUBST([LIB_PTHREAD])
1136 AC_SUBST(interface)
1137 AC_SUBST(kerneldir)
1138 AC_SUBST(missingkernel)
1139 AC_SUBST(kernelvsn)
1140 AC_SUBST(tmpdir)
1141 AC_SUBST(udev_prefix)
1142 AC_SUBST(udevdir)
1143 AC_SUBST(usrlibdir)
1144 AC_SUBST(usrsbindir)
1145
1146 ################################################################################
1147 dnl -- First and last lines should not contain files to generate in order to
1148 dnl -- keep utility scripts running properly
1149 AC_CONFIG_FILES([
1150 Makefile
1151 make.tmpl
1152 daemons/Makefile
1153 daemons/clvmd/Makefile
1154 daemons/cmirrord/Makefile
1155 daemons/dmeventd/Makefile
1156 daemons/dmeventd/libdevmapper-event.pc
1157 daemons/dmeventd/plugins/Makefile
1158 daemons/dmeventd/plugins/mirror/Makefile
1159 daemons/dmeventd/plugins/snapshot/Makefile
1160 doc/Makefile
1161 include/.symlinks
1162 include/Makefile
1163 lib/Makefile
1164 lib/format1/Makefile
1165 lib/format_pool/Makefile
1166 lib/locking/Makefile
1167 lib/mirror/Makefile
1168 lib/misc/lvm-version.h
1169 lib/snapshot/Makefile
1170 libdm/Makefile
1171 libdm/libdevmapper.pc
1172 liblvm/Makefile
1173 liblvm/liblvm2app.pc
1174 man/Makefile
1175 po/Makefile
1176 scripts/clvmd_init_red_hat
1177 scripts/lvm2_monitoring_init_red_hat
1178 scripts/Makefile
1179 test/Makefile
1180 test/api/Makefile
1181 tools/Makefile
1182 udev/Makefile
1183 ])
1184 AC_OUTPUT
1185
1186 if test x$ODIRECT != xyes; then
1187 AC_MSG_WARN(Warning: O_DIRECT disabled: low-memory pvmove may lock up)
1188 fi
This page took 0.088975 seconds and 6 git commands to generate.