189a07cf8Schristos# Autoconf configuration file for groff. 289a07cf8Schristos# Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005 389a07cf8Schristos# Free Software Foundation, Inc. 489a07cf8Schristos# 589a07cf8Schristos# This file is part of groff. 689a07cf8Schristos# 789a07cf8Schristos# groff is free software; you can redistribute it and/or modify it under 889a07cf8Schristos# the terms of the GNU General Public License as published by the Free 989a07cf8Schristos# Software Foundation; either version 2, or (at your option) any later 1089a07cf8Schristos# version. 1189a07cf8Schristos# 1289a07cf8Schristos# groff is distributed in the hope that it will be useful, but WITHOUT ANY 1389a07cf8Schristos# WARRANTY; without even the implied warranty of MERCHANTABILITY or 1489a07cf8Schristos# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1589a07cf8Schristos# for more details. 1689a07cf8Schristos# 1789a07cf8Schristos# You should have received a copy of the GNU General Public License along 1889a07cf8Schristos# with groff; see the file COPYING. If not, write to the Free Software 1989a07cf8Schristos# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 2089a07cf8Schristos# 2189a07cf8Schristos# Process this file with autoconf to produce a configure script. 2289a07cf8Schristos 2389a07cf8SchristosAC_INIT 2489a07cf8SchristosAC_PREREQ(2.59) 2589a07cf8Schristos 2689a07cf8SchristosAC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin]) 2789a07cf8SchristosAC_CONFIG_SRCDIR([src/roff/groff/groff.cpp]) 2889a07cf8Schristos 2989a07cf8Schristos# checks for programs 3089a07cf8SchristosAC_PROG_CC 3189a07cf8SchristosAC_PROG_CXX 3289a07cf8SchristosGROFF_CXX_CHECK 3389a07cf8SchristosGROFF_EBCDIC 3489a07cf8SchristosGROFF_OS390 3589a07cf8SchristosGROFF_X11 3689a07cf8SchristosGROFF_APPRESDIR_OPTION 3789a07cf8SchristosGROFF_APPRESDIR_DEFAULT 3889a07cf8SchristosGROFF_PRINT 3989a07cf8SchristosAC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl]) 4089a07cf8SchristosGROFF_PROG_YACC 4189a07cf8SchristosAC_PROG_RANLIB 4289a07cf8SchristosGROFF_INSTALL_SH 4389a07cf8SchristosGROFF_INSTALL_INFO 4489a07cf8SchristosAC_PROG_INSTALL 4589a07cf8SchristosAC_PROG_LN_S 4689a07cf8Schristos 47*4acc5b6bSchristosSH_SCRIPT_SED_CMD="1s,/bin/sh,${CONFIG_SHELL}," 4889a07cf8SchristosAC_SUBST([SH_SCRIPT_SED_CMD]) 4989a07cf8Schristos 5089a07cf8Schristos# checks for headers 5189a07cf8SchristosAC_CHECK_HEADERS([stdlib.h unistd.h dirent.h limits.h sys/dir.h \ 5289a07cf8Schristos string.h strings.h math.h sys/time.h direct.h process.h]) 5389a07cf8SchristosGROFF_ISC_SYSV3 5489a07cf8SchristosGROFF_POSIX 5589a07cf8Schristos 5689a07cf8Schristos# checks for header stuff 5789a07cf8SchristosGROFF_SRAND 5889a07cf8SchristosGROFF_NEED_DECLARATION([gettimeofday]) 5989a07cf8SchristosGROFF_NEED_DECLARATION([hypot]) 6089a07cf8SchristosGROFF_NEED_DECLARATION([popen]) 6189a07cf8SchristosGROFF_NEED_DECLARATION([pclose]) 6289a07cf8SchristosGROFF_NEED_DECLARATION([putenv]) 6389a07cf8SchristosGROFF_NEED_DECLARATION([rand]) 6489a07cf8SchristosGROFF_NEED_DECLARATION([snprintf]) 6589a07cf8SchristosGROFF_NEED_DECLARATION([srand]) 6689a07cf8SchristosGROFF_NEED_DECLARATION([strcasecmp]) 6789a07cf8SchristosGROFF_NEED_DECLARATION([strncasecmp]) 6889a07cf8SchristosGROFF_NEED_DECLARATION([vfprintf]) 6989a07cf8SchristosGROFF_NEED_DECLARATION([vsnprintf]) 7089a07cf8SchristosGROFF_SYS_NERR 7189a07cf8SchristosGROFF_SYS_ERRLIST 7289a07cf8SchristosGROFF_OSFCN_H 7389a07cf8SchristosGROFF_LIMITS_H 7489a07cf8SchristosGROFF_INTTYPES_H 7589a07cf8Schristos 7689a07cf8Schristos# checks for typedefs 7789a07cf8SchristosGROFF_UNSIGNED_LONG_LONG 7889a07cf8SchristosGROFF_UINTMAX_T 7989a07cf8SchristosGROFF_TIME_T 8089a07cf8SchristosGROFF_TYPE_SIGNAL 8189a07cf8SchristosGROFF_STRUCT_EXCEPTION 8289a07cf8Schristos 8389a07cf8Schristos# checks for libraries 8489a07cf8SchristosGROFF_LIBC 8589a07cf8SchristosGROFF_LIBM 8689a07cf8Schristos 8789a07cf8Schristos# checks for functions 8889a07cf8SchristosAC_FUNC_MMAP 8989a07cf8Schristossaved_libs="$LIBS" 9089a07cf8SchristosLIBS="$LIBS $LIBC $LIBM" 9189a07cf8SchristosAC_REPLACE_FUNCS([fmod getcwd putenv snprintf strcasecmp \ 9289a07cf8Schristos strerror strncasecmp strtol]) 9389a07cf8Schristos# vsnprintf is in the same source file as snprintf 9489a07cf8SchristosAC_CHECK_FUNCS([vsnprintf], [], [AC_LIBOBJ([snprintf])]) 9589a07cf8SchristosLIBS="$saved_libs" 9689a07cf8SchristosAC_CHECK_FUNCS([gettimeofday isatty kill rename setlocale strsep]) 9789a07cf8SchristosGROFF_MKSTEMP 9889a07cf8SchristosAC_CHECK_DECLS([sys_siglist]) 9989a07cf8Schristos 10089a07cf8Schristos# checks for compiler characteristics 10189a07cf8SchristosGROFF_ARRAY_DELETE 10289a07cf8SchristosGROFF_TRADITIONAL_CPP 10389a07cf8Schristos 10489a07cf8Schristos# checks for operating system services 10589a07cf8SchristosGROFF_WCOREFLAG 10689a07cf8Schristos 10789a07cf8Schristos# other random stuff 10889a07cf8SchristosGROFF_BROKEN_SPOOLER_FLAGS 10989a07cf8SchristosGROFF_PAGE 11089a07cf8SchristosGROFF_G 11189a07cf8SchristosGROFF_TMAC 11289a07cf8SchristosGROFF_TARGET_PATH_SEPARATOR 11389a07cf8SchristosGROFF_HTML_PROGRAMS 11489a07cf8SchristosGROFF_PDFDOC_PROGRAMS 11589a07cf8SchristosGROFF_PNMTOPS_NOSETPAGE 11689a07cf8Schristos 11789a07cf8SchristosAC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) 11889a07cf8SchristosAC_CONFIG_FILES([Makefile doc/Makefile src/utils/xtotroff/Makefile]) 11989a07cf8SchristosAC_CONFIG_FILES([contrib/gdiffmk/tests/runtests], 12089a07cf8Schristos [chmod +x contrib/gdiffmk/tests/runtests]) 12189a07cf8SchristosAC_CONFIG_FILES([test-groff], [chmod +x test-groff]) 12289a07cf8SchristosAC_OUTPUT 12389a07cf8Schristos 12489a07cf8SchristosGROFF_APPRESDIR_CHECK 125