Changeset

10010:34bfefb39937

configure: Respect previously set paths in macosx preset
author Kim Alvefur <zash@zash.se>
date Mon, 13 May 2019 12:00:28 +0200
parents 10009:b6ce1dbe74a0
children 10017:994cccebb597
files configure
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 13 11:59:00 2019 +0200
+++ b/configure	Mon May 13 12:00:28 2019 +0200
@@ -259,10 +259,14 @@
       CFLAGS="$CFLAGS -ggdb"
    fi
    if [ "$OSPRESET" = "macosx" ]; then
-      LUA_INCDIR=/usr/local/include;
-      LUA_INCDIR_SET=yes
-      LUA_LIBDIR=/usr/local/lib
-      LUA_LIBDIR_SET=yes
+      if [ "$LUA_INCDIR_SET" != "yes" ]; then
+         LUA_INCDIR=/usr/local/include;
+         LUA_INCDIR_SET=yes
+      fi
+      if [ "$LUA_LIBDIR_SET" != "yes" ]; then
+         LUA_LIBDIR=/usr/local/lib
+         LUA_LIBDIR_SET=yes
+      fi
       CFLAGS="$CFLAGS -mmacosx-version-min=10.3"
       LDFLAGS="-bundle -undefined dynamic_lookup"
    fi