FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 09-22-2012, 04:17 PM
Dave Reisner
 
Default configure.ac: cleanup duplication in --enable-git-version

Avoid adding our own messaging, as autoconf will add this for us with
the result of the AC_CHECK_FILE test. Reuse the cache variable from
autoconf to set our local variable.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
configure.ac | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7fe696a..7c65a75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -424,13 +424,9 @@ AC_MSG_CHECKING(whether to use git version if available)
if test "x$wantgitver" = "xyes" ; then
AC_CHECK_PROGS([GIT], [git])
AC_CHECK_FILE([.git/], hasgitdir=yes)
+ usegitver=$ac_cv_file__git
if test $GIT -a "x$hasgitdir" = "xyes"; then
- AC_MSG_RESULT([yes])
- usegitver=yes
AC_DEFINE([USE_GIT_VERSION], , [Use GIT version in version string])
- else
- AC_MSG_RESULT([no, git or .git dir missing])
- usegitver=no
fi
else
AC_MSG_RESULT([no, disabled by configure])
--
1.7.12.1
 

Thread Tools




All times are GMT. The time now is 01:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org