Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r36e9f62 r670204f  
    3131
    3232events=glib
    33 ldap=auto
     33ldap=0
    3434ssl=auto
    3535
    3636arch=`uname -s`
    3737cpu=`uname -m`
     38
     39GLIB_MIN_VERSION=2.4
    3840
    3941echo BitlBee configure
     
    175177
    176178if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    177         cat<<EOF>>Makefile.settings
     179        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
     180                cat<<EOF>>Makefile.settings
    178181EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    179182CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
    180183EOF
    181 else
     184        else
     185                echo
     186                echo 'Found glib2 '`$PKG_CONFIG glib-2.0 --modversion`', but version '$GLIB_MIN_VERSION' or newer is required.'
     187                exit 1
     188        fi
     189else
     190        echo
    182191        echo 'Cannot find glib2 development libraries, aborting. (Install libglib2-dev?)'
    183         exit 1;
     192        exit 1
    184193fi
    185194
     
    290299elif [ "$ssl" = "bogus" ]; then
    291300        echo
    292         echo 'Using bogus SSL code. This means some features have to be disabled.'
     301        echo 'Using bogus SSL code. This means some features will not work properly.'
    293302       
    294303        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
     
    318327
    319328echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    320 
    321 for i in /lib /usr/lib /usr/local/lib; do
    322         if [ -e $i/libresolv.a ]; then
    323                 echo '#define HAVE_RESOLV_A' >> config.h
    324                 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    325                 break
    326         fi
    327 done
    328329
    329330STORAGES="text xml"
Note: See TracChangeset for help on using the changeset viewer.