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

Diff of /eclass/autotools.eclass

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

Revision 1.147 Revision 1.148
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.147 2012/06/08 04:55:39 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.148 2012/07/24 19:22:22 grobian 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
290# Runs libtoolize. If --install is the first arg, automatically drop it if 290# Runs libtoolize. If --install is the first arg, automatically drop it if
291# the active libtool version doesn't support it. 291# the active libtool version doesn't support it.
292# 292#
293# Note the '_' prefix .. to not collide with elibtoolize() from libtool.eclass. 293# Note the '_' prefix .. to not collide with elibtoolize() from libtool.eclass.
294_elibtoolize() { 294_elibtoolize() {
295 local LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} 295 local LIBTOOLIZE=${LIBTOOLIZE:-$(type -P glibtoolize > /dev/null && echo glibtoolize || echo libtoolize)}
296 type -P glibtoolize > /dev/null && LIBTOOLIZE=glibtoolize
297 296
298 [[ -f GNUmakefile.am || -f Makefile.am ]] && set -- "$@" --automake 297 [[ -f GNUmakefile.am || -f Makefile.am ]] && set -- "$@" --automake
299 if [[ $1 == "--install" ]] ; then 298 if [[ $1 == "--install" ]] ; then
300 ${LIBTOOLIZE} -n --install >& /dev/null || shift 299 ${LIBTOOLIZE} -n --install >& /dev/null || shift
301 fi 300 fi

Legend:
Removed from v.1.147  
changed lines
  Added in v.1.148

  ViewVC Help
Powered by ViewVC 1.1.20