| | 3565 | |
| | 3566 | # GSM flag checks |
| | 3567 | #----------------------------------------------------------------------------- |
| | 3568 | # Check if Signed arithmetic shift right (SASR). If SASR then -1 >> 1 == 1. |
| | 3569 | # Return value from test program of zero indicates success. |
| | 3570 | #----------------------------------------------------------------------------- |
| | 3571 | echo $ac_n "checking signed arithmetic shift right""... $ac_c" 1>&6 |
| | 3572 | echo "configure:3573: checking signed arithmetic shift right" >&5 |
| | 3573 | if eval "test \"`echo '$''{'gsm_cv_sasr'+set}'`\" = set"; then |
| | 3574 | echo $ac_n "(cached) $ac_c" 1>&6 |
| | 3575 | else |
| | 3576 | if test "$cross_compiling" = yes; then |
| | 3577 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| | 3578 | else |
| | 3579 | cat > conftest.$ac_ext <<EOF |
| | 3580 | #line 3581 "configure" |
| | 3581 | #include "confdefs.h" |
| | 3582 | int main() { return (-1 >> 1) != -1;} |
| | 3583 | EOF |
| | 3584 | if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| | 3585 | then |
| | 3586 | gsm_cv_sasr=yes |
| | 3587 | else |
| | 3588 | echo "configure: failed program was:" >&5 |
| | 3589 | cat conftest.$ac_ext >&5 |
| | 3590 | rm -fr conftest* |
| | 3591 | gsm_cv_sasr=no |
| | 3592 | fi |
| | 3593 | rm -fr conftest* |
| | 3594 | fi |
| | 3595 | |
| | 3596 | fi |
| | 3597 | |
| | 3598 | echo "$ac_t""$gsm_cv_sasr" 1>&6 |
| | 3599 | if test $gsm_cv_sasr = yes ; then |
| | 3600 | cat >> confdefs.h <<\EOF |
| | 3601 | #define SASR 1 |
| | 3602 | EOF |
| | 3603 | |
| | 3604 | fi |
| | 3605 | #----------------------------------------------------------------------------- |
| | 3606 | # GSM Options, almost certainly not sensible on all platforms, performance |
| | 3607 | # tests in a configure script ? |
| | 3608 | #----------------------------------------------------------------------------- |
| | 3609 | cat >> confdefs.h <<\EOF |
| | 3610 | #define FAST 1 |
| | 3611 | EOF |
| | 3612 | |
| | 3613 | cat >> confdefs.h <<\EOF |
| | 3614 | #define USE_FLOAT_MUL 1 |
| | 3615 | EOF |
| | 3616 | |