public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: prajnoha@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 ./configure lib/misc/configure.h.in
Date: Tue, 23 Mar 2010 14:44:00 -0000	[thread overview]
Message-ID: <20100323144443.2870.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2010-03-23 14:44:43

Modified files:
	.              : configure 
	lib/misc       : configure.h.in 

Log message:
	Autoreconf.
	
	(Strictly require libudev if udev_sync is used)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.diff?cvsroot=lvm2&r1=1.122&r2=1.123
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/configure.h.in.diff?cvsroot=lvm2&r1=1.18&r2=1.19

--- LVM2/configure	2010/03/18 13:24:35	1.122
+++ LVM2/configure	2010/03/23 14:44:42	1.123
@@ -12209,28 +12209,6 @@
 $as_echo "$UDEV_SYNC" >&6; }
 
 if test x$UDEV_SYNC = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define UDEV_SYNC_SUPPORT 1
-_ACEOF
-
-fi
-
-{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
-$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
-# Check whether --enable-udev_rules was given.
-if test "${enable_udev_rules+set}" = set; then
-  enableval=$enable_udev_rules; UDEV_RULES=$enableval
-else
-  UDEV_RULES=$UDEV_SYNC
-fi
-
-{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
-$as_echo "$UDEV_RULES" >&6; }
-
-################################################################################
-
-if test x$UDEV_SYNC = xyes; then
 	{ $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
@@ -12297,26 +12275,32 @@
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
-  HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
+  UDEV_LIBS="-ludev"
 else
-  HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
+  { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
+$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
+   { (exit 1); exit 1; }; }
 fi
 
 
-		if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
-
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
+#define UDEV_SYNC_SUPPORT 1
 _ACEOF
 
-			UDEV_LIBS="-ludev"
-		else
-			UDEV_LIBS=
-			{ $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
-$as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
-		fi
 fi
 
+{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
+$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
+# Check whether --enable-udev_rules was given.
+if test "${enable_udev_rules+set}" = set; then
+  enableval=$enable_udev_rules; UDEV_RULES=$enableval
+else
+  UDEV_RULES=$UDEV_SYNC
+fi
+
+{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
+$as_echo "$UDEV_RULES" >&6; }
+
 ################################################################################
 # Check whether --enable-compat was given.
 if test "${enable_compat+set}" = set; then
--- LVM2/lib/misc/configure.h.in	2010/03/18 13:24:36	1.18
+++ LVM2/lib/misc/configure.h.in	2010/03/23 14:44:42	1.19
@@ -347,10 +347,6 @@
 /* Define to 1 if you have the <time.h> header file. */
 #undef HAVE_TIME_H
 
-/* Define to 1 if libudev's udev_queue_get_udev_is_active function is
-   available. */
-#undef HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE
-
 /* Define to 1 if you have the `uname' function. */
 #undef HAVE_UNAME
 


             reply	other threads:[~2010-03-23 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23 14:44 prajnoha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-15 11:20 prajnoha
2011-08-09 18:14 agk
2010-12-13 11:03 mbroz
2008-10-31 22:12 agk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100323144443.2870.qmail@sourceware.org \
    --to=prajnoha@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).