gmyth-dbus/configure.ac
author renatofilho
Tue Feb 26 14:10:22 2008 +0000 (2008-02-26)
branchtrunk
changeset 930 bb5d61b14d41
parent 913 c0f13b16964f
permissions -rw-r--r--
[svn r939] - release 26/02/2008 - 0.7.1
     1 AC_INIT(gmyth-dbus,0.7.0)
     2 AC_PREREQ(2.52)
     3 AC_CONFIG_SRCDIR(configure.ac)
     4 AC_CANONICAL_BUILD
     5 AC_CANONICAL_HOST
     6 AC_ISC_POSIX
     7 
     8 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
     9 AM_CONFIG_HEADER(config.h)
    10 
    11 dnl make aclocal work in maintainer mode
    12 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    13 
    14 C_PROG_CXX
    15 AC_PROG_CC
    16 AM_PROG_CC_STDC
    17 AC_HEADER_STDC
    18 AC_C_BIGENDIAN
    19 AC_C_CONST
    20 
    21 # Checks required packages ####################################################
    22 ###############################################################################
    23 
    24 AC_PATH_PROG(DBUSBINDINGTOOL, dbus-binding-tool, no)
    25 if test "x$DBUSBINDINGTOOL" = "xno"; then
    26     AC_MSG_ERROR([dbus-binding-tool not found in your PATH. Please correct this])
    27 fi
    28 AC_SUBST(DBUS_BINDING_TOOL)
    29 
    30 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
    31 if test "x$HAVE_PKGCONFIG" = "xno"; then
    32   AC_MSG_ERROR(you need to have pkgconfig installed !)
    33 fi
    34 
    35 PKG_CHECK_MODULES(DBUS, dbus-glib-1, HAVE_DBUS=yes, HAVE_DBUS=no)
    36 if test "x$HAVE_DBUS" = "xno"; then
    37   AC_MSG_ERROR(you need dbus-glib-1-dev installed)
    38 fi
    39 AC_SUBST(DBUS_CFLAGS)
    40 AC_SUBST(DBUS_LIBS)
    41 
    42 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.7, HAVE_GMYTH=yes, HAVE_GMYTH=no)
    43 if test "x$HAVE_GMYTH" = "xno"; then
    44   AC_MSG_ERROR(you need libgmyth-dev >= 0.7 installed)
    45 fi
    46 AC_SUBST(GMYTH_CFLAGS)
    47 AC_SUBST(GMYTH_LIBS)
    48 
    49 AC_SUBST(CFLAGS)
    50 AC_SUBST(LDFLAGS)
    51 AC_SUBST(LIBS)
    52 
    53 AC_OUTPUT(
    54 Makefile
    55 src/Makefile
    56 data/Makefile
    57 data/br.org.indt.GMyth.service
    58 )