Comparison

configure @ 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
parent 10009:b6ce1dbe74a0
child 11009:74ef9f2334f3
comparison
equal deleted inserted replaced
10009:b6ce1dbe74a0 10010:34bfefb39937
257 # TODO make this a switch? 257 # TODO make this a switch?
258 if [ "$OSPRESET" = "debian" ]; then 258 if [ "$OSPRESET" = "debian" ]; then
259 CFLAGS="$CFLAGS -ggdb" 259 CFLAGS="$CFLAGS -ggdb"
260 fi 260 fi
261 if [ "$OSPRESET" = "macosx" ]; then 261 if [ "$OSPRESET" = "macosx" ]; then
262 LUA_INCDIR=/usr/local/include; 262 if [ "$LUA_INCDIR_SET" != "yes" ]; then
263 LUA_INCDIR_SET=yes 263 LUA_INCDIR=/usr/local/include;
264 LUA_LIBDIR=/usr/local/lib 264 LUA_INCDIR_SET=yes
265 LUA_LIBDIR_SET=yes 265 fi
266 if [ "$LUA_LIBDIR_SET" != "yes" ]; then
267 LUA_LIBDIR=/usr/local/lib
268 LUA_LIBDIR_SET=yes
269 fi
266 CFLAGS="$CFLAGS -mmacosx-version-min=10.3" 270 CFLAGS="$CFLAGS -mmacosx-version-min=10.3"
267 LDFLAGS="-bundle -undefined dynamic_lookup" 271 LDFLAGS="-bundle -undefined dynamic_lookup"
268 fi 272 fi
269 if [ "$OSPRESET" = "linux" ]; then 273 if [ "$OSPRESET" = "linux" ]; then
270 CFLAGS="$CFLAGS -ggdb" 274 CFLAGS="$CFLAGS -ggdb"