Add copyright notices to tests.
[asdcplib.git] / configure.ac
index 57c07ee77a484c304cf5df633fedf7e6912ba006..84ed3484af162dbeda6433c867d357a18eb09f87 100644 (file)
@@ -2,10 +2,23 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.59])
-AC_INIT([napali], [1.3.19.1])
+# If you change this, you should update the libtool version number specified
+# in src/Makefile.am. Read <http://www.gnu.org/software/libtool/manual.html#Versioning>
+# for suggestions on doing so.
+
+# 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.3.19a], [asdcplib@cinecert.com])
+
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_SRCDIR([src/KM_error.h])
-AC_CONFIG_HEADER([src/config.h])
+#AC_CONFIG_HEADER([src/config.h])
 AM_INIT_AUTOMAKE([1.9 foreign])
 
 # Checks for programs.
@@ -18,15 +31,55 @@ AC_PROG_INSTALL
 AC_PROG_RANLIB
 
 AC_SYS_LARGEFILE
+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])
+
+# Checks for libraries.
+AC_CHECK_LIB([pthread], [pthread_create])
+
+# Checks for header files.
+#AC_HEADER_DIRENT
+#AC_HEADER_STDC
+#AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+#AC_C_CONST
+#AC_C_INLINE
+#AC_TYPE_OFF_T
+#AC_TYPE_SIZE_T
+#AC_STRUCT_TM
 
 # Checks for library functions.
+#AC_FUNC_CLOSEDIR_VOID
+#AC_FUNC_MALLOC
+#AC_FUNC_MEMCMP
+#AC_FUNC_STAT
+#AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
 
 AC_CONFIG_FILES([Makefile
                  src/Makefile])