if ($config{GCCVER} eq "") {
print "g++ was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
- return 0;
+ exit;
}
# Minihack! Convert Cygwin to 'Cyg-Static' so i can
print "not to enable one. Defaulting to select() engine.\n\n";
}
-yesno(THREADED_DNS,"InspIRCd supports multi-threaded DNS lookups,\nwhich can improve the efficiency on a multiple-processor machine.\nDo you want to enable this feature?");
+yesno(THREADED_DNS,"InspIRCd supports multi-threaded DNS lookups,\nwhich can improve the efficiency on a multiple-processor machine.\n\nDo you want to enable this feature?");
print "\n";
yesno(IPV6,"Would you like to enable experimental IPv6 support?");
close(FILEHANDLE);
}
-open(FILEHANDLE, ">include/inspircd_se_config.h");
- print FILEHANDLE <<EOF;
+ if ($writeheader)
+ {
+ open(FILEHANDLE, ">include/inspircd_se_config.h");
+ print FILEHANDLE <<EOF;
/* Auto generated by configure, do not modify or commit to svn! */
#ifndef __CONFIGURATION_SOCKETENGINE__
#define __CONFIGURATION_SOCKETENGINE__
#endif
EOF
-close(FILEHANDLE);
+ close(FILEHANDLE);
+ }
# Create a Modules List..
print FILEHANDLE <<EOCHEESE;
m_$i.o: .m_$i\_static.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h
\$(CC) -pipe -I../../include \$(FLAGS) $flags -export-dynamic -c .m_$i\_static.cpp
- mv m_$i\_static.o ../m_$i.o
+ mv .m_$i\_static.o ../m_$i.o
EOCHEESE
###