bootstrap
author Ryan C. Gordon <icculus@icculus.org>
Tue, 21 Sep 2004 17:30:23 +0000
branchstable-1.0
changeset 636 5d03be6db57d
parent 625 60b5f566a258
permissions -rwxr-xr-x
MacOSX build fix, backported from development branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
#!/bin/sh
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
set -e
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
echo "Initial preparation...this can take awhile, so sit tight..."
625
60b5f566a258 Last minute changes, fixes, and build system updates for 1.0.
Ryan C. Gordon <icculus@icculus.org>
parents: 357
diff changeset
     5
rm -f Makefile.am
357
9c0dd45cb7eb Now copies the Makefile.am template instead of rename()ing it.
Ryan C. Gordon <icculus@icculus.org>
parents: 299
diff changeset
     6
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"); }'
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
aclocal
636
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
     8
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
     9
# MacOS X renames GNU libtool to "glibtool", since they have something
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    10
#  else called "libtool" already...
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    11
if [ -x /usr/bin/glibtoolize ]; then
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    12
  glibtoolize --automake --copy --force
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    13
else
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    14
  libtoolize --automake --copy --force
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    15
fi
5d03be6db57d MacOSX build fix, backported from development branch.
Ryan C. Gordon <icculus@icculus.org>
parents: 625
diff changeset
    16
213
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
autoheader
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
automake --foreign --add-missing --copy
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
autoconf
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
echo "You are now ready to run ./configure ..."
9e3f734586ac Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22