[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can configure figure out if a C library supports a feature?
From: |
Miles Bader |
Subject: |
Re: Can configure figure out if a C library supports a feature? |
Date: |
Fri, 14 May 2010 18:33:04 +0900 |
address@hidden writes:
> Can configure figure out if a C library supports a feature?
>
> I have refreshed the ImageMagick branch, and want to support more
> versions of ImageMagick.
>
> At some point ImageMagick introduced MagickExportImagePixels(). I can
> optionaly take advantage of this function. How do I figure out and
> handle in my code that this function is available?
AC_CHECK_FUNC([MagickExportImagePixels])
You can set the (shell) variable "LIBS" before the use of AC_CHECK_FUNC
to specify whatever libraries are necessary, if they aren't already
available there, e.g. something like:
OLD_LIBS="$LIBS"
LIBS="$LIBS_FOR_IMAGE_MAGICK $LIBS"
AC_CHECK_FUNC([MagickExportImagePixels])
LIBS="$OLD_LIBS"
[The emacs configure.in should contains lots of examples of similar
tests you can look at...]
-Miles
--
Idiot, n. A member of a large and powerful tribe whose influence in human
affairs has always been dominant and controlling.