X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=6cefea4e54529c676da6916609df823d4e362c8f;hb=63f564447cf22a7caf18ae8a1297a5ab0ad873a4;hp=75384231eb7bda7fc38c63d15322042a030c124f;hpb=6bccd5409b0c33c931eff47f50af7269efb6dfe7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 75384231e..6cefea4e5 100755 --- a/configure +++ b/configure @@ -26,6 +26,7 @@ NICK_LENGT=32 CHAN_LENGT=64 MAX_CHANNE=20 MAXI_MODES=20 +HAS_STRLCPY=0 OSNAME=`(uname -s) 2>/dev/null` || OSNAME="unknown" if [ -z $MAX_CLIENT_T ] ; then @@ -144,7 +145,7 @@ echo "#include ">.test.cpp echo "#include ">>.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 -if [ ! -e ".test" ] ; then +if [ -e ".test" ] ; then HAS_STRLCPY=1 fi rm -f .test.cpp .test @@ -482,7 +483,7 @@ echo "#define GCC3" >>include/inspircd_config.h echo "#define GCC34" >>include/inspircd_config.h fi fi -if [ $HAS_STRLCPY != "1" ] ; then +if [ "$HAS_STRLCPY" -eq "1" ] ; then echo "#define HAS_STRLCPY" >>include/inspircd_config.h fi echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h