summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-05-12 15:33:44 +0200
committerTakashi Iwai <tiwai@suse.de>2006-05-12 15:33:44 +0200
commit8a347e426709bfbf0c7c00f886ecdb4b5362d889 (patch)
tree91a8365e7d64a8db08c9b1bb95c99048b73fa882
parentffebf01d61817b26406a7aabbca63bec5e23d2c5 (diff)
downloadalsa-lib-8a347e426709bfbf0c7c00f886ecdb4b5362d889.tar.gz
Add hgcompile script and fix INSTALL document
Added hgcompile script (just a copy of cvscompile), and fixed INSTALL document about HG.
-rw-r--r--INSTALL8
-rw-r--r--Makefile.am2
-rwxr-xr-xhgcompile17
3 files changed, 22 insertions, 5 deletions
diff --git a/INSTALL b/INSTALL
index e1f878d2..91a8648e 100644
--- a/INSTALL
+++ b/INSTALL
@@ -11,11 +11,11 @@ For installation you can use these commands:
make install
-Compilation from CVS sources
-----------------------------
+Compilation from HG sources
+---------------------------
You need also GNU packages automake and libtool installed in your system
-to compile CVS sources of alsa-lib package.
+to compile HG (Mercurial) sources of alsa-lib package.
For compilation you can use these commands:
@@ -27,7 +27,7 @@ For compilation you can use these commands:
./configure
make
-The included cvscompile script does this job for you.
+The included hgcompile script does this job for you.
Note: Some automake packages have missing aclocal program. Use newer version
in the case.
diff --git a/Makefile.am b/Makefile.am
index f4fb8276..4ab838cd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,7 @@ if BUILD_MIXER
SUBDIRS += alsalisp
endif
SUBDIRS += test utils
-EXTRA_DIST=ChangeLog INSTALL TODO NOTES configure cvscompile libtool depcomp version MEMORY-LEAK
+EXTRA_DIST=ChangeLog INSTALL TODO NOTES configure hgcompile libtool depcomp version MEMORY-LEAK
AUTOMAKE_OPTIONS=foreign
INCLUDES=-I$(top_srcdir)/include
diff --git a/hgcompile b/hgcompile
new file mode 100755
index 00000000..484a400f
--- /dev/null
+++ b/hgcompile
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+touch ltconfig
+libtoolize --force --copy --automake
+aclocal $ACLOCAL_FLAGS
+autoheader
+automake --foreign --copy --add-missing
+touch depcomp # seems to be missing for old automake
+autoconf
+export CFLAGS='-O2 -Wall -W -pipe -g'
+echo "CFLAGS=$CFLAGS"
+echo "./configure $@"
+./configure $@ || exit 1
+unset CFLAGS
+if [ -z "$HGCOMPILE_NO_MAKE" ]; then
+ make
+fi