1 dnl Process this file with autoconf to produce a configure script.
4 AM_INIT_AUTOMAKE(omnplay, 0.1)
5 AM_CONFIG_HEADER(config.h)
15 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 1.3.13])
19 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0 >= 2.26.0])
20 AC_SUBST(GTHREAD_CFLAGS)
21 AC_SUBST(GTHREAD_LIBS)
23 PKG_CHECK_MODULES(CURL, [libcurl])
27 AC_ARG_WITH([ommedia],
28 [AS_HELP_STRING([--with-ommedia=path], [path to ommedia /Media API/])],
29 [OMMEDIA_PATH=$withval],
30 [OMMEDIA_PATH=/usr/local/omneon/ommedia])
32 AC_ARG_WITH([omplrlib],
33 [AS_HELP_STRING([--with-omplrlib=path], [path to omplrlib /Player API/])],
34 [OMPLRLIB_PATH=$withval],
35 [OMPLRLIB_PATH=/usr/local/omneon/omplrlib])
37 OM_CFLAGS="-I$OMPLRLIB_PATH/include -I$OMMEDIA_PATH/include"
40 OM_LIBS="-L$OMPLRLIB_PATH/lib -L$OMMEDIA_PATH/lib -lomplrlib -lommedia"
43 dnl #GETTEXT_PACKAGE=omnplay
44 dnl #AC_SUBST(GETTEXT_PACKAGE)
45 dnl #AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE","")
47 dnl Add the languages which your application supports here.
49 dnl #AM_GLIB_GNU_GETTEXT
51 dnl Use -Wall if we have gcc.
53 if test "x$GCC" = "xyes"; then
55 *[\ \ ]-Wall[\ \ ]*) ;;
56 *) CFLAGS="$CFLAGS -Wall" ;;