From 28ef4182c8ce8070008275e3c8f854ee5e27bce2 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Mon, 16 Jun 2008 23:44:15 +0200 Subject: [PATCH] dont try to link to libresolv on freebsd, needed functions are in the libc --- lib/configure | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/configure b/lib/configure index d855a3c..024878a 100755 --- a/lib/configure +++ b/lib/configure @@ -48,6 +48,8 @@ echo >$m 'WITH_LIBS=' echo_n "Looking for access methods..." +RESOLVLIB="-lresolv" + case $sys in linux*) echo_n " sysfs proc" @@ -80,6 +82,7 @@ case $sys in echo_n " fbsd-device" echo >>$c '#define PCI_HAVE_PM_FBSD_DEVICE' echo >>$c '#define PCI_PATH_FBSD_DEVICE "/dev/pci"' + RESOLVLIB="" ;; openbsd) echo_n " obsd-device" @@ -148,7 +151,7 @@ fi if [ "$DNS" = yes ] ; then echo >>$c "#define PCI_USE_DNS" echo >>$c "#define PCI_ID_DOMAIN \"pci.id.ucw.cz\"" - echo >>$m 'WITH_LIBS+=-lresolv' + echo >>$m "WITH_LIBS+=$RESOLVLIB" fi echo "Checking whether to build a shared library... $SHARED (set manually)" -- 1.5.5.4