Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 627868
Collapse All | Expand All

(-)file_not_specified_in_diff (-45 / +2 lines)
Line  Link Here
0
-- a/configure.ac
0
++ b/configure.ac
Lines 324-330 Link Here
324
324
325
  dnl Checking for libresolv
325
  dnl Checking for libresolv
326
  if test ${gm_platform} = "linux" ; then
326
  if test ${gm_platform} = "linux" ; then
327
  	AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([You need the libresolv library to compile Ekiga]), -lresolv)
328
  	LDAP_LIBS="${LDAP_LIBS} -lresolv"
327
  	LDAP_LIBS="${LDAP_LIBS} -lresolv"
329
  fi
328
  fi
330
  found_ldap="yes"
329
  found_ldap="yes"
331
-- a/configure
330
++ b/configure
Lines 18873-18920 Link Here
18873
  LDAP_LIBS="$LDAP_LIBS -lsasl2"
18873
  LDAP_LIBS="$LDAP_LIBS -lsasl2"
18874
18874
18875
    if test ${gm_platform} = "linux" ; then
18875
    if test ${gm_platform} = "linux" ; then
18876
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_gethostbyaddr in -lresolv" >&5
18877
$as_echo_n "checking for res_gethostbyaddr in -lresolv... " >&6; }
18878
if ${ac_cv_lib_resolv_res_gethostbyaddr+:} false; then :
18879
  $as_echo_n "(cached) " >&6
18880
else
18881
  ac_check_lib_save_LIBS=$LIBS
18882
LIBS="-lresolv -lresolv $LIBS"
18883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884
/* end confdefs.h.  */
18885
18886
/* Override any GCC internal prototype to avoid an error.
18887
   Use char because int might match the return type of a GCC
18888
   builtin and then its argument prototype would still apply.  */
18889
#ifdef __cplusplus
18890
extern "C"
18891
#endif
18892
char res_gethostbyaddr ();
18893
int
18894
main ()
18895
{
18896
return res_gethostbyaddr ();
18897
  ;
18898
  return 0;
18899
}
18900
_ACEOF
18901
if ac_fn_cxx_try_link "$LINENO"; then :
18902
  ac_cv_lib_resolv_res_gethostbyaddr=yes
18903
else
18904
  ac_cv_lib_resolv_res_gethostbyaddr=no
18905
fi
18906
rm -f core conftest.err conftest.$ac_objext \
18907
    conftest$ac_exeext conftest.$ac_ext
18908
LIBS=$ac_check_lib_save_LIBS
18909
fi
18910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_gethostbyaddr" >&5
18911
$as_echo "$ac_cv_lib_resolv_res_gethostbyaddr" >&6; }
18912
if test "x$ac_cv_lib_resolv_res_gethostbyaddr" = xyes; then :
18913
  LIBS="-lresolv $LIBS"
18914
else
18915
  as_fn_error $? "You need the libresolv library to compile Ekiga" "$LINENO" 5
18916
fi
18917
18918
  	LDAP_LIBS="${LDAP_LIBS} -lresolv"
18876
  	LDAP_LIBS="${LDAP_LIBS} -lresolv"
18919
  fi
18877
  fi
18920
  found_ldap="yes"
18878
  found_ldap="yes"

Return to bug 627868