[vlc-devel] Re: [PATCH] configure.ac: A new directfb detection (fix: #845)
Christophe Mutricy
xtophe at nxtelevision.com
Thu Feb 8 21:43:01 CET 2007
On Thu, Feb 08, 07 at 02:49 -0200, Iuri Diniz wrote:
> Hi people,
>
> I rewrote the directfb detection, It tries to find using:
>
> 1 - given location;
> 2 - directfb-config;
> 3 - pkg-config
> dnl DirectFB module
> +dnl try to find using: 1 - given location; 2 - directfb-config; 3 - pkg-config
> +dnl TODO: support for static linking
> dnl
> AC_ARG_ENABLE(directfb,
> [ --enable-directfb DirectFB support (default disabled)])
> -if test "${enable_directfb}" = "yes"
> -then
> - if test "${with_directfb}" = "no"
> - then
> - AC_CHECK_HEADER(directfb.h, have_directfb="true", have_directfb="false")
> - if test "${have_directfb}"= "true"
> - then
> +AC_ARG_WITH(directfb,
> + [ --with-directfb=PATH path to DirectFB headers and libraries])
> +
It should be called --with-directfb-tree. Which usually imply static
linking
--with-directfb is if you have "make install" in your directfb tree
> +if test "${enable_directfb}" = "yes"; then
> + have_directfb="false"
> + CPPFLAGS_mydirectfb=
> + LDFLAGS_mydirectfb=
> + if test "${with_directfb}" != "no" -a -n "${with_directfb}"; then
> + dnl Trying the given location
> + CPPFLAGS_save=${CPPFLAGS}
> + LDFLAGS_save=${LDFLAGS}
I believe there is a macro for that in vlc.m4. but no big deal
> +
--
Xtophe
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list