diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-10 01:03:06 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-10 01:03:06 +0000 |
commit | 81dfafc09177e0b971c707482641acdec815ce8f (patch) | |
tree | d143d0d2b28ea68be7a6d53c844dd7786c57bb59 /configure | |
parent | 0c0ce0a2a807dcff3e7a0fd4260762ab52d018fb (diff) |
Removed 'irregular' output caused by Brains test for strlcpy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1027 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |