3 AC_INIT(fixincludes, [ ])
4 AC_CONFIG_SRCDIR(inclhack.def)
9 # Choose one or two-process fix methodology. Systems that cannot handle
10 # bi-directional pipes must use the two process method.
12 AC_ARG_ENABLE([twoprocess],
13 [ --enable-twoprocess Use a separate process to apply the fixes],
14 [if test "x$enable_twoprocess" = xyes; then
20 i?86-*-msdosdjgpp* | \
32 if test $TARGET = twoprocess; then
33 AC_DEFINE(SEPARATE_FIX_PROC, 1,
34 [Define if testing and fixing are done by separate process])
39 AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit])
40 AC_DEFINE(atexit, xatexit, [Define to xatexit if the host system does not support atexit])
44 AC_DEFINE_UNQUOTED([EXE_EXT], "$ac_exeext",
45 [Defined to the executable file extension on the host system])
47 # Checks for header files.
49 AC_CHECK_HEADERS([stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
51 AC_CHECK_FUNCS(putc_unlocked fputc_unlocked fputs_unlocked \
52 fwrite_unlocked fprintf_unlocked)
53 AC_CHECK_DECLS([abort, errno, putc_unlocked, fputc_unlocked,
54 fputs_unlocked, fwrite_unlocked, fprintf_unlocked])
56 # Checks for typedefs, structures, and compiler characteristics.
59 # Checks for library functions.
60 gcc_AC_FUNC_MMAP_BLACKLIST
62 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
63 AC_ARG_ENABLE(maintainer-mode,
64 [ --enable-maintainer-mode enable make rules and dependencies not useful
65 (and sometimes confusing) to the casual installer],
66 USE_MAINTAINER_MODE=$enableval,
67 USE_MAINTAINER_MODE=no)
68 AC_MSG_RESULT($USE_MAINTAINER_MODE)
69 if test "$USE_MAINTAINER_MODE" = yes; then
76 AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])
77 AC_CONFIG_FILES(Makefile)