Comparison

configure @ 4451:70275ab52ab2

configure: Add 'openbsd' preset (thanks xavier)
author Matthew Wild <mwild1@gmail.com>
date Sun, 11 Dec 2011 17:08:34 +0000
parent 4444:498eaeff6a05
child 5048:e02161ba20e0
comparison
equal deleted inserted replaced
4450:15547fba1f09 4451:70275ab52ab2
57 Default is $LDFLAGS 57 Default is $LDFLAGS
58 --c-compiler=CC The C compiler to use when building modules. 58 --c-compiler=CC The C compiler to use when building modules.
59 Default is $CC 59 Default is $CC
60 --linker=CC The linker to use when building modules. 60 --linker=CC The linker to use when building modules.
61 Default is $LD 61 Default is $LD
62 --require-config Will cause Prosody to refuse to run when
63 it fails to find a configuration file
62 EOF 64 EOF
63 } 65 }
64 66
65 67
66 while [ "$1" ] 68 while [ "$1" ]
108 LUA_LIBDIR=/usr/local/lib 110 LUA_LIBDIR=/usr/local/lib
109 LUA_LIBDIR_SET=yes 111 LUA_LIBDIR_SET=yes
110 CFLAGS="-Wall -fPIC" 112 CFLAGS="-Wall -fPIC"
111 LDFLAGS="-shared" 113 LDFLAGS="-shared"
112 fi 114 fi
113 if [ "$OSTYPE" = "freebsd" ] 115 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]
114 then LUA_INCDIR="/usr/local/include/lua51" 116 then LUA_INCDIR="/usr/local/include/lua51"
115 LUA_INCDIR_SET=yes 117 LUA_INCDIR_SET=yes
116 CFLAGS="-Wall -fPIC -I/usr/local/include" 118 CFLAGS="-Wall -fPIC -I/usr/local/include"
117 LDFLAGS="-I/usr/local/include -L/usr/local/lib -shared" 119 LDFLAGS="-I/usr/local/include -L/usr/local/lib -shared"
118 LUA_SUFFIX="-5.1" 120 LUA_SUFFIX="-5.1"
119 LUA_SUFFIX_SET=yes 121 LUA_SUFFIX_SET=yes
120 LUA_DIR=/usr/local 122 LUA_DIR=/usr/local
121 LUA_DIR_SET=yes 123 LUA_DIR_SET=yes
122 fi 124 fi
125 if [ "$OSTYPE" = "openbsd" ]
126 then LUA_INCDIR="/usr/local/include";
127 fi
123 ;; 128 ;;
124 --datadir=*) 129 --datadir=*)
125 DATADIR="$value" 130 DATADIR="$value"
126 DATADIR_SET=yes 131 DATADIR_SET=yes
132 ;;
133 --require-config)
134 REQUIRE_CONFIG=yes
127 ;; 135 ;;
128 --lua-suffix=*) 136 --lua-suffix=*)
129 LUA_SUFFIX="$value" 137 LUA_SUFFIX="$value"
130 LUA_SUFFIX_SET=yes 138 LUA_SUFFIX_SET=yes
131 ;; 139 ;;
320 LUA_SUFFIX=$LUA_SUFFIX 328 LUA_SUFFIX=$LUA_SUFFIX
321 LUA_DIR=$LUA_DIR 329 LUA_DIR=$LUA_DIR
322 LUA_INCDIR=$LUA_INCDIR 330 LUA_INCDIR=$LUA_INCDIR
323 LUA_LIBDIR=$LUA_LIBDIR 331 LUA_LIBDIR=$LUA_LIBDIR
324 LUA_BINDIR=$LUA_BINDIR 332 LUA_BINDIR=$LUA_BINDIR
333 REQUIRE_CONFIG=$REQUIRE_CONFIG
325 IDN_LIB=$IDN_LIB 334 IDN_LIB=$IDN_LIB
326 IDNA_LIBS=$IDNA_LIBS 335 IDNA_LIBS=$IDNA_LIBS
327 OPENSSL_LIB=$OPENSSL_LIB 336 OPENSSL_LIB=$OPENSSL_LIB
328 CFLAGS=$CFLAGS 337 CFLAGS=$CFLAGS
329 LDFLAGS=$LDFLAGS 338 LDFLAGS=$LDFLAGS