fix farsight compilation. call pkg-config --cflags instead of --libs

This commit is contained in:
Yann Leboulanger 2008-01-22 23:23:22 +00:00
parent db015d2bfd
commit 6bae5463fd
2 changed files with 2 additions and 4 deletions

View File

@ -29,8 +29,8 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
AM_GLIB_GNU_GETTEXT AM_GLIB_GNU_GETTEXT
AM_NLS AM_NLS
FARSIGHT_CFLAGS="`$PKG_CONFIG --libs farsight-0.1`" FARSIGHT_CFLAGS=`$PKG_CONFIG --cflags farsight-0.1`
AC_SUBST([FARSIGHT_CFLAGS]) AC_SUBST(FARSIGHT_CFLAGS)
dnl **** dnl ****
dnl pygtk and gtk+ dnl pygtk and gtk+

View File

@ -16,9 +16,7 @@ nodist_farsight_la_SOURCES = farsight.c
farsight_la_LDFLAGS = \ farsight_la_LDFLAGS = \
-module -avoid-version -module -avoid-version
FARSIGHT_CFLAGS = @FARSIGHT_CFLAGS@
farsight_la_CFLAGS = $(FARSIGHT_CFLAGS) $(PYGTK_CFLAGS) $(PYTHON_INCLUDES) -I farsight/ farsight_la_CFLAGS = $(FARSIGHT_CFLAGS) $(PYGTK_CFLAGS) $(PYTHON_INCLUDES) -I farsight/
#farsight_la_CFLAGS = -pthread -I/usr/include/farsight-0.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 $(PYGTK_CFLAGS) $(PYTHON_INCLUDES) -I farsight/
farsight.c: farsight.defs farsight.override farsight.c: farsight.defs farsight.override
pygtk-codegen-2.0 \ pygtk-codegen-2.0 \