| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 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.74 2008/04/22 22:38:22 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.75 2008/04/24 03:15:43 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Maintainer: base-system@gentoo.org |
5 | # Maintainer: base-system@gentoo.org |
| 6 | # |
6 | # |
| 7 | # This eclass is for handling autotooled software packages that |
7 | # This eclass is for handling autotooled software packages that |
| 8 | # needs to regenerate their build scripts. |
8 | # needs to regenerate their build scripts. |
| … | |
… | |
| 119 | |
119 | |
| 120 | local amflags_file |
120 | local amflags_file |
| 121 | for amflags_file in GNUmakefile.am Makefile.am GNUmakefile.in Makefile.in ; do |
121 | for amflags_file in GNUmakefile.am Makefile.am GNUmakefile.in Makefile.in ; do |
| 122 | [[ -e ${amflags_file} ]] || continue |
122 | [[ -e ${amflags_file} ]] || continue |
| 123 | aclocal_opts=$(sed -n '/^ACLOCAL_AMFLAGS[[:space:]]*=/s:[^=]*=::p' ${amflags_file}) |
123 | aclocal_opts=$(sed -n '/^ACLOCAL_AMFLAGS[[:space:]]*=/s:[^=]*=::p' ${amflags_file}) |
|
|
124 | eval aclocal_opts=\"${aclocal_opts}\" |
| 124 | break |
125 | break |
| 125 | done |
126 | done |
| 126 | |
127 | |
| 127 | if [[ -n ${AT_M4DIR} ]] ; then |
128 | if [[ -n ${AT_M4DIR} ]] ; then |
| 128 | for x in ${AT_M4DIR} ; do |
129 | for x in ${AT_M4DIR} ; do |