s3:smb2_server: announce LargeMTU for SMB2.1
[Samba/gebeck_regimport.git] / lib / subunit / configure.ac
blob4375c379a3cbf0eb0ca4e9e8b8046e5b04c7b734
1 m4_define([SUBUNIT_MAJOR_VERSION], [0])
2 m4_define([SUBUNIT_MINOR_VERSION], [0])
3 m4_define([SUBUNIT_MICRO_VERSION], [7])
4 m4_define([SUBUNIT_VERSION],
5 m4_defn([SUBUNIT_MAJOR_VERSION]).m4_defn([SUBUNIT_MINOR_VERSION]).m4_defn([SUBUNIT_MICRO_VERSION]))
6 AC_PREREQ([2.59])
7 AC_INIT([subunit], [SUBUNIT_VERSION], [subunit-dev@lists.launchpad.net])
8 AC_CONFIG_SRCDIR([c/lib/child.c])
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
10 AC_CONFIG_MACRO_DIR([m4])
11 [SUBUNIT_MAJOR_VERSION]=SUBUNIT_MAJOR_VERSION
12 [SUBUNIT_MINOR_VERSION]=SUBUNIT_MINOR_VERSION
13 [SUBUNIT_MICRO_VERSION]=SUBUNIT_MICRO_VERSION
14 [SUBUNIT_VERSION]=SUBUNIT_VERSION
15 AC_SUBST([SUBUNIT_MAJOR_VERSION])
16 AC_SUBST([SUBUNIT_MINOR_VERSION])
17 AC_SUBST([SUBUNIT_MICRO_VERSION])
18 AC_SUBST([SUBUNIT_VERSION])
19 AC_USE_SYSTEM_EXTENSIONS
20 AC_PROG_CC
21 AC_PROG_CXX
22 AM_PROG_CC_C_O
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25 AC_PROG_LIBTOOL
26 AM_PATH_PYTHON
28 AS_IF([test "$GCC" = "yes"],
29       [
30   SUBUNIT_CFLAGS="-Wall -Werror -Wextra -Wstrict-prototypes "
31   SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wmissing-prototypes -Wwrite-strings "
32   SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wno-variadic-macros "
33   SUBUNIT_CXXFLAGS="-Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros"
34       ])
36 AM_CFLAGS="$SUBUNIT_CFLAGS -I\$(top_srcdir)/c/include"
37 AM_CXXFLAGS="$SUBUNIT_CXXFLAGS -I\$(top_srcdir)/c/include"
38 AC_SUBST(AM_CFLAGS)
39 AC_SUBST(AM_CXXFLAGS)
41 # Checks for libraries.
43 # Checks for header files.
44 AC_CHECK_HEADERS([stdlib.h])
46 # Checks for typedefs, structures, and compiler characteristics.
47 AC_C_CONST
48 AC_TYPE_PID_T
49 AC_TYPE_SIZE_T
50 AC_HEADER_TIME
51 AC_STRUCT_TM
53 AC_CHECK_SIZEOF(int, 4)
54 AC_CHECK_SIZEOF(short, 2)
55 AC_CHECK_SIZEOF(long, 4)
57 # Checks for library functions.
58 AC_FUNC_MALLOC
59 AC_FUNC_REALLOC
61 # Easier memory management.
62 # C unit testing.
63 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
64 # C++ unit testing.
65 PKG_CHECK_MODULES([CPPUNIT], [cppunit])
67 # Output files
68 AC_CONFIG_HEADERS([config.h])
70 AC_CONFIG_FILES([libsubunit.pc
71                  libcppunit_subunit.pc
72                  Makefile
73                  perl/Makefile.PL
74                  ])
75 AC_OUTPUT