X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=be578c8457e4ec43f061b7f41563477a9bde47a2;hb=0e18995c6a3eab16ddb428d6e5f734e88ae7c131;hp=b8597a0cb9a44c402a7e7f9d92519f0e2fcbf7c7;hpb=6348cd1e99ad49c13c8cc0fc944cc8e57a28292b;p=asdcplib.git diff --git a/configure.ac b/configure.ac index b8597a0..be578c8 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -# Copyright (c) 2007-2008 John Hurst. All rights reserved. +# Copyright (c) 2007-2016 John Hurst. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -37,13 +37,15 @@ AC_PREREQ([2.59]) # 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.3.20], [asdcplib@cinecert.com]) +AC_INIT([asdcplib], [2.10.35], [asdcplib@cinecert.com]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_SRCDIR([src/KM_error.h]) #AC_CONFIG_HEADER([src/config.h]) AM_INIT_AUTOMAKE([1.9 foreign]) +AC_CONFIG_MACRO_DIR([m4]) + # Checks for programs. AC_CANONICAL_BUILD AC_CANONICAL_HOST @@ -66,26 +68,48 @@ fi 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.], + [ --enable-freedist ensure source distribution is of BSD-licensed code], [case "${enableval}" in - yes) freedist=true ;; + yes) freedist=true + AC_MSG_WARN([BSD licensed ASDCPlib creation ENABLED.]) ;; 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], + [ --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 encode randomly-cased UUID values 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]) +AC_ARG_ENABLE([as-02], + [ --enable-as-02 enable support for SMPTE ST 2067-5 MXF files, A.K.A. AS-02], + [case "${enableval}" in + yes) as_02_use=true ;; + no) as_02_use=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-as-02]) ;; + esac],[as_02_use=false]) + AM_CONDITIONAL([USE_AS_02], [test x$as_02_use = xtrue]) +AC_ARG_ENABLE([phdr], + [ --enable-phdr enable support for Prototype for High Dyamic Range in AS-02], + [case "${enableval}" in + yes) phdr_use=true ;; + no) phdr_use=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-phdr]) ;; + esac],[phdr_use=false]) + AM_CONDITIONAL([USE_PHDR], [test x$phdr_use = xtrue]) # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) @@ -111,5 +135,6 @@ AC_CHECK_LIB([pthread], [pthread_create]) AC_CONFIG_FILES([Makefile src/Makefile - win32/Makefile]) + win32/Makefile + win32/Makefile.mak:win32/Makefile.wmk]) AC_OUTPUT