Changeset 7adb502 in git for MP


Ignore:
Timestamp:
Jun 28, 1997, 4:39:29 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
cf29809548261e742cf76d96605d660d04dab9de
Parents:
a708e05307ead3012a96e3d8308e940ea9cc7be0
Message:
* removed conflicts from MP_1_1_2_0 conflicts


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

Legend:

Unmodified
Added
Removed
  • MP/MP/ChangeLog

    ra708e0 r7adb502  
    1111          assigned oldval
    1212
     13Fri Jun  6 15:55:04 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     14
     15        * MP_Env.c: Used RawMem function for allocation of
     16          env->logfilename
     17
    1318Tue May 27 13:57:13 1997  Olaf Bachmann  <obachman@ratchwu>
    1419
    1520        * MP_TcpTransp.h: Added fork mode to MPtcp links
     21
     22Tue May 27 13:57:13 1997  Olaf Bachmann  <obachman@ratchwu>
     23
     24        * MP_TcpTransp.[h,c]: Added fork mode to MPtcp links
    1625
    1726Tue May 20 17:38:53 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
  • MP/MP/MP.h

    ra708e0 r7adb502  
    11
    2 /* MP.h automatically generated by ./makeheader.pl on Wed Jun 11 19:18:33 MESZ 1997
     2/* MP.h automatically generated by ./makeheader.pl on Sat Jun 28 16:38:23 MESZ 1997
    33*/
    44/****************************************************************
     
    100100
    101101/* For checking the status of a link*/
    102 enum link_status_option {MP_LinkReadyReading, MP_LinkReadyWriting,
    103                          MP_LinkIsParent};
     102enum link_status_option {MP_UnknownStatus, MP_LinkReadyReading,
     103                         MP_LinkReadyWriting,
     104                         MP_LinkIsParent, MP_LinkIsChild};
    104105typedef enum link_status_option MP_LinkStatus_t;
    105106
     
    691692
    692693typedef struct  {
    693     long         (*write_buf)();          /* write buffer to transport   */
    694     long         (*read_buf)();           /* read transport to buffer    */
    695     MP_Status_t  (*flush_buf)();          /* flush buffer to transport   */
    696     MP_Boolean_t (*get_status)();         /* check status of the link    */
    697     MP_Status_t  (*open_transp)();        /* open the transport device   */
    698     MP_Status_t  (*close_transp)();       /* close the transport device  */
     694    long         (*write_buf)VARARGS;       /* write buffer to transport   */
     695    long         (*read_buf)VARARGS;        /* read transport to buffer    */
     696    MP_Status_t  (*flush_buf)VARARGS;       /* flush buffer to transport   */
     697    MP_Boolean_t (*get_status)VARARGS;      /* check status of the link    */
     698    MP_Status_t  (*open_transp)VARARGS;     /* open the transport device   */
     699    MP_Status_t  (*close_transp)VARARGS;    /* close the transport device  */
    699700} MP_TranspOps_t;
    700701
     
    14581459    char    *peerhost;
    14591460    char    *myhost;
    1460     char     isparent;
     1461    MP_LinkStatus_t status;
    14611462} MP_TCP_t;
    14621463
     
    16221623#ifdef MP_HAVE_PARI
    16231624
     1625/* Dirty hack with honors to andi: pari defines "overflow" identifier
     1626   which conflicts with the definition in some libraries (e.g. in
     1627   iostream -- hence, we overshadow this defitnition before includeing
     1628   genpari */
     1629#ifndef overflow
     1630#define overflow muff
    16241631#include "genpari.h"
    1625  
     1632#undef overflow
     1633#endif
     1634
     1635
    16261636EXTERN MP_BigIntOps_t imp_pari_bigint_ops;
    16271637
     
    18151825#define MP_CopBasicNot              24
    18161826#define MP_CopBasicAssign           25
    1817 
     1827#define MP_CopBasicComplex          26
    18181828
    18191829#endif /* _MP_BasicDict_h */
     
    18921902 ***************************************************************************/
    18931903#define MP_CmtNumberRational           1
     1904#define MP_CmtNumberInteger             2
     1905
    18941906
    18951907/***************************************************************************
     
    19381950 *
    19391951 ***************************************************************************/
     1952/* We use the same numerical values as we use for the MP types */
     1953#define MP_CmtProto_2_MPType(cmt)   cmt
     1954
    19401955#define MP_CmtProtoIMP_Sint8                        65
    19411956#define MP_CmtProtoIMP_Uint8                        67
     
    21182133#define MP_CopPolyResultant             44
    21192134
     2135/***************************************************************************
     2136 *
     2137 * Common Metat Types
     2138 *
     2139 ***************************************************************************/
     2140
     2141#define MP_CmtPolyExpTreePoly       1
    21202142
    21212143#endif /* _MP_PolyDict_h */
  • MP/MP/MP_Env.c

    ra708e0 r7adb502  
    5757
    5858#ifndef lint
    59 static char vcid[] = "@(#) $Id: MP_Env.c,v 1.3 1997-06-28 13:30:25 obachman Exp $";
     59static char vcid[] = "@(#) $Id: MP_Env.c,v 1.1.1.1 1997/06/07 14:07:47 sgray Exp
     60 $";
    6061#endif /*lint */
    6162
  • MP/MP/MP_Get.c

    ra708e0 r7adb502  
    6565 **************************************************************************/
    6666
    67 #ifndef lint
    68 static char vcid[] = "@(#) $Id: MP_Get.c,v 1.2 1997-06-05 16:38:54 obachman Exp $";
    69 #endif /* lint */
    70  
    7167#include "MP.h"
    7268
  • MP/MP/MP_Put.c

    ra708e0 r7adb502  
    7777
    7878
    79 #ifndef lint
    80 static char vcid[] = "@(#) $Id: MP_Put.c,v 1.2 1997-06-28 13:30:27 obachman Exp $";
    81 #endif /* lint */
    82 
    8379#include "MP.h"
    8480
  • MP/MP/MP_TcpTransp.c

    ra708e0 r7adb502  
    7474
    7575#ifndef lint
    76 static char vcid[] = "@(#) $Id: MP_TcpTransp.c,v 1.2 1997-06-05 16:38:56 obachman Exp $";
     76static char vcid[] = "@(#) $Id: MP_TcpTransp.c,v 1.1.1.1 1997/06/7 14:05:52 sgr
     77ay Exp $";
    7778#endif /* lint */
    7879
     
    683684    sprintf(cport,"%d",tcp_rec->peerport);
    684685    argv[7] = cport;
    685     tcp_rec->isparent = 0;
    686686
    687687    /* establish connection */
     
    701701      _exit(1);
    702702    else
     703    {
     704      tcp_rec->status = MP_LinkIsChild;
    703705      return MP_Success;
     706    }
    704707  }
    705708  else
     
    714717    /* establish connection */
    715718    socket_accept_blocking(link, &tcp_rec->sock);
    716     tcp_rec->isparent = 1;
     719    tcp_rec->status = MP_LinkIsParent;
    717720
    718721#ifndef NO_LOGGING
     
    994997  if (status_to_check == MP_LinkIsParent)
    995998  {
    996     if (((MP_TCP_t *)link->transp.private1)->isparent)
     999    if (((MP_TCP_t *)link->transp.private1)->status == MP_LinkIsParent)
    9971000      return MP_TRUE;
    9981001    else
    9991002      return MP_FALSE;
    10001003  }
     1004  else if (status_to_check == MP_LinkIsChild)
     1005  {
     1006    if (((MP_TCP_t *)link->transp.private1)->status == MP_LinkIsChild)
     1007      return MP_TRUE;
     1008    else
     1009      return MP_FALSE;
     1010  }
     1011 
    10011012
    10021013    FD_ZERO(&mask);
     
    12431254    tcp_rec->myhost   = NULL;
    12441255    tcp_rec->peerhost = NULL;
    1245     tcp_rec->isparent   = 0;
     1256    tcp_rec->status   = MP_UnknownStatus;
    12461257
    12471258    link->transp.private1 = (char *)tcp_rec;
  • MP/MP/Makefile.in

    ra708e0 r7adb502  
    9191        rm -f $@
    9292        $(AR) cr $@ $(OBJS)
    93         $(RANLIB) $@
     93        if $(RANLIB_TEST) ; then $(RANLIB) $@; else true; fi
     94#       $(RANLIB) $@
    9495
    9596install: libMP.a
  • MP/MP/h/MP_Config.h.in

    ra708e0 r7adb502  
    1818/* define ptr to limbs */
    1919#define _mp_d _mp_d
     20
     21/* Define for use when vfork doesn't exist or is broken*/
     22#undef vfork
    2023
    2124/* Define for use with GMP ApReals*/
  • MP/MP/h/MP_TcpTransp.h

    ra708e0 r7adb502  
    9595    char    *peerhost;
    9696    char    *myhost;
    97     char     isparent;
     97    MP_LinkStatus_t status;
    9898} MP_TCP_t;
    9999
  • MP/MP/h/MP_Types.h

    ra708e0 r7adb502  
    3636
    3737/* For checking the status of a link*/
    38 enum link_status_option {MP_LinkReadyReading, MP_LinkReadyWriting,
    39                          MP_LinkIsParent};
     38enum link_status_option {MP_UnknownStatus, MP_LinkReadyReading,
     39                         MP_LinkReadyWriting,
     40                         MP_LinkIsParent, MP_LinkIsChild};
    4041typedef enum link_status_option MP_LinkStatus_t;
    4142
  • MP/configure

    ra708e0 r7adb502  
    1818ac_help="$ac_help
    1919\
    20    --disable-gmp           configure and built without gmp library"
     20   --disable-gmp           configure and build without gmp library"
    2121ac_help="$ac_help
    2222\
     
    2727ac_help="$ac_help
    2828\
    29    --enable-mppvm,         enable building of mppvm routines"
     29   --enable-mppvm          enable building of mppvm routines"
    3030ac_help="$ac_help
    3131\
    3232   --with-default_apint=PACKAGE    use PACKAGE as MP's default ApInt format
    33                            where PACKAGE can be none, gmp (default),
    34                            pari, saclib"
     33                           where PACKAGE can be: gmp (default), pari,
     34                           saclib, none"
    3535ac_help="$ac_help
    3636\
    3737   --with-default_apreal=PACKAGE   use PACKAGE as MP's default ApReal format
    38                            where PACKAGE can be none, gmp (default)"
     38                           where PACKAGE can be: gmp (default), none"
    3939ac_help="$ac_help
    4040\
     
    674674
    675675
     676
     677echo $ac_n "checking for architecture identifier""... $ac_c" 1>&6 
     678if eval "test \"`echo '$''{'ac_cv_arch'+set}'`\" = set"; then
     679  echo $ac_n "(cached) $ac_c" 1>&6
     680else
     681  ac_cv_arch=`./pvmgetarch`
     682fi
     683
     684echo "$ac_t""$ac_cv_arch" 1>&6
     685
     686if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then
     687  libdir='${prefix}/lib/'$ac_cv_arch
     688fi
     689
     690if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then
     691  bindir='${prefix}/bin/'$ac_cv_arch
     692fi
     693
    676694# Extract the first word of "ranlib", so it can be a program name with args.
    677695set dummy ranlib; ac_word=$2
     
    839857#endif
    840858EOF
    841 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     859if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    842860  ac_cv_prog_gcc=yes
    843861else
     
    891909  # not just through cpp.
    892910  cat > conftest.$ac_ext <<EOF
    893 #line 894 "configure"
     911#line 912 "configure"
    894912#include "confdefs.h"
    895913#include <assert.h>
     
    897915EOF
    898916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     917{ (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    900918ac_err=`grep -v '^ *+' conftest.out`
    901919if test -z "$ac_err"; then
     
    906924  CPP="${CC-cc} -E -traditional-cpp"
    907925  cat > conftest.$ac_ext <<EOF
    908 #line 909 "configure"
     926#line 927 "configure"
    909927#include "confdefs.h"
    910928#include <assert.h>
     
    912930EOF
    913931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    914 { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     932{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    915933ac_err=`grep -v '^ *+' conftest.out`
    916934if test -z "$ac_err"; then
     
    934952echo $ac_n "checking for AIX""... $ac_c" 1>&6
    935953cat > conftest.$ac_ext <<EOF
    936 #line 937 "configure"
     954#line 955 "configure"
    937955#include "confdefs.h"
    938956#ifdef _AIX
     
    978996    LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}"
    979997  fi
     998elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then
     999  if test "x$prefix" = xNONE; then
     1000    LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch  ${LDFLAGS}"
     1001  else
     1002    LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}"
     1003  fi
    9801004else
    9811005  LDFLAGS="-L${libdir} ${LDFLAGS}"
     
    9921016fi
    9931017
    994 if test "$enable_mppvm" = yes && test "${PVM_ROOT+set}" = set; then
    995   CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
    996   LDFLAGS="${LDFLAGS} -L${PVM_ROOT}/lib"
     1018if test "${PVM_ROOT+set}" = set; then
     1019  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
     1020    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
     1021    if test ${PVM_ARCH+set} = set; then
     1022      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
     1023    fi
     1024  fi
    9971025fi
    9981026
     
    10321060else
    10331061cat > conftest.$ac_ext <<EOF
    1034 #line 1035 "configure"
     1062#line 1063 "configure"
    10351063#include "confdefs.h"
    10361064main(){return(0);}
    10371065EOF
    1038 { (eval echo configure:1039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1066{ (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    10391067if test -s conftest && (./conftest; exit) 2>/dev/null; then
    10401068  ac_cv_c_cross=no
     
    10541082else
    10551083  cat > conftest.$ac_ext <<EOF
    1056 #line 1057 "configure"
     1084#line 1085 "configure"
    10571085#include "confdefs.h"
    10581086#include <stdlib.h>
     
    10621090EOF
    10631091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1064 { (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1092{ (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    10651093ac_err=`grep -v '^ *+' conftest.out`
    10661094if test -z "$ac_err"; then
     
    10771105  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    10781106cat > conftest.$ac_ext <<EOF
    1079 #line 1080 "configure"
     1107#line 1108 "configure"
    10801108#include "confdefs.h"
    10811109#include <string.h>
     
    10951123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    10961124cat > conftest.$ac_ext <<EOF
    1097 #line 1098 "configure"
     1125#line 1126 "configure"
    10981126#include "confdefs.h"
    10991127#include <stdlib.h>
     
    11161144else
    11171145cat > conftest.$ac_ext <<EOF
    1118 #line 1119 "configure"
     1146#line 1147 "configure"
    11191147#include "confdefs.h"
    11201148#include <ctype.h>
     
    11271155
    11281156EOF
    1129 { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1157{ (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    11301158if test -s conftest && (./conftest; exit) 2>/dev/null; then
    11311159  :
     
    11511179else
    11521180  cat > conftest.$ac_ext <<EOF
    1153 #line 1154 "configure"
     1181#line 1182 "configure"
    11541182#include "confdefs.h"
    11551183#include <sys/types.h>
     
    11831211else
    11841212  cat > conftest.$ac_ext <<EOF
    1185 #line 1186 "configure"
     1213#line 1214 "configure"
    11861214#include "confdefs.h"
    11871215#include <vfork.h>
    11881216EOF
    11891217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1190 { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1218{ (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11911219ac_err=`grep -v '^ *+' conftest.out`
    11921220if test -z "$ac_err"; then
     
    12201248else
    12211249  cat > conftest.$ac_ext <<EOF
    1222 #line 1223 "configure"
     1250#line 1251 "configure"
    12231251#include "confdefs.h"
    12241252/* System header to define __stub macros and hopefully few prototypes,
     
    12421270; return 0; }
    12431271EOF
    1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1272if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12451273  rm -rf conftest*
    12461274  eval "ac_cv_func_vfork=yes"
     
    12611289else
    12621290cat > conftest.$ac_ext <<EOF
    1263 #line 1264 "configure"
     1291#line 1292 "configure"
    12641292#include "confdefs.h"
    12651293/* Thanks to Paul Eggert for this test.  */
     
    13541382}
    13551383EOF
    1356 { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1384{ (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    13571385if test -s conftest && (./conftest; exit) 2>/dev/null; then
    13581386  ac_cv_func_vfork=yes
     
    14151443
    14161444if test "$enable_MPT" != no && test -d MPT; then
    1417   if test "$with_default_apint" = saclib; then
    1418     echo "configure: warning: Can not build MPT library with saclib ApInt" 1>&2
    1419   elif test "$with_default_apint" = pari; then
    1420     echo "configure: warning: Can not build MPT library with pari ApInt" 1>&2
    1421   else
    14221445    BUILD_SUBDIRS="${BUILD_SUBDIRS} MPT"
    1423   fi
    14241446fi
    14251447
     
    14371459  BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3"
    14381460  ac_check_prog=yes
    1439 fi
     1461  with_pvm=yes
     1462fi
     1463
    14401464
    14411465
     
    14501474LIBS="-lm  $LIBS"
    14511475cat > conftest.$ac_ext <<EOF
    1452 #line 1453 "configure"
     1476#line 1477 "configure"
    14531477#include "confdefs.h"
    14541478/* Override any gcc2 internal prototype to avoid an error.  */
     
    14601484; return 0; }
    14611485EOF
    1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1486if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    14631487  rm -rf conftest*
    14641488  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14921516LIBS="-lbsd  $LIBS"
    14931517cat > conftest.$ac_ext <<EOF
    1494 #line 1495 "configure"
     1518#line 1519 "configure"
    14951519#include "confdefs.h"
    14961520/* Override any gcc2 internal prototype to avoid an error.  */
     
    15021526; return 0; }
    15031527EOF
    1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1528if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15051529  rm -rf conftest*
    15061530  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15341558LIBS="-lgmp  $LIBS"
    15351559cat > conftest.$ac_ext <<EOF
    1536 #line 1537 "configure"
     1560#line 1561 "configure"
    15371561#include "confdefs.h"
    15381562/* Override any gcc2 internal prototype to avoid an error.  */
     
    15441568; return 0; }
    15451569EOF
    1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1570if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15471571  rm -rf conftest*
    15481572  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15771601  fi
    15781602 
    1579   for ac_func in select socket gethostname strtol
     1603  for ac_func in select socket gethostname gethostbyname strtol
    15801604do
    15811605echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     
    15841608else
    15851609  cat > conftest.$ac_ext <<EOF
    1586 #line 1587 "configure"
     1610#line 1611 "configure"
    15871611#include "confdefs.h"
    15881612/* System header to define __stub macros and hopefully few prototypes,
     
    16061630; return 0; }
    16071631EOF
    1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1632if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16091633  rm -rf conftest*
    16101634  eval "ac_cv_func_$ac_func=yes"
     
    16301654  if test "$ac_cv_func_select" != yes; then
    16311655    echo "configure: warning: Did not find library containing function select" 1>&2
    1632     echo "configure: warning: Linking programs with MP might fail" 1>&2
    1633   fi
    1634   if test "$ac_cv_func_socket" != yes; then
    1635     echo "configure: warning: Did not find library containing socket" 1>&2
    16361656    echo "configure: warning: Linking programs with MP might fail" 1>&2
    16371657  fi
     
    16401660    echo "configure: warning: Linking programs with MP might fail" 1>&2
    16411661  fi
     1662
     1663  if test "$ac_cv_func_gethostbyname" != yes; then
     1664    echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
     1665ac_lib_var=`echo nsl_gethostbyname | tr '.-/+' '___p'`
     1666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1667  echo $ac_n "(cached) $ac_c" 1>&6
     1668else
     1669  ac_save_LIBS="$LIBS"
     1670LIBS="-lnsl  $LIBS"
     1671cat > conftest.$ac_ext <<EOF
     1672#line 1673 "configure"
     1673#include "confdefs.h"
     1674/* Override any gcc2 internal prototype to avoid an error.  */
     1675char gethostbyname();
     1676
     1677int main() { return 0; }
     1678int t() {
     1679gethostbyname()
     1680; return 0; }
     1681EOF
     1682if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1683  rm -rf conftest*
     1684  eval "ac_cv_lib_$ac_lib_var=yes"
     1685else
     1686  rm -rf conftest*
     1687  eval "ac_cv_lib_$ac_lib_var=no"
     1688fi
     1689rm -f conftest*
     1690LIBS="$ac_save_LIBS"
     1691
     1692fi
     1693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1694  echo "$ac_t""yes" 1>&6
     1695    ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1696  cat >> confdefs.h <<EOF
     1697#define $ac_tr_lib 1
     1698EOF
     1699
     1700  LIBS="-lnsl $LIBS"
     1701
     1702else
     1703  echo "$ac_t""no" 1>&6
     1704fi
     1705
     1706    if test "$ac_cv_lib_nsl_gethostbyname" != yes; then
     1707      echo "configure: warning: Did not find library containing gethostname" 1>&2
     1708      echo "configure: warning: Linking programs with MP might fail" 1>&2
     1709    fi
     1710  fi
     1711
     1712  if test "$ac_cv_func_socket" != yes; then
     1713    echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
     1714ac_lib_var=`echo socket_socket | tr '.-/+' '___p'`
     1715if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1716  echo $ac_n "(cached) $ac_c" 1>&6
     1717else
     1718  ac_save_LIBS="$LIBS"
     1719LIBS="-lsocket  $LIBS"
     1720cat > conftest.$ac_ext <<EOF
     1721#line 1722 "configure"
     1722#include "confdefs.h"
     1723/* Override any gcc2 internal prototype to avoid an error.  */
     1724char socket();
     1725
     1726int main() { return 0; }
     1727int t() {
     1728socket()
     1729; return 0; }
     1730EOF
     1731if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1732  rm -rf conftest*
     1733  eval "ac_cv_lib_$ac_lib_var=yes"
     1734else
     1735  rm -rf conftest*
     1736  eval "ac_cv_lib_$ac_lib_var=no"
     1737fi
     1738rm -f conftest*
     1739LIBS="$ac_save_LIBS"
     1740
     1741fi
     1742if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1743  echo "$ac_t""yes" 1>&6
     1744    ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1745  cat >> confdefs.h <<EOF
     1746#define $ac_tr_lib 1
     1747EOF
     1748
     1749  LIBS="-lsocket $LIBS"
     1750
     1751else
     1752  echo "$ac_t""no" 1>&6
     1753fi
     1754
     1755    if test "$ac_cv_lib_socket_socket" != yes; then
     1756      echo "configure: warning: Did not find library containing socket" 1>&2
     1757      echo "configure: warning: Linking programs with MP might fail" 1>&2
     1758    fi
     1759  fi
    16421760fi
    16431761
     
    16481766else
    16491767  cat > conftest.$ac_ext <<EOF
    1650 #line 1651 "configure"
     1768#line 1769 "configure"
    16511769#include "confdefs.h"
    16521770#include <stdlib.h>
     
    16561774EOF
    16571775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1776{ (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    16591777ac_err=`grep -v '^ *+' conftest.out`
    16601778if test -z "$ac_err"; then
     
    16711789  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16721790cat > conftest.$ac_ext <<EOF
    1673 #line 1674 "configure"
     1791#line 1792 "configure"
    16741792#include "confdefs.h"
    16751793#include <string.h>
     
    16891807  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16901808cat > conftest.$ac_ext <<EOF
    1691 #line 1692 "configure"
     1809#line 1810 "configure"
    16921810#include "confdefs.h"
    16931811#include <stdlib.h>
     
    17101828else
    17111829cat > conftest.$ac_ext <<EOF
    1712 #line 1713 "configure"
     1830#line 1831 "configure"
    17131831#include "confdefs.h"
    17141832#include <ctype.h>
     
    17211839
    17221840EOF
    1723 { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1841{ (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    17241842if test -s conftest && (./conftest; exit) 2>/dev/null; then
    17251843  :
     
    17461864else
    17471865  cat > conftest.$ac_ext <<EOF
    1748 #line 1749 "configure"
     1866#line 1867 "configure"
    17491867#include "confdefs.h"
    17501868#include <arpa/inet.h>
    17511869EOF
    17521870ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1753 { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1871{ (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17541872ac_err=`grep -v '^ *+' conftest.out`
    17551873if test -z "$ac_err"; then
     
    17771895else
    17781896  cat > conftest.$ac_ext <<EOF
    1779 #line 1780 "configure"
     1897#line 1898 "configure"
    17801898#include "confdefs.h"
    17811899#include <assert.h>
    17821900EOF
    17831901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1902{ (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17851903ac_err=`grep -v '^ *+' conftest.out`
    17861904if test -z "$ac_err"; then
     
    18081926else
    18091927  cat > conftest.$ac_ext <<EOF
    1810 #line 1811 "configure"
     1928#line 1929 "configure"
    18111929#include "confdefs.h"
    18121930#include <ctype.h>
    18131931EOF
    18141932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1815 { (eval echo configure:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1933{ (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18161934ac_err=`grep -v '^ *+' conftest.out`
    18171935if test -z "$ac_err"; then
     
    18391957else
    18401958  cat > conftest.$ac_ext <<EOF
    1841 #line 1842 "configure"
     1959#line 1960 "configure"
    18421960#include "confdefs.h"
    18431961#include <errno.h>
    18441962EOF
    18451963ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1964{ (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18471965ac_err=`grep -v '^ *+' conftest.out`
    18481966if test -z "$ac_err"; then
     
    18701988else
    18711989  cat > conftest.$ac_ext <<EOF
    1872 #line 1873 "configure"
     1990#line 1991 "configure"
    18731991#include "confdefs.h"
    18741992#include <netdb.h>
    18751993EOF
    18761994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1995{ (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18781996ac_err=`grep -v '^ *+' conftest.out`
    18791997if test -z "$ac_err"; then
     
    19012019else
    19022020  cat > conftest.$ac_ext <<EOF
    1903 #line 1904 "configure"
     2021#line 2022 "configure"
    19042022#include "confdefs.h"
    19052023#include <netinet/in.h>
    19062024EOF
    19072025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2026{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19092027ac_err=`grep -v '^ *+' conftest.out`
    19102028if test -z "$ac_err"; then
     
    19322050else
    19332051  cat > conftest.$ac_ext <<EOF
    1934 #line 1935 "configure"
     2052#line 2053 "configure"
    19352053#include "confdefs.h"
    19362054#include <netinet/tcp.h>
    19372055EOF
    19382056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2057{ (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19402058ac_err=`grep -v '^ *+' conftest.out`
    19412059if test -z "$ac_err"; then
     
    19632081else
    19642082  cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
     2083#line 2084 "configure"
    19662084#include "confdefs.h"
    19672085#include <signal.h>
    19682086EOF
    19692087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2088{ (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19712089ac_err=`grep -v '^ *+' conftest.out`
    19722090if test -z "$ac_err"; then
     
    19942112else
    19952113  cat > conftest.$ac_ext <<EOF
    1996 #line 1997 "configure"
     2114#line 2115 "configure"
    19972115#include "confdefs.h"
    19982116#include <stdarg.h>
    19992117EOF
    20002118ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2119{ (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20022120ac_err=`grep -v '^ *+' conftest.out`
    20032121if test -z "$ac_err"; then
     
    20252143else
    20262144  cat > conftest.$ac_ext <<EOF
    2027 #line 2028 "configure"
     2145#line 2146 "configure"
    20282146#include "confdefs.h"
    20292147#include <stdio.h>
    20302148EOF
    20312149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2032 { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2150{ (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20332151ac_err=`grep -v '^ *+' conftest.out`
    20342152if test -z "$ac_err"; then
     
    20562174else
    20572175  cat > conftest.$ac_ext <<EOF
    2058 #line 2059 "configure"
     2176#line 2177 "configure"
    20592177#include "confdefs.h"
    20602178#include <stdlib.h>
    20612179EOF
    20622180ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2063 { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2181{ (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20642182ac_err=`grep -v '^ *+' conftest.out`
    20652183if test -z "$ac_err"; then
     
    20872205else
    20882206  cat > conftest.$ac_ext <<EOF
    2089 #line 2090 "configure"
     2207#line 2208 "configure"
    20902208#include "confdefs.h"
    20912209#include <string.h>
    20922210EOF
    20932211ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2212{ (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20952213ac_err=`grep -v '^ *+' conftest.out`
    20962214if test -z "$ac_err"; then
     
    21182236else
    21192237  cat > conftest.$ac_ext <<EOF
    2120 #line 2121 "configure"
     2238#line 2239 "configure"
    21212239#include "confdefs.h"
    21222240#include <stddef.h>
    21232241EOF
    21242242ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2125 { (eval echo configure:2126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2243{ (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21262244ac_err=`grep -v '^ *+' conftest.out`
    21272245if test -z "$ac_err"; then
     
    21492267else
    21502268  cat > conftest.$ac_ext <<EOF
    2151 #line 2152 "configure"
     2269#line 2270 "configure"
    21522270#include "confdefs.h"
    21532271#include <values.h>
    21542272EOF
    21552273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2156 { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2274{ (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21572275ac_err=`grep -v '^ *+' conftest.out`
    21582276if test -z "$ac_err"; then
     
    21812299else
    21822300  cat > conftest.$ac_ext <<EOF
    2183 #line 2184 "configure"
     2301#line 2302 "configure"
    21842302#include "confdefs.h"
    21852303#include <fcntl.h>
    21862304EOF
    21872305ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2188 { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2306{ (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21892307ac_err=`grep -v '^ *+' conftest.out`
    21902308if test -z "$ac_err"; then
     
    22122330else
    22132331  cat > conftest.$ac_ext <<EOF
    2214 #line 2215 "configure"
     2332#line 2333 "configure"
    22152333#include "confdefs.h"
    22162334#include <sys/ioctl.h>
    22172335EOF
    22182336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2219 { (eval echo configure:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2337{ (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22202338ac_err=`grep -v '^ *+' conftest.out`
    22212339if test -z "$ac_err"; then
     
    22432361else
    22442362  cat > conftest.$ac_ext <<EOF
    2245 #line 2246 "configure"
     2363#line 2364 "configure"
    22462364#include "confdefs.h"
    22472365#include <sys/param.h>
    22482366EOF
    22492367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2250 { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2368{ (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22512369ac_err=`grep -v '^ *+' conftest.out`
    22522370if test -z "$ac_err"; then
     
    22742392else
    22752393  cat > conftest.$ac_ext <<EOF
    2276 #line 2277 "configure"
     2394#line 2395 "configure"
    22772395#include "confdefs.h"
    22782396#include <sys/socket.h>
    22792397EOF
    22802398ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2399{ (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22822400ac_err=`grep -v '^ *+' conftest.out`
    22832401if test -z "$ac_err"; then
     
    23052423else
    23062424  cat > conftest.$ac_ext <<EOF
    2307 #line 2308 "configure"
     2425#line 2426 "configure"
    23082426#include "confdefs.h"
    23092427#include <sys/stat.h>
    23102428EOF
    23112429ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2430{ (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23132431ac_err=`grep -v '^ *+' conftest.out`
    23142432if test -z "$ac_err"; then
     
    23362454else
    23372455  cat > conftest.$ac_ext <<EOF
    2338 #line 2339 "configure"
     2456#line 2457 "configure"
    23392457#include "confdefs.h"
    23402458#include <sys/time.h>
    23412459EOF
    23422460ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2343 { (eval echo configure:2344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2461{ (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23442462ac_err=`grep -v '^ *+' conftest.out`
    23452463if test -z "$ac_err"; then
     
    23672485else
    23682486  cat > conftest.$ac_ext <<EOF
    2369 #line 2370 "configure"
     2487#line 2488 "configure"
    23702488#include "confdefs.h"
    23712489#include <sys/types.h>
    23722490EOF
    23732491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2374 { (eval echo configure:2375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2492{ (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23752493ac_err=`grep -v '^ *+' conftest.out`
    23762494if test -z "$ac_err"; then
     
    23982516else
    23992517  cat > conftest.$ac_ext <<EOF
    2400 #line 2401 "configure"
     2518#line 2519 "configure"
    24012519#include "confdefs.h"
    24022520#include <sys/uio.h>
    24032521EOF
    24042522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2523{ (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24062524ac_err=`grep -v '^ *+' conftest.out`
    24072525if test -z "$ac_err"; then
     
    24292547else
    24302548  cat > conftest.$ac_ext <<EOF
    2431 #line 2432 "configure"
     2549#line 2550 "configure"
    24322550#include "confdefs.h"
    24332551#include <sys/un.h>
    24342552EOF
    24352553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2554{ (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24372555ac_err=`grep -v '^ *+' conftest.out`
    24382556if test -z "$ac_err"; then
     
    24602578else
    24612579  cat > conftest.$ac_ext <<EOF
    2462 #line 2463 "configure"
     2580#line 2581 "configure"
    24632581#include "confdefs.h"
    24642582#include <unistd.h>
    24652583EOF
    24662584ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2467 { (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2585{ (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24682586ac_err=`grep -v '^ *+' conftest.out`
    24692587if test -z "$ac_err"; then
     
    24912609else
    24922610  cat > conftest.$ac_ext <<EOF
    2493 #line 2494 "configure"
     2611#line 2612 "configure"
    24942612#include "confdefs.h"
    24952613#include <math.h>
    24962614EOF
    24972615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2498 { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2616{ (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24992617ac_err=`grep -v '^ *+' conftest.out`
    25002618if test -z "$ac_err"; then
     
    25262644else
    25272645  cat > conftest.$ac_ext <<EOF
    2528 #line 2529 "configure"
     2646#line 2647 "configure"
    25292647#include "confdefs.h"
    25302648#include <$ac_hdr>
    25312649EOF
    25322650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2651{ (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25342652ac_err=`grep -v '^ *+' conftest.out`
    25352653if test -z "$ac_err"; then
     
    25582676if test "$ac_cv_header_gmp_h" = yes; then
    25592677  cat > conftest.$ac_ext <<EOF
    2560 #line 2561 "configure"
     2678#line 2679 "configure"
    25612679#include "confdefs.h"
    25622680#include <gmp.h>
     
    25712689  if test ! "$MPZ_PTR" = mpz_ptr; then
    25722690    cat > conftest.$ac_ext <<EOF
    2573 #line 2574 "configure"
     2691#line 2692 "configure"
    25742692#include "confdefs.h"
    25752693#include <gmp.h>
     
    26002718  fi
    26012719  cat > conftest.$ac_ext <<EOF
    2602 #line 2603 "configure"
     2720#line 2721 "configure"
    26032721#include "confdefs.h"
    26042722#include <gmp.h>
     
    27562874fi
    27572875
    2758 
    27592876if test "$with_default_apreal" = none; then
    27602877  cat >> confdefs.h <<\EOF
     
    28272944EOF
    28282945
     2946    cat >> confdefs.h <<\EOF
     2947#define LONG_IS_32BIT 1
     2948EOF
     2949
     2950    echo $ac_n "checking for ulong""... $ac_c" 1>&6
     2951if eval "test \"`echo '$''{'ac_cv_type_ulong'+set}'`\" = set"; then
     2952  echo $ac_n "(cached) $ac_c" 1>&6
     2953else
     2954  cat > conftest.$ac_ext <<EOF
     2955#line 2956 "configure"
     2956#include "confdefs.h"
     2957#include <sys/types.h>
     2958#if STDC_HEADERS
     2959#include <stdlib.h>
     2960#endif
     2961EOF
     2962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2963  egrep "ulong" >/dev/null 2>&1; then
     2964  rm -rf conftest*
     2965  ac_cv_type_ulong=yes
     2966else
     2967  rm -rf conftest*
     2968  ac_cv_type_ulong=no
     2969fi
     2970rm -f conftest*
     2971
     2972fi
     2973echo "$ac_t""$ac_cv_type_ulong" 1>&6
     2974if test $ac_cv_type_ulong = no; then
     2975  cat >> confdefs.h <<\EOF
     2976#define ulong no
     2977EOF
     2978
     2979fi
     2980
     2981    if test "$ac_cv_type_ulong" = no; then
     2982        cat >> confdefs.h <<\EOF
     2983#define ULONG_NOT_DEFINED 1
     2984EOF
     2985
     2986    fi
    28292987  fi
    28302988fi
     2989
     2990   
    28312991
    28322992if test "$with_tb" = yes; then
     
    28372997else
    28382998  cat > conftest.$ac_ext <<EOF
    2839 #line 2840 "configure"
     2999#line 3000 "configure"
    28403000#include "confdefs.h"
    28413001#include <TB.h>
    28423002EOF
    28433003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2844 { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3004{ (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    28453005ac_err=`grep -v '^ *+' conftest.out`
    28463006if test -z "$ac_err"; then
     
    28723032
    28733033if test "$with_pvm" = yes; then
     3034 ac_safe=`echo "pvm3.h" | tr './\055' '___'`
     3035echo $ac_n "checking for pvm3.h""... $ac_c" 1>&6
     3036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     3037  echo $ac_n "(cached) $ac_c" 1>&6
     3038else
     3039  cat > conftest.$ac_ext <<EOF
     3040#line 3041 "configure"
     3041#include "confdefs.h"
     3042#include <pvm3.h>
     3043EOF
     3044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     3045{ (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3046ac_err=`grep -v '^ *+' conftest.out`
     3047if test -z "$ac_err"; then
     3048  rm -rf conftest*
     3049  eval "ac_cv_header_$ac_safe=yes"
     3050else
     3051  echo "$ac_err" >&5
     3052  rm -rf conftest*
     3053  eval "ac_cv_header_$ac_safe=no"
     3054fi
     3055rm -f conftest*
     3056fi
     3057if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     3058  echo "$ac_t""yes" 1>&6
     3059  :
     3060else
     3061  echo "$ac_t""no" 1>&6
     3062fi
     3063
    28743064 if test "$ac_cv_header_pvm3_h" != yes; then
    28753065    echo "configure: warning: Can not build with Pvm: Need pvm3.h" 1>&2
     
    28823072fi
    28833073
    2884  
    28853074echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    28863075if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
     
    28903079# See if sys/param.h defines the BYTE_ORDER macro.
    28913080cat > conftest.$ac_ext <<EOF
    2892 #line 2893 "configure"
     3081#line 3082 "configure"
    28933082#include "confdefs.h"
    28943083#include <sys/types.h>
     
    29023091; return 0; }
    29033092EOF
    2904 if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3093if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29053094  rm -rf conftest*
    29063095  # It does; now see whether it defined to BIG_ENDIAN or not.
    29073096cat > conftest.$ac_ext <<EOF
    2908 #line 2909 "configure"
     3097#line 3098 "configure"
    29093098#include "confdefs.h"
    29103099#include <sys/types.h>
     
    29183107; return 0; }
    29193108EOF
    2920 if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3109if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29213110  rm -rf conftest*
    29223111  ac_cv_c_bigendian=yes
     
    29353124else
    29363125cat > conftest.$ac_ext <<EOF
    2937 #line 2938 "configure"
     3126#line 3127 "configure"
    29383127#include "confdefs.h"
    29393128main () {
     
    29483137}
    29493138EOF
    2950 { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3139{ (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    29513140if test -s conftest && (./conftest; exit) 2>/dev/null; then
    29523141  ac_cv_c_bigendian=no
     
    29723161else
    29733162  cat > conftest.$ac_ext <<EOF
    2974 #line 2975 "configure"
     3163#line 3164 "configure"
    29753164#include "confdefs.h"
    29763165
     
    30223211; return 0; }
    30233212EOF
    3024 if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3213if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    30253214  rm -rf conftest*
    30263215  ac_cv_c_const=yes
     
    30463235else
    30473236  cat > conftest.$ac_ext <<EOF
    3048 #line 3049 "configure"
     3237#line 3238 "configure"
    30493238#include "confdefs.h"
    30503239#include <sys/types.h>
     
    30773266else
    30783267  cat > conftest.$ac_ext <<EOF
    3079 #line 3080 "configure"
     3268#line 3269 "configure"
    30803269#include "confdefs.h"
    30813270#include <sys/types.h>
     
    30873276; return 0; }
    30883277EOF
    3089 if { (eval echo configure:3090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3278if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    30903279  rm -rf conftest*
    30913280  ac_cv_header_time=yes
     
    31153304else
    31163305cat > conftest.$ac_ext <<EOF
    3117 #line 3118 "configure"
     3306#line 3307 "configure"
    31183307#include "confdefs.h"
    31193308#include <stdio.h>
     
    31263315}
    31273316EOF
    3128 { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3317{ (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31293318if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31303319  ac_cv_sizeof_long=`cat conftestval`
     
    31443333  { echo "configure: error: Need sizeof long to equal 4" 1>&2; exit 1; }
    31453334fi
     3335
    31463336
    31473337CLEAN="rm -f *~ a.out core *.o .log"
     
    31593349  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
    31603350fi
    3161  
     3351if test "$libdir" = '${prefix}/lib/'$ac_cv_arch; then
     3352  if test "$prefix" = NONE; then
     3353    ac_configure_args="$ac_configure_args --libdir=$ac_default_prefix/lib/$ac_cv_arch"
     3354  else
     3355    ac_configure_args="${prefix}/lib/$ac_cv_arch"
     3356  fi
     3357fi
     3358if test "$bindir" = '${prefix}/bin/'$ac_cv_arch; then
     3359  if test "$prefix" = NONE; then
     3360    ac_configure_args="$ac_configure_args --bindir=$ac_default_prefix/bin/$ac_cv_arch"
     3361  else
     3362    ac_configure_args="${prefix}/bin/$ac_cv_arch"
     3363  fi
     3364fi
     3365
     3366   
    31623367subdirs="$CONFIG_SUBDIRS"
    31633368
  • MP/configure.in

    ra708e0 r7adb502  
    11dnl
    2 dnl Written by Olaf Bachmann (obachman@mathematik.uni-kl.de)
     2dnl Written by Olaf Bachmann (obachman@mathematik.uni-kl.de) 
    33dnl
    44dnl configure.in for MP
     
    1515
    1616AC_PREFIX_DEFAULT(`pwd`)
     17
     18dnl The "philosophy" is this: 
     19dnl 1) by default the libraries are stored in ${prefix}/lib/${ARCH}
     20dnl 2) the user can override this by setting either --exec-prefix
     21dnl    or --libdir
     22dnl 3) If --libdir is given, then libraries are put exactly there
     23dnl 4) If --libdir is not given, and --exec-dir is given, then
     24dnl    libraries are put into $exec_prefix/lib (as is standard)
     25dnl 5) The same thing applies to bindir
     26
     27AC_MSG_CHECKING(for architecture identifier) 
     28AC_CACHE_VAL(ac_cv_arch,ac_cv_arch=`./pvmgetarch`)
     29AC_MSG_RESULT($ac_cv_arch)
     30
     31if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then
     32  libdir='${prefix}/lib/'$ac_cv_arch
     33fi
     34
     35if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then
     36  bindir='${prefix}/bin/'$ac_cv_arch
     37fi
    1738
    1839dnl Check for programs
     
    6788    LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}"
    6889  fi
     90elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then
     91  if test "x$prefix" = xNONE; then
     92    LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch  ${LDFLAGS}"
     93  else
     94    LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}"
     95  fi
    6996else
    7097  LDFLAGS="-L${libdir} ${LDFLAGS}"
     
    81108fi
    82109
    83 dnl Check for env variable $PVM_ROOT and, it it exists, add $PVM_ROOT/include
    84 dnl and PVM_ROOT/lib to flags
    85 if test "$enable_mppvm" = yes && test "${PVM_ROOT+set}" = set; then
    86   CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
    87   LDFLAGS="${LDFLAGS} -L${PVM_ROOT}/lib"
     110dnl add to  CPPFLAGS and LDFLAGS if PVM_ROOT and PVM_ARCH are set
     111if test "${PVM_ROOT+set}" = set; then
     112  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
     113    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
     114    if test ${PVM_ARCH+set} = set; then
     115      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
     116    fi
     117  fi
    88118fi
    89119
     
    98128
    99129AC_ARG_ENABLE(gmp, \
    100  [  --disable-gmp           configure and built without gmp library])
     130 [  --disable-gmp           configure and build without gmp library])
    101131
    102132AC_ARG_ENABLE(tests, \
     
    107137
    108138AC_ARG_ENABLE(mppvm, \
    109  [  --enable-mppvm,         enable building of mppvm routines])
     139 [  --enable-mppvm          enable building of mppvm routines])
    110140
    111141if test "$enable_gmp" != no && test -d gmp; then
     
    132162  BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3"
    133163  ac_check_prog=yes
    134 fi
     164  with_pvm=yes
     165fi
     166
    135167AC_SUBST(BUILD_SUBDIRS)
    136168AC_SUBST(CONFIG_SUBDIRS)
     
    149181  fi
    150182 
    151   AC_CHECK_FUNCS(select socket gethostname strtol)
     183  AC_CHECK_FUNCS(select socket gethostname gethostbyname strtol)
    152184  if test "$ac_cv_func_select" != yes; then
    153185    AC_MSG_WARN(Did not find library containing function select)
    154186    AC_MSG_WARN(Linking programs with MP might fail)
    155187  fi
    156   if test "$ac_cv_func_socket" != yes; then
    157     AC_MSG_WARN(Did not find library containing socket)
    158     AC_MSG_WARN(Linking programs with MP might fail)
    159   fi
    160188  if test "$ac_cv_func_gethostname" != yes; then
    161189    AC_MSG_WARN(Did not find library containing gethostname)
    162190    AC_MSG_WARN(Linking programs with MP might fail)
     191  fi
     192
     193  if test "$ac_cv_func_gethostbyname" != yes; then
     194    AC_CHECK_LIB(nsl, gethostbyname)
     195    if test "$ac_cv_lib_nsl_gethostbyname" != yes; then
     196      AC_MSG_WARN(Did not find library containing gethostname)
     197      AC_MSG_WARN(Linking programs with MP might fail)
     198    fi
     199  fi
     200
     201  if test "$ac_cv_func_socket" != yes; then
     202    AC_CHECK_LIB(socket, socket)
     203    if test "$ac_cv_lib_socket_socket" != yes; then
     204      AC_MSG_WARN(Did not find library containing socket)
     205      AC_MSG_WARN(Linking programs with MP might fail)
     206    fi
    163207  fi
    164208fi
     
    215259AC_ARG_WITH(apint, \
    216260 [  --with-default_apint=PACKAGE    use PACKAGE as MP's default ApInt format
    217                            where PACKAGE can be none, gmp (default),
    218                            pari, saclib])
     261                           where PACKAGE can be: gmp (default), pari,
     262                           saclib, none])
    219263AC_ARG_WITH(apreal, \
    220264 [  --with-default_apreal=PACKAGE   use PACKAGE as MP's default ApReal format
    221                            where PACKAGE can be none, gmp (default)])
     265                           where PACKAGE can be: gmp (default), none])
    222266AC_ARG_WITH(gmp, \
    223267 [  --without-gmp           build without gmp ApNumber routines])
     
    282326  fi
    283327fi
    284 
    285328
    286329if test "$with_default_apreal" = none; then
     
    350393
    351394if test "$with_pvm" = yes; then
     395 AC_CHECK_HEADER(pvm3.h)
    352396 if test "$ac_cv_header_pvm3_h" != yes; then
    353397    AC_MSG_WARN(Can not build with Pvm: Need pvm3.h)
     
    357401fi
    358402
    359  
    360403dnl Checks for typedefs, structures, and compiler characteristics.
    361404AC_C_BIGENDIAN
     
    389432  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
    390433fi
    391  
     434if test "$libdir" = '${prefix}/lib/'$ac_cv_arch; then
     435  if test "$prefix" = NONE; then
     436    ac_configure_args="$ac_configure_args --libdir=$ac_default_prefix/lib/$ac_cv_arch"
     437  else
     438    ac_configure_args="${prefix}/lib/$ac_cv_arch"
     439  fi
     440fi
     441if test "$bindir" = '${prefix}/bin/'$ac_cv_arch; then
     442  if test "$prefix" = NONE; then
     443    ac_configure_args="$ac_configure_args --bindir=$ac_default_prefix/bin/$ac_cv_arch"
     444  else
     445    ac_configure_args="${prefix}/bin/$ac_cv_arch"
     446  fi
     447fi
     448
     449   
    392450AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS)
    393451
Note: See TracChangeset for help on using the changeset viewer.