aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-02-14 19:13:14 +0100
committerTobias Markmann <tm@ayena.de>2009-02-14 19:13:14 +0100
commitb157135ee2019f8443a0c2652b75e014c339d9c0 (patch)
treea13b888f90cc9aede4a8259de6be86ab27823e09 /configure
parent5affd107f0a6d62ff3be6c5aaa8548b4b2cce4ba (diff)
parent6f1ac0657bc419f38c55c3d62c8e552135d8b96f (diff)
downloadprosody-b157135ee2019f8443a0c2652b75e014c339d9c0.tar.gz
prosody-b157135ee2019f8443a0c2652b75e014c339d9c0.zip
Merging with tip.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 8eb7b367..f3b7f76d 100755
--- a/configure
+++ b/configure
@@ -12,6 +12,8 @@ LUA_INCDIR="/usr/include"
LUA_LIBDIR="/usr/lib"
IDN_LIB=idn
OPENSSL_LIB=crypto
+CC=gcc
+LD=gcc
CFLAGS="-fPIC"
LFLAGS="-shared"
@@ -45,6 +47,12 @@ Configure Prosody prior to building.
Default is $OPENSSL_LIB
--cflags=FLAGS Flags to pass to the compiler
Default is $CFLAGS
+--lflags=FLAGS Flags to pass to the linker
+ Default is $LFLAGS
+--c-compiler=CC The C compiler to use when building modules.
+ 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
@@ -105,6 +113,12 @@ do
--cflags=*)
CFLAGS="$value"
;;
+ --c-compiler=*)
+ CC="$value"
+ ;;
+ --linker=*)
+ LD="$value"
+ ;;
*)
echo "Error: Unknown flag: $1"
exit 1
@@ -279,6 +293,8 @@ IDN_LIB=$IDN_LIB
OPENSSL_LIB=$OPENSSL_LIB
CFLAGS=$CFLAGS
LFLAGS=$LFLAGS
+CC=$CC
+LD=$LD
EOF