/[gcl]/gcl/configure-new.ac
ViewVC logotype

Diff of /gcl/configure-new.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mjthomas, Wed Jul 10 07:43:20 2002 UTC revision 1.2 by mjthomas, Tue Jul 30 06:29:35 2002 UTC
# Line 51  GCC="" Line 51  GCC=""
51  fi  fi
52  # subst GCC not only under 386-linux, but where available -- CM  # subst GCC not only under 386-linux, but where available -- CM
53  AC_SUBST(GCC)  AC_SUBST(GCC)
54    AC_CHECK_SIZEOF(long *,0)
55  AC_CHECK_HEADERS(endian.h,  AC_CHECK_HEADERS(endian.h,
56          AC_MSG_CHECKING("endianness")          AC_MSG_CHECKING("endianness")
57          AC_TRY_RUN([#include <endian.h>          AC_TRY_RUN([#include <endian.h>
# Line 982  if test $use_gmp = yes ; then Line 982  if test $use_gmp = yes ; then
982        (cd gmp ; ./configure) ;;        (cd gmp ; ./configure) ;;
983   esac   esac
984   [[ "`ls -1 gmp/mpn/add_n.* 2>/dev/null`" != "" ]] || cp gmp/mpn/generic/*.c gmp/mpn/   [[ "`ls -1 gmp/mpn/add_n.* 2>/dev/null`" != "" ]] || cp gmp/mpn/generic/*.c gmp/mpn/
985     AC_MSG_CHECKING("for size of gmp limbs")
986     AC_TRY_RUN([#include <stdio.h>
987            #include "h/gmp.h"
988            
989            int main() {
990            FILE *fp=fopen("conftest1","w");
991            fprintf(fp,"%u",sizeof(mp_limb_t));
992            fclose(fp);
993            return 0;
994    }],mpsize=`cat conftest1`,mpsize=0,mpsize=0)
995     if test "$mpsize" = "0" ; then
996            echo "Cannot determine mpsize"
997            exit 1
998     fi
999     AC_DEFINE_UNQUOTED(MP_LIMB_BYTES,$mpsize)
1000     AC_MSG_RESULT($mpsize)
1001   GMP=1   GMP=1
1002   AC_DEFINE(GMP)   AC_DEFINE(GMP)
1003   AC_SUBST(GMP)   AC_SUBST(GMP)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26