Changeset aee8c19
- Timestamp:
- 2011-12-07T21:37:27Z (13 years ago)
- Branches:
- master
- Children:
- 06b5893
- Parents:
- b041b52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rb041b52 raee8c19 326 326 327 327 RESOLV_TESTCODE=' 328 #include <sys/types.h> 329 #include <netinet/in.h> 328 330 #include <arpa/nameser.h> 329 331 #include <resolv.h> … … 338 340 detect_resolv_dynamic() 339 341 { 342 case "$arch" in 343 FreeBSD ) 344 # In FreeBSD res_* routines are present in libc.so 345 LIBRESOLV=;; 346 * ) 347 LIBRESOLV=-lresolv;; 348 esac 340 349 TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) 341 350 ret=1 342 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv>/dev/null 2>/dev/null351 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null 343 352 if [ "$?" = "0" ]; then 344 echo 'EFLAGS+=-lresolv'>> Makefile.settings353 echo "EFLAGS+=$LIBRESOLV" >> Makefile.settings 345 354 ret=0 346 355 fi
Note: See TracChangeset
for help on using the changeset viewer.