Software /
code /
prosody
Comparison
configure @ 10009:b6ce1dbe74a0
configure: Remove preset settings that are autodiscovered
These are likely wrong if other flags have been given.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 13 May 2019 11:59:00 +0200 |
parent | 10008:272c436ca5d1 |
child | 10010:34bfefb39937 |
comparison
equal
deleted
inserted
replaced
10008:272c436ca5d1 | 10009:b6ce1dbe74a0 |
---|---|
254 done | 254 done |
255 | 255 |
256 if [ "$OSPRESET_SET" = "yes" ]; then | 256 if [ "$OSPRESET_SET" = "yes" ]; then |
257 # TODO make this a switch? | 257 # TODO make this a switch? |
258 if [ "$OSPRESET" = "debian" ]; then | 258 if [ "$OSPRESET" = "debian" ]; then |
259 if [ "$LUA_SUFFIX_SET" != "yes" ]; then | |
260 LUA_SUFFIX="5.1"; | |
261 LUA_SUFFIX_SET=yes | |
262 fi | |
263 if [ "$RUNWITH_SET" != "yes" ]; then | |
264 RUNWITH="lua$LUA_SUFFIX"; | |
265 RUNWITH_SET=yes | |
266 fi | |
267 LUA_INCDIR="/usr/include/lua$LUA_SUFFIX" | |
268 LUA_INCDIR_SET=yes | |
269 CFLAGS="$CFLAGS -ggdb" | 259 CFLAGS="$CFLAGS -ggdb" |
270 fi | 260 fi |
271 if [ "$OSPRESET" = "macosx" ]; then | 261 if [ "$OSPRESET" = "macosx" ]; then |
272 LUA_INCDIR=/usr/local/include; | 262 LUA_INCDIR=/usr/local/include; |
273 LUA_INCDIR_SET=yes | 263 LUA_INCDIR_SET=yes |
275 LUA_LIBDIR_SET=yes | 265 LUA_LIBDIR_SET=yes |
276 CFLAGS="$CFLAGS -mmacosx-version-min=10.3" | 266 CFLAGS="$CFLAGS -mmacosx-version-min=10.3" |
277 LDFLAGS="-bundle -undefined dynamic_lookup" | 267 LDFLAGS="-bundle -undefined dynamic_lookup" |
278 fi | 268 fi |
279 if [ "$OSPRESET" = "linux" ]; then | 269 if [ "$OSPRESET" = "linux" ]; then |
280 LUA_INCDIR=/usr/local/include; | |
281 LUA_INCDIR_SET=yes | |
282 LUA_LIBDIR=/usr/local/lib | |
283 LUA_LIBDIR_SET=yes | |
284 CFLAGS="$CFLAGS -ggdb" | 270 CFLAGS="$CFLAGS -ggdb" |
285 fi | 271 fi |
286 if [ "$OSPRESET" = "freebsd" ] || [ "$OSPRESET" = "openbsd" ]; then | 272 if [ "$OSPRESET" = "freebsd" ] || [ "$OSPRESET" = "openbsd" ]; then |
287 LUA_INCDIR="/usr/local/include/lua51" | 273 LUA_INCDIR="/usr/local/include/lua51" |
288 LUA_INCDIR_SET=yes | 274 LUA_INCDIR_SET=yes |