source: git/MP/configure @ c23f3f

spielwiese
Last change on this file since c23f3f was c23f3f, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* fixed localhost git-svn-id: file:///usr/local/Singular/svn/trunk@3174 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 123.4 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=`pwd`
15ac_help="$ac_help
16\
17   --disable-MPT           disable building of MPT library"
18ac_help="$ac_help
19\
20   --disable-gmp           configure and build without gmp library"
21ac_help="$ac_help
22\
23   --enable-example        enable building of example programs"
24ac_help="$ac_help
25\
26   --enable-mpviewer       enable building of mpviewer program"
27ac_help="$ac_help
28\
29   --enable-mppvm          enable building of mppvm routines"
30ac_help="$ac_help
31\
32   --with-default_apint=PACKAGE    use PACKAGE as MP's default ApInt format
33                           where PACKAGE can be: gmp (default), pari,
34                           saclib, none"
35ac_help="$ac_help
36\
37   --with-default_apreal=PACKAGE   use PACKAGE as MP's default ApReal format
38                           where PACKAGE can be: gmp (default), none"
39ac_help="$ac_help
40\
41   --without-gmp           build without gmp ApNumber routines"
42ac_help="$ac_help
43\
44   --with-pari             build with pari ApInt routines"
45ac_help="$ac_help
46\
47   --with-saclib           build with saclib ApInt routines"
48ac_help="$ac_help
49\
50   --with-tb               build with Toolbus device interface"
51ac_help="$ac_help
52\
53   --with-pvm              build with Pvm saclib device interface"
54ac_help="$ac_help
55\
56   --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"
64ac_help="$ac_help
65\
66  --with-malloc=HEADER     use external malloc routines declared in HEADER"
67
68# Initialize some variables set by options.
69# The variables have the same names as the options, with
70# dashes changed to underlines.
71build=NONE
72cache_file=./config.cache
73exec_prefix=NONE
74host=NONE
75no_create=
76nonopt=NONE
77no_recursion=
78prefix=NONE
79program_prefix=NONE
80program_suffix=NONE
81program_transform_name=s,x,x,
82silent=
83site=
84srcdir=
85target=NONE
86verbose=
87x_includes=NONE
88x_libraries=NONE
89bindir='${exec_prefix}/bin'
90sbindir='${exec_prefix}/sbin'
91libexecdir='${exec_prefix}/libexec'
92datadir='${prefix}/share'
93sysconfdir='${prefix}/etc'
94sharedstatedir='${prefix}/com'
95localstatedir='${prefix}/var'
96libdir='${exec_prefix}/lib'
97includedir='${prefix}/include'
98oldincludedir='/usr/include'
99infodir='${prefix}/info'
100mandir='${prefix}/man'
101
102# Initialize some other variables.
103subdirs=
104MFLAGS= MAKEFLAGS=
105# Maximum number of lines to put in a shell here document.
106ac_max_here_lines=12
107
108ac_prev=
109for ac_option
110do
111
112  # If the previous option needs an argument, assign it.
113  if test -n "$ac_prev"; then
114    eval "$ac_prev=\$ac_option"
115    ac_prev=
116    continue
117  fi
118
119  case "$ac_option" in
120  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121  *) ac_optarg= ;;
122  esac
123
124  # Accept the important Cygnus configure options, so we can diagnose typos.
125
126  case "$ac_option" in
127
128  -bindir | --bindir | --bindi | --bind | --bin | --bi)
129    ac_prev=bindir ;;
130  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131    bindir="$ac_optarg" ;;
132
133  -build | --build | --buil | --bui | --bu)
134    ac_prev=build ;;
135  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136    build="$ac_optarg" ;;
137
138  -cache-file | --cache-file | --cache-fil | --cache-fi \
139  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140    ac_prev=cache_file ;;
141  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143    cache_file="$ac_optarg" ;;
144
145  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146    ac_prev=datadir ;;
147  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148  | --da=*)
149    datadir="$ac_optarg" ;;
150
151  -disable-* | --disable-*)
152    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153    # Reject names that are not valid shell variable names.
154    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156    fi
157    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158    eval "enable_${ac_feature}=no" ;;
159
160  -enable-* | --enable-*)
161    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162    # Reject names that are not valid shell variable names.
163    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165    fi
166    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167    case "$ac_option" in
168      *=*) ;;
169      *) ac_optarg=yes ;;
170    esac
171    eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175  | --exec | --exe | --ex)
176    ac_prev=exec_prefix ;;
177  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179  | --exec=* | --exe=* | --ex=*)
180    exec_prefix="$ac_optarg" ;;
181
182  -gas | --gas | --ga | --g)
183    # Obsolete; use --with-gas.
184    with_gas=yes ;;
185
186  -help | --help | --hel | --he)
187    # Omit some internal or obsolete options to make the list less imposing.
188    # This message is too long to be a string in the A/UX 3.1 sh.
189    cat << EOF
190Usage: configure [options] [host]
191Options: [defaults in brackets after descriptions]
192Configuration:
193  --cache-file=FILE       cache test results in FILE
194  --help                  print this message
195  --no-create             do not create output files
196  --quiet, --silent       do not print \`checking...' messages
197  --version               print the version of autoconf that created configure
198Directory and file names:
199  --prefix=PREFIX         install architecture-independent files in PREFIX
200                          [$ac_default_prefix]
201  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
202                          [same as prefix]
203  --bindir=DIR            user executables in DIR [EPREFIX/bin]
204  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
205  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
206  --datadir=DIR           read-only architecture-independent data in DIR
207                          [PREFIX/share]
208  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
209  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
210                          [PREFIX/com]
211  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
212  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
213  --includedir=DIR        C header files in DIR [PREFIX/include]
214  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
215  --infodir=DIR           info documentation in DIR [PREFIX/info]
216  --mandir=DIR            man documentation in DIR [PREFIX/man]
217  --srcdir=DIR            find the sources in DIR [configure dir or ..]
218  --program-prefix=PREFIX prepend PREFIX to installed program names
219  --program-suffix=SUFFIX append SUFFIX to installed program names
220  --program-transform-name=PROGRAM
221                          run sed PROGRAM on installed program names
222EOF
223    cat << EOF
224Host type:
225  --build=BUILD           configure for building on BUILD [BUILD=HOST]
226  --host=HOST             configure for HOST [guessed]
227  --target=TARGET         configure for TARGET [TARGET=HOST]
228Features and packages:
229  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
230  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
231  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
232  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
233  --x-includes=DIR        X include files are in DIR
234  --x-libraries=DIR       X library files are in DIR
235EOF
236    if test -n "$ac_help"; then
237      echo "--enable and --with options recognized:$ac_help"
238    fi
239    exit 0 ;;
240
241  -host | --host | --hos | --ho)
242    ac_prev=host ;;
243  -host=* | --host=* | --hos=* | --ho=*)
244    host="$ac_optarg" ;;
245
246  -includedir | --includedir | --includedi | --included | --include \
247  | --includ | --inclu | --incl | --inc)
248    ac_prev=includedir ;;
249  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250  | --includ=* | --inclu=* | --incl=* | --inc=*)
251    includedir="$ac_optarg" ;;
252
253  -infodir | --infodir | --infodi | --infod | --info | --inf)
254    ac_prev=infodir ;;
255  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256    infodir="$ac_optarg" ;;
257
258  -libdir | --libdir | --libdi | --libd)
259    ac_prev=libdir ;;
260  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261    libdir="$ac_optarg" ;;
262
263  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264  | --libexe | --libex | --libe)
265    ac_prev=libexecdir ;;
266  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267  | --libexe=* | --libex=* | --libe=*)
268    libexecdir="$ac_optarg" ;;
269
270  -localstatedir | --localstatedir | --localstatedi | --localstated \
271  | --localstate | --localstat | --localsta | --localst \
272  | --locals | --local | --loca | --loc | --lo)
273    ac_prev=localstatedir ;;
274  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277    localstatedir="$ac_optarg" ;;
278
279  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280    ac_prev=mandir ;;
281  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282    mandir="$ac_optarg" ;;
283
284  -nfp | --nfp | --nf)
285    # Obsolete; use --without-fp.
286    with_fp=no ;;
287
288  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289  | --no-cr | --no-c)
290    no_create=yes ;;
291
292  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294    no_recursion=yes ;;
295
296  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298  | --oldin | --oldi | --old | --ol | --o)
299    ac_prev=oldincludedir ;;
300  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303    oldincludedir="$ac_optarg" ;;
304
305  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306    ac_prev=prefix ;;
307  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308    prefix="$ac_optarg" ;;
309
310  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311  | --program-pre | --program-pr | --program-p)
312    ac_prev=program_prefix ;;
313  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315    program_prefix="$ac_optarg" ;;
316
317  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318  | --program-suf | --program-su | --program-s)
319    ac_prev=program_suffix ;;
320  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322    program_suffix="$ac_optarg" ;;
323
324  -program-transform-name | --program-transform-name \
325  | --program-transform-nam | --program-transform-na \
326  | --program-transform-n | --program-transform- \
327  | --program-transform | --program-transfor \
328  | --program-transfo | --program-transf \
329  | --program-trans | --program-tran \
330  | --progr-tra | --program-tr | --program-t)
331    ac_prev=program_transform_name ;;
332  -program-transform-name=* | --program-transform-name=* \
333  | --program-transform-nam=* | --program-transform-na=* \
334  | --program-transform-n=* | --program-transform-=* \
335  | --program-transform=* | --program-transfor=* \
336  | --program-transfo=* | --program-transf=* \
337  | --program-trans=* | --program-tran=* \
338  | --progr-tra=* | --program-tr=* | --program-t=*)
339    program_transform_name="$ac_optarg" ;;
340
341  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342  | -silent | --silent | --silen | --sile | --sil)
343    silent=yes ;;
344
345  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346    ac_prev=sbindir ;;
347  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348  | --sbi=* | --sb=*)
349    sbindir="$ac_optarg" ;;
350
351  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353  | --sharedst | --shareds | --shared | --share | --shar \
354  | --sha | --sh)
355    ac_prev=sharedstatedir ;;
356  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359  | --sha=* | --sh=*)
360    sharedstatedir="$ac_optarg" ;;
361
362  -site | --site | --sit)
363    ac_prev=site ;;
364  -site=* | --site=* | --sit=*)
365    site="$ac_optarg" ;;
366
367  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368    ac_prev=srcdir ;;
369  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370    srcdir="$ac_optarg" ;;
371
372  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373  | --syscon | --sysco | --sysc | --sys | --sy)
374    ac_prev=sysconfdir ;;
375  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377    sysconfdir="$ac_optarg" ;;
378
379  -target | --target | --targe | --targ | --tar | --ta | --t)
380    ac_prev=target ;;
381  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382    target="$ac_optarg" ;;
383
384  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385    verbose=yes ;;
386
387  -version | --version | --versio | --versi | --vers)
388    echo "configure generated by autoconf version 2.12"
389    exit 0 ;;
390
391  -with-* | --with-*)
392    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393    # Reject names that are not valid shell variable names.
394    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396    fi
397    ac_package=`echo $ac_package| sed 's/-/_/g'`
398    case "$ac_option" in
399      *=*) ;;
400      *) ac_optarg=yes ;;
401    esac
402    eval "with_${ac_package}='$ac_optarg'" ;;
403
404  -without-* | --without-*)
405    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406    # Reject names that are not valid shell variable names.
407    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409    fi
410    ac_package=`echo $ac_package| sed 's/-/_/g'`
411    eval "with_${ac_package}=no" ;;
412
413  --x)
414    # Obsolete; use --with-x.
415    with_x=yes ;;
416
417  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418  | --x-incl | --x-inc | --x-in | --x-i)
419    ac_prev=x_includes ;;
420  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422    x_includes="$ac_optarg" ;;
423
424  -x-libraries | --x-libraries | --x-librarie | --x-librari \
425  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426    ac_prev=x_libraries ;;
427  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429    x_libraries="$ac_optarg" ;;
430
431  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432    ;;
433
434  *)
435    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436      echo "configure: warning: $ac_option: invalid host type" 1>&2
437    fi
438    if test "x$nonopt" != xNONE; then
439      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440    fi
441    nonopt="$ac_option"
442    ;;
443
444  esac
445done
446
447if test -n "$ac_prev"; then
448  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449fi
450
451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453# File descriptor usage:
454# 0 standard input
455# 1 file creation
456# 2 errors and warnings
457# 3 some systems may open it to /dev/tty
458# 4 used on the Kubota Titan
459# 6 checking for... messages and results
460# 5 compiler messages saved in config.log
461if test "$silent" = yes; then
462  exec 6>/dev/null
463else
464  exec 6>&1
465fi
466exec 5>./config.log
467
468echo "\
469This file contains any messages produced by compilers while
470running configure, to aid debugging if configure makes a mistake.
471" 1>&5
472
473# Strip out --no-create and --no-recursion so they do not pile up.
474# Also quote any args containing shell metacharacters.
475ac_configure_args=
476for ac_arg
477do
478  case "$ac_arg" in
479  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480  | --no-cr | --no-c) ;;
481  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486  esac
487done
488
489# NLS nuisances.
490# Only set these to C if already set.  These must not be set unconditionally
491# because not all systems understand e.g. LANG=C (notably SCO).
492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493# Non-C LC_CTYPE values break the ctype check.
494if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
498
499# confdefs.h avoids OS command line length limits that DEFS can exceed.
500rm -rf conftest* confdefs.h
501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
502echo > confdefs.h
503
504# A filename unique to this package, relative to the directory that
505# configure is in, which we can look for to find out if srcdir is correct.
506ac_unique_file=MP/MP_Put.c
507
508# Find the source files, if location was not specified.
509if test -z "$srcdir"; then
510  ac_srcdir_defaulted=yes
511  # Try the directory containing this script, then its parent.
512  ac_prog=$0
513  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515  srcdir=$ac_confdir
516  if test ! -r $srcdir/$ac_unique_file; then
517    srcdir=..
518  fi
519else
520  ac_srcdir_defaulted=no
521fi
522if test ! -r $srcdir/$ac_unique_file; then
523  if test "$ac_srcdir_defaulted" = yes; then
524    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525  else
526    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527  fi
528fi
529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531# Prefer explicitly selected file to automatically selected ones.
532if test -z "$CONFIG_SITE"; then
533  if test "x$prefix" != xNONE; then
534    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535  else
536    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537  fi
538fi
539for ac_site_file in $CONFIG_SITE; do
540  if test -r "$ac_site_file"; then
541    echo "loading site script $ac_site_file"
542    . "$ac_site_file"
543  fi
544done
545
546if test -r "$cache_file"; then
547  echo "loading cache $cache_file"
548  . $cache_file
549else
550  echo "creating cache $cache_file"
551  > $cache_file
552fi
553
554ac_ext=c
555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556ac_cpp='$CPP $CPPFLAGS'
557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559cross_compiling=$ac_cv_prog_cc_cross
560
561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564    ac_n= ac_c='
565' ac_t='        '
566  else
567    ac_n=-n ac_c= ac_t=
568  fi
569else
570  ac_n= ac_c='\c' ac_t=
571fi
572
573
574
575
576PRODUCT=MP
577VERSION=1.1.2.1
578
579
580cat >> confdefs.h <<EOF
581#define MP_VERSION "$VERSION"
582EOF
583
584ac_aux_dir=
585for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586  if test -f $ac_dir/install-sh; then
587    ac_aux_dir=$ac_dir
588    ac_install_sh="$ac_aux_dir/install-sh -c"
589    break
590  elif test -f $ac_dir/install.sh; then
591    ac_aux_dir=$ac_dir
592    ac_install_sh="$ac_aux_dir/install.sh -c"
593    break
594  fi
595done
596if test -z "$ac_aux_dir"; then
597  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
598fi
599ac_config_guess=$ac_aux_dir/config.guess
600ac_config_sub=$ac_aux_dir/config.sub
601ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602
603
604# Do some error checking and defaulting for the host and target type.
605# The inputs are:
606#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
607#
608# The rules are:
609# 1. You are not allowed to specify --host, --target, and nonopt at the
610#    same time.
611# 2. Host defaults to nonopt.
612# 3. If nonopt is not specified, then host defaults to the current host,
613#    as determined by config.guess.
614# 4. Target and build default to nonopt.
615# 5. If nonopt is not specified, then target and build default to host.
616
617# The aliases save the names the user supplied, while $host etc.
618# will get canonicalized.
619case $host---$target---$nonopt in
620NONE---*---* | *---NONE---* | *---*---NONE) ;;
621*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
622esac
623
624
625# Make sure we can run config.sub.
626if $ac_config_sub sun4 >/dev/null 2>&1; then :
627else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628fi
629
630echo $ac_n "checking host system type""... $ac_c" 1>&6
631echo "configure:632: checking host system type" >&5
632
633host_alias=$host
634case "$host_alias" in
635NONE)
636  case $nonopt in
637  NONE)
638    if host_alias=`$ac_config_guess`; then :
639    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
640    fi ;;
641  *) host_alias=$nonopt ;;
642  esac ;;
643esac
644
645host=`$ac_config_sub $host_alias`
646host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649echo "$ac_t""$host" 1>&6
650
651echo $ac_n "checking target system type""... $ac_c" 1>&6
652echo "configure:653: checking target system type" >&5
653
654target_alias=$target
655case "$target_alias" in
656NONE)
657  case $nonopt in
658  NONE) target_alias=$host_alias ;;
659  *) target_alias=$nonopt ;;
660  esac ;;
661esac
662
663target=`$ac_config_sub $target_alias`
664target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667echo "$ac_t""$target" 1>&6
668
669echo $ac_n "checking build system type""... $ac_c" 1>&6
670echo "configure:671: checking build system type" >&5
671
672build_alias=$build
673case "$build_alias" in
674NONE)
675  case $nonopt in
676  NONE) build_alias=$host_alias ;;
677  *) build_alias=$nonopt ;;
678  esac ;;
679esac
680
681build=`$ac_config_sub $build_alias`
682build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685echo "$ac_t""$build" 1>&6
686
687test "$host_alias" != "$target_alias" &&
688  test "$program_prefix$program_suffix$program_transform_name" = \
689    NONENONEs,x,x, &&
690  program_prefix=${target_alias}-
691
692
693
694
695
696echo $ac_n "checking for architecture identifier""... $ac_c" 1>&6
697echo "configure:698: checking for architecture identifier" >&5 
698if eval "test \"`echo '$''{'ac_cv_arch'+set}'`\" = set"; then
699  echo $ac_n "(cached) $ac_c" 1>&6
700else
701  ac_cv_arch=`./pvmgetarch`
702fi
703
704echo "$ac_t""$ac_cv_arch" 1>&6
705
706if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then
707  libdir='${prefix}/lib/'$ac_cv_arch
708fi
709
710if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then
711  bindir='${prefix}/bin/'$ac_cv_arch
712fi
713
714# Extract the first word of "ranlib", so it can be a program name with args.
715set dummy ranlib; ac_word=$2
716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717echo "configure:718: checking for $ac_word" >&5
718if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
719  echo $ac_n "(cached) $ac_c" 1>&6
720else
721  if test -n "$RANLIB"; then
722  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
723else
724  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
725  for ac_dir in $PATH; do
726    test -z "$ac_dir" && ac_dir=.
727    if test -f $ac_dir/$ac_word; then
728      ac_cv_prog_RANLIB="ranlib"
729      break
730    fi
731  done
732  IFS="$ac_save_ifs"
733  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
734fi
735fi
736RANLIB="$ac_cv_prog_RANLIB"
737if test -n "$RANLIB"; then
738  echo "$ac_t""$RANLIB" 1>&6
739else
740  echo "$ac_t""no" 1>&6
741fi
742
743# Extract the first word of "ar", so it can be a program name with args.
744set dummy ar; ac_word=$2
745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746echo "configure:747: checking for $ac_word" >&5
747if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
748  echo $ac_n "(cached) $ac_c" 1>&6
749else
750  if test -n "$AR"; then
751  ac_cv_prog_AR="$AR" # Let the user override the test.
752else
753  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
754  for ac_dir in $PATH; do
755    test -z "$ac_dir" && ac_dir=.
756    if test -f $ac_dir/$ac_word; then
757      ac_cv_prog_AR="ar"
758      break
759    fi
760  done
761  IFS="$ac_save_ifs"
762  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
763fi
764fi
765AR="$ac_cv_prog_AR"
766if test -n "$AR"; then
767  echo "$ac_t""$AR" 1>&6
768else
769  echo "$ac_t""no" 1>&6
770fi
771
772if test "$ac_cv_prog_AR" != ar; then
773  { echo "configure: error: *** ar program not found" 1>&2; exit 1; }
774fi
775
776
777if test "$with_debug" = yes; then
778  if test "${CFLAGS+set}" != set; then 
779    CFLAGS="-g"
780    ac_cv_cflags_not_set=yes
781  fi
782  cat >> confdefs.h <<\EOF
783#define MPT_DEBUG 1
784EOF
785
786else
787  if test "${CFLAGS+set}" != set; then
788    CFLAGS="-O"
789    ac_cv_cflags_not_set=yes
790  fi
791  cat >> confdefs.h <<\EOF
792#define NO_LOGGING 1
793EOF
794
795fi
796
797# Extract the first word of "gcc", so it can be a program name with args.
798set dummy gcc; ac_word=$2
799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800echo "configure:801: checking for $ac_word" >&5
801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802  echo $ac_n "(cached) $ac_c" 1>&6
803else
804  if test -n "$CC"; then
805  ac_cv_prog_CC="$CC" # Let the user override the test.
806else
807  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
808  for ac_dir in $PATH; do
809    test -z "$ac_dir" && ac_dir=.
810    if test -f $ac_dir/$ac_word; then
811      ac_cv_prog_CC="gcc"
812      break
813    fi
814  done
815  IFS="$ac_save_ifs"
816fi
817fi
818CC="$ac_cv_prog_CC"
819if test -n "$CC"; then
820  echo "$ac_t""$CC" 1>&6
821else
822  echo "$ac_t""no" 1>&6
823fi
824
825if test -z "$CC"; then
826  # Extract the first word of "cc", so it can be a program name with args.
827set dummy cc; ac_word=$2
828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829echo "configure:830: checking for $ac_word" >&5
830if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831  echo $ac_n "(cached) $ac_c" 1>&6
832else
833  if test -n "$CC"; then
834  ac_cv_prog_CC="$CC" # Let the user override the test.
835else
836  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
837  ac_prog_rejected=no
838  for ac_dir in $PATH; do
839    test -z "$ac_dir" && ac_dir=.
840    if test -f $ac_dir/$ac_word; then
841      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842        ac_prog_rejected=yes
843        continue
844      fi
845      ac_cv_prog_CC="cc"
846      break
847    fi
848  done
849  IFS="$ac_save_ifs"
850if test $ac_prog_rejected = yes; then
851  # We found a bogon in the path, so make sure we never use it.
852  set dummy $ac_cv_prog_CC
853  shift
854  if test $# -gt 0; then
855    # We chose a different compiler from the bogus one.
856    # However, it has the same basename, so the bogon will be chosen
857    # first if we set CC to just the basename; use the full file name.
858    shift
859    set dummy "$ac_dir/$ac_word" "$@"
860    shift
861    ac_cv_prog_CC="$@"
862  fi
863fi
864fi
865fi
866CC="$ac_cv_prog_CC"
867if test -n "$CC"; then
868  echo "$ac_t""$CC" 1>&6
869else
870  echo "$ac_t""no" 1>&6
871fi
872
873  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
874fi
875
876echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
877echo "configure:878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
878
879ac_ext=c
880# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
881ac_cpp='$CPP $CPPFLAGS'
882ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
883ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
884cross_compiling=$ac_cv_prog_cc_cross
885
886cat > conftest.$ac_ext <<EOF
887#line 888 "configure"
888#include "confdefs.h"
889main(){return(0);}
890EOF
891if { (eval echo configure:892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
892  ac_cv_prog_cc_works=yes
893  # If we can't run a trivial program, we are probably using a cross compiler.
894  if (./conftest; exit) 2>/dev/null; then
895    ac_cv_prog_cc_cross=no
896  else
897    ac_cv_prog_cc_cross=yes
898  fi
899else
900  echo "configure: failed program was:" >&5
901  cat conftest.$ac_ext >&5
902  ac_cv_prog_cc_works=no
903fi
904rm -fr conftest*
905
906echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
907if test $ac_cv_prog_cc_works = no; then
908  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
909fi
910echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
911echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
912echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
913cross_compiling=$ac_cv_prog_cc_cross
914
915echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
916echo "configure:917: checking whether we are using GNU C" >&5
917if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
918  echo $ac_n "(cached) $ac_c" 1>&6
919else
920  cat > conftest.c <<EOF
921#ifdef __GNUC__
922  yes;
923#endif
924EOF
925if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
926  ac_cv_prog_gcc=yes
927else
928  ac_cv_prog_gcc=no
929fi
930fi
931
932echo "$ac_t""$ac_cv_prog_gcc" 1>&6
933
934if test $ac_cv_prog_gcc = yes; then
935  GCC=yes
936  ac_test_CFLAGS="${CFLAGS+set}"
937  ac_save_CFLAGS="$CFLAGS"
938  CFLAGS=
939  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
940echo "configure:941: checking whether ${CC-cc} accepts -g" >&5
941if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
942  echo $ac_n "(cached) $ac_c" 1>&6
943else
944  echo 'void f(){}' > conftest.c
945if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
946  ac_cv_prog_cc_g=yes
947else
948  ac_cv_prog_cc_g=no
949fi
950rm -f conftest*
951
952fi
953
954echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
955  if test "$ac_test_CFLAGS" = set; then
956    CFLAGS="$ac_save_CFLAGS"
957  elif test $ac_cv_prog_cc_g = yes; then
958    CFLAGS="-g -O2"
959  else
960    CFLAGS="-O2"
961  fi
962else
963  GCC=
964  test "${CFLAGS+set}" = set || CFLAGS="-g"
965fi
966
967echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
968echo "configure:969: checking how to run the C preprocessor" >&5
969# On Suns, sometimes $CPP names a directory.
970if test -n "$CPP" && test -d "$CPP"; then
971  CPP=
972fi
973if test -z "$CPP"; then
974if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
975  echo $ac_n "(cached) $ac_c" 1>&6
976else
977    # This must be in double quotes, not single quotes, because CPP may get
978  # substituted into the Makefile and "${CC-cc}" will confuse make.
979  CPP="${CC-cc} -E"
980  # On the NeXT, cc -E runs the code through the compiler's parser,
981  # not just through cpp.
982  cat > conftest.$ac_ext <<EOF
983#line 984 "configure"
984#include "confdefs.h"
985#include <assert.h>
986Syntax Error
987EOF
988ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
989{ (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
990ac_err=`grep -v '^ *+' conftest.out`
991if test -z "$ac_err"; then
992  :
993else
994  echo "$ac_err" >&5
995  echo "configure: failed program was:" >&5
996  cat conftest.$ac_ext >&5
997  rm -rf conftest*
998  CPP="${CC-cc} -E -traditional-cpp"
999  cat > conftest.$ac_ext <<EOF
1000#line 1001 "configure"
1001#include "confdefs.h"
1002#include <assert.h>
1003Syntax Error
1004EOF
1005ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006{ (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007ac_err=`grep -v '^ *+' conftest.out`
1008if test -z "$ac_err"; then
1009  :
1010else
1011  echo "$ac_err" >&5
1012  echo "configure: failed program was:" >&5
1013  cat conftest.$ac_ext >&5
1014  rm -rf conftest*
1015  CPP=/lib/cpp
1016fi
1017rm -f conftest*
1018fi
1019rm -f conftest*
1020  ac_cv_prog_CPP="$CPP"
1021fi
1022  CPP="$ac_cv_prog_CPP"
1023else
1024  ac_cv_prog_CPP="$CPP"
1025fi
1026echo "$ac_t""$CPP" 1>&6
1027
1028for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1029do
1030# Extract the first word of "$ac_prog", so it can be a program name with args.
1031set dummy $ac_prog; ac_word=$2
1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033echo "configure:1034: checking for $ac_word" >&5
1034if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1035  echo $ac_n "(cached) $ac_c" 1>&6
1036else
1037  if test -n "$CXX"; then
1038  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1039else
1040  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1041  for ac_dir in $PATH; do
1042    test -z "$ac_dir" && ac_dir=.
1043    if test -f $ac_dir/$ac_word; then
1044      ac_cv_prog_CXX="$ac_prog"
1045      break
1046    fi
1047  done
1048  IFS="$ac_save_ifs"
1049fi
1050fi
1051CXX="$ac_cv_prog_CXX"
1052if test -n "$CXX"; then
1053  echo "$ac_t""$CXX" 1>&6
1054else
1055  echo "$ac_t""no" 1>&6
1056fi
1057
1058test -n "$CXX" && break
1059done
1060test -n "$CXX" || CXX="gcc"
1061
1062
1063echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1064echo "configure:1065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1065
1066ac_ext=C
1067# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1068ac_cpp='$CXXCPP $CPPFLAGS'
1069ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1070ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1071cross_compiling=$ac_cv_prog_cxx_cross
1072
1073cat > conftest.$ac_ext <<EOF
1074#line 1075 "configure"
1075#include "confdefs.h"
1076main(){return(0);}
1077EOF
1078if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1079  ac_cv_prog_cxx_works=yes
1080  # If we can't run a trivial program, we are probably using a cross compiler.
1081  if (./conftest; exit) 2>/dev/null; then
1082    ac_cv_prog_cxx_cross=no
1083  else
1084    ac_cv_prog_cxx_cross=yes
1085  fi
1086else
1087  echo "configure: failed program was:" >&5
1088  cat conftest.$ac_ext >&5
1089  ac_cv_prog_cxx_works=no
1090fi
1091rm -fr conftest*
1092ac_ext=c
1093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094ac_cpp='$CPP $CPPFLAGS'
1095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097cross_compiling=$ac_cv_prog_cc_cross
1098
1099echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1100if test $ac_cv_prog_cxx_works = no; then
1101  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1102fi
1103echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104echo "configure:1105: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1105echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1106cross_compiling=$ac_cv_prog_cxx_cross
1107
1108echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1109echo "configure:1110: checking whether we are using GNU C++" >&5
1110if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1111  echo $ac_n "(cached) $ac_c" 1>&6
1112else
1113  cat > conftest.C <<EOF
1114#ifdef __GNUC__
1115  yes;
1116#endif
1117EOF
1118if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1119  ac_cv_prog_gxx=yes
1120else
1121  ac_cv_prog_gxx=no
1122fi
1123fi
1124
1125echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1126
1127if test $ac_cv_prog_gxx = yes; then
1128  GXX=yes
1129  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1130  ac_save_CXXFLAGS="$CXXFLAGS"
1131  CXXFLAGS=
1132  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1133echo "configure:1134: checking whether ${CXX-g++} accepts -g" >&5
1134if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1135  echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137  echo 'void f(){}' > conftest.cc
1138if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1139  ac_cv_prog_cxx_g=yes
1140else
1141  ac_cv_prog_cxx_g=no
1142fi
1143rm -f conftest*
1144
1145fi
1146
1147echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1148  if test "$ac_test_CXXFLAGS" = set; then
1149    CXXFLAGS="$ac_save_CXXFLAGS"
1150  elif test $ac_cv_prog_cxx_g = yes; then
1151    CXXFLAGS="-g -O2"
1152  else
1153    CXXFLAGS="-O2"
1154  fi
1155else
1156  GXX=
1157  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1158fi
1159
1160echo $ac_n "checking for AIX""... $ac_c" 1>&6
1161echo "configure:1162: checking for AIX" >&5
1162cat > conftest.$ac_ext <<EOF
1163#line 1164 "configure"
1164#include "confdefs.h"
1165#ifdef _AIX
1166  yes
1167#endif
1168
1169EOF
1170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1171  egrep "yes" >/dev/null 2>&1; then
1172  rm -rf conftest*
1173  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1174#define _ALL_SOURCE 1
1175EOF
1176
1177else
1178  rm -rf conftest*
1179  echo "$ac_t""no" 1>&6
1180fi
1181rm -f conftest*
1182
1183
1184
1185if test "${GCC}" != yes; then
1186  echo not using gcc, so checking for special flags and defines
1187  case "$target" in
1188    hppa1*)
1189      if test "$ac_cv_prog_CC" = cc; then
1190         echo Using HPUX native compiler with -Aa and -D_HPUX_SOURCE
1191         CFLAGS="$CFLAGS -Aa "
1192         
1193      fi
1194  esac
1195fi
1196
1197if test "$libdir" = '${exec_prefix}/lib'; then
1198  if test "x$exec_prefix" = xNONE; then
1199    if test "x$prefix" = xNONE; then
1200      LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}"
1201    else
1202      LDFLAGS="-L${prefix}/lib ${LDFLAGS}"
1203    fi
1204  else
1205    LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}"
1206  fi
1207elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then
1208  if test "x$prefix" = xNONE; then
1209    LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch  ${LDFLAGS}"
1210  else
1211    LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}"
1212  fi
1213else
1214  LDFLAGS="-L${libdir} ${LDFLAGS}"
1215fi
1216
1217if test "$includedir" = '${prefix}/include'; then
1218  if test "x$prefix" = xNONE; then
1219    CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}"
1220  else
1221    CPPFLAGS="-I${prefix}/include ${CPPFLAGS}"
1222  fi
1223else
1224  CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1225fi
1226
1227if test "${PVM_ROOT+set}" = set; then
1228  if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then
1229    CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include"
1230    if test "${PVM_ARCH+set}" = set; then
1231      LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}"
1232    fi
1233  fi
1234fi
1235
1236echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1237echo "configure:1238: checking whether ${MAKE-make} sets \${MAKE}" >&5
1238set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1239if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1240  echo $ac_n "(cached) $ac_c" 1>&6
1241else
1242  cat > conftestmake <<\EOF
1243all:
1244        @echo 'ac_maketemp="${MAKE}"'
1245EOF
1246# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1247eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1248if test -n "$ac_maketemp"; then
1249  eval ac_cv_prog_make_${ac_make}_set=yes
1250else
1251  eval ac_cv_prog_make_${ac_make}_set=no
1252fi
1253rm -f conftestmake
1254fi
1255if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1256  echo "$ac_t""yes" 1>&6
1257  SET_MAKE=
1258else
1259  echo "$ac_t""no" 1>&6
1260  SET_MAKE="MAKE=${MAKE-make}"
1261fi
1262
1263echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1264echo "configure:1265: checking for ANSI C header files" >&5
1265if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1266  echo $ac_n "(cached) $ac_c" 1>&6
1267else
1268  cat > conftest.$ac_ext <<EOF
1269#line 1270 "configure"
1270#include "confdefs.h"
1271#include <stdlib.h>
1272#include <stdarg.h>
1273#include <string.h>
1274#include <float.h>
1275EOF
1276ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1277{ (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1278ac_err=`grep -v '^ *+' conftest.out`
1279if test -z "$ac_err"; then
1280  rm -rf conftest*
1281  ac_cv_header_stdc=yes
1282else
1283  echo "$ac_err" >&5
1284  echo "configure: failed program was:" >&5
1285  cat conftest.$ac_ext >&5
1286  rm -rf conftest*
1287  ac_cv_header_stdc=no
1288fi
1289rm -f conftest*
1290
1291if test $ac_cv_header_stdc = yes; then
1292  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1293cat > conftest.$ac_ext <<EOF
1294#line 1295 "configure"
1295#include "confdefs.h"
1296#include <string.h>
1297EOF
1298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1299  egrep "memchr" >/dev/null 2>&1; then
1300  :
1301else
1302  rm -rf conftest*
1303  ac_cv_header_stdc=no
1304fi
1305rm -f conftest*
1306
1307fi
1308
1309if test $ac_cv_header_stdc = yes; then
1310  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1311cat > conftest.$ac_ext <<EOF
1312#line 1313 "configure"
1313#include "confdefs.h"
1314#include <stdlib.h>
1315EOF
1316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1317  egrep "free" >/dev/null 2>&1; then
1318  :
1319else
1320  rm -rf conftest*
1321  ac_cv_header_stdc=no
1322fi
1323rm -f conftest*
1324
1325fi
1326
1327if test $ac_cv_header_stdc = yes; then
1328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1329if test "$cross_compiling" = yes; then
1330  :
1331else
1332  cat > conftest.$ac_ext <<EOF
1333#line 1334 "configure"
1334#include "confdefs.h"
1335#include <ctype.h>
1336#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1337#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1338#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1339int main () { int i; for (i = 0; i < 256; i++)
1340if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1341exit (0); }
1342
1343EOF
1344if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1345then
1346  :
1347else
1348  echo "configure: failed program was:" >&5
1349  cat conftest.$ac_ext >&5
1350  rm -fr conftest*
1351  ac_cv_header_stdc=no
1352fi
1353rm -fr conftest*
1354fi
1355
1356fi
1357fi
1358
1359echo "$ac_t""$ac_cv_header_stdc" 1>&6
1360if test $ac_cv_header_stdc = yes; then
1361  cat >> confdefs.h <<\EOF
1362#define STDC_HEADERS 1
1363EOF
1364
1365fi
1366
1367echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1368echo "configure:1369: checking for pid_t" >&5
1369if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1370  echo $ac_n "(cached) $ac_c" 1>&6
1371else
1372  cat > conftest.$ac_ext <<EOF
1373#line 1374 "configure"
1374#include "confdefs.h"
1375#include <sys/types.h>
1376#if STDC_HEADERS
1377#include <stdlib.h>
1378#include <stddef.h>
1379#endif
1380EOF
1381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1382  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1383  rm -rf conftest*
1384  ac_cv_type_pid_t=yes
1385else
1386  rm -rf conftest*
1387  ac_cv_type_pid_t=no
1388fi
1389rm -f conftest*
1390
1391fi
1392echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1393if test $ac_cv_type_pid_t = no; then
1394  cat >> confdefs.h <<\EOF
1395#define pid_t int
1396EOF
1397
1398fi
1399
1400ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
1401echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
1402echo "configure:1403: checking for vfork.h" >&5
1403if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1404  echo $ac_n "(cached) $ac_c" 1>&6
1405else
1406  cat > conftest.$ac_ext <<EOF
1407#line 1408 "configure"
1408#include "confdefs.h"
1409#include <vfork.h>
1410EOF
1411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1412{ (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1413ac_err=`grep -v '^ *+' conftest.out`
1414if test -z "$ac_err"; then
1415  rm -rf conftest*
1416  eval "ac_cv_header_$ac_safe=yes"
1417else
1418  echo "$ac_err" >&5
1419  echo "configure: failed program was:" >&5
1420  cat conftest.$ac_ext >&5
1421  rm -rf conftest*
1422  eval "ac_cv_header_$ac_safe=no"
1423fi
1424rm -f conftest*
1425fi
1426if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1427  echo "$ac_t""yes" 1>&6
1428  cat >> confdefs.h <<\EOF
1429#define HAVE_VFORK_H 1
1430EOF
1431
1432else
1433  echo "$ac_t""no" 1>&6
1434fi
1435
1436echo $ac_n "checking for working vfork""... $ac_c" 1>&6
1437echo "configure:1438: checking for working vfork" >&5
1438if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
1439  echo $ac_n "(cached) $ac_c" 1>&6
1440else
1441  if test "$cross_compiling" = yes; then
1442  echo $ac_n "checking for vfork""... $ac_c" 1>&6
1443echo "configure:1444: checking for vfork" >&5
1444if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
1445  echo $ac_n "(cached) $ac_c" 1>&6
1446else
1447  cat > conftest.$ac_ext <<EOF
1448#line 1449 "configure"
1449#include "confdefs.h"
1450/* System header to define __stub macros and hopefully few prototypes,
1451    which can conflict with char vfork(); below.  */
1452#include <assert.h>
1453/* Override any gcc2 internal prototype to avoid an error.  */
1454/* We use char because int might match the return type of a gcc2
1455    builtin and then its argument prototype would still apply.  */
1456char vfork();
1457
1458int main() {
1459
1460/* The GNU C library defines this for functions which it implements
1461    to always fail with ENOSYS.  Some functions are actually named
1462    something starting with __ and the normal name is an alias.  */
1463#if defined (__stub_vfork) || defined (__stub___vfork)
1464choke me
1465#else
1466vfork();
1467#endif
1468
1469; return 0; }
1470EOF
1471if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472  rm -rf conftest*
1473  eval "ac_cv_func_vfork=yes"
1474else
1475  echo "configure: failed program was:" >&5
1476  cat conftest.$ac_ext >&5
1477  rm -rf conftest*
1478  eval "ac_cv_func_vfork=no"
1479fi
1480rm -f conftest*
1481fi
1482
1483if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
1484  echo "$ac_t""yes" 1>&6
1485  :
1486else
1487  echo "$ac_t""no" 1>&6
1488fi
1489
1490else
1491  cat > conftest.$ac_ext <<EOF
1492#line 1493 "configure"
1493#include "confdefs.h"
1494/* Thanks to Paul Eggert for this test.  */
1495#include <stdio.h>
1496#include <sys/types.h>
1497#include <sys/stat.h>
1498#ifdef HAVE_UNISTD_H
1499#include <unistd.h>
1500#endif
1501#ifdef HAVE_VFORK_H
1502#include <vfork.h>
1503#endif
1504/* On some sparc systems, changes by the child to local and incoming
1505   argument registers are propagated back to the parent.
1506   The compiler is told about this with #include <vfork.h>,
1507   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
1508   Test for this by using a static variable whose address
1509   is put into a register that is clobbered by the vfork.  */
1510static
1511#ifdef __cplusplus
1512sparc_address_test (int arg)
1513#else
1514sparc_address_test (arg) int arg;
1515#endif
1516{
1517  static pid_t child;
1518  if (!child) {
1519    child = vfork ();
1520    if (child < 0) {
1521      perror ("vfork");
1522      _exit(2);
1523    }
1524    if (!child) {
1525      arg = getpid();
1526      write(-1, "", 0);
1527      _exit (arg);
1528    }
1529  }
1530}
1531main() {
1532  pid_t parent = getpid ();
1533  pid_t child;
1534
1535  sparc_address_test ();
1536
1537  child = vfork ();
1538
1539  if (child == 0) {
1540    /* Here is another test for sparc vfork register problems.
1541       This test uses lots of local variables, at least
1542       as many local variables as main has allocated so far
1543       including compiler temporaries.  4 locals are enough for
1544       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
1545       A buggy compiler should reuse the register of parent
1546       for one of the local variables, since it will think that
1547       parent can't possibly be used any more in this routine.
1548       Assigning to the local variable will thus munge parent
1549       in the parent process.  */
1550    pid_t
1551      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
1552      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
1553    /* Convince the compiler that p..p7 are live; otherwise, it might
1554       use the same hardware register for all 8 local variables.  */
1555    if (p != p1 || p != p2 || p != p3 || p != p4
1556        || p != p5 || p != p6 || p != p7)
1557      _exit(1);
1558
1559    /* On some systems (e.g. IRIX 3.3),
1560       vfork doesn't separate parent from child file descriptors.
1561       If the child closes a descriptor before it execs or exits,
1562       this munges the parent's descriptor as well.
1563       Test for this by closing stdout in the child.  */
1564    _exit(close(fileno(stdout)) != 0);
1565  } else {
1566    int status;
1567    struct stat st;
1568
1569    while (wait(&status) != child)
1570      ;
1571    exit(
1572         /* Was there some problem with vforking?  */
1573         child < 0
1574
1575         /* Did the child fail?  (This shouldn't happen.)  */
1576         || status
1577
1578         /* Did the vfork/compiler bug occur?  */
1579         || parent != getpid()
1580
1581         /* Did the file descriptor bug occur?  */
1582         || fstat(fileno(stdout), &st) != 0
1583         );
1584  }
1585}
1586EOF
1587if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1588then
1589  ac_cv_func_vfork_works=yes
1590else
1591  echo "configure: failed program was:" >&5
1592  cat conftest.$ac_ext >&5
1593  rm -fr conftest*
1594  ac_cv_func_vfork_works=no
1595fi
1596rm -fr conftest*
1597fi
1598
1599fi
1600
1601echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
1602if test $ac_cv_func_vfork_works = no; then
1603  cat >> confdefs.h <<\EOF
1604#define vfork fork
1605EOF
1606
1607fi
1608
1609
1610# Check whether --enable-MPT or --disable-MPT was given.
1611if test "${enable_MPT+set}" = set; then
1612  enableval="$enable_MPT"
1613  :
1614fi
1615
1616
1617# Check whether --enable-gmp or --disable-gmp was given.
1618if test "${enable_gmp+set}" = set; then
1619  enableval="$enable_gmp"
1620  :
1621fi
1622
1623
1624# Check whether --enable-tests or --disable-tests was given.
1625if test "${enable_tests+set}" = set; then
1626  enableval="$enable_tests"
1627  :
1628fi
1629
1630
1631# Check whether --enable-mpviewer or --disable-mpviewer was given.
1632if test "${enable_mpviewer+set}" = set; then
1633  enableval="$enable_mpviewer"
1634  :
1635fi
1636
1637
1638# Check whether --enable-mppvm or --disable-mppvm was given.
1639if test "${enable_mppvm+set}" = set; then
1640  enableval="$enable_mppvm"
1641  :
1642fi
1643
1644
1645
1646if test "$enable_gmp" != no && test -d gmp; then
1647  CONFIG_SUBDIRS="gmp"
1648  enable_gmp=yes
1649fi
1650BUILD_SUBDIRS="$CONFIG_SUBDIRS MP"
1651
1652if test "$enable_MPT" != no && test -d MPT; then
1653    BUILD_SUBDIRS="${BUILD_SUBDIRS} MPT"
1654fi
1655
1656if test "$enable_examples" = yes && test -d examples; then
1657  BUILD_SUBDIRS="${BUILD_SUBDIRS} examples"
1658  ac_check_prog=yes
1659fi
1660
1661if test "$enable_mpviewer" = yes && test -d mpviewer; then
1662  BUILD_SUBDIRS="${BUILD_SUBDIRS} mpviewer"
1663  ac_check_prog=yes
1664fi
1665
1666if test "$enable_mppvm" = yes && test -d mp-pvm3; then
1667  BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3"
1668  ac_check_prog=yes
1669  with_pvm=yes
1670fi
1671
1672
1673
1674for ac_func in gethostbyname
1675do
1676echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1677echo "configure:1678: checking for $ac_func" >&5
1678if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1679  echo $ac_n "(cached) $ac_c" 1>&6
1680else
1681  cat > conftest.$ac_ext <<EOF
1682#line 1683 "configure"
1683#include "confdefs.h"
1684/* System header to define __stub macros and hopefully few prototypes,
1685    which can conflict with char $ac_func(); below.  */
1686#include <assert.h>
1687/* Override any gcc2 internal prototype to avoid an error.  */
1688/* We use char because int might match the return type of a gcc2
1689    builtin and then its argument prototype would still apply.  */
1690char $ac_func();
1691
1692int main() {
1693
1694/* The GNU C library defines this for functions which it implements
1695    to always fail with ENOSYS.  Some functions are actually named
1696    something starting with __ and the normal name is an alias.  */
1697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1698choke me
1699#else
1700$ac_func();
1701#endif
1702
1703; return 0; }
1704EOF
1705if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706  rm -rf conftest*
1707  eval "ac_cv_func_$ac_func=yes"
1708else
1709  echo "configure: failed program was:" >&5
1710  cat conftest.$ac_ext >&5
1711  rm -rf conftest*
1712  eval "ac_cv_func_$ac_func=no"
1713fi
1714rm -f conftest*
1715fi
1716
1717if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1718  echo "$ac_t""yes" 1>&6
1719    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1720  cat >> confdefs.h <<EOF
1721#define $ac_tr_func 1
1722EOF
1723 
1724else
1725  echo "$ac_t""no" 1>&6
1726fi
1727done
1728
1729
1730if test "$ac_check_prog" = yes; then
1731  echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1732echo "configure:1733: checking for atof in -lm" >&5
1733ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1734if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1735  echo $ac_n "(cached) $ac_c" 1>&6
1736else
1737  ac_save_LIBS="$LIBS"
1738LIBS="-lm  $LIBS"
1739cat > conftest.$ac_ext <<EOF
1740#line 1741 "configure"
1741#include "confdefs.h"
1742/* Override any gcc2 internal prototype to avoid an error.  */
1743/* We use char because int might match the return type of a gcc2
1744    builtin and then its argument prototype would still apply.  */
1745char atof();
1746
1747int main() {
1748atof()
1749; return 0; }
1750EOF
1751if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1752  rm -rf conftest*
1753  eval "ac_cv_lib_$ac_lib_var=yes"
1754else
1755  echo "configure: failed program was:" >&5
1756  cat conftest.$ac_ext >&5
1757  rm -rf conftest*
1758  eval "ac_cv_lib_$ac_lib_var=no"
1759fi
1760rm -f conftest*
1761LIBS="$ac_save_LIBS"
1762
1763fi
1764if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1765  echo "$ac_t""yes" 1>&6
1766    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1767    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1768  cat >> confdefs.h <<EOF
1769#define $ac_tr_lib 1
1770EOF
1771
1772  LIBS="-lm $LIBS"
1773
1774else
1775  echo "$ac_t""no" 1>&6
1776fi
1777
1778  echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1779echo "configure:1780: checking for socket in -lbsd" >&5
1780ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1782  echo $ac_n "(cached) $ac_c" 1>&6
1783else
1784  ac_save_LIBS="$LIBS"
1785LIBS="-lbsd  $LIBS"
1786cat > conftest.$ac_ext <<EOF
1787#line 1788 "configure"
1788#include "confdefs.h"
1789/* Override any gcc2 internal prototype to avoid an error.  */
1790/* We use char because int might match the return type of a gcc2
1791    builtin and then its argument prototype would still apply.  */
1792char socket();
1793
1794int main() {
1795socket()
1796; return 0; }
1797EOF
1798if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1799  rm -rf conftest*
1800  eval "ac_cv_lib_$ac_lib_var=yes"
1801else
1802  echo "configure: failed program was:" >&5
1803  cat conftest.$ac_ext >&5
1804  rm -rf conftest*
1805  eval "ac_cv_lib_$ac_lib_var=no"
1806fi
1807rm -f conftest*
1808LIBS="$ac_save_LIBS"
1809
1810fi
1811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1812  echo "$ac_t""yes" 1>&6
1813    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1814    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1815  cat >> confdefs.h <<EOF
1816#define $ac_tr_lib 1
1817EOF
1818
1819  LIBS="-lbsd $LIBS"
1820
1821else
1822  echo "$ac_t""no" 1>&6
1823fi
1824
1825  echo $ac_n "checking for mpz_init in -lgmp""... $ac_c" 1>&6
1826echo "configure:1827: checking for mpz_init in -lgmp" >&5
1827ac_lib_var=`echo gmp'_'mpz_init | sed 'y%./+-%__p_%'`
1828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829  echo $ac_n "(cached) $ac_c" 1>&6
1830else
1831  ac_save_LIBS="$LIBS"
1832LIBS="-lgmp  $LIBS"
1833cat > conftest.$ac_ext <<EOF
1834#line 1835 "configure"
1835#include "confdefs.h"
1836/* Override any gcc2 internal prototype to avoid an error.  */
1837/* We use char because int might match the return type of a gcc2
1838    builtin and then its argument prototype would still apply.  */
1839char mpz_init();
1840
1841int main() {
1842mpz_init()
1843; return 0; }
1844EOF
1845if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1846  rm -rf conftest*
1847  eval "ac_cv_lib_$ac_lib_var=yes"
1848else
1849  echo "configure: failed program was:" >&5
1850  cat conftest.$ac_ext >&5
1851  rm -rf conftest*
1852  eval "ac_cv_lib_$ac_lib_var=no"
1853fi
1854rm -f conftest*
1855LIBS="$ac_save_LIBS"
1856
1857fi
1858if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859  echo "$ac_t""yes" 1>&6
1860    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1861    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1862  cat >> confdefs.h <<EOF
1863#define $ac_tr_lib 1
1864EOF
1865
1866  LIBS="-lgmp $LIBS"
1867
1868else
1869  echo "$ac_t""no" 1>&6
1870fi
1871
1872
1873  if test "$ac_cv_lib_gmp_mpz_init" != yes || "$enable_gmp" != no; then
1874    echo "configure: warning: Did not find gmp library: Linking programs with MP will fail" 1>&2
1875    NEED_LIBS=$LIBS
1876  else
1877    NEED_LIBS="-lgmp $LIBS"
1878  fi
1879 
1880  for ac_func in select socket gethostname gethostbyname strtol strstr
1881do
1882echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1883echo "configure:1884: checking for $ac_func" >&5
1884if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1885  echo $ac_n "(cached) $ac_c" 1>&6
1886else
1887  cat > conftest.$ac_ext <<EOF
1888#line 1889 "configure"
1889#include "confdefs.h"
1890/* System header to define __stub macros and hopefully few prototypes,
1891    which can conflict with char $ac_func(); below.  */
1892#include <assert.h>
1893/* Override any gcc2 internal prototype to avoid an error.  */
1894/* We use char because int might match the return type of a gcc2
1895    builtin and then its argument prototype would still apply.  */
1896char $ac_func();
1897
1898int main() {
1899
1900/* The GNU C library defines this for functions which it implements
1901    to always fail with ENOSYS.  Some functions are actually named
1902    something starting with __ and the normal name is an alias.  */
1903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1904choke me
1905#else
1906$ac_func();
1907#endif
1908
1909; return 0; }
1910EOF
1911if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1912  rm -rf conftest*
1913  eval "ac_cv_func_$ac_func=yes"
1914else
1915  echo "configure: failed program was:" >&5
1916  cat conftest.$ac_ext >&5
1917  rm -rf conftest*
1918  eval "ac_cv_func_$ac_func=no"
1919fi
1920rm -f conftest*
1921fi
1922
1923if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1924  echo "$ac_t""yes" 1>&6
1925    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1926  cat >> confdefs.h <<EOF
1927#define $ac_tr_func 1
1928EOF
1929 
1930else
1931  echo "$ac_t""no" 1>&6
1932fi
1933done
1934
1935  if test "$ac_cv_func_select" != yes; then
1936    echo "configure: warning: Did not find library containing function select" 1>&2
1937    echo "configure: warning: Linking programs with MP might fail" 1>&2
1938  fi
1939  if test "$ac_cv_func_gethostname" != yes; then
1940    echo "configure: warning: Did not find library containing gethostname" 1>&2
1941    echo "configure: warning: Linking programs with MP might fail" 1>&2
1942  fi
1943
1944  if test "$ac_cv_func_gethostbyname" != yes; then
1945    echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1946echo "configure:1947: checking for gethostbyname in -lnsl" >&5
1947ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1948if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1949  echo $ac_n "(cached) $ac_c" 1>&6
1950else
1951  ac_save_LIBS="$LIBS"
1952LIBS="-lnsl  $LIBS"
1953cat > conftest.$ac_ext <<EOF
1954#line 1955 "configure"
1955#include "confdefs.h"
1956/* Override any gcc2 internal prototype to avoid an error.  */
1957/* We use char because int might match the return type of a gcc2
1958    builtin and then its argument prototype would still apply.  */
1959char gethostbyname();
1960
1961int main() {
1962gethostbyname()
1963; return 0; }
1964EOF
1965if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1966  rm -rf conftest*
1967  eval "ac_cv_lib_$ac_lib_var=yes"
1968else
1969  echo "configure: failed program was:" >&5
1970  cat conftest.$ac_ext >&5
1971  rm -rf conftest*
1972  eval "ac_cv_lib_$ac_lib_var=no"
1973fi
1974rm -f conftest*
1975LIBS="$ac_save_LIBS"
1976
1977fi
1978if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1979  echo "$ac_t""yes" 1>&6
1980    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1981    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1982  cat >> confdefs.h <<EOF
1983#define $ac_tr_lib 1
1984EOF
1985
1986  LIBS="-lnsl $LIBS"
1987
1988else
1989  echo "$ac_t""no" 1>&6
1990fi
1991
1992    if test "$ac_cv_lib_nsl_gethostbyname" != yes; then
1993      echo "configure: warning: Did not find library containing gethostbyname" 1>&2
1994      echo "configure: warning: Linking programs with MP might fail" 1>&2
1995    fi
1996  fi
1997
1998  if test "$ac_cv_func_socket" != yes; then
1999    echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2000echo "configure:2001: checking for socket in -lsocket" >&5
2001ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2002if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003  echo $ac_n "(cached) $ac_c" 1>&6
2004else
2005  ac_save_LIBS="$LIBS"
2006LIBS="-lsocket  $LIBS"
2007cat > conftest.$ac_ext <<EOF
2008#line 2009 "configure"
2009#include "confdefs.h"
2010/* Override any gcc2 internal prototype to avoid an error.  */
2011/* We use char because int might match the return type of a gcc2
2012    builtin and then its argument prototype would still apply.  */
2013char socket();
2014
2015int main() {
2016socket()
2017; return 0; }
2018EOF
2019if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2020  rm -rf conftest*
2021  eval "ac_cv_lib_$ac_lib_var=yes"
2022else
2023  echo "configure: failed program was:" >&5
2024  cat conftest.$ac_ext >&5
2025  rm -rf conftest*
2026  eval "ac_cv_lib_$ac_lib_var=no"
2027fi
2028rm -f conftest*
2029LIBS="$ac_save_LIBS"
2030
2031fi
2032if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2033  echo "$ac_t""yes" 1>&6
2034    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2035    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2036  cat >> confdefs.h <<EOF
2037#define $ac_tr_lib 1
2038EOF
2039
2040  LIBS="-lsocket $LIBS"
2041
2042else
2043  echo "$ac_t""no" 1>&6
2044fi
2045
2046    if test "$ac_cv_lib_socket_socket" != yes; then
2047      echo "configure: warning: Did not find library containing socket" 1>&2
2048      echo "configure: warning: Linking programs with MP might fail" 1>&2
2049    fi
2050  fi
2051fi
2052
2053
2054echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2055echo "configure:2056: checking for ANSI C header files" >&5
2056if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2057  echo $ac_n "(cached) $ac_c" 1>&6
2058else
2059  cat > conftest.$ac_ext <<EOF
2060#line 2061 "configure"
2061#include "confdefs.h"
2062#include <stdlib.h>
2063#include <stdarg.h>
2064#include <string.h>
2065#include <float.h>
2066EOF
2067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068{ (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069ac_err=`grep -v '^ *+' conftest.out`
2070if test -z "$ac_err"; then
2071  rm -rf conftest*
2072  ac_cv_header_stdc=yes
2073else
2074  echo "$ac_err" >&5
2075  echo "configure: failed program was:" >&5
2076  cat conftest.$ac_ext >&5
2077  rm -rf conftest*
2078  ac_cv_header_stdc=no
2079fi
2080rm -f conftest*
2081
2082if test $ac_cv_header_stdc = yes; then
2083  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2084cat > conftest.$ac_ext <<EOF
2085#line 2086 "configure"
2086#include "confdefs.h"
2087#include <string.h>
2088EOF
2089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090  egrep "memchr" >/dev/null 2>&1; then
2091  :
2092else
2093  rm -rf conftest*
2094  ac_cv_header_stdc=no
2095fi
2096rm -f conftest*
2097
2098fi
2099
2100if test $ac_cv_header_stdc = yes; then
2101  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2102cat > conftest.$ac_ext <<EOF
2103#line 2104 "configure"
2104#include "confdefs.h"
2105#include <stdlib.h>
2106EOF
2107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2108  egrep "free" >/dev/null 2>&1; then
2109  :
2110else
2111  rm -rf conftest*
2112  ac_cv_header_stdc=no
2113fi
2114rm -f conftest*
2115
2116fi
2117
2118if test $ac_cv_header_stdc = yes; then
2119  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2120if test "$cross_compiling" = yes; then
2121  :
2122else
2123  cat > conftest.$ac_ext <<EOF
2124#line 2125 "configure"
2125#include "confdefs.h"
2126#include <ctype.h>
2127#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2128#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2130int main () { int i; for (i = 0; i < 256; i++)
2131if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2132exit (0); }
2133
2134EOF
2135if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2136then
2137  :
2138else
2139  echo "configure: failed program was:" >&5
2140  cat conftest.$ac_ext >&5
2141  rm -fr conftest*
2142  ac_cv_header_stdc=no
2143fi
2144rm -fr conftest*
2145fi
2146
2147fi
2148fi
2149
2150echo "$ac_t""$ac_cv_header_stdc" 1>&6
2151if test $ac_cv_header_stdc = yes; then
2152  cat >> confdefs.h <<\EOF
2153#define STDC_HEADERS 1
2154EOF
2155
2156fi
2157
2158ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
2159echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
2160echo "configure:2161: checking for arpa/inet.h" >&5
2161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162  echo $ac_n "(cached) $ac_c" 1>&6
2163else
2164  cat > conftest.$ac_ext <<EOF
2165#line 2166 "configure"
2166#include "confdefs.h"
2167#include <arpa/inet.h>
2168EOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171ac_err=`grep -v '^ *+' conftest.out`
2172if test -z "$ac_err"; then
2173  rm -rf conftest*
2174  eval "ac_cv_header_$ac_safe=yes"
2175else
2176  echo "$ac_err" >&5
2177  echo "configure: failed program was:" >&5
2178  cat conftest.$ac_ext >&5
2179  rm -rf conftest*
2180  eval "ac_cv_header_$ac_safe=no"
2181fi
2182rm -f conftest*
2183fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2185  echo "$ac_t""yes" 1>&6
2186  :
2187else
2188  echo "$ac_t""no" 1>&6
2189echo "*** no arpa/inet.h";exit
2190fi
2191
2192ac_safe=`echo "assert.h" | sed 'y%./+-%__p_%'`
2193echo $ac_n "checking for assert.h""... $ac_c" 1>&6
2194echo "configure:2195: checking for assert.h" >&5
2195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196  echo $ac_n "(cached) $ac_c" 1>&6
2197else
2198  cat > conftest.$ac_ext <<EOF
2199#line 2200 "configure"
2200#include "confdefs.h"
2201#include <assert.h>
2202EOF
2203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204{ (eval echo configure:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205ac_err=`grep -v '^ *+' conftest.out`
2206if test -z "$ac_err"; then
2207  rm -rf conftest*
2208  eval "ac_cv_header_$ac_safe=yes"
2209else
2210  echo "$ac_err" >&5
2211  echo "configure: failed program was:" >&5
2212  cat conftest.$ac_ext >&5
2213  rm -rf conftest*
2214  eval "ac_cv_header_$ac_safe=no"
2215fi
2216rm -f conftest*
2217fi
2218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219  echo "$ac_t""yes" 1>&6
2220  :
2221else
2222  echo "$ac_t""no" 1>&6
2223echo "*** no assert.h";exit
2224fi
2225
2226ac_safe=`echo "ctype.h" | sed 'y%./+-%__p_%'`
2227echo $ac_n "checking for ctype.h""... $ac_c" 1>&6
2228echo "configure:2229: checking for ctype.h" >&5
2229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230  echo $ac_n "(cached) $ac_c" 1>&6
2231else
2232  cat > conftest.$ac_ext <<EOF
2233#line 2234 "configure"
2234#include "confdefs.h"
2235#include <ctype.h>
2236EOF
2237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238{ (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239ac_err=`grep -v '^ *+' conftest.out`
2240if test -z "$ac_err"; then
2241  rm -rf conftest*
2242  eval "ac_cv_header_$ac_safe=yes"
2243else
2244  echo "$ac_err" >&5
2245  echo "configure: failed program was:" >&5
2246  cat conftest.$ac_ext >&5
2247  rm -rf conftest*
2248  eval "ac_cv_header_$ac_safe=no"
2249fi
2250rm -f conftest*
2251fi
2252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253  echo "$ac_t""yes" 1>&6
2254  :
2255else
2256  echo "$ac_t""no" 1>&6
2257echo "*** no ctype.h";exit
2258fi
2259
2260ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
2261echo $ac_n "checking for errno.h""... $ac_c" 1>&6
2262echo "configure:2263: checking for errno.h" >&5
2263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2264  echo $ac_n "(cached) $ac_c" 1>&6
2265else
2266  cat > conftest.$ac_ext <<EOF
2267#line 2268 "configure"
2268#include "confdefs.h"
2269#include <errno.h>
2270EOF
2271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2272{ (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2273ac_err=`grep -v '^ *+' conftest.out`
2274if test -z "$ac_err"; then
2275  rm -rf conftest*
2276  eval "ac_cv_header_$ac_safe=yes"
2277else
2278  echo "$ac_err" >&5
2279  echo "configure: failed program was:" >&5
2280  cat conftest.$ac_ext >&5
2281  rm -rf conftest*
2282  eval "ac_cv_header_$ac_safe=no"
2283fi
2284rm -f conftest*
2285fi
2286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2287  echo "$ac_t""yes" 1>&6
2288  :
2289else
2290  echo "$ac_t""no" 1>&6
2291echo "*** no errno.h";exit
2292fi
2293
2294ac_safe=`echo "netdb.h" | sed 'y%./+-%__p_%'`
2295echo $ac_n "checking for netdb.h""... $ac_c" 1>&6
2296echo "configure:2297: checking for netdb.h" >&5
2297if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2298  echo $ac_n "(cached) $ac_c" 1>&6
2299else
2300  cat > conftest.$ac_ext <<EOF
2301#line 2302 "configure"
2302#include "confdefs.h"
2303#include <netdb.h>
2304EOF
2305ac_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; }
2307ac_err=`grep -v '^ *+' conftest.out`
2308if test -z "$ac_err"; then
2309  rm -rf conftest*
2310  eval "ac_cv_header_$ac_safe=yes"
2311else
2312  echo "$ac_err" >&5
2313  echo "configure: failed program was:" >&5
2314  cat conftest.$ac_ext >&5
2315  rm -rf conftest*
2316  eval "ac_cv_header_$ac_safe=no"
2317fi
2318rm -f conftest*
2319fi
2320if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2321  echo "$ac_t""yes" 1>&6
2322  :
2323else
2324  echo "$ac_t""no" 1>&6
2325echo "*** no netdb.h";exit
2326fi
2327
2328ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
2329echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
2330echo "configure:2331: checking for netinet/in.h" >&5
2331if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332  echo $ac_n "(cached) $ac_c" 1>&6
2333else
2334  cat > conftest.$ac_ext <<EOF
2335#line 2336 "configure"
2336#include "confdefs.h"
2337#include <netinet/in.h>
2338EOF
2339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340{ (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341ac_err=`grep -v '^ *+' conftest.out`
2342if test -z "$ac_err"; then
2343  rm -rf conftest*
2344  eval "ac_cv_header_$ac_safe=yes"
2345else
2346  echo "$ac_err" >&5
2347  echo "configure: failed program was:" >&5
2348  cat conftest.$ac_ext >&5
2349  rm -rf conftest*
2350  eval "ac_cv_header_$ac_safe=no"
2351fi
2352rm -f conftest*
2353fi
2354if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355  echo "$ac_t""yes" 1>&6
2356  :
2357else
2358  echo "$ac_t""no" 1>&6
2359echo "*** no netinet/in.h";exit
2360fi
2361
2362ac_safe=`echo "netinet/tcp.h" | sed 'y%./+-%__p_%'`
2363echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
2364echo "configure:2365: checking for netinet/tcp.h" >&5
2365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2366  echo $ac_n "(cached) $ac_c" 1>&6
2367else
2368  cat > conftest.$ac_ext <<EOF
2369#line 2370 "configure"
2370#include "confdefs.h"
2371#include <netinet/tcp.h>
2372EOF
2373ac_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; }
2375ac_err=`grep -v '^ *+' conftest.out`
2376if test -z "$ac_err"; then
2377  rm -rf conftest*
2378  eval "ac_cv_header_$ac_safe=yes"
2379else
2380  echo "$ac_err" >&5
2381  echo "configure: failed program was:" >&5
2382  cat conftest.$ac_ext >&5
2383  rm -rf conftest*
2384  eval "ac_cv_header_$ac_safe=no"
2385fi
2386rm -f conftest*
2387fi
2388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2389  echo "$ac_t""yes" 1>&6
2390  :
2391else
2392  echo "$ac_t""no" 1>&6
2393echo "*** no netinet/tcp.h";exit
2394fi
2395
2396ac_safe=`echo "signal.h" | sed 'y%./+-%__p_%'`
2397echo $ac_n "checking for signal.h""... $ac_c" 1>&6
2398echo "configure:2399: checking for signal.h" >&5
2399if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2400  echo $ac_n "(cached) $ac_c" 1>&6
2401else
2402  cat > conftest.$ac_ext <<EOF
2403#line 2404 "configure"
2404#include "confdefs.h"
2405#include <signal.h>
2406EOF
2407ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2408{ (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2409ac_err=`grep -v '^ *+' conftest.out`
2410if test -z "$ac_err"; then
2411  rm -rf conftest*
2412  eval "ac_cv_header_$ac_safe=yes"
2413else
2414  echo "$ac_err" >&5
2415  echo "configure: failed program was:" >&5
2416  cat conftest.$ac_ext >&5
2417  rm -rf conftest*
2418  eval "ac_cv_header_$ac_safe=no"
2419fi
2420rm -f conftest*
2421fi
2422if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2423  echo "$ac_t""yes" 1>&6
2424  :
2425else
2426  echo "$ac_t""no" 1>&6
2427echo "*** no sihnal.h";exit
2428fi
2429
2430ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'`
2431echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
2432echo "configure:2433: checking for stdarg.h" >&5
2433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2434  echo $ac_n "(cached) $ac_c" 1>&6
2435else
2436  cat > conftest.$ac_ext <<EOF
2437#line 2438 "configure"
2438#include "confdefs.h"
2439#include <stdarg.h>
2440EOF
2441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2442{ (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2443ac_err=`grep -v '^ *+' conftest.out`
2444if test -z "$ac_err"; then
2445  rm -rf conftest*
2446  eval "ac_cv_header_$ac_safe=yes"
2447else
2448  echo "$ac_err" >&5
2449  echo "configure: failed program was:" >&5
2450  cat conftest.$ac_ext >&5
2451  rm -rf conftest*
2452  eval "ac_cv_header_$ac_safe=no"
2453fi
2454rm -f conftest*
2455fi
2456if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2457  echo "$ac_t""yes" 1>&6
2458  :
2459else
2460  echo "$ac_t""no" 1>&6
2461echo "*** no stdarg.h";exit
2462fi
2463
2464ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2465echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2466echo "configure:2467: checking for stdio.h" >&5
2467if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468  echo $ac_n "(cached) $ac_c" 1>&6
2469else
2470  cat > conftest.$ac_ext <<EOF
2471#line 2472 "configure"
2472#include "confdefs.h"
2473#include <stdio.h>
2474EOF
2475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476{ (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477ac_err=`grep -v '^ *+' conftest.out`
2478if test -z "$ac_err"; then
2479  rm -rf conftest*
2480  eval "ac_cv_header_$ac_safe=yes"
2481else
2482  echo "$ac_err" >&5
2483  echo "configure: failed program was:" >&5
2484  cat conftest.$ac_ext >&5
2485  rm -rf conftest*
2486  eval "ac_cv_header_$ac_safe=no"
2487fi
2488rm -f conftest*
2489fi
2490if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491  echo "$ac_t""yes" 1>&6
2492  :
2493else
2494  echo "$ac_t""no" 1>&6
2495echo "*** no stdio.h";exit
2496fi
2497
2498ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
2499echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
2500echo "configure:2501: checking for stdlib.h" >&5
2501if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502  echo $ac_n "(cached) $ac_c" 1>&6
2503else
2504  cat > conftest.$ac_ext <<EOF
2505#line 2506 "configure"
2506#include "confdefs.h"
2507#include <stdlib.h>
2508EOF
2509ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510{ (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511ac_err=`grep -v '^ *+' conftest.out`
2512if test -z "$ac_err"; then
2513  rm -rf conftest*
2514  eval "ac_cv_header_$ac_safe=yes"
2515else
2516  echo "$ac_err" >&5
2517  echo "configure: failed program was:" >&5
2518  cat conftest.$ac_ext >&5
2519  rm -rf conftest*
2520  eval "ac_cv_header_$ac_safe=no"
2521fi
2522rm -f conftest*
2523fi
2524if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525  echo "$ac_t""yes" 1>&6
2526  :
2527else
2528  echo "$ac_t""no" 1>&6
2529echo "*** no stdlib.h";exit
2530fi
2531
2532ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
2533echo $ac_n "checking for string.h""... $ac_c" 1>&6
2534echo "configure:2535: checking for string.h" >&5
2535if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2536  echo $ac_n "(cached) $ac_c" 1>&6
2537else
2538  cat > conftest.$ac_ext <<EOF
2539#line 2540 "configure"
2540#include "confdefs.h"
2541#include <string.h>
2542EOF
2543ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544{ (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545ac_err=`grep -v '^ *+' conftest.out`
2546if test -z "$ac_err"; then
2547  rm -rf conftest*
2548  eval "ac_cv_header_$ac_safe=yes"
2549else
2550  echo "$ac_err" >&5
2551  echo "configure: failed program was:" >&5
2552  cat conftest.$ac_ext >&5
2553  rm -rf conftest*
2554  eval "ac_cv_header_$ac_safe=no"
2555fi
2556rm -f conftest*
2557fi
2558if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2559  echo "$ac_t""yes" 1>&6
2560  :
2561else
2562  echo "$ac_t""no" 1>&6
2563echo "*** no string.h";exit
2564fi
2565
2566ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
2567echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
2568echo "configure:2569: checking for stddef.h" >&5
2569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2570  echo $ac_n "(cached) $ac_c" 1>&6
2571else
2572  cat > conftest.$ac_ext <<EOF
2573#line 2574 "configure"
2574#include "confdefs.h"
2575#include <stddef.h>
2576EOF
2577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2578{ (eval echo configure:2579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2579ac_err=`grep -v '^ *+' conftest.out`
2580if test -z "$ac_err"; then
2581  rm -rf conftest*
2582  eval "ac_cv_header_$ac_safe=yes"
2583else
2584  echo "$ac_err" >&5
2585  echo "configure: failed program was:" >&5
2586  cat conftest.$ac_ext >&5
2587  rm -rf conftest*
2588  eval "ac_cv_header_$ac_safe=no"
2589fi
2590rm -f conftest*
2591fi
2592if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2593  echo "$ac_t""yes" 1>&6
2594  :
2595else
2596  echo "$ac_t""no" 1>&6
2597echo "*** no stddef.h";exit
2598fi
2599
2600ac_safe=`echo "values.h" | sed 'y%./+-%__p_%'`
2601echo $ac_n "checking for values.h""... $ac_c" 1>&6
2602echo "configure:2603: checking for values.h" >&5
2603if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2604  echo $ac_n "(cached) $ac_c" 1>&6
2605else
2606  cat > conftest.$ac_ext <<EOF
2607#line 2608 "configure"
2608#include "confdefs.h"
2609#include <values.h>
2610EOF
2611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612{ (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613ac_err=`grep -v '^ *+' conftest.out`
2614if test -z "$ac_err"; then
2615  rm -rf conftest*
2616  eval "ac_cv_header_$ac_safe=yes"
2617else
2618  echo "$ac_err" >&5
2619  echo "configure: failed program was:" >&5
2620  cat conftest.$ac_ext >&5
2621  rm -rf conftest*
2622  eval "ac_cv_header_$ac_safe=no"
2623fi
2624rm -f conftest*
2625fi
2626if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2627  echo "$ac_t""yes" 1>&6
2628  :
2629else
2630  echo "$ac_t""no" 1>&6
2631echo "*** no values.h";exit
2632fi
2633
2634
2635ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
2636echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
2637echo "configure:2638: checking for fcntl.h" >&5
2638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2639  echo $ac_n "(cached) $ac_c" 1>&6
2640else
2641  cat > conftest.$ac_ext <<EOF
2642#line 2643 "configure"
2643#include "confdefs.h"
2644#include <fcntl.h>
2645EOF
2646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647{ (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648ac_err=`grep -v '^ *+' conftest.out`
2649if test -z "$ac_err"; then
2650  rm -rf conftest*
2651  eval "ac_cv_header_$ac_safe=yes"
2652else
2653  echo "$ac_err" >&5
2654  echo "configure: failed program was:" >&5
2655  cat conftest.$ac_ext >&5
2656  rm -rf conftest*
2657  eval "ac_cv_header_$ac_safe=no"
2658fi
2659rm -f conftest*
2660fi
2661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2662  echo "$ac_t""yes" 1>&6
2663  :
2664else
2665  echo "$ac_t""no" 1>&6
2666echo "*** no fcntl.h";exit
2667fi
2668
2669ac_safe=`echo "sys/ioctl.h" | sed 'y%./+-%__p_%'`
2670echo $ac_n "checking for sys/ioctl.h""... $ac_c" 1>&6
2671echo "configure:2672: checking for sys/ioctl.h" >&5
2672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2673  echo $ac_n "(cached) $ac_c" 1>&6
2674else
2675  cat > conftest.$ac_ext <<EOF
2676#line 2677 "configure"
2677#include "confdefs.h"
2678#include <sys/ioctl.h>
2679EOF
2680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681{ (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682ac_err=`grep -v '^ *+' conftest.out`
2683if test -z "$ac_err"; then
2684  rm -rf conftest*
2685  eval "ac_cv_header_$ac_safe=yes"
2686else
2687  echo "$ac_err" >&5
2688  echo "configure: failed program was:" >&5
2689  cat conftest.$ac_ext >&5
2690  rm -rf conftest*
2691  eval "ac_cv_header_$ac_safe=no"
2692fi
2693rm -f conftest*
2694fi
2695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2696  echo "$ac_t""yes" 1>&6
2697  :
2698else
2699  echo "$ac_t""no" 1>&6
2700echo "*** no sys/ioctl.h";exit
2701fi
2702
2703ac_safe=`echo "sys/param.h" | sed 'y%./+-%__p_%'`
2704echo $ac_n "checking for sys/param.h""... $ac_c" 1>&6
2705echo "configure:2706: checking for sys/param.h" >&5
2706if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707  echo $ac_n "(cached) $ac_c" 1>&6
2708else
2709  cat > conftest.$ac_ext <<EOF
2710#line 2711 "configure"
2711#include "confdefs.h"
2712#include <sys/param.h>
2713EOF
2714ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715{ (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716ac_err=`grep -v '^ *+' conftest.out`
2717if test -z "$ac_err"; then
2718  rm -rf conftest*
2719  eval "ac_cv_header_$ac_safe=yes"
2720else
2721  echo "$ac_err" >&5
2722  echo "configure: failed program was:" >&5
2723  cat conftest.$ac_ext >&5
2724  rm -rf conftest*
2725  eval "ac_cv_header_$ac_safe=no"
2726fi
2727rm -f conftest*
2728fi
2729if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730  echo "$ac_t""yes" 1>&6
2731  :
2732else
2733  echo "$ac_t""no" 1>&6
2734echo "*** no sys/param.h";exit
2735fi
2736
2737ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
2738echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
2739echo "configure:2740: checking for sys/socket.h" >&5
2740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741  echo $ac_n "(cached) $ac_c" 1>&6
2742else
2743  cat > conftest.$ac_ext <<EOF
2744#line 2745 "configure"
2745#include "confdefs.h"
2746#include <sys/socket.h>
2747EOF
2748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749{ (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750ac_err=`grep -v '^ *+' conftest.out`
2751if test -z "$ac_err"; then
2752  rm -rf conftest*
2753  eval "ac_cv_header_$ac_safe=yes"
2754else
2755  echo "$ac_err" >&5
2756  echo "configure: failed program was:" >&5
2757  cat conftest.$ac_ext >&5
2758  rm -rf conftest*
2759  eval "ac_cv_header_$ac_safe=no"
2760fi
2761rm -f conftest*
2762fi
2763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764  echo "$ac_t""yes" 1>&6
2765  :
2766else
2767  echo "$ac_t""no" 1>&6
2768echo "*** no sys/socket.h";exit
2769fi
2770
2771ac_safe=`echo "sys/stat.h" | sed 'y%./+-%__p_%'`
2772echo $ac_n "checking for sys/stat.h""... $ac_c" 1>&6
2773echo "configure:2774: checking for sys/stat.h" >&5
2774if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775  echo $ac_n "(cached) $ac_c" 1>&6
2776else
2777  cat > conftest.$ac_ext <<EOF
2778#line 2779 "configure"
2779#include "confdefs.h"
2780#include <sys/stat.h>
2781EOF
2782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783{ (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784ac_err=`grep -v '^ *+' conftest.out`
2785if test -z "$ac_err"; then
2786  rm -rf conftest*
2787  eval "ac_cv_header_$ac_safe=yes"
2788else
2789  echo "$ac_err" >&5
2790  echo "configure: failed program was:" >&5
2791  cat conftest.$ac_ext >&5
2792  rm -rf conftest*
2793  eval "ac_cv_header_$ac_safe=no"
2794fi
2795rm -f conftest*
2796fi
2797if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798  echo "$ac_t""yes" 1>&6
2799  :
2800else
2801  echo "$ac_t""no" 1>&6
2802echo "*** no sys/stat.h";exit
2803fi
2804
2805ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
2806echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
2807echo "configure:2808: checking for sys/time.h" >&5
2808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2809  echo $ac_n "(cached) $ac_c" 1>&6
2810else
2811  cat > conftest.$ac_ext <<EOF
2812#line 2813 "configure"
2813#include "confdefs.h"
2814#include <sys/time.h>
2815EOF
2816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2817{ (eval echo configure:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2818ac_err=`grep -v '^ *+' conftest.out`
2819if test -z "$ac_err"; then
2820  rm -rf conftest*
2821  eval "ac_cv_header_$ac_safe=yes"
2822else
2823  echo "$ac_err" >&5
2824  echo "configure: failed program was:" >&5
2825  cat conftest.$ac_ext >&5
2826  rm -rf conftest*
2827  eval "ac_cv_header_$ac_safe=no"
2828fi
2829rm -f conftest*
2830fi
2831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2832  echo "$ac_t""yes" 1>&6
2833  :
2834else
2835  echo "$ac_t""no" 1>&6
2836echo "*** no sys/time.h";exit
2837fi
2838
2839ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
2840echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
2841echo "configure:2842: checking for sys/types.h" >&5
2842if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2843  echo $ac_n "(cached) $ac_c" 1>&6
2844else
2845  cat > conftest.$ac_ext <<EOF
2846#line 2847 "configure"
2847#include "confdefs.h"
2848#include <sys/types.h>
2849EOF
2850ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2851{ (eval echo configure:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2852ac_err=`grep -v '^ *+' conftest.out`
2853if test -z "$ac_err"; then
2854  rm -rf conftest*
2855  eval "ac_cv_header_$ac_safe=yes"
2856else
2857  echo "$ac_err" >&5
2858  echo "configure: failed program was:" >&5
2859  cat conftest.$ac_ext >&5
2860  rm -rf conftest*
2861  eval "ac_cv_header_$ac_safe=no"
2862fi
2863rm -f conftest*
2864fi
2865if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2866  echo "$ac_t""yes" 1>&6
2867  :
2868else
2869  echo "$ac_t""no" 1>&6
2870echo "*** no sys/types.h";exit
2871fi
2872
2873ac_safe=`echo "sys/uio.h" | sed 'y%./+-%__p_%'`
2874echo $ac_n "checking for sys/uio.h""... $ac_c" 1>&6
2875echo "configure:2876: checking for sys/uio.h" >&5
2876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877  echo $ac_n "(cached) $ac_c" 1>&6
2878else
2879  cat > conftest.$ac_ext <<EOF
2880#line 2881 "configure"
2881#include "confdefs.h"
2882#include <sys/uio.h>
2883EOF
2884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885{ (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886ac_err=`grep -v '^ *+' conftest.out`
2887if test -z "$ac_err"; then
2888  rm -rf conftest*
2889  eval "ac_cv_header_$ac_safe=yes"
2890else
2891  echo "$ac_err" >&5
2892  echo "configure: failed program was:" >&5
2893  cat conftest.$ac_ext >&5
2894  rm -rf conftest*
2895  eval "ac_cv_header_$ac_safe=no"
2896fi
2897rm -f conftest*
2898fi
2899if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900  echo "$ac_t""yes" 1>&6
2901  :
2902else
2903  echo "$ac_t""no" 1>&6
2904echo "*** no sys/uio.h";exit
2905fi
2906
2907ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
2908echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
2909echo "configure:2910: checking for sys/un.h" >&5
2910if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2911  echo $ac_n "(cached) $ac_c" 1>&6
2912else
2913  cat > conftest.$ac_ext <<EOF
2914#line 2915 "configure"
2915#include "confdefs.h"
2916#include <sys/un.h>
2917EOF
2918ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919{ (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920ac_err=`grep -v '^ *+' conftest.out`
2921if test -z "$ac_err"; then
2922  rm -rf conftest*
2923  eval "ac_cv_header_$ac_safe=yes"
2924else
2925  echo "$ac_err" >&5
2926  echo "configure: failed program was:" >&5
2927  cat conftest.$ac_ext >&5
2928  rm -rf conftest*
2929  eval "ac_cv_header_$ac_safe=no"
2930fi
2931rm -f conftest*
2932fi
2933if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2934  echo "$ac_t""yes" 1>&6
2935  :
2936else
2937  echo "$ac_t""no" 1>&6
2938echo "*** no sys/un.h";exit
2939fi
2940
2941ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
2942echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
2943echo "configure:2944: checking for unistd.h" >&5
2944if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945  echo $ac_n "(cached) $ac_c" 1>&6
2946else
2947  cat > conftest.$ac_ext <<EOF
2948#line 2949 "configure"
2949#include "confdefs.h"
2950#include <unistd.h>
2951EOF
2952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953{ (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954ac_err=`grep -v '^ *+' conftest.out`
2955if test -z "$ac_err"; then
2956  rm -rf conftest*
2957  eval "ac_cv_header_$ac_safe=yes"
2958else
2959  echo "$ac_err" >&5
2960  echo "configure: failed program was:" >&5
2961  cat conftest.$ac_ext >&5
2962  rm -rf conftest*
2963  eval "ac_cv_header_$ac_safe=no"
2964fi
2965rm -f conftest*
2966fi
2967if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968  echo "$ac_t""yes" 1>&6
2969  :
2970else
2971  echo "$ac_t""no" 1>&6
2972echo "*** no unistd.h";exit
2973fi
2974
2975ac_safe=`echo "math.h" | sed 'y%./+-%__p_%'`
2976echo $ac_n "checking for math.h""... $ac_c" 1>&6
2977echo "configure:2978: checking for math.h" >&5
2978if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2979  echo $ac_n "(cached) $ac_c" 1>&6
2980else
2981  cat > conftest.$ac_ext <<EOF
2982#line 2983 "configure"
2983#include "confdefs.h"
2984#include <math.h>
2985EOF
2986ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2987{ (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2988ac_err=`grep -v '^ *+' conftest.out`
2989if test -z "$ac_err"; then
2990  rm -rf conftest*
2991  eval "ac_cv_header_$ac_safe=yes"
2992else
2993  echo "$ac_err" >&5
2994  echo "configure: failed program was:" >&5
2995  cat conftest.$ac_ext >&5
2996  rm -rf conftest*
2997  eval "ac_cv_header_$ac_safe=no"
2998fi
2999rm -f conftest*
3000fi
3001if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3002  echo "$ac_t""yes" 1>&6
3003  :
3004else
3005  echo "$ac_t""no" 1>&6
3006echo "*** no math.h";exit
3007fi
3008
3009
3010
3011for ac_hdr in sys/select.h gmp.h genpari.h saclib.h
3012do
3013ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3014echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3015echo "configure:3016: checking for $ac_hdr" >&5
3016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3017  echo $ac_n "(cached) $ac_c" 1>&6
3018else
3019  cat > conftest.$ac_ext <<EOF
3020#line 3021 "configure"
3021#include "confdefs.h"
3022#include <$ac_hdr>
3023EOF
3024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3025{ (eval echo configure:3026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3026ac_err=`grep -v '^ *+' conftest.out`
3027if test -z "$ac_err"; then
3028  rm -rf conftest*
3029  eval "ac_cv_header_$ac_safe=yes"
3030else
3031  echo "$ac_err" >&5
3032  echo "configure: failed program was:" >&5
3033  cat conftest.$ac_ext >&5
3034  rm -rf conftest*
3035  eval "ac_cv_header_$ac_safe=no"
3036fi
3037rm -f conftest*
3038fi
3039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3040  echo "$ac_t""yes" 1>&6
3041    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3042  cat >> confdefs.h <<EOF
3043#define $ac_tr_hdr 1
3044EOF
3045 
3046else
3047  echo "$ac_t""no" 1>&6
3048fi
3049done
3050
3051
3052if test "$ac_cv_header_gmp_h" = yes; then
3053  cat > conftest.$ac_ext <<EOF
3054#line 3055 "configure"
3055#include "confdefs.h"
3056#include <gmp.h>
3057EOF
3058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059  egrep "mpz_ptr" >/dev/null 2>&1; then
3060  rm -rf conftest*
3061  MPZ_PTR=mpz_ptr
3062fi
3063rm -f conftest*
3064
3065  if test ! "$MPZ_PTR" = mpz_ptr; then
3066    cat > conftest.$ac_ext <<EOF
3067#line 3068 "configure"
3068#include "confdefs.h"
3069#include <gmp.h>
3070EOF
3071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072  egrep "MP_INT" >/dev/null 2>&1; then
3073  rm -rf conftest*
3074  MPZ_PTR="MP_INT*"
3075fi
3076rm -f conftest*
3077
3078    cat >> confdefs.h <<EOF
3079#define mpz_ptr MP_INT*
3080EOF
3081
3082    cat >> confdefs.h <<EOF
3083#define _mp_alloc alloc
3084EOF
3085
3086    cat >> confdefs.h <<EOF
3087#define _mp_size size
3088EOF
3089
3090    cat >> confdefs.h <<EOF
3091#define _mp_d d
3092EOF
3093
3094  fi
3095  cat > conftest.$ac_ext <<EOF
3096#line 3097 "configure"
3097#include "confdefs.h"
3098#include <gmp.h>
3099EOF
3100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101  egrep "mpf_ptr" >/dev/null 2>&1; then
3102  rm -rf conftest*
3103  MPF_PTR=mpf_ptr
3104fi
3105rm -f conftest*
3106
3107fi
3108
3109# Check whether --with-apint or --without-apint was given.
3110if test "${with_apint+set}" = set; then
3111  withval="$with_apint"
3112  :
3113fi
3114
3115# Check whether --with-apreal or --without-apreal was given.
3116if test "${with_apreal+set}" = set; then
3117  withval="$with_apreal"
3118  :
3119fi
3120
3121# Check whether --with-gmp or --without-gmp was given.
3122if test "${with_gmp+set}" = set; then
3123  withval="$with_gmp"
3124  :
3125fi
3126
3127
3128# Check whether --with-pari or --without-pari was given.
3129if test "${with_pari+set}" = set; then
3130  withval="$with_pari"
3131  :
3132fi
3133
3134
3135# Check whether --with-saclib or --without-saclib was given.
3136if test "${with_saclib+set}" = set; then
3137  withval="$with_saclib"
3138  :
3139fi
3140
3141
3142# Check whether --with-tb or --without-tb was given.
3143if test "${with_tb+set}" = set; then
3144  withval="$with_tb"
3145  :
3146fi
3147
3148
3149# Check whether --with-pvm or --without-pvm was given.
3150if test "${with_pvm+set}" = set; then
3151  withval="$with_pvm"
3152  :
3153fi
3154
3155
3156# Check whether --with-debug or --without-debug was given.
3157if test "${with_debug+set}" = set; then
3158  withval="$with_debug"
3159  :
3160fi
3161
3162
3163# Check whether --with-extra_cflags or --without-extra_cflags was given.
3164if test "${with_extra_cflags+set}" = set; then
3165  withval="$with_extra_cflags"
3166  :
3167fi
3168
3169
3170# Check whether --with-rsh or --without-rsh was given.
3171if test "${with_rsh+set}" = set; then
3172  withval="$with_rsh"
3173  :
3174fi
3175
3176
3177cat >> confdefs.h <<\EOF
3178#define MP_DUMMY 0
3179EOF
3180
3181cat >> confdefs.h <<\EOF
3182#define MP_GMP 1
3183EOF
3184
3185cat >> confdefs.h <<\EOF
3186#define MP_PARI 2
3187EOF
3188
3189cat >> confdefs.h <<\EOF
3190#define MP_SAC 3
3191EOF
3192
3193
3194if test "$with_default_apint" = none; then
3195  cat >> confdefs.h <<\EOF
3196#define MP_DEFAULT_APINT MP_DUMMY
3197EOF
3198
3199elif test "$with_default_apint" = pari; then
3200  if test "$ac_cv_header_genpari_h" != yes; then
3201    echo "configure: warning: Need genpari.h to use pari as default ApInt format" 1>&2
3202    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3203    cat >> confdefs.h <<\EOF
3204#define MP_DEFAULT_APINT_FORMAT MP_DUMMY
3205EOF
3206 
3207  else
3208    cat >> confdefs.h <<\EOF
3209#define MP_DEFAULT_APINT_FORMAT MP_PARI
3210EOF
3211
3212    cat >> confdefs.h <<\EOF
3213#define MP_HAVE_PARI 1
3214EOF
3215
3216  fi
3217elif test "$with_default_apint" = saclib; then
3218  if test "$ac_cv_header_saclib_h" != yes; then
3219    echo "configure: warning: Need saclib.h to use saclib as default ApInt format" 1>&2
3220    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3221    cat >> confdefs.h <<\EOF
3222#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3223EOF
3224 
3225  else
3226    cat >> confdefs.h <<\EOF
3227#define MP_DEFAULT_APINT_FORMAT MP_SAC
3228EOF
3229
3230    cat >> confdefs.h <<\EOF
3231#define MP_HAVE_SACLIB 1
3232EOF
3233
3234  fi
3235else
3236  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3237    echo "configure: warning: Need gmp.h to use gmp as default ApInt format" 1>&2
3238    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3239    cat >> confdefs.h <<\EOF
3240#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3241EOF
3242 
3243  elif test -z "$MPZ_PTR" && test "$enable_gmp" != yes; then
3244    echo "configure: warning: Need gmp.h containing typedef of 'mpz_ptr' or 'MP_INT'" 1>&2
3245    echo "configure: warning: Use dummy as default MP ApInt format" 1>&2
3246    cat >> confdefs.h <<\EOF
3247#define MP_DEFAULT_APINTFORMAT MP_DUMMY
3248EOF
3249
3250  else
3251    cat >> confdefs.h <<\EOF
3252#define MP_DEFAULT_APINT_FORMAT MP_GMP
3253EOF
3254
3255    cat >> confdefs.h <<\EOF
3256#define MP_HAVE_GMP_APINT 1
3257EOF
3258
3259    if test "$ac_cv_header_gmp_h" != yes; then
3260      echo "configure: warning: Need gmp.h to use gmp as default ApInt format" 1>&2
3261      echo "configure: warning: Install gmp.h before making MP" 1>&2
3262    fi
3263  fi
3264fi
3265
3266if test "$with_default_apreal" = none; then
3267  cat >> confdefs.h <<\EOF
3268#define MP_DEFAULT_APREAL MP_DUMMY
3269EOF
3270
3271else
3272  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3273    echo "configure: warning: Need gmp.h to use gmp as default ApReal format" 1>&2
3274    echo "configure: warning: Use dummy as default MP ApReal format" 1>&2
3275    cat >> confdefs.h <<\EOF
3276#define MP_DEFAULT_APREALFORMAT MP_DUMMY
3277EOF
3278 
3279  elif test -z "$MPF_PTR" && test "$enable_gmp" != yes; then
3280    echo "configure: warning: Need gmp.h containing tyedef of 'mpf_ptr'" 1>&2
3281    echo "configure: warning: Use dummy as default MP ApReal format" 1>&2
3282    cat >> confdefs.h <<\EOF
3283#define MP_DEFAULT_APREALFORMAT MP_DUMMY
3284EOF
3285 
3286  else
3287    cat >> confdefs.h <<\EOF
3288#define MP_DEFAULT_APREAL_FORMAT MP_GMP
3289EOF
3290
3291    cat >> confdefs.h <<\EOF
3292#define MP_HAVE_GMP_APREAL 1
3293EOF
3294
3295    if test "$ac_cv_header_gmp_h" != yes ; then
3296      echo "configure: warning: Need gmp.h to use gmp as default ApReal format" 1>&2
3297      echo "configure: warning: Install gmp.h before making MP" 1>&2
3298    fi
3299  fi
3300fi
3301
3302if test "$with_gmp" != no; then
3303  if test "$ac_cv_header_gmp_h" != yes && test "$enable_gmp" != yes; then
3304    echo "configure: warning: Can not build MP with gmp ApInt routines: Need gmp.h" 1>&2
3305  else
3306    cat >> confdefs.h <<\EOF
3307#define MP_HAVE_GMP 1
3308EOF
3309
3310    if test "$ac_cv_header_gmp_h" != yes; then
3311      echo "configure: warning: Need gmp.h to build MP with gmp ApInt routines" 1>&2
3312      echo "configure: warning: Install gmp.h before making MP" 1>&2
3313    fi
3314  fi
3315fi
3316
3317if test "$with_saclib" = yes; then
3318  if test "$ac_cv_header_saclib_h" != yes; then
3319    echo "configure: warning: Can not build MP with saclib ApInt routines: Need saclib.h" 1>&2
3320  else
3321    cat >> confdefs.h <<\EOF
3322#define MP_HAVE_SAC 1
3323EOF
3324
3325  fi
3326fi
3327
3328if test "$with_pari" = yes; then
3329  if test "$ac_cv_header_genpari_h" != yes; then
3330    echo "configure: warning: Can not build MP with pari ApInt routines: Need genpari.h" 1>&2
3331  else
3332    cat >> confdefs.h <<\EOF
3333#define MP_HAVE_PARI 1
3334EOF
3335
3336    cat >> confdefs.h <<\EOF
3337#define LONG_IS_32BIT 1
3338EOF
3339
3340    echo $ac_n "checking for ulong""... $ac_c" 1>&6
3341echo "configure:3342: checking for ulong" >&5
3342if eval "test \"`echo '$''{'ac_cv_type_ulong'+set}'`\" = set"; then
3343  echo $ac_n "(cached) $ac_c" 1>&6
3344else
3345  cat > conftest.$ac_ext <<EOF
3346#line 3347 "configure"
3347#include "confdefs.h"
3348#include <sys/types.h>
3349#if STDC_HEADERS
3350#include <stdlib.h>
3351#include <stddef.h>
3352#endif
3353EOF
3354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355  egrep "ulong[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3356  rm -rf conftest*
3357  ac_cv_type_ulong=yes
3358else
3359  rm -rf conftest*
3360  ac_cv_type_ulong=no
3361fi
3362rm -f conftest*
3363
3364fi
3365echo "$ac_t""$ac_cv_type_ulong" 1>&6
3366if test $ac_cv_type_ulong = no; then
3367  cat >> confdefs.h <<\EOF
3368#define ulong no
3369EOF
3370
3371fi
3372
3373    if test "$ac_cv_type_ulong" = no; then
3374        cat >> confdefs.h <<\EOF
3375#define ULONG_NOT_DEFINED 1
3376EOF
3377
3378    fi
3379  fi
3380fi
3381
3382   
3383
3384if test "$with_tb" = yes; then
3385  ac_safe=`echo "TB.h" | sed 'y%./+-%__p_%'`
3386echo $ac_n "checking for TB.h""... $ac_c" 1>&6
3387echo "configure:3388: checking for TB.h" >&5
3388if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3389  echo $ac_n "(cached) $ac_c" 1>&6
3390else
3391  cat > conftest.$ac_ext <<EOF
3392#line 3393 "configure"
3393#include "confdefs.h"
3394#include <TB.h>
3395EOF
3396ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3397{ (eval echo configure:3398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3398ac_err=`grep -v '^ *+' conftest.out`
3399if test -z "$ac_err"; then
3400  rm -rf conftest*
3401  eval "ac_cv_header_$ac_safe=yes"
3402else
3403  echo "$ac_err" >&5
3404  echo "configure: failed program was:" >&5
3405  cat conftest.$ac_ext >&5
3406  rm -rf conftest*
3407  eval "ac_cv_header_$ac_safe=no"
3408fi
3409rm -f conftest*
3410fi
3411if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3412  echo "$ac_t""yes" 1>&6
3413  :
3414else
3415  echo "$ac_t""no" 1>&6
3416fi
3417
3418  if test "$ac_cv_header_TB_h" != yes; then
3419    echo "configure: warning: Can not build with Toolbus: Need TB.h" 1>&2
3420  else
3421    cat >> confdefs.h <<\EOF
3422#define MP_HAVE_TB 1
3423EOF
3424
3425  fi
3426fi
3427
3428if test "$with_pvm" = yes; then
3429 ac_safe=`echo "pvm3.h" | sed 'y%./+-%__p_%'`
3430echo $ac_n "checking for pvm3.h""... $ac_c" 1>&6
3431echo "configure:3432: checking for pvm3.h" >&5
3432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3433  echo $ac_n "(cached) $ac_c" 1>&6
3434else
3435  cat > conftest.$ac_ext <<EOF
3436#line 3437 "configure"
3437#include "confdefs.h"
3438#include <pvm3.h>
3439EOF
3440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3441{ (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3442ac_err=`grep -v '^ *+' conftest.out`
3443if test -z "$ac_err"; then
3444  rm -rf conftest*
3445  eval "ac_cv_header_$ac_safe=yes"
3446else
3447  echo "$ac_err" >&5
3448  echo "configure: failed program was:" >&5
3449  cat conftest.$ac_ext >&5
3450  rm -rf conftest*
3451  eval "ac_cv_header_$ac_safe=no"
3452fi
3453rm -f conftest*
3454fi
3455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3456  echo "$ac_t""yes" 1>&6
3457  :
3458else
3459  echo "$ac_t""no" 1>&6
3460fi
3461
3462 if test "$ac_cv_header_pvm3_h" != yes; then
3463    echo "configure: warning: Can not build with Pvm: Need pvm3.h" 1>&2
3464  else
3465    cat >> confdefs.h <<\EOF
3466#define MP_HAVE_PVM 1
3467EOF
3468
3469  fi
3470fi
3471
3472if test "${with_extra_cflags+set}" = set; then
3473  CFLAGS="$CFLAGS ${with_extra_cflags}"
3474fi
3475
3476if test "${with_rsh+set}" = set; then
3477  # Extract the first word of "${with_rsh}", so it can be a program name with args.
3478set dummy ${with_rsh}; ac_word=$2
3479echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3480echo "configure:3481: checking for $ac_word" >&5
3481if eval "test \"`echo '$''{'ac_cv_prog_with_rsh'+set}'`\" = set"; then
3482  echo $ac_n "(cached) $ac_c" 1>&6
3483else
3484  if test -n "$with_rsh"; then
3485  ac_cv_prog_with_rsh="$with_rsh" # Let the user override the test.
3486else
3487  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3488  for ac_dir in $PATH; do
3489    test -z "$ac_dir" && ac_dir=.
3490    if test -f $ac_dir/$ac_word; then
3491      ac_cv_prog_with_rsh="${with_rsh}"
3492      break
3493    fi
3494  done
3495  IFS="$ac_save_ifs"
3496fi
3497fi
3498with_rsh="$ac_cv_prog_with_rsh"
3499if test -n "$with_rsh"; then
3500  echo "$ac_t""$with_rsh" 1>&6
3501else
3502  echo "$ac_t""no" 1>&6
3503fi
3504
3505  if test "$ac_cv_prog_with_rsh" = $with_rsh; then
3506    ac_rsh_programs=${with_rsh}
3507  else
3508   ac_rsh_programs=
3509  fi
3510fi
3511
3512
3513
3514# Extract the first word of "rsh", so it can be a program name with args.
3515set dummy rsh; ac_word=$2
3516echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3517echo "configure:3518: checking for $ac_word" >&5
3518if eval "test \"`echo '$''{'ac_cv_prog_mp_rsh'+set}'`\" = set"; then
3519  echo $ac_n "(cached) $ac_c" 1>&6
3520else
3521  if test -n "$mp_rsh"; then
3522  ac_cv_prog_mp_rsh="$mp_rsh" # Let the user override the test.
3523else
3524  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3525  for ac_dir in $PATH; do
3526    test -z "$ac_dir" && ac_dir=.
3527    if test -f $ac_dir/$ac_word; then
3528      ac_cv_prog_mp_rsh="rsh"
3529      break
3530    fi
3531  done
3532  IFS="$ac_save_ifs"
3533  test -z "$ac_cv_prog_mp_rsh" && ac_cv_prog_mp_rsh="no"
3534fi
3535fi
3536mp_rsh="$ac_cv_prog_mp_rsh"
3537if test -n "$mp_rsh"; then
3538  echo "$ac_t""$mp_rsh" 1>&6
3539else
3540  echo "$ac_t""no" 1>&6
3541fi
3542
3543if test "$ac_cv_prog_mp_rsh" = rsh; then
3544   ac_rsh_programs="$ac_rsh_programs rsh"
3545fi
3546
3547# Extract the first word of "remsh", so it can be a program name with args.
3548set dummy remsh; ac_word=$2
3549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3550echo "configure:3551: checking for $ac_word" >&5
3551if eval "test \"`echo '$''{'ac_cv_prog_mp_remsh'+set}'`\" = set"; then
3552  echo $ac_n "(cached) $ac_c" 1>&6
3553else
3554  if test -n "$mp_remsh"; then
3555  ac_cv_prog_mp_remsh="$mp_remsh" # Let the user override the test.
3556else
3557  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3558  for ac_dir in $PATH; do
3559    test -z "$ac_dir" && ac_dir=.
3560    if test -f $ac_dir/$ac_word; then
3561      ac_cv_prog_mp_remsh="remsh"
3562      break
3563    fi
3564  done
3565  IFS="$ac_save_ifs"
3566  test -z "$ac_cv_prog_mp_remsh" && ac_cv_prog_mp_remsh="no"
3567fi
3568fi
3569mp_remsh="$ac_cv_prog_mp_remsh"
3570if test -n "$mp_remsh"; then
3571  echo "$ac_t""$mp_remsh" 1>&6
3572else
3573  echo "$ac_t""no" 1>&6
3574fi
3575
3576if test "$ac_cv_prog_mp_remsh" = remsh; then
3577   ac_rsh_programs="$ac_rsh_programs remsh"
3578fi
3579
3580# Extract the first word of "ssh", so it can be a program name with args.
3581set dummy ssh; ac_word=$2
3582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3583echo "configure:3584: checking for $ac_word" >&5
3584if eval "test \"`echo '$''{'ac_cv_prog_mp_ssh'+set}'`\" = set"; then
3585  echo $ac_n "(cached) $ac_c" 1>&6
3586else
3587  if test -n "$mp_ssh"; then
3588  ac_cv_prog_mp_ssh="$mp_ssh" # Let the user override the test.
3589else
3590  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3591  for ac_dir in $PATH; do
3592    test -z "$ac_dir" && ac_dir=.
3593    if test -f $ac_dir/$ac_word; then
3594      ac_cv_prog_mp_ssh="ssh"
3595      break
3596    fi
3597  done
3598  IFS="$ac_save_ifs"
3599  test -z "$ac_cv_prog_mp_ssh" && ac_cv_prog_mp_ssh="no"
3600fi
3601fi
3602mp_ssh="$ac_cv_prog_mp_ssh"
3603if test -n "$mp_ssh"; then
3604  echo "$ac_t""$mp_ssh" 1>&6
3605else
3606  echo "$ac_t""no" 1>&6
3607fi
3608
3609if test "$ac_cv_prog_mp_ssh" = ssh; then
3610   ac_rsh_programs="$ac_rsh_programs ssh"
3611fi
3612
3613echo $ac_n "checking which remote shell command to use""... $ac_c" 1>&6
3614echo "configure:3615: checking which remote shell command to use" >&5
3615for mp_rsh in $ac_rsh_programs; do
3616    if $mp_rsh `hostname` -n uname \>\& /dev/null; then
3617      mp_rsh_found=$mp_rsh
3618      break;
3619    else
3620      mp_rsh_found=none
3621    fi
3622done
3623echo "$ac_t""$mp_rsh_found" 1>&6
3624if test "${mp_rsh_found}" = none; then
3625   echo "configure: warning: "No working remote shell command found"" 1>&2
3626else
3627  cat >> confdefs.h <<EOF
3628#define MP_RSH_COMMAND "$mp_rsh_found"
3629EOF
3630
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
3641
3642# Check whether --with-malloc or --without-malloc was given.
3643if test "${with_malloc+set}" = set; then
3644  withval="$with_malloc"
3645  :
3646fi
3647
3648
3649if test "${with_malloc+set}" = set; then
3650  ac_safe=`echo "${with_malloc}" | sed 'y%./+-%__p_%'`
3651echo $ac_n "checking for ${with_malloc}""... $ac_c" 1>&6
3652echo "configure:3653: checking for ${with_malloc}" >&5
3653if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3654  echo $ac_n "(cached) $ac_c" 1>&6
3655else
3656  cat > conftest.$ac_ext <<EOF
3657#line 3658 "configure"
3658#include "confdefs.h"
3659#include <${with_malloc}>
3660EOF
3661ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3662{ (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3663ac_err=`grep -v '^ *+' conftest.out`
3664if test -z "$ac_err"; then
3665  rm -rf conftest*
3666  eval "ac_cv_header_$ac_safe=yes"
3667else
3668  echo "$ac_err" >&5
3669  echo "configure: failed program was:" >&5
3670  cat conftest.$ac_ext >&5
3671  rm -rf conftest*
3672  eval "ac_cv_header_$ac_safe=no"
3673fi
3674rm -f conftest*
3675fi
3676if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3677  echo "$ac_t""yes" 1>&6
3678  :
3679else
3680  echo "$ac_t""no" 1>&6
3681with_malloc=
3682fi
3683
3684fi
3685echo $ac_n "checking where malloc rotuines come from""... $ac_c" 1>&6
3686echo "configure:3687: checking where malloc rotuines come from" >&5
3687if test "${with_malloc+set}" = set; then
3688  echo "$ac_t""${with_malloc}" 1>&6
3689  cat >> confdefs.h <<\EOF
3690#define WITH_EXTERNAL_MALLOC 1
3691EOF
3692
3693  cat >> confdefs.h <<EOF
3694#define EXTERNAL_MALLOC_H "${with_malloc}"
3695EOF
3696
3697else
3698  echo "$ac_t""stdlib.h" 1>&6
3699fi
3700
3701
3702echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3703echo "configure:3704: checking whether byte ordering is bigendian" >&5
3704if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3705  echo $ac_n "(cached) $ac_c" 1>&6
3706else
3707  ac_cv_c_bigendian=unknown
3708# See if sys/param.h defines the BYTE_ORDER macro.
3709cat > conftest.$ac_ext <<EOF
3710#line 3711 "configure"
3711#include "confdefs.h"
3712#include <sys/types.h>
3713#include <sys/param.h>
3714int main() {
3715
3716#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3717 bogus endian macros
3718#endif
3719; return 0; }
3720EOF
3721if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3722  rm -rf conftest*
3723  # It does; now see whether it defined to BIG_ENDIAN or not.
3724cat > conftest.$ac_ext <<EOF
3725#line 3726 "configure"
3726#include "confdefs.h"
3727#include <sys/types.h>
3728#include <sys/param.h>
3729int main() {
3730
3731#if BYTE_ORDER != BIG_ENDIAN
3732 not big endian
3733#endif
3734; return 0; }
3735EOF
3736if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3737  rm -rf conftest*
3738  ac_cv_c_bigendian=yes
3739else
3740  echo "configure: failed program was:" >&5
3741  cat conftest.$ac_ext >&5
3742  rm -rf conftest*
3743  ac_cv_c_bigendian=no
3744fi
3745rm -f conftest*
3746else
3747  echo "configure: failed program was:" >&5
3748  cat conftest.$ac_ext >&5
3749fi
3750rm -f conftest*
3751if test $ac_cv_c_bigendian = unknown; then
3752if test "$cross_compiling" = yes; then
3753    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3754else
3755  cat > conftest.$ac_ext <<EOF
3756#line 3757 "configure"
3757#include "confdefs.h"
3758main () {
3759  /* Are we little or big endian?  From Harbison&Steele.  */
3760  union
3761  {
3762    long l;
3763    char c[sizeof (long)];
3764  } u;
3765  u.l = 1;
3766  exit (u.c[sizeof (long) - 1] == 1);
3767}
3768EOF
3769if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3770then
3771  ac_cv_c_bigendian=no
3772else
3773  echo "configure: failed program was:" >&5
3774  cat conftest.$ac_ext >&5
3775  rm -fr conftest*
3776  ac_cv_c_bigendian=yes
3777fi
3778rm -fr conftest*
3779fi
3780
3781fi
3782fi
3783
3784echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3785if test $ac_cv_c_bigendian = yes; then
3786  cat >> confdefs.h <<\EOF
3787#define WORDS_BIGENDIAN 1
3788EOF
3789
3790fi
3791
3792echo $ac_n "checking for working const""... $ac_c" 1>&6
3793echo "configure:3794: checking for working const" >&5
3794if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3795  echo $ac_n "(cached) $ac_c" 1>&6
3796else
3797  cat > conftest.$ac_ext <<EOF
3798#line 3799 "configure"
3799#include "confdefs.h"
3800
3801int main() {
3802
3803/* Ultrix mips cc rejects this.  */
3804typedef int charset[2]; const charset x;
3805/* SunOS 4.1.1 cc rejects this.  */
3806char const *const *ccp;
3807char **p;
3808/* NEC SVR4.0.2 mips cc rejects this.  */
3809struct point {int x, y;};
3810static struct point const zero = {0,0};
3811/* AIX XL C 1.02.0.0 rejects this.
3812   It does not let you subtract one const X* pointer from another in an arm
3813   of an if-expression whose if-part is not a constant expression */
3814const char *g = "string";
3815ccp = &g + (g ? g-g : 0);
3816/* HPUX 7.0 cc rejects these. */
3817++ccp;
3818p = (char**) ccp;
3819ccp = (char const *const *) p;
3820{ /* SCO 3.2v4 cc rejects this.  */
3821  char *t;
3822  char const *s = 0 ? (char *) 0 : (char const *) 0;
3823
3824  *t++ = 0;
3825}
3826{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3827  int x[] = {25, 17};
3828  const int *foo = &x[0];
3829  ++foo;
3830}
3831{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3832  typedef const int *iptr;
3833  iptr p = 0;
3834  ++p;
3835}
3836{ /* AIX XL C 1.02.0.0 rejects this saying
3837     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3838  struct s { int j; const int *ap[3]; };
3839  struct s *b; b->j = 5;
3840}
3841{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3842  const int foo = 10;
3843}
3844
3845; return 0; }
3846EOF
3847if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848  rm -rf conftest*
3849  ac_cv_c_const=yes
3850else
3851  echo "configure: failed program was:" >&5
3852  cat conftest.$ac_ext >&5
3853  rm -rf conftest*
3854  ac_cv_c_const=no
3855fi
3856rm -f conftest*
3857fi
3858
3859echo "$ac_t""$ac_cv_c_const" 1>&6
3860if test $ac_cv_c_const = no; then
3861  cat >> confdefs.h <<\EOF
3862#define const
3863EOF
3864
3865fi
3866
3867echo $ac_n "checking for size_t""... $ac_c" 1>&6
3868echo "configure:3869: checking for size_t" >&5
3869if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3870  echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872  cat > conftest.$ac_ext <<EOF
3873#line 3874 "configure"
3874#include "confdefs.h"
3875#include <sys/types.h>
3876#if STDC_HEADERS
3877#include <stdlib.h>
3878#include <stddef.h>
3879#endif
3880EOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3883  rm -rf conftest*
3884  ac_cv_type_size_t=yes
3885else
3886  rm -rf conftest*
3887  ac_cv_type_size_t=no
3888fi
3889rm -f conftest*
3890
3891fi
3892echo "$ac_t""$ac_cv_type_size_t" 1>&6
3893if test $ac_cv_type_size_t = no; then
3894  cat >> confdefs.h <<\EOF
3895#define size_t unsigned
3896EOF
3897
3898fi
3899
3900echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3901echo "configure:3902: checking whether time.h and sys/time.h may both be included" >&5
3902if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3903  echo $ac_n "(cached) $ac_c" 1>&6
3904else
3905  cat > conftest.$ac_ext <<EOF
3906#line 3907 "configure"
3907#include "confdefs.h"
3908#include <sys/types.h>
3909#include <sys/time.h>
3910#include <time.h>
3911int main() {
3912struct tm *tp;
3913; return 0; }
3914EOF
3915if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3916  rm -rf conftest*
3917  ac_cv_header_time=yes
3918else
3919  echo "configure: failed program was:" >&5
3920  cat conftest.$ac_ext >&5
3921  rm -rf conftest*
3922  ac_cv_header_time=no
3923fi
3924rm -f conftest*
3925fi
3926
3927echo "$ac_t""$ac_cv_header_time" 1>&6
3928if test $ac_cv_header_time = yes; then
3929  cat >> confdefs.h <<\EOF
3930#define TIME_WITH_SYS_TIME 1
3931EOF
3932
3933fi
3934
3935
3936echo $ac_n "checking size of long""... $ac_c" 1>&6
3937echo "configure:3938: checking size of long" >&5
3938if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3939  echo $ac_n "(cached) $ac_c" 1>&6
3940else
3941  if test "$cross_compiling" = yes; then
3942  ac_cv_sizeof_long=4
3943else
3944  cat > conftest.$ac_ext <<EOF
3945#line 3946 "configure"
3946#include "confdefs.h"
3947#include <stdio.h>
3948main()
3949{
3950  FILE *f=fopen("conftestval", "w");
3951  if (!f) exit(1);
3952  fprintf(f, "%d\n", sizeof(long));
3953  exit(0);
3954}
3955EOF
3956if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3957then
3958  ac_cv_sizeof_long=`cat conftestval`
3959else
3960  echo "configure: failed program was:" >&5
3961  cat conftest.$ac_ext >&5
3962  rm -fr conftest*
3963  ac_cv_sizeof_long=0
3964fi
3965rm -fr conftest*
3966fi
3967
3968fi
3969echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3970cat >> confdefs.h <<EOF
3971#define SIZEOF_LONG $ac_cv_sizeof_long
3972EOF
3973
3974
3975if test "$ac_cv_sizeof_long" != 4; then
3976  { echo "configure: error: Need sizeof long to equal 4" 1>&2; exit 1; }
3977fi
3978
3979
3980CLEAN="rm -f *~ a.out core *.o .log"
3981
3982
3983if test "${GCC}" = yes && test "$ac_cv_cflags_not_set" = yes; then
3984  if test "$with_debug" = yes; then
3985    CFLAGS="-g -Wall -Wno-unused ${with_extra_cflags}"
3986  else
3987    CFLAGS="-O3 -w -fomit-frame-pointer ${with_extra_cflags}"
3988  fi
3989fi
3990
3991if test "$prefix" = NONE; then
3992  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
3993fi
3994   
3995subdirs="$CONFIG_SUBDIRS"
3996
3997
3998trap '' 1 2 15
3999cat > confcache <<\EOF
4000# This file is a shell script that caches the results of configure
4001# tests run on this system so they can be shared between configure
4002# scripts and configure runs.  It is not useful on other systems.
4003# If it contains results you don't want to keep, you may remove or edit it.
4004#
4005# By default, configure uses ./config.cache as the cache file,
4006# creating it if it does not exist already.  You can give configure
4007# the --cache-file=FILE option to use a different cache file; that is
4008# what configure does when it calls configure scripts in
4009# subdirectories, so they share the cache.
4010# Giving --cache-file=/dev/null disables caching, for debugging configure.
4011# config.status only pays attention to the cache file if you give it the
4012# --recheck option to rerun configure.
4013#
4014EOF
4015# The following way of writing the cache mishandles newlines in values,
4016# but we know of no workaround that is simple, portable, and efficient.
4017# So, don't put newlines in cache variables' values.
4018# Ultrix sh set writes to stderr and can't be redirected directly,
4019# and sets the high bit in the cache file unless we assign to the vars.
4020(set) 2>&1 |
4021  case `(ac_space=' '; set) 2>&1` in
4022  *ac_space=\ *)
4023    # `set' does not quote correctly, so add quotes (double-quote substitution
4024    # turns \\\\ into \\, and sed turns \\ into \).
4025    sed -n \
4026      -e "s/'/'\\\\''/g" \
4027      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4028    ;;
4029  *)
4030    # `set' quotes correctly as required by POSIX, so do not add quotes.
4031    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4032    ;;
4033  esac >> confcache
4034if cmp -s $cache_file confcache; then
4035  :
4036else
4037  if test -w $cache_file; then
4038    echo "updating cache $cache_file"
4039    cat confcache > $cache_file
4040  else
4041    echo "not updating unwritable cache $cache_file"
4042  fi
4043fi
4044rm -f confcache
4045
4046trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4047
4048test "x$prefix" = xNONE && prefix=$ac_default_prefix
4049# Let make expand exec_prefix.
4050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4051
4052# Any assignment to VPATH causes Sun make to only execute
4053# the first set of double-colon rules, so remove it if not needed.
4054# If there is a colon in the path, we need to keep it.
4055if test "x$srcdir" = x.; then
4056  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4057fi
4058
4059trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4060
4061DEFS=-DHAVE_CONFIG_H
4062
4063# Without the "./", some shells look in PATH for config.status.
4064: ${CONFIG_STATUS=./config.status}
4065
4066echo creating $CONFIG_STATUS
4067rm -f $CONFIG_STATUS
4068cat > $CONFIG_STATUS <<EOF
4069#! /bin/sh
4070# Generated automatically by configure.
4071# Run this file to recreate the current configuration.
4072# This directory was configured as follows,
4073# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4074#
4075# $0 $ac_configure_args
4076#
4077# Compiler output produced by configure, useful for debugging
4078# configure, is in ./config.log if it exists.
4079
4080ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4081for ac_option
4082do
4083  case "\$ac_option" in
4084  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4085    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4086    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4087  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4088    echo "$CONFIG_STATUS generated by autoconf version 2.12"
4089    exit 0 ;;
4090  -help | --help | --hel | --he | --h)
4091    echo "\$ac_cs_usage"; exit 0 ;;
4092  *) echo "\$ac_cs_usage"; exit 1 ;;
4093  esac
4094done
4095
4096ac_given_srcdir=$srcdir
4097
4098trap 'rm -fr `echo "Makefile MP/Makefile MPT/Makefile mpviewer/Makefile \
4099        mp-pvm3/Makefile examples/Makefile MP/MP_Config.h:MP/h/MP_Config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4100EOF
4101cat >> $CONFIG_STATUS <<EOF
4102
4103# Protect against being on the right side of a sed subst in config.status.
4104sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4105 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4106$ac_vpsub
4107$extrasub
4108s%@CFLAGS@%$CFLAGS%g
4109s%@CPPFLAGS@%$CPPFLAGS%g
4110s%@CXXFLAGS@%$CXXFLAGS%g
4111s%@DEFS@%$DEFS%g
4112s%@LDFLAGS@%$LDFLAGS%g
4113s%@LIBS@%$LIBS%g
4114s%@exec_prefix@%$exec_prefix%g
4115s%@prefix@%$prefix%g
4116s%@program_transform_name@%$program_transform_name%g
4117s%@bindir@%$bindir%g
4118s%@sbindir@%$sbindir%g
4119s%@libexecdir@%$libexecdir%g
4120s%@datadir@%$datadir%g
4121s%@sysconfdir@%$sysconfdir%g
4122s%@sharedstatedir@%$sharedstatedir%g
4123s%@localstatedir@%$localstatedir%g
4124s%@libdir@%$libdir%g
4125s%@includedir@%$includedir%g
4126s%@oldincludedir@%$oldincludedir%g
4127s%@infodir@%$infodir%g
4128s%@mandir@%$mandir%g
4129s%@PRODUCT@%$PRODUCT%g
4130s%@VERSION@%$VERSION%g
4131s%@host@%$host%g
4132s%@host_alias@%$host_alias%g
4133s%@host_cpu@%$host_cpu%g
4134s%@host_vendor@%$host_vendor%g
4135s%@host_os@%$host_os%g
4136s%@target@%$target%g
4137s%@target_alias@%$target_alias%g
4138s%@target_cpu@%$target_cpu%g
4139s%@target_vendor@%$target_vendor%g
4140s%@target_os@%$target_os%g
4141s%@build@%$build%g
4142s%@build_alias@%$build_alias%g
4143s%@build_cpu@%$build_cpu%g
4144s%@build_vendor@%$build_vendor%g
4145s%@build_os@%$build_os%g
4146s%@RANLIB@%$RANLIB%g
4147s%@AR@%$AR%g
4148s%@CC@%$CC%g
4149s%@CPP@%$CPP%g
4150s%@CXX@%$CXX%g
4151s%@SET_MAKE@%$SET_MAKE%g
4152s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
4153s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
4154s%@NEED_LIBS@%$NEED_LIBS%g
4155s%@with_rsh@%$with_rsh%g
4156s%@mp_rsh@%$mp_rsh%g
4157s%@mp_remsh@%$mp_remsh%g
4158s%@mp_ssh@%$mp_ssh%g
4159s%@CLEAN@%$CLEAN%g
4160s%@subdirs@%$subdirs%g
4161
4162CEOF
4163EOF
4164
4165cat >> $CONFIG_STATUS <<\EOF
4166
4167# Split the substitutions into bite-sized pieces for seds with
4168# small command number limits, like on Digital OSF/1 and HP-UX.
4169ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4170ac_file=1 # Number of current file.
4171ac_beg=1 # First line for current file.
4172ac_end=$ac_max_sed_cmds # Line after last line for current file.
4173ac_more_lines=:
4174ac_sed_cmds=""
4175while $ac_more_lines; do
4176  if test $ac_beg -gt 1; then
4177    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4178  else
4179    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4180  fi
4181  if test ! -s conftest.s$ac_file; then
4182    ac_more_lines=false
4183    rm -f conftest.s$ac_file
4184  else
4185    if test -z "$ac_sed_cmds"; then
4186      ac_sed_cmds="sed -f conftest.s$ac_file"
4187    else
4188      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4189    fi
4190    ac_file=`expr $ac_file + 1`
4191    ac_beg=$ac_end
4192    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4193  fi
4194done
4195if test -z "$ac_sed_cmds"; then
4196  ac_sed_cmds=cat
4197fi
4198EOF
4199
4200cat >> $CONFIG_STATUS <<EOF
4201
4202CONFIG_FILES=\${CONFIG_FILES-"Makefile MP/Makefile MPT/Makefile mpviewer/Makefile \
4203        mp-pvm3/Makefile examples/Makefile"}
4204EOF
4205cat >> $CONFIG_STATUS <<\EOF
4206for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4207  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4208  case "$ac_file" in
4209  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4210       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4211  *) ac_file_in="${ac_file}.in" ;;
4212  esac
4213
4214  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4215
4216  # Remove last slash and all that follows it.  Not all systems have dirname.
4217  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4218  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4219    # The file is in a subdirectory.
4220    test ! -d "$ac_dir" && mkdir "$ac_dir"
4221    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4222    # A "../" for each directory in $ac_dir_suffix.
4223    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4224  else
4225    ac_dir_suffix= ac_dots=
4226  fi
4227
4228  case "$ac_given_srcdir" in
4229  .)  srcdir=.
4230      if test -z "$ac_dots"; then top_srcdir=.
4231      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4232  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4233  *) # Relative path.
4234    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4235    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4236  esac
4237
4238
4239  echo creating "$ac_file"
4240  rm -f "$ac_file"
4241  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4242  case "$ac_file" in
4243  *Makefile*) ac_comsub="1i\\
4244# $configure_input" ;;
4245  *) ac_comsub= ;;
4246  esac
4247
4248  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4249  sed -e "$ac_comsub
4250s%@configure_input@%$configure_input%g
4251s%@srcdir@%$srcdir%g
4252s%@top_srcdir@%$top_srcdir%g
4253" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4254fi; done
4255rm -f conftest.s*
4256
4257# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4258# NAME is the cpp macro being defined and VALUE is the value it is being given.
4259#
4260# ac_d sets the value in "#define NAME VALUE" lines.
4261ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4262ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4263ac_dC='\3'
4264ac_dD='%g'
4265# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4266ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4267ac_uB='\([      ]\)%\1#\2define\3'
4268ac_uC=' '
4269ac_uD='\4%g'
4270# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4271ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4272ac_eB='$%\1#\2define\3'
4273ac_eC=' '
4274ac_eD='%g'
4275
4276if test "${CONFIG_HEADERS+set}" != set; then
4277EOF
4278cat >> $CONFIG_STATUS <<EOF
4279  CONFIG_HEADERS="MP/MP_Config.h:MP/h/MP_Config.h.in"
4280EOF
4281cat >> $CONFIG_STATUS <<\EOF
4282fi
4283for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4284  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4285  case "$ac_file" in
4286  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4287       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4288  *) ac_file_in="${ac_file}.in" ;;
4289  esac
4290
4291  echo creating $ac_file
4292
4293  rm -f conftest.frag conftest.in conftest.out
4294  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4295  cat $ac_file_inputs > conftest.in
4296
4297EOF
4298
4299# Transform confdefs.h into a sed script conftest.vals that substitutes
4300# the proper values into config.h.in to produce config.h.  And first:
4301# Protect against being on the right side of a sed subst in config.status.
4302# Protect against being in an unquoted here document in config.status.
4303rm -f conftest.vals
4304cat > conftest.hdr <<\EOF
4305s/[\\&%]/\\&/g
4306s%[\\$`]%\\&%g
4307s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4308s%ac_d%ac_u%gp
4309s%ac_u%ac_e%gp
4310EOF
4311sed -n -f conftest.hdr confdefs.h > conftest.vals
4312rm -f conftest.hdr
4313
4314# This sed command replaces #undef with comments.  This is necessary, for
4315# example, in the case of _POSIX_SOURCE, which is predefined and required
4316# on some systems where configure will not decide to define it.
4317cat >> conftest.vals <<\EOF
4318s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4319EOF
4320
4321# Break up conftest.vals because some shells have a limit on
4322# the size of here documents, and old seds have small limits too.
4323
4324rm -f conftest.tail
4325while :
4326do
4327  ac_lines=`grep -c . conftest.vals`
4328  # grep -c gives empty output for an empty file on some AIX systems.
4329  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4330  # Write a limited-size here document to conftest.frag.
4331  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4332  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4333  echo 'CEOF
4334  sed -f conftest.frag conftest.in > conftest.out
4335  rm -f conftest.in
4336  mv conftest.out conftest.in
4337' >> $CONFIG_STATUS
4338  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4339  rm -f conftest.vals
4340  mv conftest.tail conftest.vals
4341done
4342rm -f conftest.vals
4343
4344cat >> $CONFIG_STATUS <<\EOF
4345  rm -f conftest.frag conftest.h
4346  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4347  cat conftest.in >> conftest.h
4348  rm -f conftest.in
4349  if cmp -s $ac_file conftest.h 2>/dev/null; then
4350    echo "$ac_file is unchanged"
4351    rm -f conftest.h
4352  else
4353    # Remove last slash and all that follows it.  Not all systems have dirname.
4354      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4355      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4356      # The file is in a subdirectory.
4357      test ! -d "$ac_dir" && mkdir "$ac_dir"
4358    fi
4359    rm -f $ac_file
4360    mv conftest.h $ac_file
4361  fi
4362fi; done
4363
4364EOF
4365cat >> $CONFIG_STATUS <<EOF
4366
4367EOF
4368cat >> $CONFIG_STATUS <<\EOF
4369\
4370        if test "$CONFIG_HEADERS"; then echo timestamp > MP/stamp-h; fi
4371exit 0
4372EOF
4373chmod +x $CONFIG_STATUS
4374rm -fr confdefs* $ac_clean_files
4375test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4376
4377if test "$no_recursion" != yes; then
4378
4379  # Remove --cache-file and --srcdir arguments so they do not pile up.
4380  ac_sub_configure_args=
4381  ac_prev=
4382  for ac_arg in $ac_configure_args; do
4383    if test -n "$ac_prev"; then
4384      ac_prev=
4385      continue
4386    fi
4387    case "$ac_arg" in
4388    -cache-file | --cache-file | --cache-fil | --cache-fi \
4389    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4390      ac_prev=cache_file ;;
4391    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4392    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4393      ;;
4394    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4395      ac_prev=srcdir ;;
4396    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4397      ;;
4398    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4399    esac
4400  done
4401
4402  for ac_config_dir in $CONFIG_SUBDIRS; do
4403
4404    # Do not complain, so a configure script can configure whichever
4405    # parts of a large source tree are present.
4406    if test ! -d $srcdir/$ac_config_dir; then
4407      continue
4408    fi
4409
4410    echo configuring in $ac_config_dir
4411
4412    case "$srcdir" in
4413    .) ;;
4414    *)
4415      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4416      else
4417        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4418      fi
4419      ;;
4420    esac
4421
4422    ac_popdir=`pwd`
4423    cd $ac_config_dir
4424
4425      # A "../" for each directory in /$ac_config_dir.
4426      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4427
4428    case "$srcdir" in
4429    .) # No --srcdir option.  We are building in place.
4430      ac_sub_srcdir=$srcdir ;;
4431    /*) # Absolute path.
4432      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4433    *) # Relative path.
4434      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4435    esac
4436
4437    # Check for guested configure; otherwise get Cygnus style configure.
4438    if test -f $ac_sub_srcdir/configure; then
4439      ac_sub_configure=$ac_sub_srcdir/configure
4440    elif test -f $ac_sub_srcdir/configure.in; then
4441      ac_sub_configure=$ac_configure
4442    else
4443      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4444      ac_sub_configure=
4445    fi
4446
4447    # The recursion is here.
4448    if test -n "$ac_sub_configure"; then
4449
4450      # Make the cache file name correct relative to the subdirectory.
4451      case "$cache_file" in
4452      /*) ac_sub_cache_file=$cache_file ;;
4453      *) # Relative path.
4454        ac_sub_cache_file="$ac_dots$cache_file" ;;
4455      esac
4456
4457      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4458      # The eval makes quoting arguments work.
4459      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4460      then :
4461      else
4462        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4463      fi
4464    fi
4465
4466    cd $ac_popdir
4467  done
4468fi
4469
Note: See TracBrowser for help on using the repository browser.