• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2AC_INIT([testmixvideo], [0.1], [tao.q.tao@intel.com])
3
4dnl AC_CONFIG_MACRO_DIR([m4])
5
6AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
7AM_INIT_AUTOMAKE([-Wall -Werror foreign])
8
9AC_PROG_CC
10AC_PROG_LIBTOOL
11
12AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes , no)
13
14dnl Give error and exit if we don't have pkgconfig
15if test "x$HAVE_PKGCONFIG" = "xno"; then
16  AC_MSG_ERROR(you need to have pkgconfig installed !)
17fi
18
19GLIB_REQ=2.18
20dnl Check for glib2 without extra fat, useful for the unversioned tool frontends
21dnl PKG_CHECK_MODULES(GLIB_ONLY, glib-2.0 >= $GLIB_REQ,HAVE_GLIB=yes,HAVE_GLIB=no)
22PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQ,HAVE_GLIB=yes,HAVE_GLIB=no)
23if test "x$HAVE_GLIB" = "xno"; then
24  AC_MSG_ERROR(You need glib development packages installed !)
25fi
26
27PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GLIB_REQ,HAVE_GOBJECT=yes,HAVE_GOBJECT=no)
28if test "x$HAVE_GOBJECT" = "xno"; then
29  AC_MSG_ERROR(You need glib development packages installed !)
30fi
31
32MIXVIDEO_REQ=0.5
33PKG_CHECK_MODULES(MIXVIDEO, mixvideo >= $MIXVIDEO_REQ,HAVE_MIXVIDEO=yes,HAVE_MIXVIDEO=no)
34if test "x$HAVE_MIXVIDEO" = "xno"; then
35  AC_MSG_ERROR(You need mixvideo development packages installed !)
36fi
37
38AC_ARG_ENABLE(optimization,     AC_HELP_STRING([  --disable-optimization], [Do not optimize the library for speed. Might be required for debugging.]))
39AC_ARG_ENABLE(debuginfo,        AC_HELP_STRING([  --enable-debuginfo    ],  [add -g to the compiler flags (to create debug information)]))
40
41if test "$enable_optimization" = "no" ; then
42        DEBUG=true
43else
44        DEBUG=false
45fi
46
47
48AC_CONFIG_HEADERS([config.h])
49AC_CONFIG_FILES([
50	Makefile
51	src/Makefile
52])
53AC_OUTPUT
54