Software / code / prosody
Comparison
configure @ 3306:59d56fd49e38
configure: Add ostype preset for FreeBSD (thanks dersd and tobias (no, the other one))
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 01 Jul 2010 13:27:51 +0100 |
| parent | 3051:15150ad771df |
| child | 3351:9d38d2bef187 |
comparison
equal
deleted
inserted
replaced
| 3305:b1ee8d390744 | 3306:59d56fd49e38 |
|---|---|
| 24 cat <<EOF | 24 cat <<EOF |
| 25 Configure Prosody prior to building. | 25 Configure Prosody prior to building. |
| 26 | 26 |
| 27 --help This help. | 27 --help This help. |
| 28 --ostype=OS Use one of the OS presets. | 28 --ostype=OS Use one of the OS presets. |
| 29 May be one of: debian, macosx, linux | 29 May be one of: debian, macosx, linux, freebsd |
| 30 --prefix=DIR Prefix where Prosody should be installed. | 30 --prefix=DIR Prefix where Prosody should be installed. |
| 31 Default is $PREFIX | 31 Default is $PREFIX |
| 32 --sysconfdir=DIR Location where the config file should be installed. | 32 --sysconfdir=DIR Location where the config file should be installed. |
| 33 Default is \$PREFIX/etc/prosody | 33 Default is \$PREFIX/etc/prosody |
| 34 --datadir=DIR Location where the server data should be stored. | 34 --datadir=DIR Location where the server data should be stored. |
| 156 LUA_LIBDIR=/usr/local/lib | 156 LUA_LIBDIR=/usr/local/lib |
| 157 LUA_LIBDIR_SET=yes | 157 LUA_LIBDIR_SET=yes |
| 158 CFLAGS="-Wall -fPIC" | 158 CFLAGS="-Wall -fPIC" |
| 159 LDFLAGS="-shared" | 159 LDFLAGS="-shared" |
| 160 fi | 160 fi |
| 161 if [ "$OSTYPE" = "freebsd" ] | |
| 162 then LUA_INCDIR="/usr/local/include/lua51" | |
| 163 LUA_INCDIR_SET=yes | |
| 164 CFLAGS="-Wall -fPIC -I/usr/local/include" | |
| 165 LDFLAGS="-I/usr/local/include -shared" | |
| 166 LUA_SUFFIX="-5.1" | |
| 167 LUA_SUFFIX_SET=yes | |
| 168 LUA_DIR=/usr/local | |
| 169 LUA_DIR_SET=yes | |
| 170 fi | |
| 161 fi | 171 fi |
| 162 | 172 |
| 163 if [ "$PREFIX_SET" = "yes" -a ! "$SYSCONFDIR_SET" = "yes" ] | 173 if [ "$PREFIX_SET" = "yes" -a ! "$SYSCONFDIR_SET" = "yes" ] |
| 164 then | 174 then |
| 165 if [ "$PREFIX" = "/usr" ] | 175 if [ "$PREFIX" = "/usr" ] |