diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-12-28 18:17:05 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-12-28 18:17:05 +0000 |
commit | 960330317d39600546303103e47b7945c8fc147d (patch) | |
tree | 89414845b1f4c14667d24dbe3a47af4b96f48107 /eclass | |
parent | ~ppc keyworded (diff) | |
download | historical-960330317d39600546303103e47b7945c8fc147d.tar.gz historical-960330317d39600546303103e47b7945c8fc147d.tar.bz2 historical-960330317d39600546303103e47b7945c8fc147d.zip |
fix if ltmain.sh in CONFIG dir
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/libtool.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 558da06f96e5..2145242c878b 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.18 2002/12/16 02:36:05 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.19 2002/12/28 18:17:05 azarah Exp $ # This eclass patches ltmain.sh distributed with libtoolized packages with the # relink and portage patch @@ -154,8 +154,18 @@ elibtoolize() { eval ${y} $>${T}/elibtool.log elif [ "${portage}" = "no" ] && [ "${reversedeps}" = "no" ] && [ "${removeinternaldep}" = "no" ] then + # Sometimes ltmain.sh is in a subdirectory ... + if [ ! -f ${x}/configure.in -a ! -f ${x}/configure.ac ] + then + if [ -f ${x}/../configure.in -o -f ${x}/../configure.ac ] + then + cd ${x}/../ + fi + fi + ewarn "Cannot apply any patch, running libtoolize..." libtoolize --copy --force + cd ${x} break fi done |