Changeset adeaee in git


Ignore:
Timestamp:
May 22, 1997, 5:02:53 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
Children:
30acf1687e42365e829aab1dac6dca1fe7e85058
Parents:
2b3f238c740deb3d586dc1d5b379ddadb848cbaa
Message:
Thu May 22 16:50:33 1997  Olaf Bachmann
<obachman@schlupp.mathematik.uni-kl.de (Olaf Bachmann)>

	* configure.in/acconfig.h: added HAVE_BUITIN_GMP to defines


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r2b3f23 radeaee  
     1Thu May 22 16:39:16 1997  Olaf Bachmann  <obachman@schlupp.mathematik.uni-kl.de (Olaf Bachmann)>
     2
     3        * mod2.h.in: Added HAVE_BUILTIN_GMP which is set by configure
     4
    15* hannes: ipshell.cc: fixed a bug in iiExport (multiple exports in rings)
    26          subexpr.cc: implemented sleftv::Copy for ring/qring
  • Singular/configure

    r2b3f23 radeaee  
    15171517NEED_LIBS=$LIBS
    15181518
    1519 if test "$with_gmp" != no; then
     1519if test "$with_builtingmp" = yes; then
     1520  cat >> confdefs.h <<\EOF
     1521#define HAVE_BUILTIN_GMP 1
     1522EOF
     1523
     1524  cat >> confdefs.h <<\EOF
     1525#define HAVE_GMP 1
     1526EOF
     1527
     1528  ac_gmp_ok=yes
     1529elif test "$with_gmp" != no; then
    15201530  echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
    15211531ac_lib_var=`echo gmp_mpz_init | tr '.-/+' '___p'`
     
    15261536LIBS="-lgmp  $LIBS"
    15271537cat > conftest.$ac_ext <<EOF
    1528 #line 1529 "configure"
     1538#line 1539 "configure"
    15291539#include "confdefs.h"
    15301540/* Override any gcc2 internal prototype to avoid an error.  */
     
    15361546; return 0; }
    15371547EOF
    1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1548if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15391549  rm -rf conftest*
    15401550  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15661576else
    15671577  cat > conftest.$ac_ext <<EOF
    1568 #line 1569 "configure"
     1578#line 1579 "configure"
    15691579#include "confdefs.h"
    15701580#include <gmp.h>
    15711581EOF
    15721582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1573 { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1583{ (eval echo configure:1584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15741584ac_err=`grep -v '^ *+' conftest.out`
    15751585if test -z "$ac_err"; then
     
    16251635LIBS="-lMP  $LIBS"
    16261636cat > conftest.$ac_ext <<EOF
    1627 #line 1628 "configure"
     1637#line 1638 "configure"
    16281638#include "confdefs.h"
    16291639/* Override any gcc2 internal prototype to avoid an error.  */
     
    16351645; return 0; }
    16361646EOF
    1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1647if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16381648  rm -rf conftest*
    16391649  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16671677LIBS="-lMPT  $LIBS"
    16681678cat > conftest.$ac_ext <<EOF
    1669 #line 1670 "configure"
     1679#line 1680 "configure"
    16701680#include "confdefs.h"
    16711681/* Override any gcc2 internal prototype to avoid an error.  */
     
    16771687; return 0; }
    16781688EOF
    1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1689if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16801690  rm -rf conftest*
    16811691  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17101720else
    17111721  cat > conftest.$ac_ext <<EOF
    1712 #line 1713 "configure"
     1722#line 1723 "configure"
    17131723#include "confdefs.h"
    17141724#include <$ac_hdr>
    17151725EOF
    17161726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1727{ (eval echo configure:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17181728ac_err=`grep -v '^ *+' conftest.out`
    17191729if test -z "$ac_err"; then
     
    17781788LIBS="-lsingcf  $LIBS"
    17791789cat > conftest.$ac_ext <<EOF
    1780 #line 1781 "configure"
     1790#line 1791 "configure"
    17811791#include "confdefs.h"
    17821792/* Override any gcc2 internal prototype to avoid an error.  */
     
    17881798; return 0; }
    17891799EOF
    1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1800if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    17911801  rm -rf conftest*
    17921802  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18211831else
    18221832  cat > conftest.$ac_ext <<EOF
    1823 #line 1824 "configure"
     1833#line 1834 "configure"
    18241834#include "confdefs.h"
    18251835#include <$ac_hdr>
    18261836EOF
    18271837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1838{ (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18291839ac_err=`grep -v '^ *+' conftest.out`
    18301840if test -z "$ac_err"; then
     
    18871897LIBS="-lsingfac  $LIBS"
    18881898cat > conftest.$ac_ext <<EOF
    1889 #line 1890 "configure"
     1899#line 1900 "configure"
    18901900#include "confdefs.h"
    18911901/* Override any gcc2 internal prototype to avoid an error.  */
     
    18971907; return 0; }
    18981908EOF
    1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1909if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    19001910  rm -rf conftest*
    19011911  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19301940else
    19311941  cat > conftest.$ac_ext <<EOF
    1932 #line 1933 "configure"
     1942#line 1943 "configure"
    19331943#include "confdefs.h"
    19341944#include <$ac_hdr>
    19351945EOF
    19361946ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1937 { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1947{ (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19381948ac_err=`grep -v '^ *+' conftest.out`
    19391949if test -z "$ac_err"; then
     
    19942004else
    19952005cat > conftest.$ac_ext <<EOF
    1996 #line 1997 "configure"
     2006#line 2007 "configure"
    19972007#include "confdefs.h"
    19982008main(){return(0);}
    19992009EOF
    2000 { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2010{ (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20012011if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20022012  ac_cv_c_cross=no
     
    20162026else
    20172027  cat > conftest.$ac_ext <<EOF
    2018 #line 2019 "configure"
     2028#line 2029 "configure"
    20192029#include "confdefs.h"
    20202030#include <stdlib.h>
     
    20242034EOF
    20252035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2036{ (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20272037ac_err=`grep -v '^ *+' conftest.out`
    20282038if test -z "$ac_err"; then
     
    20392049  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    20402050cat > conftest.$ac_ext <<EOF
    2041 #line 2042 "configure"
     2051#line 2052 "configure"
    20422052#include "confdefs.h"
    20432053#include <string.h>
     
    20572067  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    20582068cat > conftest.$ac_ext <<EOF
    2059 #line 2060 "configure"
     2069#line 2070 "configure"
    20602070#include "confdefs.h"
    20612071#include <stdlib.h>
     
    20782088else
    20792089cat > conftest.$ac_ext <<EOF
    2080 #line 2081 "configure"
     2090#line 2091 "configure"
    20812091#include "confdefs.h"
    20822092#include <ctype.h>
     
    20892099
    20902100EOF
    2091 { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2101{ (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20922102if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20932103  :
     
    21172127else
    21182128  cat > conftest.$ac_ext <<EOF
    2119 #line 2120 "configure"
     2129#line 2130 "configure"
    21202130#include "confdefs.h"
    21212131#include <$ac_hdr>
    21222132EOF
    21232133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2124 { (eval echo configure:2125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2134{ (eval echo configure:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21252135ac_err=`grep -v '^ *+' conftest.out`
    21262136if test -z "$ac_err"; then
     
    21562166else
    21572167  cat > conftest.$ac_ext <<EOF
    2158 #line 2159 "configure"
     2168#line 2169 "configure"
    21592169#include "confdefs.h"
    21602170#include <$ac_hdr>
    21612171EOF
    21622172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2173{ (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21642174ac_err=`grep -v '^ *+' conftest.out`
    21652175if test -z "$ac_err"; then
     
    21912201else
    21922202  cat > conftest.$ac_ext <<EOF
    2193 #line 2194 "configure"
     2203#line 2204 "configure"
    21942204#include "confdefs.h"
    21952205
     
    22412251; return 0; }
    22422252EOF
    2243 if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2253if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22442254  rm -rf conftest*
    22452255  ac_cv_c_const=yes
     
    22672277for ac_kw in inline __inline__ __inline; do
    22682278  cat > conftest.$ac_ext <<EOF
    2269 #line 2270 "configure"
     2279#line 2280 "configure"
    22702280#include "confdefs.h"
    22712281
     
    22752285; return 0; }
    22762286EOF
    2277 if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2287if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22782288  rm -rf conftest*
    22792289  ac_cv_c_inline=$ac_kw; break
     
    23032313else
    23042314  cat > conftest.$ac_ext <<EOF
    2305 #line 2306 "configure"
     2315#line 2316 "configure"
    23062316#include "confdefs.h"
    23072317#include <sys/types.h>
     
    23342344else
    23352345  cat > conftest.$ac_ext <<EOF
    2336 #line 2337 "configure"
     2346#line 2347 "configure"
    23372347#include "confdefs.h"
    23382348#include <sys/types.h>
     
    23442354; return 0; }
    23452355EOF
    2346 if { (eval echo configure:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2356if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23472357  rm -rf conftest*
    23482358  ac_cv_header_time=yes
     
    23682378else
    23692379  cat > conftest.$ac_ext <<EOF
    2370 #line 2371 "configure"
     2380#line 2381 "configure"
    23712381#include "confdefs.h"
    23722382#include <sys/types.h>
     
    23772387; return 0; }
    23782388EOF
    2379 if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2389if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23802390  rm -rf conftest*
    23812391  ac_cv_struct_tm=time.h
     
    24042414else
    24052415  cat > conftest.$ac_ext <<EOF
    2406 #line 2407 "configure"
     2416#line 2417 "configure"
    24072417#include "confdefs.h"
    24082418#include <alloca.h>
     
    24122422; return 0; }
    24132423EOF
    2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2424if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24152425  rm -rf conftest*
    24162426  ac_cv_header_alloca_h=yes
     
    24362446else
    24372447  cat > conftest.$ac_ext <<EOF
    2438 #line 2439 "configure"
     2448#line 2449 "configure"
    24392449#include "confdefs.h"
    24402450
     
    24602470; return 0; }
    24612471EOF
    2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2472if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24632473  rm -rf conftest*
    24642474  ac_cv_func_alloca=yes
     
    24952505else
    24962506  cat > conftest.$ac_ext <<EOF
    2497 #line 2498 "configure"
     2507#line 2508 "configure"
    24982508#include "confdefs.h"
    24992509#if defined(CRAY) && ! defined(CRAY2)
     
    25242534else
    25252535  cat > conftest.$ac_ext <<EOF
    2526 #line 2527 "configure"
     2536#line 2537 "configure"
    25272537#include "confdefs.h"
    25282538/* System header to define __stub macros and hopefully few prototypes,
     
    25462556; return 0; }
    25472557EOF
    2548 if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2558if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    25492559  rm -rf conftest*
    25502560  eval "ac_cv_func_$ac_func=yes"
     
    25782588else
    25792589cat > conftest.$ac_ext <<EOF
    2580 #line 2581 "configure"
     2590#line 2591 "configure"
    25812591#include "confdefs.h"
    25822592find_stack_direction ()
     
    25972607}
    25982608EOF
    2599 { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2609{ (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    26002610if test -s conftest && (./conftest; exit) 2>/dev/null; then
    26012611  ac_cv_c_stack_direction=1
     
    26212631    ac_pattern="Autoconf.*'x'"
    26222632  cat > conftest.$ac_ext <<EOF
    2623 #line 2624 "configure"
     2633#line 2634 "configure"
    26242634#include "confdefs.h"
    26252635#include <sgtty.h>
     
    26392649  if test $ac_cv_prog_gcc_traditional = no; then
    26402650    cat > conftest.$ac_ext <<EOF
    2641 #line 2642 "configure"
     2651#line 2652 "configure"
    26422652#include "confdefs.h"
    26432653#include <termio.h>
     
    26672677else
    26682678  cat > conftest.$ac_ext <<EOF
    2669 #line 2670 "configure"
     2679#line 2680 "configure"
    26702680#include "confdefs.h"
    26712681/* System header to define __stub macros and hopefully few prototypes,
     
    26892699; return 0; }
    26902700EOF
    2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2701if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    26922702  rm -rf conftest*
    26932703  eval "ac_cv_func_$ac_func=yes"
     
    27192729else
    27202730cat > conftest.$ac_ext <<EOF
    2721 #line 2722 "configure"
     2731#line 2732 "configure"
    27222732#include "confdefs.h"
    27232733
     
    27882798
    27892799EOF
    2790 { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2800{ (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    27912801if test -s conftest && (./conftest; exit) 2>/dev/null; then
    27922802  ac_cv_func_mmap=yes
     
    28112821else
    28122822  cat > conftest.$ac_ext <<EOF
    2813 #line 2814 "configure"
     2823#line 2824 "configure"
    28142824#include "confdefs.h"
    28152825#include <sys/types.h>
     
    28292839; return 0; }
    28302840EOF
    2831 if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2841if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28322842  rm -rf conftest*
    28332843  ac_cv_type_signal=void
     
    28512861else
    28522862  cat > conftest.$ac_ext <<EOF
    2853 #line 2854 "configure"
     2863#line 2864 "configure"
    28542864#include "confdefs.h"
    28552865/* System header to define __stub macros and hopefully few prototypes,
     
    28732883; return 0; }
    28742884EOF
    2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2885if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28762886  rm -rf conftest*
    28772887  eval "ac_cv_func_vprintf=yes"
     
    28992909else
    29002910  cat > conftest.$ac_ext <<EOF
    2901 #line 2902 "configure"
     2911#line 2912 "configure"
    29022912#include "confdefs.h"
    29032913/* System header to define __stub macros and hopefully few prototypes,
     
    29212931; return 0; }
    29222932EOF
    2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2933if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29242934  rm -rf conftest*
    29252935  eval "ac_cv_func__doprnt=yes"
     
    29502960else
    29512961  cat > conftest.$ac_ext <<EOF
    2952 #line 2953 "configure"
     2962#line 2963 "configure"
    29532963#include "confdefs.h"
    29542964/* System header to define __stub macros and hopefully few prototypes,
     
    29722982; return 0; }
    29732983EOF
    2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2984if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29752985  rm -rf conftest*
    29762986  eval "ac_cv_func_$ac_func=yes"
     
    30043014else
    30053015cat > conftest.$ac_ext <<EOF
    3006 #line 3007 "configure"
     3016#line 3017 "configure"
    30073017#include "confdefs.h"
    30083018 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    30093019EOF
    3010 { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3020{ (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30113021if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30123022  ac_cv_shift=yes
     
    30343044else
    30353045cat > conftest.$ac_ext <<EOF
    3036 #line 3037 "configure"
     3046#line 3047 "configure"
    30373047#include "confdefs.h"
    30383048 int main() {if (sizeof(int) == 4)  exit(0); else exit(1); }
    30393049EOF
    3040 { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3050{ (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30413051if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30423052  ac_cv_sizeof_int_equals_four=yes
     
    30643074else
    30653075cat > conftest.$ac_ext <<EOF
    3066 #line 3067 "configure"
     3076#line 3077 "configure"
    30673077#include "confdefs.h"
    30683078 int main() {if (sizeof(long) == sizeof(void*))  exit(0); else exit(1); }
    30693079EOF
    3070 { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3080{ (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30713081if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30723082  ac_cv_sizeof_long_equals_voidp=yes
     
    30933103else
    30943104cat > conftest.$ac_ext <<EOF
    3095 #line 3096 "configure"
     3105#line 3106 "configure"
    30963106#include "confdefs.h"
    30973107#include <stdio.h>
    30983108 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    30993109EOF
    3100 { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3110{ (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31013111if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31023112  ac_cv_returns_n_of_chars=yes
     
    31263136else
    31273137cat > conftest.$ac_ext <<EOF
    3128 #line 3129 "configure"
     3138#line 3139 "configure"
    31293139#include "confdefs.h"
    31303140#include <stdio.h>
     
    31373147}
    31383148EOF
    3139 { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3149{ (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31403150if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31413151  ac_cv_sizeof_voidp=`cat conftestval`
     
    31593169else
    31603170  cat > conftest.$ac_ext <<EOF
    3161 #line 3162 "configure"
     3171#line 3172 "configure"
    31623172#include "confdefs.h"
    31633173#ifdef _AIX
  • Singular/configure.in

    r2b3f23 radeaee  
    190190
    191191dnl Check gmp
    192 if test "$with_gmp" != no; then
     192if test "$with_builtingmp" = yes; then
     193  AC_DEFINE(HAVE_BUILTIN_GMP)
     194  AC_DEFINE(HAVE_GMP)
     195  ac_gmp_ok=yes
     196elif test "$with_gmp" != no; then
    193197  AC_CHECK_LIB(gmp, mpz_init)
    194198  AC_CHECK_HEADER(gmp.h)
  • Singular/mod2.h.in

    r2b3f23 radeaee  
    2424/* Define to use gmp for rational arithmetic */
    2525#undef HAVE_GMP
     26/* Define to have built in gmp */
     27#undef HAVE_BUILTIN_GMP
    2628/* Define to have MP links */
    2729#undef HAVE_MPSR
  • configure

    r2b3f23 radeaee  
    13071307  enable_MP=no
    13081308  ac_configure_args="$ac_configure_args --disable-MP"
     1309fi
     1310
     1311if test "$with_builtingmp" = yes; then
     1312  enable_gmp=yes
     1313  ac_configure_args="$ac_configure_args --enable-gmp"
    13091314fi
    13101315
  • configure.in

    r2b3f23 radeaee  
    170170fi
    171171
     172if test "$with_builtingmp" = yes; then
     173  enable_gmp=yes
     174  ac_configure_args="$ac_configure_args --enable-gmp"
     175fi
     176
    172177AC_MSG_CHECKING(whether to configure and build factory lib)
    173178if test "$enable_factory" != yes && test "$enable_factory" != no; then
Note: See TracChangeset for help on using the changeset viewer.