From 5ac75106b1be9ff438affcfa816613d60646c53e Mon Sep 17 00:00:00 2001 From: nia Date: Sat, 21 May 2022 11:24:28 +0000 Subject: Update state of the art on autoconf --- doc/guide/files/fixes.xml | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml index d28c8af777a..515ebe691de 100644 --- a/doc/guide/files/fixes.xml +++ b/doc/guide/files/fixes.xml @@ -1,4 +1,4 @@ - + Making your package work @@ -1349,39 +1349,25 @@ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} ${SOMELIB:.a=.la} ${PREFIX}/lib GNU Autoconf/Automake If a package needs GNU autoconf or automake to be executed - to regenerate the configure script and Makefile.in makefile - templates, then they should be executed in a pre-configure - target. - - For packages that need only autoconf: + to regenerate the + configure + script and Makefile.in makefile + templates from configure.ac and + Makefile.am, + then they should be executed in a pre-configure target: -AUTOCONF_REQD= 2.50 # if default version is not good enough -USE_TOOLS+= autoconf # use "autoconf213" for autoconf-2.13 +USE_TOOLS+= autoconf automake autoreconf +GNU_CONFIGURE= yes ... pre-configure: - cd ${WRKSRC} && autoconf - -... - - - and for packages that need automake and autoconf: - - -AUTOMAKE_REQD= 1.7.1 # if default version is not good enough -USE_TOOLS+= automake # use "automake14" for automake-1.4 -... - -pre-configure: - set -e; cd ${WRKSRC}; \ - aclocal; autoheader; automake -a --foreign -i; autoconf - + set -e; cd ${WRKSRC} && autoreconf -fi ... - Packages which use GNU Automake will almost certainly - require GNU Make. + Packages which use GNU Automake will sometimes + require GNU Make, but not always. There are times when the configure process makes additional changes to the generated files, which then causes -- cgit v1.2.3