Update man page
[mono.git] / configure.in
index 00ce947ada1e20ed97d0cef443e65120894156ed..10a401b3f8c19418a8cd8b6ca88754f2519f598a 100644 (file)
@@ -183,6 +183,21 @@ if test x$platform_win32 = xno; then
        dnl *****************************
        AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
 
+       dnl *******************************
+       dnl *** Checks for MSG_NOSIGNAL ***
+       dnl *******************************
+       AC_MSG_CHECKING(for MSG_NOSIGNAL)
+       AC_TRY_COMPILE([#include <sys/socket.h>], [
+               int f = MSG_NOSIGNAL;
+       ], [
+               # Yes, we have it...
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_MSG_NOSIGNAL)
+       ], [
+               # We'll have to use signals
+               AC_MSG_RESULT(no)
+       ])
+
        dnl *****************************
        dnl *** Checks for SOL_IP     ***
        dnl *****************************
@@ -250,6 +265,29 @@ if test x$platform_win32 = xno; then
 
        AC_CHECK_FUNCS(inet_pton inet_aton)
 
+       dnl ***********************************************
+       dnl *** Checks for size of sockaddr_un.sun_path ***
+       dnl ***********************************************
+       # AC_CHECK_SIZEOF can't cope with struct members :-(
+       AC_MSG_CHECKING(size of sockaddr_un.sun_path)
+       AC_CACHE_VAL(cv_mono_sizeof_sunpath,
+               [AC_TRY_RUN([
+                       #include <stdio.h>
+                       #include <sys/un.h>
+
+                       int main(void) {
+                               struct sockaddr_un sock_un;
+                               FILE *f=fopen("conftestval", "w");
+                               if(!f) exit(1);
+                               fprintf(f, "%d\n", sizeof(sock_un.sun_path));
+                               exit(0);
+                       }
+               ], cv_mono_sizeof_sunpath=`cat conftestval`,
+                  cv_mono_sizeof_sunpath=0,
+                  cv_mono_sizeof_sunpath=0)])dnl
+       AC_MSG_RESULT($cv_mono_sizeof_sunpath)
+       AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
+
        dnl *****************************
        dnl *** Checks for libpthread ***
        dnl *****************************
@@ -480,7 +518,7 @@ arm-*-linux-* | armv4l-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED=
 esac
 
 if test ${TARGET} = unknown; then
-       CFLAGS="$CFLAGS -DNO_PORT"
+       CPPFLAGS="$CPPFLAGS -DNO_PORT"
        AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
 fi
 
@@ -499,9 +537,11 @@ AM_CONDITIONAL(ARM, test x$TARGET = xARM)
 
 AC_SUBST(arch_target)
 AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
 
 AC_OUTPUT([
 Makefile
+mono.pc
 mono/Makefile
 mono/utils/Makefile
 mono/metadata/Makefile