I found some low hanging fruit in acconfig.h and would like to move it
to the configure script. Ok for trunk (together with regenerated
configure and net-snmp-config.h.in)

/MF
Index: clean/acconfig.h
===================================================================
--- clean.orig/acconfig.h	2010-08-29 17:28:59.000000000 +0200
+++ clean/acconfig.h	2010-08-31 07:11:11.000000000 +0200
@@ -28,14 +28,6 @@
 #ifndef NETSNMP_NO_AUTOCONF_DEFINITIONS
 
 
-#if defined (WIN32) || defined (mingw32) || defined (cygwin)
-#define ENV_SEPARATOR ";"
-#define ENV_SEPARATOR_CHAR ';'
-#else
-#define ENV_SEPARATOR ":"
-#define ENV_SEPARATOR_CHAR ':'
-#endif
-
 /* definitions added by configure on-the-fly */
 @TOP@
 @BOTTOM@
Index: clean/configure.d/config_os_misc4
===================================================================
--- clean.orig/configure.d/config_os_misc4	2010-08-29 17:28:59.000000000 +0200
+++ clean/configure.d/config_os_misc4	2010-08-31 07:11:12.000000000 +0200
@@ -300,3 +300,11 @@
     fi         # "test $ac_inet_ip_h = yes"
     ;;
 esac
+
+#
+# Set up the character to use as environment separator
+#
+AC_DEFINE_UNQUOTED([ENV_SEPARATOR_CHAR], ['$PATH_SEPARATOR'],
+                   [Character that separates values in environment variables])
+AC_DEFINE_UNQUOTED([ENV_SEPARATOR], ["$PATH_SEPARATOR"],
+                   [Stringified version of ENV_SEPARATOR_CHAR])
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to