summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-06-25 20:27:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-06-25 20:27:32 +0000
commit32312e0252cf41b07285c6b2facdad91533585da (patch)
tree04cb526764954a2665961341109f6bc8c2653aef /configure
parent802e129fd7b9c383e8fcad03caa051e0583c199f (diff)
vis compat stuff.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 15 insertions, 14 deletions
diff --git a/configure b/configure
index 04536557..3031d2bd 100755
--- a/configure
+++ b/configure
@@ -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