1 # Process this file with autoconf to produce a configure script.
4 AC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin])
5 AC_CONFIG_SRCDIR([src/roff/groff/groff.cpp])
14 AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl])
22 # use a dummy substitution if no csh hack is necessary to avoid errors
23 # with non-GNU sed programs
24 GROFF_CSH_HACK([SH_SCRIPT_SED_CMD='1s/.*/:/'], [SH_SCRIPT_SED_CMD='1s/a/a/'])
25 AC_SUBST([SH_SCRIPT_SED_CMD])
28 AC_CHECK_HEADERS([stdlib.h unistd.h dirent.h limits.h sys/dir.h \
29 string.h strings.h math.h sys/time.h])
33 # checks for header stuff
35 GROFF_NEED_DECLARATION([gettimeofday])
36 GROFF_NEED_DECLARATION([hypot])
37 GROFF_NEED_DECLARATION([popen])
38 GROFF_NEED_DECLARATION([pclose])
39 GROFF_NEED_DECLARATION([putenv])
40 GROFF_NEED_DECLARATION([rand])
41 GROFF_NEED_DECLARATION([snprintf])
42 GROFF_NEED_DECLARATION([srand])
43 GROFF_NEED_DECLARATION([strcasecmp])
44 GROFF_NEED_DECLARATION([strncasecmp])
45 GROFF_NEED_DECLARATION([vfprintf])
46 GROFF_NEED_DECLARATION([vsnprintf])
55 GROFF_UNSIGNED_LONG_LONG
59 GROFF_STRUCT_EXCEPTION
61 # checks for libraries
65 # checks for functions
68 LIBS="$LIBS $LIBC $LIBM"
69 AC_REPLACE_FUNCS([fmod getcwd putenv snprintf strcasecmp \
70 strerror strncasecmp strtol])
71 # vsnprintf is in the same source file as snprintf
72 AC_CHECK_FUNCS([vsnprintf], [], [AC_LIBOBJ([snprintf])])
74 AC_CHECK_FUNCS([gettimeofday isatty kill rename setlocale strsep])
76 AC_CHECK_DECLS([sys_siglist])
78 # checks for compiler characteristics
82 # checks for operating system services
86 GROFF_BROKEN_SPOOLER_FLAGS
91 GROFF_PNMTOPS_NOSETPAGE
93 AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
94 AC_CONFIG_FILES([Makefile doc/Makefile src/xditview/Imakefile])
99 Configuration completed.
101 You can now say `make' to compile the groff package and `make install'
102 to install it afterwards.
104 If you want to compile xditview, change the directory to `src/xditview'
105 and follow the instructions given in the file `INSTALL'.