~webapps/unity-chromium-extension/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.

AC_INIT(unity_webapps_chromium, 3.0)
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O

AC_CONFIG_MACRO_DIR([m4])

AC_DISABLE_STATIC
LT_INIT

PKG_CHECK_MODULES(UNITY_NPAPI_PLUGIN, [libunity_webapps-0.2 glib-2.0 libnotify libunity-webapps-repository libwnck-1.0])


dnl ***************************************************************************
dnl debug
dnl ***************************************************************************

AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[enable debugging. [default=no]]), [enable_debug="yes"],[enable_debug="no"])

if test "x$enable_debug" = "xyes"; then
        NPAPI_DEBUG_CFLAGS="-DNPAPI_DEBUG_ENABLED"
else
        NPAPI_DEBUG_CFLAGS=""
fi

AC_SUBST(NPAPI_DEBUG_CFLAGS)

dnl ========== Tests ==========

AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests],
    [Enable tests. [default=no]]),
    [enable_tests="yes"], [enable_tests="no"])
if test "x$enable_tests" = "xyes"; then
    AC_DEFINE([ENABLE_TESTS], 1, [Enable tests.])
    # Tests need debug to be enabled
    enable_debug="yes"
fi
AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = "xyes"])

dnl ===== gcov coverage reporting =====
m4_include([m4/gcov.m4])
AC_TDD_GCOV
AC_SUBST(UNITY_NPAPI_PLUGIN_COVERAGE_CFLAGS)
AC_SUBST(UNITY_NPAPI_PLUGIN_COVERAGE_CXXFLAGS)
AC_SUBST(UNITY_NPAPI_PLUGIN_COVERAGE_LDFLAGS)

AC_OUTPUT([
Makefile
chromium-extension/Makefile
npapi-plugin/src/libunity_npapi_plugin-0.1.pc
npapi-plugin/Makefile
npapi-plugin/src/Makefile
tests/Makefile
tests/unit/Makefile
tests/unit/npapi/Makefile
po/Makefile])