[MPlayer-dev-eng] [PATCH] darwin ./configure fix for ldd
Steven M. Schultz
sms at 2BSD.COM
Wed Apr 23 04:51:54 CEST 2003
On Tue, 22 Apr 2003, Diego Biurrun wrote:
> What about this instead?
> _ldd=ldd
> darwin && _ldd='otool -L'
>
> and then replace all occurences of ldd with _ldd (just one).
Good Idea - thanks!
> Please try it, it should be just as good, but much cleaner and shorter IMHO.
Attached is a revised patch. I put the 'ldd' handling in what
looked like an appropriate place.
Cheers,
Steven Schultz
-------------- next part --------------
--- configure.dist Mon Apr 21 19:43:47 2003
+++ configure Tue Apr 22 19:49:08 2003
@@ -35,7 +35,7 @@
TMP="$?"
echo >> "$TMPLOG"
echo "ldd $TMPO" >> "$TMPLOG"
- ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1
+ ( $_ldd "$TMPO" ) >> "$TMPLOG" 2>&1
echo >> "$TMPLOG"
return "$TMP"
}
@@ -458,6 +458,10 @@
_inc_extra="$_inc_extra -I/usr/local/include"
fi
+_ldd=ldd
+if darwin; then
+ _ldd="otool -L"
+fi
# Checking CC version...
if test "$_skip_cc_check" != yes ; then
More information about the MPlayer-dev-eng
mailing list