Changeset b72caac for configure


Ignore:
Timestamp:
2006-06-21T16:34:33Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
59f5c42a
Parents:
3af70b0 (diff), df417ca (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 libevent branch: Events can now be handles by both glib and libevent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3af70b0 rb72caac  
    1414datadir='$prefix/share/bitlbee/'
    1515config='/var/lib/bitlbee/'
     16plugindir='$prefix/lib/bitlbee/'
     17includedir='$prefix/include/bitlbee/'
     18libevent='/usr/'
    1619pidfile='/var/run/bitlbee.pid'
    1720ipcsocket='/var/run/bitlbee'
    18 plugindir='$prefix/lib/bitlbee'
    1921pcdir='$prefix/lib/pkgconfig'
    20 includedir='$prefix/include/bitlbee'
    2122
    2223msn=1
     
    2829strip=1
    2930ipv6=1
     31
     32events=glib
    3033ssl=auto
    3134
     
    6467--ipv6=0/1      IPv6 socket support                     $ipv6
    6568
     69--events=...    Event handler (glib, libevent)          $events
    6670--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
    6771                                                        $ssl
     
    8084config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    8185plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
     86includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'`
     87libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'`
     88
    8289pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`
    8390ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`
    84 includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'`
    8591pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
    8692
     
    173179fi
    174180
     181if [ "$events" = "libevent" ]; then
     182        if ! [ -e "${libevent}include/event.h" ]; then
     183                echo
     184                echo 'Warning: Could not find event.h, you might have to install it and/or specify'
     185                echo 'its location using the --libevent= argument. (Example: If event.h is in'
     186                echo '/usr/local/include and binaries are in /usr/local/lib: --libevent=/usr/local)'
     187        fi
     188       
     189        echo '#define EVENTS_LIBEVENT' >> config.h
     190        cat <<EOF>>Makefile.settings
     191EFLAGS+=-levent -L${libevent}lib
     192CFLAGS+=-I${libevent}include
     193EOF
     194elif [ "$events" = "glib" ]; then
     195        ## We already use glib anyway, so this is all we need (and in fact not even this, but just to be sure...):
     196        echo '#define EVENTS_GLIB' >> config.h
     197else
     198        echo
     199        echo 'ERROR: Unknown event handler specified.'
     200        exit 1
     201fi
     202echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings
     203
    175204detect_gnutls()
    176205{
     
    401430fi
    402431
    403 if [ "$msn" = "1" ]; then
    404         echo '  Using SSL library: '$ssl;
    405 fi
     432echo '  Using event handler: '$events;
     433echo '  Using SSL library: '$ssl;
    406434
    407435#if [ "$flood" = "0" ]; then
Note: See TracChangeset for help on using the changeset viewer.