source: git/MP/configure @ a79bef5

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