#
# This function determins if the the srand48,drand48,lrand48 functions are
# available on this platform.
#
AC_DEFUN([AC_FUNC_RAND48],[
AC_SINGLE_CXX_CHECK([HAVE_RAND48],    [ac_cv_func_rand48],   
                    [srand48/lrand48/drand48], [<stdlib.h>],
                    [#include <stdlib.h>
                     void foo(void) {srand48(0);lrand48();drand48();}])
])
