diff --git a/projects/gnu.org/autoconf-archive/package.yml b/projects/gnu.org/autoconf-archive/package.yml new file mode 100644 index 00000000..f046599b --- /dev/null +++ b/projects/gnu.org/autoconf-archive/package.yml @@ -0,0 +1,38 @@ +distributable: + url: https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-{{ version.raw }}.tar.xz + strip-components: 1 + +versions: + url: https://ftp.gnu.org/gnu/autoconf-archive/ + match: /autoconf-archive-(\d+\.\d+(\.\d+)?)\.tar\.xz/ + strip: + - /autoconf-archive-/ + - /.tar.xz/ + +build: + dependencies: + tea.xyz/gx/make: '*' + script: + - ./configure --prefix="{{ prefix }}" + - make --jobs {{ hw.concurrency }} install + +test: + dependencies: + gnu.org/autoconf: '*' + script: + - echo $TESTM4 >test.m4 + - autoconf test.m4 + env: + TESTM4: | + AC_INIT(myconfig, version-0.1) + AC_MSG_NOTICE([Hello, world.]) + + m4_include([{{prefix}}/share/aclocal/ax_have_select.m4]) + + # from https://www.gnu.org/software/autoconf-archive/ax_have_select.html + AX_HAVE_SELECT( + [AX_CONFIG_FEATURE_ENABLE(select)], + [AX_CONFIG_FEATURE_DISABLE(select)]) + AX_CONFIG_FEATURE( + [select], [This platform supports select(7)], + [HAVE_SELECT], [This platform supports select(7).]) diff --git a/projects/gnu.org/autoconf-archive/test.m4 b/projects/gnu.org/autoconf-archive/test.m4 new file mode 100644 index 00000000..88615502 --- /dev/null +++ b/projects/gnu.org/autoconf-archive/test.m4 @@ -0,0 +1,12 @@ +AC_INIT(myconfig, version-0.1) +AC_MSG_NOTICE([Hello, world.]) + +m4_include([ax_have_select.m4]) + +# from https://www.gnu.org/software/autoconf-archive/ax_have_select.html +AX_HAVE_SELECT( + [AX_CONFIG_FEATURE_ENABLE(select)], + [AX_CONFIG_FEATURE_DISABLE(select)]) +AX_CONFIG_FEATURE( + [select], [This platform supports select(7)], + [HAVE_SELECT], [This platform supports select(7).]) \ No newline at end of file