chiark / gitweb /
General build system spring-cleaning.
[mLib] / configure.ac
index 2444ac72677c0dccfd663c6c74289634bbc38aca..a5e85473cf046ed65f088f8c6c3b5058b9f19de9 100644 (file)
@@ -5,7 +5,7 @@ dnl
 dnl (c) 2008 Straylight/Edgeware
 dnl
 
-dnl ----- Licensing notice --------------------------------------------------
+dnl----- Licensing notice ---------------------------------------------------
 dnl
 dnl This file is part of the mLib utilities library.
 dnl
@@ -32,6 +32,7 @@ AC_INIT([mLib], AUTO_VERSION, [mdw@distorted.org.uk], [mLib])
 AC_CONFIG_SRCDIR([mLib.pc.in])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign])
+mdw_SILENT_RULES
 
 AC_PROG_CC
 AM_PROG_CC_C_O
@@ -56,6 +57,9 @@ dnl Libraries.
 AC_SEARCH_LIBS([socket], [socket])
 AC_SEARCH_LIBS([gethostbyname], [nsl resolv])
 
+dnl Types.
+AC_CHECK_TYPE([socklen_t], [int])
+
 dnl Which version of struct msghdr do we have?
 AC_CHECK_MEMBERS([struct msgdr.msg_control],,, [
 #include <sys/types.h>
@@ -63,7 +67,7 @@ AC_CHECK_MEMBERS([struct msgdr.msg_control],,, [
 ])
 
 dnl Find out whether we're cross-compiling.
-AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes ])
+AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes])
 
 dnl--------------------------------------------------------------------------
 dnl Name resolution.
@@ -125,4 +129,4 @@ AC_CONFIG_FILES(
   [t/Makefile t/atlocal])
 AC_OUTPUT
 
-dnl ----- That's all, folks -------------------------------------------------
+dnl------ That's all, folks -------------------------------------------------