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

Comparing gvpe/configure.ac (file contents):
Revision 1.19 by pcg, Thu Oct 16 21:57:54 2003 UTC vs.
Revision 1.26 by pcg, Mon May 10 18:57:07 2004 UTC

1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2 2
3AC_PREREQ(2.57) 3AC_PREREQ(2.57)
4AC_INIT(src/vped.C) 4AC_INIT(src/vped.C)
5AC_CANONICAL_TARGET 5AC_CANONICAL_TARGET
6AM_INIT_AUTOMAKE(vpe, 1.2) 6AM_INIT_AUTOMAKE(vpe, 1.6)
7AM_CONFIG_HEADER(config.h) 7AM_CONFIG_HEADER(config.h)
8AM_MAINTAINER_MODE 8AM_MAINTAINER_MODE
9 9
10AH_TOP([ 10AH_TOP([
11#ifndef CONFIG_H__ 11#ifndef CONFIG_H__
44 44
45# Enable GNU extensions. 45# Enable GNU extensions.
46# Define this here, not in acconfig's @TOP@ section, since definitions 46# Define this here, not in acconfig's @TOP@ section, since definitions
47# in the latter don't make it into the configure-time tests. 47# in the latter don't make it into the configure-time tests.
48AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) 48AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions])
49AC_DEFINE([__USE_BSD], 1, [Enable BSD extensions]) 49
50# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
51dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions])
52dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions])
50 53
51ALL_LINGUAS="" 54ALL_LINGUAS=""
52 55
53dnl Checks for programs. 56dnl Checks for programs.
54AC_PROG_CC 57AC_PROG_CC
58AC_PROG_AWK 61AC_PROG_AWK
59AC_PROG_INSTALL 62AC_PROG_INSTALL
60AC_PROG_LN_S 63AC_PROG_LN_S
61AC_PROG_MAKE_SET 64AC_PROG_MAKE_SET
62AC_PROG_RANLIB 65AC_PROG_RANLIB
63
64AC_ISC_POSIX
65 66
66AC_ARG_ENABLE(iftype, 67AC_ARG_ENABLE(iftype,
67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ 68 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [
68 Use kernel/net device interface TYPE/SUBTYPE. 69 Use kernel/net device interface TYPE/SUBTYPE.
69 Working combinations are: 70 Working combinations are:
145AC_LANG(C++) 146AC_LANG(C++)
146AC_CHECK_HEADERS(ext/hash_map) 147AC_CHECK_HEADERS(ext/hash_map)
147 148
148dnl Checks for header files. 149dnl Checks for header files.
149AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ 150AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
150 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ 151 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
151 sys/poll.h sys/mman.h netinet/in.h]) 152 sys/mman.h netinet/in.h])
152AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], 153AC_CHECK_HEADERS([arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [],
153[ 154[
154#include <sys/types.h> 155#include <sys/types.h>
155#include <sys/socket.h> 156#include <sys/socket.h>
156#ifdef HAVE_NETINET_IN_H 157#ifdef HAVE_NETINET_IN_H
157# include <netinet/in.h> 158# include <netinet/in.h>
204AC_LANG_PUSH(C) 205AC_LANG_PUSH(C)
205 206
206AC_HEADER_STDC 207AC_HEADER_STDC
207 208
208dnl argl, could somebody catapult darwin into the 21st century??? 209dnl argl, could somebody catapult darwin into the 21st century???
209AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) 210AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall)
210 211
211AC_FUNC_ALLOCA 212AC_FUNC_ALLOCA
212 213
213dnl Support for SunOS 214dnl Support for SunOS
214 215
238 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], 239 [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])],
239 [ 240 [
240 echo 241 echo
241 echo "**********************************************************************" 242 echo "**********************************************************************"
242 echo "**********************************************************************" 243 echo "**********************************************************************"
243 echo "**** --enable-rohc not yet implemented *******************************" 244 echo "**** --enable-rohc is highly experimental, do not use ****************"
244 echo "**********************************************************************"
245 echo "**** uuh sorry, I am such an ass, but I didn't find any rfc3095 (ROHC)"
246 echo "**** implementation to be used in GPL code on the web."
247 echo "**** so this option is just a fake. Please implement one and send it"
248 echo "**** to me ;)"
249 echo "**********************************************************************"
250 echo "**********************************************************************"
251 echo "**********************************************************************" 245 echo "**********************************************************************"
252 echo "**********************************************************************" 246 echo "**********************************************************************"
253 echo 247 echo
248 rohc=true
249 AC_DEFINE_UNQUOTED(ENABLE_ROHC, 1, [ROHC support])
254 ] 250 ]
255) 251)
252
253AM_CONDITIONAL(ROHC, test x$rohc = xtrue)
256 254
257AC_ARG_ENABLE(icmp, 255AC_ARG_ENABLE(icmp,
258 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])], 256 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])],
259 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) 257 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.])
260) 258)
262AC_ARG_ENABLE(tcp, 260AC_ARG_ENABLE(tcp,
263 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])], 261 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])],
264 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) 262 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.])
265) 263)
266 264
265AC_ARG_ENABLE(dns,
266 [AC_HELP_STRING(--enable-dns, [enable dns tunnel protocol support (DOES NOT WORK).])],
267 AC_DEFINE_UNQUOTED(ENABLE_DNS, 1, [DNS tunnel protocol support.])
268)
269
267AC_ARG_ENABLE(http-proxy, 270AC_ARG_ENABLE(http-proxy,
268 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], 271 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
269 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 272 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
270) 273)
271 274
272HMAC=8 dnl see also the AC_HELP_STRING 275HMAC=12 dnl see also the AC_HELP_STRING
273AC_ARG_ENABLE(hmac-length, 276AC_ARG_ENABLE(hmac-length,
274 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], 277 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
275 HMAC=$enableval 278 HMAC=$enableval
276) 279)
277AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 280AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
329 332
330if $CXX -v --help 2>&1 | grep -q fexceptions; then 333if $CXX -v --help 2>&1 | grep -q fexceptions; then
331 CXXFLAGS="$CXXFLAGS -fno-exceptions" 334 CXXFLAGS="$CXXFLAGS -fno-exceptions"
332fi 335fi
333 336
334if $CXX -v --help 2>&1 | grep -q ffunction-sections; then 337dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then
335 CXXFLAGS="$CXXFLAGS -ffunction-sections" 338dnl CXXFLAGS="$CXXFLAGS -ffunction-sections"
336fi 339dnl fi
337 340dnl
338if $LD -v --help 2>&1 | grep -q gc-sections; then 341dnl if $LD -v --help 2>&1 | grep -q gc-sections; then
339 LDFLAGS="$LDFLAGS -Wl,--gc-sections" 342dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections"
340fi 343dnl fi
341 344
342AC_CONFIG_COMMANDS_POST([ 345AC_CONFIG_COMMANDS_POST([
343 346
344echo 347echo
345echo "***" 348echo "***"
350echo "*** Digest used: $DIGEST" 353echo "*** Digest used: $DIGEST"
351echo "*** HMAC length: $HMAC" 354echo "*** HMAC length: $HMAC"
352echo "*** RAND used: $RAND" 355echo "*** RAND used: $RAND"
353echo "*** Max. MTU: $MTU" 356echo "*** Max. MTU: $MTU"
354echo "*** Compression: $COMPRESS" 357echo "*** Compression: $COMPRESS"
355echo "***"
356 358
357if test "x$DIGEST" = xmd4; then 359if test "x$DIGEST" = xmd4; then
358echo "*** WARNING" 360echo "***"
359echo "*** The digest you have chosen ($DIGEST) is known to be insecure" 361echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
360echo "***"
361fi 362fi
363
364if test "$HMAC" -lt 12; then
365echo "***"
366echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
367fi
368
369if test "$RAND" -lt 8; then
370echo "***"
371echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
372fi
373
374echo "***"
362 375
363echo 376echo
364 377
365]) 378])
366 379
367AC_SUBST(INCLUDES) 380AC_SUBST(INCLUDES)
368 381
369AC_OUTPUT(Makefile po/Makefile.in 382AC_OUTPUT(Makefile po/Makefile.in
370src/Makefile 383src/Makefile
384src/rohc/Makefile
371doc/Makefile 385doc/Makefile
372lib/Makefile 386lib/Makefile
373m4/Makefile 387m4/Makefile
374) 388)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines