blob: df81bc610795653399dbf959f26a29c1b2217e79 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "A GNU tool that produce shell scripts to automatically configure software"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \
3configure software source code packages. Autoconf creates a configuration script for a package from a template \
4file that lists the operating system features that the package can use, in the form of M4 macro calls."
5LICENSE = "GPLv3"
6HOMEPAGE = "http://www.gnu.org/software/autoconf/"
7SECTION = "devel"
8DEPENDS += "m4-native"
9DEPENDS_class-native = "m4-native gnu-config-native"
10DEPENDS_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config"
11RDEPENDS_${PN} = "m4 gnu-config \
12 perl \
13 perl-module-carp \
14 perl-module-constant \
15 perl-module-errno \
16 perl-module-exporter \
17 perl-module-file-basename \
18 perl-module-file-compare \
19 perl-module-file-copy \
20 perl-module-file-glob \
21 perl-module-file-path \
22 perl-module-file-stat \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 perl-module-file-find \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 perl-module-getopt-long \
25 perl-module-io-file \
26 perl-module-posix \
27 perl-module-data-dumper \
28 "
29RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030RDEPENDS_${PN}_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
32SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \
33 file://program_prefix.patch"
34
35inherit autotools texinfo
36
Brad Bishop6e60e8b2018-02-01 10:27:11 -050037PERL = "${USRBINPATH}/perl"
38PERL_class-native = "/usr/bin/env perl"
39PERL_class-nativesdk = "/usr/bin/env perl"
40
41CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042
43do_configure() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040044 # manually install a newer config.guess/.sub
45 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/build-aux
46 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/build-aux
47
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048 oe_runconf
49}
50
51do_install_append() {
52 rm -rf ${D}${datadir}/emacs
53}