forked from vancegroup/Audiere
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap
executable file
·39 lines (37 loc) · 1.65 KB
/
bootstrap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#set -e causes the shell to exit if any subcommand or pipeline returns a non-zero status.
set -e
#set -x enables a mode of the shell where all executed commands are printed to the terminal.
set -x
mkdir -p config
#region GNUify
#see also etc/runme_before_automake
if [ ! -f NEWS ]; then echo "see https://github.com/poikilos/Audiere" > NEWS; fi
if [ ! -f README ]; then cp README.md README; fi
if [ ! -f AUTHORS ]; then cp doc/authors.txt AUTHORS; fi
if [ ! -f ChangeLog ]; then cp doc/changelog.txt ChangeLog; fi
if [ ! -f COPYING ]; then cp LICENSE COPYING; fi
if [ ! -f doc/license.txt ]; then cp LICENSE doc/license.txt; fi
#endregion GNUify
UNAME=`uname`
if [ "$UNAME" == "Darwin" ]; then
glibtoolize --force --copy
else
libtoolize --force --copy
fi
aclocal # scans configure.ac and create an aclocal.m4 file
# automake --add-missing would add a COPYING file, but let's not do that.
if [ ! -f COPYING ]; then
cp LICENSE COPYING
fi
#--foreign is no longer needed due to GNUify region above
#automake --foreign --add-missing --copy
#--copy "When used with --add-missing, causes installed files to be copied. The default is to make a symbolic link."
automake --add-missing --copy
#TODO--resolve: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
#TODO--resolve: Makefile.am:25: warning: source file 'speexfile/speexfile.cpp' is in a subdirectory,
# src/Makefile.am:25: but option 'subdir-objects' is disabled
# * speex is only included if present on your system, so you may have to remove it to use this howto until issue is resolved.
autoreconf
autoreconf --install # (generates Makefile.in)
autoconf # (generates configure script)