2 # Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 2003 TSUTSUMI Kikuo.
4 dnl This file is part of the CCUnit Library.
6 dnl The CCUnit Library is free software; you can redistribute it and/or
7 dnl modify it under the terms of the GNU Lesser General Public License
8 dnl as published by the Free Software Foundation; either version 2.1 of
9 dnl the License, or (at your option) any later version.
11 dnl The CCUnit Library is distributed in the hope that it will be
12 dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 dnl of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU Lesser General Public License for more details.
16 dnl You should have received a copy of the GNU Lesser General Public
17 dnl License along with the CCUnit Library; see the file COPYING.LESSER.
18 dnl If not, write to the Free Software Foundation, Inc., 59 Temple
19 dnl Place - Suite 330, Boston, MA 02111-1307, USA.
22 AC_INIT(CCUnit, 1.0rc2, [tsutsumi@users.sourceforge.jp])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_AUX_DIR([config])
25 AC_CONFIG_HEADER([config/config.h])
27 AM_INIT_AUTOMAKE([gnu check-news readme-alpha dist-bzip2 dist-zip -Wall])
31 # Checks for programs.
40 # Checks for libraries.
42 # Checks for header files.
44 AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/time.h unistd.h])
46 # Checks for typedefs, structures, and compiler characteristics.
53 AC_CHECK_TYPES([u_char, u_short, u_int, u_long])
54 AC_CHECK_TYPES([quad_t, int64_t, long long], break)
55 AC_CHECK_TYPES([u_quad_t, u_int64_t, unsigned long long], break)
57 # Checks for library functions.
61 AC_CHECK_FUNCS([gettimeofday strerror strncasecmp strrchr memset])
62 AC_CHECK_FUNCS([atexit onexit], break)
63 AC_REPLACE_FUNCS([strdup])
65 # Initialize the test suite and build position independent wrappers.
67 AC_CONFIG_FILES([Makefile
77 AC_CREATE_PREFIX_CONFIG_H(src/ccunit/config.h,,config/config.h)