]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Removed 'irregular' output caused by Brains test for strlcpy
[user/henk/code/inspircd.git] / configure
index 74e65bfc70750e51c4ef115c6698d05a155e0b87..258ed77b6b8a5d216d298c13d0fff0226b4ca513 100755 (executable)
--- a/configure
+++ b/configure
@@ -142,9 +142,11 @@ exists () { # because some shells don't have test -e
 
 echo "#include <string.h>">.test.cpp
 echo "#include <stdio.h>">>.test.cpp
-echo "int main() { char a[10]; char b[10]; strlcpy(a,b,10); printf(\"%d\\n\",999); }" >>.test.cpp
+echo "int main() { char a[10]; char b[10]; strlcpy(a,b,10); printf(\"%d\\n\",9); }" >>.test.cpp
 g++ -o .test .test.cpp 2>&1
-HAS_STRLCPY=`./.test 2>&1`
+if [ ! -e ".test" ] ; then
+       HAS_STRLCPY=1
+fi 
 rm -f .test.cpp .test
 
 clear
@@ -480,7 +482,7 @@ echo "#define GCC3" >>include/inspircd_config.h
                echo "#define GCC34" >>include/inspircd_config.h
        fi
 fi
-if [ "$HAS_STRLCPY" -eq "999" ] ; then
+if [ $HAS_STRLCPY != "1" ] ; then
        echo "#define HAS_STRLCPY" >>include/inspircd_config.h
 fi
 echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h