1 diff -Nur bitlbee-1.0.1-orig/configure bitlbee-1.0.1/configure
2 --- bitlbee-1.0.1-orig/configure 2006-01-14 16:14:05.000000000 +0100
3 +++ bitlbee-1.0.1/configure 2006-03-06 18:30:19.000000000 +0100
19 --debug=0/1 Disable/enable debugging $debug
20 --strip=0/1 Disable/enable binary stripping $strip
21 +--sizeopt=0/1 Disable/enable size optimization $sizeopt
23 +--arch=... Describe Operating System ?! $arch
24 +--cpu=... Describe CPU $cpu
26 --ipv6=0/1 IPv6 socket support $ipv6
28 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto)
30 +--glib1=0/1 Force usage of glib1 even if glib2 is present
37 echo 'CFLAGS=-g' >> Makefile.settings
38 echo 'DEBUG=1' >> Makefile.settings
39 echo '#define DEBUG' >> config.h
40 + if [ "$sizeopt" = "1" ]; then
41 + echo "Warning: won't optimize for size since debug is on."
43 +elif [ "$sizeopt" = "1" ]; then
44 + echo 'CFLAGS=-Os' >> Makefile.settings
46 - echo 'CFLAGS=-O3' >> Makefile.settings
47 + echo 'CFLAGS=-O2' >> Makefile.settings
50 echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings
55 -if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
56 +if [ "$glib1" != "1" ] && \
57 + type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
58 cat<<EOF>>Makefile.settings
59 EFLAGS+=`pkg-config --libs glib-2.0`
60 CFLAGS+=`pkg-config --cflags glib-2.0`
62 echo '#define GLIB2' >> config.h
63 -elif type glib-config > /dev/null 2> /dev/null; then
64 +elif [ "x$glib1prefix" = "x" ] && \
65 + type glib-config > /dev/null 2> /dev/null; then
66 cat<<EOF>>Makefile.settings
67 EFLAGS+=`glib-config --libs`
68 CFLAGS+=`glib-config --cflags`
70 echo '#define GLIB1' >> config.h
71 +elif [ "x$glib1prefix" != "x" ] && \
72 + type "$glib1prefix/bin/glib-config" > /dev/null 2> /dev/null; then
73 + cat<<EOF>>Makefile.settings
74 +EFLAGS+=`$glib1prefix/bin/glib-config --prefix=$glib1prefix --libs`
75 +CFLAGS+=`$glib1prefix/bin/glib-config --prefix=$glib1prefix --cflags`
77 + echo '#define GLIB1' >> config.h
79 echo 'Cannot find glib development libraries, aborting. (Install libglib-dev?)'
83 -if [ -r /usr/include/iconv.h ]; then
84 +if [ -r "$STAGING_DIR/usr/include/iconv.h" ]; then
86 elif [ -r /usr/local/include/iconv.h ]; then
87 echo CFLAGS+=-I/usr/local/include >> Makefile.settings;
90 echo 'Cygwin is not officially supported.'
93 + echo 'EFLAGS+=-liconv' >> Makefile.settings;
94 + echo "CFLAGS+=\"-I$STAGING_DIR/usr/include\"" >> Makefile.settings;
97 echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
98 echo 'Please report any problems at http://bugs.bitlbee.org/.'