diff --git a/configure b/configure
index b190b20..3a1cb68 100755
a
|
b
|
if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; th |
534 | 534 | echo 'Install xmlto if you want online help to work.' |
535 | 535 | fi |
536 | 536 | |
| 537 | REAL_BITLBEE_VERSION=`grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/'` |
537 | 538 | echo |
538 | 539 | if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then |
539 | 540 | nick=`bzr nick` |
… |
… |
if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; th |
544 | 545 | fi |
545 | 546 | rev=`bzr revno` |
546 | 547 | echo 'Using bzr revision #'$rev' as version number' |
547 | | BITLBEE_VERSION=\"bzr$nick-$rev\" |
| 548 | BITLBEE_VERSION=$REAL_BITLBEE_VERSION-bzr$nick-$rev |
548 | 549 | fi |
549 | 550 | |
550 | 551 | if [ -n "$BITLBEE_VERSION" ]; then |
551 | 552 | echo 'Spoofing version number: '$BITLBEE_VERSION |
552 | 553 | echo '#undef BITLBEE_VERSION' >> config.h |
553 | | echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h |
| 554 | echo '#define BITLBEE_VERSION "'$BITLBEE_VERSION'"' >> config.h |
554 | 555 | echo |
| 556 | else |
| 557 | # for pkg-config |
| 558 | BITLBEE_VERSION=$REAL_BITLBEE_VERSION |
555 | 559 | fi |
556 | 560 | |
| 561 | |
557 | 562 | if ! make helloworld > /dev/null 2>&1; then |
558 | 563 | echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles." |
559 | 564 | echo "BitlBee needs GNU make to build properly. On most systems GNU make is available" |