use pkgconfig to detect libxine. untested :o
authortilman <tilman>
Thu, 22 Mar 2007 16:25:10 +0000 (16:25 +0000)
committertilman <tilman@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 22 Mar 2007 16:25:10 +0000 (16:25 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@28913 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.in

index 210322b..29c8bd8 100644 (file)
@@ -99,11 +99,11 @@ AC_ARG_ENABLE(xine,
        [enable_xine=$enableval],[enable_xine=auto])
 HAVE_XINE="no"
 if test "$enable_xine" != "no" ; then
-       AC_PATH_GENERIC(xine, 1.1.1, [HAVE_XINE="yes"])
+       PKG_CHECK_MODULES(XINE, [libxine >= 1.1.1], [HAVE_XINE="yes"])
 
        if test "$HAVE_XINE" = "yes" ; then
                requirements="$requirements libxine"
-               xine_plugins=`$XINE_CONFIG --plugindir`
+               xine_plugins=$(pkg-config --variable=plugindir libxine)
                AC_SUBST(xine_plugins)
        fi
 fi