# HG changeset patch # User Jim Blandy # Date 725179689 0 # Node ID b9911aed06bc83bfe5f7ebef723b262c6abf2e2b # Parent 320b31b5b03513ff0cb676bd24a2cb4e364187b4 *** empty log message *** diff -r 320b31b5b035 -r b9911aed06bc configure.in --- a/configure.in Tue Dec 15 02:35:40 1992 +0000 +++ b/configure.in Thu Dec 24 06:48:09 1992 +0000 @@ -1,6 +1,9 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(regex.c) +dnl Because regex may or may not be used with Autoconf, we need to know. +AC_DEFINE(USING_AUTOCONF) + AC_PROG_CC AC_PROG_INSTALL diff -r 320b31b5b035 -r b9911aed06bc regex.h --- a/regex.h Tue Dec 15 02:35:40 1992 +0000 +++ b/regex.h Thu Dec 24 06:48:09 1992 +0000 @@ -393,12 +393,25 @@ already been defined, as by Autoconf's AC_CONST, don't do anything. */ #if __STDC__ + #define _RE_ARGS(args) args + #else /* not __STDC__ */ + #define _RE_ARGS(args) () -#if !const && !HAVE_CONST + +#ifndef USING_AUTOCONF + +#ifndef HAVE_CONST +#define const +#else +#if !HAVE_CONST #define const #endif +#endif + +#endif /* not USING_AUTOCONF */ + #endif /* not __STDC__ */ /* Sets the current default syntax to SYNTAX, and return the old syntax.