OSDN Git Service

upgrade version number
[ccunit/ccunit.git] / configure.ac
index 4f9ab98..26dc833 100644 (file)
@@ -1,6 +1,6 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
-dnl    Copyright (C) 2003 TSUTSUMI Kikuo.
+dnl    Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
 dnl    This file is part of the CCUnit Library.
 
 dnl    The CCUnit Library is free software; you can redistribute it and/or
@@ -19,23 +19,41 @@ dnl    If not, write to the Free Software Foundation, Inc., 59 Temple
 dnl    Place - Suite 330, Boston, MA 02111-1307, USA.  
 
 AC_PREREQ(2.50)
-AC_INIT(CCUnit, 1.0rc2, [tsutsumi@users.sourceforge.jp])
+AC_INIT(CCUnit, 1.3, [tsutsumi@users.sourceforge.jp])
+AC_REVISION([$Revision$])
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])
 AC_CONFIG_HEADER([config/config.h])
 
 AM_INIT_AUTOMAKE([gnu check-news readme-alpha dist-bzip2 dist-zip -Wall])
 
+AC_SUBST(DISTDOCDIR,$PACKAGE-$VERSION-doc)
+AC_SUBST(DISTDOCJADIR,$PACKAGE-$VERSION-docja)
+
 AC_LANG(C)
 
 # Checks for programs.
 AC_GNU_SOURCE
 AC_PROG_CC(gcc cc)
 AC_PROG_CC_C_O
-AC_PROG_RANLIB
+AC_PROG_RANLIB
 AC_PROG_LN_S
+
 AM_WITH_DMALLOC
 ARG_WITH_DOXYGEN
+ARG_ENABLE_COVERAGE
+AC_ARG_ENABLE(japanese-doc,
+  AC_HELP_STRING([--enable-japanese-doc],[output japanese documents]),
+  [ case "${enableval}" in
+    yes) enable_jadoc=yes;;
+    no)  enable_jadoc=no;;
+    *)   enable_jadoc=no;;
+    esac ], [enable_jadoc=no])
+AM_CONDITIONAL(ENABLE_JADOC, test x$enable_jadoc = xyes)
+
+AC_LIBTOOL_WIN32_DLL
+AC_LIBTOOL_DLOPEN
+AC_PROG_LIBTOOL
 
 # Checks for libraries.
 
@@ -58,19 +76,20 @@ AC_CHECK_TYPES([u_quad_t, u_int64_t, unsigned long long], break)
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([gettimeofday strerror strncasecmp strrchr memset])
-AC_CHECK_FUNCS([atexit onexit], break)
+AC_CHECK_FUNCS([gettimeofday memset strcasecmp strdup strerror strncasecmp strrchr strstr])
+AC_CHECK_FUNCS([atexit on_exit], break)
 AC_REPLACE_FUNCS([strdup])
 
 # Initialize the test suite and build position independent wrappers.
-
 AC_CONFIG_FILES([Makefile
                  src/Makefile
                  src/ccunit/Makefile
                  src/tools/Makefile
                 doc/Makefile
                 doc/Doxyfile
-                tests/Makefile])
+                tests/Makefile
+                examples/Makefile
+                examples/complex/Makefile])
 
 AC_OUTPUT