Set PLUGIN_PATH and LOCALEDIR only for libvlc
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Mar 2008 18:40:16 +0000 (20:40 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Mar 2008 18:40:16 +0000 (20:40 +0200)
src/Makefile.am
vlc-config.in.in

index f640277..e465c59 100644 (file)
@@ -158,7 +158,9 @@ endif
 libvlc_la_SOURCES = $(SOURCES_libvlc)
 nodist_libvlc_la_SOURCES = misc/revision.c
 libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
-       -DDATA_PATH=\"$(pkgdatadir)\"
+       -DLOCALEDIR=\"$(localedir)\" \
+       -DDATA_PATH=\"$(pkgdatadir)\" \
+       -DPLUGIN_PATH=\"$(pkglibdir)\"
 libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
 libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
 libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
index bfe8c95..6c95b46 100644 (file)
@@ -99,12 +99,6 @@ linkage="c"
 #
 cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE"
 
-#
-#  Gettext, data and plugin location
-#
-cppflags="${cppflags} -DLOCALEDIR=\"@datadir@/locale\""
-cppflags="${cppflags} -DPLUGIN_PATH=\"@libdir@/vlc\""
-
 #
 #  Various additional defines
 #