APPLY COMMIT
This patch will appear in 21.4.13.
Thanks,
Vin
Robert Pluim <rpluim(a)bigfoot.com> writes:
This is with XEmacs-21.4, 21.5 has the same problem. I know nothing
about autoconf, let me know if there's a better way to fix this (by
testing __FreeBSD__ in the C code snippet, perhaps?).
Robert
2003-03-02 Robert Pluim <rpluim(a)bigfoot.com>
* configure.in : Don't use the u_int8_t etc typedefs on FreeBSD
when detecting Berkeley DB, as they conflict with <sys/types.h>.
Index: configure.in
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.in,v
retrieving revision 1.151.2.12
diff -u -r1.151.2.12 configure.in
--- configure.in 2003/02/24 03:30:59 1.151.2.12
+++ configure.in 2003/03/02 16:14:15
@@ -4373,12 +4373,26 @@
if test "$with_database_berkdb" != "no"; then
AC_MSG_CHECKING(for Berkeley db.h)
for header in "db/db.h" "db.h"; do
+ case "$opsys" in
+ *freebsd*)
AC_TRY_COMPILE([
#include <stdlib.h>
#if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
#ifdef HAVE_INTTYPES_H
#define __BIT_TYPES_DEFINED__
#include <inttypes.h>
+#endif
+#endif
+#include <$header>
+],[], db_h_file="$header"; break)
+ ;;
+ *)
+ AC_TRY_COMPILE([
+#include <stdlib.h>
+#if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
+#ifdef HAVE_INTTYPES_H
+#define __BIT_TYPES_DEFINED__
+#include <inttypes.h>
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
@@ -4389,6 +4403,8 @@
#endif
#include <$header>
],[], db_h_file="$header"; break)
+ ;;
+ esac
done
if test -z "$db_h_file"
then AC_MSG_RESULT(no); with_database_berkdb=no
--