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])
# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create])
# files to include in the distribution that automake doesn't automatically include
EXTRA_DIST = fips-186-test-harness.pl $(TESTS)
-
+if PYTHON_USE
+if !FREEDIST
+EXTRA_DIST += $(nodist_libpyasdcp_la_SOURCES) $(nodist_kumu_la_SOURCES) $(nodist_asdcp_la_SOURCES)
+endif
+endif
# source files that are themselves built
BUILT_SOURCES = Metadata.h Metadata.cpp MDD.h MDD.cpp