Blame db3/configure

2ff057
#!/bin/sh
2ff057
#set -x 
2ff057
base_name=`basename $0`
2ff057
base_path=`echo $0 | sed s,$base_name,,`
2ff057
2ff057
db_dist="${base_path}../db/dist"
2ff057
2ff057
rm -f config.cache
2ff057
2ff057
# XXX edit CFLAGS= ... out of invocation args ???
2ff057
ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
2ff057
2ff057
CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
2ff057
	--enable-shared --enable-static \
2ff057
	--with-uniquename=_rpmdb --srcdir=$db_dist
2ff057
2ff057
mv Makefile Makefile.orig
2ff057
cat Makefile.orig | sed -e '/^install[:-]/c\
2ff057
.PHONY: listobjs\
2ff057
listobjs:\
2ff057
\	@echo $(OBJS) $(C_OBJS) \
2ff057
\
2ff057
distdir install check installcheck:\
2ff057
\
2ff057
db4_install: all install_setip' \
2ff057
-e '/^uninstall[:-]/c\
2ff057
uninstall:' \
2ff057
-e 's/^check depend/\
2ff057
check: all\
2ff057
depend/' \
2ff057
 > Makefile
2ff057
2ff057
# Generate manifest for rpmdb.
2ff057
make -s listobjs > db3lobjs