From 9fd70043f8b23b73dbb7c413cbdc79142da99e12 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 25 Sep 2013 22:53:22 +0200 Subject: detect native multiarch directory on linux --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure') diff --git a/configure b/configure index a5aa1f4d..ee1106dd 100755 --- a/configure +++ b/configure @@ -14,6 +14,7 @@ LUA_BINDIR="/usr/bin" LUA_INCDIR="/usr/include" LUA_LIBDIR="/usr/lib" LUA_VERSION="5.1" +MULTIARCHDIR="" # ---------------------------------------------------------------------------- # FUNCTION DEFINITIONS @@ -396,6 +397,15 @@ else echo "Using unversioned rocks dir: $PREFIX$LUAROCKS_ROCKS_SUBDIR" fi +if [ "$LUAROCKS_UNAME_S" = Linux ] +then + CC_ARCH=`cc -dumpmachine 2>/dev/null` + if [ -n "$CC_ARCH" ] + then + MULTIARCHDIR="/usr/lib/$CC_ARCH" + fi +fi + if [ -f config.unix ]; then rm -f config.unix fi @@ -426,6 +436,7 @@ LUAROCKS_UNAME_S=$LUAROCKS_UNAME_S LUAROCKS_DOWNLOADER=$LUAROCKS_DOWNLOADER LUAROCKS_MD5CHECKER=$LUAROCKS_MD5CHECKER LUAROCKS_ROCKS_SUBDIR=$LUAROCKS_ROCKS_SUBDIR +LUAROCKS_MULTIARCHDIR=$MULTIARCHDIR EOF -- cgit v1.2.3-55-g6feb