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

Diff of /eclass/autotools.eclass

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

Revision 1.1.1.1 Revision 1.21
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.1.1.1 2005/11/30 09:59:24 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.21 2005/09/08 15:04:47 flameeyes 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
21# Variables: 21# Variables:
22# 22#
23# AT_M4DIR - Additional director(y|ies) aclocal should search 23# AT_M4DIR - Additional director(y|ies) aclocal should search
24# AT_GNUCONF_UPDATE - Should gnuconfig_update() be run (normally handled by 24# AT_GNUCONF_UPDATE - Should gnuconfig_update() be run (normally handled by
25# econf()) [yes|no] 25# econf()) [yes|no]
26# AM_OPTS - Additional options to pass to automake during
27# eautoreconf call.
28 26
29# Functions: 27# Functions:
30# 28#
31# eautoreconf() - Should do a full autoreconf - normally what most people 29# eautoreconf() - Should do a full autoreconf - normally what most people
32# will be interested in. Also should handle additional 30# will be interested in. Also should handle additional
64 62
65 eaclocal 63 eaclocal
66 _elibtoolize --copy --force 64 _elibtoolize --copy --force
67 eautoconf 65 eautoconf
68 eautoheader 66 eautoheader
69 eautomake ${AM_OPTS} 67 eautomake
70 68
71 # Normally run by econf() 69 # Normally run by econf()
72 [[ ${AT_GNUCONF_UPDATE} == "yes" ]] && gnuconfig_update 70 [[ ${AT_GNUCONF_UPDATE} == "yes" ]] && gnuconfig_update
73 71
74 return 0 72 return 0
101 ;; 99 ;;
102 esac 100 esac
103 done 101 done
104 fi 102 fi
105 103
106 [[ ! -f aclocal.m4 || -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \ 104 [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \
107 autotools_run_tool aclocal "$@" ${aclocal_opts} 105 autotools_run_tool aclocal "$@" ${aclocal_opts}
108} 106}
109 107
110_elibtoolize() { 108_elibtoolize() {
111 local opts 109 local opts
138 136
139 autotools_run_tool autoconf "$@" 137 autotools_run_tool autoconf "$@"
140} 138}
141 139
142eautomake() { 140eautomake() {
143 local extra_opts
144
145 [[ -f Makefile.am ]] || return 0 141 [[ -f Makefile.am ]] || return 0
146
147 [[ -f INSTALL && -f AUTHORS && -f ChangeLog ]] \
148 || extra_opts="${extra_opts} --foreign"
149
150 # --force-missing seems not to be recognized by some flavours of automake 142 # --force-missing seems not to be recognized by some flavours of automake
151 autotools_run_tool automake --add-missing --copy ${extra_opts} "$@" 143 autotools_run_tool automake --add-missing --copy "$@"
152} 144}
153 145
154 146
155 147
156# Internal function to run an autotools' tool 148# Internal function to run an autotools' tool

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20