From fb6e8b4ca7aef98ddb274c6e7c633e70eac95d75 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Fri, 2 Sep 2005 08:23:30 +0000 Subject: [PATCH] Add --automake to libtoolize if we are using automake. --- eclass/autotools.eclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 6ae51884fbd3..ea6dbe043190 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.18 2005/08/31 20:17:43 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.19 2005/09/02 08:23:30 azarah Exp $ # # Author: Diego Pettenò # Enhancements: Martin Schlemmer @@ -104,10 +104,15 @@ eaclocal() { } _elibtoolize() { + local opts + # Check if we should run libtoolize [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 + + [[ -f Makefile.am ]] && opts="--automake" + [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize" - autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" + autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts} # Need to rerun aclocal eaclocal -- 2.26.2