1996-10-29 23:01:55 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
1998-05-29 17:58:09 +00:00
|
|
|
# $Id: configure,v 1.1.1.1 1996/10/29 23:01:55 jdp Exp $
|
1996-10-29 23:01:55 +00:00
|
|
|
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
files_to_patch="\
|
|
|
|
${WRKSRC}/m3/m3build/templates/FreeBSD2"
|
|
|
|
temp_prefix=${WRKSRC}/installed
|
|
|
|
|
1998-05-29 17:58:09 +00:00
|
|
|
if [ -f /usr/lib/crt0.o ]; then
|
|
|
|
crt=/usr/lib/crt0.o
|
|
|
|
elif [ -f /usr/lib/aout/crt0.o ]; then
|
|
|
|
crt=/usr/lib/aout/crt0.o
|
|
|
|
else
|
|
|
|
echo "Cannot find a \"crt0.o\" file" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1996-10-29 23:01:55 +00:00
|
|
|
for i in ${files_to_patch}; do
|
|
|
|
test -f ${i}.bak || cp -p ${i} ${i}.bak
|
|
|
|
rm -f ${i}
|
1998-05-29 17:58:09 +00:00
|
|
|
sed -e "s|/usr/local/|${temp_prefix}/|g" \
|
|
|
|
-e "s|/usr/lib/crt0\.o|${crt}|g" \
|
|
|
|
${i}.bak >${i}
|
1996-10-29 23:01:55 +00:00
|
|
|
done
|