Re: configure --something= location of GraphicsMagick-config
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.core |
|---|---|
| Message-ID | <[email protected]> |
On 4 Jan 2004, David N. Welton wrote: > I'm trying to thrash the auto/make/whatever scripts into shape for > TclMagick. Unfortunately, I'm not very knowledgeable about this > aspect of things (to tell the truth, I hate auto*). I know I need > something for configure to do --with-graphicsmagick, but I'm not quite > sure how to go about implementing that. Is there anything like it > already? Hope that makes sense:-/ Ideally the top GraphicsMagick/ImageMagick configure script would be enhanced so that TclMagick is subordinate and doesn't even need its own configure script. Most of what TclMagick needs is already known to GraphicsMagick's configure script so only a Makefile.am would be necessary. This way there is no doubt what form of Magick is being used, and if it is compatible. That said, you would use the AC_ARG_WITH Autoconf macro to add a new --with or --without option: AC_ARG_WITH(graphicsmagick, [ --without-graphicsmagick Use ImageMagick rather than GraphicsMagick ], [ with_graphicsmagick=$withval], [ with_graphicsmagick='yes']) and then you would test to see if with_graphicsmagick is set to 'no' or 'yes' in order to decide which package should be used. Naturally the option should be --without-graphicsmagick for the purposes of this list. :-) Bob ====================================== Bob Friesenhahn [email protected] http://www.simplesystems.org/users/bfriesen ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click