2006-05-12 15:34:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if test -d ../alsa-lib/utils && ! test -r `aclocal --print-ac-dir`/alsa.m4; then
|
|
|
|
alsa_m4_flags="-I ../alsa-lib/utils"
|
|
|
|
fi
|
|
|
|
aclocal $alsa_m4_flags $ACLOCAL_FLAGS
|
|
|
|
# save original files to avoid stupid modifications by gettextize
|
|
|
|
cp Makefile.am Makefile.am.ok
|
2014-05-07 09:46:08 +02:00
|
|
|
cp configure.ac configure.ac.ok
|
2006-05-12 15:34:22 +02:00
|
|
|
gettextize -c -f --no-changelog
|
|
|
|
echo "EXTRA_DIST = gettext.m4" > m4/Makefile.am
|
|
|
|
cp Makefile.am.ok Makefile.am
|
2014-05-07 09:46:08 +02:00
|
|
|
cp configure.ac.ok configure.ac
|
2021-12-14 16:20:50 +01:00
|
|
|
touch ltconfig
|
|
|
|
libtoolize --force --copy --automake
|
|
|
|
aclocal $ACLOCAL_FLAGS
|
2006-05-12 15:34:22 +02:00
|
|
|
autoheader
|
|
|
|
automake --foreign --copy --add-missing
|
|
|
|
touch depcomp # for older automake
|
|
|
|
autoconf
|
2023-08-30 13:05:21 +02:00
|
|
|
export CFLAGS='-O2 -Wall -W -Wunused-const-variable=0 -pipe -g'
|
2006-05-12 15:34:22 +02:00
|
|
|
echo "CFLAGS=$CFLAGS"
|
|
|
|
echo "./configure $@"
|
|
|
|
./configure $@ || exit 1
|
|
|
|
unset CFLAGS
|
2008-05-20 13:32:28 +02:00
|
|
|
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
|
2006-05-12 15:34:22 +02:00
|
|
|
make
|
|
|
|
fi
|