Commit d376986c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add detection of -lnsl, -lsocket, -linet

parent 3b4931c0
This diff is collapsed.
...@@ -205,6 +205,12 @@ AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb) ...@@ -205,6 +205,12 @@ AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
dnl Checks for libraries dnl Checks for libraries
AC_CHECK_FUNC(socket, :,
[ AC_CHECK_LIB(nsl, gethostname)
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(inet, socket)
])
ol_link_threads=no ol_link_threads=no
if test $ol_with_threads = auto -o $ol_with_threads = posix ; then if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
AC_CHECK_HEADERS(pthread.h sched.h) AC_CHECK_HEADERS(pthread.h sched.h)
...@@ -552,7 +558,6 @@ AC_CHECK_FUNCS( \ ...@@ -552,7 +558,6 @@ AC_CHECK_FUNCS( \
mktime \ mktime \
select \ select \
socket \ socket \
strdup \
strerror \ strerror \
strstr \ strstr \
strrchr \ strrchr \
......
...@@ -193,6 +193,15 @@ ...@@ -193,6 +193,15 @@
/* Define if you have the <unistd.h> header file. */ /* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H #undef HAVE_UNISTD_H
/* Define if you have the inet library (-linet). */
#undef HAVE_LIBINET
/* Define if you have the nsl library (-lnsl). */
#undef HAVE_LIBNSL
/* Define if you have the socket library (-lsocket). */
#undef HAVE_LIBSOCKET
#ifdef HAVE_STDDEF_H #ifdef HAVE_STDDEF_H
# include <stddef.h> # include <stddef.h>
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment