Changeset 858ea01 for configure


Ignore:
Timestamp:
2010-09-30T05:50:43Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6ce2240
Parents:
2dcaf9a
Message:

Allow building OTR support as a plugin. Fairly simple, let's hope I can get
away with doing this without libtool (eep).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r2dcaf9a r858ea01  
    500500fi
    501501if [ "$otr" = 1 ]; then
    502         echo '#define WITH_OTR' >> config.h
     502        # BI == built-in
     503        echo '#define OTR_BI' >> config.h
    503504        echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings
    504505        echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
    505 else
    506         echo '#undef WITH_OTR' >> config.h
     506        echo 'OTR_BI=otr.o' >> Makefile.settings
     507elif [ "$otr" = "plugin" ]; then
     508        echo '#define OTR_PI' >> config.h
     509        echo "OTRFLAGS=-L${otrprefix}/lib -lotr" >> Makefile.settings
     510        echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
     511        echo 'OTR_PI=otr.so' >> Makefile.settings
    507512fi
    508513
     
    703708if [ "$otr" = "1" ]; then
    704709        echo '  Off-the-Record (OTR) Messaging enabled.'
     710elif [ "$otr" = "plugin" ]; then
     711        echo '  Off-the-Record (OTR) Messaging enabled (as a plugin).'
    705712else
    706713        echo '  Off-the-Record (OTR) Messaging disabled.'
Note: See TracChangeset for help on using the changeset viewer.