?RCS: Copyright (c) 2005-2007 H.Merijn Brand
?RCS:
?RCS: You may distribute under the terms of either the GNU General Public
?RCS: License or the Artistic License, as specified in the README file.
?RCS:
?MAKE:d_libm_lib_version: Compile cat run rm_try
?MAKE:	-pick add $@ %<
?S:d_libm_lib_version:
?S:	This variable conditionally defines the LIBM_LIB_VERSION symbol,
?S:	which indicates to the C program that math.h defines _LIB_VERSION
?S:	being available in libm
?S:.
?C:LIBM_LIB_VERSION:
?C:	This symbol, if defined, indicates that libm exports _LIB_VERSION
?C:	and that math.h defines the enum to manipulate it.
?C:.
?H:#$d_libm_lib_version LIBM_LIB_VERSION		/**/
?H:.
?T:foo
?F:!try
: check to see if math.h defines _LIB_VERSION
d_libm_lib_version="$undef"
echo " "
echo "Checking to see if your libm supports _LIB_VERSION..." >&4
$cat >try.c <<EOCP
#include <unistd.h>
#include <math.h>
#include <stdio.h>
int main (int argc, char *argv[])
{
    printf ("%d\n", _LIB_VERSION);
    return (0);
    } /* main */
EOCP
set try
if eval $compile; then
    foo=`$run ./try`
    echo "Yes, it does ($foo)" >&4
    d_libm_lib_version="$define"
else
    echo "No, it does not (probably harmless)" >&4
    fi
$rm_try

