Changeset 2998 for rat/trunk/configure

Show
Ignore:
Timestamp:
12/04/99 12:52:26 (15 years ago)
Author:
ucacoxh
Message:

- Added SASR test to configure.in
- Added GSM defines to configure.in

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/configure

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