dnl checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(string.h sys/types.h unistd.h stdbool.h)
-AC_CHECK_HEADERS(cunistd netinet/in.h)
+AC_CHECK_HEADERS(sys/types.h unistd.h stdbool.h)
+AC_CHECK_HEADERS(cunistd)
dnl checks for types
%# edit the skeleton.
%#
#define FLEX_SCANNER
-#define YY_FLEX_VERSION VERSION
+#define YY_FLEX_MAJOR_VERSION FLEX_MAJOR_VERSION
+#define YY_FLEX_MINOR_VERSION FLEX_MINOR_VERSION
+#define YY_FLEX_SUBMINOR_VERSION FLEX_SUBMINOR_VERSION
/* First, we deal with platform-specific or compiler-specific issues. */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
/* begin standard C headers. */
%push
#include <stdlib.h>
/* We try to get some modern integral types defined */
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
-/* sometimes, inttypes.h doesn't do everything that we would have
-hoped, so we make sure we have what we need. We try to avoid
-redefinition warnings though. The idea is that if we have int8_t then
-we probably have the other int*_t types. The logic is similar with
-uint*_t types. */
-
-#ifndef HAVE_INT8_T
/* Exact integral types. */
# else
__extension__ typedef long long int int64_t;
# endif
-#endif /* ! HAVE_INT8_T */
-
-#ifndef HAVE_UINT8_T
/* Unsigned. */
#else
__extension__ typedef unsigned long long int uint64_t;
#endif
-#endif /* ! HAVE_UINT8_T */
/* Limits of integral types. */
#ifndef INT8_MIN
+
/* flexdef - definitions file for flex */
/* Copyright (c) 1990 The Regents of the University of California. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#define unspecified -1
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
/* Special chk[] values marking the slots taking by end-of-buffer and action
* numbers.
*/