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

Diff of /eclass/autotools.eclass

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

Revision 1.175 Revision 1.176
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 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.175 2015/05/20 05:57:38 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.176 2015/06/03 04:06:08 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
589 done 589 done
590 590
591 echo ${include_opts} 591 echo ${include_opts}
592} 592}
593autotools_m4dir_include() { _autotools_m4dir_include ${AT_M4DIR} ; } 593autotools_m4dir_include() { _autotools_m4dir_include ${AT_M4DIR} ; }
594autotools_m4sysdir_include() { _autotools_m4dir_include $(eval echo ${AT_SYS_M4DIR}) ; } 594autotools_m4sysdir_include() {
595 # First try to use the paths the system integrator has set up.
596 local paths=( $(eval echo ${AT_SYS_M4DIR}) )
597
598 if [[ ${#paths[@]} -eq 0 && -n ${SYSROOT} ]] ; then
599 # If they didn't give us anything, then default to the SYSROOT.
600 # This helps when cross-compiling.
601 local path="${SYSROOT}/usr/share/aclocal"
602 [[ -d ${path} ]] && paths+=( "${path}" )
603 fi
604 _autotools_m4dir_include "${paths[@]}"
605}
595 606
596fi 607fi

Legend:
Removed from v.1.175  
changed lines
  Added in v.1.176

  ViewVC Help
Powered by ViewVC 1.1.20