version bump to 1.3.20
[asdcplib.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3 # Copyright (c) 2007-2008 John Hurst. All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 # 1. Redistributions of source code must retain the above copyright
9 #    notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 #    notice, this list of conditions and the following disclaimer in the
12 #    documentation and/or other materials provided with the distribution.
13 # 3. The name of the author may not be used to endorse or promote products
14 #    derived from this software without specific prior written permission.
15 #
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
27 AC_PREREQ([2.59])
28 # If you change this, you should update the libtool version number specified
29 # in src/Makefile.am. Read <http://www.gnu.org/software/libtool/manual.html#Versioning>
30 # for suggestions on doing so.
31
32 # The version number consists of three segments: major, API minor, and
33 # implementation minor. Whenever a change is made to AS_DCP.h, the API minor
34 # version will increment. Changes made to the internal implementation will
35 # result in the incrementing of the implementation minor version.
36 #
37 # For example, if asdcplib version 1.0.0 were modified to accomodate changes
38 # in file format, and if no changes were made to AS_DCP.h, the new version would be
39 # 1.0.1. If changes were also required in AS_DCP.h, the new version would be 1.1.1.
40 AC_INIT([asdcplib], [1.3.20], [asdcplib@cinecert.com])
41
42 AC_CONFIG_AUX_DIR([build-aux])
43 AC_CONFIG_SRCDIR([src/KM_error.h])
44 #AC_CONFIG_HEADER([src/config.h])
45 AM_INIT_AUTOMAKE([1.9 foreign])
46
47 # Checks for programs.
48 AC_CANONICAL_BUILD
49 AC_CANONICAL_HOST
50 AC_PROG_CC
51 AC_PROG_CXX
52 AC_PROG_LIBTOOL
53 AC_PROG_INSTALL
54 AC_PROG_RANLIB
55
56 AC_SYS_LARGEFILE
57 if test "$ac_cv_sys_largefile_CC" != no; then
58    CXX=$CXX$ac_cv_sys_largefile_CC
59 fi
60
61 AX_LIB_OPENSSL([0.9.7])
62 AX_LIB_EXPAT
63 AX_LIB_XERCES
64 #AM_PATH_PYTHON([2.3], , [:])
65 AZ_PYTHON_DEFAULT
66 AZ_PYTHON_WITH
67 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
68 AC_ARG_ENABLE([freedist],
69      [  --enable-freedist    Ensure source distribution is of BSD-licensed code.],
70      [case "${enableval}" in
71        yes) freedist=true ;;
72        no)  freedist=false ;;
73        *) AC_MSG_ERROR([bad value ${enableval} for --enable-freedist]) ;;
74      esac],[freedist=false])
75      AM_CONDITIONAL([FREEDIST], [test x$freedist = xtrue])
76 AC_ARG_ENABLE([dev-headers],
77      [  --enable-dev-headers    Install development headers],
78      [case "${enableval}" in
79        yes) dev_headers=true ;;
80        no)  dev_headers=false ;;
81        *) AC_MSG_ERROR([bad value ${enableval} for --enable-dev-headers]) ;;
82      esac],[dev_headers=false])
83      AM_CONDITIONAL([DEV_HEADERS], [test x$dev_headers = xtrue])
84
85 # Checks for libraries.
86 AC_CHECK_LIB([pthread], [pthread_create])
87
88 # Checks for header files.
89 #AC_HEADER_DIRENT
90 #AC_HEADER_STDC
91 #AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
92
93 # Checks for typedefs, structures, and compiler characteristics.
94 #AC_C_CONST
95 #AC_C_INLINE
96 #AC_TYPE_OFF_T
97 #AC_TYPE_SIZE_T
98 #AC_STRUCT_TM
99
100 # Checks for library functions.
101 #AC_FUNC_CLOSEDIR_VOID
102 #AC_FUNC_MALLOC
103 #AC_FUNC_MEMCMP
104 #AC_FUNC_STAT
105 #AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
106
107 AC_CONFIG_FILES([Makefile
108                  src/Makefile
109                  win32/Makefile])
110 AC_OUTPUT