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