make pixbuf loader dir configurable
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 14 Dec 2003 16:51:39 +0000 (16:51 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 14 Dec 2003 16:51:39 +0000 (16:51 +0000)
Original commit message from CVS:
make pixbuf loader dir configurable

ChangeLog
common
configure.ac

index 0f827a6..2669a10 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,15 @@
+2003-12-14  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+        * configure.ac: make pixbuf loader configurable
+
 2003-12-14  Amaury Jacquot <sxpert@esitcom.org>
        
        * sys/xvideo/gstximage.c: remove 3 unnecessary X headers
        * sys/xvideo/gstxvimage.c: same
        * sys/xvideo/gstxwindow.c: same
-       these problems occur when using the X server from freedestkop.org
+       these problems occur when using the X server from freedesktop.org
 
-2003-12-03  set REAL_NAME environment variable  <thomas at apestaart dot org>
+2003-12-03  Thomas Vander Stichele <thomas at apestaart dot org>
 
        * common/m4/gst-feature.m4: *** instead of newline when not built
        * configure.ac: fix X detection when no X stuff present
diff --git a/common b/common
index fcdc6cc..9f37b3e 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396
+Subproject commit 9f37b3e515260c7b294222a502b2cc75dd0983b6
index 0bf4b1f..427b535 100644 (file)
@@ -215,6 +215,12 @@ case "x${target_cpu}" in
   xhppa*)     HAVE_CPU_HPPA=yes
               AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
 esac
+# make these available to automake
+AM_CONDITIONAL(HAVE_CPU_I386,       test "x$HAVE_CPU_I386" = "xyes")
+AM_CONDITIONAL(HAVE_CPU_PPC,        test "x$HAVE_CPU_PPC" = "xyes")
+AM_CONDITIONAL(HAVE_CPU_ALPHA,      test "x$HAVE_CPU_ALPHA" = "xyes")
+AM_CONDITIONAL(HAVE_CPU_ARM,        test "x$HAVE_CPU_ARM" = "xyes")
+AM_CONDITIONAL(HAVE_CPU_SPARC,      test "x$HAVE_CPU_SPARC" = "xyes")
 
 dnl Determine endianness
 AC_C_BIGENDIAN
@@ -256,20 +262,32 @@ AC_SUBST(GTK_CFLAGS)
 AC_SUBST(HAVE_GTK)
 AM_CONDITIONAL(HAVE_GDK_LOADERS, test "x$HAVE_GTK_22" = "xyes")
 
-GDK_PIXBUF_LOADER_DIR="$GDK_PIXBUF_LIBDIR/gtk-2.0/\$(GTK_VERSION)/loaders"
+# allow customization of pixbuf loader install location
+# when nothing specified, adhere to prefix settings
+# when called without any option with this argument, autodetect
+# when called with a path, set to the given path
 AC_ARG_WITH(gdk-pixbuf-loader-dir, 
    AC_HELP_STRING([--with-gdk-pixbuf-loader-dir],
-       [directory to install the gdk_pixbuf loader]),
-   [if test "x${withval}" != x ; then
+       [directory to install the gdk_pixbuf loader (none for pkg-config default)]),
+   [
+    if test "x${withval}" != xyes ; then
        GDK_PIXBUF_LOADER_DIR="${withval}"
+    else
+      GDK_PIXBUF_LOADER_DIR="$GDK_PIXBUF_LIBDIR/gtk-2.0/\$GTK_VERSION/loaders"
     fi
-])
+   ],
+   # nothing specified
+   GDK_PIXBUF_LOADER_DIR=${libdir}/gtk-2.0/\$GTK_VERSION/loaders
+)
+
+AS_AC_EXPAND(GDK_PIXBUF_LOADER_DIR, $GDK_PIXBUF_LOADER_DIR)
 AC_SUBST(GDK_PIXBUF_LOADER_DIR)
+AC_MSG_NOTICE([Putting GTK+-2 pixbuf loaders in $GDK_PIXBUF_LOADER_DIR])
 
 GDK_PIXBUF_CONFDIR="$GDK_PIXBUF_PREFIXDIR/etc/gtk-2.0/"
 AC_ARG_WITH(gdk-pixbuf-conffile, 
-   AC_HELP_STRING([--with-gdk-pixbuf-confdir],
-       [path to the gdk_pixbuf config directroy]),
+   AC_HELP_STRING([--with-gdk-pixbuf-conf-dir],
+       [path to the gdk_pixbuf config directory]),
    [if test "x${withval}" != x ; then
        GDK_PIXBUF_CONFDIR="${withval}"
     fi
@@ -1277,11 +1295,6 @@ dnl #############################
 
 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
 dnl HAVE_ and it is likely to be easier to stick with the old name
-AM_CONDITIONAL(HAVE_CPU_I386,       test "x$HAVE_CPU_I386" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_PPC,        test "x$HAVE_CPU_PPC" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_ALPHA,      test "x$HAVE_CPU_ALPHA" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_ARM,        test "x$HAVE_CPU_ARM" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_SPARC,      test "x$HAVE_CPU_SPARC" = "xyes")
 AM_CONDITIONAL(HAVE_LIBMMX,         test "x$USE_LIBMMX" = "xyes")
 
 AM_CONDITIONAL(HAVE_ATOMIC_H,       test "x$USE_ATOMIC_H" = "xyes")
@@ -1501,6 +1514,7 @@ gst-libs/gst/play/Makefile
 gst-libs/gst/propertyprobe/Makefile
 gst-libs/gst/resample/Makefile
 gst-libs/gst/riff/Makefile
+gst-libs/gst/tag/Makefile
 gst-libs/gst/tuner/Makefile
 gst-libs/gst/video/Makefile
 gst-libs/gst/xoverlay/Makefile