From 0d3089f9aec83b0dae85194d92a29f11e7f7420d Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 19 Jan 2005 11:58:26 +0000 Subject: [PATCH] *** empty log message *** --- ase/config.h.in | 86 ++++++++++++++++++++++++++++++++++++++++++++++++ ase/configure.ac | 23 ++++++------- ase/types.h | 5 ++- 3 files changed, 102 insertions(+), 12 deletions(-) create mode 100644 ase/config.h.in diff --git a/ase/config.h.in b/ase/config.h.in new file mode 100644 index 00000000..447f1da7 --- /dev/null +++ b/ase/config.h.in @@ -0,0 +1,86 @@ +/* xp/config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `memset' function. */ +#undef HAVE_MEMSET + +/* Define to 1 if your system has a GNU libc compatible `realloc' function, + and to 0 otherwise. */ +#undef HAVE_REALLOC + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Big Endian */ +#undef XP_ENDIAN_BIG + +/* Little Endian */ +#undef XP_ENDIAN_LITTLE + +/* Unknown Endian */ +#undef XP_ENDIAN_UNKNOWN + +/* fcntl.h */ +#undef XP_HAVE_FCNTL_H + +/* limits.h */ +#undef XP_HAVE_LIMITS_H + +/* stdarg.h */ +#undef XP_HAVE_STDARG_H + +/* stddef.h */ +#undef XP_HAVE_STDDEF_H + +/* unistd.h */ +#undef XP_HAVE_UNISTD_H + +/* wchar.h */ +#undef XP_HAVE_WCHAR_H + +/* _POSIX_SOURCE */ +#undef _POSIX_SOURCE + +/* Define to rpl_realloc if the replacement function should be used. */ +#undef realloc diff --git a/ase/configure.ac b/ase/configure.ac index 4903c602..3710ea4b 100644 --- a/ase/configure.ac +++ b/ase/configure.ac @@ -1,6 +1,7 @@ AC_PREREQ(2.59) AC_INIT([xpkit], [deb-0.1.0]) -AC_REVISION([$Revision: 1.9 $]) +AC_REVISION([$Revision: 1.10 $]) +AC_CONFIG_HEADER([xp/config.h]) # Checks for programs. AC_PROG_CXX @@ -11,18 +12,18 @@ AC_PROG_RANLIB # Checks for header files. #AC_HEADER_STDC -AC_CHECK_HEADER([unistd.h], [AC_DEFINE(XP_HAVE_UNISTD_H)]) -AC_CHECK_HEADER([fcntl.h], [AC_DEFINE(XP_HAVE_FCNTL_H)]) -AC_CHECK_HEADER([stdarg.h], [AC_DEFINE(XP_HAVE_STDARG_H)]) -AC_CHECK_HEADER([stddef.h], [AC_DEFINE(XP_HAVE_STDDEF_H)]) -AC_CHECK_HEADER([limits.h], [AC_DEFINE(XP_HAVE_LIMITS_H)]) -AC_CHECK_HEADER([wchar.h], [AC_DEFINE(XP_HAVE_WCHAR_H)]) +AC_CHECK_HEADER([unistd.h], [AC_DEFINE([XP_HAVE_UNISTD_H],[],[unistd.h])]) +AC_CHECK_HEADER([fcntl.h], [AC_DEFINE([XP_HAVE_FCNTL_H],[],[fcntl.h])]) +AC_CHECK_HEADER([stdarg.h], [AC_DEFINE([XP_HAVE_STDARG_H],[],[stdarg.h])]) +AC_CHECK_HEADER([stddef.h], [AC_DEFINE([XP_HAVE_STDDEF_H],[],[stddef.h])]) +AC_CHECK_HEADER([limits.h], [AC_DEFINE([XP_HAVE_LIMITS_H],[],[limits.h])]) +AC_CHECK_HEADER([wchar.h], [AC_DEFINE([XP_HAVE_WCHAR_H],[],[wchar.h])]) # Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN( - [AC_DEFINE(XP_ENDIAN_BIG)], - [AC_DEFINE(XP_ENDIAN_LITTLE)], - [AC_DEFINE(XP_ENDIAN_UNKNOWN)]) + [AC_DEFINE([XP_ENDIAN_BIG],[],[Big Endian])], + [AC_DEFINE([XP_ENDIAN_LITTLE],[],[Little Endian])], + [AC_DEFINE([XP_ENDIAN_UNKNOWN],[],[Unknown Endian])]) # Checks for library functions. AC_FUNC_MEMCMP @@ -30,7 +31,7 @@ AC_FUNC_REALLOC AC_CHECK_FUNCS([memset]) # Checks for system files -AC_CHECK_FILE([/NextDeveloper],[AC_DEFINE(_POSIX_SOURCE)]) +AC_CHECK_FILE([/NextDeveloper],[AC_DEFINE([_POSIX_SOURCE],[],[_POSIX_SOURCE])]) AC_CONFIG_FILES([Makefile build/Makefile xp/Makefile xp/c/Makefile]) AC_OUTPUT diff --git a/ase/types.h b/ase/types.h index 4900191f..15e98f33 100644 --- a/ase/types.h +++ b/ase/types.h @@ -1,10 +1,13 @@ /* - * $Id: types.h,v 1.8 2005-01-08 13:40:14 bacon Exp $ + * $Id: types.h,v 1.9 2005-01-19 11:58:26 bacon Exp $ */ #ifndef _XP_TYPES_H_ #define _XP_TYPES_H_ +#ifndef _WIN32 +#include +#endif #include typedef xp_uint8_t xp_byte_t;