mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Introduce --with-pkgconfdir, add 64-bit defaults to gitcompile
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
226a34ac09
commit
98d4ed8810
3 changed files with 49 additions and 3 deletions
33
gitcompile
33
gitcompile
|
|
@ -2,6 +2,35 @@
|
|||
|
||||
set -e
|
||||
|
||||
bit32=
|
||||
if [ $# -ne 0 -a "$1" == "32" ]; then
|
||||
bit32=yes
|
||||
echo "Forced 32-bit library build..."
|
||||
fi
|
||||
if [ $# -ne 0 -a -z "$bit32" ]; then
|
||||
args="$@"
|
||||
elif [ -r /etc/asound/library_args ]; then
|
||||
args="`cat /etc/asound/library_args`"
|
||||
if [ -z "$bit32" ]; then
|
||||
test -r /etc/asound/library64_args && \
|
||||
args="`cat /etc/asound/library64_args`"
|
||||
fi
|
||||
else
|
||||
prefix="/usr"
|
||||
libdir="/usr/lib"
|
||||
libdir2="/usr/lib"
|
||||
if [ -z "$bit32" ]; then
|
||||
test -d /usr/lib64 && libdir="/usr/lib64"
|
||||
test -f /lib64/libasound.so.2 && libdir="/lib64"
|
||||
test -d /usr/lib64 && libdir2="/usr/lib64"
|
||||
else
|
||||
test -f /lib/libasound.so.2 && libdir="/lib"
|
||||
fi
|
||||
args="--disable-aload --prefix=$prefix --libdir=$libdir"
|
||||
args="$args --with-plugindir=$libdir2/alsa-lib"
|
||||
args="$args --with-pkgconfdir=$libdir2/pkgconfig"
|
||||
fi
|
||||
|
||||
touch ltconfig
|
||||
libtoolize --force --copy --automake
|
||||
aclocal $ACLOCAL_FLAGS
|
||||
|
|
@ -11,8 +40,8 @@ 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
|
||||
echo "./configure $args"
|
||||
./configure $args || exit 1
|
||||
unset CFLAGS
|
||||
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
|
||||
make
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue