Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around autoconf 2.69 bugs #947

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@
# Requires GNU autoconf, GNU automake and GNU libtool.
#
autoreconf -vif `dirname "$0"`

# autoconf 2.69 has a bug where autoreconf does not copy config.guess
# and config.sub even though configure.ac needs them, unless automake is
# being used. We work around this by forcing a call to automake if one
# or both of config.sub and config.guess are missing.
if ! test -x config.guess -a -x config.sub ; then
automake -acf 2> /dev/null || :
fi

# There is a second bug in autoconf 2.69 where the generated configure
# script complains about install-sh not being there (even though it does
# not actually need it). As a workaround, we just provide an empty file
# instead. Since newer autoconf versions such as 2.71 are not affected
# by the bug, we add a test to limit when this workaround is applied
if fgrep -q ac_aux_dir/install-sh configure ; then
touch install-sh
fi
Loading