diff options
author | Yang Tse <yangsita@gmail.com> | 2006-08-06 10:58:47 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-08-06 10:58:47 +0000 |
commit | ec9f8c45e87e00be2ec6a333d47811642d5429a9 (patch) | |
tree | c86b9c6dca90208855919d0dfc76b26d13b2b87f /configure.ac | |
parent | cfae7aa9e598a5ed5ccc45bb5b88794fddcecc39 (diff) | |
download | c-ares-ec9f8c45e87e00be2ec6a333d47811642d5429a9.tar.gz c-ares-ec9f8c45e87e00be2ec6a333d47811642d5429a9.tar.bz2 c-ares-ec9f8c45e87e00be2ec6a333d47811642d5429a9.zip |
Check for network libraries the _same_ way it is done in cURL.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 118a1de..5f46549 100644 --- a/configure.ac +++ b/configure.ac @@ -168,6 +168,22 @@ else AC_MSG_ERROR([couldn't find libraries for gethostbyname()]) fi +dnl resolve lib? +AC_CHECK_FUNC(strcasecmp, , [ AC_CHECK_LIB(resolve, strcasecmp) ]) + +if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then + AC_CHECK_LIB(resolve, strcasecmp, + [LIBS="-lresolve $LIBS"], + , + -lnsl) +fi + +dnl socket lib? +AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ]) + +dnl dl lib? +AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ]) + AC_MSG_CHECKING([whether to use libgcc]) AC_ARG_ENABLE(libgcc, AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]), |