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

Diff of /eclass/autotools.eclass

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

Revision 1.33 Revision 1.34
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.33 2006/03/19 22:35:50 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.34 2006/03/28 08:11:46 flameeyes Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# Enhancements: Martin Schlemmer <azarah@gentoo.org> 6# Enhancements: Martin Schlemmer <azarah@gentoo.org>
7# 7#
8# This eclass is for handling autotooled software packages that 8# This eclass is for handling autotooled software packages that
107 autotools_run_tool aclocal "$@" ${aclocal_opts} 107 autotools_run_tool aclocal "$@" ${aclocal_opts}
108} 108}
109 109
110_elibtoolize() { 110_elibtoolize() {
111 local opts 111 local opts
112 local lttest
112 113
113 # Check if we should run libtoolize 114 # Check if we should run libtoolize (AM_PROG_LIBTOOL is an older macro,
114 [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 115 # check for both it and the current AC_PROG_LIBTOOL)
116 lttest="$(autotools_check_macro "AC_PROG_LIBTOOL")$(autotools_check_macro "AM_PROG_LIBTOOL")"
117 [[ -n $lttest ]] || return 0
115 118
116 [[ -f Makefile.am ]] && opts="--automake" 119 [[ -f Makefile.am ]] && opts="--automake"
117 120
118 [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize" 121 [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize"
119 autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts} 122 autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts}

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20