Revision f65883c8

View differences:

configure
525 525
    check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC
526 526
}
527 527

  
528
check_as(){
529
    log check_as "$@"
530
    cat > $TMPC
531
    log_file $TMPC
532
    check_cmd $as $CFLAGS "$@" -c -o $TMPO $TMPC
533
}
534

  
528 535
check_asm(){
529 536
    log check_asm "$@"
530 537
    name="$1"
531 538
    asm="$2"
532 539
    shift 2
533
    check_cc "$@" <<EOF && enable $name || disable $name
540
    check_as "$@" <<EOF && enable $name || disable $name
534 541
void foo(void){ __asm__ volatile($asm); }
535 542
EOF
536 543
}
......
1798 1805
sym=$($nm -P -g $TMPO | grep ff_extern)
1799 1806
extern_prefix=${sym%%ff_extern*}
1800 1807

  
1801
check_asm inline_asm '""'
1808
check_cc <<EOF && enable inline_asm
1809
void foo(void) { __asm__ volatile ("" ::); }
1810
EOF
1802 1811

  
1803 1812
if enabled x86; then
1804 1813
    # check whether EBP is available on x86

Also available in: Unified diff