1 dnl Process this file with autoconf to produce a configure script.
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
14 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
20 dnl use a dummy substitution if no csh hack is necessary to avoid errors
21 dnl with non-GNU sed programs
22 GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/')
23 AC_SUBST(SH_SCRIPT_SED_CMD)
24 dnl checks for headers
25 AC_CHECK_HEADERS(stdlib.h unistd.h dirent.h limits.h sys/dir.h \
26 string.h strings.h math.h stdint.h sys/time.h)
30 GROFF_NEED_DECLARATION(gettimeofday)
31 GROFF_NEED_DECLARATION(hypot)
32 GROFF_NEED_DECLARATION(popen)
33 GROFF_NEED_DECLARATION(pclose)
34 GROFF_NEED_DECLARATION(putenv)
35 GROFF_NEED_DECLARATION(strcasecmp)
36 GROFF_NEED_DECLARATION(strncasecmp)
42 dnl checks for typedefs
43 GROFF_UNSIGNED_LONG_LONG
47 GROFF_STRUCT_EXCEPTION
48 dnl checks for libraries
50 dnl checks for functions
53 LIBS="$LIBS -lc $LIBM"
54 AC_REPLACE_FUNCS(fmod getcwd putenv snprintf strerror strtol)
56 AC_CHECK_FUNCS(gettimeofday rename strcasecmp strncasecmp strsep)
59 dnl checks for compiler characteristics
62 dnl checks for operating system services
64 dnl other random stuff
65 GROFF_BROKEN_SPOOLER_FLAGS
69 AC_CONFIG_FILES(stamp-h, [echo timestamp > stamp-h])
70 AC_CONFIG_FILES([Makefile src/xditview/Imakefile])
75 Configuration completed.
77 You can now say `make' to compile the groff package and `make install'
78 to install it afterwards.
80 If you want to compile xditview, change the directory to `src/xditview'
81 and follow the instructions given in the file `INSTALL'.