]> git.cameronkatri.com Git - mandoc.git/blobdiff - configure
Create the link from ./man to ./mandoc in the "all" target rather than
[mandoc.git] / configure
index 94561c3ab2e260b239567cd79dd9222d90c31345..c71205b78057fab3a04f4ab5c2d797fab618de2e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# $Id: configure,v 1.78 2021/08/07 13:02:10 schwarze Exp $
+# $Id: configure,v 1.80 2021/09/19 15:05:39 schwarze Exp $
 #
-# Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
+# Copyright (c) 2014-2021 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
@@ -68,6 +68,7 @@ HAVE_GETSUBOPT=
 HAVE_ISBLANK=
 HAVE_LESS_T=
 HAVE_MKDTEMP=
+HAVE_MKSTEMPS=
 HAVE_NANOSLEEP=
 HAVE_NTOHL=
 HAVE_O_DIRECTORY=
@@ -263,8 +264,8 @@ if [ -n "${CFLAGS}" ]; then
 else
        COMP="${CC} ${DEFCFLAGS} -Wno-unused -Werror"
 fi
-echo -n "tested ${CC} -W: " 1>&2
-echo -n "testing ${CC} -W: " 1>&3
+printf "%s" "tested ${CC} -W: " 1>&2
+printf "%s" "testing ${CC} -W: " 1>&3
 runtest noop WFLAG || true
 
 if [ -n "${CFLAGS}" ]; then
@@ -307,6 +308,7 @@ runtest getline             GETLINE         || true
 runtest getsubopt      GETSUBOPT       "" -D_GNU_SOURCE || true
 runtest isblank                ISBLANK         || true
 runtest mkdtemp                MKDTEMP         || true
+runtest mkstemps       MKSTEMPS        || true
 runtest nanosleep      NANOSLEEP       "${LD_NANOSLEEP}" "-lrt" || true
 runtest ntohl          NTOHL           || true
 runtest O_DIRECTORY    O_DIRECTORY     || true
@@ -483,6 +485,7 @@ cat << __HEREDOC__
 #define HAVE_ISBLANK ${HAVE_ISBLANK}
 #define HAVE_LESS_T ${HAVE_LESS_T}
 #define HAVE_MKDTEMP ${HAVE_MKDTEMP}
+#define HAVE_MKSTEMPS ${HAVE_MKSTEMPS}
 #define HAVE_NTOHL ${HAVE_NTOHL}
 #define HAVE_PLEDGE ${HAVE_PLEDGE}
 #define HAVE_PROGNAME ${HAVE_PROGNAME}
@@ -543,6 +546,10 @@ if [ ${HAVE_MKDTEMP} -eq 0 ]; then
        echo "extern    char     *mkdtemp(char *);"
        MANDOC_COBJS="${MANDOC_COBJS} compat_mkdtemp.o"
 fi
+if [ ${HAVE_MKSTEMPS} -eq 0 ]; then
+       echo "extern    int       mkstemps(char *, int);"
+       MANDOC_COBJS="${MANDOC_COBJS} compat_mkstemps.o"
+fi
 if [ ${HAVE_OHASH} -eq 0 ]; then
        MANDOC_COBJS="${MANDOC_COBJS} compat_ohash.o"
 fi