[BusyBox] busybox, sed, and zlib's configure script

Dermot Bradley bradley at tangram.nildram.co.uk
Mon Sep 15 22:41:23 UTC 2003


Following on from the recent emails to the list about Busybox's sed.

I'm trying to build zlib 1.1.4 and have hit the following problem. The
configure script that comes with zlib has the following at the end of it:

sed < Makefile.in "
/^CC *=/s%=.*%=$CC%
/^CFLAGS *=/s%=.*%=$CFLAGS%
/^CPP *=/s%=.*%=$CPP%
/^LDSHARED *=/s%=.*%=$LDSHARED%
/^LIBS *=/s%=.*%=$LIBS%
/^SHAREDLIB *=/s%=.*%=$SHAREDLIB%
/^AR *=/s%=.*%=$AR%
/^RANLIB *=/s%=.*%=$RANLIB%
/^VER *=/s%=.*%=$VER%
/^prefix *=/s%=.*%=$prefix%
/^exec_prefix *=/s%=.*%=$exec_prefix%
/^libdir *=/s%=.*%=$libdir%
/^includedir *=/s%=.*%=$includedir%
" > Makefile

This does not correctly rewrite the Makefile.in input to create a proper
Makefile. By changing the "sed" command to ensure that GNU sed is called
everything works fine.

Any suggestions?




More information about the busybox mailing list