comparison configure.ac @ 3739:6d4dc9ec7240

[xemacs-hg @ 2006-12-11 19:43:57 by aidan] Check for the various u*_t types in configure, use those definitions in C.
author aidan
date Mon, 11 Dec 2006 19:44:56 +0000
parents 23dd32cedb6a
children 995ea1223b4d
comparison
equal deleted inserted replaced
3738:23dd32cedb6a 3739:6d4dc9ec7240
5374 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS) 5374 test -n "$libdbm" && XE_PREPEND("$libdbm", LIBS)
5375 test "$enable_database_gdbm" = "yes" -o \ 5375 test "$enable_database_gdbm" = "yes" -o \
5376 "$enable_database_dbm" = "yes" && \ 5376 "$enable_database_dbm" = "yes" && \
5377 AC_DEFINE(HAVE_DBM) 5377 AC_DEFINE(HAVE_DBM)
5378 5378
5379 dnl Check for u_int*_t typedefs.
5380 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t])
5381
5379 dnl Check for Berkeley DB. 5382 dnl Check for Berkeley DB.
5380 if test "$enable_database_berkdb" != "no"; then 5383 if test "$enable_database_berkdb" != "no"; then
5381 AC_MSG_CHECKING(for Berkeley db.h) 5384 AC_MSG_CHECKING(for Berkeley db.h)
5382 for header in "db/db.h" "db.h"; do 5385 for header in "db/db.h" "db.h"; do
5383 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 5386 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
5384 #include <stdlib.h> 5387 #include <stdlib.h>
5385 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 5388 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
5386 #ifdef HAVE_INTTYPES_H 5389 #ifdef HAVE_INTTYPES_H
5387 #define __BIT_TYPES_DEFINED__ 5390 #define __BIT_TYPES_DEFINED__
5388 #include <inttypes.h> 5391 #include <inttypes.h>
5392 #if !HAVE_U_INT8_T
5389 typedef uint8_t u_int8_t; 5393 typedef uint8_t u_int8_t;
5394 #endif
5395 #if !HAVE_U_INT16_T
5390 typedef uint16_t u_int16_t; 5396 typedef uint16_t u_int16_t;
5397 #endif
5398 #if !HAVE_U_INT32_T
5391 typedef uint32_t u_int32_t; 5399 typedef uint32_t u_int32_t;
5400 #endif
5392 #ifdef WE_DONT_NEED_QUADS 5401 #ifdef WE_DONT_NEED_QUADS
5402 #if !HAVE_U_INT64_T
5393 typedef uint64_t u_int64_t; 5403 typedef uint64_t u_int64_t;
5404 #endif
5394 #endif 5405 #endif
5395 #endif 5406 #endif
5396 #endif 5407 #endif
5397 #include <$header> 5408 #include <$header>
5398 ])], db_h_file="$header"; break) 5409 ])], db_h_file="$header"; break)