From 346629739680d9bf869dfaae2ddf2d7f4f4a9102 Mon Sep 17 00:00:00 2001 From: Anatol Pomazau Date: Fri, 6 Apr 2012 11:04:36 -0700 Subject: Initial empty repository --- configure.ac | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..96c6a20 --- /dev/null +++ b/configure.ac @@ -0,0 +1,53 @@ +dnl -*- Autoconf -*- +dnl Process this file with autoconf to produce a configure script. + +AC_INIT([odr-padenc], [0.1.0], [http://opendigitalradio.org/]) +AC_CONFIG_AUX_DIR(.) +AC_CONFIG_MACRO_DIR([m4]) +AM_INIT_AUTOMAKE([tar-ustar foreign]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +AC_CONFIG_HEADER([config.h]) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_CXX +AC_PROG_LIBTOOL +LT_INIT + +AX_CXX_COMPILE_STDCXX_11(noext,mandatory) + +AC_CHECK_LIB([m], [sin]) + +if pkg-config MagickWand; then + MAGICKWAND_CFLAGS=`pkg-config MagickWand --cflags` + MAGICKWAND_LDADD=`pkg-config MagickWand --libs` + AC_SUBST(MAGICKWAND_CFLAGS) + AC_SUBST(MAGICKWAND_LDADD) +else + AC_MSG_WARN(MagickWand not found) +fi + +AS_IF([ pkg-config MagickWand ], + AC_DEFINE(HAVE_MAGICKWAND, [1], [Define if MagickWand is available])) + + +AM_CONDITIONAL([IS_GIT_REPO], [test -d '.git']) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + +enabled="" +disabled="" + +AS_IF([ pkg-config MagickWand ], + [enabled="$enabled magickwand"], + [disabled="$disabled magickwand"]) + +echo +echo "***********************************************" +echo "Features enabled:" +echo " Enabled: $enabled" +echo " Disabled: $disabled" +echo +echo "ODR-PadEnc configured, please run make" +echo -- cgit v1.2.3