Changeset 2f7cc5 in git


Ignore:
Timestamp:
May 31, 2006, 6:21:50 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
aaa39a5f3bfb59db4dc34d109d40f75d267a1ff9
Parents:
d45ad9b4fc43037b47292cb6d24fc9e6f9f539df
Message:
*hannes: avoid MP for 64bit systems


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

Legend:

Unmodified
Added
Removed
  • configure

    rd45ad9 r2f7cc5  
    23302330fi
    23312331
     2332#AC_MSG_CHECKING(whether to configure and build MP lib)
     2333# requires: sizeof(long)==4
     2334echo $ac_n "checking size of long""... $ac_c" 1>&6
     2335echo "configure:2336: checking size of long" >&5
     2336if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
     2337  echo $ac_n "(cached) $ac_c" 1>&6
     2338else
     2339  if test "$cross_compiling" = yes; then
     2340  ac_cv_sizeof_long=4
     2341else
     2342  cat > conftest.$ac_ext <<EOF
     2343#line 2344 "configure"
     2344#include "confdefs.h"
     2345#include <stdio.h>
     2346main()
     2347{
     2348  FILE *f=fopen("conftestval", "w");
     2349  if (!f) exit(1);
     2350  fprintf(f, "%d\n", sizeof(long));
     2351  exit(0);
     2352}
     2353EOF
     2354if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2355then
     2356  ac_cv_sizeof_long=`cat conftestval`
     2357else
     2358  echo "configure: failed program was:" >&5
     2359  cat conftest.$ac_ext >&5
     2360  rm -fr conftest*
     2361  ac_cv_sizeof_long=0
     2362fi
     2363rm -fr conftest*
     2364fi
     2365
     2366fi
     2367echo "$ac_t""$ac_cv_sizeof_long" 1>&6
     2368cat >> confdefs.h <<EOF
     2369#define SIZEOF_LONG $ac_cv_sizeof_long
     2370EOF
     2371
     2372
     2373if test "$ac_cv_sizeof_long" != 4; then
     2374  with_MP=no
     2375fi
     2376
    23322377echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
    2333 echo "configure:2334: checking whether to configure and build MP lib" >&5
     2378echo "configure:2379: checking whether to configure and build MP lib" >&5
     2379
    23342380if test "$enable_MP" != yes && test "$enable_MP" != no; then
    23352381  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     
    23672413
    23682414echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
    2369 echo "configure:2370: checking whether to configure and build NTL lib" >&5
     2415echo "configure:2416: checking whether to configure and build NTL lib" >&5
    23702416if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
    23712417  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
     
    23842430
    23852431    echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    2386 echo "configure:2387: checking how to run the C++ preprocessor" >&5
     2432echo "configure:2433: checking how to run the C++ preprocessor" >&5
    23872433if test -z "$CXXCPP"; then
    23882434if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    23972443  CXXCPP="${CXX-g++} -E"
    23982444  cat > conftest.$ac_ext <<EOF
    2399 #line 2400 "configure"
     2445#line 2446 "configure"
    24002446#include "confdefs.h"
    24012447#include <stdlib.h>
    24022448EOF
    24032449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2450{ (eval echo configure:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24052451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    24062452if test -z "$ac_err"; then
     
    24302476ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    24312477echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2432 echo "configure:2433: checking for $ac_hdr" >&5
     2478echo "configure:2479: checking for $ac_hdr" >&5
    24332479if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    24342480  echo $ac_n "(cached) $ac_c" 1>&6
    24352481else
    24362482  cat > conftest.$ac_ext <<EOF
    2437 #line 2438 "configure"
     2483#line 2484 "configure"
    24382484#include "confdefs.h"
    24392485#include <$ac_hdr>
    24402486EOF
    24412487ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2442 { (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2488{ (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24432489ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    24442490if test -z "$ac_err"; then
     
    24852531
    24862532echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    2487 echo "configure:2488: checking whether to configure and build factory lib" >&5
     2533echo "configure:2534: checking whether to configure and build factory lib" >&5
    24882534if test "$enable_factory" != yes && test "$enable_factory" != no; then
    24892535  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     
    25122558
    25132559echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    2514 echo "configure:2515: checking whether to configure and build libfac lib" >&5
     2560echo "configure:2561: checking whether to configure and build libfac lib" >&5
    25152561if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    25162562  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     
    25442590
    25452591echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    2546 echo "configure:2547: checking whether to configure and build sgroup lib" >&5
     2592echo "configure:2593: checking whether to configure and build sgroup lib" >&5
    25472593if test "$enable_sgroup" = yes; then
    25482594  if test ! -d sgroup; then
     
    25652611
    25662612echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    2567 echo "configure:2568: checking whether to configure and build Singular" >&5
     2613echo "configure:2614: checking whether to configure and build Singular" >&5
    25682614if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    25692615  if test "$with_Singular" != no && test -d Singular; then
     
    25962642
    25972643echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
    2598 echo "configure:2599: checking whether to build IntegerProgramming" >&5
     2644echo "configure:2645: checking whether to build IntegerProgramming" >&5
    25992645if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
    26002646   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
     
    26092655
    26102656echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
    2611 echo "configure:2612: checking whether to build Plural" >&5
     2657echo "configure:2658: checking whether to build Plural" >&5
    26122658if test "$enable_Plural" != no || test "$with_Plural" != no; then
    26132659   echo "$ac_t""yes" 1>&6
     
    26212667
    26222668echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
    2623 echo "configure:2624: checking whether to configure and build Texinfo" >&5
     2669echo "configure:2670: checking whether to configure and build Texinfo" >&5
    26242670if test "$enable_Texinfo" != no && test -d Texinfo; then
    26252671  echo "$ac_t""yes" 1>&6
     
    26452691set dummy makeinfo; ac_word=$2
    26462692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2647 echo "configure:2648: checking for $ac_word" >&5
     2693echo "configure:2694: checking for $ac_word" >&5
    26482694if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    26492695  echo $ac_n "(cached) $ac_c" 1>&6
     
    26752721set dummy texi2dvi; ac_word=$2
    26762722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2677 echo "configure:2678: checking for $ac_word" >&5
     2723echo "configure:2724: checking for $ac_word" >&5
    26782724if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
    26792725  echo $ac_n "(cached) $ac_c" 1>&6
     
    27052751set dummy texindex; ac_word=$2
    27062752echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2707 echo "configure:2708: checking for $ac_word" >&5
     2753echo "configure:2754: checking for $ac_word" >&5
    27082754if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
    27092755  echo $ac_n "(cached) $ac_c" 1>&6
     
    27352781set dummy texi2pdf; ac_word=$2
    27362782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2737 echo "configure:2738: checking for $ac_word" >&5
     2783echo "configure:2784: checking for $ac_word" >&5
    27382784if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then
    27392785  echo $ac_n "(cached) $ac_c" 1>&6
     
    27652811
    27662812echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
    2767 echo "configure:2768: checking whether to configure and build Texi2html" >&5
     2813echo "configure:2814: checking whether to configure and build Texi2html" >&5
    27682814if test "$enable_Texi2html" != no && test -d Texi2html; then
    27692815 echo "$ac_t""yes" 1>&6
     
    27802826set dummy texi2html; ac_word=$2
    27812827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2782 echo "configure:2783: checking for $ac_word" >&5
     2828echo "configure:2829: checking for $ac_word" >&5
    27832829if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
    27842830  echo $ac_n "(cached) $ac_c" 1>&6
     
    28182864
    28192865echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
    2820 echo "configure:2821: checking whether to build doc" >&5
     2866echo "configure:2867: checking whether to build doc" >&5
    28212867if test "$enable_doc" != no && test -d doc; then
    28222868 echo "$ac_t""yes" 1>&6
     
    28322878
    28332879echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
    2834 echo "configure:2835: checking whether to build emacs" >&5
     2880echo "configure:2881: checking whether to build emacs" >&5
    28352881if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
    28362882 echo "$ac_t""yes" 1>&6
     
    28442890
    28452891echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    2846 echo "configure:2847: checking which apint package to use" >&5
     2892echo "configure:2893: checking which apint package to use" >&5
    28472893if test "$with_apint" = gmp; then
    28482894  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    28602906
    28612907echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    2862 echo "configure:2863: checking whether to use with MP" >&5
     2908echo "configure:2909: checking whether to use with MP" >&5
    28632909if test "$with_MP" = yes; then
    28642910  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    28802926
    28812927echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    2882 echo "configure:2883: checking whether to use with factory" >&5
     2928echo "configure:2929: checking whether to use with factory" >&5
    28832929if test "$with_factory" = yes; then
    28842930  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    28992945 
    29002946echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    2901 echo "configure:2902: checking whether to use with libfac" >&5
     2947echo "configure:2948: checking whether to use with libfac" >&5
    29022948if test "$with_libfac" = yes; then
    29032949  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    29202966
    29212967echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    2922 echo "configure:2923: checking whether to use with Singular" >&5
     2968echo "configure:2969: checking whether to use with Singular" >&5
    29232969if test "$with_Singular" != no && test "$with_Singular" != yes; then
    29242970  if test "$enable_Singular" = yes; then
     
    29833029 
    29843030echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    2985 echo "configure:2986: checking whether ${MAKE-make} sets \${MAKE}" >&5
     3031echo "configure:3032: checking whether ${MAKE-make} sets \${MAKE}" >&5
    29863032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    29873033if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  • configure.in

    rd45ad9 r2f7cc5  
    401401fi
    402402
     403#AC_MSG_CHECKING(whether to configure and build MP lib)
     404# requires: sizeof(long)==4
     405AC_CHECK_SIZEOF(long,4)
     406if test "$ac_cv_sizeof_long" != 4; then
     407  with_MP=no
     408fi
     409
    403410AC_MSG_CHECKING(whether to configure and build MP lib)
     411
    404412if test "$enable_MP" != yes && test "$enable_MP" != no; then
    405413  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
Note: See TracChangeset for help on using the changeset viewer.