Re: ./configure options
Pro Turm <[email protected]> Mon, 18 Nov 2019 19:47:53 +0100 (CET)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
I need different behavior, because in animate.c I have #if defined(HasX11) which for some reasons evaluated to TRUE, i.e. it tried to compile animate.c & co, with --without-x. Im not sure, but I think that the line in configure.ac AC_CONFIG_HEADERS([magick/magick_config.h magick/magick_config_api.h]) is not completely correct, since it forces the commenting out of the #undefs from magick_config_api.h which are no header preprocessor symbols. I could think that the #undefs are misplaced in this file or AC_CONFIG_HEADERS shouldn't be called with magick_config_api.h, because the reason for the commenting out is: "If the corresponding ‘ AC_DEFINE’ has not been executed during the configure run, the ‘ #undef’ line is commented out." Shortly, as I understood it, AC_CONFIG_HEADERS is for headers only, not for symbols. Best, > On November 18, 2019 at 7:29 PM Bob Friesenhahn < [email protected] mailto:[email protected] > wrote: > > > On Mon, 18 Nov 2019, Pro Turm wrote: > > > > > Maybe my expectations are wrong. > > > > I expect to see (when without-x is used with configure) in the generated magick_config.h to see generated something like > > > > /* Define if you have X11 library */ > > #undef HasX11 > > > > and not > > > > /* Define if you have X11 library */ > > /* #undef HasX11 */ > > > > How do I achieve this ? > > > > > > I am not sure that I like this behavior either, but it is intrinsic to > the use of Autoconf and the way that Autoconf has always worked (as > far as I remember). > > For what purpose do you need different behavior? > > Bob > -- > Bob Friesenhahn > [email protected] mailto:[email protected] , http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ > Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt > > > _______________________________________________ > Graphicsmagick-help mailing list > [email protected] mailto:[email protected] > https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help > _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help