Changeset ae6370 in git


Ignore:
Timestamp:
Jun 30, 1997, 7:00:44 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
afbd0eba0a8ba59d10ccd9fc75c5a2df9a9e3ba5
Parents:
b23bbb083a88fa536587000bc814273f6e680359
Message:
Mon Jun 30 17:53:17 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* INSTALL: Updated installation instructions by new options

	* manipulate CFLAGS only if they were not set in environment

	* configure.in: added --with-rsh and --with-extra_cflags
options


Tue Jun 24 11:54:31 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* configure.in (BUILD_SUBDIRS): took out condition that
default
	  ap_int format is gmp for building MPT lib
	  (BUILD_SUBDIRS): added some defines which are needed for
	  --with-pari compilation


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

Legend:

Unmodified
Added
Removed
  • MP/ChangeLog

    rb23bbb0 rae6370  
     1Mon Jun 30 17:53:17 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     2
     3        * INSTALL: Updated installation instructions by new options
     4
     5        * manipulate CFLAGS only if they were not set in environment
     6
     7        * configure.in: added --with-rsh and --with-extra_cflags options
     8
     9
    110Tue Jun 24 11:54:31 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
    211
  • MP/INSTALL

    rb23bbb0 rae6370  
    101101     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
    102102
     103Furthermore, by giving configure the `--with-extra_cflags=cflgas'
     104option, adds cflags to the flags given to your compiler. This is
     105useful when you want to rely on configure to find out some standard
     106CFLAGS, but nevertheless want to add some specific flags (like -fpic
     107for gneration of position-independent code).
     108
    103109
    104110Installation Names
    105111==================
    106112
    107 By default, `make install' will install the libraries in ./lib, and
     113By default, `make install' will install the libraries in ./lib/$ARCH
     114where $ARCH is an architecture-dpendent prefix (generated by the
     115program pvmgetarch contained in this distribution), and
    108116headers in ./include. You can specify an installation prefix other
    109117than the current directory by giving `configure' the option
     
    211219            MP communications turned on.
    212220
     221'--with-rsh=COMMAND' option where COMMAND is the name of a remote
     222shell command. MP uses this command to remotely launch an
     223application. If this option is not given then configure searches for
     224the commands remsh, rsh, ssh (in that order).
     225if the
    213226
    214227`--with-default_apint=PACKAGE' option where PACKAGE can be:
     
    261274operates.
    262275
    263 `--cache-file=FILE'
    264      Use and save the results of the tests in FILE instead of
    265      `./config.cache'.  Set FILE to `/dev/null' to disable caching and
    266      for debugging `configure'.
    267 
    268 
    269 `--quiet'
    270 `--silent'
    271 `-q'
    272      Do not print messages saying which checks are being made.
    273 
    274 `--version'
    275      Print the version of Autoconf used to generate the `configure'
    276      script, and exit.
    277 
    278 `--help'
    279      Prints the following summary of the options to `configure', and exits.
    280 
    281 Usage: configure [options] [host]
    282 Options: [defaults in brackets after descriptions]
    283276Configuration:
    284277  --cache-file=FILE       cache test results in FILE
     
    289282Directory and file names:
    290283  --prefix=PREFIX         install architecture-independent files in PREFIX
    291                           [default is current directory]
     284                          [/mnt/amd/users/urmel/singular/obachman/Singular/MP]
    292285  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    293286                          [same as prefix]
     
    323316  --x-libraries=DIR       X library files are in DIR
    324317--enable and --with options recognized:
    325    --disable-MPT           configure and build without MPT library
     318   --disable-MPT           disable building of MPT library
    326319   --disable-gmp           configure and build without gmp library
    327    --enable-examples       enable building of example programs
     320   --enable-example        enable building of example programs
    328321   --enable-mpviewer       enable building of mpviewer program
    329322   --enable-mppvm          enable building of mppvm routines
    330    --with-default_int=PACKAGE    use PACKAGE as MP's default ApInt format
     323   --with-default_apint=PACKAGE    use PACKAGE as MP's default ApInt format
    331324                           where PACKAGE can be: gmp (default), pari,
    332                            saclib, none
    333    --with-default_real=PACKAGE   use PACKAGE as MP's default ApReal format
    334                            where PACKAGE can be:  gmp (default), none
    335    --without-gmp           build without gmp routines
    336    --with-pari             build with pari routines
     325                           saclib, none
     326   --with-default_apreal=PACKAGE   use PACKAGE as MP's default ApReal format
     327                           where PACKAGE can be: gmp (default), none
     328   --without-gmp           build without gmp ApNumber routines
     329   --with-pari             build with pari ApInt routines
    337330   --with-saclib           build with saclib ApInt routines
    338331   --with-tb               build with Toolbus device interface
    339332   --with-pvm              build with Pvm saclib device interface
    340333   --with-debug            build with debug options and logging
     334   --with-extra_cflags=cflags   build with 'cflags' appended to
     335                                 CFLAGS given to the compiler
     336  --with-rsh=command       use 'command' as remote shell command
  • MP/configure

    rb23bbb0 rae6370  
    5555\
    5656   --with-debug            build with debug options and logging"
     57ac_help="$ac_help
     58\
     59   --with-extra_cflags=cflags   build with 'cflags' appended to
     60                                 CFLAGS given to the compiler"
     61ac_help="$ac_help
     62\
     63  --with-rsh=command       use 'command' as remote shell command"
    5764
    5865# Initialize some variables set by options.
     
    756763  if test "${CFLAGS+set}" != set; then 
    757764    CFLAGS="-g"
     765    ac_cv_cflags_not_set=yes
    758766  fi
    759767  cat >> confdefs.h <<\EOF
     
    764772  if test "${CFLAGS+set}" != set; then
    765773    CFLAGS="-O"
     774    ac_cv_cflags_not_set=yes
    766775  fi
    767776  cat >> confdefs.h <<\EOF
     
    857866#endif
    858867EOF
    859 if { 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
     868if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    860869  ac_cv_prog_gcc=yes
    861870else
     
    909918  # not just through cpp.
    910919  cat > conftest.$ac_ext <<EOF
    911 #line 912 "configure"
     920#line 921 "configure"
    912921#include "confdefs.h"
    913922#include <assert.h>
     
    915924EOF
    916925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     926{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    918927ac_err=`grep -v '^ *+' conftest.out`
    919928if test -z "$ac_err"; then
     
    924933  CPP="${CC-cc} -E -traditional-cpp"
    925934  cat > conftest.$ac_ext <<EOF
    926 #line 927 "configure"
     935#line 936 "configure"
    927936#include "confdefs.h"
    928937#include <assert.h>
     
    930939EOF
    931940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    933942ac_err=`grep -v '^ *+' conftest.out`
    934943if test -z "$ac_err"; then
     
    952961echo $ac_n "checking for AIX""... $ac_c" 1>&6
    953962cat > conftest.$ac_ext <<EOF
    954 #line 955 "configure"
     963#line 964 "configure"
    955964#include "confdefs.h"
    956965#ifdef _AIX
     
    10191028  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
    10201029    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
    1021     if test ${PVM_ARCH+set} = set; then
     1030    if test "${PVM_ARCH+set}" = set; then
    10221031      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
    10231032    fi
     
    10601069else
    10611070cat > conftest.$ac_ext <<EOF
    1062 #line 1063 "configure"
     1071#line 1072 "configure"
    10631072#include "confdefs.h"
    10641073main(){return(0);}
    10651074EOF
    1066 { (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1075{ (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    10671076if test -s conftest && (./conftest; exit) 2>/dev/null; then
    10681077  ac_cv_c_cross=no
     
    10821091else
    10831092  cat > conftest.$ac_ext <<EOF
    1084 #line 1085 "configure"
     1093#line 1094 "configure"
    10851094#include "confdefs.h"
    10861095#include <stdlib.h>
     
    10901099EOF
    10911100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1092 { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1101{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    10931102ac_err=`grep -v '^ *+' conftest.out`
    10941103if test -z "$ac_err"; then
     
    11051114  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    11061115cat > conftest.$ac_ext <<EOF
    1107 #line 1108 "configure"
     1116#line 1117 "configure"
    11081117#include "confdefs.h"
    11091118#include <string.h>
     
    11231132  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    11241133cat > conftest.$ac_ext <<EOF
    1125 #line 1126 "configure"
     1134#line 1135 "configure"
    11261135#include "confdefs.h"
    11271136#include <stdlib.h>
     
    11441153else
    11451154cat > conftest.$ac_ext <<EOF
    1146 #line 1147 "configure"
     1155#line 1156 "configure"
    11471156#include "confdefs.h"
    11481157#include <ctype.h>
     
    11551164
    11561165EOF
    1157 { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1166{ (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    11581167if test -s conftest && (./conftest; exit) 2>/dev/null; then
    11591168  :
     
    11791188else
    11801189  cat > conftest.$ac_ext <<EOF
    1181 #line 1182 "configure"
     1190#line 1191 "configure"
    11821191#include "confdefs.h"
    11831192#include <sys/types.h>
     
    12111220else
    12121221  cat > conftest.$ac_ext <<EOF
    1213 #line 1214 "configure"
     1222#line 1223 "configure"
    12141223#include "confdefs.h"
    12151224#include <vfork.h>
    12161225EOF
    12171226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1227{ (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12191228ac_err=`grep -v '^ *+' conftest.out`
    12201229if test -z "$ac_err"; then
     
    12481257else
    12491258  cat > conftest.$ac_ext <<EOF
    1250 #line 1251 "configure"
     1259#line 1260 "configure"
    12511260#include "confdefs.h"
    12521261/* System header to define __stub macros and hopefully few prototypes,
     
    12701279; return 0; }
    12711280EOF
    1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1281if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12731282  rm -rf conftest*
    12741283  eval "ac_cv_func_vfork=yes"
     
    12891298else
    12901299cat > conftest.$ac_ext <<EOF
    1291 #line 1292 "configure"
     1300#line 1301 "configure"
    12921301#include "confdefs.h"
    12931302/* Thanks to Paul Eggert for this test.  */
     
    13821391}
    13831392EOF
    1384 { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1393{ (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    13851394if test -s conftest && (./conftest; exit) 2>/dev/null; then
    13861395  ac_cv_func_vfork=yes
     
    14741483LIBS="-lm  $LIBS"
    14751484cat > conftest.$ac_ext <<EOF
    1476 #line 1477 "configure"
     1485#line 1486 "configure"
    14771486#include "confdefs.h"
    14781487/* Override any gcc2 internal prototype to avoid an error.  */
     
    14841493; return 0; }
    14851494EOF
    1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1495if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    14871496  rm -rf conftest*
    14881497  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15161525LIBS="-lbsd  $LIBS"
    15171526cat > conftest.$ac_ext <<EOF
    1518 #line 1519 "configure"
     1527#line 1528 "configure"
    15191528#include "confdefs.h"
    15201529/* Override any gcc2 internal prototype to avoid an error.  */
     
    15261535; return 0; }
    15271536EOF
    1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1537if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15291538  rm -rf conftest*
    15301539  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15581567LIBS="-lgmp  $LIBS"
    15591568cat > conftest.$ac_ext <<EOF
    1560 #line 1561 "configure"
     1569#line 1570 "configure"
    15611570#include "confdefs.h"
    15621571/* Override any gcc2 internal prototype to avoid an error.  */
     
    15681577; return 0; }
    15691578EOF
    1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1579if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15711580  rm -rf conftest*
    15721581  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16081617else
    16091618  cat > conftest.$ac_ext <<EOF
    1610 #line 1611 "configure"
     1619#line 1620 "configure"
    16111620#include "confdefs.h"
    16121621/* System header to define __stub macros and hopefully few prototypes,
     
    16301639; return 0; }
    16311640EOF
    1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1641if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16331642  rm -rf conftest*
    16341643  eval "ac_cv_func_$ac_func=yes"
     
    16701679LIBS="-lnsl  $LIBS"
    16711680cat > conftest.$ac_ext <<EOF
    1672 #line 1673 "configure"
     1681#line 1682 "configure"
    16731682#include "confdefs.h"
    16741683/* Override any gcc2 internal prototype to avoid an error.  */
     
    16801689; return 0; }
    16811690EOF
    1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16831692  rm -rf conftest*
    16841693  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17191728LIBS="-lsocket  $LIBS"
    17201729cat > conftest.$ac_ext <<EOF
    1721 #line 1722 "configure"
     1730#line 1731 "configure"
    17221731#include "confdefs.h"
    17231732/* Override any gcc2 internal prototype to avoid an error.  */
     
    17291738; return 0; }
    17301739EOF
    1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1740if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    17321741  rm -rf conftest*
    17331742  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17661775else
    17671776  cat > conftest.$ac_ext <<EOF
    1768 #line 1769 "configure"
     1777#line 1778 "configure"
    17691778#include "confdefs.h"
    17701779#include <stdlib.h>
     
    17741783EOF
    17751784ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1776 { (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1785{ (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17771786ac_err=`grep -v '^ *+' conftest.out`
    17781787if test -z "$ac_err"; then
     
    17891798  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    17901799cat > conftest.$ac_ext <<EOF
    1791 #line 1792 "configure"
     1800#line 1801 "configure"
    17921801#include "confdefs.h"
    17931802#include <string.h>
     
    18071816  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    18081817cat > conftest.$ac_ext <<EOF
    1809 #line 1810 "configure"
     1818#line 1819 "configure"
    18101819#include "confdefs.h"
    18111820#include <stdlib.h>
     
    18281837else
    18291838cat > conftest.$ac_ext <<EOF
    1830 #line 1831 "configure"
     1839#line 1840 "configure"
    18311840#include "confdefs.h"
    18321841#include <ctype.h>
     
    18391848
    18401849EOF
    1841 { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     1850{ (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    18421851if test -s conftest && (./conftest; exit) 2>/dev/null; then
    18431852  :
     
    18641873else
    18651874  cat > conftest.$ac_ext <<EOF
    1866 #line 1867 "configure"
     1875#line 1876 "configure"
    18671876#include "confdefs.h"
    18681877#include <arpa/inet.h>
    18691878EOF
    18701879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1871 { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1880{ (eval echo configure:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18721881ac_err=`grep -v '^ *+' conftest.out`
    18731882if test -z "$ac_err"; then
     
    18951904else
    18961905  cat > conftest.$ac_ext <<EOF
    1897 #line 1898 "configure"
     1906#line 1907 "configure"
    18981907#include "confdefs.h"
    18991908#include <assert.h>
    19001909EOF
    19011910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1902 { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1911{ (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19031912ac_err=`grep -v '^ *+' conftest.out`
    19041913if test -z "$ac_err"; then
     
    19261935else
    19271936  cat > conftest.$ac_ext <<EOF
    1928 #line 1929 "configure"
     1937#line 1938 "configure"
    19291938#include "confdefs.h"
    19301939#include <ctype.h>
    19311940EOF
    19321941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1942{ (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19341943ac_err=`grep -v '^ *+' conftest.out`
    19351944if test -z "$ac_err"; then
     
    19571966else
    19581967  cat > conftest.$ac_ext <<EOF
    1959 #line 1960 "configure"
     1968#line 1969 "configure"
    19601969#include "confdefs.h"
    19611970#include <errno.h>
    19621971EOF
    19631972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1964 { (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1973{ (eval echo configure:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19651974ac_err=`grep -v '^ *+' conftest.out`
    19661975if test -z "$ac_err"; then
     
    19881997else
    19891998  cat > conftest.$ac_ext <<EOF
    1990 #line 1991 "configure"
     1999#line 2000 "configure"
    19912000#include "confdefs.h"
    19922001#include <netdb.h>
    19932002EOF
    19942003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2004{ (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19962005ac_err=`grep -v '^ *+' conftest.out`
    19972006if test -z "$ac_err"; then
     
    20192028else
    20202029  cat > conftest.$ac_ext <<EOF
    2021 #line 2022 "configure"
     2030#line 2031 "configure"
    20222031#include "confdefs.h"
    20232032#include <netinet/in.h>
    20242033EOF
    20252034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2035{ (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20272036ac_err=`grep -v '^ *+' conftest.out`
    20282037if test -z "$ac_err"; then
     
    20502059else
    20512060  cat > conftest.$ac_ext <<EOF
    2052 #line 2053 "configure"
     2061#line 2062 "configure"
    20532062#include "confdefs.h"
    20542063#include <netinet/tcp.h>
    20552064EOF
    20562065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2057 { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2066{ (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20582067ac_err=`grep -v '^ *+' conftest.out`
    20592068if test -z "$ac_err"; then
     
    20812090else
    20822091  cat > conftest.$ac_ext <<EOF
    2083 #line 2084 "configure"
     2092#line 2093 "configure"
    20842093#include "confdefs.h"
    20852094#include <signal.h>
    20862095EOF
    20872096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2088 { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2097{ (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20892098ac_err=`grep -v '^ *+' conftest.out`
    20902099if test -z "$ac_err"; then
     
    21122121else
    21132122  cat > conftest.$ac_ext <<EOF
    2114 #line 2115 "configure"
     2123#line 2124 "configure"
    21152124#include "confdefs.h"
    21162125#include <stdarg.h>
    21172126EOF
    21182127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2119 { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2128{ (eval echo configure:2129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21202129ac_err=`grep -v '^ *+' conftest.out`
    21212130if test -z "$ac_err"; then
     
    21432152else
    21442153  cat > conftest.$ac_ext <<EOF
    2145 #line 2146 "configure"
     2154#line 2155 "configure"
    21462155#include "confdefs.h"
    21472156#include <stdio.h>
    21482157EOF
    21492158ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2150 { (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2159{ (eval echo configure:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21512160ac_err=`grep -v '^ *+' conftest.out`
    21522161if test -z "$ac_err"; then
     
    21742183else
    21752184  cat > conftest.$ac_ext <<EOF
    2176 #line 2177 "configure"
     2185#line 2186 "configure"
    21772186#include "confdefs.h"
    21782187#include <stdlib.h>
    21792188EOF
    21802189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2181 { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2190{ (eval echo configure:2191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21822191ac_err=`grep -v '^ *+' conftest.out`
    21832192if test -z "$ac_err"; then
     
    22052214else
    22062215  cat > conftest.$ac_ext <<EOF
    2207 #line 2208 "configure"
     2216#line 2217 "configure"
    22082217#include "confdefs.h"
    22092218#include <string.h>
    22102219EOF
    22112220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2221{ (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22132222ac_err=`grep -v '^ *+' conftest.out`
    22142223if test -z "$ac_err"; then
     
    22362245else
    22372246  cat > conftest.$ac_ext <<EOF
    2238 #line 2239 "configure"
     2247#line 2248 "configure"
    22392248#include "confdefs.h"
    22402249#include <stddef.h>
    22412250EOF
    22422251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2252{ (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22442253ac_err=`grep -v '^ *+' conftest.out`
    22452254if test -z "$ac_err"; then
     
    22672276else
    22682277  cat > conftest.$ac_ext <<EOF
    2269 #line 2270 "configure"
     2278#line 2279 "configure"
    22702279#include "confdefs.h"
    22712280#include <values.h>
    22722281EOF
    22732282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2283{ (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    22752284ac_err=`grep -v '^ *+' conftest.out`
    22762285if test -z "$ac_err"; then
     
    22992308else
    23002309  cat > conftest.$ac_ext <<EOF
    2301 #line 2302 "configure"
     2310#line 2311 "configure"
    23022311#include "confdefs.h"
    23032312#include <fcntl.h>
    23042313EOF
    23052314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2315{ (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23072316ac_err=`grep -v '^ *+' conftest.out`
    23082317if test -z "$ac_err"; then
     
    23302339else
    23312340  cat > conftest.$ac_ext <<EOF
    2332 #line 2333 "configure"
     2341#line 2342 "configure"
    23332342#include "confdefs.h"
    23342343#include <sys/ioctl.h>
    23352344EOF
    23362345ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2346{ (eval echo configure:2347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23382347ac_err=`grep -v '^ *+' conftest.out`
    23392348if test -z "$ac_err"; then
     
    23612370else
    23622371  cat > conftest.$ac_ext <<EOF
    2363 #line 2364 "configure"
     2372#line 2373 "configure"
    23642373#include "confdefs.h"
    23652374#include <sys/param.h>
    23662375EOF
    23672376ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2368 { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2377{ (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    23692378ac_err=`grep -v '^ *+' conftest.out`
    23702379if test -z "$ac_err"; then
     
    23922401else
    23932402  cat > conftest.$ac_ext <<EOF
    2394 #line 2395 "configure"
     2403#line 2404 "configure"
    23952404#include "confdefs.h"
    23962405#include <sys/socket.h>
    23972406EOF
    23982407ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2408{ (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24002409ac_err=`grep -v '^ *+' conftest.out`
    24012410if test -z "$ac_err"; then
     
    24232432else
    24242433  cat > conftest.$ac_ext <<EOF
    2425 #line 2426 "configure"
     2434#line 2435 "configure"
    24262435#include "confdefs.h"
    24272436#include <sys/stat.h>
    24282437EOF
    24292438ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2439{ (eval echo configure:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24312440ac_err=`grep -v '^ *+' conftest.out`
    24322441if test -z "$ac_err"; then
     
    24542463else
    24552464  cat > conftest.$ac_ext <<EOF
    2456 #line 2457 "configure"
     2465#line 2466 "configure"
    24572466#include "confdefs.h"
    24582467#include <sys/time.h>
    24592468EOF
    24602469ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2461 { (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2470{ (eval echo configure:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24622471ac_err=`grep -v '^ *+' conftest.out`
    24632472if test -z "$ac_err"; then
     
    24852494else
    24862495  cat > conftest.$ac_ext <<EOF
    2487 #line 2488 "configure"
     2496#line 2497 "configure"
    24882497#include "confdefs.h"
    24892498#include <sys/types.h>
    24902499EOF
    24912500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2501{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24932502ac_err=`grep -v '^ *+' conftest.out`
    24942503if test -z "$ac_err"; then
     
    25162525else
    25172526  cat > conftest.$ac_ext <<EOF
    2518 #line 2519 "configure"
     2527#line 2528 "configure"
    25192528#include "confdefs.h"
    25202529#include <sys/uio.h>
    25212530EOF
    25222531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2532{ (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25242533ac_err=`grep -v '^ *+' conftest.out`
    25252534if test -z "$ac_err"; then
     
    25472556else
    25482557  cat > conftest.$ac_ext <<EOF
    2549 #line 2550 "configure"
     2558#line 2559 "configure"
    25502559#include "confdefs.h"
    25512560#include <sys/un.h>
    25522561EOF
    25532562ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2563{ (eval echo configure:2564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25552564ac_err=`grep -v '^ *+' conftest.out`
    25562565if test -z "$ac_err"; then
     
    25782587else
    25792588  cat > conftest.$ac_ext <<EOF
    2580 #line 2581 "configure"
     2589#line 2590 "configure"
    25812590#include "confdefs.h"
    25822591#include <unistd.h>
    25832592EOF
    25842593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2585 { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2594{ (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25862595ac_err=`grep -v '^ *+' conftest.out`
    25872596if test -z "$ac_err"; then
     
    26092618else
    26102619  cat > conftest.$ac_ext <<EOF
    2611 #line 2612 "configure"
     2620#line 2621 "configure"
    26122621#include "confdefs.h"
    26132622#include <math.h>
    26142623EOF
    26152624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2616 { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2625{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    26172626ac_err=`grep -v '^ *+' conftest.out`
    26182627if test -z "$ac_err"; then
     
    26442653else
    26452654  cat > conftest.$ac_ext <<EOF
    2646 #line 2647 "configure"
     2655#line 2656 "configure"
    26472656#include "confdefs.h"
    26482657#include <$ac_hdr>
    26492658EOF
    26502659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2651 { (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2660{ (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    26522661ac_err=`grep -v '^ *+' conftest.out`
    26532662if test -z "$ac_err"; then
     
    26762685if test "$ac_cv_header_gmp_h" = yes; then
    26772686  cat > conftest.$ac_ext <<EOF
    2678 #line 2679 "configure"
     2687#line 2688 "configure"
    26792688#include "confdefs.h"
    26802689#include <gmp.h>
     
    26892698  if test ! "$MPZ_PTR" = mpz_ptr; then
    26902699    cat > conftest.$ac_ext <<EOF
    2691 #line 2692 "configure"
     2700#line 2701 "configure"
    26922701#include "confdefs.h"
    26932702#include <gmp.h>
     
    27182727  fi
    27192728  cat > conftest.$ac_ext <<EOF
    2720 #line 2721 "configure"
     2729#line 2730 "configure"
    27212730#include "confdefs.h"
    27222731#include <gmp.h>
     
    27812790if test "${with_debug+set}" = set; then
    27822791  withval="$with_debug"
     2792  :
     2793fi
     2794
     2795
     2796# Check whether --with-extra_cflags or --without-extra_cflags was given.
     2797if test "${with_extra_cflags+set}" = set; then
     2798  withval="$with_extra_cflags"
     2799  :
     2800fi
     2801
     2802
     2803# Check whether --with-rsh or --without-rsh was given.
     2804if test "${with_rsh+set}" = set; then
     2805  withval="$with_rsh"
    27832806  :
    27842807fi
     
    29532976else
    29542977  cat > conftest.$ac_ext <<EOF
    2955 #line 2956 "configure"
     2978#line 2979 "configure"
    29562979#include "confdefs.h"
    29572980#include <sys/types.h>
     
    29973020else
    29983021  cat > conftest.$ac_ext <<EOF
    2999 #line 3000 "configure"
     3022#line 3023 "configure"
    30003023#include "confdefs.h"
    30013024#include <TB.h>
    30023025EOF
    30033026ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3004 { (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3027{ (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30053028ac_err=`grep -v '^ *+' conftest.out`
    30063029if test -z "$ac_err"; then
     
    30383061else
    30393062  cat > conftest.$ac_ext <<EOF
    3040 #line 3041 "configure"
     3063#line 3064 "configure"
    30413064#include "confdefs.h"
    30423065#include <pvm3.h>
    30433066EOF
    30443067ac_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; }
     3068{ (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    30463069ac_err=`grep -v '^ *+' conftest.out`
    30473070if test -z "$ac_err"; then
     
    30723095fi
    30733096
     3097if test "${with_extra_cflags+set}" = set; then
     3098  CFLAGS="$CFLAGS ${with_extra_cflags}"
     3099fi
     3100
     3101if test "${with_rsh+set}" = set; then
     3102  ac_cv_rsh_program=${with_rsh}
     3103else
     3104  for ac_prog in remsh rsh ssh
     3105do
     3106# Extract the first word of "$ac_prog", so it can be a program name with args.
     3107set dummy $ac_prog; ac_word=$2
     3108echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     3109if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_rsh_program'+set}'`\" = set"; then
     3110  echo $ac_n "(cached) $ac_c" 1>&6
     3111else
     3112  if test -n "$ac_cv_rsh_program"; then
     3113  ac_cv_prog_ac_cv_rsh_program="$ac_cv_rsh_program" # Let the user override the test.
     3114else
     3115  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     3116  for ac_dir in $PATH; do
     3117    test -z "$ac_dir" && ac_dir=.
     3118    if test -f $ac_dir/$ac_word; then
     3119      ac_cv_prog_ac_cv_rsh_program="$ac_prog"
     3120      break
     3121    fi
     3122  done
     3123  IFS="$ac_save_ifs"
     3124fi
     3125fi
     3126ac_cv_rsh_program="$ac_cv_prog_ac_cv_rsh_program"
     3127if test -n "$ac_cv_rsh_program"; then
     3128  echo "$ac_t""$ac_cv_rsh_program" 1>&6
     3129else
     3130  echo "$ac_t""no" 1>&6
     3131fi
     3132
     3133test -n "$ac_cv_rsh_program" && break
     3134done
     3135test -n "$ac_cv_rsh_program" || ac_cv_rsh_program="none"
     3136
     3137fi
     3138echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
     3139cat >> confdefs.h <<EOF
     3140#define MP_RSH_COMMAND "$ac_cv_rsh_program"
     3141EOF
     3142
     3143echo "$ac_t""$ac_cv_rsh_program" 1>&6
     3144
     3145echo $ac_n "checking whether remote shell command works""... $ac_c" 1>&6
     3146if $ac_cv_rsh_program `hostname` -n uname >\& /dev/null; then
     3147  echo "$ac_t""yes" 1>&6
     3148else
     3149  echo "$ac_t""no" 1>&6
     3150  echo "configure: warning: Remote shell does not work. Check your .rhosts file" 1>&2
     3151fi
     3152
    30743153echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    30753154if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
     
    30793158# See if sys/param.h defines the BYTE_ORDER macro.
    30803159cat > conftest.$ac_ext <<EOF
    3081 #line 3082 "configure"
     3160#line 3161 "configure"
    30823161#include "confdefs.h"
    30833162#include <sys/types.h>
     
    30913170; return 0; }
    30923171EOF
    3093 if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3172if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    30943173  rm -rf conftest*
    30953174  # It does; now see whether it defined to BIG_ENDIAN or not.
    30963175cat > conftest.$ac_ext <<EOF
    3097 #line 3098 "configure"
     3176#line 3177 "configure"
    30983177#include "confdefs.h"
    30993178#include <sys/types.h>
     
    31073186; return 0; }
    31083187EOF
    3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3188if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31103189  rm -rf conftest*
    31113190  ac_cv_c_bigendian=yes
     
    31243203else
    31253204cat > conftest.$ac_ext <<EOF
    3126 #line 3127 "configure"
     3205#line 3206 "configure"
    31273206#include "confdefs.h"
    31283207main () {
     
    31373216}
    31383217EOF
    3139 { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3218{ (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31403219if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31413220  ac_cv_c_bigendian=no
     
    31613240else
    31623241  cat > conftest.$ac_ext <<EOF
    3163 #line 3164 "configure"
     3242#line 3243 "configure"
    31643243#include "confdefs.h"
    31653244
     
    32113290; return 0; }
    32123291EOF
    3213 if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3292if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    32143293  rm -rf conftest*
    32153294  ac_cv_c_const=yes
     
    32353314else
    32363315  cat > conftest.$ac_ext <<EOF
    3237 #line 3238 "configure"
     3316#line 3317 "configure"
    32383317#include "confdefs.h"
    32393318#include <sys/types.h>
     
    32663345else
    32673346  cat > conftest.$ac_ext <<EOF
    3268 #line 3269 "configure"
     3347#line 3348 "configure"
    32693348#include "confdefs.h"
    32703349#include <sys/types.h>
     
    32763355; return 0; }
    32773356EOF
    3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3357if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    32793358  rm -rf conftest*
    32803359  ac_cv_header_time=yes
     
    33043383else
    33053384cat > conftest.$ac_ext <<EOF
    3306 #line 3307 "configure"
     3385#line 3386 "configure"
    33073386#include "confdefs.h"
    33083387#include <stdio.h>
     
    33153394}
    33163395EOF
    3317 { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3396{ (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    33183397if test -s conftest && (./conftest; exit) 2>/dev/null; then
    33193398  ac_cv_sizeof_long=`cat conftestval`
     
    33383417
    33393418
    3340 if test "${GCC}" = yes; then
     3419if test "${GCC}" = yes && test "$ac_cv_cflags_not_set" = yes; then
    33413420  if test "$with_debug" = yes; then
    3342     CFLAGS="-g -Wall -Wno-unused"
     3421    CFLAGS="-g -Wall -Wno-unused ${with_extra_cflags}"
    33433422  else
    3344     CFLAGS="-O3 -w -fomit-frame-pointer"
     3423    CFLAGS="-O3 -w -fomit-frame-pointer ${with_extra_cflags}"
    33453424  fi
    33463425fi
     
    33493428  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
    33503429fi
    3351 if 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
    3357 fi
    3358 if 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
    3364 fi
    3365 
    33663430   
    33673431subdirs="$CONFIG_SUBDIRS"
     
    35103574s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
    35113575s%@NEED_LIBS@%$NEED_LIBS%g
     3576s%@ac_cv_rsh_program@%$ac_cv_rsh_program%g
    35123577s%@CLEAN@%$CLEAN%g
    35133578s%@subdirs@%$subdirs%g
  • MP/configure.in

    rb23bbb0 rae6370  
    88
    99PRODUCT=MP
    10 VERSION=1.1.2
     10VERSION=1.1.2.1
    1111AC_SUBST(PRODUCT)
    1212AC_SUBST(VERSION)
     
    5050  if test "${CFLAGS+set}" != set; then 
    5151    CFLAGS="-g"
     52    ac_cv_cflags_not_set=yes
    5253  fi
    5354  AC_DEFINE(MPT_DEBUG)
     
    5556  if test "${CFLAGS+set}" != set; then
    5657    CFLAGS="-O"
     58    ac_cv_cflags_not_set=yes
    5759  fi
    5860  AC_DEFINE(NO_LOGGING)
     
    112114  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
    113115    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
    114     if test ${PVM_ARCH+set} = set; then
     116    if test "${PVM_ARCH+set}" = set; then
    115117      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
    116118    fi
     
    282284 [  --with-debug            build with debug options and logging])
    283285
     286AC_ARG_WITH(extra_cflags, \
     287 [  --with-extra_cflags=cflags   build with 'cflags' appended to
     288                                 CFLAGS given to the compiler])
     289
     290AC_ARG_WITH(rsh, \
     291 [ --with-rsh=command      use 'command' as remote shell command])
     292
    284293dnl evaluate specifications
    285294AC_DEFINE(MP_DUMMY, 0)
     
    401410fi
    402411
     412if test "${with_extra_cflags+set}" = set; then
     413  CFLAGS="$CFLAGS ${with_extra_cflags}"
     414fi
     415
     416if test "${with_rsh+set}" = set; then
     417  ac_cv_rsh_program=${with_rsh}
     418else
     419  AC_CHECK_PROGS(ac_cv_rsh_program,remsh rsh ssh, none)
     420fi
     421AC_MSG_CHECKING(which remote shell command to use)
     422AC_DEFINE_UNQUOTED(MP_RSH_COMMAND, "$ac_cv_rsh_program")
     423AC_MSG_RESULT($ac_cv_rsh_program)
     424
     425AC_MSG_CHECKING(whether remote shell command works)
     426if $ac_cv_rsh_program `hostname` -n uname >\& /dev/null; then
     427  AC_MSG_RESULT(yes)
     428else
     429  AC_MSG_RESULT(no)
     430  AC_MSG_WARN(Remote shell does not work. Check your .rhosts file)
     431fi
     432
    403433dnl Checks for typedefs, structures, and compiler characteristics.
    404434AC_C_BIGENDIAN
     
    420450
    421451dnl if we use GCC, then we know CFLAGS best and do not let user overwrite it
    422 if test "${GCC}" = yes; then
     452if test "${GCC}" = yes && test "$ac_cv_cflags_not_set" = yes; then
    423453  if test "$with_debug" = yes; then
    424     CFLAGS="-g -Wall -Wno-unused"
    425   else
    426     CFLAGS="-O3 -w -fomit-frame-pointer"
     454    CFLAGS="-g -Wall -Wno-unused ${with_extra_cflags}"
     455  else
     456    CFLAGS="-O3 -w -fomit-frame-pointer ${with_extra_cflags}"
    427457  fi
    428458fi
     
    432462  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
    433463fi
    434 if 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
    440 fi
    441 if 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
    447 fi
    448 
    449464   
    450465AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS)
Note: See TracChangeset for help on using the changeset viewer.