| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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.17 2005/08/31 01:54:15 azarah Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.19 2005/09/02 08:23:30 azarah Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
5 | # Author: Diego Pettenò <flameeyes@gentoo.org> |
| 6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
6 | # Enhancements: Martin Schlemmer <azarah@gentoo.org> |
| 7 | # |
7 | # |
| 8 | # This eclass is for handling autotooled software packages that |
8 | # This eclass is for handling autotooled software packages that |
| … | |
… | |
| 102 | [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \ |
102 | [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \ |
| 103 | autotools_run_tool aclocal "$@" ${aclocal_opts} |
103 | autotools_run_tool aclocal "$@" ${aclocal_opts} |
| 104 | } |
104 | } |
| 105 | |
105 | |
| 106 | _elibtoolize() { |
106 | _elibtoolize() { |
|
|
107 | local opts |
|
|
108 | |
| 107 | # Check if we should run libtoolize |
109 | # Check if we should run libtoolize |
| 108 | [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 |
110 | [[ -n $(autotools_check_macro "AC_PROG_LIBTOOL") ]] || return 0 |
| 109 | use userland_Darwin && LIBTOOLIZE="glibtoolize" |
111 | |
|
|
112 | [[ -f Makefile.am ]] && opts="--automake" |
|
|
113 | |
|
|
114 | [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize" |
| 110 | autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" |
115 | autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts} |
| 111 | |
116 | |
| 112 | # Need to rerun aclocal |
117 | # Need to rerun aclocal |
| 113 | eaclocal |
118 | eaclocal |
| 114 | } |
119 | } |
| 115 | |
120 | |