Software /
code /
prosody
Comparison
configure @ 5048:e02161ba20e0
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jul 2012 01:37:15 +0200 |
parent | 4451:70275ab52ab2 |
child | 5145:53f741a5a73a |
comparison
equal
deleted
inserted
replaced
5045:4ba6940deed0 | 5048:e02161ba20e0 |
---|---|
94 if [ "$OSTYPE" = "debian" ] | 94 if [ "$OSTYPE" = "debian" ] |
95 then LUA_SUFFIX="5.1"; | 95 then LUA_SUFFIX="5.1"; |
96 LUA_SUFFIX_SET=yes | 96 LUA_SUFFIX_SET=yes |
97 LUA_INCDIR=/usr/include/lua5.1; | 97 LUA_INCDIR=/usr/include/lua5.1; |
98 LUA_INCDIR_SET=yes | 98 LUA_INCDIR_SET=yes |
99 CFLAGS="$CFLAGS -D_GNU_SOURCE" | |
99 fi | 100 fi |
100 if [ "$OSTYPE" = "macosx" ] | 101 if [ "$OSTYPE" = "macosx" ] |
101 then LUA_INCDIR=/usr/local/include; | 102 then LUA_INCDIR=/usr/local/include; |
102 LUA_INCDIR_SET=yes | 103 LUA_INCDIR_SET=yes |
103 LUA_LIBDIR=/usr/local/lib | 104 LUA_LIBDIR=/usr/local/lib |
108 then LUA_INCDIR=/usr/local/include; | 109 then LUA_INCDIR=/usr/local/include; |
109 LUA_INCDIR_SET=yes | 110 LUA_INCDIR_SET=yes |
110 LUA_LIBDIR=/usr/local/lib | 111 LUA_LIBDIR=/usr/local/lib |
111 LUA_LIBDIR_SET=yes | 112 LUA_LIBDIR_SET=yes |
112 CFLAGS="-Wall -fPIC" | 113 CFLAGS="-Wall -fPIC" |
114 CFLAGS="$CFLAGS -D_GNU_SOURCE" | |
113 LDFLAGS="-shared" | 115 LDFLAGS="-shared" |
114 fi | 116 fi |
115 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ] | 117 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ] |
116 then LUA_INCDIR="/usr/local/include/lua51" | 118 then LUA_INCDIR="/usr/local/include/lua51" |
117 LUA_INCDIR_SET=yes | 119 LUA_INCDIR_SET=yes |