Mercurial > mplayer.hg
comparison configure @ 9980:7bd7a1aa605f
darwin ldd support patch by Steven M. Schultz <sms@2BSD.COM>
author | alex |
---|---|
date | Thu, 24 Apr 2003 18:55:43 +0000 |
parents | c372140a1012 |
children | 63a2262349e1 |
comparison
equal
deleted
inserted
replaced
9979:a4ea0311ade2 | 9980:7bd7a1aa605f |
---|---|
33 rm -f "$TMPO" | 33 rm -f "$TMPO" |
34 ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 | 34 ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 |
35 TMP="$?" | 35 TMP="$?" |
36 echo >> "$TMPLOG" | 36 echo >> "$TMPLOG" |
37 echo "ldd $TMPO" >> "$TMPLOG" | 37 echo "ldd $TMPO" >> "$TMPLOG" |
38 ( ldd "$TMPO" ) >> "$TMPLOG" 2>&1 | 38 ( $_ldd "$TMPO" ) >> "$TMPLOG" 2>&1 |
39 echo >> "$TMPLOG" | 39 echo >> "$TMPLOG" |
40 return "$TMP" | 40 return "$TMP" |
41 } | 41 } |
42 | 42 |
43 # Display error message, flushes tempfile, exit | 43 # Display error message, flushes tempfile, exit |
456 if freebsd ; then | 456 if freebsd ; then |
457 _ld_extra="$_ld_extra -L/usr/local/lib" | 457 _ld_extra="$_ld_extra -L/usr/local/lib" |
458 _inc_extra="$_inc_extra -I/usr/local/include" | 458 _inc_extra="$_inc_extra -I/usr/local/include" |
459 fi | 459 fi |
460 | 460 |
461 _ldd=ldd | |
462 if darwin; then | |
463 _ldd="otool -L" | |
464 fi | |
461 | 465 |
462 # Checking CC version... | 466 # Checking CC version... |
463 if test "$_skip_cc_check" != yes ; then | 467 if test "$_skip_cc_check" != yes ; then |
464 for _cc in "$_cc" gcc-3.1 gcc3 gcc-3.0 cc ; do | 468 for _cc in "$_cc" gcc-3.1 gcc3 gcc-3.0 cc ; do |
465 echocheck "$_cc version" | 469 echocheck "$_cc version" |