# HG changeset patch # User diego # Date 1191104795 0 # Node ID f4143e50206d157a8e7ab2c1ab4d8ab6ceeae68b # Parent aa3ba702dec5d01a51ddd1a0d8c6fa62bc1bdbe8 Move declaration of temporary file variables to after the system-specific variable declarations (preparation for next patch). diff -r aa3ba702dec5 -r f4143e50206d configure --- a/configure Sat Sep 29 22:19:54 2007 +0000 +++ b/configure Sat Sep 29 22:26:35 2007 +0000 @@ -1300,20 +1300,6 @@ die "Runtime CPU detection only works for x86, x86-64 and PPC!" fi -for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do - test "$I" && break -done - -TMPLOG="configure.log" -TMPC="$I/mplayer-conf-$RANDOM-$$.c" -TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" -TMPEXE="$I/mplayer-conf-$RANDOM-$$" -TMPH="$I/mplayer-conf-$RANDOM-$$.h" -TMPS="$I/mplayer-conf-$RANDOM-$$.S" - -rm -f "$TMPLOG" -echo configuration: $_configuration > "$TMPLOG" -echo >> "$TMPLOG" if openbsd ; then _ldconfig="ldconfig -R" @@ -1367,6 +1353,23 @@ _ld_extra="$_ld_extra -lph" fi +for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do + test "$I" && break +done + + +TMPLOG="configure.log" +TMPC="$I/mplayer-conf-$RANDOM-$$.c" +TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" +TMPEXE="$I/mplayer-conf-$RANDOM-$$" +TMPH="$I/mplayer-conf-$RANDOM-$$.h" +TMPS="$I/mplayer-conf-$RANDOM-$$.S" + +rm -f "$TMPLOG" +echo configuration: $_configuration > "$TMPLOG" +echo >> "$TMPLOG" + + # Check how to call 'head' and 'tail'. Newer versions spit out warnings # if used as 'head -1' instead of 'head -n 1', but older versions don't # know about '-n'.