Skip to content

Commit

Permalink
Merge pull request wolfSSL#569 from ejohnstown/autogen-tweak
Browse files Browse the repository at this point in the history
Autogen Tweak
  • Loading branch information
JacobBarthelmeh authored Aug 31, 2023
2 parents ad2b0d7 + f6dc1fc commit 2e823c1
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,44 +1,20 @@
#!/bin/sh
#
# Create configure and makefile stuff...
#

set -e

# if get an error about libtool not setup
# " error: Libtool library used but 'LIBTOOL' is undefined
# The usual way to define 'LIBTOOL' is to add 'LT_INIT' "
# manually call libtoolize or glibtoolize before running this again
# (g)libtoolize

# if you get an error about config.rpath missing, some buggy automake versions
# then touch the missing file (may need to make config/ first).
# touch config/config.rpath
# touch config.rpath

if test ! -d build-aux; then
echo "Making missing build-aux directory."
mkdir -p build-aux
fi

if test ! -f build-aux/config.rpath; then
echo "Touching missing build-aux/config.rpath file."
touch build-aux/config.rpath
fi

# Git hooks should come before autoreconf.
if test -d .git; then
if ! test -d .git/hooks; then
mkdir .git/hooks
fi
ln -s -f ../../scripts/pre-commit.sh .git/hooks/pre-commit
if test -d .git
then
mkdir -p .git/hooks && ln -sf ../../scripts/pre-commit.sh .git/hooks/pre-commit
fi

# If this is a source checkout then call autoreconf with error as well
if test -e .git; then
if test -e .git
then
WARNINGS="all,error"
else
WARNINGS="all"
fi
export WARNINGS

autoreconf --install --force --verbose
autoreconf -ivf

0 comments on commit 2e823c1

Please sign in to comment.