- Timestamp:
- 2010-03-18T22:18:52Z (15 years ago)
- Branches:
- master
- Children:
- 5fbec3d
- Parents:
- 5605be9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r5605be9 r8462239 20 20 ipcsocket='/var/run/bitlbee.sock' 21 21 pcdir='$prefix/lib/pkgconfig' 22 systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 22 systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64" 23 23 24 24 msn=1 … … 295 295 detect_resolv_dynamic() 296 296 { 297 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null 297 TMPFILE=$(mktemp) 298 ret=1 299 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null 298 300 if [ "$?" = "0" ]; then 299 301 echo 'EFLAGS+=-lresolv' >> Makefile.settings 300 return 0 301 fi 302 303 return 1 302 ret=0 303 fi 304 305 rm -f $TMPFILE 306 return $ret 304 307 } 305 308 306 309 detect_resolv_static() 307 310 { 311 TMPFILE=$(mktemp) 312 ret=1 308 313 for i in $systemlibdirs; do 309 314 if [ -f $i/libresolv.a ]; then 310 echo "$RESOLV_TESTCODE" | $CC -o /dev/null-x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null315 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null 311 316 if [ "$?" = "0" ]; then 312 317 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 313 ret urn0318 ret=0 314 319 fi 315 320 fi 316 321 done 317 322 318 return 1 323 rm -f $TMPFILE 324 return $ret 319 325 } 320 326
Note: See TracChangeset
for help on using the changeset viewer.