Commit a39c659d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Update executables and CFLAGS name

parent 0a90b52e
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.54)
AC_INIT([libdca],[0.0.3])
AC_CONFIG_SRCDIR([src/dtsdec.c])
AC_CONFIG_SRCDIR([src/dcadec.c])
AC_CONFIG_AUX_DIR(autotools)
AC_CONFIG_FILES([Makefile autotools/Makefile include/Makefile test/Makefile
src/Makefile libdca/Makefile libao/Makefile vc++/Makefile
......
AC_SUBST([LIBDTS_CFLAGS])
AC_SUBST([LIBDTS_LIBS])
AC_SUBST([LIBDCA_CFLAGS])
AC_SUBST([LIBDCA_LIBS])
dnl avoid -fPIC when possible
AC_LIBTOOL_NON_PIC([LIBDTS_CFLAGS="$LIBDTS_CFLAGS -prefer-non-pic"])
AC_LIBTOOL_NON_PIC([LIBDCA_CFLAGS="$LIBDCA_CFLAGS -prefer-non-pic"])
AC_ARG_ENABLE([fixed],
[ --enable-fixed use fixed-point (integer-based) arithmetic])
......@@ -10,7 +10,7 @@ AC_ARG_ENABLE([double],
[ --enable-double use double-precision samples])
if test x"$enable_fixed" = x"yes"; then
AC_DEFINE([LIBDTS_FIXED],,[use fixed-point arithmetic])
AC_DEFINE([LIBDCA_FIXED],,[use fixed-point arithmetic])
elif test x"$enable_double" = x"yes"; then
AC_DEFINE([LIBDTS_DOUBLE],,[a52 sample precision])
AC_DEFINE([LIBDCA_DOUBLE],,[a52 sample precision])
fi
AM_CFLAGS = $(DTSDEC_CFLAGS)
AM_CFLAGS = $(DCADEC_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include
bin_PROGRAMS = dtsdec extract_dts
dtsdec_SOURCES = dcadec.c getopt.h getopt.c gettimeofday.h gettimeofday.c
dtsdec_LDADD = $(top_builddir)/libdca/libdca.la \
bin_PROGRAMS = dcadec extract_dca
dcadec_SOURCES = dcadec.c getopt.h getopt.c gettimeofday.h gettimeofday.c
dcadec_LDADD = $(top_builddir)/libdca/libdca.la \
$(top_builddir)/libao/libao.la $(LIBAO_LIBS)
extract_dts_SOURCES = extract_dca.c getopt.c
extract_dca_SOURCES = extract_dca.c getopt.c
man_MANS = dtsdec.1 extract_dts.1
EXTRA_DIST = configure.incl $(man_MANS)
bin_SCRIPTS = dtsdec extract_dts
dtsdec extract_dts: Makefile
{ \
echo '#! /bin/sh' ; \
echo 'exec "$$(dirname "$$0")/$$(basename "$$0" | sed -e 's/ts/ca/')" "$$@"' ; \
} > $@.tmp
chmod +x $@.tmp
mv -f $@.tmp $@
AC_SUBST([DTSDEC_CFLAGS])
AC_SUBST([DCADEC_CFLAGS])
DTSDEC_CFLAGS="$OPT_CFLAGS"
DCADEC_CFLAGS="$OPT_CFLAGS"
AC_ARG_ENABLE([gprof],[ --enable-gprof make a version using gprof])
if test x"$enable_gprof" = x"yes"; then
AC_DEFINE([DTSDEC_GPROF],,[a52dec profiling])
DTSDEC_CFLAGS=`echo "$DTSDEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"`
DTSDEC_CFLAGS="$DTSDEC_CFLAGS -p"
AC_DEFINE([DCADEC_GPROF],,[a52dec profiling])
DCADEC_CFLAGS=`echo "$DCADEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"`
DCADEC_CFLAGS="$DCADEC_CFLAGS -p"
fi
AM_CFLAGS = $(DTSDEC_CFLAGS)
AM_CFLAGS = $(DCADEC_CFLAGS)
noinst_PROGRAMS = compare
compare_SOURCES = compare.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment