Re: configure --something= location of GraphicsMagick-config
[email protected] (David N. Welton)
| Newsgroups | gmane.comp.video.graphicsmagick.core |
|---|---|
| Message-ID | <[email protected]> |
Bob Friesenhahn <[email protected]> writes: > 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. Ok, but if TclMagick is in the extensions/ module... that is going to be difficult. > 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']) That makes sense. Maybe --with-gm and --with-im, but what I was really after is the way to just get it working at all, rather than worrying about the two systems. To do that I need, I suppose, a configure option that points to the GraphicsMagic-config script. Is that what the above does with the $withval variable? > 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. Would a separate, mutually exclusive --with-imagemagick be a bit clearer? > Naturally the option should be --without-graphicsmagick for the > purposes of this list. :-) Sure, that's what I'm interested in for now... -- David N. Welton Consulting: http://www.dedasys.com/ Personal: http://www.dedasys.com/davidw/ Free Software: http://www.dedasys.com/freesoftware/ Apache Tcl: http://tcl.apache.org/ ------------------------------------------------------- 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