[postgis-devel] Best way to check if a function is defined
Jorge Arévalo
jorge.arevalo at deimos-space.com
Fri Jun 3 01:10:42 PDT 2011
On Thu, Jun 2, 2011 at 8:17 PM, Paul Ramsey <pramsey at opengeo.org> wrote:
> Checking for a function defined where? In a system library? Could
> start with AC_CHECK_HEADER to see if the header you want is around and
> then to AC_CHECK_FUNC to see if the function you want is around. I'm
> pretty sure Mark has some clever examples of hand-rolled checkers in
> the ac_proj4_version.m4 file in macros.
>
> P.
>
Check for a GDAL function, defined in gdal_alg.h. I can get the
directory by gdal-config --cflags. Then, I should check for that
header file and for a function inside it.
Thanks for the references!
Best regards,
Jorge
> 2011/6/2 Jorge Arévalo <jorge.arevalo at deimos-space.com>:
>> Hello,
>>
>> I'm looking for the best way of checking, in a configure script, if a
>> given function is defined. My bet is grep against the header file
>> where the function is supposed to be defined, but it doesn't seem too
>> smart. Suggestions?
>>
>> Thanks in advance,
>>
>> --
>> Jorge Arévalo
>> Internet & Mobilty Division, DEIMOS
>> jorge.arevalo at deimos-space.com
>> http://es.linkedin.com/in/jorgearevalo80
>> http://mobility.grupodeimos.com/
>> http://gis4free.wordpress.com
>> http://geohash.org/ezjqgrgzz0g
>> _______________________________________________
>> postgis-devel mailing list
>> postgis-devel at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge.arevalo at deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g
More information about the postgis-devel
mailing list