[b7d3cc34] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | ############################## |
---|
| 4 | ## Configurer for BitlBee ## |
---|
| 5 | ## ## |
---|
| 6 | ## Copyright 2004 Lintux ## |
---|
| 7 | ## Copyright 2002 Lucumo ## |
---|
| 8 | ############################## |
---|
| 9 | |
---|
| 10 | prefix='/usr/local/' |
---|
| 11 | bindir='$prefix/sbin/' |
---|
| 12 | etcdir='$prefix/etc/bitlbee/' |
---|
| 13 | mandir='$prefix/share/man/' |
---|
| 14 | datadir='$prefix/share/bitlbee/' |
---|
| 15 | config='/var/lib/bitlbee/' |
---|
[85cf37f] | 16 | plugindir='$prefix/lib/bitlbee/' |
---|
| 17 | includedir='$prefix/include/bitlbee/' |
---|
| 18 | libevent='/usr/' |
---|
[34b17d9] | 19 | pidfile='/var/run/bitlbee.pid' |
---|
[6dff9d4] | 20 | ipcsocket='/var/run/bitlbee' |
---|
[e506d6c] | 21 | pcdir='$prefix/lib/pkgconfig' |
---|
[b7d3cc34] | 22 | |
---|
| 23 | msn=1 |
---|
| 24 | jabber=1 |
---|
| 25 | oscar=1 |
---|
| 26 | yahoo=1 |
---|
| 27 | |
---|
| 28 | debug=0 |
---|
| 29 | strip=1 |
---|
[66b9e86e] | 30 | gcov=0 |
---|
[b7d3cc34] | 31 | ipv6=1 |
---|
[85cf37f] | 32 | |
---|
| 33 | events=glib |
---|
[b7d3cc34] | 34 | ssl=auto |
---|
| 35 | |
---|
| 36 | arch=`uname -s` |
---|
| 37 | cpu=`uname -m` |
---|
| 38 | |
---|
| 39 | echo BitlBee configure |
---|
| 40 | |
---|
| 41 | while [ -n "$1" ]; do |
---|
| 42 | e="`expr "X$1" : 'X--\(.*=.*\)'`" |
---|
| 43 | if [ -z "$e" ]; then |
---|
| 44 | cat<<EOF |
---|
| 45 | |
---|
| 46 | Usage: $0 [OPTIONS] |
---|
| 47 | |
---|
| 48 | Option Description Default |
---|
| 49 | |
---|
| 50 | --prefix=... Directories to put files in $prefix |
---|
| 51 | --bindir=... $bindir |
---|
| 52 | --etcdir=... $etcdir |
---|
| 53 | --mandir=... $mandir |
---|
| 54 | --datadir=... $datadir |
---|
[7b23afd] | 55 | --plugindir=... $plugindir |
---|
[34b17d9] | 56 | --pidfile=... $pidfile |
---|
[b7d3cc34] | 57 | --config=... $config |
---|
[6dff9d4] | 58 | --ipcsocket=... $ipcsocket |
---|
[b7d3cc34] | 59 | |
---|
| 60 | --msn=0/1 Disable/enable MSN part $msn |
---|
| 61 | --jabber=0/1 Disable/enable Jabber part $jabber |
---|
| 62 | --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar |
---|
| 63 | --yahoo=0/1 Disable/enable Yahoo part $yahoo |
---|
| 64 | |
---|
| 65 | --debug=0/1 Disable/enable debugging $debug |
---|
| 66 | --strip=0/1 Disable/enable binary stripping $strip |
---|
[66b9e86e] | 67 | --gcov=0/1 Disable/enable test coverage reporting $gcov |
---|
[b7d3cc34] | 68 | |
---|
| 69 | --ipv6=0/1 IPv6 socket support $ipv6 |
---|
| 70 | |
---|
[85cf37f] | 71 | --events=... Event handler (glib, libevent) $events |
---|
[b7d3cc34] | 72 | --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) |
---|
| 73 | $ssl |
---|
| 74 | EOF |
---|
| 75 | exit; |
---|
| 76 | fi |
---|
| 77 | eval "$e" |
---|
| 78 | shift; |
---|
| 79 | done |
---|
| 80 | |
---|
| 81 | # Expand $prefix and get rid of double slashes |
---|
| 82 | bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 83 | etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 84 | mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 85 | datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 86 | config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` |
---|
[7b23afd] | 87 | plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` |
---|
[85cf37f] | 88 | includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'` |
---|
| 89 | libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'` |
---|
| 90 | |
---|
[6dff9d4] | 91 | pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'` |
---|
| 92 | ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` |
---|
[e506d6c] | 93 | pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` |
---|
[b7d3cc34] | 94 | |
---|
| 95 | cat<<EOF>Makefile.settings |
---|
| 96 | ## BitlBee settings, generated by configure |
---|
| 97 | PREFIX=$prefix |
---|
| 98 | BINDIR=$bindir |
---|
| 99 | ETCDIR=$etcdir |
---|
| 100 | MANDIR=$mandir |
---|
| 101 | DATADIR=$datadir |
---|
[7b23afd] | 102 | PLUGINDIR=$plugindir |
---|
[b7d3cc34] | 103 | CONFIG=$config |
---|
[6dff9d4] | 104 | IPCSOCKET=$ipcsocket |
---|
[e506d6c] | 105 | INCLUDEDIR=$includedir |
---|
| 106 | PCDIR=$pcdir |
---|
[b7d3cc34] | 107 | |
---|
| 108 | ARCH=$arch |
---|
| 109 | CPU=$cpu |
---|
| 110 | OUTFILE=bitlbee |
---|
| 111 | |
---|
| 112 | DESTDIR= |
---|
| 113 | LFLAGS= |
---|
| 114 | EFLAGS= |
---|
| 115 | EOF |
---|
| 116 | |
---|
| 117 | cat<<EOF>config.h |
---|
| 118 | /* BitlBee settings, generated by configure |
---|
| 119 | |
---|
| 120 | Do *NOT* use any of these defines in your code without thinking twice, most |
---|
| 121 | of them can/will be overridden at run-time */ |
---|
| 122 | |
---|
| 123 | #define CONFIG "$config" |
---|
| 124 | #define ETCDIR "$etcdir" |
---|
| 125 | #define VARDIR "$datadir" |
---|
[7b23afd] | 126 | #define PLUGINDIR "$plugindir" |
---|
[34b17d9] | 127 | #define PIDFILE "$pidfile" |
---|
[6dff9d4] | 128 | #define IPCSOCKET "$ipcsocket" |
---|
[b7d3cc34] | 129 | #define ARCH "$arch" |
---|
| 130 | #define CPU "$cpu" |
---|
| 131 | EOF |
---|
| 132 | |
---|
| 133 | if [ "$ipv6" = "1" ]; then |
---|
| 134 | echo '#define IPV6' >> config.h |
---|
| 135 | fi |
---|
| 136 | |
---|
| 137 | if [ "$debug" = "1" ]; then |
---|
| 138 | echo 'CFLAGS=-g' >> Makefile.settings |
---|
| 139 | echo 'DEBUG=1' >> Makefile.settings |
---|
| 140 | echo '#define DEBUG' >> config.h |
---|
| 141 | else |
---|
| 142 | echo 'CFLAGS=-O3' >> Makefile.settings |
---|
| 143 | fi |
---|
| 144 | |
---|
| 145 | echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings |
---|
| 146 | |
---|
[f712188] | 147 | echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings |
---|
| 148 | |
---|
[b7d3cc34] | 149 | if [ -n "$CC" ]; then |
---|
| 150 | echo "CC=$CC" >> Makefile.settings; |
---|
| 151 | elif type gcc > /dev/null 2> /dev/null; then |
---|
| 152 | echo "CC=gcc" >> Makefile.settings; |
---|
| 153 | elif type cc > /dev/null 2> /dev/null; then |
---|
| 154 | echo "CC=cc" >> Makefile.settings; |
---|
| 155 | else |
---|
| 156 | echo 'Cannot find a C compiler, aborting.' |
---|
| 157 | exit 1; |
---|
| 158 | fi |
---|
| 159 | |
---|
| 160 | if [ -n "$LD" ]; then |
---|
| 161 | echo "LD=$LD" >> Makefile.settings; |
---|
| 162 | elif type ld > /dev/null 2> /dev/null; then |
---|
| 163 | echo "LD=ld" >> Makefile.settings; |
---|
| 164 | else |
---|
| 165 | echo 'Cannot find ld, aborting.' |
---|
| 166 | exit 1; |
---|
| 167 | fi |
---|
| 168 | |
---|
[32c632f] | 169 | if [ -z "$PKG_CONFIG" ]; then |
---|
| 170 | PKG_CONFIG=pkg-config |
---|
| 171 | fi |
---|
| 172 | |
---|
| 173 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then |
---|
[b7d3cc34] | 174 | cat<<EOF>>Makefile.settings |
---|
[32c632f] | 175 | EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0` |
---|
| 176 | CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0` |
---|
[b7d3cc34] | 177 | EOF |
---|
| 178 | else |
---|
[574af7e] | 179 | echo 'Cannot find glib2 development libraries, aborting. (Install libglib2-dev?)' |
---|
[b7d3cc34] | 180 | exit 1; |
---|
| 181 | fi |
---|
| 182 | |
---|
[85cf37f] | 183 | if [ "$events" = "libevent" ]; then |
---|
| 184 | if ! [ -e "${libevent}include/event.h" ]; then |
---|
| 185 | echo |
---|
| 186 | echo 'Warning: Could not find event.h, you might have to install it and/or specify' |
---|
| 187 | echo 'its location using the --libevent= argument. (Example: If event.h is in' |
---|
| 188 | echo '/usr/local/include and binaries are in /usr/local/lib: --libevent=/usr/local)' |
---|
| 189 | fi |
---|
| 190 | |
---|
| 191 | echo '#define EVENTS_LIBEVENT' >> config.h |
---|
| 192 | cat <<EOF>>Makefile.settings |
---|
| 193 | EFLAGS+=-levent -L${libevent}lib |
---|
| 194 | CFLAGS+=-I${libevent}include |
---|
| 195 | EOF |
---|
| 196 | elif [ "$events" = "glib" ]; then |
---|
| 197 | ## We already use glib anyway, so this is all we need (and in fact not even this, but just to be sure...): |
---|
| 198 | echo '#define EVENTS_GLIB' >> config.h |
---|
| 199 | else |
---|
| 200 | echo |
---|
| 201 | echo 'ERROR: Unknown event handler specified.' |
---|
| 202 | exit 1 |
---|
[b7d3cc34] | 203 | fi |
---|
[85cf37f] | 204 | echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings |
---|
[b7d3cc34] | 205 | |
---|
| 206 | detect_gnutls() |
---|
| 207 | { |
---|
| 208 | if libgnutls-config --version > /dev/null 2> /dev/null; then |
---|
| 209 | cat <<EOF>>Makefile.settings |
---|
| 210 | EFLAGS+=`libgnutls-config --libs` |
---|
| 211 | CFLAGS+=`libgnutls-config --cflags` |
---|
| 212 | EOF |
---|
| 213 | |
---|
| 214 | ssl=gnutls |
---|
| 215 | ret=1; |
---|
| 216 | else |
---|
| 217 | ret=0; |
---|
| 218 | fi; |
---|
| 219 | } |
---|
| 220 | |
---|
| 221 | detect_nss() |
---|
| 222 | { |
---|
[32c632f] | 223 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then |
---|
[b7d3cc34] | 224 | cat<<EOF>>Makefile.settings |
---|
[32c632f] | 225 | EFLAGS+=`$PKG_CONFIG --libs mozilla-nss` |
---|
| 226 | CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss` |
---|
[b7d3cc34] | 227 | EOF |
---|
| 228 | |
---|
| 229 | ssl=nss |
---|
| 230 | ret=1; |
---|
| 231 | else |
---|
| 232 | ret=0; |
---|
| 233 | fi; |
---|
| 234 | } |
---|
| 235 | |
---|
| 236 | if [ "$msn" = 1 -o "$jabber" = 1 ]; then |
---|
| 237 | if [ "$ssl" = "auto" ]; then |
---|
| 238 | detect_gnutls |
---|
| 239 | if [ "$ret" = "0" ]; then |
---|
| 240 | detect_nss |
---|
| 241 | fi; |
---|
| 242 | elif [ "$ssl" = "gnutls" ]; then |
---|
| 243 | detect_gnutls; |
---|
| 244 | elif [ "$ssl" = "nss" ]; then |
---|
| 245 | detect_nss; |
---|
| 246 | elif [ "$ssl" = "openssl" ]; then |
---|
| 247 | echo |
---|
| 248 | echo 'No detection code exists for OpenSSL. Make sure that you have a complete' |
---|
| 249 | echo 'install of OpenSSL (including devel/header files) before reporting' |
---|
| 250 | echo 'compilation problems.' |
---|
| 251 | echo |
---|
| 252 | echo 'Also, keep in mind that the OpenSSL is, according to some people, not' |
---|
| 253 | echo 'completely GPL-compatible. Using GnuTLS or NSS is recommended and better' |
---|
| 254 | echo 'supported by us. However, on many BSD machines, OpenSSL can be considered' |
---|
| 255 | echo 'part of the operating system, which makes it GPL-compatible.' |
---|
| 256 | echo |
---|
| 257 | echo 'For more info, see: http://www.openssl.org/support/faq.html#LEGAL2' |
---|
| 258 | echo ' http://www.gnome.org/~markmc/openssl-and-the-gpl.html' |
---|
| 259 | echo |
---|
| 260 | echo 'Please note that distributing a BitlBee binary which links to OpenSSL is' |
---|
| 261 | echo 'probably illegal. If you want to create and distribute a binary BitlBee' |
---|
| 262 | echo 'package, you really should use GnuTLS or NSS instead.' |
---|
| 263 | echo |
---|
| 264 | echo 'Also, the OpenSSL license requires us to say this:' |
---|
| 265 | echo ' * "This product includes software developed by the OpenSSL Project' |
---|
| 266 | echo ' * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"' |
---|
| 267 | |
---|
| 268 | echo 'EFLAGS+=-lssl -lcrypto' >> Makefile.settings |
---|
| 269 | |
---|
| 270 | ret=1; |
---|
| 271 | elif [ "$ssl" = "bogus" ]; then |
---|
| 272 | echo |
---|
| 273 | echo 'Using bogus SSL code. This will not make the MSN module work, but it will' |
---|
| 274 | echo 'allow you to use the Jabber module - although without working SSL support.' |
---|
| 275 | |
---|
| 276 | ret=1; |
---|
| 277 | else |
---|
| 278 | echo |
---|
| 279 | echo 'ERROR: Unknown SSL library specified.' |
---|
| 280 | exit 1; |
---|
| 281 | fi |
---|
| 282 | |
---|
| 283 | if [ "$ret" = "0" ]; then |
---|
| 284 | echo |
---|
[54c5ca1] | 285 | echo 'ERROR: Could not find a suitable SSL library (GnuTLS, libnss or OpenSSL).' |
---|
| 286 | echo ' This is necessary for MSN and full Jabber support. To continue,' |
---|
| 287 | echo ' install a suitable SSL library or disable MSN support (--msn=0).' |
---|
| 288 | echo ' If you want Jabber without SSL support you can try --ssl=bogus.' |
---|
[b7d3cc34] | 289 | |
---|
| 290 | exit 1; |
---|
| 291 | fi; |
---|
| 292 | |
---|
| 293 | echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings |
---|
| 294 | fi |
---|
| 295 | |
---|
| 296 | if [ "$strip" = 0 ]; then |
---|
| 297 | echo "STRIP=\# skip strip" >> Makefile.settings; |
---|
| 298 | else |
---|
| 299 | if [ "$debug" = 1 ]; then |
---|
| 300 | echo |
---|
| 301 | echo 'Stripping binaries does not make sense when debugging. Stripping disabled.' |
---|
| 302 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 303 | strip=0; |
---|
| 304 | elif [ -n "$STRIP" ]; then |
---|
| 305 | echo "STRIP=$STRIP" >> Makefile.settings; |
---|
| 306 | elif type strip > /dev/null 2> /dev/null; then |
---|
| 307 | echo "STRIP=strip" >> Makefile.settings; |
---|
| 308 | elif /bin/test -x /usr/ccs/bin/strip; then |
---|
| 309 | echo "STRIP=/usr/ccs/bin/strip" >> Makefile.settings; |
---|
| 310 | else |
---|
| 311 | echo |
---|
| 312 | echo 'No strip utility found, cannot remove unnecessary parts from executable.' |
---|
| 313 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 314 | strip=0; |
---|
| 315 | fi; |
---|
| 316 | fi |
---|
| 317 | |
---|
[66b9e86e] | 318 | if [ "$gcov" = "1" ]; then |
---|
| 319 | echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings |
---|
| 320 | echo "EFLAGS+=-lgcov" >> Makefile.settings |
---|
| 321 | fi |
---|
| 322 | |
---|
[ffea9b9] | 323 | echo |
---|
[a014331] | 324 | if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then |
---|
| 325 | nick=`bzr nick` |
---|
| 326 | if [ -n "$nick" -a "$nick" != "bitlbee" ]; then |
---|
| 327 | nick="-$nick" |
---|
| 328 | else |
---|
| 329 | nick="" |
---|
| 330 | fi |
---|
[ffea9b9] | 331 | rev=`bzr revno` |
---|
| 332 | echo 'Using bzr revision #'$rev' as version number' |
---|
[a014331] | 333 | BITLBEE_VERSION=\"bzr$nick-$rev\" |
---|
[ffea9b9] | 334 | fi |
---|
| 335 | |
---|
[b7d3cc34] | 336 | if [ -n "$BITLBEE_VERSION" ]; then |
---|
| 337 | echo 'Spoofing version number: '$BITLBEE_VERSION |
---|
| 338 | echo '#undef BITLBEE_VERSION' >> config.h |
---|
[ffea9b9] | 339 | echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h |
---|
| 340 | echo |
---|
[b7d3cc34] | 341 | fi |
---|
| 342 | |
---|
[e506d6c] | 343 | cat <<EOF>bitlbee.pc |
---|
| 344 | prefix=$prefix |
---|
| 345 | includedir=$includedir |
---|
| 346 | |
---|
| 347 | Name: bitlbee |
---|
| 348 | Description: IRC to IM gateway |
---|
| 349 | Requires: glib-2.0 |
---|
| 350 | Version: $BITLBEE_VERSION |
---|
| 351 | Libs: |
---|
| 352 | Cflags: -I\${includedir} |
---|
| 353 | |
---|
| 354 | EOF |
---|
| 355 | |
---|
[b7d3cc34] | 356 | protocols='' |
---|
| 357 | protoobjs='' |
---|
| 358 | |
---|
| 359 | if [ "$msn" = 0 ]; then |
---|
| 360 | echo '#undef WITH_MSN' >> config.h |
---|
| 361 | else |
---|
| 362 | echo '#define WITH_MSN' >> config.h |
---|
| 363 | protocols=$protocols'msn ' |
---|
[b5a22e3] | 364 | protoobjs=$protoobjs'msn_mod.o ' |
---|
[b7d3cc34] | 365 | fi |
---|
| 366 | |
---|
| 367 | if [ "$jabber" = 0 ]; then |
---|
| 368 | echo '#undef WITH_JABBER' >> config.h |
---|
| 369 | else |
---|
| 370 | echo '#define WITH_JABBER' >> config.h |
---|
| 371 | protocols=$protocols'jabber ' |
---|
[b5a22e3] | 372 | protoobjs=$protoobjs'jabber_mod.o ' |
---|
[b7d3cc34] | 373 | fi |
---|
| 374 | |
---|
| 375 | if [ "$oscar" = 0 ]; then |
---|
| 376 | echo '#undef WITH_OSCAR' >> config.h |
---|
| 377 | else |
---|
| 378 | echo '#define WITH_OSCAR' >> config.h |
---|
| 379 | protocols=$protocols'oscar ' |
---|
[b5a22e3] | 380 | protoobjs=$protoobjs'oscar_mod.o ' |
---|
[b7d3cc34] | 381 | fi |
---|
| 382 | |
---|
| 383 | if [ "$yahoo" = 0 ]; then |
---|
| 384 | echo '#undef WITH_YAHOO' >> config.h |
---|
| 385 | else |
---|
| 386 | echo '#define WITH_YAHOO' >> config.h |
---|
| 387 | protocols=$protocols'yahoo ' |
---|
[b5a22e3] | 388 | protoobjs=$protoobjs'yahoo_mod.o ' |
---|
[b7d3cc34] | 389 | fi |
---|
| 390 | |
---|
| 391 | if [ "$protocols" = "PROTOCOLS = " ]; then |
---|
| 392 | echo "WARNING: You haven't selected any communication protocol to compile!" |
---|
| 393 | echo " Bitlbee will run, but you will be unable to connect to IM servers!" |
---|
| 394 | fi |
---|
| 395 | |
---|
| 396 | echo "PROTOCOLS = $protocols" >> Makefile.settings |
---|
| 397 | echo "PROTOOBJS = $protoobjs" >> Makefile.settings |
---|
| 398 | |
---|
| 399 | echo Architecture: $arch |
---|
| 400 | case "$arch" in |
---|
| 401 | Linux ) |
---|
| 402 | ;; |
---|
| 403 | GNU/* ) |
---|
| 404 | ;; |
---|
| 405 | *BSD ) |
---|
| 406 | ;; |
---|
| 407 | Darwin ) |
---|
| 408 | ;; |
---|
| 409 | IRIX ) |
---|
| 410 | ;; |
---|
[574af7e] | 411 | SunOS ) |
---|
| 412 | echo 'EFLAGS+=-lresolv -lnsl -lsocket' >> Makefile.settings |
---|
| 413 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 414 | ;; |
---|
[b7d3cc34] | 415 | CYGWIN* ) |
---|
| 416 | echo 'Cygwin is not officially supported.' |
---|
| 417 | ;; |
---|
| 418 | * ) |
---|
[8d6c4b1] | 419 | echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' |
---|
| 420 | echo 'Please report any problems at http://bugs.bitlbee.org/.' |
---|
[b7d3cc34] | 421 | ;; |
---|
| 422 | esac |
---|
| 423 | |
---|
| 424 | echo |
---|
| 425 | echo 'Configuration done:' |
---|
| 426 | |
---|
| 427 | if [ "$debug" = "1" ]; then |
---|
| 428 | echo ' Debugging enabled.'; |
---|
| 429 | else |
---|
| 430 | echo ' Debugging disabled.'; |
---|
| 431 | fi |
---|
| 432 | |
---|
| 433 | if [ "$strip" = "1" ]; then |
---|
| 434 | echo ' Binary stripping enabled.'; |
---|
| 435 | else |
---|
| 436 | echo ' Binary stripping disabled.'; |
---|
| 437 | fi |
---|
| 438 | |
---|
[85cf37f] | 439 | echo ' Using event handler: '$events; |
---|
| 440 | echo ' Using SSL library: '$ssl; |
---|
[b7d3cc34] | 441 | |
---|
[e5663e0] | 442 | #if [ "$flood" = "0" ]; then |
---|
| 443 | # echo ' Flood protection disabled.'; |
---|
| 444 | #else |
---|
| 445 | # echo ' Flood protection enabled.'; |
---|
| 446 | #fi |
---|
[b7d3cc34] | 447 | |
---|
| 448 | if [ -n "$protocols" ]; then |
---|
| 449 | echo ' Building with these protocols:' $protocols; |
---|
| 450 | else |
---|
| 451 | echo ' Building without IM-protocol support. We wish you a lot of fun...'; |
---|
| 452 | fi |
---|