From 73e55a9af4aea54d42f55dbbedd70ce12f14adf0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 8 Dec 2011 07:41:28 +0000 Subject: configure: Remove obsolete option '--require-config' --- configure | 6 ------ 1 file changed, 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index af046223..00ed2658 100755 --- a/configure +++ b/configure @@ -59,8 +59,6 @@ Configure Prosody prior to building. Default is $CC --linker=CC The linker to use when building modules. Default is $LD ---require-config Will cause Prosody to refuse to run when - it fails to find a configuration file EOF } @@ -127,9 +125,6 @@ do DATADIR="$value" DATADIR_SET=yes ;; - --require-config) - REQUIRE_CONFIG=yes - ;; --lua-suffix=*) LUA_SUFFIX="$value" LUA_SUFFIX_SET=yes @@ -327,7 +322,6 @@ LUA_DIR=$LUA_DIR LUA_INCDIR=$LUA_INCDIR LUA_LIBDIR=$LUA_LIBDIR LUA_BINDIR=$LUA_BINDIR -REQUIRE_CONFIG=$REQUIRE_CONFIG IDN_LIB=$IDN_LIB IDNA_LIBS=$IDNA_LIBS OPENSSL_LIB=$OPENSSL_LIB -- cgit v1.2.3 From dcec3ba63923698c8292a371c128aaab680d18f9 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 11 Dec 2011 17:08:34 +0000 Subject: configure: Add 'openbsd' preset (thanks xavier) --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 00ed2658..dd6af49c 100755 --- a/configure +++ b/configure @@ -59,6 +59,8 @@ Configure Prosody prior to building. Default is $CC --linker=CC The linker to use when building modules. Default is $LD +--require-config Will cause Prosody to refuse to run when + it fails to find a configuration file EOF } @@ -110,7 +112,7 @@ do CFLAGS="-Wall -fPIC" LDFLAGS="-shared" fi - if [ "$OSTYPE" = "freebsd" ] + if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ] then LUA_INCDIR="/usr/local/include/lua51" LUA_INCDIR_SET=yes CFLAGS="-Wall -fPIC -I/usr/local/include" @@ -120,11 +122,17 @@ do LUA_DIR=/usr/local LUA_DIR_SET=yes fi + if [ "$OSTYPE" = "openbsd" ] + then LUA_INCDIR="/usr/local/include"; + fi ;; --datadir=*) DATADIR="$value" DATADIR_SET=yes ;; + --require-config) + REQUIRE_CONFIG=yes + ;; --lua-suffix=*) LUA_SUFFIX="$value" LUA_SUFFIX_SET=yes @@ -322,6 +330,7 @@ LUA_DIR=$LUA_DIR LUA_INCDIR=$LUA_INCDIR LUA_LIBDIR=$LUA_LIBDIR LUA_BINDIR=$LUA_BINDIR +REQUIRE_CONFIG=$REQUIRE_CONFIG IDN_LIB=$IDN_LIB IDNA_LIBS=$IDNA_LIBS OPENSSL_LIB=$OPENSSL_LIB -- cgit v1.2.3