[gnome-power-manager] configure.ac: support VPATH builds and use recommended quoting



commit 9ee7ac24655361f3bbbf1df888624ab9d800aae6
Author: Javier JardÃn <jjardon gnome org>
Date:   Tue Jun 21 02:20:33 2011 +0100

    configure.ac: support VPATH builds and use recommended quoting

 configure.ac |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e0f0d77..e46ded4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,15 +26,17 @@ dnl ---------------------------------------------------------------------------
 dnl - Use strict options (default enabled for devs, disabled in releases)
 dnl ---------------------------------------------------------------------------
 dnl if .git directory is present, considering we are working in the repository
-if test -d ".git"; then
+if test -d "$(srcdir)/.git"; then
 	default_strict=yes
 else
 	default_strict=no
 fi
 
-AC_ARG_ENABLE(strict, AS_HELP_STRING([--enable-strict],
-		[Enable strict compilation options]), enable_strict=$enableval,
-		enable_strict=$default_strict)
+AC_ARG_ENABLE([strict],
+              [AS_HELP_STRING([--enable-strict],
+                              [Enable strict compilation options])],
+              [enable_strict=$enableval],
+              [enable_strict=$default_strict])
 if test x$enable_strict != xno; then
 	CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
 	CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]