Changeset a8f3d7 in git


Ignore:
Timestamp:
Oct 27, 1998, 1:57:06 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
ec3675ac18ba4e1b305d854d4450a1ea89997216
Parents:
9a0e99af98543dda1d84d1a014b74df3345a4d8d
Message:
* more flexible handling of rsh specification


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

Legend:

Unmodified
Added
Removed
  • MP/MP/MP.h

    r9a0e99a ra8f3d7  
    20782078#define MP_AnnotPolyWeights             8
    20792079#define MP_AnnotPolyModuleRank          9
     2080#define MP_AnnotShouldHavePolyOrdering  10
    20802081
    20812082/***************************************************************************
  • MP/configure

    r9a0e99a ra8f3d7  
    32843284
    32853285if test "${with_rsh+set}" = set; then
    3286   ac_cv_rsh_program=${with_rsh}
    3287 else
    3288   for ac_prog in remsh rsh ssh
    3289 do
    3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
    3291 set dummy $ac_prog; ac_word=$2
     3286  # Extract the first word of "${with_rsh}", so it can be a program name with args.
     3287set dummy ${with_rsh}; ac_word=$2
    32923288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    3293 echo "configure:3294: checking for $ac_word" >&5
    3294 if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_rsh_program'+set}'`\" = set"; then
    3295   echo $ac_n "(cached) $ac_c" 1>&6
    3296 else
    3297   if test -n "$ac_cv_rsh_program"; then
    3298   ac_cv_prog_ac_cv_rsh_program="$ac_cv_rsh_program" # Let the user override the test.
     3289echo "configure:3290: checking for $ac_word" >&5
     3290if eval "test \"`echo '$''{'ac_cv_prog_with_rsh'+set}'`\" = set"; then
     3291  echo $ac_n "(cached) $ac_c" 1>&6
     3292else
     3293  if test -n "$with_rsh"; then
     3294  ac_cv_prog_with_rsh="$with_rsh" # Let the user override the test.
    32993295else
    33003296  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     
    33023298    test -z "$ac_dir" && ac_dir=.
    33033299    if test -f $ac_dir/$ac_word; then
    3304       ac_cv_prog_ac_cv_rsh_program="$ac_prog"
     3300      ac_cv_prog_with_rsh="${with_rsh}"
    33053301      break
    33063302    fi
     
    33093305fi
    33103306fi
    3311 ac_cv_rsh_program="$ac_cv_prog_ac_cv_rsh_program"
    3312 if test -n "$ac_cv_rsh_program"; then
    3313   echo "$ac_t""$ac_cv_rsh_program" 1>&6
    3314 else
    3315   echo "$ac_t""no" 1>&6
    3316 fi
    3317 
    3318 test -n "$ac_cv_rsh_program" && break
     3307with_rsh="$ac_cv_prog_with_rsh"
     3308if test -n "$with_rsh"; then
     3309  echo "$ac_t""$with_rsh" 1>&6
     3310else
     3311  echo "$ac_t""no" 1>&6
     3312fi
     3313
     3314  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
     3315    ac_rsh_programs=${with_rsh}
     3316  else
     3317   ac_rsh_programs=
     3318  fi
     3319fi
     3320
     3321
     3322# Extract the first word of "ssh", so it can be a program name with args.
     3323set dummy ssh; ac_word=$2
     3324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3325echo "configure:3326: checking for $ac_word" >&5
     3326if eval "test \"`echo '$''{'ac_cv_prog_mp_ssh'+set}'`\" = set"; then
     3327  echo $ac_n "(cached) $ac_c" 1>&6
     3328else
     3329  if test -n "$mp_ssh"; then
     3330  ac_cv_prog_mp_ssh="$mp_ssh" # Let the user override the test.
     3331else
     3332  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     3333  for ac_dir in $PATH; do
     3334    test -z "$ac_dir" && ac_dir=.
     3335    if test -f $ac_dir/$ac_word; then
     3336      ac_cv_prog_mp_ssh="ssh"
     3337      break
     3338    fi
     3339  done
     3340  IFS="$ac_save_ifs"
     3341  test -z "$ac_cv_prog_mp_ssh" && ac_cv_prog_mp_ssh="no"
     3342fi
     3343fi
     3344mp_ssh="$ac_cv_prog_mp_ssh"
     3345if test -n "$mp_ssh"; then
     3346  echo "$ac_t""$mp_ssh" 1>&6
     3347else
     3348  echo "$ac_t""no" 1>&6
     3349fi
     3350
     3351if test "$ac_cv_prog_mp_ssh" = ssh; then
     3352   ac_rsh_programs="$ac_rsh_programs ssh"
     3353fi
     3354
     3355# Extract the first word of "rsh", so it can be a program name with args.
     3356set dummy rsh; ac_word=$2
     3357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3358echo "configure:3359: checking for $ac_word" >&5
     3359if eval "test \"`echo '$''{'ac_cv_prog_mp_rsh'+set}'`\" = set"; then
     3360  echo $ac_n "(cached) $ac_c" 1>&6
     3361else
     3362  if test -n "$mp_rsh"; then
     3363  ac_cv_prog_mp_rsh="$mp_rsh" # Let the user override the test.
     3364else
     3365  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     3366  for ac_dir in $PATH; do
     3367    test -z "$ac_dir" && ac_dir=.
     3368    if test -f $ac_dir/$ac_word; then
     3369      ac_cv_prog_mp_rsh="rsh"
     3370      break
     3371    fi
     3372  done
     3373  IFS="$ac_save_ifs"
     3374  test -z "$ac_cv_prog_mp_rsh" && ac_cv_prog_mp_rsh="no"
     3375fi
     3376fi
     3377mp_rsh="$ac_cv_prog_mp_rsh"
     3378if test -n "$mp_rsh"; then
     3379  echo "$ac_t""$mp_rsh" 1>&6
     3380else
     3381  echo "$ac_t""no" 1>&6
     3382fi
     3383
     3384if test "$ac_cv_prog_mp_rsh" = rsh; then
     3385   ac_rsh_programs="$ac_rsh_programs rsh"
     3386fi
     3387
     3388# Extract the first word of "remsh", so it can be a program name with args.
     3389set dummy remsh; ac_word=$2
     3390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3391echo "configure:3392: checking for $ac_word" >&5
     3392if eval "test \"`echo '$''{'ac_cv_prog_mp_remsh'+set}'`\" = set"; then
     3393  echo $ac_n "(cached) $ac_c" 1>&6
     3394else
     3395  if test -n "$mp_remsh"; then
     3396  ac_cv_prog_mp_remsh="$mp_remsh" # Let the user override the test.
     3397else
     3398  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     3399  for ac_dir in $PATH; do
     3400    test -z "$ac_dir" && ac_dir=.
     3401    if test -f $ac_dir/$ac_word; then
     3402      ac_cv_prog_mp_remsh="remsh"
     3403      break
     3404    fi
     3405  done
     3406  IFS="$ac_save_ifs"
     3407  test -z "$ac_cv_prog_mp_remsh" && ac_cv_prog_mp_remsh="no"
     3408fi
     3409fi
     3410mp_remsh="$ac_cv_prog_mp_remsh"
     3411if test -n "$mp_remsh"; then
     3412  echo "$ac_t""$mp_remsh" 1>&6
     3413else
     3414  echo "$ac_t""no" 1>&6
     3415fi
     3416
     3417if test "$ac_cv_prog_mp_remsh" = remsh; then
     3418   ac_rsh_programs="$ac_rsh_programs remsh"
     3419fi
     3420
     3421echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
     3422echo "configure:3423: checking which remote shell command to use" >&5
     3423for mp_rsh in $ac_rsh_programs; do
     3424    if $mp_rsh `hostname` -n uname \>\& /dev/null; then
     3425      mp_rsh_found=$mp_rsh
     3426      break;
     3427    else
     3428      mp_rsh_found=none
     3429    fi
    33193430done
    3320 test -n "$ac_cv_rsh_program" || ac_cv_rsh_program="none"
    3321 
    3322 fi
    3323 echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
    3324 echo "configure:3325: checking which remote shell command to use" >&5
    3325 cat >> confdefs.h <<EOF
    3326 #define MP_RSH_COMMAND "$ac_cv_rsh_program"
    3327 EOF
    3328 
    3329 echo "$ac_t""$ac_cv_rsh_program" 1>&6
    3330 
    3331 echo $ac_n "checking whether remote shell command works""... $ac_c" 1>&6
    3332 echo "configure:3333: checking whether remote shell command works" >&5
    3333 if $ac_cv_rsh_program `hostname` -n uname \>\& /dev/null; then
    3334   echo "$ac_t""yes" 1>&6
    3335 else
    3336   echo "$ac_t""no" 1>&6
    3337   echo "configure: warning: Remote shell does not work. Check your .rhosts file" 1>&2
     3431echo "$ac_t""$mp_rsh_found" 1>&6
     3432if test "${mp_rsh_found}" = none; then
     3433   echo "configure: warning: "No working remote shell command found"" 1>&2
     3434else
     3435  cat >> confdefs.h <<EOF
     3436#define MP_RSH_COMMAND "$mp_rsh_found"
     3437EOF
     3438
    33383439fi
    33393440
    33403441echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3341 echo "configure:3342: checking whether byte ordering is bigendian" >&5
     3442echo "configure:3443: checking whether byte ordering is bigendian" >&5
    33423443if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    33433444  echo $ac_n "(cached) $ac_c" 1>&6
     
    33463447# See if sys/param.h defines the BYTE_ORDER macro.
    33473448cat > conftest.$ac_ext <<EOF
    3348 #line 3349 "configure"
     3449#line 3450 "configure"
    33493450#include "confdefs.h"
    33503451#include <sys/types.h>
     
    33573458; return 0; }
    33583459EOF
    3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3460if { (eval echo configure:3461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    33603461  rm -rf conftest*
    33613462  # It does; now see whether it defined to BIG_ENDIAN or not.
    33623463cat > conftest.$ac_ext <<EOF
    3363 #line 3364 "configure"
     3464#line 3465 "configure"
    33643465#include "confdefs.h"
    33653466#include <sys/types.h>
     
    33723473; return 0; }
    33733474EOF
    3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3475if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    33753476  rm -rf conftest*
    33763477  ac_cv_c_bigendian=yes
     
    33923493else
    33933494  cat > conftest.$ac_ext <<EOF
    3394 #line 3395 "configure"
     3495#line 3496 "configure"
    33953496#include "confdefs.h"
    33963497main () {
     
    34053506}
    34063507EOF
    3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3508if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    34083509then
    34093510  ac_cv_c_bigendian=no
     
    34293530
    34303531echo $ac_n "checking for working const""... $ac_c" 1>&6
    3431 echo "configure:3432: checking for working const" >&5
     3532echo "configure:3533: checking for working const" >&5
    34323533if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    34333534  echo $ac_n "(cached) $ac_c" 1>&6
    34343535else
    34353536  cat > conftest.$ac_ext <<EOF
    3436 #line 3437 "configure"
     3537#line 3538 "configure"
    34373538#include "confdefs.h"
    34383539
     
    34833584; return 0; }
    34843585EOF
    3485 if { (eval echo configure:3486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3586if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    34863587  rm -rf conftest*
    34873588  ac_cv_c_const=yes
     
    35043605
    35053606echo $ac_n "checking for size_t""... $ac_c" 1>&6
    3506 echo "configure:3507: checking for size_t" >&5
     3607echo "configure:3608: checking for size_t" >&5
    35073608if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    35083609  echo $ac_n "(cached) $ac_c" 1>&6
    35093610else
    35103611  cat > conftest.$ac_ext <<EOF
    3511 #line 3512 "configure"
     3612#line 3613 "configure"
    35123613#include "confdefs.h"
    35133614#include <sys/types.h>
     
    35373638
    35383639echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    3539 echo "configure:3540: checking whether time.h and sys/time.h may both be included" >&5
     3640echo "configure:3641: checking whether time.h and sys/time.h may both be included" >&5
    35403641if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    35413642  echo $ac_n "(cached) $ac_c" 1>&6
    35423643else
    35433644  cat > conftest.$ac_ext <<EOF
    3544 #line 3545 "configure"
     3645#line 3646 "configure"
    35453646#include "confdefs.h"
    35463647#include <sys/types.h>
     
    35513652; return 0; }
    35523653EOF
    3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3654if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    35543655  rm -rf conftest*
    35553656  ac_cv_header_time=yes
     
    35733674
    35743675echo $ac_n "checking size of long""... $ac_c" 1>&6
    3575 echo "configure:3576: checking size of long" >&5
     3676echo "configure:3677: checking size of long" >&5
    35763677if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    35773678  echo $ac_n "(cached) $ac_c" 1>&6
     
    35813682else
    35823683  cat > conftest.$ac_ext <<EOF
    3583 #line 3584 "configure"
     3684#line 3685 "configure"
    35843685#include "confdefs.h"
    35853686#include <stdio.h>
     
    35923693}
    35933694EOF
    3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3695if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    35953696then
    35963697  ac_cv_sizeof_long=`cat conftestval`
     
    37903891s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
    37913892s%@NEED_LIBS@%$NEED_LIBS%g
    3792 s%@ac_cv_rsh_program@%$ac_cv_rsh_program%g
     3893s%@with_rsh@%$with_rsh%g
     3894s%@mp_ssh@%$mp_ssh%g
     3895s%@mp_rsh@%$mp_rsh%g
     3896s%@mp_remsh@%$mp_remsh%g
    37933897s%@CLEAN@%$CLEAN%g
    37943898s%@subdirs@%$subdirs%g
  • MP/configure.in

    r9a0e99a ra8f3d7  
    414414
    415415if test "${with_rsh+set}" = set; then
    416   ac_cv_rsh_program=${with_rsh}
    417 else
    418   AC_CHECK_PROGS(ac_cv_rsh_program,remsh rsh ssh, none)
    419 fi
     416  AC_CHECK_PROG(with_rsh, ${with_rsh}, ${with_rsh})
     417  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
     418    ac_rsh_programs=${with_rsh}
     419  else
     420   ac_rsh_programs=
     421  fi
     422fi
     423
     424
     425AC_CHECK_PROG(mp_ssh, ssh, ssh, no)
     426if test "$ac_cv_prog_mp_ssh" = ssh; then
     427   ac_rsh_programs="$ac_rsh_programs ssh"
     428fi
     429
     430AC_CHECK_PROG(mp_rsh, rsh, rsh, no)
     431if test "$ac_cv_prog_mp_rsh" = rsh; then
     432   ac_rsh_programs="$ac_rsh_programs rsh"
     433fi
     434
     435AC_CHECK_PROG(mp_remsh, remsh, remsh, no)
     436if test "$ac_cv_prog_mp_remsh" = remsh; then
     437   ac_rsh_programs="$ac_rsh_programs remsh"
     438fi
     439
    420440AC_MSG_CHECKING(which remote shell command to use)
    421 AC_DEFINE_UNQUOTED(MP_RSH_COMMAND, "$ac_cv_rsh_program")
    422 AC_MSG_RESULT($ac_cv_rsh_program)
    423 
    424 AC_MSG_CHECKING(whether remote shell command works)
    425 if $ac_cv_rsh_program `hostname` -n uname \>\& /dev/null; then
    426   AC_MSG_RESULT(yes)
    427 else
    428   AC_MSG_RESULT(no)
    429   AC_MSG_WARN(Remote shell does not work. Check your .rhosts file)
     441for mp_rsh in $ac_rsh_programs; do
     442    if $mp_rsh `hostname` -n uname \>\& /dev/null; then
     443      mp_rsh_found=$mp_rsh
     444      break;
     445    else
     446      mp_rsh_found=none
     447    fi
     448done
     449AC_MSG_RESULT($mp_rsh_found)
     450if test "${mp_rsh_found}" = none; then
     451   AC_MSG_WARN("No working remote shell command found")
     452else
     453  AC_DEFINE_UNQUOTED(MP_RSH_COMMAND, "$mp_rsh_found")
    430454fi
    431455
Note: See TracChangeset for help on using the changeset viewer.