From a0ef1070aa77fec38d6bf5e162f5667736c56b1f Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 Mar 2005 05:54:33 +0000 Subject: Added detection for gcc 3.4... where they changed the namespaces again. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@901 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index e9e006bca..24e6c6de1 100755 --- a/configure +++ b/configure @@ -14,6 +14,7 @@ echo "Configuring default values..." ME=`pwd` GCCVER=`gcc -dumpversion | cut -c 1` +GCC34=`gcc -dumpversion | cut -c 3` CONFIG_DIR=$ME/conf MODULE_DIR=$ME/modules BINARY_DIR=$ME/bin @@ -417,6 +418,7 @@ echo "NICK_LENGT=\"$NICK_LENGT\"" >> .config.cache echo "MAXI_MODES=\"$MAXI_MODES\"" >> .config.cache echo "OPTIMITEMP=\"$OPTIMITEMP\"" >> .config.cache echo "OPTIMISATI=\"$OPTIMISATI\"" >> .config.cache +echo "GCC34=\"$GCC34\"" >> .config.cache echo "COPY_CONF=\"$COPY_CONF\"" >> .config.cache echo "Writing include/inspircd_config.h ..." @@ -426,6 +428,9 @@ echo "" >>include/inspircd_config.h if [ "$GCCVER" -eq "3" ] ; then echo "#define GCC3" >>include/inspircd_config.h fi +if [ "$GCC34" -eq "3.4" ] ; then +echo "#define GCC34" >>include/inspircd_config.h +fi echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h echo "#define SYSLOG_LEVEL LOG_NOTICE" >>include/inspircd_config.h echo "#define CONFIG_FILE \"$CONFIG_DIR/inspircd.conf\"" >>include/inspircd_config.h -- cgit v1.2.3