aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index a5aa1f4d..579e96f5 100755
--- a/configure
+++ b/configure
@@ -14,6 +14,7 @@ LUA_BINDIR="/usr/bin"
14LUA_INCDIR="/usr/include" 14LUA_INCDIR="/usr/include"
15LUA_LIBDIR="/usr/lib" 15LUA_LIBDIR="/usr/lib"
16LUA_VERSION="5.1" 16LUA_VERSION="5.1"
17MULTIARCH_SUBDIR=""
17 18
18# ---------------------------------------------------------------------------- 19# ----------------------------------------------------------------------------
19# FUNCTION DEFINITIONS 20# FUNCTION DEFINITIONS
@@ -396,6 +397,15 @@ else
396 echo "Using unversioned rocks dir: $PREFIX$LUAROCKS_ROCKS_SUBDIR" 397 echo "Using unversioned rocks dir: $PREFIX$LUAROCKS_ROCKS_SUBDIR"
397fi 398fi
398 399
400if [ "$LUAROCKS_UNAME_S" = Linux ]
401then
402 GCC_ARCH=`gcc -print-multiarch 2>/dev/null`
403 if [ -n "$GCC_ARCH" -a -d "/usr/lib/$GCC_ARCH" ]
404 then
405 MULTIARCH_SUBDIR="lib/$GCC_ARCH"
406 fi
407fi
408
399if [ -f config.unix ]; then 409if [ -f config.unix ]; then
400 rm -f config.unix 410 rm -f config.unix
401fi 411fi
@@ -426,6 +436,7 @@ LUAROCKS_UNAME_S=$LUAROCKS_UNAME_S
426LUAROCKS_DOWNLOADER=$LUAROCKS_DOWNLOADER 436LUAROCKS_DOWNLOADER=$LUAROCKS_DOWNLOADER
427LUAROCKS_MD5CHECKER=$LUAROCKS_MD5CHECKER 437LUAROCKS_MD5CHECKER=$LUAROCKS_MD5CHECKER
428LUAROCKS_ROCKS_SUBDIR=$LUAROCKS_ROCKS_SUBDIR 438LUAROCKS_ROCKS_SUBDIR=$LUAROCKS_ROCKS_SUBDIR
439MULTIARCH_SUBDIR=$MULTIARCH_SUBDIR
429 440
430EOF 441EOF
431 442