1*4882a593SmuzhiyunSUMMARY = "A GNU tool that produce shell scripts to automatically configure software" 2*4882a593SmuzhiyunDESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \ 3*4882a593Smuzhiyunconfigure software source code packages. Autoconf creates a configuration script for a package from a template \ 4*4882a593Smuzhiyunfile that lists the operating system features that the package can use, in the form of M4 macro calls." 5*4882a593SmuzhiyunLICENSE = "GPL-3.0-or-later" 6*4882a593SmuzhiyunHOMEPAGE = "http://www.gnu.org/software/autoconf/" 7*4882a593SmuzhiyunSECTION = "devel" 8*4882a593SmuzhiyunDEPENDS = "m4-native autoconf-native automake-native gnu-config-native help2man-native" 9*4882a593SmuzhiyunDEPENDS:remove:class-native = "autoconf-native automake-native help2man-native" 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=cc3f3a7596cb558bbd9eb7fbaa3ef16c \ 12*4882a593Smuzhiyun file://COPYINGv3;md5=1ebbd3e34237af26da5dc08a4e440464" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSRC_URI = "${GNU_MIRROR}/autoconf/${BP}.tar.gz \ 15*4882a593Smuzhiyun file://program_prefix.patch \ 16*4882a593Smuzhiyun file://autoreconf-exclude.patch \ 17*4882a593Smuzhiyun file://remove-usr-local-lib-from-m4.patch \ 18*4882a593Smuzhiyun file://preferbash.patch \ 19*4882a593Smuzhiyun file://autotest-automake-result-format.patch \ 20*4882a593Smuzhiyun file://man-host-perl.patch \ 21*4882a593Smuzhiyun file://0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch \ 22*4882a593Smuzhiyun " 23*4882a593SmuzhiyunSRC_URI:append:class-native = " file://no-man.patch" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunSRC_URI[sha256sum] = "431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c" 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunRDEPENDS:${PN} = "m4 gnu-config \ 28*4882a593Smuzhiyun perl \ 29*4882a593Smuzhiyun perl-module-bytes \ 30*4882a593Smuzhiyun perl-module-carp \ 31*4882a593Smuzhiyun perl-module-constant \ 32*4882a593Smuzhiyun perl-module-data-dumper \ 33*4882a593Smuzhiyun perl-module-errno \ 34*4882a593Smuzhiyun perl-module-exporter \ 35*4882a593Smuzhiyun perl-module-file-basename \ 36*4882a593Smuzhiyun perl-module-file-compare \ 37*4882a593Smuzhiyun perl-module-file-copy \ 38*4882a593Smuzhiyun perl-module-file-find \ 39*4882a593Smuzhiyun perl-module-file-glob \ 40*4882a593Smuzhiyun perl-module-file-path \ 41*4882a593Smuzhiyun perl-module-file-spec \ 42*4882a593Smuzhiyun perl-module-file-spec-unix \ 43*4882a593Smuzhiyun perl-module-file-stat \ 44*4882a593Smuzhiyun perl-module-file-temp \ 45*4882a593Smuzhiyun perl-module-getopt-long \ 46*4882a593Smuzhiyun perl-module-io-file \ 47*4882a593Smuzhiyun perl-module-list-util \ 48*4882a593Smuzhiyun perl-module-overloading \ 49*4882a593Smuzhiyun perl-module-posix \ 50*4882a593Smuzhiyun perl-module-scalar-util \ 51*4882a593Smuzhiyun perl-module-symbol \ 52*4882a593Smuzhiyun perl-module-thread-queue \ 53*4882a593Smuzhiyun perl-module-threads \ 54*4882a593Smuzhiyun " 55*4882a593SmuzhiyunRDEPENDS:${PN}:class-native = "m4-native gnu-config-native hostperl-runtime-native" 56*4882a593Smuzhiyun 57*4882a593Smuzhiyuninherit autotools texinfo 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunPERL = "${USRBINPATH}/perl" 60*4882a593SmuzhiyunPERL:class-native = "/usr/bin/env perl" 61*4882a593SmuzhiyunPERL:class-nativesdk = "/usr/bin/env perl" 62*4882a593Smuzhiyun 63*4882a593SmuzhiyunCACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'" 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunEXTRA_OECONF += "ac_cv_path_M4=m4 ac_cv_prog_TEST_EMACS=no" 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun# As autoconf installs its own config.* files, ensure that they're always up to date. 68*4882a593Smuzhiyunupdate_gnu_config() { 69*4882a593Smuzhiyun install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/build-aux 70*4882a593Smuzhiyun install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/build-aux 71*4882a593Smuzhiyun} 72*4882a593Smuzhiyundo_configure[prefuncs] += "update_gnu_config" 73*4882a593Smuzhiyun 74*4882a593Smuzhiyundo_configure:class-native() { 75*4882a593Smuzhiyun oe_runconf 76*4882a593Smuzhiyun} 77*4882a593Smuzhiyun 78*4882a593Smuzhiyundo_install:append() { 79*4882a593Smuzhiyun rm -rf ${D}${datadir}/emacs 80*4882a593Smuzhiyun} 81*4882a593Smuzhiyun 82*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 83