bootstrap
author Ryan C. Gordon <icculus@icculus.org>
Wed, 03 Oct 2018 22:45:05 -0400
branchstable-1.0
changeset 1648 93b4c3bc6b9d
parent 636 5d03be6db57d
permissions -rwxr-xr-x
Fixed Win10's GetUserProfileDirectory() bug in stable-1.0 branch.

#!/bin/sh

set -e
echo "Initial preparation...this can take awhile, so sit tight..."
rm -f Makefile.am
perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake --version |head -n 1`; chomp($x); $x = 0.0 if ($x !~ s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake", "./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am"); }'
aclocal

# MacOS X renames GNU libtool to "glibtool", since they have something
#  else called "libtool" already...
if [ -x /usr/bin/glibtoolize ]; then
  glibtoolize --automake --copy --force
else
  libtoolize --automake --copy --force
fi

autoheader
automake --foreign --add-missing --copy
autoconf

echo "You are now ready to run ./configure ..."