X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=cc603917b2260ab388a730bebbf585bae1798049;hb=2f07f35dfdfa6f9c5432d37a21c6b53c6468ace2;hp=ecc48d7dc4c1a3c6ed525d495aa04843df7c9182;hpb=9f1bd74b09810565502451047b06b6eca7e47f7f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index ecc48d7dc..cc603917b 100755 --- a/configure +++ b/configure @@ -101,9 +101,10 @@ exists () { # because some shells don't have test -e } echo "#include ">.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 ">>.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 2>&1 +HAS_STRLCPY=`./.test 2>&1` rm -f .test.cpp .test clear @@ -405,8 +406,9 @@ 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 ..." +COPY_CONF=0 if [ "$CONFIG_DIR" != "$ME/conf" ] ; then COPY_CONF=1 fi