From: Volker G. <vo...@no...> - 2010-06-14 07:21:53
|
David Bruce <dav...@gm...> schrieb: > Volker Grabsch <vo...@no...> schrieb: > > > > Just a quick guess, without having tested it: [...] > > Does that solve the issue? > > Unfortunately, getting rid of the [] around the echo statements > doesn't solve it. Autoconf still complains as before, and then the > configure script fails with: > > checking for SDL_IMAGE... ../configure: line 8532: syntax error near > unexpected token `(' Okay, here's a second guess: ---------------------------------------------------------------------------- PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer], , [ [echo "SDL_MIXER not found via pkg_config, checking with AC_CHECK_LIB:"] [AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio], , [AC_MSG_ERROR([SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer])] )] [echo "SDL_MIXER successfully located"] ] ) ---------------------------------------------------------------------------- And here's a third one: ---------------------------------------------------------------------------- PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer], , [echo "SDL_MIXER not found via pkg_config, checking with AC_CHECK_LIB:"] [AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio], , [AC_MSG_ERROR([SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer])] )] [echo "SDL_MIXER successfully located"] ) ---------------------------------------------------------------------------- > Although the current code seems to work (after a second autoreconf), > these error messages worry me. What's more, even by deleting the echo > statements entirely, I can't seem to get back to a state that doesn't > generate these errors. Indeed, that's really strange. BTW, a look into the M4 manpages or the Autoconf manpages might help. Maybe some other quoting or a ";" or similar is needed, or maybe there is a macro similar to "MSG_WARN" that is a proper replacement for the "echo" statement. Greets, Volker -- Volker Grabsch ---<<(())>>--- Administrator NotJustHosting GbR |