Hi Dave,

On 9/28/10 10:22 AM, Dr. David Kirkby wrote:

AC_CHECK_DECLS(fprnd_t,,,[#include <float.h>])


2) I need to add in a C file which will need this declaration.

#infdef HAVE_DECL_FPRND_T
typedef unsigned short fprnd_t;
#endif



According the documentation
http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Declarations
AC_CHECK_DECL defines HAVE_DECL_FPRND_T to either '0' or '1', which implies the #ifndef above is useless. You need something like

#if !HAVE_DECL_FPRND_T
typedef unsigned short fprnd_t;
#endif

Thanks,
Peter

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to