--- /dev/null
+#include <fstream>
+#include <iostream>
+
+using std::cerr;
+using std::cout;
+using std::ofstream;
+
+char menu();
+
+int main()
+{
+ ofstream outfile;
+
+ outfile.open("options.h");
+ if (outfile.fail())
+ {
+ cerr << "Error opening options.h" << endl;
+ return 1;
+ }
+ char c = 0;
+
+ do {
+ c = menu();
+ switch(c)
+ {
+ case '1':
+ outfile << "#define UNREAL" << endl;
+ outfile << "#undef BAHAMUT" << endl;
+ break;
+ case '2':
+ outfile << "#undef UNREAL" << endl;
+ outfile << "#define BAHAMUT" << endl;
+ break;
+ default:
+ break;
+ }
+ }while (c != 'Q' && c != 'q' && (int(c) < 48) && (int(c) > 57));
+
+ outfile.close();
+return 0;
+}
+
+char menu()
+{
+ char selection = 0;
+
+ cout << "Choose your IRCD" << endl;
+ cout << "1. Unreal3.x\r\n"
+ << "2. bahamut-1.4.x" << endl;
+ cout << "Make your selection: ";
+ cin >> selection;
+ return selection;
+}