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

Diff of /eclass/autotools.eclass

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

Revision 1.128 Revision 1.129
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.128 2012/03/21 21:51:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.129 2012/03/22 15:14:53 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
292 for makefile_name in {GNUmakefile,{M,m}akefile}.am "" ; do 292 for makefile_name in {GNUmakefile,{M,m}akefile}.am "" ; do
293 [[ -f ${makefile_name} ]] && break 293 [[ -f ${makefile_name} ]] && break
294 done 294 done
295 295
296 if [[ -z ${makefile_name} ]] ; then 296 if [[ -z ${makefile_name} ]] ; then
297 if ! grep -qs AM_INIT_AUTOMAKE configure.?? ; then 297 # Really we should just use autotools_check_macro ...
298 local am_init_automake=$(sed -n '/AM_INIT_AUTOMAKE/{s:#.*::;s:\<dnl\>.*::;p}' configure.??)
299 if [[ ${am_init_automake} != *"AM_INIT_AUTOMAKE"* ]] ; then
298 return 0 300 return 0
299 fi 301 fi
300 302
301 elif [[ -z ${FROM_EAUTORECONF} && -f ${makefile_name%.am}.in ]]; then 303 elif [[ -z ${FROM_EAUTORECONF} && -f ${makefile_name%.am}.in ]]; then
302 local used_automake 304 local used_automake

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

  ViewVC Help
Powered by ViewVC 1.1.20