Revision df5e3978 configure

View differences:

configure
1985 1985
void foo(void) { __asm__ volatile ("" ::); }
1986 1986
EOF
1987 1987

  
1988
_restrict=
1989
for restrict_keyword in restrict __restrict__ __restrict; do
1990
    check_cc <<EOF && _restrict=$restrict_keyword && break
1991
void foo(char * $restrict_keyword p);
1992
EOF
1993
done
1994

  
1995
check_cc <<EOF && enable attribute_packed
1996
struct { int x; } __attribute__((packed)) x;
1997
EOF
1998

  
1999
check_cc <<EOF || die "endian test failed"
2000
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
2001
EOF
2002
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
2003

  
1988 2004
if enabled arm; then
1989 2005
    check_ld <<EOF && enable vfp_args
1990 2006
__asm__ (".eabi_attribute 28, 1");
......
2078 2094
    disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }
2079 2095
fi
2080 2096

  
2081
check_cc <<EOF || die "endian test failed"
2082
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
2083
EOF
2084
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
2085

  
2086 2097
if check_func dlopen; then
2087 2098
    ldl=
2088 2099
elif check_func dlopen -ldl; then
......
2194 2205
    die "ERROR: No version of libdc1394 found "
2195 2206
fi
2196 2207

  
2197

  
2198
_restrict=
2199
for restrict_keyword in restrict __restrict__ __restrict; do
2200
    check_cc <<EOF && _restrict=$restrict_keyword && break
2201
void foo(char * $restrict_keyword p);
2202
EOF
2203
done
2204

  
2205
check_cc <<EOF && enable attribute_packed
2206
struct { int x; } __attribute__((packed)) x;
2207
EOF
2208

  
2209 2208
disable sdl_too_old
2210 2209
disable sdl
2211 2210
SDL_CONFIG="${cross_prefix}sdl-config"

Also available in: Unified diff