tweak default variable value so eclass-manpages can figure things out
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Mar 2010 17:43:11 +0000 (17:43 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 7 Mar 2010 17:43:11 +0000 (17:43 +0000)
eclass/autotools.eclass

index fafecc500b3c1374af062a816f0737e4d6546110..cba6e0e073936b6a5c8f124b8e481276acd614bd 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.93 2010/03/07 17:42:39 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.94 2010/03/07 17:43:11 vapier Exp $
 
 # @ECLASS: autotools.eclass
 # @MAINTAINER:
@@ -17,12 +17,12 @@ inherit eutils libtool
 # @ECLASS-VARIABLE: WANT_AUTOCONF
 # @DESCRIPTION:
 # The major version of autoconf your package needs
-[[ -z ${WANT_AUTOCONF} ]] && WANT_AUTOCONF="latest"
+: ${WANT_AUTOCONF:=latest}
 
 # @ECLASS-VARIABLE: WANT_AUTOMAKE
 # @DESCRIPTION:
 # The major version of automake your package needs
-[[ -z ${WANT_AUTOMAKE} ]] && WANT_AUTOMAKE="latest"
+: ${WANT_AUTOMAKE:=latest}
 
 _automake_atom="sys-devel/automake"
 _autoconf_atom="sys-devel/autoconf"
@@ -56,6 +56,7 @@ RDEPEND=""
 # Set to 'no' to disable automatically adding to DEPEND.  This lets
 # ebuilds former conditional depends by using ${AUTOTOOLS_DEPEND} in
 # their own DEPEND string.
+: ${AUTOTOOLS_AUTO_DEPEND:=yes}
 if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
        DEPEND=${AUTOTOOLS_DEPEND}
 fi
@@ -77,7 +78,7 @@ unset _automake_atom _autoconf_atom
 # @ECLASS-VARIABLE: AT_M4DIR
 # @DESCRIPTION:
 # Additional director(y|ies) aclocal should search
-AT_M4DIR=${AT_M4DIR:-${M4DIR}}
+: ${AT_M4DIR:=${M4DIR}}
 AT_GNUCONF_UPDATE="no"