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

Rob Landley rob at landley.net
Mon Sep 15 23:23:04 UTC 2003


On Monday 15 September 2003 18:41, Dermot Bradley wrote:
> 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?

I intend to bang on it later this week.  (Monday and tuesday are full days for 
me, the rest of the week's a little easier.)

zlib is fairly far down my test case list (I'm still working on binutils' 
config), but it's on it.

Rob



More information about the busybox mailing list