3 # $Id: configure,v 1.76 2020/06/22 20:00:38 schwarze Exp $
5 # Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
7 # Permission to use, copy, modify, and distribute this software for any
8 # purpose with or without fee is hereby granted, provided that the above
9 # copyright notice and this permission notice appear in all copies.
11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 [ -w config.log
] && mv config.log config.log.old
22 [ -w config.h
] && mv config.h config.h.old
24 # Output file descriptor usage:
25 # 1 (stdout): config.h, Makefile.local
26 # 2 (stderr): original stderr, usually to the console
30 echo "file config.log: writing..."
32 # --- default settings -------------------------------------------------
33 # Initialize all variables here,
34 # such that nothing can leak in from the environment.
36 SOURCEDIR
=`dirname "${0}"`
38 MANPATH_BASE
="/usr/share/man:/usr/X11R6/man"
39 MANPATH_DEFAULT
="/usr/share/man:/usr/X11R6/man:/usr/local/man"
65 HAVE_FTS_COMPARE_CONST
=
116 BINM_APROPOS
="apropos"
118 BINM_MAKEWHATIS
="makewhatis"
123 MANM_MANCONF
="man.conf"
136 # --- manual settings from configure.local -----------------------------
138 if [ -r .
/configure.
local ]; then
139 echo "file configure.local: reading..." 1>&2
140 echo "file configure.local: reading..." 1>&3
141 cat .
/configure.
local 1>&3
144 echo "file configure.local: no (fully automatic configuration)" 1>&2
145 echo "file configure.local: no (fully automatic configuration)" 1>&3
149 # --- tests functions --------------------------------------------------
151 # Check whether this HAVE_ setting is manually overridden.
152 # If yes, use the override, if no, do not decide anything yet.
153 # Arguments: test file name, test var name, manual value
155 [ -z "${3}" ] && return 1
156 echo "tested ${1}: HAVE_${2}=${3} (manual)" 1>&2
157 echo "tested ${1}: HAVE_${2}=${3} (manual)" 1>&3
162 # Run a single autoconfiguration test.
163 # In case of success, enable the feature.
164 # In case of failure, do not decide anything yet.
165 # Arguments: test file name, test var name, additional CFLAGS
168 cat 1>&3 << __HEREDOC__
170 ${COMP} -o test-${1} test-${1}.c ${3}
173 if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} 1>&3 2>&3
175 echo "partial result of ${n}: ${CC} succeeded" 1>&3
177 echo "tested ${n}: no (compilation failed)" 1>&2
178 echo "result of ${n}: ${CC} failed with exit status $?" 1>&3
179 echo "result of compiling ${n}: no" 1>&3
184 if .
/test-${1} 1>&3 2>&3; then
185 echo "tested ${n}: yes" 1>&2
186 echo "result of running ${n}: yes" 1>&3
189 [ "${3}" = "-D_GNU_SOURCE" ] && NEED_GNU_SOURCE
=1
190 [ "${3}" = "-D_OPENBSD_SOURCE" ] && NEED_OPENBSD_SOURCE
=1
191 [ "${3}" = "-D_XPG4_2" ] && NEED_XPG4_2
=1
192 [ "${3}" = "-lrt" ] && LD_NANOSLEEP
="-lrt"
193 [ "${3}" = "-lsocket" ] && LD_RECVMSG
="-lsocket"
194 [ "${3}" = "-lutil" ] && LD_OHASH
="-lutil"
198 echo "tested ${n}: no (execution failed)" 1>&2
199 echo "result of ${n}: execution failed with exit status $?" 1>&3
200 echo "result of running ${n}: no" 1>&3
207 # Run a complete autoconfiguration test, including the check for
208 # a manual override and disabling the feature on failure.
209 # Arguments: test file name, test var name, additional CFLAGS
210 # The final argument can optionally be repeated a second time.
212 eval _manual
=\
${HAVE_${2}}
213 ismanual
"${1}" "${2}" "${_manual}" && return 0
214 singletest
"${1}" "${2}" "${3}" && return 0
215 [ -n "${4}" ] && singletest
"${1}" "${2}" "${4}" && return 0
220 # Select a UTF-8 locale.
222 [ -n "${HAVE_WCHAR}" ] && [ "${HAVE_WCHAR}" -eq 0 ] && return 0
223 ismanual UTF8_LOCALE UTF8_LOCALE
"${UTF8_LOCALE}" && return 0
224 echo "testing UTF8_LOCALE ..." 1>&3
225 UTF8_LOCALE
=`locale -a | grep -i '^en_US\.UTF-*8$' | head -n 1`
226 if [ -z "${UTF8_LOCALE}" ]; then
227 UTF8_LOCALE
=`locale -a | grep -i '\.UTF-*8' | head -n 1`
228 [ -n "${UTF8_LOCALE}" ] || return 1
230 echo "selected UTF8_LOCALE=${UTF8_LOCALE}" 1>&2
231 echo "selected UTF8_LOCALE=${UTF8_LOCALE}" 1>&3
236 # --- operating system -------------------------------------------------
238 if [ -n "${OSENUM}" ]; then
239 echo "OSENUM specified manually: ${OSENUM}" 1>&2
240 echo "OSENUM specified manually: ${OSENUM}" 1>&3
243 if [ "${OSDETECT}" = "NetBSD" ]; then
244 OSENUM
=MANDOC_OS_NETBSD
245 elif [ "${OSDETECT}" = "OpenBSD" ]; then
246 OSENUM
=MANDOC_OS_OPENBSD
248 OSENUM
=MANDOC_OS_OTHER
250 echo "tested operating system: ${OSDETECT} -> OSENUM=${OSENUM}" 1>&2
251 echo "tested operating system: ${OSDETECT} -> OSENUM=${OSENUM}" 1>&3
256 # --- compiler options -------------------------------------------------
258 DEFCFLAGS
="-g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter"
260 if [ -n "${CFLAGS}" ]; then
261 COMP
="${CC} ${CFLAGS} -Wno-unused -Werror"
263 COMP
="${CC} ${DEFCFLAGS} -Wno-unused -Werror"
265 echo -n "tested ${CC} -W: " 1>&2
266 echo -n "testing ${CC} -W: " 1>&3
267 runtest noop WFLAG
|| true
269 if [ -n "${CFLAGS}" ]; then
270 echo "CFLAGS specified manually:" 1>&3
271 elif [ ${HAVE_WFLAG} -eq 0 ]; then
274 CFLAGS
="${DEFCFLAGS}"
276 echo "selected CFLAGS=\"${CFLAGS}\"" 1>&2
277 echo "selected CFLAGS=\"${CFLAGS}\"" 1>&3
280 COMP
="${CC} ${CFLAGS}"
281 [ ${HAVE_WFLAG} -eq 0 ] || COMP
="${COMP} -Wno-unused -Werror"
283 if [ -n "${STATIC}" ]; then
284 echo "selected STATIC=\"${STATIC}\" (manual)" 1>&2
285 echo "selected STATIC=\"${STATIC}\" (manual)" 1>&3
288 runtest noop STATIC
-static || true
289 [ ${HAVE_STATIC} -eq 0 ] || STATIC
="-static"
290 echo "selected STATIC=\"${STATIC}\"" 1>&2
291 echo "selected STATIC=\"${STATIC}\"" 1>&3
295 # --- tests for config.h ----------------------------------------------
297 # --- library functions ---
298 runtest attribute ATTRIBUTE
|| true
299 runtest cmsg CMSG
"" "-D_XPG4_2" || true
300 runtest dirent
-namlen DIRENT_NAMLEN
|| true
301 runtest be32toh ENDIAN
|| true
302 runtest be32toh SYS_ENDIAN
-DSYS_ENDIAN || true
303 runtest EFTYPE EFTYPE
|| true
304 runtest err ERR
|| true
305 runtest getline GETLINE
|| true
306 runtest getsubopt GETSUBOPT
"" -D_GNU_SOURCE || true
307 runtest isblank ISBLANK
|| true
308 runtest mkdtemp MKDTEMP
|| true
309 runtest nanosleep NANOSLEEP
"${LD_NANOSLEEP}" "-lrt" || true
310 runtest ntohl NTOHL
|| true
311 runtest O_DIRECTORY O_DIRECTORY
|| true
312 runtest PATH_MAX PATH_MAX
|| true
313 runtest pledge PLEDGE
|| true
314 runtest sandbox_init SANDBOX_INIT
|| true
315 runtest progname PROGNAME
|| true
316 runtest reallocarray REALLOCARRAY
"" -D_OPENBSD_SOURCE || true
317 runtest recallocarray RECALLOCARRAY
"" -D_OPENBSD_SOURCE || true
318 runtest recvmsg RECVMSG
"${LD_RECVMSG}" "-lsocket" || true
319 runtest rewb
-bsd REWB_BSD
|| true
320 runtest rewb
-sysv REWB_SYSV
|| true
321 runtest strcasestr STRCASESTR
"" -D_GNU_SOURCE || true
322 runtest stringlist STRINGLIST
|| true
323 runtest strlcat STRLCAT
|| true
324 runtest strlcpy STRLCPY
|| true
325 runtest strndup STRNDUP
|| true
326 runtest strptime STRPTIME
"" -D_GNU_SOURCE || true
327 runtest strsep STRSEP
|| true
328 runtest strtonum STRTONUM
"" -D_OPENBSD_SOURCE || true
329 runtest vasprintf VASPRINTF
"" -D_GNU_SOURCE || true
332 if [ "${1}" = "-depend" ]; then
334 HAVE_FTS_COMPARE_CONST
=0
335 echo "tested fts: HAVE_FTS=0 (for make depend)" 1>&2
336 echo "tested fts: HAVE_FTS=0 (for make depend)" 1>&3
338 elif ismanual fts FTS
${HAVE_FTS}; then
339 HAVE_FTS_COMPARE_CONST
=0
340 elif runtest fts FTS_COMPARE_CONST
-DFTS_COMPARE_CONST; then
343 runtest fts FTS
|| true
346 # --- tagging support in the pager ---
347 if ismanual
"less -T" LESS_T
${HAVE_LESS_T}; then
349 elif less -ET /dev
/null
test-noop.c
1>/dev
/null
2>&3; then
351 echo "tested less -T: yes" 1>&2
352 echo "tested less -T: yes" 1>&3
356 echo "tested less -T: no" 1>&2
357 echo "tested less -T: no" 1>&3
361 # --- wide character and locale support ---
363 runtest wchar WCHAR
"-DUTF8_LOCALE=\"${UTF8_LOCALE}\"" \
364 "-D_GNU_SOURCE -DUTF8_LOCALE=\"${UTF8_LOCALE}\"" || true
367 echo "tested wchar: no (no UTF8_LOCALE)" 1>&2
368 echo "tested wchar: no (no UTF8_LOCALE)" 1>&3
373 if [ "${1}" = "-depend" ]; then
375 echo "tested ohash: HAVE_OHASH=0 (for make depend)" 1>&2
376 echo "tested ohash: HAVE_OHASH=0 (for make depend)" 1>&3
379 runtest ohash OHASH
"${LD_OHASH}" "-lutil" || true
381 if [ "${HAVE_OHASH}" -eq 0 ]; then
385 # --- required functions ---
386 if [ ${HAVE_ENDIAN} -eq 0 -a \
387 ${HAVE_SYS_ENDIAN} -eq 0 -a \
388 ${HAVE_NTOHL} -eq 0 ]; then
389 echo "FATAL: no endian conversion functions found" 1>&2
390 echo "FATAL: no endian conversion functions found" 1>&3
393 if [ "${HAVE_NANOSLEEP}" -eq 0 ]; then
394 echo "FATAL: nanosleep: no" 1>&2
395 echo "FATAL: nanosleep: no" 1>&3
398 if [ ${BUILD_CATMAN} -gt 0 -a "${HAVE_RECVMSG}" -eq 0 ]; then
399 echo "FATAL: recvmsg: no" 1>&2
400 echo "FATAL: recvmsg: no" 1>&3
401 echo "Without recvmsg(2), you cannot BUILD_CATMAN." 1>&2
404 if [ ${BUILD_CATMAN} -gt 0 -a "${HAVE_CMSG}" -eq 0 ]; then
405 echo "FATAL: cmsg: no" 1>&2
406 echo "FATAL: cmsg: no" 1>&3
407 echo "Without CMSG_FIRSTHDR(3), you cannot BUILD_CATMAN." 1>&2
410 [ "${FATAL}" -eq 0 ] || exit 1
413 LDADD
="${LDADD} ${LD_NANOSLEEP} ${LD_RECVMSG} ${LD_OHASH} -lz"
414 echo "selected LDADD=\"${LDADD}\"" 1>&2
415 echo "selected LDADD=\"${LDADD}\"" 1>&3
418 # --- write config.h ---
424 #error "Do not use C++. See the INSTALL file."
429 [ ${NEED_GNU_SOURCE} -eq 0 ] || echo "#define _GNU_SOURCE"
430 [ ${NEED_OPENBSD_SOURCE} -eq 0 ] || echo "#define _OPENBSD_SOURCE"
432 [ ${HAVE_GETLINE} -eq 0 -o \
433 ${HAVE_REALLOCARRAY} -eq 0 -o ${HAVE_RECALLOCARRAY} -eq 0 -o \
434 ${HAVE_STRLCAT} -eq 0 -o ${HAVE_STRLCPY} -eq 0 -o \
435 ${HAVE_STRNDUP} -eq 0 ] \
436 && echo "#include <sys/types.h>"
437 [ ${HAVE_VASPRINTF} -eq 0 ] && echo "#include <stdarg.h>"
438 [ ${HAVE_GETLINE} -eq 0 ] && echo "#include <stdio.h>"
441 echo "#define MAN_CONF_FILE \"/etc/${MANM_MANCONF}\""
442 echo "#define MANPATH_BASE \"${MANPATH_BASE}\""
443 echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\""
444 echo "#define OSENUM ${OSENUM}"
445 [ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\""
446 [ -n "${UTF8_LOCALE}" ] && echo "#define UTF8_LOCALE \"${UTF8_LOCALE}\""
447 [ -n "${HOMEBREWDIR}" ] && echo "#define HOMEBREWDIR \"${HOMEBREWDIR}\""
448 [ ${HAVE_ATTRIBUTE} -eq 0 ] && echo "#define __attribute__(x)"
449 [ ${HAVE_EFTYPE} -eq 0 ] && echo "#define EFTYPE EINVAL"
450 [ ${HAVE_O_DIRECTORY} -eq 0 ] && echo "#define O_DIRECTORY 0"
451 [ ${HAVE_PATH_MAX} -eq 0 ] && echo "#define PATH_MAX 4096"
452 if [ ${HAVE_ENDIAN} -eq 0 -a ${HAVE_SYS_ENDIAN} -eq 0 ]; then
453 echo "#define be32toh ntohl"
454 echo "#define htobe32 htonl"
458 #define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN}
459 #define HAVE_ENDIAN ${HAVE_ENDIAN}
460 #define HAVE_ERR ${HAVE_ERR}
461 #define HAVE_FTS ${HAVE_FTS}
462 #define HAVE_FTS_COMPARE_CONST ${HAVE_FTS_COMPARE_CONST}
463 #define HAVE_GETLINE ${HAVE_GETLINE}
464 #define HAVE_GETSUBOPT ${HAVE_GETSUBOPT}
465 #define HAVE_ISBLANK ${HAVE_ISBLANK}
466 #define HAVE_LESS_T ${HAVE_LESS_T}
467 #define HAVE_MKDTEMP ${HAVE_MKDTEMP}
468 #define HAVE_NTOHL ${HAVE_NTOHL}
469 #define HAVE_PLEDGE ${HAVE_PLEDGE}
470 #define HAVE_PROGNAME ${HAVE_PROGNAME}
471 #define HAVE_REALLOCARRAY ${HAVE_REALLOCARRAY}
472 #define HAVE_RECALLOCARRAY ${HAVE_RECALLOCARRAY}
473 #define HAVE_REWB_BSD ${HAVE_REWB_BSD}
474 #define HAVE_REWB_SYSV ${HAVE_REWB_SYSV}
475 #define HAVE_SANDBOX_INIT ${HAVE_SANDBOX_INIT}
476 #define HAVE_STRCASESTR ${HAVE_STRCASESTR}
477 #define HAVE_STRINGLIST ${HAVE_STRINGLIST}
478 #define HAVE_STRLCAT ${HAVE_STRLCAT}
479 #define HAVE_STRLCPY ${HAVE_STRLCPY}
480 #define HAVE_STRNDUP ${HAVE_STRNDUP}
481 #define HAVE_STRPTIME ${HAVE_STRPTIME}
482 #define HAVE_STRSEP ${HAVE_STRSEP}
483 #define HAVE_STRTONUM ${HAVE_STRTONUM}
484 #define HAVE_SYS_ENDIAN ${HAVE_SYS_ENDIAN}
485 #define HAVE_VASPRINTF ${HAVE_VASPRINTF}
486 #define HAVE_WCHAR ${HAVE_WCHAR}
487 #define HAVE_OHASH ${HAVE_OHASH}
488 #define NEED_XPG4_2 ${NEED_XPG4_2}
490 #define BINM_APROPOS "${BINM_APROPOS}"
491 #define BINM_CATMAN "${BINM_CATMAN}"
492 #define BINM_MAKEWHATIS "${BINM_MAKEWHATIS}"
493 #define BINM_MAN "${BINM_MAN}"
494 #define BINM_SOELIM "${BINM_SOELIM}"
495 #define BINM_WHATIS "${BINM_WHATIS}"
499 if [ ${HAVE_ERR} -eq 0 ]; then
500 echo "extern void err(int, const char *, ...);"
501 echo "extern void errx(int, const char *, ...);"
502 echo "extern void warn(const char *, ...);"
503 echo "extern void warnx(const char *, ...);"
504 MANDOC_COBJS
="${MANDOC_COBJS} compat_err.o"
505 SOELIM_COBJS
="${SOELIM_COBJS} compat_err.o"
507 if [ ${HAVE_FTS} -eq 0 ]; then
508 MANDOC_COBJS
="${MANDOC_COBJS} compat_fts.o"
510 if [ ${HAVE_GETLINE} -eq 0 ]; then
511 echo "extern ssize_t getline(char **, size_t *, FILE *);"
512 MANDOC_COBJS
="${MANDOC_COBJS} compat_getline.o"
513 SOELIM_COBJS
="${SOELIM_COBJS} compat_getline.o"
515 if [ ${HAVE_GETSUBOPT} -eq 0 ]; then
516 echo "extern int getsubopt(char **, char * const *, char **);"
517 MANDOC_COBJS
="${MANDOC_COBJS} compat_getsubopt.o"
519 if [ ${HAVE_ISBLANK} -eq 0 ]; then
520 echo "extern int isblank(int);"
521 MANDOC_COBJS
="${MANDOC_COBJS} compat_isblank.o"
523 if [ ${HAVE_MKDTEMP} -eq 0 ]; then
524 echo "extern char *mkdtemp(char *);"
525 MANDOC_COBJS
="${MANDOC_COBJS} compat_mkdtemp.o"
527 if [ ${HAVE_OHASH} -eq 0 ]; then
528 MANDOC_COBJS
="${MANDOC_COBJS} compat_ohash.o"
530 if [ ${HAVE_PROGNAME} -eq 0 ]; then
531 echo "extern const char *getprogname(void);"
532 echo "extern void setprogname(const char *);"
533 MANDOC_COBJS
="${MANDOC_COBJS} compat_progname.o"
534 SOELIM_COBJS
="${SOELIM_COBJS} compat_progname.o"
536 if [ ${HAVE_REALLOCARRAY} -eq 0 ]; then
537 echo "extern void *reallocarray(void *, size_t, size_t);"
538 MANDOC_COBJS
="${MANDOC_COBJS} compat_reallocarray.o"
539 SOELIM_COBJS
="${SOELIM_COBJS} compat_reallocarray.o"
541 if [ ${HAVE_RECALLOCARRAY} -eq 0 ]; then
542 echo "extern void *recallocarray(void *, size_t, size_t, size_t);"
543 MANDOC_COBJS
="${MANDOC_COBJS} compat_recallocarray.o"
545 if [ ${HAVE_STRCASESTR} -eq 0 ]; then
546 echo "extern char *strcasestr(const char *, const char *);"
547 MANDOC_COBJS
="${MANDOC_COBJS} compat_strcasestr.o"
549 if [ ${HAVE_STRINGLIST} -eq 0 ]; then
550 SOELIM_COBJS
="${SOELIM_COBJS} compat_stringlist.o"
552 if [ ${HAVE_STRLCAT} -eq 0 ]; then
553 echo "extern size_t strlcat(char *, const char *, size_t);"
554 MANDOC_COBJS
="${MANDOC_COBJS} compat_strlcat.o"
556 if [ ${HAVE_STRLCPY} -eq 0 ]; then
557 echo "extern size_t strlcpy(char *, const char *, size_t);"
558 MANDOC_COBJS
="${MANDOC_COBJS} compat_strlcpy.o"
560 if [ ${HAVE_STRNDUP} -eq 0 ]; then
561 echo "extern char *strndup(const char *, size_t);"
562 MANDOC_COBJS
="${MANDOC_COBJS} compat_strndup.o"
564 if [ ${HAVE_STRSEP} -eq 0 ]; then
565 echo "extern char *strsep(char **, const char *);"
566 MANDOC_COBJS
="${MANDOC_COBJS} compat_strsep.o"
568 if [ ${HAVE_STRTONUM} -eq 0 ]; then
569 echo "extern long long strtonum(const char *, long long, long long, const char **);"
570 MANDOC_COBJS
="${MANDOC_COBJS} compat_strtonum.o"
572 if [ ${HAVE_VASPRINTF} -eq 0 ]; then
573 echo "extern int vasprintf(char **, const char *, va_list);"
574 MANDOC_COBJS
="${MANDOC_COBJS} compat_vasprintf.o"
576 echo "file config.h: written" 1>&2
577 echo "file config.h: written" 1>&3
579 # --- tests for Makefile.local -----------------------------------------
581 exec > Makefile.
local
583 [ -z "${BINDIR}" ] && BINDIR
="${PREFIX}/bin"
584 [ -z "${SBINDIR}" ] && SBINDIR
="${PREFIX}/sbin"
585 [ -z "${BIN_FROM_SBIN}" ] && BIN_FROM_SBIN
="../bin"
586 [ -z "${INCLUDEDIR}" ] && INCLUDEDIR
="${PREFIX}/include/mandoc"
587 [ -z "${LIBDIR}" ] && LIBDIR
="${PREFIX}/lib/mandoc"
588 [ -z "${MANDIR}" ] && MANDIR
="${PREFIX}/man"
590 [ -z "${HTDOCDIR}" ] && HTDOCDIR
="${WWWPREFIX}/htdocs"
591 [ -z "${CGIBINDIR}" ] && CGIBINDIR
="${WWWPREFIX}/cgi-bin"
593 [ -z "${INSTALL_PROGRAM}" ] && INSTALL_PROGRAM
="${INSTALL} -m 0555"
594 [ -z "${INSTALL_LIB}" ] && INSTALL_LIB
="${INSTALL} -m 0444"
595 [ -z "${INSTALL_MAN}" ] && INSTALL_MAN
="${INSTALL} -m 0444"
596 [ -z "${INSTALL_DATA}" ] && INSTALL_DATA
="${INSTALL} -m 0444"
599 [ ${BUILD_CGI} -gt 0 ] && BUILD_TARGETS
="man.cgi"
600 [ ${BUILD_CATMAN} -gt 0 ] && \
601 BUILD_TARGETS
="${BUILD_TARGETS} mandocd catman"
603 [ ${INSTALL_LIBMANDOC} -gt 0 ] && INSTALL_TARGETS
="lib-install"
604 [ ${BUILD_CGI} -gt 0 ] && INSTALL_TARGETS
="${INSTALL_TARGETS} cgi-install"
605 [ ${BUILD_CATMAN} -gt 0 ] && \
606 INSTALL_TARGETS
="${INSTALL_TARGETS} catman-install"
609 BUILD_TARGETS = ${BUILD_TARGETS}
610 INSTALL_TARGETS = ${INSTALL_TARGETS}
615 MANDOC_COBJS = ${MANDOC_COBJS}
616 SOELIM_COBJS = ${SOELIM_COBJS}
621 BIN_FROM_SBIN = ${BIN_FROM_SBIN}
622 INCLUDEDIR = ${INCLUDEDIR}
625 WWWPREFIX = ${WWWPREFIX}
626 HTDOCDIR = ${HTDOCDIR}
627 CGIBINDIR = ${CGIBINDIR}
628 BINM_APROPOS = ${BINM_APROPOS}
629 BINM_CATMAN = ${BINM_CATMAN}
630 BINM_MAKEWHATIS = ${BINM_MAKEWHATIS}
631 BINM_MAN = ${BINM_MAN}
632 BINM_SOELIM = ${BINM_SOELIM}
633 BINM_WHATIS = ${BINM_WHATIS}
634 MANM_MAN = ${MANM_MAN}
635 MANM_MANCONF = ${MANM_MANCONF}
636 MANM_MDOC = ${MANM_MDOC}
637 MANM_ROFF = ${MANM_ROFF}
638 MANM_EQN = ${MANM_EQN}
639 MANM_TBL = ${MANM_TBL}
641 INSTALL_PROGRAM = ${INSTALL_PROGRAM}
642 INSTALL_LIB = ${INSTALL_LIB}
643 INSTALL_MAN = ${INSTALL_MAN}
644 INSTALL_DATA = ${INSTALL_DATA}
648 echo "file Makefile.local: written" 1>&2
649 echo "file Makefile.local: written" 1>&3