| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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-utils.eclass,v 1.48 2012/02/04 09:26:16 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.50 2012/05/22 14:29:06 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: autotools-utils.eclass |
5 | # @ECLASS: autotools-utils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
| 8 | # Michał Górny <mgorny@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
| … | |
… | |
| 325 | # gnome-doc |
325 | # gnome-doc |
| 326 | if [[ $(autotools_check_macro GNOME_DOC_INIT) ]]; then |
326 | if [[ $(autotools_check_macro GNOME_DOC_INIT) ]]; then |
| 327 | autotools_run_tool gnome-doc-prepare --copy --force |
327 | autotools_run_tool gnome-doc-prepare --copy --force |
| 328 | fi |
328 | fi |
| 329 | |
329 | |
| 330 | # We need to perform the check twice to know whether to run eaclocal. |
|
|
| 331 | # (_elibtoolize does that itself) |
|
|
| 332 | if [[ $(autotools_check_macro AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT) ]] |
330 | if [[ $(autotools_check_macro AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT) ]] |
| 333 | then |
331 | then |
| 334 | _elibtoolize --copy --force --install |
332 | _elibtoolize --copy --force --install |
| 335 | else |
333 | fi |
|
|
334 | |
| 336 | eaclocal |
335 | eaclocal |
| 337 | fi |
|
|
| 338 | |
|
|
| 339 | eautoconf |
336 | eautoconf |
| 340 | eautoheader |
337 | eautoheader |
| 341 | FROM_EAUTORECONF=sure eautomake |
338 | FROM_EAUTORECONF=sure eautomake |
| 342 | |
339 | |
| 343 | local x |
340 | local x |
| 344 | for x in $(autotools_get_subdirs); do |
341 | for x in $(autotools_check_macro_val AC_CONFIG_SUBDIRS); do |
| 345 | if [[ -d ${x} ]] ; then |
342 | if [[ -d ${x} ]] ; then |
| 346 | pushd "${x}" >/dev/null |
343 | pushd "${x}" >/dev/null |
| 347 | autotools-utils_autoreconf |
344 | autotools-utils_autoreconf |
| 348 | popd >/dev/null |
345 | popd >/dev/null |
| 349 | fi |
346 | fi |