X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=b4f925c3d958e48c4f3a3b14374dee266fad691a;hb=8644888a7b537b499eea1d0c2fce6d07863a8fa7;hp=3583b007aa96ae7274518002108b8129975f990a;hpb=cd6809f1fb91024d31a62c632e500acbf4791048;p=asdcplib.git diff --git a/configure.ac b/configure.ac index 3583b00..b4f925c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,44 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. +# Copyright (c) 2007-2009 John Hurst. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AC_PREREQ([2.59]) # If you change this, you should update the libtool version number specified # in src/Makefile.am. Read # for suggestions on doing so. -AC_INIT([asdcplib], [1.3.19], [asdcplib@cinecert.com]) + +# The version number consists of three segments: major, API minor, and +# implementation minor. Whenever a change is made to AS_DCP.h, the API minor +# version will increment. Changes made to the internal implementation will +# result in the incrementing of the implementation minor version. +# +# For example, if asdcplib version 1.0.0 were modified to accomodate changes +# in file format, and if no changes were made to AS_DCP.h, the new version would be +# 1.0.1. If changes were also required in AS_DCP.h, the new version would be 1.1.1. +AC_INIT([asdcplib], [1.5.29], [asdcplib@cinecert.com]) + AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_SRCDIR([src/KM_error.h]) #AC_CONFIG_HEADER([src/config.h]) @@ -14,6 +47,11 @@ AM_INIT_AUTOMAKE([1.9 foreign]) # Checks for programs. AC_CANONICAL_BUILD AC_CANONICAL_HOST +case $host_os in + openbsd*) openbsd_host=true ;; + *) openbsd_host=false ;; +esac +AM_CONDITIONAL([OPENBSD_HOST], [test x$openbsd_host = xtrue]) AC_PROG_CC AC_PROG_CXX AC_PROG_LIBTOOL @@ -25,12 +63,37 @@ if test "$ac_cv_sys_largefile_CC" != no; then CXX=$CXX$ac_cv_sys_largefile_CC fi -CHECK_SSL +AX_LIB_OPENSSL([0.9.7]) AX_LIB_EXPAT +AX_LIB_XERCES #AM_PATH_PYTHON([2.3], , [:]) AZ_PYTHON_DEFAULT AZ_PYTHON_WITH AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) +AC_ARG_ENABLE([freedist], + [ --enable-freedist ensure source distribution is of BSD-licensed code], + [case "${enableval}" in + yes) freedist=true ;; + no) freedist=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-freedist]) ;; + esac],[freedist=false]) + AM_CONDITIONAL([FREEDIST], [test x$freedist = xtrue]) +AC_ARG_ENABLE([dev-headers], + [ --enable-dev-headers install development headers], + [case "${enableval}" in + yes) dev_headers=true ;; + no) dev_headers=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-dev-headers]) ;; + esac],[dev_headers=false]) + AM_CONDITIONAL([DEV_HEADERS], [test x$dev_headers = xtrue]) +AC_ARG_ENABLE([random-case-UUID], + [ --enable-random-case-UUID allow randomly cased UUID headers when the environment variable KM_USE_RANDOM_UUID is set], + [case "${enableval}" in + yes) random_case_UUID=true ;; + no) random_case_UUID=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-random-case-UUID]) ;; + esac],[random_case_UUID=false]) + AM_CONDITIONAL([ENABLE_RANDOM_UUID], [test x$random_case_UUID = xtrue]) # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) @@ -55,5 +118,6 @@ AC_CHECK_LIB([pthread], [pthread_create]) #AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol]) AC_CONFIG_FILES([Makefile - src/Makefile]) + src/Makefile + win32/Makefile]) AC_OUTPUT