Comparison

configure @ 798:2a92b58144a9

Use $CC, $LD in Makefile. Add --c-compiler, --linker flags to ./configure script. Add --lflags to ./configure script. Thanks to Lorenzo for the initial patch!
author Matthew Wild <mwild1@gmail.com>
date Sat, 14 Feb 2009 15:38:37 +0000
parent 536:dfe06eab47c0
child 802:33c012048492
comparison
equal deleted inserted replaced
797:6ea01e05b004 798:2a92b58144a9
10 LUA_BINDIR="/usr/bin" 10 LUA_BINDIR="/usr/bin"
11 LUA_INCDIR="/usr/include" 11 LUA_INCDIR="/usr/include"
12 LUA_LIBDIR="/usr/lib" 12 LUA_LIBDIR="/usr/lib"
13 IDN_LIB=idn 13 IDN_LIB=idn
14 OPENSSL_LIB=crypto 14 OPENSSL_LIB=crypto
15 CC=gcc
16 LD=gcc
15 17
16 CFLAGS="-fPIC" 18 CFLAGS="-fPIC"
17 LFLAGS="-shared" 19 LFLAGS="-shared"
18 20
19 # Help 21 # Help
43 Default is $IDN_LIB 45 Default is $IDN_LIB
44 --with-ssl=LIB The name of the SSL to link with. 46 --with-ssl=LIB The name of the SSL to link with.
45 Default is $OPENSSL_LIB 47 Default is $OPENSSL_LIB
46 --cflags=FLAGS Flags to pass to the compiler 48 --cflags=FLAGS Flags to pass to the compiler
47 Default is $CFLAGS 49 Default is $CFLAGS
50 --lflags=FLAGS Flags to pass to the linker
51 Default is $LFLAGS
52 --c-compiler=CC The C compiler to use when building modules.
53 Default is $CC
54 --linker=CC The linker to use when building modules.
55 Default is $LD
48 --require-config Will cause Prosody to refuse to run when 56 --require-config Will cause Prosody to refuse to run when
49 it fails to find a configuration file 57 it fails to find a configuration file
50 EOF 58 EOF
51 } 59 }
52 60
102 --with-ssl=*) 110 --with-ssl=*)
103 OPENSSL_LIB="$value" 111 OPENSSL_LIB="$value"
104 ;; 112 ;;
105 --cflags=*) 113 --cflags=*)
106 CFLAGS="$value" 114 CFLAGS="$value"
115 ;;
116 --c-compiler=*)
117 CC="$value"
118 ;;
119 --linker=*)
120 LD="$value"
107 ;; 121 ;;
108 *) 122 *)
109 echo "Error: Unknown flag: $1" 123 echo "Error: Unknown flag: $1"
110 exit 1 124 exit 1
111 ;; 125 ;;
277 REQUIRE_CONFIG=$REQUIRE_CONFIG 291 REQUIRE_CONFIG=$REQUIRE_CONFIG
278 IDN_LIB=$IDN_LIB 292 IDN_LIB=$IDN_LIB
279 OPENSSL_LIB=$OPENSSL_LIB 293 OPENSSL_LIB=$OPENSSL_LIB
280 CFLAGS=$CFLAGS 294 CFLAGS=$CFLAGS
281 LFLAGS=$LFLAGS 295 LFLAGS=$LFLAGS
296 CC=$CC
297 LD=$LD
282 298
283 EOF 299 EOF
284 300
285 echo "Installation prefix: $PREFIX" 301 echo "Installation prefix: $PREFIX"
286 echo "Prosody configuration directory: $SYSCONFDIR" 302 echo "Prosody configuration directory: $SYSCONFDIR"