Software / code / prosody
Comparison
configure @ 7632:2b14e2121700
configure: Add ostype preset for NetBSD
| author | Holger Weiss <holger@zedat.fu-berlin.de> |
|---|---|
| date | Fri, 17 Apr 2015 12:03:15 +0200 |
| parent | 7618:5a09c1166d89 |
| child | 7748:4ba697569f84 |
comparison
equal
deleted
inserted
replaced
| 7621:b8c03df6e8ca | 7632:2b14e2121700 |
|---|---|
| 30 show_help() { | 30 show_help() { |
| 31 cat <<EOF | 31 cat <<EOF |
| 32 Configure Prosody prior to building. | 32 Configure Prosody prior to building. |
| 33 | 33 |
| 34 --help This help. | 34 --help This help. |
| 35 --ostype=OS Use one of the OS presets. | 35 --ostype=OS Use one of the OS presets. May be one of: |
| 36 May be one of: debian, macosx, linux, freebsd, openbsd | 36 debian, macosx, linux, freebsd, openbsd, netbsd |
| 37 --prefix=DIR Prefix where Prosody should be installed. | 37 --prefix=DIR Prefix where Prosody should be installed. |
| 38 Default is $PREFIX | 38 Default is $PREFIX |
| 39 --sysconfdir=DIR Location where the config file should be installed. | 39 --sysconfdir=DIR Location where the config file should be installed. |
| 40 Default is \$PREFIX/etc/prosody | 40 Default is \$PREFIX/etc/prosody |
| 41 --libdir=DIR Location where the server files should be stored. | 41 --libdir=DIR Location where the server files should be stored. |
| 144 fi | 144 fi |
| 145 if [ "$OSTYPE" = "openbsd" ]; then | 145 if [ "$OSTYPE" = "openbsd" ]; then |
| 146 LUA_INCDIR="/usr/local/include"; | 146 LUA_INCDIR="/usr/local/include"; |
| 147 LUA_INCDIR_SET="yes" | 147 LUA_INCDIR_SET="yes" |
| 148 fi | 148 fi |
| 149 if [ "$OSTYPE" = "netbsd" ]; then | |
| 150 RUNWITH="lua5.1" | |
| 151 LUA_INCDIR="/usr/pkg/include/lua-5.1" | |
| 152 LUA_INCDIR_SET=yes | |
| 153 LUA_LIBDIR="/usr/pkg/lib/lua/5.1" | |
| 154 LUA_LIBDIR_SET=yes | |
| 155 CFLAGS="-Wall -fPIC -I/usr/pkg/include" | |
| 156 LDFLAGS="-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -shared" | |
| 157 fi | |
| 149 if [ "$OSTYPE" = "pkg-config" ]; then | 158 if [ "$OSTYPE" = "pkg-config" ]; then |
| 150 if [ "$LUA_SUFFIX_SET" != "yes" ]; then | 159 if [ "$LUA_SUFFIX_SET" != "yes" ]; then |
| 151 LUA_SUFFIX="5.1"; | 160 LUA_SUFFIX="5.1"; |
| 152 LUA_SUFFIX_SET=yes | 161 LUA_SUFFIX_SET=yes |
| 153 fi | 162 fi |