Changeset 7a9d968 for configure


Ignore:
Timestamp:
2018-03-10T11:30:39Z (7 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
5447c59
Parents:
3f44e43 (diff), 4a9c6b0 (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:

Merge branch 'master' into HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3f44e43 r7a9d968  
    1515datadir='$prefix/share/bitlbee/'
    1616config='/var/lib/bitlbee/'
     17libdir='$prefix/lib/'
    1718plugindir='$prefix/lib/bitlbee/'
    1819rpcplugindir='$plugindir/rpc/'
     
    4142rpc=1
    4243
     44verbose=0
    4345doc=1
    4446debug=0
    45 strip=1
     47strip=0
    4648gcov=0
    4749asan=0
     
    129131--config=...                                            $config
    130132
     133--verbose=0/1   Disable/enable verbose build            $verbose
     134
    131135--msn=0/1       Disable/enable MSN part                 $msn
    132136--jabber=0/1    Disable/enable Jabber part              $jabber
     
    174178datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g')
    175179config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g')
     180libdir=$(eval echo "$libdir/" | sed 's/\/\{1,\}/\//g')
    176181plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g')
    177182rpcplugindir=$(eval echo "$rpcplugindir/" | sed 's/\/\{1,\}/\//g')
     
    199204RPCPLUGINDIR=$rpcplugindir
    200205CONFIG=$config
     206LIBDIR=$libdir
    201207INCLUDEDIR=$includedir
    202208PCDIR=$pcdir
     
    248254#define PLUGINDIR "$plugindir"
    249255#define RPCPLUGINDIR "$rpcplugindir"
     256#define DATADIR "$datadir"
    250257#define PIDFILE "$pidfile"
    251258#define IPCSOCKET "$ipcsocket"
     
    296303fi
    297304
     305if [ "$verbose" = "0" ]; then
     306        echo 'VERBOSE=@' >> Makefile.settings
     307else
     308        echo 'VERBOSE=' >> Makefile.settings
     309fi
     310
     311cat <<EOF >>Makefile.settings
     312
     313# Enable/disable output verbosity
     314ifdef V
     315ifeq (\$(V),1)
     316        VERBOSE=
     317else
     318        VERBOSE=@
     319endif
     320endif
     321
     322EOF
     323
    298324if [ "$debug" = "1" ]; then
    299325        echo 'DEBUG=1' >> Makefile.settings
    300326        CFLAGS="$CFLAGS -g3 -DDEBUG -O0"
    301327else
    302         [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing"
     328        [ -z "$CFLAGS" ] && CFLAGS="-g -O2 -fno-strict-aliasing"
    303329fi
    304330
     
    764790if [ "$doc" = "1" ]; then
    765791        # check this here just in case someone tries to install it in python2.4...
    766         if ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
     792        if [ ! -e $srcdir/doc/user-guide/help.txt ] && ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
    767793                echo
    768794                echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs'
     
    797823fi
    798824
     825pkgconfiglibs=''
     826case "$arch" in
     827CYGWIN* )
     828        pkgconfiglibs='-L${libdir} -lbitlbee -no-undefined'
     829esac
     830
    799831cat <<EOF >bitlbee.pc
    800832prefix=$prefix
     
    802834plugindir=$plugindir
    803835rpcplugindir=$rpcplugindir
     836libdir=$libdir
     837datadir=$datadir
    804838
    805839Name: bitlbee
     
    807841Requires: glib-2.0
    808842Version: $BITLBEE_VERSION
    809 Libs:
     843Libs: $pkgconfiglibs
    810844Cflags: -I\${includedir}
    811845
     
    925959;;
    926960CYGWIN* )
     961        echo 'EFLAGS+=-Wl,--export-all,--out-implib,libbitlbee.dll.a' >> Makefile.settings
     962        echo 'IMPLIB=libbitlbee.dll.a' >> Makefile.settings
    927963;;
    928964Windows )
Note: See TracChangeset for help on using the changeset viewer.