/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.129 Revision 1.130
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.129 2012/03/22 15:14:53 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.130 2012/03/22 19:16:22 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
105# @DEFAULT_UNSET 105# @DEFAULT_UNSET
106# @DESCRIPTION: 106# @DESCRIPTION:
107# Additional options to pass to automake during 107# Additional options to pass to automake during
108# eautoreconf call. 108# eautoreconf call.
109 109
110# @ECLASS-VARIABLE: AT_NOEACLOCAL
111# @DEFAULT_UNSET
112# @DESCRIPTION:
113# Don't run eaclocal command if set to 'yes',
114# useful when eaclocal needs to be ran with
115# particular options
116
117# @ECLASS-VARIABLE: AT_NOEAUTOCONF
118# @DEFAULT_UNSET
119# @DESCRIPTION:
120# Don't run eautoconf command if set to 'yes',
121# useful when eautoconf needs to be ran with
122# particular options
123
124# @ECLASS-VARIABLE: AT_NOEAUTOMAKE 110# @ECLASS-VARIABLE: AT_NOEAUTOMAKE
125# @DEFAULT_UNSET 111# @DEFAULT_UNSET
126# @DESCRIPTION: 112# @DESCRIPTION:
127# Don't run eautomake command if set to 'yes', 113# Don't run eautomake command if set to 'yes'; only used to workaround
128# useful when eautomake needs to be ran with 114# broken packages. Generally you should, instead, fix the package to
129# particular options 115# not call AM_INIT_AUTOMAKE if it doesn't actually use automake.
130 116
131# @ECLASS-VARIABLE: AT_NOELIBTOOLIZE 117# @ECLASS-VARIABLE: AT_NOELIBTOOLIZE
132# @DEFAULT_UNSET 118# @DEFAULT_UNSET
133# @DESCRIPTION: 119# @DESCRIPTION:
134# Don't run elibtoolize command if set to 'yes', 120# Don't run elibtoolize command if set to 'yes',
170 done 156 done
171 fi 157 fi
172 158
173 auxdir=$(autotools_get_auxdir) 159 auxdir=$(autotools_get_auxdir)
174 160
175 if [[ ${AT_NOEACLOCAL} != "yes" ]]; then
176 einfo "Running eautoreconf in '${PWD}' ..." 161 einfo "Running eautoreconf in '${PWD}' ..."
177 [[ -n ${auxdir} ]] && mkdir -p ${auxdir} 162 [[ -n ${auxdir} ]] && mkdir -p ${auxdir}
178 eaclocal 163 eaclocal
179 fi
180 [[ ${CHOST} == *-darwin* ]] && g=g 164 [[ ${CHOST} == *-darwin* ]] && g=g
181 if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then 165 if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then
182 _elibtoolize --copy --force --install 166 _elibtoolize --copy --force --install
183 else 167 else
184 _elibtoolize --copy --force 168 _elibtoolize --copy --force
185 fi 169 fi
186 [[ ${AT_NOEAUTOCONF} != "yes" ]] && eautoconf 170 eautoconf
187 [[ ${AT_NOEAUTOHEADER} != "yes" ]] && eautoheader 171 eautoheader
188 [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS} 172 [[ ${AT_NOEAUTOMAKE} != "yes" ]] && FROM_EAUTORECONF="yes" eautomake ${AM_OPTS}
189 173
190 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0 174 [[ ${AT_NOELIBTOOLIZE} == "yes" ]] && return 0
191 175
192 # Call it here to prevent failures due to elibtoolize called _before_ 176 # Call it here to prevent failures due to elibtoolize called _before_

Legend:
Removed from v.1.129  
changed lines
  Added in v.1.130

  ViewVC Help
Powered by ViewVC 1.1.20