Skip to content

Commit

Permalink
Fix 'possibly undefined macro AC_ENABLE_SHARED' autoreconf error
Browse files Browse the repository at this point in the history
Issue #616 (bdwgc).

Install libtool.m4 and ltmain.sh in the build tree before running
autoreconf.  This is needed if autoreconf and libtoolize are available
from the different directories of $PATH.

* autogen.sh: Run libtoolize (if available); add comment.
  • Loading branch information
bhaible authored and ivmai committed Jan 27, 2024
1 parent a69d22e commit 3523a64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ set -e
# prefix. Otherwise, you may need to invoke autoreconf with the appropriate
# -I options to locate the required *.m4 files.

# Install libtool.m4 and ltmain.sh in the build tree. This command is needed
# if autoreconf and libtoolize are available from the different directories.
# Note: libtoolize might be missing on some platforms.
if (type libtoolize) > /dev/null 2>&1; then
libtoolize -i -c
else
echo "libtoolize is not found, ignoring!"
fi

autoreconf -i

echo
Expand Down

0 comments on commit 3523a64

Please sign in to comment.