diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2011-01-08 17:56:56 +0000 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2011-01-08 17:56:56 +0000 |
commit | 25a421b0e88ad9dda4a2e0434afd983799fdf2ad (patch) | |
tree | 12fe02a6e002fecf7b2b8e14a7f7755d1f0b2b54 /configure.in | |
parent | 86c91dc8191c9b0266eaa86a8fa416627f9da207 (diff) |
configure.in: define the {int,uint}*_t types with AC_TYPE_*.
* * *
drop d_size
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/configure.in b/configure.in index a905051f..6ddf8642 100644 --- a/configure.in +++ b/configure.in @@ -53,43 +53,10 @@ AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(void *) -case 2 in -$ac_cv_sizeof_short) gint16=short;; -$ac_cv_sizeof_int) gint16=int;; -esac -case 4 in -$ac_cv_sizeof_short) gint32=short;; -$ac_cv_sizeof_int) gint32=int;; -$ac_cv_sizeof_long) gint32=long;; -esac - -cat >d_size.h <<_______EOF -#ifndef __D_SIZE_H__ -#define __D_SIZE_H__ - - -#include "config.h" - -#if HAVE_STDINT_H == 0 -#include <stdint.h> -#elif defined(HAVE_INTTYPES_H) -#include <inttypes.h> -#else -typedef signed $gint16 int16_t; -typedef unsigned $gint16 uint16_t; -typedef signed $gint32 int32_t; -typedef unsigned $gint32 uint32_t; -#endif -typedef unsigned char uchar_t; -typedef unsigned short ushort_t; -typedef unsigned long ulong_t; -typedef unsigned int uint_t; -typedef unsigned char bool_t; - - -#endif /* __D_SIZE_H__ */ -_______EOF - +AC_TYPE_INT16_T +AC_TYPE_UINT16_T +AC_TYPE_INT32_T +AC_TYPE_UINT32_T dnl -------------------------------------- dnl Check whether to add /usr/local or not |