Changeset 4d7834 in git


Ignore:
Timestamp:
Nov 8, 2002, 2:28:44 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
451d80f18c1cbefa75c06e66f8c1c26d3a60a34d
Parents:
77902fb464a01730079e45070e95c7f14299670e
Message:
*hannes: NTL


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

Legend:

Unmodified
Added
Removed
  • Singular/clapsing.cc

    r77902f r4d7834  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.79 2002-01-20 09:20:19 Singular Exp $
     5// $Id: clapsing.cc,v 1.80 2002-11-08 13:28:44 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    2323#ifdef HAVE_LIBFAC_P
    2424#include <factor.h>
    25 CanonicalForm algcd(const CanonicalForm & F, const CanonicalForm & g, const CFList & as, const Varlist & order);
    26 
     25//CanonicalForm algcd(const CanonicalForm & F, const CanonicalForm & g, const CFList & as, const Varlist & order);
     26CanonicalForm alg_gcd(const CanonicalForm &, const CanonicalForm &, const CFList &);
    2727#endif
    2828#include "ring.h"
     
    232232      //  WerrorS( feNotImplemented );
    233233        CanonicalForm mipo=convSingTrClapP(((lnumber)currRing->minpoly)->z);
    234         Varlist ord;
    235         ord.append(mipo.mvar());
    236         CFList as(mipo);
    237         Variable a=rootOf(mipo);
    238         CanonicalForm F( convSingAPClapAP( f,a ) ), G( convSingAPClapAP( g,a ) );
    239         res= convClapAPSingAP( algcd( F, G, as, ord) );
     234        //Varlist ord;
     235        //ord.append(mipo.mvar());
     236        CFList as(mipo);
     237        Variable a=rootOf(mipo);
     238        //CanonicalForm F( convSingAPClapAP( f,a ) ), G( convSingAPClapAP( g,a ) );
     239        CanonicalForm F( convSingTrPClapP(f) ), G( convSingTrPClapP(g) );
     240        //res= convClapAPSingAP( algcd( F, G, as, ord) );
     241        //res= convClapAPSingAP( alg_gcd( F, G, as) );
     242        res= convClapAPSingAP( alg_gcd( F, G, as) );
    240243      }
    241244      else
     
    630633  //            0 return coeff, factors and exponents
    631634
     635
    632636  ideal res=NULL;
    633637
     
    688692    return res;
    689693  }
    690   // use factory/libfac in general ==============================
     694  //PrintS("S:");pWrite(f);PrintLn();
     695  // use factory/liffac in general ==============================
    691696  Off(SW_RATIONAL);
    692697  On(SW_SYMMETRIC_FF);
     698  On(SW_USE_NTL);
     699  #ifdef HAVE_NTL
     700  extern int prime_number;
     701  //if(rField_is_Q()) prime_number=0;
     702  #endif
    693703  CFFList L;
    694704  number N=NULL;
     
    766776        CanonicalForm G( convSingTrPClapP( f ) );
    767777#ifdef HAVE_LIBFAC_P
    768         CFList as(mipo);
    769         L = newfactoras( G, as, 1);
     778        if (rField_is_Q_a())
     779        {
     780          CFList as(mipo);
     781          L = newfactoras( G, as, 1);
     782        }
     783        else
     784        {
     785          L=Factorize(G, mipo);
     786        }
    770787#else
    771788        WarnS("complete factorization only for univariate polynomials");
    772         if (nGetChar()==1) /* Q(a) */
     789        if ((nGetChar()==1)||(!F.isUnivariate()) /* Q(a) */
    773790        {
    774791          L = factorize( G );
     
    776793        else
    777794        {
    778           goto notImpl;
     795          L = factorize( F, a );
    779796        }
    780797#endif
     
    870887            j++;
    871888          }
    872         }
     889        }
    873890      }
    874891      if (j>0)
     
    918935    nDelete(&N);
    919936  }
     937  //PrintS("......S\n");
    920938  return res;
    921939}
     
    924942{
    925943#ifdef HAVE_LIBFAC_P
     944  if (idIs0(I)) return mpNew(1,1);
     945
    926946  // for now there is only the possibility to handle polynomials over
    927947  // Q and Fp ...
     
    930950  Off(SW_RATIONAL);
    931951  On(SW_SYMMETRIC_FF);
     952  On(SW_USE_NTL);
     953  //Off(SW_USE_NTL);
    932954  CFList L;
    933955  ListCFList LL;
     
    10571079  loop
    10581080  {
     1081    if(! Li.hasItem()) break;
    10591082    BOOLEAN done=TRUE;
    10601083    i=Li.getItem()-1;
     
    10731096    if(cnt==0) break;
    10741097    if (done) StringAppendS(",");
    1075     if(! Li.hasItem()) break;
    10761098  }
    10771099  for(i=0;i<pVariables+offs;i++)
  • configure

    r77902f r4d7834  
    601601SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
    602602SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
     603SINGULAR_RPM_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}"
    603604VERSION_DATE="August 2001"
    604605SINGULAR_ROOT_DIR=$pwd
     
    608609export SINGULAR_SUB_VERSION
    609610export SINGULAR_VERSION
     611export SINGULAR_RPM_VERSION
    610612export VERSION_DATE
    611613export SINGULAR_ROOT_DIR
     614
    612615
    613616
     
    650653
    651654echo $ac_n "checking uname for singular""... $ac_c" 1>&6
    652 echo "configure:653: checking uname for singular" >&5
     655echo "configure:656: checking uname for singular" >&5
    653656if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    654657  echo $ac_n "(cached) $ac_c" 1>&6
     
    678681set dummy gcc; ac_word=$2
    679682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    680 echo "configure:681: checking for $ac_word" >&5
     683echo "configure:684: checking for $ac_word" >&5
    681684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    682685  echo $ac_n "(cached) $ac_c" 1>&6
     
    708711set dummy cc; ac_word=$2
    709712echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    710 echo "configure:711: checking for $ac_word" >&5
     713echo "configure:714: checking for $ac_word" >&5
    711714if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    712715  echo $ac_n "(cached) $ac_c" 1>&6
     
    759762set dummy cl; ac_word=$2
    760763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    761 echo "configure:762: checking for $ac_word" >&5
     764echo "configure:765: checking for $ac_word" >&5
    762765if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    763766  echo $ac_n "(cached) $ac_c" 1>&6
     
    791794
    792795echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    793 echo "configure:794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     796echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    794797
    795798ac_ext=c
     
    802805cat > conftest.$ac_ext << EOF
    803806
    804 #line 805 "configure"
     807#line 808 "configure"
    805808#include "confdefs.h"
    806809
    807810main(){return(0);}
    808811EOF
    809 if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     812if { (eval echo configure:813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    810813  ac_cv_prog_cc_works=yes
    811814  # If we can't run a trivial program, we are probably using a cross compiler.
     
    833836fi
    834837echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    835 echo "configure:836: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     838echo "configure:839: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    836839echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    837840cross_compiling=$ac_cv_prog_cc_cross
    838841
    839842echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    840 echo "configure:841: checking whether we are using GNU C" >&5
     843echo "configure:844: checking whether we are using GNU C" >&5
    841844if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    842845  echo $ac_n "(cached) $ac_c" 1>&6
     
    847850#endif
    848851EOF
    849 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     852if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    850853  ac_cv_prog_gcc=yes
    851854else
     
    866869CFLAGS=
    867870echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    868 echo "configure:869: checking whether ${CC-cc} accepts -g" >&5
     871echo "configure:872: checking whether ${CC-cc} accepts -g" >&5
    869872if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    870873  echo $ac_n "(cached) $ac_c" 1>&6
     
    898901
    899902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    900 echo "configure:901: checking how to run the C preprocessor" >&5
     903echo "configure:904: checking how to run the C preprocessor" >&5
    901904# On Suns, sometimes $CPP names a directory.
    902905if test -n "$CPP" && test -d "$CPP"; then
     
    913916  # not just through cpp.
    914917  cat > conftest.$ac_ext <<EOF
    915 #line 916 "configure"
     918#line 919 "configure"
    916919#include "confdefs.h"
    917920#include <assert.h>
     
    919922EOF
    920923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    921 { (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    922925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    923926if test -z "$ac_err"; then
     
    930933  CPP="${CC-cc} -E -traditional-cpp"
    931934  cat > conftest.$ac_ext <<EOF
    932 #line 933 "configure"
     935#line 936 "configure"
    933936#include "confdefs.h"
    934937#include <assert.h>
     
    936939EOF
    937940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    938 { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    939942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    940943if test -z "$ac_err"; then
     
    947950  CPP="${CC-cc} -nologo -E"
    948951  cat > conftest.$ac_ext <<EOF
    949 #line 950 "configure"
     952#line 953 "configure"
    950953#include "confdefs.h"
    951954#include <assert.h>
     
    953956EOF
    954957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    955 { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    956959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    957960if test -z "$ac_err"; then
     
    10081011# ./install, which can be erroneously created by make from ./install.sh.
    10091012echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1010 echo "configure:1011: checking for a BSD compatible install" >&5
     1013echo "configure:1014: checking for a BSD compatible install" >&5
    10111014if test -z "$INSTALL"; then
    10121015if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    10611064
    10621065echo $ac_n "checking for AIX""... $ac_c" 1>&6
    1063 echo "configure:1064: checking for AIX" >&5
     1066echo "configure:1067: checking for AIX" >&5
    10641067cat > conftest.$ac_ext <<EOF
    1065 #line 1066 "configure"
     1068#line 1069 "configure"
    10661069#include "confdefs.h"
    10671070#ifdef _AIX
     
    10891092set dummy $ac_prog; ac_word=$2
    10901093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1091 echo "configure:1092: checking for $ac_word" >&5
     1094echo "configure:1095: checking for $ac_word" >&5
    10921095if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    10931096  echo $ac_n "(cached) $ac_c" 1>&6
     
    11211124
    11221125echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1123 echo "configure:1124: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1126echo "configure:1127: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    11241127
    11251128ac_ext=C
     
    11321135cat > conftest.$ac_ext << EOF
    11331136
    1134 #line 1135 "configure"
     1137#line 1138 "configure"
    11351138#include "confdefs.h"
    11361139
    11371140int main(){return(0);}
    11381141EOF
    1139 if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1142if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11401143  ac_cv_prog_cxx_works=yes
    11411144  # If we can't run a trivial program, we are probably using a cross compiler.
     
    11631166fi
    11641167echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1165 echo "configure:1166: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1168echo "configure:1169: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    11661169echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    11671170cross_compiling=$ac_cv_prog_cxx_cross
    11681171
    11691172echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1170 echo "configure:1171: checking whether we are using GNU C++" >&5
     1173echo "configure:1174: checking whether we are using GNU C++" >&5
    11711174if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    11721175  echo $ac_n "(cached) $ac_c" 1>&6
     
    11771180#endif
    11781181EOF
    1179 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1182if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    11801183  ac_cv_prog_gxx=yes
    11811184else
     
    11961199CXXFLAGS=
    11971200echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1198 echo "configure:1199: checking whether ${CXX-g++} accepts -g" >&5
     1201echo "configure:1202: checking whether ${CXX-g++} accepts -g" >&5
    11991202if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    12001203  echo $ac_n "(cached) $ac_c" 1>&6
     
    12301233# check whether the compiler accepts -pipe
    12311234echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
    1232 echo "configure:1233: checking whether compiler accepts -pipe" >&5
     1235echo "configure:1236: checking whether compiler accepts -pipe" >&5
    12331236temp_cflags=${CFLAGS}
    12341237CFLAGS="${CFLAGS} -pipe"
     
    12371240else
    12381241  cat > conftest.$ac_ext <<EOF
    1239 #line 1240 "configure"
     1242#line 1243 "configure"
    12401243#include "confdefs.h"
    12411244
     
    12441247; return 0; }
    12451248EOF
    1246 if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1249if { (eval echo configure:1250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    12471250  rm -rf conftest*
    12481251  ac_cv_cxx_have_pipe=yes
     
    12711274set dummy $ac_prog; ac_word=$2
    12721275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1273 echo "configure:1274: checking for $ac_word" >&5
     1276echo "configure:1277: checking for $ac_word" >&5
    12741277if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    12751278  echo $ac_n "(cached) $ac_c" 1>&6
     
    13051308set dummy $ac_prog; ac_word=$2
    13061309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1307 echo "configure:1308: checking for $ac_word" >&5
     1310echo "configure:1311: checking for $ac_word" >&5
    13081311if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then
    13091312  echo $ac_n "(cached) $ac_c" 1>&6
     
    13391342set dummy $ac_prog; ac_word=$2
    13401343echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1341 echo "configure:1342: checking for $ac_word" >&5
     1344echo "configure:1345: checking for $ac_word" >&5
    13421345if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
    13431346  echo $ac_n "(cached) $ac_c" 1>&6
     
    13751378set dummy $ac_prog; ac_word=$2
    13761379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1377 echo "configure:1378: checking for $ac_word" >&5
     1380echo "configure:1381: checking for $ac_word" >&5
    13781381if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
    13791382  echo $ac_n "(cached) $ac_c" 1>&6
     
    14081411set dummy latex2html; ac_word=$2
    14091412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1410 echo "configure:1411: checking for $ac_word" >&5
     1413echo "configure:1414: checking for $ac_word" >&5
    14111414if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
    14121415  echo $ac_n "(cached) $ac_c" 1>&6
     
    14351438
    14361439echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1437 echo "configure:1438: checking whether ln -s works" >&5
     1440echo "configure:1441: checking whether ln -s works" >&5
    14381441if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    14391442  echo $ac_n "(cached) $ac_c" 1>&6
     
    15051508# check for AIX
    15061509echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    1507 echo "configure:1508: checking whether _AIX is defined" >&5
     1510echo "configure:1511: checking whether _AIX is defined" >&5
    15081511if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    15091512  echo $ac_n "(cached) $ac_c" 1>&6
    15101513else
    15111514  cat > conftest.$ac_ext <<EOF
    1512 #line 1513 "configure"
     1515#line 1516 "configure"
    15131516#include "confdefs.h"
    15141517#ifdef _AIX
     
    15361539
    15371540echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1538 echo "configure:1539: checking for atof in -lm" >&5
     1541echo "configure:1542: checking for atof in -lm" >&5
    15391542ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    15401543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15441547LIBS="-lm  $LIBS"
    15451548cat > conftest.$ac_ext <<EOF
    1546 #line 1547 "configure"
     1549#line 1550 "configure"
    15471550#include "confdefs.h"
    15481551/* Override any gcc2 internal prototype to avoid an error.  */
     
    15551558; return 0; }
    15561559EOF
    1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1560if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15581561  rm -rf conftest*
    15591562  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15831586
    15841587echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    1585 echo "configure:1586: checking for socket in -lbsd" >&5
     1588echo "configure:1589: checking for socket in -lbsd" >&5
    15861589ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    15871590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    15911594LIBS="-lbsd  $LIBS"
    15921595cat > conftest.$ac_ext <<EOF
    1593 #line 1594 "configure"
     1596#line 1597 "configure"
    15941597#include "confdefs.h"
    15951598/* Override any gcc2 internal prototype to avoid an error.  */
     
    16021605; return 0; }
    16031606EOF
    1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1607if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16051608  rm -rf conftest*
    16061609  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16301633
    16311634echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1632 echo "configure:1633: checking for listen in -lsocket" >&5
     1635echo "configure:1636: checking for listen in -lsocket" >&5
    16331636ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    16341637if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16381641LIBS="-lsocket  $LIBS"
    16391642cat > conftest.$ac_ext <<EOF
    1640 #line 1641 "configure"
     1643#line 1644 "configure"
    16411644#include "confdefs.h"
    16421645/* Override any gcc2 internal prototype to avoid an error.  */
     
    16491652; return 0; }
    16501653EOF
    1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1654if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16521655  rm -rf conftest*
    16531656  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16771680
    16781681echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1679 echo "configure:1680: checking for gethostbyname in -lnsl" >&5
     1682echo "configure:1683: checking for gethostbyname in -lnsl" >&5
    16801683ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    16811684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16851688LIBS="-lnsl  $LIBS"
    16861689cat > conftest.$ac_ext <<EOF
    1687 #line 1688 "configure"
     1690#line 1691 "configure"
    16881691#include "confdefs.h"
    16891692/* Override any gcc2 internal prototype to avoid an error.  */
     
    16961699; return 0; }
    16971700EOF
    1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16991702  rm -rf conftest*
    17001703  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17241727
    17251728echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    1726 echo "configure:1727: checking for main in -lgmp" >&5
     1729echo "configure:1730: checking for main in -lgmp" >&5
    17271730ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    17281731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17321735LIBS="-lgmp  $LIBS"
    17331736cat > conftest.$ac_ext <<EOF
    1734 #line 1735 "configure"
     1737#line 1738 "configure"
    17351738#include "confdefs.h"
    17361739
     
    17391742; return 0; }
    17401743EOF
    1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1744if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17421745  rm -rf conftest*
    17431746  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17671770
    17681771echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    1769 echo "configure:1770: checking for mpz_init in -lsmallgmp" >&5
     1772echo "configure:1773: checking for mpz_init in -lsmallgmp" >&5
    17701773ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    17711774if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17751778LIBS="-lsmallgmp  $LIBS"
    17761779cat > conftest.$ac_ext <<EOF
    1777 #line 1778 "configure"
     1780#line 1781 "configure"
    17781781#include "confdefs.h"
    17791782/* Override any gcc2 internal prototype to avoid an error.  */
     
    17861789; return 0; }
    17871790EOF
    1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1791if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17891792  rm -rf conftest*
    17901793  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18141817
    18151818echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    1816 echo "configure:1817: checking for IMP_PutGmpInt in -lMP" >&5
     1819echo "configure:1820: checking for IMP_PutGmpInt in -lMP" >&5
    18171820ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    18181821if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18221825LIBS="-lMP  $LIBS"
    18231826cat > conftest.$ac_ext <<EOF
    1824 #line 1825 "configure"
     1827#line 1828 "configure"
    18251828#include "confdefs.h"
    18261829/* Override any gcc2 internal prototype to avoid an error.  */
     
    18331836; return 0; }
    18341837EOF
    1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1838if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18361839  rm -rf conftest*
    18371840  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18611864
    18621865echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    1863 echo "configure:1864: checking for MPT_GetTree in -lMPT" >&5
     1866echo "configure:1867: checking for MPT_GetTree in -lMPT" >&5
    18641867ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    18651868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    18691872LIBS="-lMPT  $LIBS"
    18701873cat > conftest.$ac_ext <<EOF
    1871 #line 1872 "configure"
     1874#line 1875 "configure"
    18721875#include "confdefs.h"
    18731876/* Override any gcc2 internal prototype to avoid an error.  */
     
    18801883; return 0; }
    18811884EOF
    1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1885if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18831886  rm -rf conftest*
    18841887  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19081911
    19091912echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    1910 echo "configure:1911: checking for atof in -lsingcf" >&5
     1913echo "configure:1914: checking for atof in -lsingcf" >&5
    19111914ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    19121915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19161919LIBS="-lsingcf  $LIBS"
    19171920cat > conftest.$ac_ext <<EOF
    1918 #line 1919 "configure"
     1921#line 1922 "configure"
    19191922#include "confdefs.h"
    19201923/* Override any gcc2 internal prototype to avoid an error.  */
     
    19271930; return 0; }
    19281931EOF
    1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1932if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19301933  rm -rf conftest*
    19311934  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19551958
    19561959echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    1957 echo "configure:1958: checking for atof in -lsingfac" >&5
     1960echo "configure:1961: checking for atof in -lsingfac" >&5
    19581961ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    19591962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    19631966LIBS="-lsingfac  $LIBS"
    19641967cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
     1968#line 1969 "configure"
    19661969#include "confdefs.h"
    19671970/* Override any gcc2 internal prototype to avoid an error.  */
     
    19741977; return 0; }
    19751978EOF
    1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1979if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19771980  rm -rf conftest*
    19781981  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20022005
    20032006echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
    2004 echo "configure:2005: checking for omTestAddr in -lomalloc" >&5
     2007echo "configure:2008: checking for omTestAddr in -lomalloc" >&5
    20052008ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
    20062009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20102013LIBS="-lomalloc  $LIBS"
    20112014cat > conftest.$ac_ext <<EOF
    2012 #line 2013 "configure"
     2015#line 2016 "configure"
    20132016#include "confdefs.h"
    20142017/* Override any gcc2 internal prototype to avoid an error.  */
     
    20212024; return 0; }
    20222025EOF
    2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2026if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20242027  rm -rf conftest*
    20252028  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20492052
    20502053echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
    2051 echo "configure:2052: checking for main in -lomalloc_ndebug" >&5
     2054echo "configure:2055: checking for main in -lomalloc_ndebug" >&5
    20522055ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
    20532056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    20572060LIBS="-lomalloc_ndebug  $LIBS"
    20582061cat > conftest.$ac_ext <<EOF
    2059 #line 2060 "configure"
     2062#line 2063 "configure"
    20602063#include "confdefs.h"
    20612064
     
    20642067; return 0; }
    20652068EOF
    2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    20672070  rm -rf conftest*
    20682071  eval "ac_cv_lib_$ac_lib_var=yes"
     
    20962099ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    20972100echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2098 echo "configure:2099: checking for $ac_hdr" >&5
     2101echo "configure:2102: checking for $ac_hdr" >&5
    20992102if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    21002103  echo $ac_n "(cached) $ac_c" 1>&6
    21012104else
    21022105  cat > conftest.$ac_ext <<EOF
    2103 #line 2104 "configure"
     2106#line 2107 "configure"
    21042107#include "confdefs.h"
    21052108#include <$ac_hdr>
    21062109EOF
    21072110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2108 { (eval echo configure:2109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2111{ (eval echo configure:2112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21092112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    21102113if test -z "$ac_err"; then
     
    22842287
    22852288echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
    2286 echo "configure:2287: checking which tmp dir to use" >&5
     2289echo "configure:2290: checking which tmp dir to use" >&5
    22872290if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
    22882291  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
     
    22992302
    23002303echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6
    2301 echo "configure:2302: checking whether to configure and build omalloc" >&5
     2304echo "configure:2305: checking whether to configure and build omalloc" >&5
    23022305if test "${enable_omalloc+set}" != set; then
    23032306   if test "$ac_cv_omalloc_ok" = yes; then
     
    23372340
    23382341echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
    2339 echo "configure:2340: checking whether to configure and build gmp lib" >&5
     2342echo "configure:2343: checking whether to configure and build gmp lib" >&5
    23402343if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
    23412344  if test "$ac_gmp_ok" != yes && test -d gmp; then
     
    23832386
    23842387echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
    2385 echo "configure:2386: checking whether to configure and build smallgmp lib" >&5
     2388echo "configure:2389: checking whether to configure and build smallgmp lib" >&5
    23862389if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
    23872390  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     
    24242427
    24252428echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
    2426 echo "configure:2427: checking whether to configure and build MP lib" >&5
     2429echo "configure:2430: checking whether to configure and build MP lib" >&5
    24272430if test "$enable_MP" != yes && test "$enable_MP" != no; then
    24282431  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     
    24572460fi
    24582461
     2462echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
     2463echo "configure:2464: checking whether to configure and build NTL lib" >&5
     2464if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
     2465  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
     2466     test -d ntl; then
     2467    enable_NTL=yes
     2468    echo "$ac_t""yes" 1>&6
     2469    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
     2470    ac_configure_args="$ac_configure_args --enable-NTL"
     2471  else
     2472    enable_NTL=no
     2473    echo "$ac_t""no" 1>&6
     2474  fi
     2475elif test "$enable_NTL" = yes; then
     2476  if test -d ntl; then
     2477    echo "$ac_t""yes" 1>&6
     2478    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
     2479  else
     2480    echo "$ac_t""no" 1>&6
     2481    { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; }
     2482  fi
     2483else
     2484  echo "$ac_t""no" 1>&6
     2485fi
    24592486
    24602487echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    2461 echo "configure:2462: checking whether to configure and build factory lib" >&5
     2488echo "configure:2489: checking whether to configure and build factory lib" >&5
    24622489if test "$enable_factory" != yes && test "$enable_factory" != no; then
    24632490  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     
    24842511
    24852512echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    2486 echo "configure:2487: checking whether to configure and build libfac lib" >&5
     2513echo "configure:2514: checking whether to configure and build libfac lib" >&5
    24872514if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    24882515  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     
    25142541
    25152542echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    2516 echo "configure:2517: checking whether to configure and build sgroup lib" >&5
     2543echo "configure:2544: checking whether to configure and build sgroup lib" >&5
    25172544if test "$enable_sgroup" = yes; then
    25182545  if test ! -d sgroup; then
     
    25342561
    25352562echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    2536 echo "configure:2537: checking whether to configure and build Singular" >&5
     2563echo "configure:2564: checking whether to configure and build Singular" >&5
    25372564if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    25382565  if test "$with_Singular" != no && test -d Singular; then
     
    25632590
    25642591echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
    2565 echo "configure:2566: checking whether to build IntegerProgramming" >&5
     2592echo "configure:2593: checking whether to build IntegerProgramming" >&5
    25662593if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
    25672594   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
     
    25752602
    25762603echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
    2577 echo "configure:2578: checking whether to build Plural" >&5
     2604echo "configure:2605: checking whether to build Plural" >&5
    25782605if test "$enable_Plural" != no && test -d "Plural"; then
    25792606   BUILD_SUBDIRS="$BUILD_SUBDIRS Plural"
     
    25882615
    25892616echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
    2590 echo "configure:2591: checking whether to configure and build Texinfo" >&5
     2617echo "configure:2618: checking whether to configure and build Texinfo" >&5
    25912618if test "$enable_Texinfo" != no && test -d Texinfo; then
    25922619  echo "$ac_t""yes" 1>&6
     
    26102637set dummy makeinfo; ac_word=$2
    26112638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2612 echo "configure:2613: checking for $ac_word" >&5
     2639echo "configure:2640: checking for $ac_word" >&5
    26132640if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    26142641  echo $ac_n "(cached) $ac_c" 1>&6
     
    26402667set dummy texi2dvi; ac_word=$2
    26412668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2642 echo "configure:2643: checking for $ac_word" >&5
     2669echo "configure:2670: checking for $ac_word" >&5
    26432670if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
    26442671  echo $ac_n "(cached) $ac_c" 1>&6
     
    26702697set dummy texindex; ac_word=$2
    26712698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2672 echo "configure:2673: checking for $ac_word" >&5
     2699echo "configure:2700: checking for $ac_word" >&5
    26732700if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
    26742701  echo $ac_n "(cached) $ac_c" 1>&6
     
    27002727
    27012728echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
    2702 echo "configure:2703: checking whether to configure and build Texi2html" >&5
     2729echo "configure:2730: checking whether to configure and build Texi2html" >&5
    27032730if test "$enable_Texi2html" != no && test -d Texi2html; then
    27042731 echo "$ac_t""yes" 1>&6
     
    27152742set dummy texi2html; ac_word=$2
    27162743echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2717 echo "configure:2718: checking for $ac_word" >&5
     2744echo "configure:2745: checking for $ac_word" >&5
    27182745if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
    27192746  echo $ac_n "(cached) $ac_c" 1>&6
     
    27532780
    27542781echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
    2755 echo "configure:2756: checking whether to build doc" >&5
     2782echo "configure:2783: checking whether to build doc" >&5
    27562783if test "$enable_doc" != no && test -d doc; then
    27572784 echo "$ac_t""yes" 1>&6
     
    27672794
    27682795echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
    2769 echo "configure:2770: checking whether to build emacs" >&5
     2796echo "configure:2797: checking whether to build emacs" >&5
    27702797if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
    27712798 echo "$ac_t""yes" 1>&6
     
    27792806
    27802807echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    2781 echo "configure:2782: checking which apint package to use" >&5
     2808echo "configure:2809: checking which apint package to use" >&5
    27822809if test "$with_apint" = gmp; then
    27832810  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    28032830
    28042831echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    2805 echo "configure:2806: checking whether to use with MP" >&5
     2832echo "configure:2833: checking whether to use with MP" >&5
    28062833if test "$with_MP" = yes; then
    28072834  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    28222849
    28232850echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    2824 echo "configure:2825: checking whether to use with factory" >&5
     2851echo "configure:2852: checking whether to use with factory" >&5
    28252852if test "$with_factory" = yes; then
    28262853  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    28412868 
    28422869echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    2843 echo "configure:2844: checking whether to use with libfac" >&5
     2870echo "configure:2871: checking whether to use with libfac" >&5
    28442871if test "$with_libfac" = yes; then
    28452872  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    28622889
    28632890echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    2864 echo "configure:2865: checking whether to use with Singular" >&5
     2891echo "configure:2892: checking whether to use with Singular" >&5
    28652892if test "$with_Singular" != no && test "$with_Singular" != yes; then
    28662893  if test "$enable_Singular" = yes; then
     
    28922919  SUBDIRS="$SUBDIRS MP"
    28932920fi
     2921if test -d ntl; then
     2922  SUBDIRS="$SUBDIRS ntl"
     2923fi
    28942924if test -d factory; then
    28952925  SUBDIRS="$SUBDIRS factory"
     
    29212951 
    29222952echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    2923 echo "configure:2924: checking whether ${MAKE-make} sets \${MAKE}" >&5
     2953echo "configure:2954: checking whether ${MAKE-make} sets \${MAKE}" >&5
    29242954set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    29252955if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    31013131s%@VERSION_DATE@%$VERSION_DATE%g
    31023132s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
     3133s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
    31033134s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
    31043135s%@SINGUNAME@%$SINGUNAME%g
  • configure.in

    r77902f r4d7834  
    476476fi
    477477
     478AC_MSG_CHECKING(whether to configure and build NTL lib)
     479if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
     480  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
     481     test -d ntl; then
     482    enable_NTL=yes
     483    AC_MSG_RESULT(yes)
     484    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
     485    ac_configure_args="$ac_configure_args --enable-NTL"
     486  else
     487    enable_NTL=no
     488    AC_MSG_RESULT(no)
     489  fi
     490elif test "$enable_NTL" = yes; then
     491  if test -d ntl; then
     492    AC_MSG_RESULT(yes)
     493    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
     494  else
     495    AC_MSG_RESULT(no)
     496    AC_MSG_ERROR(can not build NTL without ntl directory)
     497  fi
     498else
     499  AC_MSG_RESULT(no)
     500fi
    478501
    479502AC_MSG_CHECKING(whether to configure and build factory lib)
     
    804827  SUBDIRS="$SUBDIRS MP"
    805828fi
     829if test -d ntl; then
     830  SUBDIRS="$SUBDIRS ntl"
     831fi
    806832if test -d factory; then
    807833  SUBDIRS="$SUBDIRS factory"
Note: See TracChangeset for help on using the changeset viewer.