I guess we can remove the ChangeLog from eclass/ directory since only
small portition of people seem to use it.
(Note that this is not targetted specifically to the author of this
particular commit, more of an general observation)
On 12/14/2011 09:15 PM, Mike Frysinger (vapier) wrote:
vapier 11/12/14 19:15:14
Modified: autotools.eclass
Log:
push down AT_M4DIR handling into autotools_run_tool to keep the callers simpler, and change the ordering with AT_SYS_M4DIR so that it comes after the ebuild/package settings rather than in the middle
# @FUNCTION: eautomake
@@ -320,6 +320,18 @@
ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
fi
+ # Process our own internal flags first
+ local autofail=true m4flags=false
+ while [[ -n $1 ]] ; do
+ case $1 in
+ --at-no-fail) autofail=false;;
+ --at-m4flags) m4flags=true;;
+ # whatever is left goes to the actual tool
+ *) break;;
+ esac
+ shift
+ done
+
autotools_env_setup
local STDERR_TARGET="${T}/$1.out"
@@ -334,13 +346,15 @@
done
fi
+ if ${m4flags} ; then
+ set -- $(autotools_m4dir_include) "$@" $(autotools_m4sysdir_include)
+ fi
+
printf "***** $1 *****
***** PWD: ${PWD}
***** $*
-autotools_m4dir_include() {
+_autotools_m4dir_include() {
local x include_opts
- for x in ${AT_M4DIR} $(eval echo ${AT_SYS_M4DIR}) ; do
- case "${x}" in
- "-I")
- # We handle it below
- ;;
+ for x in "$@" ; do
+ case ${x} in
+ # We handle it below
+ -I) ;;
*)
[[ ! -d ${x} ]]&& ewarn "autotools.eclass: '${x}' does not exist"
include_opts+=" -I ${x}"
@@ -397,5 +410,7 @@