Use a Configuration Header Template for evconfig-private.h

This commit is contained in:
Kevin Bowling 2011-01-02 07:51:23 -07:00
parent edf62dddbc
commit 868f88874f
2 changed files with 40 additions and 1 deletions

View File

@ -6,7 +6,7 @@ AC_INIT(event.c)
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(libevent,2.1.0-alpha-dev) AM_INIT_AUTOMAKE(libevent,2.1.0-alpha-dev)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h evconfig-private.h:evconfig-private.h.in)
AC_DEFINE(NUMERIC_VERSION, 0x02010001, [Numeric representation of the version]) AC_DEFINE(NUMERIC_VERSION, 0x02010001, [Numeric representation of the version])
dnl Initialize prefix. dnl Initialize prefix.

39
evconfig-private.h.in Normal file
View File

@ -0,0 +1,39 @@
/* evconfig-private.h template - see "Configuration Header Templates"
/* in AC manual. Kevin Bowling <kevin.bowling@kev009.com */
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif
/* Define to 1 if on MINIX. */
#ifndef _MINIX
#undef _MINIX
#endif
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#ifndef _POSIX_1_SOURCE
#undef _POSIX_1_SOURCE
#endif
/* Define to 1 if you need to in order for `stat' and other things to work. */
#ifndef _POSIX_SOURCE
#undef _POSIX_SOURCE
#endif