From b119aedc2f80605d6be4cfa04a4ba5f4cb9da709 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 3 Dec 2003 12:23:37 +0000 Subject: [PATCH] fixing up X test and general features test Original commit message from CVS: fixing up X test and general features test --- ChangeLog | 6 ++++++ common | 2 +- configure.ac | 38 +++++++++++++++++++++----------------- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae140e5..020fd48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-12-03 set REAL_NAME environment variable + + * common/m4/gst-feature.m4: *** instead of newline when not built + * configure.ac: fix X detection when no X stuff present + * gst-libs/gst/Makefile.am: put X dependencies inside conditional + 2003-07-12 Thomas Vander Stichele * gst-plugins.spec.in: fix up spec file diff --git a/common b/common index b5288e8..fcdc6cc 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit b5288e8215c6eacf0782880f6c5b6dea8f445a34 +Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396 diff --git a/configure.ac b/configure.ac index 02a8cbc..8563f09 100644 --- a/configure.ac +++ b/configure.ac @@ -489,23 +489,27 @@ dnl ;; ]) dnl Check for X11 -AC_PATH_XTRA -if test "-DX_DISPLAY_MISSING" = "$X_CFLAGS"; then - AC_MSG_NOTICE([cannot find X11, the build system needs fixage]) - HAVE_X="no" -else - dnl this is much more than we want - X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS" - dnl AC_PATH_XTRA only defines the path needed to find the X libs, not the libs - dnl therefore we add them here - X_LIBS="$X_LIBS -lX11" - AC_SUBST(X_CFLAGS) - AC_SUBST(X_LIBS) - HAVE_X="yes"; -fi -AC_SUBST(HAVE_X) -AM_CONDITIONAL(USE_X, test "-DX_DISPLAY_MISSING" != "$X_CFLAGS") - +translit(dnm, m, l) AM_CONDITIONAL(USE_X, true) +GST_CHECK_FEATURE(X, [X libraries and plugins], + [ximagesink], [ + AC_PATH_XTRA + if test "x$X_CFLAGS" == "x" -o "$X_CFLAGS" == "-DX_DISPLAY_MISSING" + then + AC_MSG_NOTICE([cannot find X11 development files]) + HAVE_X="no" + else + dnl this is much more than we want + X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS" + dnl AC_PATH_XTRA only defines the path needed to find the X libs, not the libs + dnl therefore we add them here + X_LIBS="$X_LIBS -lX11" + AC_SUBST(X_CFLAGS) + AC_SUBST(X_LIBS) + HAVE_X="yes" + fi + AC_SUBST(HAVE_X) +]) + dnl *** XVideo *** dnl Look for the PIC library first, Debian requires it. dnl Check debian-devel archives for gory details. -- 2.7.4