3 @@ -14,7 +14,8 @@ if [ "$MAKEDEPEND" = "" ]; then MAKEDEPE
4 cp Makefile Makefile.save
5 # fake the presence of Kerberos
7 -if [ "$MAKEDEPEND" = "gcc" ]; then
8 +D=${MAKEDEPEND/%*gcc/gcc}
9 +if [ "$D" = "gcc" ]; then
11 while [ $# -gt 0 ]; do
12 if [ "$1" != "--" ]; then args="$args $1"; fi
13 @@ -22,7 +23,7 @@ if [ "$MAKEDEPEND" = "gcc" ]; then
15 sed -e '/^# DO NOT DELETE.*/,$d' < Makefile > Makefile.tmp
16 echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
17 - ${CC:-gcc} -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
18 + ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
19 ${PERL} $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new