From 140c6de0260c404abebb860705a81ed7398c7c52 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Fri, 3 Mar 2017 11:51:32 +0100
Subject: configure: Fix setting libdir if prefix changed

---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'configure')

diff --git a/configure b/configure
index c416709d..1abd0a8d 100755
--- a/configure
+++ b/configure
@@ -338,6 +338,11 @@ then
    fi
 fi
 
+if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
+then
+   LIBDIR=$PREFIX/lib
+fi
+
 detect_lua_version() {
    detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null`
    if [ "$detected_lua" != "nil" ]
-- 
cgit v1.2.3