comparison configure.ac @ 12685:e9f279f0ef02

[gaim-migrate @ 15028] Changes from and inspired by SF Patch #1394379 from Martijn Dekker "The attached patch to configure.ac fixes two issues: (1) To compile Gaim 2.0.0cvs on Mac OS X, the linker flag "-lresolv" is needed to correctly link to the libresolv library, or the linker will complain about an illegal indirect reference to "res_9_dn_expand" in src/dnssrv.c. (2) On Mac OS X with Fink, the /sw/include and /sw/lib paths need to be included in CPPFLAGS and LDFLAGS respectively for configure to detect certain libraries such as libao and GNUTLS." I took a different (and untested) approach to solving the first one. As for the second, we were already doing CFLAGS, so I only accepted the LDFLAGS part. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 02 Jan 2006 23:07:46 +0000
parents 0f8b80dc9647
children e5f79b206d7e
comparison
equal deleted inserted replaced
12684:2e4e02b72e43 12685:e9f279f0ef02
19 AC_PROG_INSTALL 19 AC_PROG_INSTALL
20 20
21 # before gettexting, in case iconv matters 21 # before gettexting, in case iconv matters
22 case "$host_os" in 22 case "$host_os" in
23 darwin*) 23 darwin*)
24 AC_CHECK_LIB(resolv, res_query)
24 AC_MSG_CHECKING([for fink]) 25 AC_MSG_CHECKING([for fink])
25 if test -d /sw; then 26 if test -d /sw; then
26 AC_MSG_RESULT([found, adding /sw to search paths]) 27 AC_MSG_RESULT([found, adding /sw to search paths])
27 CFLAGS="$CFLAGS -I/sw/include" 28 CFLAGS="$CFLAGS -I/sw/include"
29 LDFLAGS="$LDFLAGS -L/sw/lib"
28 else 30 else
29 AC_MSG_RESULT([not found]) 31 AC_MSG_RESULT([not found])
30 fi 32 fi
31 ;; 33 ;;
32 *) 34 *)