Permalink
Browse files

Add conditional configurations for testy code.

git-svn-id: https://svn.parrot.org/parrot/trunk@1475 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
Melvin Smith
Melvin Smith committed May 16, 2002
1 parent e13c18e commit de4d079670906d37cdec4ac1f38b9ccdb314980b
Showing with 17 additions and 0 deletions.
  1. +10 −0 Configure.pl
  2. +7 −0 config_h.in
View
@@ -259,6 +259,7 @@ END
ops => "",
configdate => scalar localtime,
+ expnetworking => 'N',
);
# What's the platform shell quote character?
@@ -334,6 +335,8 @@ END
prompt("How big would you like integers to be?", 'iv');
prompt("And your floats?", 'nv');
prompt("What is your native opcode type?", 'opcode_t');
+print "\n\n Experimental (unstable) features.\n\n";
+prompt("Would you like to enable the network API?", 'expnetworking');
{
@@ -702,6 +705,13 @@ END
# Also build Parrot/Config.pm
#
+if($c{expnetworking} =~ /y/i) {
+ $c{expnetworking} = 1;
+}
+else {
+ $c{expnetworking} = 0;
+}
+
print <<"END";
Building a preliminary version of include/parrot/config.h, your Makefiles, and
View
@@ -85,6 +85,13 @@ typedef SYNC Sync;
#define JIT_ARCHNAME "${jitarchname}"
#define JIT_CAPABLE ${jitcapable}
+/*
+ * Switches to turn on/off new code so people can compile
+ * the core with minimal breakage.
+ */
+#define EXP_NETWORKING ${expnetworking}
+
+
#define PARROT_CORE_OPLIB_NAME "core"
#define PARROT_CORE_OPLIB_INIT Parrot_DynOp_core_${MAJOR}_${MINOR}_${PATCH}
#define PARROT_CORE_PREDEREF_OPLIB_INIT Parrot_DynOp_core_prederef_${MAJOR}_${MINOR}_${PATCH}

0 comments on commit de4d079

Please sign in to comment.