I just checked out revision 742 and this bug is back (or did it ever go
away?)

In config.mk it seems the author got a little too happy with those
backslashes   ;-)

Here's a patch for config.mk which will fix things up, and get rid of those
errors in linux/config.h
for those Linux users out there.
--- config.mk~	2009-02-23 21:13:50.000000000 -0500
+++ config.mk	2009-02-23 23:59:08.000000000 -0500
@@ -162,7 +162,7 @@
 	@echo -n "checking size of char... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(char)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(char)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_char=`cat conftestval`; \
@@ -177,7 +177,7 @@
 	echo -n "checking size of short... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(short)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(short)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_short=`cat conftestval`; \
@@ -192,7 +192,7 @@
 	echo -n "checking size of long... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(long)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(long)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_long=`cat conftestval`; \
@@ -207,7 +207,7 @@
 	echo -n "checking size of int... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(int)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(int)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_int=`cat conftestval`; \
@@ -222,7 +222,7 @@
 	echo -n "checking size of void *... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(void *)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(void *)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_void_p=`cat conftestval`; \
@@ -237,7 +237,7 @@
 	echo -n "checking size of long long... "; \
 	echo "#include <stdio.h>" > conftest.c; \
 	echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-	echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(long long)); return (0); }" >> conftest.c; \
+	echo "if (!f) return (1); fprintf(f, \"%d\\n\", sizeof(long long)); return (0); }" >> conftest.c; \
 	if { (eval $(CC) conftest.c -o conftest) ; } && \
 	  (test -s conftest && (./conftest; exit) ); then \
 	  ac_cv_sizeof_long_long=`cat conftestval`; \
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to