AC_CHECK_SIZEOF([0i8], [], [[]])
-# checks for library functions
-AC_CHECK_FUNCS([strdup])
-
-
AC_CONFIG_FILES([\
Makefile \
doc/re2c.ad \
#define __attribute__(x)
#endif
-/* strdup() isn't standard C, so if we don't have it, we'll create our
- * own version
- */
-#if !defined(HAVE_STRDUP)
-static char* strdup(const char* s)
-{
- char* rv = (char*)malloc(strlen(s) + 1);
-
- if (rv == NULL)
- {
- return NULL;
- }
- strcpy(rv, s);
- return rv;
-}
-#endif
-
void context_check(CondList *clist)
{
if (!cFlag)