Changeset 21c87a7 for configure


Ignore:
Timestamp:
2010-04-14T09:27:50Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d33679e
Parents:
81186cab (diff), 156bbd7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging loads of stuff from mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r81186cab r21c87a7  
    2626oscar=1
    2727yahoo=1
     28twitter=1
    2829
    2930debug=0
     
    6667--oscar=0/1     Disable/enable Oscar part (ICQ, AIM)    $oscar
    6768--yahoo=0/1     Disable/enable Yahoo part               $yahoo
     69--twitter=0/1 Disable/enable Twitter part               $twitter
    6870
    6971--debug=0/1     Disable/enable debugging                $debug
     
    267269detect_ldap()
    268270{
    269         TMPFILE=$(mktemp)
     271        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    270272        if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    271273                cat<<EOF>>Makefile.settings
     
    295297detect_resolv_dynamic()
    296298{
    297         TMPFILE=$(mktemp)
     299        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    298300        ret=1
    299301        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
     
    309311detect_resolv_static()
    310312{
    311         TMPFILE=$(mktemp)
     313        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    312314        ret=1
    313315        for i in $systemlibdirs; do
     
    476478fi
    477479
     480if ! make helloworld > /dev/null 2>&1; then
     481        echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles."
     482        echo "BitlBee needs GNU make to build properly. On most systems GNU make is available"
     483        echo "under the name 'gmake'."
     484        echo
     485        if gmake helloworld > /dev/null 2>&1; then
     486                echo "gmake seems to be available on your machine, great."
     487                echo
     488        else
     489                echo "gmake is not installed (or not working). Please try to install it."
     490                echo
     491        fi
     492fi
     493
    478494cat <<EOF>bitlbee.pc
    479495prefix=$prefix
     
    524540fi
    525541
     542if [ "$twitter" = 0 ]; then
     543        echo '#undef WITH_TWITTER' >> config.h
     544else
     545        echo '#define WITH_TWITTER' >> config.h
     546        protocols=$protocols'twitter '
     547        protoobjs=$protoobjs'twitter_mod.o '
     548fi
     549
    526550if [ "$protocols" = "PROTOCOLS = " ]; then
    527551        echo "Warning: You haven't selected any communication protocol to compile!"
Note: See TracChangeset for help on using the changeset viewer.