I want to build a program that use DBUS, using automake/autoconfig tools. But the make command always report an error dbus/dbus-glib.h: No such file or directory. My OS is ubuntu 10.10. And I installed both dbus-1 and dbus-glib-1. I check the generated Makefile and found both AM_CFLAGS and AM_LDFLAGS are empty.Could somebody help? Many thanks!Here is my code:configure.ac:AC_INIT([my-app], [0.1])AC_PREREQ([2.59])AM_INIT_AUTOMAKE([1.10 -Wall no-define])AC_CONFIG_HEADERS([config.h])AC_PROG_CCAM_PROG_CC_C_OAC_CONFIG_FILES([Makefile])AC_OUTPUTDBUS_REQUIRED=1.3.1DBUS_GLIB_REQUIRED=0.82GLIB_REQUIRED=2.26.0PKG_CHECK_MODULES(DBUS, [dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED])AC_SUBST(DBUS_CFLAGS)AC_SUBST(DBUS_LIBS)Makefile.am:AUTOMAKE_OPTIONS = subdir-objectsACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}bin_PROGRAMS = my_appmy_app_SOURCES = src/my-app.cAM_CFLAGS= @DBUS_CFLAGS@AM_LDFLAGS= @DBUS_LIBS@dist_noinst_SCRIPTS = autogen.shmy-app.c...#include {{{<dbus/dbus-glib.h>}}}...
Autoconfig/Automake fails to generate AM_CFLAGS & AM_LDFLAGS for dependent D-BUS library. Why?
linux;ubuntu;configuration;d bus