Anthony Mallet
2006-10-23 02:37:00 UTC
Hello list,
I found useful to have an option to *disable* ipv6 support, even if it's
available in the system, for two reasons:
First, ipv6 might me available in the headers but disabled in the os
configuration.
Second, omniORB may have to interopere with ORBs that are not IPv6 aware,
even on ipv6-aware system.
I attach two patches that implement a --with-ipv6 configure
option. Option defaults to 'yes'. Patches have been done against
4.1.0beta2 public release. They have been commited to pkgsrc-wip
(http://pkgsrc-wip.sf.net) but it would be great if they could be
integrated in official realeases.
Thanks,
-- Anthony Mallet
-------------- next part --------------
$NetBSD$
--- acinclude.m4~ 2006-10-22 19:15:40.000000000 +0200
+++ acinclude.m4 2006-10-22 19:16:06.000000000 +0200
@@ -336,6 +336,19 @@
AC_SUBST(ENABLE_STATIC, $omni_cv_enable_static)
])
+AC_DEFUN([OMNI_ENABLE_IPV6],
+[AC_CACHE_CHECK(omniORB IPV6 support,
+omni_cv_omni_ipv6,
+[AC_ARG_WITH(ipv6,
+ AC_HELP_STRING([--with-ipv6],
+ [compile IPV6 support if supported by the machine (default: yes)]),
+ omni_cv_omni_ipv6=$withval,
+ omni_cv_omni_ipv6="yes")
+])
+if test "$omni_cv_omni_ipv6" = "no"; then
+ AC_DEFINE([OMNI_DISABLE_IPV6], [], [omniORB IPV6 support])
+fi
+])
dnl This defaults to enabled, and is appropriate for development
dnl For the release, the obvious chunk below should be replaced with:
-------------- next part --------------
$NetBSD$
--- configure.ac~ 2006-03-25 19:54:04.000000000 +0100
+++ configure.ac 2006-10-22 19:18:02.000000000 +0200
@@ -113,6 +113,7 @@
OMNI_CONFIG_FILE
OMNI_OMNINAMES_LOGDIR
+OMNI_ENABLE_IPV6
OMNI_DISABLE_STATIC
OMNI_DISABLE_THREAD_TRACING
I found useful to have an option to *disable* ipv6 support, even if it's
available in the system, for two reasons:
First, ipv6 might me available in the headers but disabled in the os
configuration.
Second, omniORB may have to interopere with ORBs that are not IPv6 aware,
even on ipv6-aware system.
I attach two patches that implement a --with-ipv6 configure
option. Option defaults to 'yes'. Patches have been done against
4.1.0beta2 public release. They have been commited to pkgsrc-wip
(http://pkgsrc-wip.sf.net) but it would be great if they could be
integrated in official realeases.
Thanks,
-- Anthony Mallet
-------------- next part --------------
$NetBSD$
--- acinclude.m4~ 2006-10-22 19:15:40.000000000 +0200
+++ acinclude.m4 2006-10-22 19:16:06.000000000 +0200
@@ -336,6 +336,19 @@
AC_SUBST(ENABLE_STATIC, $omni_cv_enable_static)
])
+AC_DEFUN([OMNI_ENABLE_IPV6],
+[AC_CACHE_CHECK(omniORB IPV6 support,
+omni_cv_omni_ipv6,
+[AC_ARG_WITH(ipv6,
+ AC_HELP_STRING([--with-ipv6],
+ [compile IPV6 support if supported by the machine (default: yes)]),
+ omni_cv_omni_ipv6=$withval,
+ omni_cv_omni_ipv6="yes")
+])
+if test "$omni_cv_omni_ipv6" = "no"; then
+ AC_DEFINE([OMNI_DISABLE_IPV6], [], [omniORB IPV6 support])
+fi
+])
dnl This defaults to enabled, and is appropriate for development
dnl For the release, the obvious chunk below should be replaced with:
-------------- next part --------------
$NetBSD$
--- configure.ac~ 2006-03-25 19:54:04.000000000 +0100
+++ configure.ac 2006-10-22 19:18:02.000000000 +0200
@@ -113,6 +113,7 @@
OMNI_CONFIG_FILE
OMNI_OMNINAMES_LOGDIR
+OMNI_ENABLE_IPV6
OMNI_DISABLE_STATIC
OMNI_DISABLE_THREAD_TRACING