--- gvpe/configure.ac 2004/05/30 17:52:32 1.30 +++ gvpe/configure.ac 2005/03/18 01:53:05 1.37 @@ -2,9 +2,9 @@ AC_PREREQ(2.59) AC_INIT -AC_CONFIG_SRCDIR([src/vped.C]) +AC_CONFIG_SRCDIR([src/gvpe.C]) AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(vpe, 1.7) +AM_INIT_AUTOMAKE(gvpe, 1.8) AC_CONFIG_HEADERS([config.h]) AM_MAINTAINER_MODE @@ -19,22 +19,35 @@ ]) AH_BOTTOM([ +typedef unsigned char u8; +typedef signed char s8; + #if __CYGWIN__ -typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; +typedef signed short s16; +typedef signed int s32; #else #include /* old modula-2 habits */ -typedef unsigned char u8; typedef uint16_t u16; typedef uint32_t u32; +typedef int16_t s16; +typedef int32_t s32; +#endif + #endif +// include clocale first because gettext.h might overwrite setlocale +#if defined(HAVE_CLOCALE) && defined(__cplusplus) +# include +#else +# include #endif +#include "gettext.h" ]) dnl Include the macros from the m4/ directory @@ -78,7 +91,9 @@ Untested combinations are: "tincd/netbsd" "tincd/solaris" - "tincd/mingw"; + "tincd/mingw" + "tincd/raw_socket" + "tincd/uml_socket"; Broken combinations are: "tincd/cygwin"; The default is to autodetect. @@ -145,7 +160,7 @@ dnl Checks for libraries. AC_LANG(C++) -AC_CHECK_HEADERS(ext/hash_map) +AC_CHECK_HEADERS(ext/hash_map clocale) dnl Checks for header files. AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ @@ -263,7 +278,12 @@ AC_ARG_ENABLE(dns, [AS_HELP_STRING(--enable-dns,enable dns tunnel protocol support (DOES NOT WORK).)], - AC_DEFINE_UNQUOTED(ENABLE_DNS, 1, [DNS tunnel protocol support.]) + [ + AC_CHECK_HEADER(gmp.h,,[AC_MSG_ERROR([gmp.h not found, required for --enable-dns])]) + AC_CHECK_LIB(gmp,main,,[AC_MSG_ERROR([libgmp not found, required for --enable-dns])]) + + AC_DEFINE_UNQUOTED(ENABLE_DNS, 1, [DNS tunnel protocol support.]) + ] ) AC_ARG_ENABLE(http-proxy, @@ -382,7 +402,6 @@ AC_CONFIG_FILES([Makefile po/Makefile.in src/Makefile -src/rohc/Makefile doc/Makefile lib/Makefile m4/Makefile