summaryrefslogtreecommitdiff
path: root/package/vtun/vtun-003-fixup-configure.in.patch
blob: cb2ac67aa2322ecdb1dd4395ebc2fcc4c8e185fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
configure.in: minimal syntax fixup for autoreconf

This is the strictly minimal syntax fixups to make autoreconf happy...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

---
Note: configure.in is still full of incorrect syntax, but fixing it is
a task for another day, and would have to be upstreamed. But upstream
looks to be moribund at best, if not dead... :-(

So, keep it for ourselves for now... Too bad, vtun is really helpfull.

--- vtun-3.0.3.orig/configure.in	2013-02-16 23:54:52.582451817 +0100
+++ vtun-3.0.3/configure.in	2013-02-17 00:03:13.640887353 +0100
@@ -110,10 +110,10 @@
 AC_SEARCH_LIBS(nanosleep, rt posix4)
 
 dnl Check for setproctitle in libutil
-AC_SEARCH_LIBS(setproctitle, util bsd, AC_DEFINE(HAVE_SETPROC_TITLE) )
+AC_SEARCH_LIBS(setproctitle, util bsd, AC_DEFINE([HAVE_SETPROC_TITLE],[],[Define to set title in /proc]) )
 
 if test "$SHAPER" = "yes"; then
-   AC_DEFINE(HAVE_SHAPER)
+   AC_DEFINE([HAVE_SHAPER],[],[Define to use shapper])
 fi
 
 if test "$ZLIB" = "yes"; then
@@ -121,7 +121,7 @@
    AC_CHECKING( for ZLIB Library and Header files ... )
    AC_CHECK_LIB(z, deflate,
 	LIBS="$LIBS -lz"
-	AC_DEFINE(HAVE_ZLIB),
+	AC_DEFINE([HAVE_ZLIB],[],[Define to use ZLIB]),
 	AC_MSG_ERROR( Zlib library not found.)
    )
 fi
@@ -148,7 +148,7 @@
 	    AC_CHECK_LIB($I, lzo1x_decompress,
 	    [
 	          LIBS="$LIBS -l"$I
-	       AC_DEFINE(HAVE_LZO)
+	       AC_DEFINE([HAVE_LZO],[],[Define to use LZO])
 	          havelzo=1
 	      ]
 	    )
@@ -180,8 +180,8 @@
 	AC_CHECK_LIB(crypto, BF_set_key,
 	    [
 	       LIBS="$LIBS -lcrypto"
-	       AC_DEFINE(HAVE_SSL)
-	       AC_DEFINE(HAVE_SSL_BLOWFISH)
+	       AC_DEFINE([HAVE_SSL],[],[Define to use SSL])
+	       AC_DEFINE([HAVE_SSL_BLOWFISH],[],[Define to use blowfish])
 	    ],
 	    AC_MSG_ERROR( SSL library not found. )
 	),
@@ -196,7 +196,7 @@
     $SSL_HDR_DIR ,
 	AC_CHECK_LIB(crypto, AES_set_encrypt_key,
 	    [
-	       AC_DEFINE(HAVE_SSL_AES)
+	       AC_DEFINE([HAVE_SSL_AES],[],[Define to use AES])
 	    ],
 	    AC_MSG_ERROR( AES library not found. )
 	),
@@ -211,7 +211,7 @@
     $SSL_HDR_DIR ,
 	AC_CHECK_LIB(crypto, EVP_EncryptInit,
 	    [
-	       AC_DEFINE(HAVE_SSL_EVP)
+	       AC_DEFINE([HAVE_SSL_EVP],[],Define to use EVP)
 	    ],
 	    AC_MSG_ERROR( EVP library not found. )
 	),
@@ -220,7 +220,7 @@
 fi
 
 if test "$NATHACK" = "yes"; then
-   AC_DEFINE(ENABLE_NAT_HACK)
+   AC_DEFINE([ENABLE_NAT_HACK],[],[Define to use NAT hack])
 fi
 
 if test "$SOCKS" = "yes"; then
@@ -274,6 +274,6 @@
 REL=`echo 'BRANCH-3_X' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'`
 changequote([,])
 
-AC_DEFINE_UNQUOTED(VTUN_VER, "$REL `date '+%m/%d/%Y'`")
+AC_DEFINE_UNQUOTED([VTUN_VER], ["$REL `date '+%m/%d/%Y'`"], [vtun version])
 
 AC_OUTPUT(Makefile)