# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-# Copyright (c) 2007-2008 John Hurst. All rights reserved.
+# 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
# 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.19a], [asdcplib@cinecert.com])
+AC_INIT([asdcplib], [1.4.26], [asdcplib@cinecert.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/KM_error.h])
# 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
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 ;;
no) freedist=false ;;
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 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])