changeset 2800:ea4e97a98914

a fix for automatic plugin _CFGIDs to be generated
author Andrew O. Shadoura <bugzilla@tut.by>
date Sat, 12 Jul 2008 02:40:00 +0300
parents 48550fe6723c
children d3c4dd274890
files buildsys.mk.in configure.ac extra.mk.in
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/buildsys.mk.in	Sat Jul 05 23:00:33 2008 +0300
+++ b/buildsys.mk.in	Sat Jul 12 02:40:00 2008 +0300
@@ -29,6 +29,7 @@
 OBJC = @OBJC@
 AR = @AR@
 LD = ${CC}
+TR = @TR@
 CFLAGS = @CFLAGS@
 CXXFLAGS = @CXXFLAGS@
 CPPFLAGS = @CPPFLAGS@
@@ -45,7 +46,8 @@
 LIB_LDFLAGS = @LIB_LDFLAGS@
 LIB_PREFIX = @LIB_PREFIX@
 LIB_SUFFIX = @LIB_SUFFIX@
-PLUGIN_CPPFLAGS = @PLUGIN_CPPFLAGS@
+PLUGIN_DEFNAME = `echo ${subst ${PLUGIN_SUFFIX},,${PLUGIN}} | tr [:lower:] [:upper:]`
+PLUGIN_CPPFLAGS = @PLUGIN_CPPFLAGS@ -D${PLUGIN_DEFNAME}_CFGID=\"${subst ${PLUGIN_SUFFIX},,${PLUGIN}}\"
 PLUGIN_CFLAGS = @PLUGIN_CFLAGS@
 PLUGIN_LDFLAGS = @PLUGIN_LDFLAGS@
 PLUGIN_SUFFIX = @PLUGIN_SUFFIX@
--- a/configure.ac	Sat Jul 05 23:00:33 2008 +0300
+++ b/configure.ac	Sat Jul 12 02:40:00 2008 +0300
@@ -93,6 +93,7 @@
 AC_PATH_PROG(MV, mv)
 AC_PATH_PROG(CP, cp)
 AC_PATH_PROG(AR, ar)
+AC_PATH_PROG(TR, tr)
 AC_PATH_PROG(RANLIB, ranlib)
 
 dnl Gettext -nenolod
--- a/extra.mk.in	Sat Jul 05 23:00:33 2008 +0300
+++ b/extra.mk.in	Sat Jul 12 02:40:00 2008 +0300
@@ -270,6 +270,7 @@
 TAGLIB_CFLAGS ?= @TAGLIB_CFLAGS@
 TAGLIB_CONFIG ?= @TAGLIB_CONFIG@
 TAGLIB_LIBS ?= @TAGLIB_LIBS@
+TR ?= @TR@
 USE_INCLUDED_LIBINTL ?= @USE_INCLUDED_LIBINTL@
 USE_NLS ?= @USE_NLS@
 USE_X86ASM_FALSE ?= @USE_X86ASM_FALSE@