ports/devel/libbegemot/files/patch-configure.ac
Renato Botelho 35a2d230ba Add libbegemot 1.11, a function library for begemot tools.
PR:		ports/86327
Submitted by:	Andrey V. Elsukov <bu7cher@yandex.ru>
2005-09-20 10:54:55 +00:00

28 lines
627 B
Text

--- configure.ac.orig Thu Sep 15 14:18:10 2005
+++ configure.ac Thu Sep 15 15:34:24 2005
@@ -232,8 +232,14 @@
AC_CACHE_CHECK([how to print quads],
ac_cv_quad_fmt,
[if test "$ac_have_inttypes_h" = "yes" ; then
- ac_cv_quad_fmt=PRIu64
- else
+ AC_EGREP_CPP(yes,
+[
+# include <inttypes.h>
+# ifdef PRIu64
+yes
+# endif
+],
+ ac_cv_quad_fmt=PRIu64,
AC_TRY_RUN(
[[
# include <stdio.h>
@@ -251,7 +257,7 @@
ac_cv_quad_fmt='"q"',
ac_cv_quad_fmt='"ll"',
ac_cv_quad_fmt='"ll"')
- fi ])
+ fi ]))
AC_DEFINE_UNQUOTED(QUADFMT, $ac_cv_quad_fmt)
# ------------------------------------------------------------