diff options
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r-- | eclass/autotools.eclass | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 98443d4ade..c62967642b 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.150 2013/01/05 02:27:16 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.151 2013/01/28 04:13:00 vapier Exp $ # @ECLASS: autotools.eclass # @MAINTAINER: @@ -541,15 +541,20 @@ autotools_check_macro_val() { } _autotools_m4dir_include() { - local x include_opts + local x include_opts flag + + # Use the right flag to autoconf based on the version #448986 + [[ ${WANT_AUTOCONF} == "2.1" ]] \ + && flag="l" \ + || flag="I" for x in "$@" ; do case ${x} in # We handle it below - -I) ;; + -${flag}) ;; *) [[ ! -d ${x} ]] && ewarn "autotools.eclass: '${x}' does not exist" - include_opts+=" -I ${x}" + include_opts+=" -${flag} ${x}" ;; esac done |