On Tue, 31 Jul 2012, Tim Jenness wrote:
> On OSX Mountain Lion I'm running into X11 build problems. The obvious issue is that X11 is now located
> in /opt/X11 so I'm guessing I need to patch autoconf to include the search directory.
Yes that was the usual hack.
> I upgraded from Lion so I still have X11 in /usr/X11 and things should
> still be working. The problem I'm encountering is that in the past it
> seems that Lion and Snow Leopard compilers automatically behind the
> scenes searched /usr/X11/include. That doesn't seem to happen any longer
> and AC_PATH_XTRA doesn't help either. AC_PATH_XTRA adds /usr/X11/lib to
> the library link path but it doesn't seem to adjust CPPFLAGS. I have to
> add
>
> AC_PATH_XTRA
> CPPFLAGS="$CPPFLAGS $X_CFLAGS"
>
> to get things like gwm to build. Any thoughts as to why AC_PATH_XTRA
> doesn't do this automatically?
AC_PATH_XTRA doesn't do that for X_LIBS either, we add this to the _LDADD
flags in the Makefile.am. So correspondindly we should add X_CFLAGS to the
(I'd guess) AM_CFLAGS in Makefile.am.
Cheers,
Peter.
|