add sorting for items
[melted_gui] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(configure.in)
4 AM_INIT_AUTOMAKE(omnplay, 0.1)
5 AM_CONFIG_HEADER(config.h)
6 AM_MAINTAINER_MODE
7
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AM_PROG_CC_STDC
11 AM_PROG_CC_C_O
12 AC_HEADER_STDC
13 AC_PROG_CXX
14
15 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 1.3.13])
16 AC_SUBST(GTK_CFLAGS)
17 AC_SUBST(GTK_LIBS)
18
19 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0 >= 2.26.0])
20 AC_SUBST(GTHREAD_CFLAGS)
21 AC_SUBST(GTHREAD_LIBS)
22
23 PKG_CHECK_MODULES(CURL, [libcurl])
24 AC_SUBST(CURL_CFLAGS)
25 AC_SUBST(CURL_LIBS)
26
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])
31
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])
36
37 OM_CFLAGS="-I$OMPLRLIB_PATH/include -I$OMMEDIA_PATH/include"
38 AC_SUBST(OM_CFLAGS)
39
40 OM_LIBS="-L$OMPLRLIB_PATH/lib -L$OMMEDIA_PATH/lib -lomplrlib -lommedia"
41 AC_SUBST(OM_LIBS)
42
43 dnl #GETTEXT_PACKAGE=omnplay
44 dnl #AC_SUBST(GETTEXT_PACKAGE)
45 dnl #AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE","")
46
47 dnl Add the languages which your application supports here.
48 dnl #ALL_LINGUAS=""
49 dnl #AM_GLIB_GNU_GETTEXT
50
51 dnl Use -Wall if we have gcc.
52 changequote(,)dnl
53 if test "x$GCC" = "xyes"; then
54   case " $CFLAGS " in
55   *[\ \ ]-Wall[\ \      ]*) ;;
56   *) CFLAGS="$CFLAGS -Wall" ;;
57   esac
58 fi
59 changequote([,])dnl
60
61 AC_OUTPUT([
62 Makefile
63 src/Makefile
64 ])