/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.150 Revision 1.151
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.150 2013/01/05 02:27:16 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.151 2013/01/28 04:13:00 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
535 535
536 return 0 536 return 0
537} 537}
538 538
539_autotools_m4dir_include() { 539_autotools_m4dir_include() {
540 local x include_opts 540 local x include_opts flag
541
542 # Use the right flag to autoconf based on the version #448986
543 [[ ${WANT_AUTOCONF} == "2.1" ]] \
544 && flag="l" \
545 || flag="I"
541 546
542 for x in "$@" ; do 547 for x in "$@" ; do
543 case ${x} in 548 case ${x} in
544 # We handle it below 549 # We handle it below
545 -I) ;; 550 -${flag}) ;;
546 *) 551 *)
547 [[ ! -d ${x} ]] && ewarn "autotools.eclass: '${x}' does not exist" 552 [[ ! -d ${x} ]] && ewarn "autotools.eclass: '${x}' does not exist"
548 include_opts+=" -I ${x}" 553 include_opts+=" -${flag} ${x}"
549 ;; 554 ;;
550 esac 555 esac
551 done 556 done
552 557
553 echo ${include_opts} 558 echo ${include_opts}

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

  ViewVC Help
Powered by ViewVC 1.1.20