[BusyBox] How to make ./configure happy with busybox's sed version.

Rob Landley rob at landley.net
Sun Jan 25 18:55:53 UTC 2004

This is too ugly for words, but it faked out the ./configure script:

--- ../cvs/busybox/editors/sed.c	2004-01-04 00:42:14.000000000 -0600
+++ busybox/editors/sed.c	2004-01-25 12:11:09.426692904 -0600
@@ -1073,6 +1073,14 @@
+	if(!strcmp(argv[1],"--version")) {
+		printf("This is not GNU sed version 4.0\n");
+		exit(0);
+	}
 	/* do normal option parsing */
 	while ((opt = getopt(argc, argv, "ne:f:")) > 0) {
 		switch (opt) {

You may barf now.  (Hey, an ugly solution to an ugly problem.  Possibly the 
define should be LIE_TO_AUTOCONF, and it should probably have a menuconfig 
selection thingy.  I throw it out for the inevitable "ewwwww" reaction so 
somebody can tell me if they can think of a better way...)


More information about the busybox mailing list