summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-09-18 09:24:38 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:16:56 +0200
commit7cbcdddb2d6a15f609730c9bd76eccf4aab5a7c6 (patch)
tree897cf50a1c209705ab60e5f568d06bd04292267a /configure
parent3e40d5f9aa8ca0f02808987529fd6e11111550e2 (diff)
downloadmpv-7cbcdddb2d6a15f609730c9bd76eccf4aab5a7c6.tar.bz2
mpv-7cbcdddb2d6a15f609730c9bd76eccf4aab5a7c6.tar.xz
configure: minor cleanups
cosmetics: Slightly shorten swab() check. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32296 b3059339-0415-0410-9bf9-f77b7e298cf2 cosmetics: Slightly reformat a comment. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32297 b3059339-0415-0410-9bf9-f77b7e298cf2 cosmetics: Drop a bunch of unnecessary parentheses from big-endian check. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32300 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 5 insertions, 11 deletions
diff --git a/configure b/configure
index fbfb85cf76..305fa40ce5 100755
--- a/configure
+++ b/configure
@@ -115,9 +115,8 @@ EOF
compile_check $TMPC $@
}
-# this is a special check only to be
-# used for broken headers that do not
-# include all dependencies
+# This is a special check only to be used for broken headers that do not
+# include all dependencies.
header_check_broken() {
cat > $TMPC << EOF
#include <$1>
@@ -2332,9 +2331,8 @@ echocheck "byte order"
if test "$_big_endian" = auto ; then
cat > $TMPC <<EOF
short ascii_name[] = {
- (('M' << 8) | 'P'), (('l' << 8) | 'a'), (('y' << 8) | 'e'),
- (('r' << 8) | 'B'), (('i' << 8) | 'g'), (('E' << 8) | 'n'),
- (('d' << 8) | 'i'), (('a' << 8) | 'n'), 0 };
+ 'M' << 8 | 'P', 'l' << 8 | 'a', 'y' << 8 | 'e', 'r' << 8 | 'B',
+ 'i' << 8 | 'g', 'E' << 8 | 'n', 'd' << 8 | 'i', 'a' << 8 | 'n', 0 };
int main(void) { return (long)ascii_name; }
EOF
if cc_check ; then
@@ -3603,11 +3601,7 @@ echocheck "swab()"
cat > $TMPC << EOF
#define _XOPEN_SOURCE 600
#include <unistd.h>
-int main(void) {
- int a = 0, b = 0;
- swab(&a, &b, 0);
- return 0;
-}
+int main(void) { int a, b; swab(&a, &b, 0); return 0; }
EOF
_swab=no
cc_check && _swab=yes