version 1.33, 2015/11/07 14:01:16 |
version 1.37, 2015/11/26 07:42:11 |
|
|
|
|
set -e |
set -e |
|
|
[ -e config.log ] && mv config.log config.log.old |
[ -w config.log ] && mv config.log config.log.old |
[ -e config.h ] && mv config.h config.h.old |
[ -w config.h ] && mv config.h config.h.old |
|
|
# Output file descriptor usage: |
# Output file descriptor usage: |
# 1 (stdout): config.h, Makefile.local |
# 1 (stdout): config.h, Makefile.local |
|
|
|
|
HAVE_DIRENT_NAMLEN= |
HAVE_DIRENT_NAMLEN= |
HAVE_ERR= |
HAVE_ERR= |
HAVE_FGETLN= |
|
HAVE_FTS= |
HAVE_FTS= |
|
HAVE_GETLINE= |
HAVE_GETSUBOPT= |
HAVE_GETSUBOPT= |
HAVE_ISBLANK= |
HAVE_ISBLANK= |
HAVE_MKDTEMP= |
HAVE_MKDTEMP= |
|
|
|
|
# --- manual settings from configure.local ----------------------------- |
# --- manual settings from configure.local ----------------------------- |
|
|
if [ -e ./configure.local ]; then |
if [ -r ./configure.local ]; then |
echo "configure.local: reading..." 1>&2 |
echo "configure.local: reading..." 1>&2 |
echo "configure.local: reading..." 1>&3 |
echo "configure.local: reading..." 1>&3 |
cat ./configure.local 1>&3 |
cat ./configure.local 1>&3 |
|
|
# --- library functions --- |
# --- library functions --- |
runtest dirent-namlen DIRENT_NAMLEN || true |
runtest dirent-namlen DIRENT_NAMLEN || true |
runtest err ERR || true |
runtest err ERR || true |
runtest fgetln FGETLN || true |
|
runtest fts FTS || true |
runtest fts FTS || true |
|
runtest getline GETLINE || true |
runtest getsubopt GETSUBOPT || true |
runtest getsubopt GETSUBOPT || true |
runtest isblank ISBLANK || true |
runtest isblank ISBLANK || true |
runtest mkdtemp MKDTEMP || true |
runtest mkdtemp MKDTEMP || true |
Line 289 cat << __HEREDOC__ |
|
Line 289 cat << __HEREDOC__ |
|
|
|
__HEREDOC__ |
__HEREDOC__ |
|
|
[ ${HAVE_FGETLN} -eq 0 -o ${HAVE_REALLOCARRAY} -eq 0 -o \ |
[ ${HAVE_GETLINE} -eq 0 -o ${HAVE_REALLOCARRAY} -eq 0 -o \ |
${HAVE_STRLCAT} -eq 0 -o ${HAVE_STRLCPY} -eq 0 ] \ |
${HAVE_STRLCAT} -eq 0 -o ${HAVE_STRLCPY} -eq 0 ] \ |
&& echo "#include <sys/types.h>" |
&& echo "#include <sys/types.h>" |
[ ${HAVE_VASPRINTF} -eq 0 ] && echo "#include <stdarg.h>" |
[ ${HAVE_VASPRINTF} -eq 0 ] && echo "#include <stdarg.h>" |
[ ${HAVE_FGETLN} -eq 0 ] && echo "#include <stdio.h>" |
[ ${HAVE_GETLINE} -eq 0 ] && echo "#include <stdio.h>" |
|
|
echo |
echo |
echo "#define MAN_CONF_FILE \"/etc/${MANM_MANCONF}\"" |
echo "#define MAN_CONF_FILE \"/etc/${MANM_MANCONF}\"" |
Line 304 echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\"" |
|
Line 304 echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\"" |
|
cat << __HEREDOC__ |
cat << __HEREDOC__ |
#define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} |
#define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} |
#define HAVE_ERR ${HAVE_ERR} |
#define HAVE_ERR ${HAVE_ERR} |
#define HAVE_FGETLN ${HAVE_FGETLN} |
|
#define HAVE_FTS ${HAVE_FTS} |
#define HAVE_FTS ${HAVE_FTS} |
|
#define HAVE_GETLINE ${HAVE_GETLINE} |
#define HAVE_GETSUBOPT ${HAVE_GETSUBOPT} |
#define HAVE_GETSUBOPT ${HAVE_GETSUBOPT} |
#define HAVE_ISBLANK ${HAVE_ISBLANK} |
#define HAVE_ISBLANK ${HAVE_ISBLANK} |
#define HAVE_MKDTEMP ${HAVE_MKDTEMP} |
#define HAVE_MKDTEMP ${HAVE_MKDTEMP} |
|
|
|
|
if [ ${HAVE_ERR} -eq 0 ]; then |
if [ ${HAVE_ERR} -eq 0 ]; then |
echo "extern void err(int, const char *, ...);" |
echo "extern void err(int, const char *, ...);" |
|
echo "extern void errx(int, const char *, ...);" |
echo "extern void warn(const char *, ...);" |
echo "extern void warn(const char *, ...);" |
echo "extern void warnx(const char *, ...);" |
echo "extern void warnx(const char *, ...);" |
fi |
fi |
|
|
[ ${HAVE_FGETLN} -eq 0 ] && \ |
[ ${HAVE_GETLINE} -eq 0 ] && \ |
echo "extern char *fgetln(FILE *, size_t *);" |
echo "extern ssize_t getline(char **, size_t *, FILE *);" |
|
|
[ ${HAVE_GETSUBOPT} -eq 0 ] && \ |
[ ${HAVE_GETSUBOPT} -eq 0 ] && \ |
echo "extern int getsubopt(char **, char * const *, char **);" |
echo "extern int getsubopt(char **, char * const *, char **);" |