Skip to content

Commit

Permalink
autotools: Support AC_CONFIG_MACROS_DIRS
Browse files Browse the repository at this point in the history
Add support for the new (in autoconf 2.69) AC_CONFIG_MACRO_DIRS macro to
the existing support for the older AC_CONFIG_MACRO_DIR macro.
  • Loading branch information
Brian Inglis authored and jon-turney committed Sep 17, 2023
1 parent 47e3c4d commit 73b9982
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cygclass/autotools.cygclass
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ cygautoreconf() {
then
__parse_aclocal_amflags $(grep '^ACLOCAL_AMFLAGS' Makefile.am | sed 's/=/ = /') | xargs -r mkdir -p
fi
grep '^[^\#]*AC_CONFIG_MACRO_DIR' ${sub_configure_ac} | sed -e "s!.*AC_CONFIG_MACRO_DIR(\[*\(.*\))!${d}/\1!g" -e 's!\]*!!g' | xargs -r mkdir -p
grep '^[^\#]*AC_CONFIG_MACRO_DIRS*' ${sub_configure_ac} | sed -e "s!.*AC_CONFIG_MACRO_DIRS*(\[*\(.*\))!${d}/\1!g" -e 's!\]*!!g' | xargs -r mkdir -p

if [ ! -f ${d}/aclocal.m4 ] || $(head -n 1 ${d}/aclocal.m4 | grep -q 'generated.* by aclocal')
then
Expand Down
2 changes: 1 addition & 1 deletion cygclass/gnome2.cygclass
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ gnome2_autoreconf() {
fi

# aclocal requires that its directories exist
sed -n -e 's|^AC_CONFIG_MACRO_DIR(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p
sed -n -e 's|^AC_CONFIG_MACRO_DIRS*(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p

# Automake will exit if these are not present
# dodoc won't install these, however, if they are empty
Expand Down
2 changes: 1 addition & 1 deletion cygclass/mate.cygclass
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ mate_autoreconf() {
fi

# aclocal requires that its directories exist
sed -n -e 's|^AC_CONFIG_MACRO_DIR(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p
sed -n -e 's|^AC_CONFIG_MACRO_DIR*(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p

# Automake will exit if these are not present
# dodoc won't install these, however, if they are empty
Expand Down
2 changes: 1 addition & 1 deletion cygclass/xfce4.cygclass
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ xfce4_autoreconf() {

export WANT_AUTOMAKE

sed -n -e 's|^AC_CONFIG_MACRO_DIR(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p
sed -n -e 's|^AC_CONFIG_MACRO_DIR*(\[*\([^]]*\)\]*).*|\1|p' ${configure_ac} | xargs -r mkdir -p

NOCONFIGURE=1 \
XDT_PROG_ACLOCAL=aclocal \
Expand Down

0 comments on commit 73b9982

Please sign in to comment.