Changeset 4fca1db for configure


Ignore:
Timestamp:
2010-04-10T10:07:11Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ec2ebcc
Parents:
16592d8
Message:

Make compiling on BSD less painful: mktemp really does need a template on
some machines, and warn the user about make vs. gmake at configure time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r16592d8 r4fca1db  
    269269detect_ldap()
    270270{
    271         TMPFILE=$(mktemp)
     271        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    272272        if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    273273                cat<<EOF>>Makefile.settings
     
    297297detect_resolv_dynamic()
    298298{
    299         TMPFILE=$(mktemp)
     299        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    300300        ret=1
    301301        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
     
    311311detect_resolv_static()
    312312{
    313         TMPFILE=$(mktemp)
     313        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    314314        ret=1
    315315        for i in $systemlibdirs; do
     
    478478fi
    479479
     480if ! make helloworld > /dev/null 2>&1; then
     481        echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles."
     482        echo "BitlBee needs GNU make to build properly. On most systems GNU make is available"
     483        echo "under the name 'gmake'."
     484        echo
     485        if gmake helloworld > /dev/null 2>&1; then
     486                echo "gmake seems to be available on your machine, great."
     487                echo
     488        else
     489                echo "gmake is not installed (or not working). Please try to install it."
     490                echo
     491        fi
     492fi
     493
    480494cat <<EOF>bitlbee.pc
    481495prefix=$prefix
Note: See TracChangeset for help on using the changeset viewer.