ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure.ac
(Generate patch)

Comparing gvpe/configure.ac (file contents):
Revision 1.10 by pcg, Tue Oct 14 17:24:19 2003 UTC vs.
Revision 1.20 by pcg, Fri Oct 17 01:39:12 2003 UTC

65 65
66AC_ARG_ENABLE(iftype, 66AC_ARG_ENABLE(iftype,
67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ 67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [
68 Use kernel/net device interface TYPE/SUBTYPE. 68 Use kernel/net device interface TYPE/SUBTYPE.
69 Working combinations are: 69 Working combinations are:
70 "native/linux" "tincd/linux" "tincd/freebsd"; 70 "native/linux"
71 "tincd/linux"
72 "tincd/freebsd"
73 "tincd/openbsd"
74 "tincd/darwin"
75 "native/cygwin";
71 Untested combinations are: 76 Untested combinations are:
72 "tincd/netbsd" "tincd/darwin" "tincd/solaris" 77 "tincd/netbsd"
73 "tincd/openbsd" "tincd/cygwin"; 78 "tincd/solaris"
79 "tincd/mingw";
74 Broken combinations are: 80 Broken combinations are:
75 "native/cygwin"; 81 "tincd/cygwin";
76 The default is to autodetect. 82 The default is to autodetect.
77 ])], 83 ])],
78 [ 84 [
79 IFTYPE=`echo $enableval | sed s%/.*%%` 85 IFTYPE=`echo $enableval | sed s%/.*%%`
80 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 86 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
115 IFTYPE=tincd 121 IFTYPE=tincd
116 IFSUBTYPE=netbsd 122 IFSUBTYPE=netbsd
117 AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) 123 AC_DEFINE(HAVE_NETBSD, 1, [NetBSD])
118 ;; 124 ;;
119 *cygwin*) 125 *cygwin*)
120 IFTYPE=tincd 126 IFTYPE=native
121 IFSUBTYPE=cygwin 127 IFSUBTYPE=cygwin
122 AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) 128 AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin])
123 ;; 129 ;;
124 *) 130 *)
125 AC_MSG_ERROR("Unknown operating system.") 131 AC_MSG_ERROR("Unknown operating system.")
127 esac 133 esac
128fi 134fi
129AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) 135AC_MSG_RESULT($IFTYPE/$IFSUBTYPE)
130AC_SUBST(IFTYPE,$IFTYPE) 136AC_SUBST(IFTYPE,$IFTYPE)
131AC_SUBST(IFSUBTYPE,$IFSUBTYPE) 137AC_SUBST(IFSUBTYPE,$IFSUBTYPE)
138AC_DEFINE_UNQUOTED(IFTYPE,"$IFTYPE",[kernel interface type])
139AC_DEFINE_UNQUOTED(IFSUBTYPE,"$IFSUBTYPE",[kernel interface subtype])
132 140
133AC_CACHE_SAVE 141AC_CACHE_SAVE
134 142
135dnl Checks for libraries. 143dnl Checks for libraries.
136 144
137AC_LANG(C++) 145AC_LANG(C++)
138AC_CHECK_HEADERS(ext/hash_map) 146AC_CHECK_HEADERS(ext/hash_map)
139 147
140dnl Checks for header files. 148dnl Checks for header files.
141AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 149AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
142 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h \ 150 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \
143 sys/poll.h sys/mman.h netinet/in.h]) 151 sys/poll.h sys/mman.h netinet/in.h])
144AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 152AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
145[ 153[
146#include <sys/types.h> 154#include <sys/types.h>
147#include <sys/socket.h> 155#include <sys/socket.h>
160AC_C_CONST 168AC_C_CONST
161AC_TYPE_PID_T 169AC_TYPE_PID_T
162AC_TYPE_SIZE_T 170AC_TYPE_SIZE_T
163AC_HEADER_TIME 171AC_HEADER_TIME
164AC_STRUCT_TM 172AC_STRUCT_TM
165
166dnl argl, could somebody catapult darwin into the 21st century???
167AC_CHECK_FUNCS(poll)
168 173
169AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, 174AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t,
170[ 175[
171 AC_TRY_COMPILE( 176 AC_TRY_COMPILE(
172 [#include <sys/types.h> 177 [#include <sys/types.h>
198 203
199AC_LANG_PUSH(C) 204AC_LANG_PUSH(C)
200 205
201AC_HEADER_STDC 206AC_HEADER_STDC
202 207
208dnl argl, could somebody catapult darwin into the 21st century???
203AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) 209AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll)
204 210
205AC_FUNC_ALLOCA 211AC_FUNC_ALLOCA
206 212
207dnl Support for SunOS 213dnl Support for SunOS
208 214
219 225
220AC_CACHE_SAVE 226AC_CACHE_SAVE
221 227
222dnl These are defined in files in m4/ 228dnl These are defined in files in m4/
223tinc_TUNTAP 229tinc_TUNTAP
230
224tinc_OPENSSL 231tinc_OPENSSL
232if test "x$openssl_include" != x; then
233 CXXFLAGS="$CXXFLAGS -I$openssl_include"
234fi
225dnl tinc_ZLIB 235dnl tinc_ZLIB
226 236
227AC_ARG_ENABLE(rohc, 237AC_ARG_ENABLE(rohc,
228 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], 238 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])],
229 [ 239 [
257AC_ARG_ENABLE(http-proxy, 267AC_ARG_ENABLE(http-proxy,
258 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], 268 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
259 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 269 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
260) 270)
261 271
262HMAC=12 dnl see also the AC_HELP_STRING 272HMAC=8 dnl see also the AC_HELP_STRING
263AC_ARG_ENABLE(hmac-length, 273AC_ARG_ENABLE(hmac-length,
264 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], 274 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
265 HMAC=$enableval 275 HMAC=$enableval
266) 276)
267AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 277AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
319 329
320if $CXX -v --help 2>&1 | grep -q fexceptions; then 330if $CXX -v --help 2>&1 | grep -q fexceptions; then
321 CXXFLAGS="$CXXFLAGS -fno-exceptions" 331 CXXFLAGS="$CXXFLAGS -fno-exceptions"
322fi 332fi
323 333
324if $CXX -v --help 2>&1 | grep -q ffunction-sections; then 334dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then
325 CXXFLAGS="$CXXFLAGS -ffunction-sections" 335dnl CXXFLAGS="$CXXFLAGS -ffunction-sections"
326fi 336dnl fi
327 337dnl
328if $LD -v --help 2>&1 | grep -q gc-sections; then 338dnl if $LD -v --help 2>&1 | grep -q gc-sections; then
329 LDFLAGS="$LDFLAGS -Wl,--gc-sections" 339dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections"
330fi 340dnl fi
331 341
332AC_CONFIG_COMMANDS_POST([ 342AC_CONFIG_COMMANDS_POST([
333 343
334echo 344echo
335echo "***" 345echo "***"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines