summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2011-02-28 13:22:38 (GMT)
committerChristian Pointner <equinox@anytun.org>2011-02-28 13:22:38 (GMT)
commit5f81fd86447026a03d8b396f169b1a292a29d13d (patch)
tree48955a0a6c8e8e14e272ac18bf0b238854727291
parent4a762b0962422d2a0d4b2c1afcc5cdd0e99b06f3 (diff)
cleanup at configure
-rwxr-xr-xsrc/configure10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/configure b/src/configure
index 13b3c21..76b1017 100755
--- a/src/configure
+++ b/src/configure
@@ -142,6 +142,7 @@ fi
rm -f include.mk
+rm -f version.h
case $TARGET in
Linux)
rm -f tunDevice.cpp
@@ -187,7 +188,6 @@ case $CRYPTO_LIB in
;;
none)
CXXFLAGS=$CXXFLAGS' -DNO_CRYPT'
- echo "NO_CRYPT_OBJ = 1" >> include.mk
echo "disabling crypto"
;;
esac
@@ -222,7 +222,7 @@ if [ -z "$EXAMPLESDIR" ]; then
EXAMPLESDIR=$PREFIX/share/examples
fi
-cat >> include.mk <<EOF
+cat > include.mk <<EOF
# this file was created automatically
# do not edit this file directly
# use ./configure instead
@@ -241,6 +241,10 @@ SBINDIR := $SBINDIR
ETCDIR := $ETCDIR
EOF
+if [ $CRYPTO_LIB = "none" ]; then
+ echo "NO_CRYPT_OBJ = 1" >> include.mk
+fi
+
if [ $INSTALLMANPAGE -eq 1 ]; then
echo "MANDIR := $MANDIR" >> include.mk
echo "installing manpage"
@@ -265,7 +269,7 @@ fi
HOSTNAME=`hostname`
DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
-cat >> version.h <<EOF
+cat > version.h <<EOF
/*
* anytun version info
*