Commit 97f64152 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: match distribution also for x86-64 and armel

parent d9329265
...@@ -252,10 +252,13 @@ case $HOST in ...@@ -252,10 +252,13 @@ case $HOST in
echo "LIBRARY_PATH = /usr/lib64" >> config.mak echo "LIBRARY_PATH = /usr/lib64" >> config.mak
echo "PKG_CONFIG_PATH = /usr/lib64/pkgconfig" >> config.mak echo "PKG_CONFIG_PATH = /usr/lib64/pkgconfig" >> config.mak
echo "PKG_CONFIG_LIBDIR = /usr/lib64/pkgconfig" >> config.mak echo "PKG_CONFIG_LIBDIR = /usr/lib64/pkgconfig" >> config.mak
cat src/Distributions/unix.mak >> distro.mak
;; ;;
*) esac
if test "$HOST" = "$BUILD"; then
if ! test -f distro.mak; then
if test ! -z "${DISTRO}"; then
cat src/Distributions/${DISTRO}.mak >> distro.mak
elif test "$HOST" = "$BUILD"; then
if test -d "/usr/lib/pkgconfig"; then if test -d "/usr/lib/pkgconfig"; then
if test -z "$PKG_CONFIG_PATH"; then if test -z "$PKG_CONFIG_PATH"; then
echo "PKG_CONFIG_PATH = /usr/lib/pkgconfig" >> config.mak echo "PKG_CONFIG_PATH = /usr/lib/pkgconfig" >> config.mak
...@@ -270,19 +273,17 @@ case $HOST in ...@@ -270,19 +273,17 @@ case $HOST in
elif test -f /etc/maemo_version; then elif test -f /etc/maemo_version; then
cat src/Distributions/maemo.mak >> distro.mak cat src/Distributions/maemo.mak >> distro.mak
echo 'HAVE_MAEMO = 1' >> config.mak echo 'HAVE_MAEMO = 1' >> config.mak
else elif test -f /etc/debian_version; then
# Default Unix-like systems # NOTE: check for Debian *after* its derivatives
cat src/Distributions/unix.mak >> distro.mak cat src/Distribution/debian.mak >> distro.mak
fi
else # unknown distro
if test ! -z "${DISTRO}"; then
cat src/Distributions/${DISTRO}.mak >> distro.mak
else
cat src/Distributions/unix.mak >> distro.mak
fi fi
fi fi
;; fi
esac
if ! test -f distro.mak; then
# Default Unix-like systems
cat src/Distributions/unix.mak >> distro.mak
fi
echo "BUILD = $BUILD" >> config.mak echo "BUILD = $BUILD" >> config.mak
echo "HOST = $HOST" >> config.mak echo "HOST = $HOST" >> config.mak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment