Changeset aee8c19


Ignore:
Timestamp:
2011-12-07T21:37:27Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
06b5893
Parents:
b041b52
Message:

Fix libresolv detection on FreeBSD. Based on a patch by ashish@….

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb041b52 raee8c19  
    326326
    327327RESOLV_TESTCODE='
     328#include <sys/types.h>
     329#include <netinet/in.h>
    328330#include <arpa/nameser.h>
    329331#include <resolv.h>
     
    338340detect_resolv_dynamic()
    339341{
     342        case "$arch" in
     343        FreeBSD )
     344                # In FreeBSD res_* routines are present in libc.so
     345                LIBRESOLV=;;
     346        * )
     347                LIBRESOLV=-lresolv;;
     348        esac
    340349        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    341350        ret=1
    342         echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
     351        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null
    343352        if [ "$?" = "0" ]; then
    344                 echo 'EFLAGS+=-lresolv' >> Makefile.settings
     353                echo "EFLAGS+=$LIBRESOLV" >> Makefile.settings
    345354                ret=0
    346355        fi
Note: See TracChangeset for help on using the changeset viewer.