vis compat stuff.

This commit is contained in:
Nicholas Marriott
2009-06-25 20:27:32 +00:00
parent 802e129fd7
commit 32312e0252
6 changed files with 329 additions and 19 deletions

29
configure vendored
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: configure,v 1.14 2009-06-25 17:02:59 nicm Exp $
# $Id: configure,v 1.15 2009-06-25 20:27:31 nicm Exp $
TMUX_PLATFORM=${TMUX_PLATFORM:-`uname -s`}
@ -28,7 +28,7 @@ cat <<EOF >>$CONFIG_H
#undef HAVE_STRTONUM
#undef HAVE_TREE_H
#undef HAVE_UTIL_H
#undef HAVE_VSYSLOG
#undef HAVE_VIS
EOF
case $TMUX_PLATFORM in
@ -51,7 +51,7 @@ case $TMUX_PLATFORM in
#define HAVE_STRTONUM
#define HAVE_TREE_H
#define HAVE_UTIL_H
#define HAVE_VSYSLOG
#define HAVE_VIS
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-openbsd.c
@ -68,7 +68,6 @@ EOF
#define HAVE_POLL
#define HAVE_PROGNAME
#define HAVE_PTY_H
#define HAVE_VSYSLOG
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-linux.c \
@ -76,7 +75,8 @@ SRCS+= osdep-linux.c \
compat/strlcat.c \
compat/strlcpy.c \
compat/strtonum.c \
compat/getopt.c
compat/getopt.c \
compat/vis.c
CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
LIBS+= -lcrypt -lutil
EOF
@ -97,7 +97,8 @@ SRCS+= osdep-unknown.c \
compat/strlcpy.c \
compat/strtonum.c \
compat/fgetln.c \
compat/getopt.c
compat/getopt.c \
compat/vis.c
EOF
;;
# ------------------------------------------------------------------------------
@ -107,7 +108,6 @@ EOF
#define HAVE_POLL
#define HAVE_STRLCAT
#define HAVE_STRLCPY
#define HAVE_VSYSLOG
EOF
cat <<EOF >>$CONFIG_MK
CPPFLAGS+= -I/usr/local/include/ncurses \
@ -123,7 +123,8 @@ SRCS+= osdep-unknown.c \
compat/fgetln.c \
compat/forkpty-sunos.c \
compat/getopt.c \
compat/strtonum.c
compat/strtonum.c \
compat/vis.c
EOF
;;
# ------------------------------------------------------------------------------
@ -139,12 +140,12 @@ EOF
#define HAVE_STRLCAT
#define HAVE_STRLCPY
#define HAVE_UTIL_H
#define HAVE_VSYSLOG
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-darwin.c \
compat/bsd-poll.c \
compat/strtonum.c
compat/strtonum.c \
compat/vis.c
EOF
;;
# ------------------------------------------------------------------------------
@ -163,10 +164,10 @@ EOF
#define HAVE_STRLCAT
#define HAVE_STRLCPY
#define HAVE_STRTONUM
#define HAVE_VSYSLOG
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-freebsd.c
SRCS+= osdep-freebsd.c \
compat/vis.c
LIBS+= -lcrypt -lutil
EOF
;;
@ -185,11 +186,11 @@ EOF
#define HAVE_STRLCAT
#define HAVE_STRLCPY
#define HAVE_UTIL_H
#define HAVE_VSYSLOG
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-netbsd.c \
compat/strtonum.c
compat/strtonum.c \
compat/vis.c
LIBS+= -lcrypt -lutil
CPPFLAGS+= -I/usr/pkg/include
LDFLAGS+= -L/usr/pkg/lib