| 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.73 2008/03/31 14:19:35 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.74 2008/04/22 22:38:22 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. |
| … | |
… | |
| 115 | # without e prefix. |
115 | # without e prefix. |
| 116 | # They also force installing the support files for safety. |
116 | # They also force installing the support files for safety. |
| 117 | eaclocal() { |
117 | eaclocal() { |
| 118 | local aclocal_opts |
118 | local aclocal_opts |
| 119 | |
119 | |
|
|
120 | local amflags_file |
|
|
121 | for amflags_file in GNUmakefile.am Makefile.am GNUmakefile.in Makefile.in ; do |
|
|
122 | [[ -e ${amflags_file} ]] || continue |
|
|
123 | aclocal_opts=$(sed -n '/^ACLOCAL_AMFLAGS[[:space:]]*=/s:[^=]*=::p' ${amflags_file}) |
|
|
124 | break |
|
|
125 | done |
|
|
126 | |
| 120 | if [[ -n ${AT_M4DIR} ]] ; then |
127 | if [[ -n ${AT_M4DIR} ]] ; then |
| 121 | for x in ${AT_M4DIR} ; do |
128 | for x in ${AT_M4DIR} ; do |
| 122 | case "${x}" in |
129 | case "${x}" in |
| 123 | "-I") |
130 | "-I") |
| 124 | # We handle it below |
131 | # We handle it below |