blob: e0058b116407aa3172674a13f281a93c56ada466 [file] [log] [blame]
Paolo Bonzini71b5d512004-08-31 09:27:00 +00001AC_PREREQ(2.59)
2
3AC_INIT(fixincludes, [ ])
4AC_CONFIG_SRCDIR(inclhack.def)
5AC_CONFIG_AUX_DIR(..)
6AC_CANONICAL_SYSTEM
7AC_PROG_CC
8
9# Choose one or two-process fix methodology. Systems that cannot handle
10# bi-directional pipes must use the two process method.
11#
12case $host in
13 i?86-*-msdosdjgpp* | \
14 *-*-beos* )
15 TARGET=twoprocess
16 AC_DEFINE(SEPARATE_FIX_PROC, 1, [Define if testing and fixing are done by separate process])
17 ;;
18
19 vax-dec-bsd* )
20 TARGET=oneprocess
21 AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit])
22 AC_DEFINE(atexit, xatexit, [Define to xatexit if the host system does not support atexit])
23 ;;
24
25 * )
26 TARGET=oneprocess
27 ;;
28esac
29AC_SUBST(TARGET)
30
31# Checks for header files.
32AC_HEADER_STDC
33AC_CHECK_HEADERS([stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
34 sys/stat.h])
35AC_CHECK_FUNCS(putc_unlocked fputc_unlocked fputs_unlocked \
36 fwrite_unlocked fprintf_unlocked)
37AC_CHECK_DECLS([abort, errno, putc_unlocked, fputc_unlocked,
38 fputs_unlocked, fwrite_unlocked, fprintf_unlocked])
39
40# Checks for typedefs, structures, and compiler characteristics.
41AC_C_CONST
42
43# Checks for library functions.
44gcc_AC_FUNC_MMAP_BLACKLIST
45
46AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
47AC_ARG_ENABLE(maintainer-mode,
48[ --enable-maintainer-mode enable make rules and dependencies not useful
49 (and sometimes confusing) to the casual installer],
50 USE_MAINTAINER_MODE=$enableval,
51 USE_MAINTAINER_MODE=no)
52AC_MSG_RESULT($USE_MAINTAINER_MODE)
53if test "$USE_MAINTAINER_MODE" = yes; then
54 MAINT=
55else
56 MAINT='#'
57fi
58AC_SUBST(MAINT)
59
60AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])
61AC_CONFIG_FILES(Makefile)
62AC_OUTPUT