summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 19:51:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 19:51:52 +0000
commit5174091b75a311a824103d8e8a095ce95db63f38 (patch)
tree30a13f170d8eff0caa5608da564141656d688034 /configure
parent9f1bd74b09810565502451047b06b6eca7e47f7f (diff)
Fixed strlcpy detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@906 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index ecc48d7dc..393943ef6 100755
--- a/configure
+++ b/configure
@@ -101,9 +101,10 @@ exists () { # because some shells don't have test -e
}
echo "#include <string.h>">.test.cpp
-echo >"int main() { char a[10]; char b[10]; strlcpy(a,b,10); sprintf("999"); }" >>.test.cpp
-gcc -o .test .test.cpp
-$HAS_STRLCPY=`./.test`
+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
+g++ -o .test .test.cpp
+HAS_STRLCPY=`./.test`
rm -f .test.cpp .test
clear
@@ -405,7 +406,7 @@ echo -e "\033[0;37mGCC Version Found:\033[1;32m\t\t$GCCVER.$GCC34"
echo -e "\033[0;37mOptimatizaton Flag:\033[1;32m\t\t$OPTIMISATI"
echo -e "\033[0;37m"
-yyecho "Writing cache file for future ./configures ..."
+echo "Writing cache file for future ./configures ..."
if [ "$CONFIG_DIR" != "$ME/conf" ] ; then
COPY_CONF=1