Changeset 1bc850 in git


Ignore:
Timestamp:
Jul 8, 2009, 12:35:10 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6c359fedc4e4c176b05276f1ca51b65294a14b31
Parents:
4d10648d5056326751bd51ace1aada9cd81a993f
Message:
*hannes: arithmetic shifts


git-svn-id: file:///usr/local/Singular/svn/trunk@11960 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure

    r4d1064 r1bc850  
    36723672
    36733673# arithmetic shifts
    3674 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
    3675 echo "configure:3676: checking whether your machine has correct arithmetic shifts" >&5
    3676 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    3677   echo $ac_n "(cached) $ac_c" 1>&6
    3678 else
    3679   if test "$cross_compiling" = yes; then
    3680   if test "$ac_c_cross_dos" = yes; then
    3681      ac_cv_shift=yes;
    3682    else
    3683      echo "$ac_t""no" 1>&6
    3684      { echo "configure: error: cross compilation without default value" 1>&2; exit 1; }
    3685    fi
    3686 else
    3687   cat > conftest.$ac_ext <<EOF
    3688 #line 3689 "configure"
    3689 #include "confdefs.h"
    3690  int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    3691 EOF
    3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    3693 then
    3694   ac_cv_shift=yes
    3695 else
    3696   echo "configure: failed program was:" >&5
    3697   cat conftest.$ac_ext >&5
    3698   rm -fr conftest*
    3699   ac_cv_shift=no
    3700 fi
    3701 rm -fr conftest*
    3702 fi
    3703 
    3704 fi
    3705 
    3706 
    3707 if test "$ac_cv_shift" = yes; then
    3708   echo "$ac_t""yes" 1>&6
    3709 else
    3710   echo "$ac_t""no" 1>&6
    3711   { echo "configure: error: need  -2 >> 1 == -1" 1>&2; exit 1; }
    3712 fi
     3674#AC_MSG_CHECKING(whether your machine has correct arithmetic shifts)
     3675#AC_CACHE_VAL(ac_cv_shift, AC_TRY_RUN(
     3676#  [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     3677#   ac_cv_shift=yes,
     3678#   ac_cv_shift=no,
     3679#   if test "$ac_c_cross_dos" = yes; then
     3680#     ac_cv_shift=yes;
     3681#   else
     3682#     AC_MSG_RESULT(no)
     3683#     AC_MSG_ERROR(cross compilation without default value)
     3684#   fi))
     3685#
     3686#if test "$ac_cv_shift" = yes; then
     3687#  AC_MSG_RESULT(yes)
     3688#else
     3689#  AC_MSG_RESULT(no)
     3690#  AC_MSG_ERROR(need  -2 >> 1 == -1)
     3691#fi
    37133692
    37143693
    37153694# check for a peculiar constructor initialization
    37163695echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    3717 echo "configure:3718: checking whether explicit C++ constructor calls are allowed" >&5
     3696echo "configure:3697: checking whether explicit C++ constructor calls are allowed" >&5
    37183697
    37193698ac_ext=C
     
    37283707else
    37293708  cat > conftest.$ac_ext <<EOF
    3730 #line 3731 "configure"
     3709#line 3710 "configure"
    37313710#include "confdefs.h"
    37323711
     
    37463725; return 0; }
    37473726EOF
    3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3727if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    37493728  rm -rf conftest*
    37503729  ac_cv_explicit_const=yes
     
    37753754# sprintf returns number of printed chars
    37763755echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    3777 echo "configure:3778: checking whether vsprintf returns number of printed chars" >&5
     3756echo "configure:3757: checking whether vsprintf returns number of printed chars" >&5
    37783757if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    37793758  echo $ac_n "(cached) $ac_c" 1>&6
     
    37833762else
    37843763  cat > conftest.$ac_ext <<EOF
    3785 #line 3786 "configure"
     3764#line 3765 "configure"
    37863765#include "confdefs.h"
    37873766#include <stdio.h>
    37883767 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    37893768EOF
    3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3769if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    37913770then
    37923771  ac_cv_returns_n_of_chars=yes
     
    38143793# determine ALIGN_8
    38153794echo $ac_n "checking size of char""... $ac_c" 1>&6
    3816 echo "configure:3817: checking size of char" >&5
     3795echo "configure:3796: checking size of char" >&5
    38173796if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    38183797  echo $ac_n "(cached) $ac_c" 1>&6
     
    38223801else
    38233802  cat > conftest.$ac_ext <<EOF
    3824 #line 3825 "configure"
     3803#line 3804 "configure"
    38253804#include "confdefs.h"
    38263805#include <stdio.h>
     
    38333812}
    38343813EOF
    3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3814if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    38363815then
    38373816  ac_cv_sizeof_char=`cat conftestval`
     
    38533832
    38543833echo $ac_n "checking size of short""... $ac_c" 1>&6
    3855 echo "configure:3856: checking size of short" >&5
     3834echo "configure:3835: checking size of short" >&5
    38563835if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    38573836  echo $ac_n "(cached) $ac_c" 1>&6
     
    38613840else
    38623841  cat > conftest.$ac_ext <<EOF
    3863 #line 3864 "configure"
     3842#line 3843 "configure"
    38643843#include "confdefs.h"
    38653844#include <stdio.h>
     
    38723851}
    38733852EOF
    3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3853if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    38753854then
    38763855  ac_cv_sizeof_short=`cat conftestval`
     
    38923871
    38933872echo $ac_n "checking size of int""... $ac_c" 1>&6
    3894 echo "configure:3895: checking size of int" >&5
     3873echo "configure:3874: checking size of int" >&5
    38953874if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    38963875  echo $ac_n "(cached) $ac_c" 1>&6
     
    39003879else
    39013880  cat > conftest.$ac_ext <<EOF
    3902 #line 3903 "configure"
     3881#line 3882 "configure"
    39033882#include "confdefs.h"
    39043883#include <stdio.h>
     
    39113890}
    39123891EOF
    3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3892if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39143893then
    39153894  ac_cv_sizeof_int=`cat conftestval`
     
    39313910
    39323911echo $ac_n "checking size of long""... $ac_c" 1>&6
    3933 echo "configure:3934: checking size of long" >&5
     3912echo "configure:3913: checking size of long" >&5
    39343913if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    39353914  echo $ac_n "(cached) $ac_c" 1>&6
     
    39393918else
    39403919  cat > conftest.$ac_ext <<EOF
    3941 #line 3942 "configure"
     3920#line 3921 "configure"
    39423921#include "confdefs.h"
    39433922#include <stdio.h>
     
    39503929}
    39513930EOF
    3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3931if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39533932then
    39543933  ac_cv_sizeof_long=`cat conftestval`
     
    39703949
    39713950echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3972 echo "configure:3973: checking size of void*" >&5
     3951echo "configure:3952: checking size of void*" >&5
    39733952if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    39743953  echo $ac_n "(cached) $ac_c" 1>&6
     
    39783957else
    39793958  cat > conftest.$ac_ext <<EOF
    3980 #line 3981 "configure"
     3959#line 3960 "configure"
    39813960#include "confdefs.h"
    39823961#include <stdio.h>
     
    39893968}
    39903969EOF
    3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3970if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    39923971then
    39933972  ac_cv_sizeof_voidp=`cat conftestval`
     
    40093988
    40103989echo $ac_n "checking size of double""... $ac_c" 1>&6
    4011 echo "configure:4012: checking size of double" >&5
     3990echo "configure:3991: checking size of double" >&5
    40123991if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    40133992  echo $ac_n "(cached) $ac_c" 1>&6
     
    40173996else
    40183997  cat > conftest.$ac_ext <<EOF
    4019 #line 4020 "configure"
     3998#line 3999 "configure"
    40203999#include "confdefs.h"
    40214000#include <stdio.h>
     
    40284007}
    40294008EOF
    4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     4009if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    40314010then
    40324011  ac_cv_sizeof_double=`cat conftestval`
     
    40484027
    40494028echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    4050 echo "configure:4051: checking whether byte ordering is bigendian" >&5
     4029echo "configure:4030: checking whether byte ordering is bigendian" >&5
    40514030if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    40524031  echo $ac_n "(cached) $ac_c" 1>&6
     
    40554034# See if sys/param.h defines the BYTE_ORDER macro.
    40564035cat > conftest.$ac_ext <<EOF
    4057 #line 4058 "configure"
     4036#line 4037 "configure"
    40584037#include "confdefs.h"
    40594038#include <sys/types.h>
     
    40664045; return 0; }
    40674046EOF
    4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     4047if { (eval echo configure:4048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    40694048  rm -rf conftest*
    40704049  # It does; now see whether it defined to BIG_ENDIAN or not.
    40714050cat > conftest.$ac_ext <<EOF
    4072 #line 4073 "configure"
     4051#line 4052 "configure"
    40734052#include "confdefs.h"
    40744053#include <sys/types.h>
     
    40814060; return 0; }
    40824061EOF
    4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     4062if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    40844063  rm -rf conftest*
    40854064  ac_cv_c_bigendian=yes
     
    41014080else
    41024081  cat > conftest.$ac_ext <<EOF
    4103 #line 4104 "configure"
     4082#line 4083 "configure"
    41044083#include "confdefs.h"
    41054084main () {
     
    41144093}
    41154094EOF
    4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     4095if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    41174096then
    41184097  ac_cv_c_bigendian=no
     
    42684247
    42694248echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
    4270 echo "configure:4271: checking whether to use dynamic linking" >&5
     4249echo "configure:4250: checking whether to use dynamic linking" >&5
    42714250if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
    42724251  cat >> confdefs.h <<\EOF
     
    42814260
    42824261echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    4283 echo "configure:4284: checking for tgetent in -lncurses" >&5
     4262echo "configure:4263: checking for tgetent in -lncurses" >&5
    42844263ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    42854264if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42894268LIBS="-lncurses  $LIBS"
    42904269cat > conftest.$ac_ext <<EOF
    4291 #line 4292 "configure"
     4270#line 4271 "configure"
    42924271#include "confdefs.h"
    42934272/* Override any gcc2 internal prototype to avoid an error.  */
     
    43004279; return 0; }
    43014280EOF
    4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4281if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43034282  rm -rf conftest*
    43044283  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43274306\
    43284307 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    4329 echo "configure:4330: checking for tgetent in -lcurses" >&5
     4308echo "configure:4309: checking for tgetent in -lcurses" >&5
    43304309ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    43314310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43354314LIBS="-lcurses  $LIBS"
    43364315cat > conftest.$ac_ext <<EOF
    4337 #line 4338 "configure"
     4316#line 4317 "configure"
    43384317#include "confdefs.h"
    43394318/* Override any gcc2 internal prototype to avoid an error.  */
     
    43464325; return 0; }
    43474326EOF
    4348 if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4327if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43494328  rm -rf conftest*
    43504329  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43734352\
    43744353  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    4375 echo "configure:4376: checking for tgetent in -ltermcap" >&5
     4354echo "configure:4355: checking for tgetent in -ltermcap" >&5
    43764355ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    43774356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43814360LIBS="-ltermcap  $LIBS"
    43824361cat > conftest.$ac_ext <<EOF
    4383 #line 4384 "configure"
     4362#line 4363 "configure"
    43844363#include "confdefs.h"
    43854364/* Override any gcc2 internal prototype to avoid an error.  */
     
    43924371; return 0; }
    43934372EOF
    4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4373if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43954374  rm -rf conftest*
    43964375  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44414420
    44424421   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    4443 echo "configure:4444: checking for rl_abort in -lreadline" >&5
     4422echo "configure:4423: checking for rl_abort in -lreadline" >&5
    44444423ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    44454424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    44494428LIBS="-lreadline  $LIBS"
    44504429cat > conftest.$ac_ext <<EOF
    4451 #line 4452 "configure"
     4430#line 4431 "configure"
    44524431#include "confdefs.h"
    44534432/* Override any gcc2 internal prototype to avoid an error.  */
     
    44634442; return 0; }
    44644443EOF
    4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4444if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    44664445  rm -rf conftest*
    44674446  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44914470
    44924471   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    4493 echo "configure:4494: checking how to run the C++ preprocessor" >&5
     4472echo "configure:4473: checking how to run the C++ preprocessor" >&5
    44944473if test -z "$CXXCPP"; then
    44954474if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    45044483  CXXCPP="${CXX-g++} -E"
    45054484  cat > conftest.$ac_ext <<EOF
    4506 #line 4507 "configure"
     4485#line 4486 "configure"
    45074486#include "confdefs.h"
    45084487#include <stdlib.h>
    45094488EOF
    45104489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4511 { (eval echo configure:4512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4490{ (eval echo configure:4491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    45124491ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    45134492if test -z "$ac_err"; then
     
    45374516ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    45384517echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4539 echo "configure:4540: checking for $ac_hdr" >&5
     4518echo "configure:4519: checking for $ac_hdr" >&5
    45404519if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    45414520  echo $ac_n "(cached) $ac_c" 1>&6
    45424521else
    45434522  cat > conftest.$ac_ext <<EOF
    4544 #line 4545 "configure"
     4523#line 4524 "configure"
    45454524#include "confdefs.h"
    45464525#include <$ac_hdr>
    45474526EOF
    45484527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4549 { (eval echo configure:4550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4528{ (eval echo configure:4529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    45504529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    45514530if test -z "$ac_err"; then
     
    45764555      test "$ac_cv_header_readline_readline_h" = yes; then
    45774556     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    4578 echo "configure:4579: checking whether readline.h is ok" >&5
     4557echo "configure:4558: checking whether readline.h is ok" >&5
    45794558     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    45804559  echo $ac_n "(cached) $ac_c" 1>&6
    45814560else
    45824561  cat > conftest.$ac_ext <<EOF
    4583 #line 4584 "configure"
     4562#line 4563 "configure"
    45844563#include "confdefs.h"
    45854564#include<unistd.h>
     
    45944573; return 0; }
    45954574EOF
    4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4575if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    45974576  rm -rf conftest*
    45984577  ac_cv_header_readline_readline_h_ok="yes"
     
    46104589#not ok -- try once more with explicitly declaring everything
    46114590      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    4612 echo "configure:4613: checking whether or not we nevertheless can use readline" >&5
     4591echo "configure:4592: checking whether or not we nevertheless can use readline" >&5
    46134592      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    46144593  echo $ac_n "(cached) $ac_c" 1>&6
    46154594else
    46164595  cat > conftest.$ac_ext <<EOF
    4617 #line 4618 "configure"
     4596#line 4597 "configure"
    46184597#include "confdefs.h"
    46194598#include <stdio.h>
     
    46494628; return 0; }
    46504629EOF
    4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4630if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    46524631  rm -rf conftest*
    46534632  ac_cv_have_readline="yes"
     
    46884667
    46894668echo $ac_n "checking which readline to use""... $ac_c" 1>&6
    4690 echo "configure:4691: checking which readline to use" >&5
     4669echo "configure:4670: checking which readline to use" >&5
    46914670if test "$ac_cv_with_readline" = dynamic; then
    46924671  echo "$ac_t""dynamic" 1>&6
     
    47084687# gmp, MP, MPT, factory, libfac
    47094688echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    4710 echo "configure:4711: checking for main in -lgmp" >&5
     4689echo "configure:4690: checking for main in -lgmp" >&5
    47114690ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    47124691if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47164695LIBS="-lgmp  $LIBS"
    47174696cat > conftest.$ac_ext <<EOF
    4718 #line 4719 "configure"
     4697#line 4698 "configure"
    47194698#include "confdefs.h"
    47204699
     
    47234702; return 0; }
    47244703EOF
    4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4704if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    47264705  rm -rf conftest*
    47274706  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47524731SAVE_LIBS=$LIBS
    47534732echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4754 echo "configure:4755: checking for IMP_PutGmpInt in -lMP" >&5
     4733echo "configure:4734: checking for IMP_PutGmpInt in -lMP" >&5
    47554734ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    47564735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    47604739LIBS="-lMP $MP_LIBS $LIBS"
    47614740cat > conftest.$ac_ext <<EOF
    4762 #line 4763 "configure"
     4741#line 4742 "configure"
    47634742#include "confdefs.h"
    47644743/* Override any gcc2 internal prototype to avoid an error.  */
     
    47714750; return 0; }
    47724751EOF
    4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4752if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    47744753  rm -rf conftest*
    47754754  eval "ac_cv_lib_$ac_lib_var=yes"
     
    47994778
    48004779echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4801 echo "configure:4802: checking for MPT_GetTree in -lMPT" >&5
     4780echo "configure:4781: checking for MPT_GetTree in -lMPT" >&5
    48024781ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    48034782if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    48074786LIBS="-lMPT $MP_LIBS $LIBS"
    48084787cat > conftest.$ac_ext <<EOF
    4809 #line 4810 "configure"
     4788#line 4789 "configure"
    48104789#include "confdefs.h"
    48114790/* Override any gcc2 internal prototype to avoid an error.  */
     
    48184797; return 0; }
    48194798EOF
    4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4799if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48214800  rm -rf conftest*
    48224801  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48474826LIBS=$SAVE_LIBS
    48484827echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4849 echo "configure:4850: checking for atof in -lsingcf" >&5
     4828echo "configure:4829: checking for atof in -lsingcf" >&5
    48504829ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    48514830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    48554834LIBS="-lsingcf  $LIBS"
    48564835cat > conftest.$ac_ext <<EOF
    4857 #line 4858 "configure"
     4836#line 4837 "configure"
    48584837#include "confdefs.h"
    48594838/* Override any gcc2 internal prototype to avoid an error.  */
     
    48664845; return 0; }
    48674846EOF
    4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4847if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    48694848  rm -rf conftest*
    48704849  eval "ac_cv_lib_$ac_lib_var=yes"
     
    48944873
    48954874echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4896 echo "configure:4897: checking for atof in -lsingfac" >&5
     4875echo "configure:4876: checking for atof in -lsingfac" >&5
    48974876ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    48984877if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    49024881LIBS="-lsingfac  $LIBS"
    49034882cat > conftest.$ac_ext <<EOF
    4904 #line 4905 "configure"
     4883#line 4884 "configure"
    49054884#include "confdefs.h"
    49064885/* Override any gcc2 internal prototype to avoid an error.  */
     
    49134892; return 0; }
    49144893EOF
    4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4894if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    49164895  rm -rf conftest*
    49174896  eval "ac_cv_lib_$ac_lib_var=yes"
     
    49414920
    49424921echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
    4943 echo "configure:4944: checking for omTestAddr in -lomalloc" >&5
     4922echo "configure:4923: checking for omTestAddr in -lomalloc" >&5
    49444923ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
    49454924if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    49494928LIBS="-lomalloc  $LIBS"
    49504929cat > conftest.$ac_ext <<EOF
    4951 #line 4952 "configure"
     4930#line 4931 "configure"
    49524931#include "confdefs.h"
    49534932/* Override any gcc2 internal prototype to avoid an error.  */
     
    49604939; return 0; }
    49614940EOF
    4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4941if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    49634942  rm -rf conftest*
    49644943  eval "ac_cv_lib_$ac_lib_var=yes"
     
    49884967
    49894968echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
    4990 echo "configure:4991: checking for main in -lomalloc_ndebug" >&5
     4969echo "configure:4970: checking for main in -lomalloc_ndebug" >&5
    49914970ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
    49924971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    49964975LIBS="-lomalloc_ndebug  $LIBS"
    49974976cat > conftest.$ac_ext <<EOF
    4998 #line 4999 "configure"
     4977#line 4978 "configure"
    49994978#include "confdefs.h"
    50004979
     
    50034982; return 0; }
    50044983EOF
    5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4984if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    50064985  rm -rf conftest*
    50074986  eval "ac_cv_lib_$ac_lib_var=yes"
     
    50315010
    50325011echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6
    5033 echo "configure:5034: checking for main in -lntl" >&5
     5012echo "configure:5013: checking for main in -lntl" >&5
    50345013ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'`
    50355014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    50395018LIBS="-lntl  $LIBS"
    50405019cat > conftest.$ac_ext <<EOF
    5041 #line 5042 "configure"
     5020#line 5021 "configure"
    50425021#include "confdefs.h"
    50435022
     
    50465025; return 0; }
    50475026EOF
    5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     5027if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    50495028  rm -rf conftest*
    50505029  eval "ac_cv_lib_$ac_lib_var=yes"
     
    50795058ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    50805059echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    5081 echo "configure:5082: checking for $ac_hdr" >&5
     5060echo "configure:5061: checking for $ac_hdr" >&5
    50825061if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    50835062  echo $ac_n "(cached) $ac_c" 1>&6
    50845063else
    50855064  cat > conftest.$ac_ext <<EOF
    5086 #line 5087 "configure"
     5065#line 5066 "configure"
    50875066#include "confdefs.h"
    50885067#include <$ac_hdr>
    50895068EOF
    50905069ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    5091 { (eval echo configure:5092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     5070{ (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    50925071ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    50935072if test -z "$ac_err"; then
     
    51175096
    51185097echo $ac_n "checking whether to use Boost""... $ac_c" 1>&6
    5119 echo "configure:5120: checking whether to use Boost" >&5
     5098echo "configure:5099: checking whether to use Boost" >&5
    51205099if test "$with_Boost" != no; then
    51215100  echo "$ac_t""yes" 1>&6
     
    51325111ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    51335112echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    5134 echo "configure:5135: checking for $ac_hdr" >&5
     5113echo "configure:5114: checking for $ac_hdr" >&5
    51355114if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    51365115  echo $ac_n "(cached) $ac_c" 1>&6
    51375116else
    51385117  cat > conftest.$ac_ext <<EOF
    5139 #line 5140 "configure"
     5118#line 5119 "configure"
    51405119#include "confdefs.h"
    51415120#include <$ac_hdr>
    51425121EOF
    51435122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    5144 { (eval echo configure:5145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     5123{ (eval echo configure:5124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    51455124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    51465125if test -z "$ac_err"; then
     
    51785157  echo "$ac_t""no" 1>&6
    51795158  echo $ac_n "checking whether to use std::vector""... $ac_c" 1>&6
    5180 echo "configure:5181: checking whether to use std::vector" >&5
     5159echo "configure:5160: checking whether to use std::vector" >&5
    51815160  if test "$with_stdvec" != yes; then
    51825161    echo "$ac_t""no" 1>&6
     
    52275206SAVE_LIBS=$LIBS
    52285207echo $ac_n "checking for __stack_chk_fail_local in -lc_nonshared""... $ac_c" 1>&6
    5229 echo "configure:5230: checking for __stack_chk_fail_local in -lc_nonshared" >&5
     5208echo "configure:5209: checking for __stack_chk_fail_local in -lc_nonshared" >&5
    52305209ac_lib_var=`echo c_nonshared'_'__stack_chk_fail_local | sed 'y%./+-%__p_%'`
    52315210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    52355214LIBS="-lc_nonshared  $LIBS"
    52365215cat > conftest.$ac_ext <<EOF
    5237 #line 5238 "configure"
     5216#line 5217 "configure"
    52385217#include "confdefs.h"
    52395218/* Override any gcc2 internal prototype to avoid an error.  */
     
    52465225; return 0; }
    52475226EOF
    5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     5227if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    52495228  rm -rf conftest*
    52505229  eval "ac_cv_lib_$ac_lib_var=yes"
     
    52765255
    52775256echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    5278 echo "configure:5279: checking which apint package to use" >&5
     5257echo "configure:5258: checking which apint package to use" >&5
    52795258if test "${with_apint}" != gmp; then
    52805259  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    52985277
    52995278echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6
    5300 echo "configure:5301: checking whether to use libsvd" >&5
     5279echo "configure:5280: checking whether to use libsvd" >&5
    53015280if test "$with_svd" = yes; then
    53025281  echo "$ac_t""yes" 1>&6
     
    53135292#
    53145293echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    5315 echo "configure:5316: checking whether to have MP" >&5
     5294echo "configure:5295: checking whether to have MP" >&5
    53165295if test "${with_MP}" != yes && test "${with_MP}" != no; then
    53175296  if (test "${will_have_gmp}" = yes) && \
     
    53485327
    53495328echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
    5350 echo "configure:5351: checking whether to have NTL" >&5
     5329echo "configure:5330: checking whether to have NTL" >&5
    53515330if test "${with_NTL}" = yes ; then
    53525331  echo "$ac_t""yes" 1>&6
     
    53575336
    53585337echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    5359 echo "configure:5360: checking whether to have factory" >&5
     5338echo "configure:5339: checking whether to have factory" >&5
    53605339if test "${with_factory}" != yes && test "${with_factory}" != no; then
    53615340  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    53885367
    53895368echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    5390 echo "configure:5391: checking whether to have libfac" >&5
     5369echo "configure:5370: checking whether to have libfac" >&5
    53915370if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    53925371  if (test "${will_have_factory}" = yes) && \
     
    54305409
    54315410echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    5432 echo "configure:5433: checking whether to have dbm links" >&5
     5411echo "configure:5412: checking whether to have dbm links" >&5
    54335412if test "$with_dbm" != no; then
    54345413  cat >> confdefs.h <<\EOF
     
    54425421
    54435422echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    5444 echo "configure:5445: checking whether to have namespaces" >&5
     5423echo "configure:5424: checking whether to have namespaces" >&5
    54455424if test "$with_namespaces" != no; then
    54465425  echo "$ac_t""yes" 1>&6
     
    54545433
    54555434echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    5456 echo "configure:5457: checking whether to have dynamic modules" >&5
     5435echo "configure:5436: checking whether to have dynamic modules" >&5
    54575436if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    54585437  echo "$ac_t""no" 1>&6
     
    54665445
    54675446echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    5468 echo "configure:5469: checking whether to have dynamic kernel" >&5
     5447echo "configure:5448: checking whether to have dynamic kernel" >&5
    54695448if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    54705449  DL_KERNEL=1
     
    54765455
    54775456echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    5478 echo "configure:5479: checking whether to have Plural" >&5
     5457echo "configure:5458: checking whether to have Plural" >&5
    54795458if test "$with_Plural" != no && test "$enable_Plural" != no; then
    54805459  cat >> confdefs.h <<\EOF
     
    54905469
    54915470echo $ac_n "checking whether to have ratGB""... $ac_c" 1>&6
    5492 echo "configure:5493: checking whether to have ratGB" >&5
     5471echo "configure:5472: checking whether to have ratGB" >&5
    54935472if test "$with_ratGB" != yes && test "$enable_ratGB" != yes; then
    54945473  echo "$ac_t""no" 1>&6
  • Singular/configure.in

    r4d1064 r1bc850  
    526526
    527527# arithmetic shifts
    528 AC_MSG_CHECKING(whether your machine has correct arithmetic shifts)
    529 AC_CACHE_VAL(ac_cv_shift, AC_TRY_RUN(
    530   [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
    531    ac_cv_shift=yes,
    532    ac_cv_shift=no,
    533    if test "$ac_c_cross_dos" = yes; then
    534      ac_cv_shift=yes;
    535    else
    536      AC_MSG_RESULT(no)
    537      AC_MSG_ERROR(cross compilation without default value)
    538    fi))
    539 
    540 if test "$ac_cv_shift" = yes; then
    541   AC_MSG_RESULT(yes)
    542 else
    543   AC_MSG_RESULT(no)
    544   AC_MSG_ERROR(need  -2 >> 1 == -1)
    545 fi
     528#AC_MSG_CHECKING(whether your machine has correct arithmetic shifts)
     529#AC_CACHE_VAL(ac_cv_shift, AC_TRY_RUN(
     530#  [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     531#   ac_cv_shift=yes,
     532#   ac_cv_shift=no,
     533#   if test "$ac_c_cross_dos" = yes; then
     534#     ac_cv_shift=yes;
     535#   else
     536#     AC_MSG_RESULT(no)
     537#     AC_MSG_ERROR(cross compilation without default value)
     538#   fi))
     539#
     540#if test "$ac_cv_shift" = yes; then
     541#  AC_MSG_RESULT(yes)
     542#else
     543#  AC_MSG_RESULT(no)
     544#  AC_MSG_ERROR(need  -2 >> 1 == -1)
     545#fi
    546546
    547547
  • factory/configure

    r4d1064 r1bc850  
    17401740
    17411741# arithmetic shift
    1742 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
    1743 echo "configure:1744: checking whether your compiler does arithmetic shifts" >&5
    1744 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    1745   echo $ac_n "(cached) $ac_c" 1>&6
    1746 else
    1747    LDFLAGS="-L$explicit_libdir $LDFLAGS"
    1748         if test "$cross_compiling" = yes; then
    1749   ac_cv_shift=yes
    1750 else
    1751   cat > conftest.$ac_ext <<EOF
    1752 #line 1753 "configure"
    1753 #include "confdefs.h"
    1754  int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    1755 EOF
    1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1757 then
    1758   ac_cv_shift=yes
    1759 else
    1760   echo "configure: failed program was:" >&5
    1761   cat conftest.$ac_ext >&5
    1762   rm -fr conftest*
    1763   ac_cv_shift=no
    1764 fi
    1765 rm -fr conftest*
    1766 fi
    1767  
    1768 fi
    1769 
    1770 if test "x$ac_cv_shift" = xyes; then   
    1771   echo "$ac_t""yes" 1>&6
    1772 else
    1773   echo "$ac_t""no" 1>&6
    1774 fi
     1742#AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
     1743#AC_CACHE_VAL(ac_cv_shift,
     1744#  [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
     1745#       AC_TRY_RUN(
     1746#      [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     1747#      ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
     1748#if test "x$ac_cv_shift" = xyes; then   
     1749#  AC_MSG_RESULT(yes)
     1750#else
     1751#  AC_MSG_RESULT(no)
     1752#fi
    17751753
    17761754#
     
    17901768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17911769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1792 echo "configure:1793: checking for $ac_hdr" >&5
     1770echo "configure:1771: checking for $ac_hdr" >&5
    17931771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17941772  echo $ac_n "(cached) $ac_c" 1>&6
    17951773else
    17961774  cat > conftest.$ac_ext <<EOF
    1797 #line 1798 "configure"
     1775#line 1776 "configure"
    17981776#include "confdefs.h"
    17991777#include <$ac_hdr>
    18001778EOF
    18011779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1780{ (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18031781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18041782if test -z "$ac_err"; then
     
    18311809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18321810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1833 echo "configure:1834: checking for $ac_hdr" >&5
     1811echo "configure:1812: checking for $ac_hdr" >&5
    18341812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18351813  echo $ac_n "(cached) $ac_c" 1>&6
    18361814else
    18371815  cat > conftest.$ac_ext <<EOF
    1838 #line 1839 "configure"
     1816#line 1817 "configure"
    18391817#include "confdefs.h"
    18401818#include <$ac_hdr>
    18411819EOF
    18421820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1821{ (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18441822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18451823if test -z "$ac_err"; then
     
    18791857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    18801858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1881 echo "configure:1882: checking for $ac_hdr" >&5
     1859echo "configure:1860: checking for $ac_hdr" >&5
    18821860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    18831861  echo $ac_n "(cached) $ac_c" 1>&6
    18841862else
    18851863  cat > conftest.$ac_ext <<EOF
    1886 #line 1887 "configure"
     1864#line 1865 "configure"
    18871865#include "confdefs.h"
    18881866#include <$ac_hdr>
    18891867EOF
    18901868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1869{ (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18921870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18931871if test -z "$ac_err"; then
     
    19201898ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19211899echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1922 echo "configure:1923: checking for $ac_hdr" >&5
     1900echo "configure:1901: checking for $ac_hdr" >&5
    19231901if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19241902  echo $ac_n "(cached) $ac_c" 1>&6
    19251903else
    19261904  cat > conftest.$ac_ext <<EOF
    1927 #line 1928 "configure"
     1905#line 1906 "configure"
    19281906#include "confdefs.h"
    19291907#include <$ac_hdr>
    19301908EOF
    19311909ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1910{ (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19331911ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19341912if test -z "$ac_err"; then
     
    19621940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19631941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1964 echo "configure:1965: checking for $ac_hdr" >&5
     1942echo "configure:1943: checking for $ac_hdr" >&5
    19651943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19661944  echo $ac_n "(cached) $ac_c" 1>&6
    19671945else
    19681946  cat > conftest.$ac_ext <<EOF
    1969 #line 1970 "configure"
     1947#line 1948 "configure"
    19701948#include "confdefs.h"
    19711949#include <$ac_hdr>
    19721950EOF
    19731951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1974 { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1952{ (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19751953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19761954if test -z "$ac_err"; then
     
    20021980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20031981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for $ac_hdr" >&5
     1982echo "configure:1983: checking for $ac_hdr" >&5
    20051983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20061984  echo $ac_n "(cached) $ac_c" 1>&6
    20071985else
    20081986  cat > conftest.$ac_ext <<EOF
    2009 #line 2010 "configure"
     1987#line 1988 "configure"
    20101988#include "confdefs.h"
    20111989#include <$ac_hdr>
    20121990EOF
    20131991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2014 { (eval echo configure:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1992{ (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20151993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20161994if test -z "$ac_err"; then
     
    20462024ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20472025echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2048 echo "configure:2049: checking for $ac_hdr" >&5
     2026echo "configure:2027: checking for $ac_hdr" >&5
    20492027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20502028  echo $ac_n "(cached) $ac_c" 1>&6
    20512029else
    20522030  cat > conftest.$ac_ext <<EOF
    2053 #line 2054 "configure"
     2031#line 2032 "configure"
    20542032#include "confdefs.h"
    20552033#include <$ac_hdr>
    20562034EOF
    20572035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2036{ (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20592037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    20602038if test -z "$ac_err"; then
     
    20922070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20932071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2094 echo "configure:2095: checking for $ac_hdr" >&5
     2072echo "configure:2073: checking for $ac_hdr" >&5
    20952073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    20962074  echo $ac_n "(cached) $ac_c" 1>&6
    20972075else
    20982076  cat > conftest.$ac_ext <<EOF
    2099 #line 2100 "configure"
     2077#line 2078 "configure"
    21002078#include "confdefs.h"
    21012079#include <$ac_hdr>
    21022080EOF
    21032081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2082{ (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21052083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21062084if test -z "$ac_err"; then
     
    21362114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    21372115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2138 echo "configure:2139: checking for $ac_hdr" >&5
     2116echo "configure:2117: checking for $ac_hdr" >&5
    21392117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    21402118  echo $ac_n "(cached) $ac_c" 1>&6
    21412119else
    21422120  cat > conftest.$ac_ext <<EOF
    2143 #line 2144 "configure"
     2121#line 2122 "configure"
    21442122#include "confdefs.h"
    21452123#include <$ac_hdr>
    21462124EOF
    21472125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2126{ (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21492127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21502128if test -z "$ac_err"; then
     
    22632241# check whether CXX accepts -fno-rtti
    22642242echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
    2265 echo "configure:2266: checking whether gcc accepts -fno-rtti" >&5
     2243echo "configure:2244: checking whether gcc accepts -fno-rtti" >&5
    22662244tmp_flags=${CXXFLAGS}
    22672245CXXFLAGS="${CXXFLAGS} -fno-rtti"
     
    22702248else
    22712249  cat > conftest.$ac_ext <<EOF
    2272 #line 2273 "configure"
     2250#line 2251 "configure"
    22732251#include "confdefs.h"
    22742252
     
    22772255; return 0; }
    22782256EOF
    2279 if { (eval echo configure:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2257if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22802258  rm -rf conftest*
    22812259  ac_cv_cxx_have_rtti=yes
     
    22972275
    22982276echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
    2299 echo "configure:2300: checking whether gcc accepts -fno-exceptions" >&5
     2277echo "configure:2278: checking whether gcc accepts -fno-exceptions" >&5
    23002278tmp_flags=${CXXFLAGS}
    23012279CXXFLAGS="${CXXFLAGS} -fno-exceptions"
     
    23042282else
    23052283  cat > conftest.$ac_ext <<EOF
    2306 #line 2307 "configure"
     2284#line 2285 "configure"
    23072285#include "confdefs.h"
    23082286
     
    23112289; return 0; }
    23122290EOF
    2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2291if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23142292  rm -rf conftest*
    23152293  ac_cv_cxx_have_exceptions=yes
     
    23622340
    23632341# arithmetic shift
    2364 if test "x$ac_cv_shift" = xyes; then   
    2365   cat >> confdefs.h <<\EOF
    2366 #define HAS_ARITHMETIC_SHIFT 1
    2367 EOF
    2368 
    2369 fi
     2342#if test "x$ac_cv_shift" = xyes; then   
     2343#  AC_DEFINE(HAS_ARITHMETIC_SHIFT)
     2344#fi
    23702345
    23712346# gmp-stuff.  we must not set these flags before the tests
     
    23792354
    23802355echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6
    2381 echo "configure:2382: checking whether to use omalloc" >&5
     2356echo "configure:2357: checking whether to use omalloc" >&5
    23822357
    23832358if test "$with_omalloc" = yes; then
  • factory/configure.in

    r4d1064 r1bc850  
    11dnl # emacs edit mode for this file is -*- sh -*-
    2 dnl # $Id: configure.in,v 1.50 2009-07-07 11:11:08 Singular Exp $
     2dnl # $Id: configure.in,v 1.51 2009-07-08 10:33:15 Singular Exp $
    33
    44dnl #
     
    1313# - initialisation.
    1414#
    15 AC_REVISION($Id: configure.in,v 1.50 2009-07-07 11:11:08 Singular Exp $)
     15AC_REVISION($Id: configure.in,v 1.51 2009-07-08 10:33:15 Singular Exp $)
    1616AC_INIT(canonicalform.cc)
    1717AC_CONFIG_HEADER(config.h)
     
    248248
    249249# arithmetic shift
    250 AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
    251 AC_CACHE_VAL(ac_cv_shift,
    252   [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
    253         AC_TRY_RUN(
    254       [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
    255       ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
    256 if test "x$ac_cv_shift" = xyes; then   
    257   AC_MSG_RESULT(yes)
    258 else
    259   AC_MSG_RESULT(no)
    260 fi
     250#AC_MSG_CHECKING(whether your compiler does arithmetic shifts)
     251#AC_CACHE_VAL(ac_cv_shift,
     252#  [ LDFLAGS="-L$explicit_libdir $LDFLAGS"
     253#       AC_TRY_RUN(
     254#      [ int main() { if (-2 >> 1 == -1) return(0); else return(1); } ],
     255#      ac_cv_shift=yes, ac_cv_shift=no, ac_cv_shift=yes) ])
     256#if test "x$ac_cv_shift" = xyes; then   
     257#  AC_MSG_RESULT(yes)
     258#else
     259#  AC_MSG_RESULT(no)
     260#fi
    261261
    262262#
     
    423423
    424424# arithmetic shift
    425 if test "x$ac_cv_shift" = xyes; then   
    426   AC_DEFINE(HAS_ARITHMETIC_SHIFT)
    427 fi
     425#if test "x$ac_cv_shift" = xyes; then   
     426#  AC_DEFINE(HAS_ARITHMETIC_SHIFT)
     427#fi
    428428
    429429# gmp-stuff.  we must not set these flags before the tests
  • factory/imm.h

    r4d1064 r1bc850  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: imm.h,v 1.23 2006-05-26 11:49:58 Singular Exp $ */
     2/* $Id: imm.h,v 1.24 2009-07-08 10:35:10 Singular Exp $ */
    33
    44#ifndef INCL_IMM_H
     
    4242
    4343//{{{ conversion functions
    44 #ifdef HAS_ARITHMETIC_SHIFT
     44//#ifdef HAS_ARITHMETIC_SHIFT
     45#if 1
    4546
    4647inline int imm2int ( const InternalCF * const imm )
Note: See TracChangeset for help on using the changeset viewer.