version 1.16, 2014/12/09 09:14:33 |
version 1.19, 2015/02/16 14:56:22 |
|
|
#!/bin/sh |
#!/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 |
# Permission to use, copy, modify, and distribute this software for any |
# purpose with or without fee is hereby granted, provided that the above |
# purpose with or without fee is hereby granted, provided that the above |
Line 31 echo "config.log: writing..." |
|
Line 31 echo "config.log: writing..." |
|
# Initialize all variables here, |
# Initialize all variables here, |
# such that nothing can leak in from the environment. |
# 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>&2 |
echo "VERSION=\"${VERSION}\"" 1>&3 |
echo "VERSION=\"${VERSION}\"" 1>&3 |
|
|
|
|
HAVE_STRLCPY= |
HAVE_STRLCPY= |
HAVE_STRPTIME= |
HAVE_STRPTIME= |
HAVE_STRSEP= |
HAVE_STRSEP= |
|
HAVE_STRTONUM= |
HAVE_WCHAR= |
HAVE_WCHAR= |
|
|
HAVE_SQLITE3= |
HAVE_SQLITE3= |
|
|
LIBDIR= |
LIBDIR= |
MANDIR= |
MANDIR= |
EXAMPLEDIR= |
EXAMPLEDIR= |
|
HOMEBREWDIR= |
|
|
WWWPREFIX="/var/www" |
WWWPREFIX="/var/www" |
HTDOCDIR= |
HTDOCDIR= |
Line 176 runtest strlcat STRLCAT || true |
|
Line 178 runtest strlcat STRLCAT || true |
|
runtest strlcpy STRLCPY || true |
runtest strlcpy STRLCPY || true |
runtest strptime STRPTIME || true |
runtest strptime STRPTIME || true |
runtest strsep STRSEP || true |
runtest strsep STRSEP || true |
|
runtest strtonum STRTONUM || true |
runtest wchar WCHAR || true |
runtest wchar WCHAR || true |
|
|
# --- sqlite3 --- |
# --- sqlite3 --- |
|
|
echo |
echo |
echo "#define VERSION \"${VERSION}\"" |
echo "#define VERSION \"${VERSION}\"" |
[ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\"" |
[ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\"" |
|
[ -n "${HOMEBREWDIR}" ] && echo "#define HOMEBREWDIR \"${HOMEBREWDIR}\"" |
|
|
cat << __HEREDOC__ |
cat << __HEREDOC__ |
#define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} |
#define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} |
Line 289 cat << __HEREDOC__ |
|
Line 293 cat << __HEREDOC__ |
|
#define HAVE_STRLCPY ${HAVE_STRLCPY} |
#define HAVE_STRLCPY ${HAVE_STRLCPY} |
#define HAVE_STRPTIME ${HAVE_STRPTIME} |
#define HAVE_STRPTIME ${HAVE_STRPTIME} |
#define HAVE_STRSEP ${HAVE_STRSEP} |
#define HAVE_STRSEP ${HAVE_STRSEP} |
|
#define HAVE_STRTONUM ${HAVE_STRTONUM} |
#define HAVE_WCHAR ${HAVE_WCHAR} |
#define HAVE_WCHAR ${HAVE_WCHAR} |
#define HAVE_SQLITE3 ${HAVE_SQLITE3} |
#define HAVE_SQLITE3 ${HAVE_SQLITE3} |
#define HAVE_SQLITE3_ERRSTR ${HAVE_SQLITE3_ERRSTR} |
#define HAVE_SQLITE3_ERRSTR ${HAVE_SQLITE3_ERRSTR} |
|
|
|
|
[ ${HAVE_STRSEP} -eq 0 ] && \ |
[ ${HAVE_STRSEP} -eq 0 ] && \ |
echo "extern char *strsep(char **, const char *);" |
echo "extern char *strsep(char **, const char *);" |
|
|
|
[ ${HAVE_STRTONUM} -eq 0 ] && \ |
|
echo "extern long long strtonum(const char *, long long, long long, const char **);" |
|
|
echo |
echo |
echo "#endif /* MANDOC_CONFIG_H */" |
echo "#endif /* MANDOC_CONFIG_H */" |