On Mon, Sep 07, 2009 at 02:17PM +0200, Max Kellermann wrote:
> On 2009/09/07 14:01, Serge Ziryukin <ftrvxm...@gmail.com> wrote:
> >  if test x$enable_openal = xyes; then
> > -   PKG_CHECK_MODULES([OPENAL], [openal],
> > -           AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]),
> > -           enable_openal=no)
> > +   if test x$enable_osx = xyes; then
> > +           AC_CHECK_HEADERS([OpenAL/al.h OpenAL/alc.h], [], 
> > [enable_openal=no])
> > +           if test x$enable_openal = xyes; then
> > +                   OPENAL_LIBS="-framework OpenAL"
> > +                   AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support])
> > +           else
> > +                   AC_MSG_WARN(OpenAL headers not found -- disabling 
> > OpenAL support)
> > +           fi
> > +   else
> > +           PKG_CHECK_MODULES([OPENAL], [openal],
> > +                   AC_DEFINE(HAVE_OPENAL, 1, [Define for OpenAL support]),
> > +                   enable_openal=no)
> > +   fi
> 
> Does pkg-config not work?  If not, why does nobody fix the .pc file,
> instead of adding such a non-portable hack to every program which
> wants to use OpenAL?

pkg-config is MacPorts specific and there is no .pc file in OpenAL port 
installation:

 ftrvxmtrx:~ $ pkg-config --list-all | grep -i openal
 ftrvxmtrx:~ $ port contents openal
 Port openal contains:
   /opt/local/include/openal/al.h
   /opt/local/include/openal/alc.h
   /opt/local/include/openal/alctypes.h
   /opt/local/include/openal/altypes.h
   /opt/local/include/openal/alut.h
   /opt/local/lib/libopenal.dylib
   /opt/local/lib/libopenal1.0.0.dylib
   /opt/local/lib/libopenal1.0.dylib
   /opt/local/lib/libopenal1.dylib

Also, OpenAL may be already installed as a development framework,
without using MacPorts (patch is for this case).
Another solution could be fixing OpenAL port installation so it contains 
openal.pc file
and support only OpenAL installed from MacPorts.

Attachment: pgp3bPhIfxXte.pgp
Description: PGP signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to