mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-13 17:38:15 +01:00
Use a variable for uname.
This commit is contained in:
parent
db7357fdcc
commit
99dee98a2b
18
configure
vendored
18
configure
vendored
@ -1,13 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id: configure,v 1.5 2009-05-14 00:17:37 nicm Exp $
|
# $Id: configure,v 1.6 2009-05-14 00:34:25 nicm Exp $
|
||||||
|
|
||||||
|
UNAME=`uname -s`
|
||||||
|
|
||||||
CONFIG_H=config.h
|
CONFIG_H=config.h
|
||||||
CONFIG_MK=config.mk
|
CONFIG_MK=config.mk
|
||||||
|
|
||||||
echo "/* `uname` */" >$CONFIG_H
|
echo "/* $UNAME */" >$CONFIG_H
|
||||||
echo "# `uname`" >$CONFIG_MK
|
echo "# $UNAME" >$CONFIG_MK
|
||||||
|
|
||||||
case `uname` in
|
case $UNAME in
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
cat <<EOF >>$CONFIG_H
|
cat <<EOF >>$CONFIG_H
|
||||||
@ -161,9 +163,15 @@ EOF
|
|||||||
cat <<EOF >>$CONFIG_MK
|
cat <<EOF >>$CONFIG_MK
|
||||||
SRCS+= osdep-netbsd.c
|
SRCS+= osdep-netbsd.c
|
||||||
LIBS+= -lcrypt
|
LIBS+= -lcrypt
|
||||||
|
CPPFLAGS+= -I/usr/pkg/include
|
||||||
|
LDFLAGS+= -L/usr/pkg/lib
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
*)
|
||||||
|
echo Unable to configure for $UNAME
|
||||||
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo Configured for `uname`
|
echo Configured for $UNAME
|
||||||
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user