]> git.cameronkatri.com Git - mandoc.git/blobdiff - configure
Do not read past the end of the buffer if an "f" layout font modifier
[mandoc.git] / configure
index baa05ad4d1df5a21b0138edcf554393ca354fe11..e7cb2e0b0601139c5be8498ceff518460beff602 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
+# Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
 #
 # Permission to use, copy, modify, and distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
@@ -31,7 +31,7 @@ echo "config.log: writing..."
 # Initialize all variables here,
 # such that nothing can leak in from the environment.
 
-VERSION="1.13.1"
+VERSION="1.13.2"
 echo "VERSION=\"${VERSION}\"" 1>&2
 echo "VERSION=\"${VERSION}\"" 1>&3
 
@@ -70,11 +70,22 @@ INCLUDEDIR=
 LIBDIR=
 MANDIR=
 EXAMPLEDIR=
+HOMEBREWDIR=
 
 WWWPREFIX="/var/www"
 HTDOCDIR=
 CGIBINDIR=
 
+BINM_APROPOS="apropos"
+BINM_MAN="man"
+BINM_WHATIS="whatis"
+BINM_MAKEWHATIS="makewhatis"
+MANM_MAN="man"
+MANM_MDOC="mdoc"
+MANM_ROFF="roff"
+MANM_EQN="eqn"
+MANM_TBL="tbl"
+
 INSTALL="install"
 INSTALL_PROGRAM=
 INSTALL_LIB=
@@ -253,7 +264,7 @@ cat << __HEREDOC__
 #define MANDOC_CONFIG_H
 
 #if defined(__linux__) || defined(__MINT__)
-#define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */
+#define _GNU_SOURCE    /* See test-*.c what needs this. */
 #endif
 
 __HEREDOC__
@@ -266,6 +277,7 @@ __HEREDOC__
 echo
 echo "#define VERSION \"${VERSION}\""
 [ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\""
+[ -n "${HOMEBREWDIR}" ] && echo "#define HOMEBREWDIR \"${HOMEBREWDIR}\""
 
 cat << __HEREDOC__
 #define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN}
@@ -285,6 +297,11 @@ cat << __HEREDOC__
 #define HAVE_OHASH ${HAVE_OHASH}
 #define HAVE_MANPATH ${HAVE_MANPATH}
 
+#define BINM_APROPOS "${BINM_APROPOS}"
+#define BINM_MAN "${BINM_MAN}"
+#define BINM_WHATIS "${BINM_WHATIS}"
+#define BINM_MAKEWHATIS "${BINM_MAKEWHATIS}"
+
 #if !defined(__BEGIN_DECLS)
 #  ifdef __cplusplus
 #  define      __BEGIN_DECLS           extern "C" {
@@ -358,12 +375,15 @@ if [ ${BUILD_DB} -eq 0 -a ${BUILD_CGI} -gt 0 ]; then
 fi
 
 BUILD_TARGETS="base-build"
-[ ${BUILD_DB}  -gt 0 ] && BUILD_TARGETS="${BUILD_TARGETS} db-build"
 [ ${BUILD_CGI} -gt 0 ] && BUILD_TARGETS="${BUILD_TARGETS} cgi-build"
+INSTALL_TARGETS="base-install"
+[ ${BUILD_DB}  -gt 0 ] && INSTALL_TARGETS="${INSTALL_TARGETS} db-install"
+[ ${BUILD_CGI} -gt 0 ] && INSTALL_TARGETS="${INSTALL_TARGETS} cgi-install"
 
 cat << __HEREDOC__
 VERSION                = ${VERSION}
 BUILD_TARGETS  = ${BUILD_TARGETS}
+INSTALL_TARGETS        = ${INSTALL_TARGETS}
 CFLAGS         = ${CFLAGS}
 DBLIB          = ${DBLIB}
 STATIC         = ${STATIC}
@@ -377,6 +397,15 @@ EXAMPLEDIR = ${EXAMPLEDIR}
 WWWPREFIX      = ${WWWPREFIX}
 HTDOCDIR       = ${HTDOCDIR}
 CGIBINDIR      = ${CGIBINDIR}
+BINM_APROPOS   = ${BINM_APROPOS}
+BINM_MAN       = ${BINM_MAN}
+BINM_WHATIS    = ${BINM_WHATIS}
+BINM_MAKEWHATIS        = ${BINM_MAKEWHATIS}
+MANM_MAN       = ${MANM_MAN}
+MANM_MDOC      = ${MANM_MDOC}
+MANM_ROFF      = ${MANM_ROFF}
+MANM_EQN       = ${MANM_EQN}
+MANM_TBL       = ${MANM_TBL}
 INSTALL                = ${INSTALL}
 INSTALL_PROGRAM        = ${INSTALL_PROGRAM}
 INSTALL_LIB    = ${INSTALL_LIB}
@@ -385,7 +414,7 @@ INSTALL_DATA        = ${INSTALL_DATA}
 __HEREDOC__
 
 [ ${BUILD_DB} -gt 0 ] && \
-       echo "MAN_OBJS  = \$(MANDOC_OBJS) \$(APROPOS_OBJS)"
+       echo "MAIN_OBJS = \$(BASE_OBJS) \$(DB_OBJS)"
 
 echo "Makefile.local: written" 1>&2
 echo "Makefile.local: written" 1>&3