summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-05-20 14:36:04 +0000
committerChristian Pointner <equinox@anytun.org>2008-05-20 14:36:04 +0000
commitb2f54ec4947b60b9d989cb887f6c62c93a738e02 (patch)
treed32b3f7427c836adfaea53e0a16fd43585e79879 /src/configure
parentadded -i option to anyrtpproxy (diff)
removed openvpn source code
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/configure b/src/configure
index 0e8e08b..a258120 100755
--- a/src/configure
+++ b/src/configure
@@ -1,33 +1,21 @@
#!/bin/sh
-TARGET=$1
-if [ -z "$TARGET" ]; then
- TARGET="ovpn"
-fi
+TARGET=`uname -s`
case $TARGET in
- linux)
+ Linux)
rm -rf tunDevice.cpp
rm -rf tunDevice.h
ln -sf linux/tunDevice.cpp
ln -sf linux/tunDevice.h
;;
- bsd)
+ OpenBSD|FreeBSD|NetBSD)
rm -rf tunDevice.cpp
rm -rf tunDevice.h
ln -sf bsd/tunDevice.cpp
ln -sf bsd/tunDevice.h
;;
- ovpn)
- rm -rf tunDevice.cpp
- rm -rf tunDevice.cpp
- ln -sf ovpn/tunDevice.cpp
- ln -sf ovpn/tunDevice.h
- cd openvpn
- ./configure --disable-lzo --disable-crypto
- cd ..
- ;;
*)
- echo "Usage: $0 (linux|bsd|ovpn)"
+ echo "Plattform not supported"
;;
esac