X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/173ff44a439dc7cf51a3f7a433c4d0d444b59293..f412c75ab51c1d803fc6af93282aa00a1d112c22:/configure.ac diff --git a/configure.ac b/configure.ac index 107b49b..9ff83ba 100644 --- a/configure.ac +++ b/configure.ac @@ -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 @@ -31,7 +31,8 @@ mdw_AUTO_VERSION 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]) +AM_INIT_AUTOMAKE([foreign subdir-objects]) +mdw_SILENT_RULES AC_PROG_CC AM_PROG_CC_C_O @@ -39,6 +40,8 @@ AM_PROG_LIBTOOL AX_CFLAGS_WARN_ALL mdw_LIBTOOL_VERSION_INFO +AC_CHECK_PROGS([AUTOM4TE], [autom4te]) + mdw_MANEXT AC_DEFINE_UNQUOTED([SRCDIR], ["$(cd $srcdir && pwd)"], @@ -49,11 +52,23 @@ dnl C programming environment. dnl Headers. AC_CHECK_HEADERS([float.h]) +AC_CHECK_HEADERS([stdint.h]) dnl Libraries. AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([gethostbyname], [nsl resolv]) +dnl Functions. +AC_CHECK_FUNCS([snprintf]) + +dnl Types. +AC_CHECK_TYPE([socklen_t], [], + [AC_DEFINE([socklen_t], [int], + [Define to `int' if does not define])], + [AC_INCLUDES_DEFAULT +#include +]) + dnl Which version of struct msghdr do we have? AC_CHECK_MEMBERS([struct msgdr.msg_control],,, [ #include @@ -61,7 +76,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. @@ -97,9 +112,15 @@ esac AM_CONDITIONAL([WITH_ADNS], [test "$use_adns" = yes]) dnl-------------------------------------------------------------------------- +dnl Python (used for testing). + +AM_PATH_PYTHON([2.4],, [:]) + +dnl-------------------------------------------------------------------------- dnl Output. AC_CONFIG_HEADER([config/config.h]) +AC_CONFIG_TESTDIR([t]) AC_CONFIG_FILES( [Makefile] @@ -113,7 +134,8 @@ AC_CONFIG_FILES( [test/Makefile] [trace/Makefile] [ui/Makefile] - [utils/Makefile]) + [utils/Makefile] + [t/Makefile t/atlocal]) AC_OUTPUT -dnl ----- That's all, folks ------------------------------------------------- +dnl------ That's all, folks -------------------------------------------------