aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure33
1 files changed, 23 insertions, 10 deletions
diff --git a/configure b/configure
index 481493d4..27fe4c88 100755
--- a/configure
+++ b/configure
@@ -19,7 +19,7 @@ libevent='/usr/'
pidfile='/var/run/bitlbee.pid'
ipcsocket='/var/run/bitlbee.sock'
pcdir='$prefix/lib/pkgconfig'
-systemlibdirs="/lib /usr/lib /usr/local/lib"
+systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
msn=1
jabber=1
@@ -296,28 +296,34 @@ int main()
detect_resolv_dynamic()
{
- echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
+ TMPFILE=$(mktemp)
+ ret=1
+ echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
if [ "$?" = "0" ]; then
echo 'EFLAGS+=-lresolv' >> Makefile.settings
- return 0
+ ret=0
fi
- return 1
+ rm -f $TMPFILE
+ return $ret
}
detect_resolv_static()
{
+ TMPFILE=$(mktemp)
+ ret=1
for i in $systemlibdirs; do
if [ -f $i/libresolv.a ]; then
- echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
+ echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
if [ "$?" = "0" ]; then
echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
- return 0
+ ret=0
fi
fi
done
- return 1
+ rm -f $TMPFILE
+ return $ret
}
if [ "$ssl" = "auto" ]; then
@@ -361,11 +367,11 @@ elif [ "$ssl" = "bogus" ]; then
echo 'Using bogus SSL code. This means some features will not work properly.'
## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
- if [ "$msn" = "1" ]; then
+ if [ "$msn" = "1" -o "$yahoo" = "1" ]; then
echo
- echo 'Real SSL support is necessary for MSN authentication, will build without'
- echo 'MSN protocol support.'
+ echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.'
msn=0
+ yahoo=0
fi
ret=1
@@ -445,6 +451,12 @@ else
echo '#define WITH_PLUGINS' >> config.h
fi
+if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
+ echo
+ echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
+ echo 'Install xmlto if you want online help to work.'
+fi
+
echo
if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
nick=`bzr nick`
@@ -538,6 +550,7 @@ GNU/* )
*BSD )
;;
Darwin )
+ echo 'STRIP=\# skip strip' >> Makefile.settings
;;
IRIX )
;;