Changeset c23f3f in git


Ignore:
Timestamp:
Jun 25, 1999, 3:17:01 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
2cf916d8f1d7b1da77d1bd76e27297d0e8631229
Parents:
b1dd2f76382501948de04aff5ff223a4dddf6ce2
Message:
* fixed localhost


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

Legend:

Unmodified
Added
Removed
  • MP/MP/MP_TcpTransp.c

    rb1dd2f rc23f3f  
    439439    MP_Boolean_t localhost = MP_FALSE;
    440440
    441 #ifdef HAVE_GETHOSTBYNAME
     441#if defined(HAVE_GETHOSTBYNAME) && defined(RSH_CAN_LOCALHOST)
    442442    if (gethostbyname("localhost") != NULL) localhost = MP_TRUE;
    443443#endif
  • MP/MP/h/MP_Config.h.in

    rb1dd2f rc23f3f  
    8585#undef HAVE_GETHOSTBYNAME
    8686
     87/* define if your rsh can do rsh localhost */
     88#undef RSH_CAN_LOCALHOST
  • MP/configure

    rb1dd2f rc23f3f  
    36143614echo "configure:3615: checking which remote shell command to use" >&5
    36153615for mp_rsh in $ac_rsh_programs; do
    3616     if $mp_rsh localhost -n uname \>\& /dev/null; then
     3616    if $mp_rsh `hostname` -n uname \>\& /dev/null; then
    36173617      mp_rsh_found=$mp_rsh
    36183618      break;
     
    36293629EOF
    36303630
    3631 fi
     3631   # check whether it alsow works with localhost, instead of hostname
     3632   if $mp_rsh localhost -n uname  >& /dev/null; then
     3633     cat >> confdefs.h <<\EOF
     3634#define RSH_CAN_LOCALHOST 1
     3635EOF
     3636
     3637   fi
     3638fi
     3639
     3640
    36323641
    36333642# Check whether --with-malloc or --without-malloc was given.
     
    36413650  ac_safe=`echo "${with_malloc}" | sed 'y%./+-%__p_%'`
    36423651echo $ac_n "checking for ${with_malloc}""... $ac_c" 1>&6
    3643 echo "configure:3644: checking for ${with_malloc}" >&5
     3652echo "configure:3653: checking for ${with_malloc}" >&5
    36443653if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    36453654  echo $ac_n "(cached) $ac_c" 1>&6
    36463655else
    36473656  cat > conftest.$ac_ext <<EOF
    3648 #line 3649 "configure"
     3657#line 3658 "configure"
    36493658#include "confdefs.h"
    36503659#include <${with_malloc}>
    36513660EOF
    36523661ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3653 { (eval echo configure:3654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3662{ (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    36543663ac_err=`grep -v '^ *+' conftest.out`
    36553664if test -z "$ac_err"; then
     
    36753684fi
    36763685echo $ac_n "checking where malloc rotuines come from""... $ac_c" 1>&6
    3677 echo "configure:3678: checking where malloc rotuines come from" >&5
     3686echo "configure:3687: checking where malloc rotuines come from" >&5
    36783687if test "${with_malloc+set}" = set; then
    36793688  echo "$ac_t""${with_malloc}" 1>&6
     
    36923701
    36933702echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3694 echo "configure:3695: checking whether byte ordering is bigendian" >&5
     3703echo "configure:3704: checking whether byte ordering is bigendian" >&5
    36953704if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    36963705  echo $ac_n "(cached) $ac_c" 1>&6
     
    36993708# See if sys/param.h defines the BYTE_ORDER macro.
    37003709cat > conftest.$ac_ext <<EOF
    3701 #line 3702 "configure"
     3710#line 3711 "configure"
    37023711#include "confdefs.h"
    37033712#include <sys/types.h>
     
    37103719; return 0; }
    37113720EOF
    3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3721if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    37133722  rm -rf conftest*
    37143723  # It does; now see whether it defined to BIG_ENDIAN or not.
    37153724cat > conftest.$ac_ext <<EOF
    3716 #line 3717 "configure"
     3725#line 3726 "configure"
    37173726#include "confdefs.h"
    37183727#include <sys/types.h>
     
    37253734; return 0; }
    37263735EOF
    3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3736if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    37283737  rm -rf conftest*
    37293738  ac_cv_c_bigendian=yes
     
    37453754else
    37463755  cat > conftest.$ac_ext <<EOF
    3747 #line 3748 "configure"
     3756#line 3757 "configure"
    37483757#include "confdefs.h"
    37493758main () {
     
    37583767}
    37593768EOF
    3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3769if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    37613770then
    37623771  ac_cv_c_bigendian=no
     
    37823791
    37833792echo $ac_n "checking for working const""... $ac_c" 1>&6
    3784 echo "configure:3785: checking for working const" >&5
     3793echo "configure:3794: checking for working const" >&5
    37853794if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    37863795  echo $ac_n "(cached) $ac_c" 1>&6
    37873796else
    37883797  cat > conftest.$ac_ext <<EOF
    3789 #line 3790 "configure"
     3798#line 3799 "configure"
    37903799#include "confdefs.h"
    37913800
     
    38363845; return 0; }
    38373846EOF
    3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3847if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    38393848  rm -rf conftest*
    38403849  ac_cv_c_const=yes
     
    38573866
    38583867echo $ac_n "checking for size_t""... $ac_c" 1>&6
    3859 echo "configure:3860: checking for size_t" >&5
     3868echo "configure:3869: checking for size_t" >&5
    38603869if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    38613870  echo $ac_n "(cached) $ac_c" 1>&6
    38623871else
    38633872  cat > conftest.$ac_ext <<EOF
    3864 #line 3865 "configure"
     3873#line 3874 "configure"
    38653874#include "confdefs.h"
    38663875#include <sys/types.h>
     
    38903899
    38913900echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    3892 echo "configure:3893: checking whether time.h and sys/time.h may both be included" >&5
     3901echo "configure:3902: checking whether time.h and sys/time.h may both be included" >&5
    38933902if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    38943903  echo $ac_n "(cached) $ac_c" 1>&6
    38953904else
    38963905  cat > conftest.$ac_ext <<EOF
    3897 #line 3898 "configure"
     3906#line 3907 "configure"
    38983907#include "confdefs.h"
    38993908#include <sys/types.h>
     
    39043913; return 0; }
    39053914EOF
    3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3915if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    39073916  rm -rf conftest*
    39083917  ac_cv_header_time=yes
     
    39263935
    39273936echo $ac_n "checking size of long""... $ac_c" 1>&6
    3928 echo "configure:3929: checking size of long" >&5
     3937echo "configure:3938: checking size of long" >&5
    39293938if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    39303939  echo $ac_n "(cached) $ac_c" 1>&6
     
    39343943else
    39353944  cat > conftest.$ac_ext <<EOF
    3936 #line 3937 "configure"
     3945#line 3946 "configure"
    39373946#include "confdefs.h"
    39383947#include <stdio.h>
     
    39453954}
    39463955EOF
    3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3956if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    39483957then
    39493958  ac_cv_sizeof_long=`cat conftestval`
  • MP/configure.in

    rb1dd2f rc23f3f  
    444444AC_MSG_CHECKING(which remote shell command to use)
    445445for mp_rsh in $ac_rsh_programs; do
    446     if $mp_rsh localhost -n uname \>\& /dev/null; then
     446    if $mp_rsh `hostname` -n uname >& /dev/null; then
    447447      mp_rsh_found=$mp_rsh
    448448      break;
     
    456456else
    457457  AC_DEFINE_UNQUOTED(MP_RSH_COMMAND, "$mp_rsh_found")
    458 fi
     458   # check whether it alsow works with localhost, instead of hostname
     459   if $mp_rsh localhost -n uname  >& /dev/null; then
     460     AC_DEFINE(RSH_CAN_LOCALHOST)
     461   fi
     462fi
     463
     464
    459465
    460466dnl Check for external memory managements
Note: See TracChangeset for help on using the changeset viewer.