* Sync comment with code's reality.
[dragonfly.git] / contrib / groff / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT
3 AC_CONFIG_HEADERS(src/include/config.h:src/include/config.hin)
4 AC_CONFIG_SRCDIR([src/roff/groff/groff.cc])
5 dnl checks for programs
6 GROFF_SRCDIR
7 GROFF_BUILDDIR
8 AC_PROG_CC
9 AC_PROG_CXX
10 GROFF_CXX_CHECK
11 GROFF_EBCDIC
12 GROFF_OS390
13 GROFF_PRINT
14 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
15 GROFF_PROG_YACC
16 AC_PROG_RANLIB
17 GROFF_INSTALL_SH
18 GROFF_INSTALL_INFO
19 AC_PROG_INSTALL
20 AC_PROG_LN_S
21 dnl use a dummy substitution if no csh hack is necessary to avoid errors
22 dnl with non-GNU sed programs
23 GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/')
24 AC_SUBST(SH_SCRIPT_SED_CMD)
25 dnl checks for headers
26 AC_CHECK_HEADERS(stdlib.h unistd.h dirent.h limits.h sys/dir.h \
27                  string.h strings.h math.h stdint.h sys/time.h)
28 GROFF_ISC_SYSV3
29 GROFF_POSIX
30 GROFF_SRAND
31 GROFF_NEED_DECLARATION(gettimeofday)
32 GROFF_NEED_DECLARATION(hypot)
33 GROFF_NEED_DECLARATION(popen)
34 GROFF_NEED_DECLARATION(pclose)
35 GROFF_NEED_DECLARATION(putenv)
36 GROFF_NEED_DECLARATION(strcasecmp)
37 GROFF_NEED_DECLARATION(strncasecmp)
38 GROFF_SYS_NERR
39 GROFF_SYS_ERRLIST
40 GROFF_OSFCN_H
41 GROFF_LIMITS_H
42 GROFF_INTTYPES_H
43 dnl checks for typedefs
44 GROFF_UNSIGNED_LONG_LONG
45 GROFF_UINTMAX_T
46 GROFF_TIME_T
47 AC_TYPE_SIGNAL
48 GROFF_STRUCT_EXCEPTION
49 dnl checks for libraries
50 GROFF_LIBM
51 dnl checks for functions
52 AC_FUNC_MMAP
53 saved_libs="$LIBS"
54 LIBS="$LIBS -lc $LIBM"
55 AC_REPLACE_FUNCS(fmod getcwd putenv snprintf strerror strtol)
56 LIBS="$saved_libs"
57 AC_CHECK_FUNCS(gettimeofday isatty rename strcasecmp strncasecmp strsep)
58 GROFF_MKSTEMP
59 AC_DECL_SYS_SIGLIST
60 dnl checks for compiler characteristics
61 GROFF_ARRAY_DELETE
62 GROFF_TRADITIONAL_CPP
63 dnl checks for operating system services
64 GROFF_WCOREFLAG
65 dnl other random stuff
66 GROFF_BROKEN_SPOOLER_FLAGS
67 GROFF_PAGE
68 GROFF_G
69 GROFF_TMAC
70 GROFF_HTML_PROGRAMS
71 AC_CONFIG_FILES(stamp-h, [echo timestamp > stamp-h])
72 AC_CONFIG_FILES([Makefile doc/Makefile src/xditview/Imakefile])
73 AC_OUTPUT
74 dnl
75 AC_MSG_NOTICE([
76
77   Configuration completed.
78
79   You can now say `make' to compile the groff package and `make install'
80   to install it afterwards.
81
82   If you want to compile xditview, change the directory to `src/xditview'
83   and follow the instructions given in the file `INSTALL'.
84 ])