Re: SDL, automake, autoconf

2003-06-02 Thread Assar Westerlund
Mattias Brändström <[EMAIL PROTECTED]> writes: > AC_INIT(foo.cpp) > > AM_INIT_AUTOMAKE(foo, 0.1) > > AC_CANONICAL_TARGET > > AC_OUTPUT(Makefile) > > I still get the same warning. Any ideas? AM_INIT_AUTOMAKE calls AC_ARG_PROGRAM which should get called after AC_CANONICAL_TARGET, so just changin

Re: SDL, automake, autoconf

2003-06-02 Thread Mattias Brändström
On Thu, 29 May 2003, Assar Westerlund wrote: > Mattias Brändström <[EMAIL PROTECTED]> writes: > > > > I get this warning: > > configure.ac:16: warning: AC_ARG_PROGRAM was called before > > AC_CANONICAL_TARGET > > > > I tried to add AC_CANONICAL_TARGET before the AM_PATH_SDL macro but I > > got the

Re: SDL, automake, autoconf

2003-05-31 Thread Alexandre Duret-Lutz
Mattias Brändström <[EMAIL PROTECTED]> writes: [...] > AM_CFLAGS="$AM_CFLAGS $SDL_CFLAGS" > AM_LDFLAGS="$AM_LDFLAGS $SDL_LIBS" [...] Actually, doing this is a no-op unless you AC_SUBST AM_CFLAGS and AM_LDFLAGS. I wouldn't recommend it. Better AC_SUBST SDL_CFLAGS and SDL_LIBS, and use them wher

Re: SDL, automake, autoconf

2003-05-30 Thread Assar Westerlund
Mattias Brändström <[EMAIL PROTECTED]> writes: > dnl Check for SDL > SDL_VERSION=1.2.0 > AM_PATH_SDL($SDL_VERSION, > :, > AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) > ) > CFLAGS="$CFLAGS $SDL_CFLAGS" > LIBS="$LIBS $SDL_LIBS" > > This is all well and good and I