From cb22a00528f1bfff81cedf7c607e3d4a9efb7a19 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 14 Feb 2002 01:04:34 +0000 Subject: 2002-02-14 Jeffrey Stedfast * configure.in: Add checks to see if we need to link to libsocket, libnsl, and/or librt. Also check for inet_pton and inet_aton. svn path=/trunk/mono/; revision=2393 --- ChangeLog | 5 +++++ acconfig.h | 2 ++ configure.in | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce01973f9ec..f14a79e8b98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-14 Jeffrey Stedfast + + * configure.in: Add checks to see if we need to link to libsocket, + libnsl, and/or librt. Also check for inet_pton and inet_aton. + 2002-02-13 Jeffrey Stedfast * acconfig.h: #undef USE_MONO_MUTEX diff --git a/acconfig.h b/acconfig.h index 9f3b620fe9c..324d1c735cc 100644 --- a/acconfig.h +++ b/acconfig.h @@ -1,3 +1,5 @@ +#undef HAVE_INET_PTON +#undef HAVE_INET_ATON #undef HAVE_PTHREAD #undef HAVE_PTHREAD_MUTEX_TIMEDLOCK #undef USE_MONO_MUTEX diff --git a/configure.in b/configure.in index f0c99d4e4be..fe01eff31c2 100644 --- a/configure.in +++ b/configure.in @@ -28,6 +28,8 @@ AC_HEADER_STDC AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL +AC_CHECK_HEADERS(sys/filio.h sys/sockio.h) + # not 64 bit clean in cross-compile AC_CHECK_SIZEOF(void *, 4) @@ -153,7 +155,18 @@ if test x$platform_win32 = xno; then if test $large_offt = no; then AC_MSG_WARN([No 64 bit file size support available]) fi + + dnl ***************************** + dnl *** Checks for libsocket *** + dnl ***************************** + AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") + + dnl ***************************** + dnl *** Checks for libnsl *** + dnl ***************************** + AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl") + AC_CHECK_FUNCS(inet_pton inet_aton) dnl ***************************** dnl *** Checks for libpthread *** @@ -237,6 +250,11 @@ if test x$platform_win32 = xno; then ], [ AC_MSG_ERROR([libpthread is required on non-win32 hosts]) ]) + + dnl ******************************** + dnl *** Checks for semaphore lib *** + dnl ******************************** + AC_CHECK_LIB(rt, sem_init, LIBS="$LIBS -lrt") fi if test "x$cross_compiling" = "xno"; then -- cgit v1.2.3