1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.53 for protomol 2.0.3.
4@%:@
5@%:@ Report bugs to <protomol@cse.nd.edu>.
6@%:@
7@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8@%:@ Free Software Foundation, Inc.
9@%:@ This configure script is free software; the Free Software Foundation
10@%:@ gives unlimited permission to copy, distribute and modify it.
11
12if expr a : '\(a\)' >/dev/null 2>&1; then
13  as_expr=expr
14else
15  as_expr=false
16fi
17
18
19## --------------------- ##
20## M4sh Initialization.  ##
21## --------------------- ##
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25  emulate sh
26  NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30
31# NLS nuisances.
32# Support unset when possible.
33if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40    { $as_unset LANG || test "${LANG+set}" != set; } ||
41      { LANG=C; export LANG; }
42(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44      { LC_ALL=C; export LC_ALL; }
45(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47      { LC_TIME=C; export LC_TIME; }
48(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50      { LC_CTYPE=C; export LC_CTYPE; }
51(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53      { LANGUAGE=C; export LANGUAGE; }
54(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56      { LC_COLLATE=C; export LC_COLLATE; }
57(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59      { LC_NUMERIC=C; export LC_NUMERIC; }
60(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62      { LC_MESSAGES=C; export LC_MESSAGES; }
63
64
65# Name of the executable.
66as_me=`(basename "$0") 2>/dev/null ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77# PATH needs CR, and LINENO needs CR and PATH.
78# Avoid depending upon Character Ranges.
79as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82as_cr_digits='0123456789'
83as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85# The user is always right.
86if test "${PATH_SEPARATOR+set}" != set; then
87  echo "#! /bin/sh" >conftest.sh
88  echo  "exit 0"   >>conftest.sh
89  chmod +x conftest.sh
90  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91    PATH_SEPARATOR=';'
92  else
93    PATH_SEPARATOR=:
94  fi
95  rm -f conftest.sh
96fi
97
98
99  as_lineno_1=$LINENO
100  as_lineno_2=$LINENO
101  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102  test "x$as_lineno_1" != "x$as_lineno_2" &&
103  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
104  # Find who we are.  Look in the path if we contain no path at all
105  # relative or not.
106  case $0 in
107    *[\\/]* ) as_myself=$0 ;;
108    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109for as_dir in $PATH
110do
111  IFS=$as_save_IFS
112  test -z "$as_dir" && as_dir=.
113  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114done
115
116       ;;
117  esac
118  # We did not find ourselves, most probably we were run as `sh COMMAND'
119  # in which case we are not to be found in the path.
120  if test "x$as_myself" = x; then
121    as_myself=$0
122  fi
123  if test ! -f "$as_myself"; then
124    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125   { (exit 1); exit 1; }; }
126  fi
127  case $CONFIG_SHELL in
128  '')
129    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131do
132  IFS=$as_save_IFS
133  test -z "$as_dir" && as_dir=.
134  for as_base in sh bash ksh sh5; do
135	 case $as_dir in
136	 /*)
137	   if ("$as_dir/$as_base" -c '
138  as_lineno_1=$LINENO
139  as_lineno_2=$LINENO
140  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141  test "x$as_lineno_1" != "x$as_lineno_2" &&
142  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
143	     CONFIG_SHELL=$as_dir/$as_base
144	     export CONFIG_SHELL
145	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146	   fi;;
147	 esac
148       done
149done
150;;
151  esac
152
153  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154  # uniformly replaced by the line number.  The first 'sed' inserts a
155  # line-number line before each line; the second 'sed' does the real
156  # work.  The second script uses 'N' to pair each line-number line
157  # with the numbered line, and appends trailing '-' during
158  # substitution so that $LINENO is not a special case at line end.
159  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161  sed '=' <$as_myself |
162    sed '
163      N
164      s,$,-,
165      : loop
166      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167      t loop
168      s,-$,,
169      s,^['$as_cr_digits']*\n,,
170    ' >$as_me.lineno &&
171  chmod +x $as_me.lineno ||
172    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173   { (exit 1); exit 1; }; }
174
175  # Don't try to exec as it changes $[0], causing all sort of problems
176  # (the dirname of $[0] is not the place where we might find the
177  # original and so on.  Autoconf is especially sensible to this).
178  . ./$as_me.lineno
179  # Exit status is that of the last command.
180  exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185  *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T='	' ;;
187  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192  as_expr=expr
193else
194  as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200  # We could just check for DJGPP; but this test a) works b) is more generic
201  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202  if test -f conf$$.exe; then
203    # Don't use ln at all; we don't have any links
204    as_ln_s='cp -p'
205  else
206    as_ln_s='ln -s'
207  fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209  as_ln_s=ln
210else
211  as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215as_executable_p="test -f"
216
217# Sed expression to map a string onto a valid CPP name.
218as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219
220# Sed expression to map a string onto a valid variable name.
221as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222
223
224# IFS
225# We need space, tab and new line, in precisely that order.
226as_nl='
227'
228IFS=" 	$as_nl"
229
230# CDPATH.
231$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232
233
234# Name of the host.
235# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236# so uname gets run too.
237ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
239exec 6>&1
240
241#
242# Initializations.
243#
244ac_default_prefix=/usr/local
245cross_compiling=no
246subdirs=
247MFLAGS=
248MAKEFLAGS=
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251# Maximum number of lines to put in a shell here document.
252# This variable seems obsolete.  It should probably be removed, and
253# only ac_max_sed_lines should be used.
254: ${ac_max_here_lines=38}
255
256# Identity of this package.
257PACKAGE_NAME='protomol'
258PACKAGE_TARNAME='protomol'
259PACKAGE_VERSION='2.0.3'
260PACKAGE_STRING='protomol 2.0.3'
261PACKAGE_BUGREPORT='protomol@cse.nd.edu'
262
263# Factoring default headers for most tests.
264ac_includes_default="\
265#include <stdio.h>
266#if HAVE_SYS_TYPES_H
267# include <sys/types.h>
268#endif
269#if HAVE_SYS_STAT_H
270# include <sys/stat.h>
271#endif
272#if STDC_HEADERS
273# include <stdlib.h>
274# include <stddef.h>
275#else
276# if HAVE_STDLIB_H
277#  include <stdlib.h>
278# endif
279#endif
280#if HAVE_STRING_H
281# if !STDC_HEADERS && HAVE_MEMORY_H
282#  include <memory.h>
283# endif
284# include <string.h>
285#endif
286#if HAVE_STRINGS_H
287# include <strings.h>
288#endif
289#if HAVE_INTTYPES_H
290# include <inttypes.h>
291#else
292# if HAVE_STDINT_H
293#  include <stdint.h>
294# endif
295#endif
296#if HAVE_UNISTD_H
297# include <unistd.h>
298#endif"
299
300
301# Initialize some variables set by options.
302ac_init_help=
303ac_init_version=false
304# The variables have the same names as the options, with
305# dashes changed to underlines.
306cache_file=/dev/null
307exec_prefix=NONE
308no_create=
309no_recursion=
310prefix=NONE
311program_prefix=NONE
312program_suffix=NONE
313program_transform_name=s,x,x,
314silent=
315site=
316srcdir=
317verbose=
318x_includes=NONE
319x_libraries=NONE
320
321# Installation directory options.
322# These are left unexpanded so users can "make install exec_prefix=/foo"
323# and all the variables that are supposed to be based on exec_prefix
324# by default will actually change.
325# Use braces instead of parens because sh, perl, etc. also accept them.
326bindir='${exec_prefix}/bin'
327sbindir='${exec_prefix}/sbin'
328libexecdir='${exec_prefix}/libexec'
329datadir='${prefix}/share'
330sysconfdir='${prefix}/etc'
331sharedstatedir='${prefix}/com'
332localstatedir='${prefix}/var'
333libdir='${exec_prefix}/lib'
334includedir='${prefix}/include'
335oldincludedir='/usr/include'
336infodir='${prefix}/info'
337mandir='${prefix}/man'
338
339ac_prev=
340for ac_option
341do
342  # If the previous option needs an argument, assign it.
343  if test -n "$ac_prev"; then
344    eval "$ac_prev=\$ac_option"
345    ac_prev=
346    continue
347  fi
348
349  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
351  # Accept the important Cygnus configure options, so we can diagnose typos.
352
353  case $ac_option in
354
355  -bindir | --bindir | --bindi | --bind | --bin | --bi)
356    ac_prev=bindir ;;
357  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358    bindir=$ac_optarg ;;
359
360  -build | --build | --buil | --bui | --bu)
361    ac_prev=build_alias ;;
362  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363    build_alias=$ac_optarg ;;
364
365  -cache-file | --cache-file | --cache-fil | --cache-fi \
366  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367    ac_prev=cache_file ;;
368  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370    cache_file=$ac_optarg ;;
371
372  --config-cache | -C)
373    cache_file=config.cache ;;
374
375  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376    ac_prev=datadir ;;
377  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378  | --da=*)
379    datadir=$ac_optarg ;;
380
381  -disable-* | --disable-*)
382    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383    # Reject names that are not valid shell variable names.
384    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386   { (exit 1); exit 1; }; }
387    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388    eval "enable_$ac_feature=no" ;;
389
390  -enable-* | --enable-*)
391    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392    # Reject names that are not valid shell variable names.
393    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395   { (exit 1); exit 1; }; }
396    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397    case $ac_option in
398      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399      *) ac_optarg=yes ;;
400    esac
401    eval "enable_$ac_feature='$ac_optarg'" ;;
402
403  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405  | --exec | --exe | --ex)
406    ac_prev=exec_prefix ;;
407  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409  | --exec=* | --exe=* | --ex=*)
410    exec_prefix=$ac_optarg ;;
411
412  -gas | --gas | --ga | --g)
413    # Obsolete; use --with-gas.
414    with_gas=yes ;;
415
416  -help | --help | --hel | --he | -h)
417    ac_init_help=long ;;
418  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419    ac_init_help=recursive ;;
420  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421    ac_init_help=short ;;
422
423  -host | --host | --hos | --ho)
424    ac_prev=host_alias ;;
425  -host=* | --host=* | --hos=* | --ho=*)
426    host_alias=$ac_optarg ;;
427
428  -includedir | --includedir | --includedi | --included | --include \
429  | --includ | --inclu | --incl | --inc)
430    ac_prev=includedir ;;
431  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432  | --includ=* | --inclu=* | --incl=* | --inc=*)
433    includedir=$ac_optarg ;;
434
435  -infodir | --infodir | --infodi | --infod | --info | --inf)
436    ac_prev=infodir ;;
437  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438    infodir=$ac_optarg ;;
439
440  -libdir | --libdir | --libdi | --libd)
441    ac_prev=libdir ;;
442  -libdir=* | --libdir=* | --libdi=* | --libd=*)
443    libdir=$ac_optarg ;;
444
445  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446  | --libexe | --libex | --libe)
447    ac_prev=libexecdir ;;
448  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449  | --libexe=* | --libex=* | --libe=*)
450    libexecdir=$ac_optarg ;;
451
452  -localstatedir | --localstatedir | --localstatedi | --localstated \
453  | --localstate | --localstat | --localsta | --localst \
454  | --locals | --local | --loca | --loc | --lo)
455    ac_prev=localstatedir ;;
456  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459    localstatedir=$ac_optarg ;;
460
461  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462    ac_prev=mandir ;;
463  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464    mandir=$ac_optarg ;;
465
466  -nfp | --nfp | --nf)
467    # Obsolete; use --without-fp.
468    with_fp=no ;;
469
470  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471  | --no-cr | --no-c | -n)
472    no_create=yes ;;
473
474  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476    no_recursion=yes ;;
477
478  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480  | --oldin | --oldi | --old | --ol | --o)
481    ac_prev=oldincludedir ;;
482  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485    oldincludedir=$ac_optarg ;;
486
487  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488    ac_prev=prefix ;;
489  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490    prefix=$ac_optarg ;;
491
492  -program-prefix | --program-prefix | --program-prefi | --program-pref \
493  | --program-pre | --program-pr | --program-p)
494    ac_prev=program_prefix ;;
495  -program-prefix=* | --program-prefix=* | --program-prefi=* \
496  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497    program_prefix=$ac_optarg ;;
498
499  -program-suffix | --program-suffix | --program-suffi | --program-suff \
500  | --program-suf | --program-su | --program-s)
501    ac_prev=program_suffix ;;
502  -program-suffix=* | --program-suffix=* | --program-suffi=* \
503  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504    program_suffix=$ac_optarg ;;
505
506  -program-transform-name | --program-transform-name \
507  | --program-transform-nam | --program-transform-na \
508  | --program-transform-n | --program-transform- \
509  | --program-transform | --program-transfor \
510  | --program-transfo | --program-transf \
511  | --program-trans | --program-tran \
512  | --progr-tra | --program-tr | --program-t)
513    ac_prev=program_transform_name ;;
514  -program-transform-name=* | --program-transform-name=* \
515  | --program-transform-nam=* | --program-transform-na=* \
516  | --program-transform-n=* | --program-transform-=* \
517  | --program-transform=* | --program-transfor=* \
518  | --program-transfo=* | --program-transf=* \
519  | --program-trans=* | --program-tran=* \
520  | --progr-tra=* | --program-tr=* | --program-t=*)
521    program_transform_name=$ac_optarg ;;
522
523  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524  | -silent | --silent | --silen | --sile | --sil)
525    silent=yes ;;
526
527  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528    ac_prev=sbindir ;;
529  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530  | --sbi=* | --sb=*)
531    sbindir=$ac_optarg ;;
532
533  -sharedstatedir | --sharedstatedir | --sharedstatedi \
534  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535  | --sharedst | --shareds | --shared | --share | --shar \
536  | --sha | --sh)
537    ac_prev=sharedstatedir ;;
538  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541  | --sha=* | --sh=*)
542    sharedstatedir=$ac_optarg ;;
543
544  -site | --site | --sit)
545    ac_prev=site ;;
546  -site=* | --site=* | --sit=*)
547    site=$ac_optarg ;;
548
549  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550    ac_prev=srcdir ;;
551  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552    srcdir=$ac_optarg ;;
553
554  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555  | --syscon | --sysco | --sysc | --sys | --sy)
556    ac_prev=sysconfdir ;;
557  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559    sysconfdir=$ac_optarg ;;
560
561  -target | --target | --targe | --targ | --tar | --ta | --t)
562    ac_prev=target_alias ;;
563  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564    target_alias=$ac_optarg ;;
565
566  -v | -verbose | --verbose | --verbos | --verbo | --verb)
567    verbose=yes ;;
568
569  -version | --version | --versio | --versi | --vers | -V)
570    ac_init_version=: ;;
571
572  -with-* | --with-*)
573    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574    # Reject names that are not valid shell variable names.
575    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576      { echo "$as_me: error: invalid package name: $ac_package" >&2
577   { (exit 1); exit 1; }; }
578    ac_package=`echo $ac_package| sed 's/-/_/g'`
579    case $ac_option in
580      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581      *) ac_optarg=yes ;;
582    esac
583    eval "with_$ac_package='$ac_optarg'" ;;
584
585  -without-* | --without-*)
586    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package | sed 's/-/_/g'`
592    eval "with_$ac_package=no" ;;
593
594  --x)
595    # Obsolete; use --with-x.
596    with_x=yes ;;
597
598  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599  | --x-incl | --x-inc | --x-in | --x-i)
600    ac_prev=x_includes ;;
601  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603    x_includes=$ac_optarg ;;
604
605  -x-libraries | --x-libraries | --x-librarie | --x-librari \
606  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607    ac_prev=x_libraries ;;
608  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610    x_libraries=$ac_optarg ;;
611
612  -*) { echo "$as_me: error: unrecognized option: $ac_option
613Try \`$0 --help' for more information." >&2
614   { (exit 1); exit 1; }; }
615    ;;
616
617  *=*)
618    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619    # Reject names that are not valid shell variable names.
620    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622   { (exit 1); exit 1; }; }
623    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624    eval "$ac_envvar='$ac_optarg'"
625    export $ac_envvar ;;
626
627  *)
628    # FIXME: should be removed in autoconf 3.0.
629    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633    ;;
634
635  esac
636done
637
638if test -n "$ac_prev"; then
639  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640  { echo "$as_me: error: missing argument to $ac_option" >&2
641   { (exit 1); exit 1; }; }
642fi
643
644# Be sure to have absolute paths.
645for ac_var in exec_prefix prefix
646do
647  eval ac_val=$`echo $ac_var`
648  case $ac_val in
649    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651   { (exit 1); exit 1; }; };;
652  esac
653done
654
655# Be sure to have absolute paths.
656for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657              localstatedir libdir includedir oldincludedir infodir mandir
658do
659  eval ac_val=$`echo $ac_var`
660  case $ac_val in
661    [\\/$]* | ?:[\\/]* ) ;;
662    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663   { (exit 1); exit 1; }; };;
664  esac
665done
666
667# There might be people who depend on the old broken behavior: `$host'
668# used to hold the argument of --host etc.
669# FIXME: To remove some day.
670build=$build_alias
671host=$host_alias
672target=$target_alias
673
674# FIXME: To remove some day.
675if test "x$host_alias" != x; then
676  if test "x$build_alias" = x; then
677    cross_compiling=maybe
678    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679    If a cross compiler is detected then cross compile mode will be used." >&2
680  elif test "x$build_alias" != "x$host_alias"; then
681    cross_compiling=yes
682  fi
683fi
684
685ac_tool_prefix=
686test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
688test "$silent" = yes && exec 6>/dev/null
689
690
691# Find the source files, if location was not specified.
692if test -z "$srcdir"; then
693  ac_srcdir_defaulted=yes
694  # Try the directory containing this script, then its parent.
695  ac_confdir=`(dirname "$0") 2>/dev/null ||
696$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697         X"$0" : 'X\(//\)[^/]' \| \
698         X"$0" : 'X\(//\)$' \| \
699         X"$0" : 'X\(/\)' \| \
700         .     : '\(.\)' 2>/dev/null ||
701echo X"$0" |
702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704  	  /^X\(\/\/\)$/{ s//\1/; q; }
705  	  /^X\(\/\).*/{ s//\1/; q; }
706  	  s/.*/./; q'`
707  srcdir=$ac_confdir
708  if test ! -r $srcdir/$ac_unique_file; then
709    srcdir=..
710  fi
711else
712  ac_srcdir_defaulted=no
713fi
714if test ! -r $srcdir/$ac_unique_file; then
715  if test "$ac_srcdir_defaulted" = yes; then
716    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717   { (exit 1); exit 1; }; }
718  else
719    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720   { (exit 1); exit 1; }; }
721  fi
722fi
723srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724ac_env_build_alias_set=${build_alias+set}
725ac_env_build_alias_value=$build_alias
726ac_cv_env_build_alias_set=${build_alias+set}
727ac_cv_env_build_alias_value=$build_alias
728ac_env_host_alias_set=${host_alias+set}
729ac_env_host_alias_value=$host_alias
730ac_cv_env_host_alias_set=${host_alias+set}
731ac_cv_env_host_alias_value=$host_alias
732ac_env_target_alias_set=${target_alias+set}
733ac_env_target_alias_value=$target_alias
734ac_cv_env_target_alias_set=${target_alias+set}
735ac_cv_env_target_alias_value=$target_alias
736ac_env_CXX_set=${CXX+set}
737ac_env_CXX_value=$CXX
738ac_cv_env_CXX_set=${CXX+set}
739ac_cv_env_CXX_value=$CXX
740ac_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_env_CXXFLAGS_value=$CXXFLAGS
742ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
743ac_cv_env_CXXFLAGS_value=$CXXFLAGS
744ac_env_LDFLAGS_set=${LDFLAGS+set}
745ac_env_LDFLAGS_value=$LDFLAGS
746ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747ac_cv_env_LDFLAGS_value=$LDFLAGS
748ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749ac_env_CPPFLAGS_value=$CPPFLAGS
750ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_CXXCPP_set=${CXXCPP+set}
761ac_env_CXXCPP_value=$CXXCPP
762ac_cv_env_CXXCPP_set=${CXXCPP+set}
763ac_cv_env_CXXCPP_value=$CXXCPP
764
765#
766# Report the --help message.
767#
768if test "$ac_init_help" = "long"; then
769  # Omit some internal or obsolete options to make the list less imposing.
770  # This message is too long to be a string in the A/UX 3.1 sh.
771  cat <<_ACEOF
772\`configure' configures protomol 2.0.3 to adapt to many kinds of systems.
773
774Usage: $0 [OPTION]... [VAR=VALUE]...
775
776To assign environment variables (e.g., CC, CFLAGS...), specify them as
777VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779Defaults for the options are specified in brackets.
780
781Configuration:
782  -h, --help              display this help and exit
783      --help=short        display options specific to this package
784      --help=recursive    display the short help of all the included packages
785  -V, --version           display version information and exit
786  -q, --quiet, --silent   do not print \`checking...' messages
787      --cache-file=FILE   cache test results in FILE [disabled]
788  -C, --config-cache      alias for \`--cache-file=config.cache'
789  -n, --no-create         do not create output files
790      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792_ACEOF
793
794  cat <<_ACEOF
795Installation directories:
796  --prefix=PREFIX         install architecture-independent files in PREFIX
797                          [$ac_default_prefix]
798  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                          [PREFIX]
800
801By default, \`make install' will install all the files in
802\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804for instance \`--prefix=\$HOME'.
805
806For better control, use the options below.
807
808Fine tuning of the installation directories:
809  --bindir=DIR           user executables [EPREFIX/bin]
810  --sbindir=DIR          system admin executables [EPREFIX/sbin]
811  --libexecdir=DIR       program executables [EPREFIX/libexec]
812  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816  --libdir=DIR           object code libraries [EPREFIX/lib]
817  --includedir=DIR       C header files [PREFIX/include]
818  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819  --infodir=DIR          info documentation [PREFIX/info]
820  --mandir=DIR           man documentation [PREFIX/man]
821_ACEOF
822
823  cat <<\_ACEOF
824
825Program names:
826  --program-prefix=PREFIX            prepend PREFIX to installed program names
827  --program-suffix=SUFFIX            append SUFFIX to installed program names
828  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
829
830X features:
831  --x-includes=DIR    X include files are in DIR
832  --x-libraries=DIR   X library files are in DIR
833_ACEOF
834fi
835
836if test -n "$ac_init_help"; then
837  case $ac_init_help in
838     short | recursive ) echo "Configuration of protomol 2.0.3:";;
839   esac
840  cat <<\_ACEOF
841
842Optional Features:
843  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845  --disable-dependency-tracking Speeds up one-time builds
846  --enable-dependency-tracking  Do not reject slow dependency extractors
847
848Optional Packages:
849  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
850  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
851  --with-fft=sgi|essl|fftw3|fftw2|fft2mpi|zfft Specify the FFT
852  --with-fftw3=DIR                             Specify the FFTW3 install path and enable FFTW3
853  --with-fftw2=DIR                             Specify the FFTW2 install path and enable FFTW2
854  --with-fftw2mpi=DIR                          Specify the FFTW2 MPI install path and enable FFTW2 MPI
855  --with-glut=DIR|no|yes                       Specify the GLUT install path and enable GLUT
856  --with-aix-xlc                               Use xlC   for AIX with optimization flags
857  --with-aix-xlc-debug                         Use xlC   for AIX with debugging flags
858  --with-aix-xlc-mpi                           Use xlC   for AIX with MPI and optimization flags
859  --with-aix-xlc-mpi-debug                     Use xlC   for AIX with MPI and debugging flags
860  --with-gcc                                   Use g++   for generic with optimization flags
861  --with-gcc-debug                             Use g++   for generic with debugging flags
862  --with-gcc-debug-gdb                         Use g++   for generic with debugging and gdb flags
863  --with-gcc-mpich                             Use g++   for generic with MPICH flags
864  --with-gcc-mpich-debug                       Use g++   for generic with MPICH debug flags
865  --with-gcc-mpich-xeon                        Use g++   for generic with MPICH xeon flags (for Notre Dame's HPCC cluster)
866  --with-hpux-cc                               Use aCC   for HPUX optimization flags
867  --with-hpux-cc-debug                         Use aCC   for HPUX with debugging flags
868  --with-hpux-cc-mpi                           Use aCC   for HPUX with MPI and optimization flags
869  --with-hpux-cc-mpi-debug                     Use aCC   for HPUX with MPI and debugging flags
870  --with-icc                                   Use icc   for generic with optimization flags
871  --with-icc-debug                             Use icc   for generic with debugging flags
872  --with-icc-mpich                             Use icc   for generic with MPICH and optimization flags
873  --with-icc-mpich-xeon                        Use icc   for generic with MPICH and optimization flags (for Notre Dame's HPCC cluster)
874  --with-icc-mpich-debug                       Use icc   for generic with MPICH and debugging flags
875  --with-irix-mipspro                          Use CC    for IRIX with optimization flags
876  --with-irix-mipspro-debug                    Use CC    for IRIX with debugging flags
877  --with-irix-mipspro-mpi                      Use CC    for IRIX with MPI and optimization flags
878  --with-irix-mipspro-mpi-debug                Use CC    for IRIX with MPI and debugging flags
879  --with-ppc-xlc                               Use xlC   for PPC with optimization flags
880  --with-pcc-xlc-debug                         Use xlC   for PPC with debugging flags
881  --with-sun-gcc                               Use g++   for SUN with optimization flags
882  --with-x                use the X Window System
883
884Some influential environment variables:
885  CXX         C++ compiler command
886  CXXFLAGS    C++ compiler flags
887  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888              nonstandard directory <lib dir>
889  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890              headers in a nonstandard directory <include dir>
891  CC          C compiler command
892  CFLAGS      C compiler flags
893  CXXCPP      C++ preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
898Report bugs to <protomol@cse.nd.edu>.
899_ACEOF
900fi
901
902if test "$ac_init_help" = "recursive"; then
903  # If there are subdirs, report their specific --help.
904  ac_popdir=`pwd`
905  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906    test -d $ac_dir || continue
907    ac_builddir=.
908
909if test "$ac_dir" != .; then
910  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911  # A "../" for each directory in $ac_dir_suffix.
912  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914  ac_dir_suffix= ac_top_builddir=
915fi
916
917case $srcdir in
918  .)  # No --srcdir option.  We are building in place.
919    ac_srcdir=.
920    if test -z "$ac_top_builddir"; then
921       ac_top_srcdir=.
922    else
923       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924    fi ;;
925  [\\/]* | ?:[\\/]* )  # Absolute path.
926    ac_srcdir=$srcdir$ac_dir_suffix;
927    ac_top_srcdir=$srcdir ;;
928  *) # Relative path.
929    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930    ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
932# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933# absolute.
934ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
935ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
936ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
937ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
938
939    cd $ac_dir
940    # Check for guested configure; otherwise get Cygnus style configure.
941    if test -f $ac_srcdir/configure.gnu; then
942      echo
943      $SHELL $ac_srcdir/configure.gnu  --help=recursive
944    elif test -f $ac_srcdir/configure; then
945      echo
946      $SHELL $ac_srcdir/configure  --help=recursive
947    elif test -f $ac_srcdir/configure.ac ||
948           test -f $ac_srcdir/configure.in; then
949      echo
950      $ac_configure --help
951    else
952      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953    fi
954    cd $ac_popdir
955  done
956fi
957
958test -n "$ac_init_help" && exit 0
959if $ac_init_version; then
960  cat <<\_ACEOF
961protomol configure 2.0.3
962generated by GNU Autoconf 2.53
963
964Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
965Free Software Foundation, Inc.
966This configure script is free software; the Free Software Foundation
967gives unlimited permission to copy, distribute and modify it.
968_ACEOF
969  exit 0
970fi
971exec 5>config.log
972cat >&5 <<_ACEOF
973This file contains any messages produced by compilers while
974running configure, to aid debugging if configure makes a mistake.
975
976It was created by protomol $as_me 2.0.3, which was
977generated by GNU Autoconf 2.53.  Invocation command line was
978
979  $ $0 $@
980
981_ACEOF
982{
983cat <<_ASUNAME
984@%:@@%:@ --------- @%:@@%:@
985@%:@@%:@ Platform. @%:@@%:@
986@%:@@%:@ --------- @%:@@%:@
987
988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989uname -m = `(uname -m) 2>/dev/null || echo unknown`
990uname -r = `(uname -r) 2>/dev/null || echo unknown`
991uname -s = `(uname -s) 2>/dev/null || echo unknown`
992uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
996
997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1004
1005_ASUNAME
1006
1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008for as_dir in $PATH
1009do
1010  IFS=$as_save_IFS
1011  test -z "$as_dir" && as_dir=.
1012  echo "PATH: $as_dir"
1013done
1014
1015} >&5
1016
1017cat >&5 <<_ACEOF
1018
1019
1020@%:@@%:@ ----------- @%:@@%:@
1021@%:@@%:@ Core tests. @%:@@%:@
1022@%:@@%:@ ----------- @%:@@%:@
1023
1024_ACEOF
1025
1026
1027# Keep a trace of the command line.
1028# Strip out --no-create and --no-recursion so they do not pile up.
1029# Also quote any args containing shell meta-characters.
1030ac_configure_args=
1031ac_sep=
1032for ac_arg
1033do
1034  case $ac_arg in
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n ) continue ;;
1037  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039    continue ;;
1040  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042  esac
1043  case " $ac_configure_args " in
1044    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1045    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046       ac_sep=" " ;;
1047  esac
1048  # Get rid of the leading space.
1049done
1050
1051# When interrupted or exit'd, cleanup temporary files, and complete
1052# config.log.  We remove comments because anyway the quotes in there
1053# would cause problems or look ugly.
1054# WARNING: Be sure not to use single quotes in there, as some shells,
1055# such as our DU 5.0 friend, will then `close' the trap.
1056trap 'exit_status=$?
1057  # Save into config.log some information that might help in debugging.
1058  {
1059    echo
1060    cat <<\_ASBOX
1061@%:@@%:@ ---------------- @%:@@%:@
1062@%:@@%:@ Cache variables. @%:@@%:@
1063@%:@@%:@ ---------------- @%:@@%:@
1064_ASBOX
1065    echo
1066    # The following way of writing the cache mishandles newlines in values,
1067{
1068  (set) 2>&1 |
1069    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070    *ac_space=\ *)
1071      sed -n \
1072        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074      ;;
1075    *)
1076      sed -n \
1077        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078      ;;
1079    esac;
1080}
1081    echo
1082    if test -s confdefs.h; then
1083      cat <<\_ASBOX
1084@%:@@%:@ ----------- @%:@@%:@
1085@%:@@%:@ confdefs.h. @%:@@%:@
1086@%:@@%:@ ----------- @%:@@%:@
1087_ASBOX
1088      echo
1089      sed "/^$/d" confdefs.h
1090      echo
1091    fi
1092    test "$ac_signal" != 0 &&
1093      echo "$as_me: caught signal $ac_signal"
1094    echo "$as_me: exit $exit_status"
1095  } >&5
1096  rm -f core core.* *.core &&
1097  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1098    exit $exit_status
1099     ' 0
1100for ac_signal in 1 2 13 15; do
1101  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1102done
1103ac_signal=0
1104
1105# confdefs.h avoids OS command line length limits that DEFS can exceed.
1106rm -rf conftest* confdefs.h
1107# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1108echo >confdefs.h
1109
1110# Predefined preprocessor variables.
1111
1112cat >>confdefs.h <<_ACEOF
1113@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1114_ACEOF
1115
1116
1117cat >>confdefs.h <<_ACEOF
1118@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1119_ACEOF
1120
1121
1122cat >>confdefs.h <<_ACEOF
1123@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1124_ACEOF
1125
1126
1127cat >>confdefs.h <<_ACEOF
1128@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1129_ACEOF
1130
1131
1132cat >>confdefs.h <<_ACEOF
1133@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1134_ACEOF
1135
1136
1137# Let the site file select an alternate cache file if it wants to.
1138# Prefer explicitly selected file to automatically selected ones.
1139if test -z "$CONFIG_SITE"; then
1140  if test "x$prefix" != xNONE; then
1141    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1142  else
1143    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1144  fi
1145fi
1146for ac_site_file in $CONFIG_SITE; do
1147  if test -r "$ac_site_file"; then
1148    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1149echo "$as_me: loading site script $ac_site_file" >&6;}
1150    sed 's/^/| /' "$ac_site_file" >&5
1151    . "$ac_site_file"
1152  fi
1153done
1154
1155if test -r "$cache_file"; then
1156  # Some versions of bash will fail to source /dev/null (special
1157  # files actually), so we avoid doing that.
1158  if test -f "$cache_file"; then
1159    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1160echo "$as_me: loading cache $cache_file" >&6;}
1161    case $cache_file in
1162      [\\/]* | ?:[\\/]* ) . $cache_file;;
1163      *)                      . ./$cache_file;;
1164    esac
1165  fi
1166else
1167  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1168echo "$as_me: creating cache $cache_file" >&6;}
1169  >$cache_file
1170fi
1171
1172# Check that the precious variables saved in the cache have kept the same
1173# value.
1174ac_cache_corrupted=false
1175for ac_var in `(set) 2>&1 |
1176               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1177  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1178  eval ac_new_set=\$ac_env_${ac_var}_set
1179  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1180  eval ac_new_val="\$ac_env_${ac_var}_value"
1181  case $ac_old_set,$ac_new_set in
1182    set,)
1183      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1184echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1185      ac_cache_corrupted=: ;;
1186    ,set)
1187      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1188echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1189      ac_cache_corrupted=: ;;
1190    ,);;
1191    *)
1192      if test "x$ac_old_val" != "x$ac_new_val"; then
1193        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1194echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1195        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1196echo "$as_me:   former value:  $ac_old_val" >&2;}
1197        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1198echo "$as_me:   current value: $ac_new_val" >&2;}
1199        ac_cache_corrupted=:
1200      fi;;
1201  esac
1202  # Pass precious variables to config.status.
1203  if test "$ac_new_set" = set; then
1204    case $ac_new_val in
1205    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1207    *) ac_arg=$ac_var=$ac_new_val ;;
1208    esac
1209    case " $ac_configure_args " in
1210      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1211      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1212    esac
1213  fi
1214done
1215if $ac_cache_corrupted; then
1216  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1217echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1218  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1219echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1220   { (exit 1); exit 1; }; }
1221fi
1222
1223ac_ext=c
1224ac_cpp='$CPP $CPPFLAGS'
1225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1227ac_compiler_gnu=$ac_cv_c_compiler_gnu
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255# 2.13  cp configure.ac configure.in
1256#AC_INIT(README)
1257#AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT,"protomol@cse.nd.edu",[Define to the address where bug reports for this package should be sent.])
1258#AC_DEFINE_UNQUOTED(PACKAGE_NAME,"protomol",[Define to the full name of this package.])
1259#AC_DEFINE_UNQUOTED(PACKAGE_STRING,"protomol 2.0.3",[Define to the full name and version of this package.])
1260#AC_DEFINE_UNQUOTED(PACKAGE_TARNAME,"protomol",[Define to the one symbol short name of this package.])
1261#AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"2.0.3",[Define to the version of this package.])
1262
1263#AC_CONFIG_AUX_DIR(./config)
1264#AC_CANONICAL_TARGET
1265
1266# Avoid generating makefile rules to rebuild maintainer-only files by
1267# default.  Maintainers may override this default and generate these
1268# makefile rules using the `--enable-maintainer-mode' configure option.
1269#AM_MAINTAINER_MODE
1270
1271#  Major Framework release number
1272PROTOMOL_MAJOR_VERSION=2
1273#  Minor Framework release number
1274PROTOMOL_MINOR_VERSION=0
1275#  Increment after every source code change
1276PROTOMOL_PATCH_LEVEL=3
1277#  Combined version number
1278VERSION=$PROTOMOL_MAJOR_VERSION.$PROTOMOL_MINOR_VERSION.$PROTOMOL_PATCH_LEVEL
1279
1280am__api_version="1.6"
1281ac_aux_dir=
1282for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1283  if test -f $ac_dir/install-sh; then
1284    ac_aux_dir=$ac_dir
1285    ac_install_sh="$ac_aux_dir/install-sh -c"
1286    break
1287  elif test -f $ac_dir/install.sh; then
1288    ac_aux_dir=$ac_dir
1289    ac_install_sh="$ac_aux_dir/install.sh -c"
1290    break
1291  elif test -f $ac_dir/shtool; then
1292    ac_aux_dir=$ac_dir
1293    ac_install_sh="$ac_aux_dir/shtool install -c"
1294    break
1295  fi
1296done
1297if test -z "$ac_aux_dir"; then
1298  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1299echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1300   { (exit 1); exit 1; }; }
1301fi
1302ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1303ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1304ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1305
1306# Find a good install program.  We prefer a C program (faster),
1307# so one script is as good as another.  But avoid the broken or
1308# incompatible versions:
1309# SysV /etc/install, /usr/sbin/install
1310# SunOS /usr/etc/install
1311# IRIX /sbin/install
1312# AIX /bin/install
1313# AmigaOS /C/install, which installs bootblocks on floppy discs
1314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1317# ./install, which can be erroneously created by make from ./install.sh.
1318echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1319echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1320if test -z "$INSTALL"; then
1321if test "${ac_cv_path_install+set}" = set; then
1322  echo $ECHO_N "(cached) $ECHO_C" >&6
1323else
1324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  # Account for people who put trailing slashes in PATH elements.
1330case $as_dir/ in
1331  ./ | .// | /cC/* | \
1332  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1333  /usr/ucb/* ) ;;
1334  *)
1335    # OSF1 and SCO ODT 3.0 have their own names for install.
1336    # Don't use installbsd from OSF since it installs stuff as root
1337    # by default.
1338    for ac_prog in ginstall scoinst install; do
1339      for ac_exec_ext in '' $ac_executable_extensions; do
1340        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1341          if test $ac_prog = install &&
1342            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343            # AIX install.  It has an incompatible calling convention.
1344            :
1345          elif test $ac_prog = install &&
1346            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1347            # program-specific install script used by HP pwplus--don't use.
1348            :
1349          else
1350            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1351            break 3
1352          fi
1353        fi
1354      done
1355    done
1356    ;;
1357esac
1358done
1359
1360
1361fi
1362  if test "${ac_cv_path_install+set}" = set; then
1363    INSTALL=$ac_cv_path_install
1364  else
1365    # As a last resort, use the slow shell script.  We don't cache a
1366    # path for INSTALL within a source directory, because that will
1367    # break other packages using the cache if that directory is
1368    # removed, or if the path is relative.
1369    INSTALL=$ac_install_sh
1370  fi
1371fi
1372echo "$as_me:$LINENO: result: $INSTALL" >&5
1373echo "${ECHO_T}$INSTALL" >&6
1374
1375# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1376# It thinks the first close brace ends the variable substitution.
1377test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1378
1379test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1380
1381test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1382
1383echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1384echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1385# Just in case
1386sleep 1
1387echo timestamp > conftest.file
1388# Do `set' in a subshell so we don't clobber the current shell's
1389# arguments.  Must try -L first in case configure is actually a
1390# symlink; some systems play weird games with the mod time of symlinks
1391# (eg FreeBSD returns the mod time of the symlink's containing
1392# directory).
1393if (
1394   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1395   if test "$*" = "X"; then
1396      # -L didn't work.
1397      set X `ls -t $srcdir/configure conftest.file`
1398   fi
1399   rm -f conftest.file
1400   if test "$*" != "X $srcdir/configure conftest.file" \
1401      && test "$*" != "X conftest.file $srcdir/configure"; then
1402
1403      # If neither matched, then we have a broken ls.  This can happen
1404      # if, for instance, CONFIG_SHELL is bash and it inherits a
1405      # broken ls alias from the environment.  This has actually
1406      # happened.  Such a system could not be considered "sane".
1407      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1408alias in your environment" >&5
1409echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1410alias in your environment" >&2;}
1411   { (exit 1); exit 1; }; }
1412   fi
1413
1414   test "$2" = conftest.file
1415   )
1416then
1417   # Ok.
1418   :
1419else
1420   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1421Check your system clock" >&5
1422echo "$as_me: error: newly created file is older than distributed files!
1423Check your system clock" >&2;}
1424   { (exit 1); exit 1; }; }
1425fi
1426echo "$as_me:$LINENO: result: yes" >&5
1427echo "${ECHO_T}yes" >&6
1428test "$program_prefix" != NONE &&
1429  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1430# Use a double $ so make ignores it.
1431test "$program_suffix" != NONE &&
1432  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1433# Double any \ or $.  echo might interpret backslashes.
1434# By default was `s,x,x', remove it if useless.
1435cat <<\_ACEOF >conftest.sed
1436s/[\\$]/&&/g;s/;s,x,x,$//
1437_ACEOF
1438program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1439rm conftest.sed
1440
1441
1442# expand $ac_aux_dir to an absolute path
1443am_aux_dir=`cd $ac_aux_dir && pwd`
1444
1445test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1446# Use eval to expand $SHELL
1447if eval "$MISSING --run true"; then
1448  am_missing_run="$MISSING --run "
1449else
1450  am_missing_run=
1451  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1452echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1453fi
1454
1455for ac_prog in gawk mawk nawk awk
1456do
1457  # Extract the first word of "$ac_prog", so it can be a program name with args.
1458set dummy $ac_prog; ac_word=$2
1459echo "$as_me:$LINENO: checking for $ac_word" >&5
1460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461if test "${ac_cv_prog_AWK+set}" = set; then
1462  echo $ECHO_N "(cached) $ECHO_C" >&6
1463else
1464  if test -n "$AWK"; then
1465  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1466else
1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468for as_dir in $PATH
1469do
1470  IFS=$as_save_IFS
1471  test -z "$as_dir" && as_dir=.
1472  for ac_exec_ext in '' $ac_executable_extensions; do
1473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474    ac_cv_prog_AWK="$ac_prog"
1475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476    break 2
1477  fi
1478done
1479done
1480
1481fi
1482fi
1483AWK=$ac_cv_prog_AWK
1484if test -n "$AWK"; then
1485  echo "$as_me:$LINENO: result: $AWK" >&5
1486echo "${ECHO_T}$AWK" >&6
1487else
1488  echo "$as_me:$LINENO: result: no" >&5
1489echo "${ECHO_T}no" >&6
1490fi
1491
1492  test -n "$AWK" && break
1493done
1494
1495echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1496echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1497set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1498if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  cat >conftest.make <<\_ACEOF
1502all:
1503	@echo 'ac_maketemp="${MAKE}"'
1504_ACEOF
1505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1506eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1507if test -n "$ac_maketemp"; then
1508  eval ac_cv_prog_make_${ac_make}_set=yes
1509else
1510  eval ac_cv_prog_make_${ac_make}_set=no
1511fi
1512rm -f conftest.make
1513fi
1514if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1515  echo "$as_me:$LINENO: result: yes" >&5
1516echo "${ECHO_T}yes" >&6
1517  SET_MAKE=
1518else
1519  echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521  SET_MAKE="MAKE=${MAKE-make}"
1522fi
1523
1524 # test to see if srcdir already configured
1525if test "`cd $srcdir && pwd`" != "`pwd`" &&
1526   test -f $srcdir/config.status; then
1527  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1528echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1529   { (exit 1); exit 1; }; }
1530fi
1531
1532# Define the identity of the package.
1533 PACKAGE=protomol
1534 VERSION=$VERSION
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538@%:@define PACKAGE "$PACKAGE"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543@%:@define VERSION "$VERSION"
1544_ACEOF
1545
1546# Some tools Automake needs.
1547
1548ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1549
1550
1551AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1552
1553
1554AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1555
1556
1557AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1558
1559
1560MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1561
1562
1563AMTAR=${AMTAR-"${am_missing_run}tar"}
1564
1565install_sh=${install_sh-"$am_aux_dir/install-sh"}
1566
1567# Installed binaries are usually stripped using `strip' when the user
1568# run `make install-strip'.  However `strip' might not be the right
1569# tool to use in cross-compilation environments, therefore Automake
1570# will honor the `STRIP' environment variable to overrule this program.
1571if test "$cross_compiling" != no; then
1572  if test -n "$ac_tool_prefix"; then
1573  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1574set dummy ${ac_tool_prefix}strip; ac_word=$2
1575echo "$as_me:$LINENO: checking for $ac_word" >&5
1576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577if test "${ac_cv_prog_STRIP+set}" = set; then
1578  echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580  if test -n "$STRIP"; then
1581  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1582else
1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586  IFS=$as_save_IFS
1587  test -z "$as_dir" && as_dir=.
1588  for ac_exec_ext in '' $ac_executable_extensions; do
1589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592    break 2
1593  fi
1594done
1595done
1596
1597fi
1598fi
1599STRIP=$ac_cv_prog_STRIP
1600if test -n "$STRIP"; then
1601  echo "$as_me:$LINENO: result: $STRIP" >&5
1602echo "${ECHO_T}$STRIP" >&6
1603else
1604  echo "$as_me:$LINENO: result: no" >&5
1605echo "${ECHO_T}no" >&6
1606fi
1607
1608fi
1609if test -z "$ac_cv_prog_STRIP"; then
1610  ac_ct_STRIP=$STRIP
1611  # Extract the first word of "strip", so it can be a program name with args.
1612set dummy strip; ac_word=$2
1613echo "$as_me:$LINENO: checking for $ac_word" >&5
1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1616  echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618  if test -n "$ac_ct_STRIP"; then
1619  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1620else
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624  IFS=$as_save_IFS
1625  test -z "$as_dir" && as_dir=.
1626  for ac_exec_ext in '' $ac_executable_extensions; do
1627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628    ac_cv_prog_ac_ct_STRIP="strip"
1629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630    break 2
1631  fi
1632done
1633done
1634
1635  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1636fi
1637fi
1638ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1639if test -n "$ac_ct_STRIP"; then
1640  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1641echo "${ECHO_T}$ac_ct_STRIP" >&6
1642else
1643  echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647  STRIP=$ac_ct_STRIP
1648else
1649  STRIP="$ac_cv_prog_STRIP"
1650fi
1651
1652fi
1653INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1654
1655# We need awk for the "check" target.  The system "awk" is bad on
1656# some platforms.
1657
1658
1659
1660# Add the stamp file to the list of files AC keeps track of,
1661# along with our hook.
1662ac_config_headers="$ac_config_headers protomol_config.h"
1663
1664
1665
1666
1667#  Report what was found
1668echo "$as_me:$LINENO: checking major version" >&5
1669echo $ECHO_N "checking major version... $ECHO_C" >&6
1670echo "$as_me:$LINENO: result: $PROTOMOL_MAJOR_VERSION" >&5
1671echo "${ECHO_T}$PROTOMOL_MAJOR_VERSION" >&6
1672echo "$as_me:$LINENO: checking minor version" >&5
1673echo $ECHO_N "checking minor version... $ECHO_C" >&6
1674echo "$as_me:$LINENO: result: $PROTOMOL_MINOR_VERSION" >&5
1675echo "${ECHO_T}$PROTOMOL_MINOR_VERSION" >&6
1676echo "$as_me:$LINENO: checking patchlevel" >&5
1677echo $ECHO_N "checking patchlevel... $ECHO_C" >&6
1678echo "$as_me:$LINENO: result: $PROTOMOL_PATCH_LEVEL" >&5
1679echo "${ECHO_T}$PROTOMOL_PATCH_LEVEL" >&6
1680
1681
1682
1683
1684
1685# Calculate libtool versioning information
1686LT_RELEASE=$PROTOMOL_MAJOR_VERSION.$PROTOMOL_MINOR_VERSION
1687LT_CURRENT=$PROTOMOL_INTERFACE_VERSION
1688LT_REVISION=0 #`expr $PROTOMOL_PATCH_LEVEL - $PROTOMOL_INTERFACE_VERSION`
1689LT_AGE=0 #`expr $PROTOMOL_INTERFACE_VERSION - $PROTOMOL_BINARY_VERSION`
1690
1691
1692
1693
1694
1695
1696#
1697# Defines
1698#
1699
1700
1701cat >>confdefs.h <<_ACEOF
1702@%:@define PACKAGE_HOMEPAGE "http://protomol.sourceforge.net"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707@%:@define PACKAGE_CITE "Please cite T. Matthey, T. Cickovski, S. S. Hampton, A. Ko, Q. Ma, M. Nyerges, T. Raeder,\nT. Slabach, and J. A. Izaguirre. ProtoMol: An object-oriented framework for prototyping\nnovel algorithms for molecular dynamics. ACM Trans. Math. Softw., 30(3):237�265, 2004."
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712@%:@define PACKAGE_UNAME "`uname -a`"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717@%:@define PACKAGE_WHOAMI "`whoami`"
1718_ACEOF
1719
1720
1721cat >>confdefs.h <<_ACEOF
1722@%:@define PACKAGE_BUGREPORT "protomol@cse.nd.edu"
1723_ACEOF
1724
1725
1726
1727#
1728# Compiler
1729#
1730use_preset=0
1731
1732# Check whether --with-fft or --without-fft was given.
1733if test "${with_fft+set}" = set; then
1734  withval="$with_fft"
1735
1736fi;
1737
1738# Check whether --with-fftw3 or --without-fftw3 was given.
1739if test "${with_fftw3+set}" = set; then
1740  withval="$with_fftw3"
1741
1742fi;
1743
1744# Check whether --with-fftw2 or --without-fftw2 was given.
1745if test "${with_fftw2+set}" = set; then
1746  withval="$with_fftw2"
1747
1748fi;
1749
1750# Check whether --with-fftw2mpi or --without-fftw2mpi was given.
1751if test "${with_fftw2mpi+set}" = set; then
1752  withval="$with_fftw2mpi"
1753
1754fi;
1755
1756# Check whether --with-glut or --without-glut was given.
1757if test "${with_glut+set}" = set; then
1758  withval="$with_glut"
1759
1760fi;
1761
1762# Check whether --with-aix_xlc or --without-aix_xlc was given.
1763if test "${with_aix_xlc+set}" = set; then
1764  withval="$with_aix_xlc"
1765  use_preset=1
1766fi;
1767
1768# Check whether --with-aix_xlc_debug or --without-aix_xlc_debug was given.
1769if test "${with_aix_xlc_debug+set}" = set; then
1770  withval="$with_aix_xlc_debug"
1771  use_preset=1
1772fi;
1773
1774# Check whether --with-aix_xlc_mpi or --without-aix_xlc_mpi was given.
1775if test "${with_aix_xlc_mpi+set}" = set; then
1776  withval="$with_aix_xlc_mpi"
1777  use_preset=1
1778fi;
1779
1780# Check whether --with-aix_xlc_mpi_debug or --without-aix_xlc_mpi_debug was given.
1781if test "${with_aix_xlc_mpi_debug+set}" = set; then
1782  withval="$with_aix_xlc_mpi_debug"
1783  use_preset=1
1784fi;
1785
1786# Check whether --with-gcc or --without-gcc was given.
1787if test "${with_gcc+set}" = set; then
1788  withval="$with_gcc"
1789  use_preset=1
1790fi;
1791
1792# Check whether --with-gcc_debug or --without-gcc_debug was given.
1793if test "${with_gcc_debug+set}" = set; then
1794  withval="$with_gcc_debug"
1795  use_preset=1
1796fi;
1797
1798# Check whether --with-gcc_debug_gdb or --without-gcc_debug_gdb was given.
1799if test "${with_gcc_debug_gdb+set}" = set; then
1800  withval="$with_gcc_debug_gdb"
1801  use_preset=1
1802fi;
1803
1804# Check whether --with-gcc_mpich or --without-gcc_mpich was given.
1805if test "${with_gcc_mpich+set}" = set; then
1806  withval="$with_gcc_mpich"
1807  use_preset=1
1808fi;
1809
1810# Check whether --with-gcc_mpich_debug or --without-gcc_mpich_debug was given.
1811if test "${with_gcc_mpich_debug+set}" = set; then
1812  withval="$with_gcc_mpich_debug"
1813  use_preset=1
1814fi;
1815
1816# Check whether --with-gcc_mpich_xeon or --without-gcc_mpich_xeon was given.
1817if test "${with_gcc_mpich_xeon+set}" = set; then
1818  withval="$with_gcc_mpich_xeon"
1819
1820fi;
1821
1822# Check whether --with-hpux_cc or --without-hpux_cc was given.
1823if test "${with_hpux_cc+set}" = set; then
1824  withval="$with_hpux_cc"
1825  use_preset=1
1826fi;
1827
1828# Check whether --with-hpux_cc_debug or --without-hpux_cc_debug was given.
1829if test "${with_hpux_cc_debug+set}" = set; then
1830  withval="$with_hpux_cc_debug"
1831  use_preset=1
1832fi;
1833
1834# Check whether --with-hpux_cc_mpi or --without-hpux_cc_mpi was given.
1835if test "${with_hpux_cc_mpi+set}" = set; then
1836  withval="$with_hpux_cc_mpi"
1837  use_preset=1
1838fi;
1839
1840# Check whether --with-hpux_cc_mpi_debug or --without-hpux_cc_mpi_debug was given.
1841if test "${with_hpux_cc_mpi_debug+set}" = set; then
1842  withval="$with_hpux_cc_mpi_debug"
1843  use_preset=1
1844fi;
1845
1846# Check whether --with-icc or --without-icc was given.
1847if test "${with_icc+set}" = set; then
1848  withval="$with_icc"
1849  use_preset=1
1850fi;
1851
1852# Check whether --with-icc_debug or --without-icc_debug was given.
1853if test "${with_icc_debug+set}" = set; then
1854  withval="$with_icc_debug"
1855  use_preset=1
1856fi;
1857
1858# Check whether --with-icc_mpich or --without-icc_mpich was given.
1859if test "${with_icc_mpich+set}" = set; then
1860  withval="$with_icc_mpich"
1861  use_preset=1
1862fi;
1863
1864# Check whether --with-icc_mpich_xeon or --without-icc_mpich_xeon was given.
1865if test "${with_icc_mpich_xeon+set}" = set; then
1866  withval="$with_icc_mpich_xeon"
1867  use_preset=1
1868fi;
1869
1870# Check whether --with-icc_mpich_debug or --without-icc_mpich_debug was given.
1871if test "${with_icc_mpich_debug+set}" = set; then
1872  withval="$with_icc_mpich_debug"
1873  use_preset=1
1874fi;
1875
1876# Check whether --with-irix_mipspro or --without-irix_mipspro was given.
1877if test "${with_irix_mipspro+set}" = set; then
1878  withval="$with_irix_mipspro"
1879  use_preset=1
1880fi;
1881
1882# Check whether --with-irix_mipspro_debug or --without-irix_mipspro_debug was given.
1883if test "${with_irix_mipspro_debug+set}" = set; then
1884  withval="$with_irix_mipspro_debug"
1885  use_preset=1
1886fi;
1887
1888# Check whether --with-irix_mipspro_mpi or --without-irix_mipspro_mpi was given.
1889if test "${with_irix_mipspro_mpi+set}" = set; then
1890  withval="$with_irix_mipspro_mpi"
1891  use_preset=1
1892fi;
1893
1894# Check whether --with-irix_mipspro_mpi_debug or --without-irix_mipspro_mpi_debug was given.
1895if test "${with_irix_mipspro_mpi_debug+set}" = set; then
1896  withval="$with_irix_mipspro_mpi_debug"
1897  use_preset=1
1898fi;
1899
1900# Check whether --with-ppc_xlc or --without-ppc_xlc was given.
1901if test "${with_ppc_xlc+set}" = set; then
1902  withval="$with_ppc_xlc"
1903  use_preset=1
1904fi;
1905
1906# Check whether --with-ppc_xlc_debug or --without-ppc_xlc_debug was given.
1907if test "${with_ppc_xlc_debug+set}" = set; then
1908  withval="$with_ppc_xlc_debug"
1909  use_preset=1
1910fi;
1911
1912# Check whether --with-sun_gcc or --without-sun_gcc was given.
1913if test "${with_sun_gcc+set}" = set; then
1914  withval="$with_sun_gcc"
1915  use_preset=1
1916fi;
1917
1918
1919# 2.53
1920ac_ext=cc
1921ac_cpp='$CXXCPP $CPPFLAGS'
1922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1925
1926ac_ext=cc
1927ac_cpp='$CXXCPP $CPPFLAGS'
1928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1931if test -n "$ac_tool_prefix"; then
1932  for ac_prog in $CCC aCC mpCC_r xlC_r xlC xlc++ CC icpc icc g++ cxx  mpic++ mpicxx mpiCC
1933  do
1934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_CXX+set}" = set; then
1939  echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941  if test -n "$CXX"; then
1942  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  test -z "$as_dir" && as_dir=.
1949  for ac_exec_ext in '' $ac_executable_extensions; do
1950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953    break 2
1954  fi
1955done
1956done
1957
1958fi
1959fi
1960CXX=$ac_cv_prog_CXX
1961if test -n "$CXX"; then
1962  echo "$as_me:$LINENO: result: $CXX" >&5
1963echo "${ECHO_T}$CXX" >&6
1964else
1965  echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969    test -n "$CXX" && break
1970  done
1971fi
1972if test -z "$CXX"; then
1973  ac_ct_CXX=$CXX
1974  for ac_prog in $CCC aCC mpCC_r xlC_r xlC xlc++ CC icpc icc g++ cxx  mpic++ mpicxx mpiCC
1975do
1976  # Extract the first word of "$ac_prog", so it can be a program name with args.
1977set dummy $ac_prog; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$ac_ct_CXX"; then
1984  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_ac_ct_CXX="$ac_prog"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2003if test -n "$ac_ct_CXX"; then
2004  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2005echo "${ECHO_T}$ac_ct_CXX" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011  test -n "$ac_ct_CXX" && break
2012done
2013test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2014
2015  CXX=$ac_ct_CXX
2016fi
2017
2018
2019# Provide some information about the compiler.
2020echo "$as_me:$LINENO:" \
2021     "checking for C++ compiler version" >&5
2022ac_compiler=`set X $ac_compile; echo $2`
2023{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2024  (eval $ac_compiler --version </dev/null >&5) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }
2028{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2029  (eval $ac_compiler -v </dev/null >&5) 2>&5
2030  ac_status=$?
2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032  (exit $ac_status); }
2033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2034  (eval $ac_compiler -V </dev/null >&5) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }
2038
2039cat >conftest.$ac_ext <<_ACEOF
2040#line $LINENO "configure"
2041#include "confdefs.h"
2042
2043#ifdef F77_DUMMY_MAIN
2044#  ifdef __cplusplus
2045     extern "C"
2046#  endif
2047   int F77_DUMMY_MAIN() { return 1; }
2048#endif
2049int
2050main ()
2051{
2052
2053  ;
2054  return 0;
2055}
2056_ACEOF
2057ac_clean_files_save=$ac_clean_files
2058ac_clean_files="$ac_clean_files a.out a.exe"
2059# Try to create an executable without -o first, disregard a.out.
2060# It will help us diagnose broken compilers, and finding out an intuition
2061# of exeext.
2062echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2063echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2064ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2066  (eval $ac_link_default) 2>&5
2067  ac_status=$?
2068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069  (exit $ac_status); }; then
2070  # Find the output, starting from the most likely.  This scheme is
2071# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072# resort.
2073
2074# Be careful to initialize this variable, since it used to be cached.
2075# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2076ac_cv_exeext=
2077for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2078                ls a.out conftest 2>/dev/null;
2079                ls a.* conftest.* 2>/dev/null`; do
2080  case $ac_file in
2081    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2082    a.out ) # We found the default executable, but exeext='' is most
2083            # certainly right.
2084            break;;
2085    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2087          export ac_cv_exeext
2088          break;;
2089    * ) break;;
2090  esac
2091done
2092else
2093  echo "$as_me: failed program was:" >&5
2094cat conftest.$ac_ext >&5
2095{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2096echo "$as_me: error: C++ compiler cannot create executables" >&2;}
2097   { (exit 77); exit 77; }; }
2098fi
2099
2100ac_exeext=$ac_cv_exeext
2101echo "$as_me:$LINENO: result: $ac_file" >&5
2102echo "${ECHO_T}$ac_file" >&6
2103
2104# Check the compiler produces executables we can run.  If not, either
2105# the compiler is broken, or we cross compile.
2106echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2107echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2108# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109# If not cross compiling, check that we can run a simple program.
2110if test "$cross_compiling" != yes; then
2111  if { ac_try='./$ac_file'
2112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113  (eval $ac_try) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; }; then
2117    cross_compiling=no
2118  else
2119    if test "$cross_compiling" = maybe; then
2120	cross_compiling=yes
2121    else
2122	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2123If you meant to cross compile, use \`--host'." >&5
2124echo "$as_me: error: cannot run C++ compiled programs.
2125If you meant to cross compile, use \`--host'." >&2;}
2126   { (exit 1); exit 1; }; }
2127    fi
2128  fi
2129fi
2130echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6
2132
2133rm -f a.out a.exe conftest$ac_cv_exeext
2134ac_clean_files=$ac_clean_files_save
2135# Check the compiler produces executables we can run.  If not, either
2136# the compiler is broken, or we cross compile.
2137echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140echo "${ECHO_T}$cross_compiling" >&6
2141
2142echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145  (eval $ac_link) 2>&5
2146  ac_status=$?
2147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148  (exit $ac_status); }; then
2149  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2151# work properly (i.e., refer to `conftest.exe'), while it won't with
2152# `rm'.
2153for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2156    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157          export ac_cv_exeext
2158          break;;
2159    * ) break;;
2160  esac
2161done
2162else
2163  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2164echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2165   { (exit 1); exit 1; }; }
2166fi
2167
2168rm -f conftest$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170echo "${ECHO_T}$ac_cv_exeext" >&6
2171
2172rm -f conftest.$ac_ext
2173EXEEXT=$ac_cv_exeext
2174ac_exeext=$EXEEXT
2175echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177if test "${ac_cv_objext+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  cat >conftest.$ac_ext <<_ACEOF
2181#line $LINENO "configure"
2182#include "confdefs.h"
2183
2184#ifdef F77_DUMMY_MAIN
2185#  ifdef __cplusplus
2186     extern "C"
2187#  endif
2188   int F77_DUMMY_MAIN() { return 1; }
2189#endif
2190int
2191main ()
2192{
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.o conftest.obj
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; then
2204  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2207    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208       break;;
2209  esac
2210done
2211else
2212  echo "$as_me: failed program was:" >&5
2213cat conftest.$ac_ext >&5
2214{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2215echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2216   { (exit 1); exit 1; }; }
2217fi
2218
2219rm -f conftest.$ac_cv_objext conftest.$ac_ext
2220fi
2221echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222echo "${ECHO_T}$ac_cv_objext" >&6
2223OBJEXT=$ac_cv_objext
2224ac_objext=$OBJEXT
2225echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2226echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2227if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  cat >conftest.$ac_ext <<_ACEOF
2231#line $LINENO "configure"
2232#include "confdefs.h"
2233
2234#ifdef F77_DUMMY_MAIN
2235#  ifdef __cplusplus
2236     extern "C"
2237#  endif
2238   int F77_DUMMY_MAIN() { return 1; }
2239#endif
2240int
2241main ()
2242{
2243#ifndef __GNUC__
2244       choke me
2245#endif
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253  (eval $ac_compile) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); } &&
2257         { ac_try='test -s conftest.$ac_objext'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263  ac_compiler_gnu=yes
2264else
2265  echo "$as_me: failed program was:" >&5
2266cat conftest.$ac_ext >&5
2267ac_compiler_gnu=no
2268fi
2269rm -f conftest.$ac_objext conftest.$ac_ext
2270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2271
2272fi
2273echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2274echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2275GXX=`test $ac_compiler_gnu = yes && echo yes`
2276ac_test_CXXFLAGS=${CXXFLAGS+set}
2277ac_save_CXXFLAGS=$CXXFLAGS
2278CXXFLAGS="-g"
2279echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2280echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2281if test "${ac_cv_prog_cxx_g+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  cat >conftest.$ac_ext <<_ACEOF
2285#line $LINENO "configure"
2286#include "confdefs.h"
2287
2288#ifdef F77_DUMMY_MAIN
2289#  ifdef __cplusplus
2290     extern "C"
2291#  endif
2292   int F77_DUMMY_MAIN() { return 1; }
2293#endif
2294int
2295main ()
2296{
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); } &&
2308         { ac_try='test -s conftest.$ac_objext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_cv_prog_cxx_g=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317cat conftest.$ac_ext >&5
2318ac_cv_prog_cxx_g=no
2319fi
2320rm -f conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2324if test "$ac_test_CXXFLAGS" = set; then
2325  CXXFLAGS=$ac_save_CXXFLAGS
2326elif test $ac_cv_prog_cxx_g = yes; then
2327  if test "$GXX" = yes; then
2328    CXXFLAGS="-g -O2"
2329  else
2330    CXXFLAGS="-g"
2331  fi
2332else
2333  if test "$GXX" = yes; then
2334    CXXFLAGS="-O2"
2335  else
2336    CXXFLAGS=
2337  fi
2338fi
2339for ac_declaration in \
2340   ''\
2341   '#include <stdlib.h>' \
2342   'extern "C" void std::exit (int) throw (); using std::exit;' \
2343   'extern "C" void std::exit (int); using std::exit;' \
2344   'extern "C" void exit (int) throw ();' \
2345   'extern "C" void exit (int);' \
2346   'void exit (int);'
2347do
2348  cat >conftest.$ac_ext <<_ACEOF
2349#line $LINENO "configure"
2350#include "confdefs.h"
2351@%:@include <stdlib.h>
2352$ac_declaration
2353#ifdef F77_DUMMY_MAIN
2354#  ifdef __cplusplus
2355     extern "C"
2356#  endif
2357   int F77_DUMMY_MAIN() { return 1; }
2358#endif
2359int
2360main ()
2361{
2362exit (42);
2363  ;
2364  return 0;
2365}
2366_ACEOF
2367rm -f conftest.$ac_objext
2368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369  (eval $ac_compile) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); } &&
2373         { ac_try='test -s conftest.$ac_objext'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; }; then
2379  :
2380else
2381  echo "$as_me: failed program was:" >&5
2382cat conftest.$ac_ext >&5
2383continue
2384fi
2385rm -f conftest.$ac_objext conftest.$ac_ext
2386  cat >conftest.$ac_ext <<_ACEOF
2387#line $LINENO "configure"
2388#include "confdefs.h"
2389$ac_declaration
2390#ifdef F77_DUMMY_MAIN
2391#  ifdef __cplusplus
2392     extern "C"
2393#  endif
2394   int F77_DUMMY_MAIN() { return 1; }
2395#endif
2396int
2397main ()
2398{
2399exit (42);
2400  ;
2401  return 0;
2402}
2403_ACEOF
2404rm -f conftest.$ac_objext
2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406  (eval $ac_compile) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); } &&
2410         { ac_try='test -s conftest.$ac_objext'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; }; then
2416  break
2417else
2418  echo "$as_me: failed program was:" >&5
2419cat conftest.$ac_ext >&5
2420fi
2421rm -f conftest.$ac_objext conftest.$ac_ext
2422done
2423rm -f conftest*
2424if test -n "$ac_declaration"; then
2425  echo '#ifdef __cplusplus' >>confdefs.h
2426  echo $ac_declaration      >>confdefs.h
2427  echo '#endif'             >>confdefs.h
2428fi
2429
2430ac_ext=cc
2431ac_cpp='$CXXCPP $CPPFLAGS'
2432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2435rm -f .deps 2>/dev/null
2436mkdir .deps 2>/dev/null
2437if test -d .deps; then
2438  DEPDIR=.deps
2439else
2440  # MS-DOS does not allow filenames that begin with a dot.
2441  DEPDIR=_deps
2442fi
2443rmdir .deps 2>/dev/null
2444
2445
2446ac_config_commands="$ac_config_commands depfiles"
2447
2448
2449am_make=${MAKE-make}
2450cat > confinc << 'END'
2451doit:
2452	@echo done
2453END
2454# If we don't find an include directive, just comment out the code.
2455echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2456echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2457am__include="#"
2458am__quote=
2459_am_result=none
2460# First try GNU make style include.
2461echo "include confinc" > confmf
2462# We grep out `Entering directory' and `Leaving directory'
2463# messages which can occur if `w' ends up in MAKEFLAGS.
2464# In particular we don't look at `^make:' because GNU make might
2465# be invoked under some other name (usually "gmake"), in which
2466# case it prints its new name instead of `make'.
2467if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2468   am__include=include
2469   am__quote=
2470   _am_result=GNU
2471fi
2472# Now try BSD make style include.
2473if test "$am__include" = "#"; then
2474   echo '.include "confinc"' > confmf
2475   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2476      am__include=.include
2477      am__quote="\""
2478      _am_result=BSD
2479   fi
2480fi
2481
2482
2483echo "$as_me:$LINENO: result: $_am_result" >&5
2484echo "${ECHO_T}$_am_result" >&6
2485rm -f confinc confmf
2486
2487# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2488if test "${enable_dependency_tracking+set}" = set; then
2489  enableval="$enable_dependency_tracking"
2490
2491fi;
2492if test "x$enable_dependency_tracking" != xno; then
2493  am_depcomp="$ac_aux_dir/depcomp"
2494  AMDEPBACKSLASH='\'
2495fi
2496
2497
2498if test "x$enable_dependency_tracking" != xno; then
2499  AMDEP_TRUE=
2500  AMDEP_FALSE='#'
2501else
2502  AMDEP_TRUE='#'
2503  AMDEP_FALSE=
2504fi
2505
2506
2507
2508
2509depcc="$CXX"  am_compiler_list=
2510
2511echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2512echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2513if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2514  echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2517  # We make a subdir and do the tests there.  Otherwise we can end up
2518  # making bogus files that we don't know about and never remove.  For
2519  # instance it was reported that on HP-UX the gcc test will end up
2520  # making a dummy file named `D' -- because `-MD' means `put the output
2521  # in D'.
2522  mkdir conftest.dir
2523  # Copy depcomp to subdir because otherwise we won't find it if we're
2524  # using a relative directory.
2525  cp "$am_depcomp" conftest.dir
2526  cd conftest.dir
2527
2528  am_cv_CXX_dependencies_compiler_type=none
2529  if test "$am_compiler_list" = ""; then
2530     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2531  fi
2532  for depmode in $am_compiler_list; do
2533    # We need to recreate these files for each test, as the compiler may
2534    # overwrite some of them when testing with obscure command lines.
2535    # This happens at least with the AIX C compiler.
2536    echo '#include "conftest.h"' > conftest.c
2537    echo 'int i;' > conftest.h
2538    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2539
2540    case $depmode in
2541    nosideeffect)
2542      # after this tag, mechanisms are not by side-effect, so they'll
2543      # only be used when explicitly requested
2544      if test "x$enable_dependency_tracking" = xyes; then
2545	continue
2546      else
2547	break
2548      fi
2549      ;;
2550    none) break ;;
2551    esac
2552    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2553    # mode.  It turns out that the SunPro C++ compiler does not properly
2554    # handle `-M -o', and we need to detect this.
2555    if depmode=$depmode \
2556       source=conftest.c object=conftest.o \
2557       depfile=conftest.Po tmpdepfile=conftest.TPo \
2558       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2559       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2560       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2561      am_cv_CXX_dependencies_compiler_type=$depmode
2562      break
2563    fi
2564  done
2565
2566  cd ..
2567  rm -rf conftest.dir
2568else
2569  am_cv_CXX_dependencies_compiler_type=none
2570fi
2571
2572fi
2573echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2574echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2575CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2576
2577
2578
2579#
2580if test $use_preset = 0; then
2581    echo "$as_me:$LINENO: result: Auto detection of compiler: $CXX" >&5
2582echo "${ECHO_T}Auto detection of compiler: $CXX" >&6
2583fi
2584unset ac_cv_prog_ac_ct_CC
2585unset ac_cv_prog_ac_ct_CXX
2586
2587
2588echo "$as_me:$LINENO: checking preset g++   for SUN with optimization flags                  " >&5
2589echo $ECHO_N "checking preset g++   for SUN with optimization flags                  ... $ECHO_C" >&6
2590WANT_SUN_GCC_FLAGS=0
2591if test "$with_sun_gcc" = "yes"; then
2592    WANT_SUN_GCC_FLAGS=1
2593    echo "$as_me:$LINENO: result: yes" >&5
2594echo "${ECHO_T}yes" >&6
2595    CC="gcc"
2596    CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -mcpu=ultrasparc -m32 -U_LP64 -U__sparc_v9__ -U__sparcv9 -DNDEBUG"
2597    CXX="g++"
2598    CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -mcpu=ultrasparc -m32 -U_LP64 -U__sparc_v9__ -U__sparcv9 -DNDEBUG"
2599    LIBS="-lm -lnsl"
2600    DEPFLAGS=""
2601else
2602    echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
2604fi
2605
2606
2607WANT_IRIX_MIPSPRO_MPI_FLAGS=0
2608echo "$as_me:$LINENO: checking preset CC    fro IRIX with MPI and optimization flags         " >&5
2609echo $ECHO_N "checking preset CC    fro IRIX with MPI and optimization flags         ... $ECHO_C" >&6
2610if (test "$with_irix_mipspro_mpi" = "yes" || ((test $use_preset = 0) && test $CXX = "CC" )) then
2611    WANT_IRIX_MIPSPRO_MPI_FLAGS=1
2612    echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
2614    CC="cc"
2615    CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -Ofast=ip35 -64 -DNDEBUG -DHAVE_MPI -DMPI_NO_CPPBIND"
2616    CXX="CC"
2617    CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -Ofast=ip35 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DNDEBUG -DHAVE_MPI -DMPI_NO_CPPBIND"
2618    LIBS="-lmpi -lsma -lm"
2619    DEPFLAGS="-LANG:std"
2620else
2621    echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6
2623fi
2624
2625WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS=0
2626echo "$as_me:$LINENO: checking preset CC    for IRIX with MPI and debugging flags            " >&5
2627echo $ECHO_N "checking preset CC    for IRIX with MPI and debugging flags            ... $ECHO_C" >&6
2628if test "$with_irix_mipspro_mpi_debug" = "yes"; then
2629    WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS=1
2630    echo "$as_me:$LINENO: result: yes" >&5
2631echo "${ECHO_T}yes" >&6
2632    CC="cc"
2633    CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -O2 -64 -DHAVE_MPI -DMPI_NO_CPPBIND"
2634    CXX="CC"
2635    CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -O2 -64  -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DHAVE_MPI -DMPI_NO_CPPBIND"
2636    LIBS="-lmpi -lsma -lm"
2637    DEPFLAGS="-LANG:std"
2638else
2639    echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6
2641fi
2642
2643WANT_IRIX_MIPSPRO_FLAGS=0
2644echo "$as_me:$LINENO: checking preset CC    for IRIX with optimization flags                 " >&5
2645echo $ECHO_N "checking preset CC    for IRIX with optimization flags                 ... $ECHO_C" >&6
2646if test "$with_irix_mipspro" = "yes"; then
2647    WANT_IRIX_MIPSPRO_FLAGS=1
2648    echo "$as_me:$LINENO: result: yes" >&5
2649echo "${ECHO_T}yes" >&6
2650    CC="cc"
2651    CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -Ofast=ip35 -64 -DNDEBUG"
2652    CXX="CC"
2653    CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182  -mips4 -Ofast=ip35 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DNDEBUG"
2654    LIBS="-lm"
2655    DEPFLAGS="-LANG:std"
2656else
2657    echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659fi
2660
2661
2662WANT_IRIX_MIPSPRO_DEBUG_FLAGS=0
2663echo "$as_me:$LINENO: checking preset CC    for IRIX with debugging flags                    " >&5
2664echo $ECHO_N "checking preset CC    for IRIX with debugging flags                    ... $ECHO_C" >&6
2665if test "$with_irix_mipspro_debug" = "yes"; then
2666    WANT_IRIX_MIPSPRO_DEBUG_FLAGS=1
2667    echo "$as_me:$LINENO: result: yes" >&5
2668echo "${ECHO_T}yes" >&6
2669    CC="cc"
2670    CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -O2 -64"
2671    CXX="CC"
2672    CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182  -mips4 -O2 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON"
2673    LIBS="-lm"
2674    DEPFLAGS="-LANG:std"
2675else
2676    echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6
2678fi
2679
2680
2681WANT_ICC_FLAGS=0
2682echo "$as_me:$LINENO: checking preset icc   for generic with optimization flags              " >&5
2683echo $ECHO_N "checking preset icc   for generic with optimization flags              ... $ECHO_C" >&6
2684if (test "$with_icc" = "yes" || ((test $use_preset = 0) && (test $CXX = "icc" || test $CXX = "icpc"))) then
2685    unset CC
2686    unset CXX
2687    WANT_ICC_FLAGS=1
2688    echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
2690    ac_ext=cc
2691ac_cpp='$CXXCPP $CPPFLAGS'
2692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2695
2696    ac_ext=cc
2697ac_cpp='$CXXCPP $CPPFLAGS'
2698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2701if test -n "$ac_tool_prefix"; then
2702  for ac_prog in $CCC icpc icc
2703  do
2704    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706echo "$as_me:$LINENO: checking for $ac_word" >&5
2707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708if test "${ac_cv_prog_CXX+set}" = set; then
2709  echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711  if test -n "$CXX"; then
2712  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717  IFS=$as_save_IFS
2718  test -z "$as_dir" && as_dir=.
2719  for ac_exec_ext in '' $ac_executable_extensions; do
2720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723    break 2
2724  fi
2725done
2726done
2727
2728fi
2729fi
2730CXX=$ac_cv_prog_CXX
2731if test -n "$CXX"; then
2732  echo "$as_me:$LINENO: result: $CXX" >&5
2733echo "${ECHO_T}$CXX" >&6
2734else
2735  echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737fi
2738
2739    test -n "$CXX" && break
2740  done
2741fi
2742if test -z "$CXX"; then
2743  ac_ct_CXX=$CXX
2744  for ac_prog in $CCC icpc icc
2745do
2746  # Extract the first word of "$ac_prog", so it can be a program name with args.
2747set dummy $ac_prog; ac_word=$2
2748echo "$as_me:$LINENO: checking for $ac_word" >&5
2749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2751  echo $ECHO_N "(cached) $ECHO_C" >&6
2752else
2753  if test -n "$ac_ct_CXX"; then
2754  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  test -z "$as_dir" && as_dir=.
2761  for ac_exec_ext in '' $ac_executable_extensions; do
2762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763    ac_cv_prog_ac_ct_CXX="$ac_prog"
2764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768done
2769
2770fi
2771fi
2772ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2773if test -n "$ac_ct_CXX"; then
2774  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2775echo "${ECHO_T}$ac_ct_CXX" >&6
2776else
2777  echo "$as_me:$LINENO: result: no" >&5
2778echo "${ECHO_T}no" >&6
2779fi
2780
2781  test -n "$ac_ct_CXX" && break
2782done
2783test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2784
2785  CXX=$ac_ct_CXX
2786fi
2787
2788
2789# Provide some information about the compiler.
2790echo "$as_me:$LINENO:" \
2791     "checking for C++ compiler version" >&5
2792ac_compiler=`set X $ac_compile; echo $2`
2793{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2794  (eval $ac_compiler --version </dev/null >&5) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }
2798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2799  (eval $ac_compiler -v </dev/null >&5) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }
2803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2804  (eval $ac_compiler -V </dev/null >&5) 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }
2808
2809echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2810echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2811if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2812  echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814  cat >conftest.$ac_ext <<_ACEOF
2815#line $LINENO "configure"
2816#include "confdefs.h"
2817
2818#ifdef F77_DUMMY_MAIN
2819#  ifdef __cplusplus
2820     extern "C"
2821#  endif
2822   int F77_DUMMY_MAIN() { return 1; }
2823#endif
2824int
2825main ()
2826{
2827#ifndef __GNUC__
2828       choke me
2829#endif
2830
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837  (eval $ac_compile) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841         { ac_try='test -s conftest.$ac_objext'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; }; then
2847  ac_compiler_gnu=yes
2848else
2849  echo "$as_me: failed program was:" >&5
2850cat conftest.$ac_ext >&5
2851ac_compiler_gnu=no
2852fi
2853rm -f conftest.$ac_objext conftest.$ac_ext
2854ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2855
2856fi
2857echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2858echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2859GXX=`test $ac_compiler_gnu = yes && echo yes`
2860ac_test_CXXFLAGS=${CXXFLAGS+set}
2861ac_save_CXXFLAGS=$CXXFLAGS
2862CXXFLAGS="-g"
2863echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2864echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2865if test "${ac_cv_prog_cxx_g+set}" = set; then
2866  echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868  cat >conftest.$ac_ext <<_ACEOF
2869#line $LINENO "configure"
2870#include "confdefs.h"
2871
2872#ifdef F77_DUMMY_MAIN
2873#  ifdef __cplusplus
2874     extern "C"
2875#  endif
2876   int F77_DUMMY_MAIN() { return 1; }
2877#endif
2878int
2879main ()
2880{
2881
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888  (eval $ac_compile) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); } &&
2892         { ac_try='test -s conftest.$ac_objext'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; }; then
2898  ac_cv_prog_cxx_g=yes
2899else
2900  echo "$as_me: failed program was:" >&5
2901cat conftest.$ac_ext >&5
2902ac_cv_prog_cxx_g=no
2903fi
2904rm -f conftest.$ac_objext conftest.$ac_ext
2905fi
2906echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2907echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2908if test "$ac_test_CXXFLAGS" = set; then
2909  CXXFLAGS=$ac_save_CXXFLAGS
2910elif test $ac_cv_prog_cxx_g = yes; then
2911  if test "$GXX" = yes; then
2912    CXXFLAGS="-g -O2"
2913  else
2914    CXXFLAGS="-g"
2915  fi
2916else
2917  if test "$GXX" = yes; then
2918    CXXFLAGS="-O2"
2919  else
2920    CXXFLAGS=
2921  fi
2922fi
2923for ac_declaration in \
2924   ''\
2925   '#include <stdlib.h>' \
2926   'extern "C" void std::exit (int) throw (); using std::exit;' \
2927   'extern "C" void std::exit (int); using std::exit;' \
2928   'extern "C" void exit (int) throw ();' \
2929   'extern "C" void exit (int);' \
2930   'void exit (int);'
2931do
2932  cat >conftest.$ac_ext <<_ACEOF
2933#line $LINENO "configure"
2934#include "confdefs.h"
2935@%:@include <stdlib.h>
2936$ac_declaration
2937#ifdef F77_DUMMY_MAIN
2938#  ifdef __cplusplus
2939     extern "C"
2940#  endif
2941   int F77_DUMMY_MAIN() { return 1; }
2942#endif
2943int
2944main ()
2945{
2946exit (42);
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953  (eval $ac_compile) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } &&
2957         { ac_try='test -s conftest.$ac_objext'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963  :
2964else
2965  echo "$as_me: failed program was:" >&5
2966cat conftest.$ac_ext >&5
2967continue
2968fi
2969rm -f conftest.$ac_objext conftest.$ac_ext
2970  cat >conftest.$ac_ext <<_ACEOF
2971#line $LINENO "configure"
2972#include "confdefs.h"
2973$ac_declaration
2974#ifdef F77_DUMMY_MAIN
2975#  ifdef __cplusplus
2976     extern "C"
2977#  endif
2978   int F77_DUMMY_MAIN() { return 1; }
2979#endif
2980int
2981main ()
2982{
2983exit (42);
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990  (eval $ac_compile) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994         { ac_try='test -s conftest.$ac_objext'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; }; then
3000  break
3001else
3002  echo "$as_me: failed program was:" >&5
3003cat conftest.$ac_ext >&5
3004fi
3005rm -f conftest.$ac_objext conftest.$ac_ext
3006done
3007rm -f conftest*
3008if test -n "$ac_declaration"; then
3009  echo '#ifdef __cplusplus' >>confdefs.h
3010  echo $ac_declaration      >>confdefs.h
3011  echo '#endif'             >>confdefs.h
3012fi
3013
3014ac_ext=cc
3015ac_cpp='$CXXCPP $CPPFLAGS'
3016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3019
3020depcc="$CXX"  am_compiler_list=
3021
3022echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3023echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3024if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3028  # We make a subdir and do the tests there.  Otherwise we can end up
3029  # making bogus files that we don't know about and never remove.  For
3030  # instance it was reported that on HP-UX the gcc test will end up
3031  # making a dummy file named `D' -- because `-MD' means `put the output
3032  # in D'.
3033  mkdir conftest.dir
3034  # Copy depcomp to subdir because otherwise we won't find it if we're
3035  # using a relative directory.
3036  cp "$am_depcomp" conftest.dir
3037  cd conftest.dir
3038
3039  am_cv_CXX_dependencies_compiler_type=none
3040  if test "$am_compiler_list" = ""; then
3041     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3042  fi
3043  for depmode in $am_compiler_list; do
3044    # We need to recreate these files for each test, as the compiler may
3045    # overwrite some of them when testing with obscure command lines.
3046    # This happens at least with the AIX C compiler.
3047    echo '#include "conftest.h"' > conftest.c
3048    echo 'int i;' > conftest.h
3049    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3050
3051    case $depmode in
3052    nosideeffect)
3053      # after this tag, mechanisms are not by side-effect, so they'll
3054      # only be used when explicitly requested
3055      if test "x$enable_dependency_tracking" = xyes; then
3056	continue
3057      else
3058	break
3059      fi
3060      ;;
3061    none) break ;;
3062    esac
3063    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3064    # mode.  It turns out that the SunPro C++ compiler does not properly
3065    # handle `-M -o', and we need to detect this.
3066    if depmode=$depmode \
3067       source=conftest.c object=conftest.o \
3068       depfile=conftest.Po tmpdepfile=conftest.TPo \
3069       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3070       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3071       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072      am_cv_CXX_dependencies_compiler_type=$depmode
3073      break
3074    fi
3075  done
3076
3077  cd ..
3078  rm -rf conftest.dir
3079else
3080  am_cv_CXX_dependencies_compiler_type=none
3081fi
3082
3083fi
3084echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3085echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3086CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3087
3088
3089    ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094
3095    ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100if test -n "$ac_tool_prefix"; then
3101  for ac_prog in icpc icc
3102  do
3103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_CC+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118  for ac_exec_ext in '' $ac_executable_extensions; do
3119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125done
3126
3127fi
3128fi
3129CC=$ac_cv_prog_CC
3130if test -n "$CC"; then
3131  echo "$as_me:$LINENO: result: $CC" >&5
3132echo "${ECHO_T}$CC" >&6
3133else
3134  echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
3136fi
3137
3138    test -n "$CC" && break
3139  done
3140fi
3141if test -z "$CC"; then
3142  ac_ct_CC=$CC
3143  for ac_prog in icpc icc
3144do
3145  # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147echo "$as_me:$LINENO: checking for $ac_word" >&5
3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  if test -n "$ac_ct_CC"; then
3153  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160  for ac_exec_ext in '' $ac_executable_extensions; do
3161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_ac_ct_CC="$ac_prog"
3163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167done
3168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
3173  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3174echo "${ECHO_T}$ac_ct_CC" >&6
3175else
3176  echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178fi
3179
3180  test -n "$ac_ct_CC" && break
3181done
3182
3183  CC=$ac_ct_CC
3184fi
3185
3186
3187test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
3188echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
3189   { (exit 1); exit 1; }; }
3190
3191# Provide some information about the compiler.
3192echo "$as_me:$LINENO:" \
3193     "checking for C compiler version" >&5
3194ac_compiler=`set X $ac_compile; echo $2`
3195{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3196  (eval $ac_compiler --version </dev/null >&5) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3201  (eval $ac_compiler -v </dev/null >&5) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }
3205{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3206  (eval $ac_compiler -V </dev/null >&5) 2>&5
3207  ac_status=$?
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }
3210
3211echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3213if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  cat >conftest.$ac_ext <<_ACEOF
3217#line $LINENO "configure"
3218#include "confdefs.h"
3219
3220#ifdef F77_DUMMY_MAIN
3221#  ifdef __cplusplus
3222     extern "C"
3223#  endif
3224   int F77_DUMMY_MAIN() { return 1; }
3225#endif
3226int
3227main ()
3228{
3229#ifndef __GNUC__
3230       choke me
3231#endif
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext
3238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239  (eval $ac_compile) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); } &&
3243         { ac_try='test -s conftest.$ac_objext'
3244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245  (eval $ac_try) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; }; then
3249  ac_compiler_gnu=yes
3250else
3251  echo "$as_me: failed program was:" >&5
3252cat conftest.$ac_ext >&5
3253ac_compiler_gnu=no
3254fi
3255rm -f conftest.$ac_objext conftest.$ac_ext
3256ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257
3258fi
3259echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3260echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3261GCC=`test $ac_compiler_gnu = yes && echo yes`
3262ac_test_CFLAGS=${CFLAGS+set}
3263ac_save_CFLAGS=$CFLAGS
3264CFLAGS="-g"
3265echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3266echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3267if test "${ac_cv_prog_cc_g+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  cat >conftest.$ac_ext <<_ACEOF
3271#line $LINENO "configure"
3272#include "confdefs.h"
3273
3274#ifdef F77_DUMMY_MAIN
3275#  ifdef __cplusplus
3276     extern "C"
3277#  endif
3278   int F77_DUMMY_MAIN() { return 1; }
3279#endif
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290  (eval $ac_compile) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294         { ac_try='test -s conftest.$ac_objext'
3295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296  (eval $ac_try) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; }; then
3300  ac_cv_prog_cc_g=yes
3301else
3302  echo "$as_me: failed program was:" >&5
3303cat conftest.$ac_ext >&5
3304ac_cv_prog_cc_g=no
3305fi
3306rm -f conftest.$ac_objext conftest.$ac_ext
3307fi
3308echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3309echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3310if test "$ac_test_CFLAGS" = set; then
3311  CFLAGS=$ac_save_CFLAGS
3312elif test $ac_cv_prog_cc_g = yes; then
3313  if test "$GCC" = yes; then
3314    CFLAGS="-g -O2"
3315  else
3316    CFLAGS="-g"
3317  fi
3318else
3319  if test "$GCC" = yes; then
3320    CFLAGS="-O2"
3321  else
3322    CFLAGS=
3323  fi
3324fi
3325# Some people use a C++ compiler to compile C.  Since we use `exit',
3326# in C++ we need to declare it.  In case someone uses the same compiler
3327# for both compiling C and C++ we need to have the C++ compiler decide
3328# the declaration of exit, since it's the most demanding environment.
3329cat >conftest.$ac_ext <<_ACEOF
3330@%:@ifndef __cplusplus
3331  choke me
3332@%:@endif
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336  (eval $ac_compile) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); } &&
3340         { ac_try='test -s conftest.$ac_objext'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; }; then
3346  for ac_declaration in \
3347   ''\
3348   '#include <stdlib.h>' \
3349   'extern "C" void std::exit (int) throw (); using std::exit;' \
3350   'extern "C" void std::exit (int); using std::exit;' \
3351   'extern "C" void exit (int) throw ();' \
3352   'extern "C" void exit (int);' \
3353   'void exit (int);'
3354do
3355  cat >conftest.$ac_ext <<_ACEOF
3356#line $LINENO "configure"
3357#include "confdefs.h"
3358@%:@include <stdlib.h>
3359$ac_declaration
3360#ifdef F77_DUMMY_MAIN
3361#  ifdef __cplusplus
3362     extern "C"
3363#  endif
3364   int F77_DUMMY_MAIN() { return 1; }
3365#endif
3366int
3367main ()
3368{
3369exit (42);
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374rm -f conftest.$ac_objext
3375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376  (eval $ac_compile) 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); } &&
3380         { ac_try='test -s conftest.$ac_objext'
3381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382  (eval $ac_try) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }; }; then
3386  :
3387else
3388  echo "$as_me: failed program was:" >&5
3389cat conftest.$ac_ext >&5
3390continue
3391fi
3392rm -f conftest.$ac_objext conftest.$ac_ext
3393  cat >conftest.$ac_ext <<_ACEOF
3394#line $LINENO "configure"
3395#include "confdefs.h"
3396$ac_declaration
3397#ifdef F77_DUMMY_MAIN
3398#  ifdef __cplusplus
3399     extern "C"
3400#  endif
3401   int F77_DUMMY_MAIN() { return 1; }
3402#endif
3403int
3404main ()
3405{
3406exit (42);
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413  (eval $ac_compile) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } &&
3417         { ac_try='test -s conftest.$ac_objext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  break
3424else
3425  echo "$as_me: failed program was:" >&5
3426cat conftest.$ac_ext >&5
3427fi
3428rm -f conftest.$ac_objext conftest.$ac_ext
3429done
3430rm -f conftest*
3431if test -n "$ac_declaration"; then
3432  echo '#ifdef __cplusplus' >>confdefs.h
3433  echo $ac_declaration      >>confdefs.h
3434  echo '#endif'             >>confdefs.h
3435fi
3436
3437else
3438  echo "$as_me: failed program was:" >&5
3439cat conftest.$ac_ext >&5
3440fi
3441rm -f conftest.$ac_objext conftest.$ac_ext
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448depcc="$CC"   am_compiler_list=
3449
3450echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3452if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456  # We make a subdir and do the tests there.  Otherwise we can end up
3457  # making bogus files that we don't know about and never remove.  For
3458  # instance it was reported that on HP-UX the gcc test will end up
3459  # making a dummy file named `D' -- because `-MD' means `put the output
3460  # in D'.
3461  mkdir conftest.dir
3462  # Copy depcomp to subdir because otherwise we won't find it if we're
3463  # using a relative directory.
3464  cp "$am_depcomp" conftest.dir
3465  cd conftest.dir
3466
3467  am_cv_CC_dependencies_compiler_type=none
3468  if test "$am_compiler_list" = ""; then
3469     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3470  fi
3471  for depmode in $am_compiler_list; do
3472    # We need to recreate these files for each test, as the compiler may
3473    # overwrite some of them when testing with obscure command lines.
3474    # This happens at least with the AIX C compiler.
3475    echo '#include "conftest.h"' > conftest.c
3476    echo 'int i;' > conftest.h
3477    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3478
3479    case $depmode in
3480    nosideeffect)
3481      # after this tag, mechanisms are not by side-effect, so they'll
3482      # only be used when explicitly requested
3483      if test "x$enable_dependency_tracking" = xyes; then
3484	continue
3485      else
3486	break
3487      fi
3488      ;;
3489    none) break ;;
3490    esac
3491    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3492    # mode.  It turns out that the SunPro C++ compiler does not properly
3493    # handle `-M -o', and we need to detect this.
3494    if depmode=$depmode \
3495       source=conftest.c object=conftest.o \
3496       depfile=conftest.Po tmpdepfile=conftest.TPo \
3497       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3498       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3499       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500      am_cv_CC_dependencies_compiler_type=$depmode
3501      break
3502    fi
3503  done
3504
3505  cd ..
3506  rm -rf conftest.dir
3507else
3508  am_cv_CC_dependencies_compiler_type=none
3509fi
3510
3511fi
3512echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3513echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3514CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3515
3516
3517    CFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG"
3518    CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG"
3519    LIBS="-lm -lnsl"
3520else
3521    echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523fi
3524
3525WANT_ICC_DEBUG_FLAGS=0
3526echo "$as_me:$LINENO: checking preset icc   for generic with debugging flags                 " >&5
3527echo $ECHO_N "checking preset icc   for generic with debugging flags                 ... $ECHO_C" >&6
3528if test "$with_icc_debug" = "yes"; then
3529    unset CC
3530    unset CXX
3531    WANT_ICC_DEBUG_FLAGS=1
3532    echo "$as_me:$LINENO: result: yes" >&5
3533echo "${ECHO_T}yes" >&6
3534    ac_ext=cc
3535ac_cpp='$CXXCPP $CPPFLAGS'
3536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539
3540    ac_ext=cc
3541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545if test -n "$ac_tool_prefix"; then
3546  for ac_prog in $CCC icpc icc
3547  do
3548    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3549set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3550echo "$as_me:$LINENO: checking for $ac_word" >&5
3551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552if test "${ac_cv_prog_CXX+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  if test -n "$CXX"; then
3556  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3557else
3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561  IFS=$as_save_IFS
3562  test -z "$as_dir" && as_dir=.
3563  for ac_exec_ext in '' $ac_executable_extensions; do
3564  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3566    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567    break 2
3568  fi
3569done
3570done
3571
3572fi
3573fi
3574CXX=$ac_cv_prog_CXX
3575if test -n "$CXX"; then
3576  echo "$as_me:$LINENO: result: $CXX" >&5
3577echo "${ECHO_T}$CXX" >&6
3578else
3579  echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
3581fi
3582
3583    test -n "$CXX" && break
3584  done
3585fi
3586if test -z "$CXX"; then
3587  ac_ct_CXX=$CXX
3588  for ac_prog in $CCC icpc icc
3589do
3590  # Extract the first word of "$ac_prog", so it can be a program name with args.
3591set dummy $ac_prog; ac_word=$2
3592echo "$as_me:$LINENO: checking for $ac_word" >&5
3593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  if test -n "$ac_ct_CXX"; then
3598  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  test -z "$as_dir" && as_dir=.
3605  for ac_exec_ext in '' $ac_executable_extensions; do
3606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_ac_ct_CXX="$ac_prog"
3608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612done
3613
3614fi
3615fi
3616ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3617if test -n "$ac_ct_CXX"; then
3618  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3619echo "${ECHO_T}$ac_ct_CXX" >&6
3620else
3621  echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623fi
3624
3625  test -n "$ac_ct_CXX" && break
3626done
3627test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3628
3629  CXX=$ac_ct_CXX
3630fi
3631
3632
3633# Provide some information about the compiler.
3634echo "$as_me:$LINENO:" \
3635     "checking for C++ compiler version" >&5
3636ac_compiler=`set X $ac_compile; echo $2`
3637{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3638  (eval $ac_compiler --version </dev/null >&5) 2>&5
3639  ac_status=$?
3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); }
3642{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3643  (eval $ac_compiler -v </dev/null >&5) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }
3647{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3648  (eval $ac_compiler -V </dev/null >&5) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }
3652
3653echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3654echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3655if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  cat >conftest.$ac_ext <<_ACEOF
3659#line $LINENO "configure"
3660#include "confdefs.h"
3661
3662#ifdef F77_DUMMY_MAIN
3663#  ifdef __cplusplus
3664     extern "C"
3665#  endif
3666   int F77_DUMMY_MAIN() { return 1; }
3667#endif
3668int
3669main ()
3670{
3671#ifndef __GNUC__
3672       choke me
3673#endif
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext
3680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681  (eval $ac_compile) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); } &&
3685         { ac_try='test -s conftest.$ac_objext'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; }; then
3691  ac_compiler_gnu=yes
3692else
3693  echo "$as_me: failed program was:" >&5
3694cat conftest.$ac_ext >&5
3695ac_compiler_gnu=no
3696fi
3697rm -f conftest.$ac_objext conftest.$ac_ext
3698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3699
3700fi
3701echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3702echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3703GXX=`test $ac_compiler_gnu = yes && echo yes`
3704ac_test_CXXFLAGS=${CXXFLAGS+set}
3705ac_save_CXXFLAGS=$CXXFLAGS
3706CXXFLAGS="-g"
3707echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3708echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3709if test "${ac_cv_prog_cxx_g+set}" = set; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  cat >conftest.$ac_ext <<_ACEOF
3713#line $LINENO "configure"
3714#include "confdefs.h"
3715
3716#ifdef F77_DUMMY_MAIN
3717#  ifdef __cplusplus
3718     extern "C"
3719#  endif
3720   int F77_DUMMY_MAIN() { return 1; }
3721#endif
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730rm -f conftest.$ac_objext
3731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732  (eval $ac_compile) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } &&
3736         { ac_try='test -s conftest.$ac_objext'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; }; then
3742  ac_cv_prog_cxx_g=yes
3743else
3744  echo "$as_me: failed program was:" >&5
3745cat conftest.$ac_ext >&5
3746ac_cv_prog_cxx_g=no
3747fi
3748rm -f conftest.$ac_objext conftest.$ac_ext
3749fi
3750echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3751echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3752if test "$ac_test_CXXFLAGS" = set; then
3753  CXXFLAGS=$ac_save_CXXFLAGS
3754elif test $ac_cv_prog_cxx_g = yes; then
3755  if test "$GXX" = yes; then
3756    CXXFLAGS="-g -O2"
3757  else
3758    CXXFLAGS="-g"
3759  fi
3760else
3761  if test "$GXX" = yes; then
3762    CXXFLAGS="-O2"
3763  else
3764    CXXFLAGS=
3765  fi
3766fi
3767for ac_declaration in \
3768   ''\
3769   '#include <stdlib.h>' \
3770   'extern "C" void std::exit (int) throw (); using std::exit;' \
3771   'extern "C" void std::exit (int); using std::exit;' \
3772   'extern "C" void exit (int) throw ();' \
3773   'extern "C" void exit (int);' \
3774   'void exit (int);'
3775do
3776  cat >conftest.$ac_ext <<_ACEOF
3777#line $LINENO "configure"
3778#include "confdefs.h"
3779@%:@include <stdlib.h>
3780$ac_declaration
3781#ifdef F77_DUMMY_MAIN
3782#  ifdef __cplusplus
3783     extern "C"
3784#  endif
3785   int F77_DUMMY_MAIN() { return 1; }
3786#endif
3787int
3788main ()
3789{
3790exit (42);
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795rm -f conftest.$ac_objext
3796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797  (eval $ac_compile) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); } &&
3801         { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  :
3808else
3809  echo "$as_me: failed program was:" >&5
3810cat conftest.$ac_ext >&5
3811continue
3812fi
3813rm -f conftest.$ac_objext conftest.$ac_ext
3814  cat >conftest.$ac_ext <<_ACEOF
3815#line $LINENO "configure"
3816#include "confdefs.h"
3817$ac_declaration
3818#ifdef F77_DUMMY_MAIN
3819#  ifdef __cplusplus
3820     extern "C"
3821#  endif
3822   int F77_DUMMY_MAIN() { return 1; }
3823#endif
3824int
3825main ()
3826{
3827exit (42);
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832rm -f conftest.$ac_objext
3833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834  (eval $ac_compile) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); } &&
3838         { ac_try='test -s conftest.$ac_objext'
3839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840  (eval $ac_try) 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; }; then
3844  break
3845else
3846  echo "$as_me: failed program was:" >&5
3847cat conftest.$ac_ext >&5
3848fi
3849rm -f conftest.$ac_objext conftest.$ac_ext
3850done
3851rm -f conftest*
3852if test -n "$ac_declaration"; then
3853  echo '#ifdef __cplusplus' >>confdefs.h
3854  echo $ac_declaration      >>confdefs.h
3855  echo '#endif'             >>confdefs.h
3856fi
3857
3858ac_ext=cc
3859ac_cpp='$CXXCPP $CPPFLAGS'
3860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863
3864depcc="$CXX"  am_compiler_list=
3865
3866echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3867echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3868if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3869  echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3872  # We make a subdir and do the tests there.  Otherwise we can end up
3873  # making bogus files that we don't know about and never remove.  For
3874  # instance it was reported that on HP-UX the gcc test will end up
3875  # making a dummy file named `D' -- because `-MD' means `put the output
3876  # in D'.
3877  mkdir conftest.dir
3878  # Copy depcomp to subdir because otherwise we won't find it if we're
3879  # using a relative directory.
3880  cp "$am_depcomp" conftest.dir
3881  cd conftest.dir
3882
3883  am_cv_CXX_dependencies_compiler_type=none
3884  if test "$am_compiler_list" = ""; then
3885     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3886  fi
3887  for depmode in $am_compiler_list; do
3888    # We need to recreate these files for each test, as the compiler may
3889    # overwrite some of them when testing with obscure command lines.
3890    # This happens at least with the AIX C compiler.
3891    echo '#include "conftest.h"' > conftest.c
3892    echo 'int i;' > conftest.h
3893    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3894
3895    case $depmode in
3896    nosideeffect)
3897      # after this tag, mechanisms are not by side-effect, so they'll
3898      # only be used when explicitly requested
3899      if test "x$enable_dependency_tracking" = xyes; then
3900	continue
3901      else
3902	break
3903      fi
3904      ;;
3905    none) break ;;
3906    esac
3907    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3908    # mode.  It turns out that the SunPro C++ compiler does not properly
3909    # handle `-M -o', and we need to detect this.
3910    if depmode=$depmode \
3911       source=conftest.c object=conftest.o \
3912       depfile=conftest.Po tmpdepfile=conftest.TPo \
3913       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3914       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3915       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3916      am_cv_CXX_dependencies_compiler_type=$depmode
3917      break
3918    fi
3919  done
3920
3921  cd ..
3922  rm -rf conftest.dir
3923else
3924  am_cv_CXX_dependencies_compiler_type=none
3925fi
3926
3927fi
3928echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3929echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3930CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3931
3932
3933    ac_ext=c
3934ac_cpp='$CPP $CPPFLAGS'
3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939    ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944if test -n "$ac_tool_prefix"; then
3945  for ac_prog in icpc icc
3946  do
3947    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949echo "$as_me:$LINENO: checking for $ac_word" >&5
3950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951if test "${ac_cv_prog_CC+set}" = set; then
3952  echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954  if test -n "$CC"; then
3955  ac_cv_prog_CC="$CC" # Let the user override the test.
3956else
3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH
3959do
3960  IFS=$as_save_IFS
3961  test -z "$as_dir" && as_dir=.
3962  for ac_exec_ext in '' $ac_executable_extensions; do
3963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966    break 2
3967  fi
3968done
3969done
3970
3971fi
3972fi
3973CC=$ac_cv_prog_CC
3974if test -n "$CC"; then
3975  echo "$as_me:$LINENO: result: $CC" >&5
3976echo "${ECHO_T}$CC" >&6
3977else
3978  echo "$as_me:$LINENO: result: no" >&5
3979echo "${ECHO_T}no" >&6
3980fi
3981
3982    test -n "$CC" && break
3983  done
3984fi
3985if test -z "$CC"; then
3986  ac_ct_CC=$CC
3987  for ac_prog in icpc icc
3988do
3989  # Extract the first word of "$ac_prog", so it can be a program name with args.
3990set dummy $ac_prog; ac_word=$2
3991echo "$as_me:$LINENO: checking for $ac_word" >&5
3992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994  echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996  if test -n "$ac_ct_CC"; then
3997  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004  for ac_exec_ext in '' $ac_executable_extensions; do
4005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006    ac_cv_prog_ac_ct_CC="$ac_prog"
4007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008    break 2
4009  fi
4010done
4011done
4012
4013fi
4014fi
4015ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016if test -n "$ac_ct_CC"; then
4017  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018echo "${ECHO_T}$ac_ct_CC" >&6
4019else
4020  echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022fi
4023
4024  test -n "$ac_ct_CC" && break
4025done
4026
4027  CC=$ac_ct_CC
4028fi
4029
4030
4031test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
4032echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
4033   { (exit 1); exit 1; }; }
4034
4035# Provide some information about the compiler.
4036echo "$as_me:$LINENO:" \
4037     "checking for C compiler version" >&5
4038ac_compiler=`set X $ac_compile; echo $2`
4039{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4040  (eval $ac_compiler --version </dev/null >&5) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }
4044{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4045  (eval $ac_compiler -v </dev/null >&5) 2>&5
4046  ac_status=$?
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); }
4049{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4050  (eval $ac_compiler -V </dev/null >&5) 2>&5
4051  ac_status=$?
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); }
4054
4055echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4056echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4057if test "${ac_cv_c_compiler_gnu+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  cat >conftest.$ac_ext <<_ACEOF
4061#line $LINENO "configure"
4062#include "confdefs.h"
4063
4064#ifdef F77_DUMMY_MAIN
4065#  ifdef __cplusplus
4066     extern "C"
4067#  endif
4068   int F77_DUMMY_MAIN() { return 1; }
4069#endif
4070int
4071main ()
4072{
4073#ifndef __GNUC__
4074       choke me
4075#endif
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083  (eval $ac_compile) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); } &&
4087         { ac_try='test -s conftest.$ac_objext'
4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089  (eval $ac_try) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; }; then
4093  ac_compiler_gnu=yes
4094else
4095  echo "$as_me: failed program was:" >&5
4096cat conftest.$ac_ext >&5
4097ac_compiler_gnu=no
4098fi
4099rm -f conftest.$ac_objext conftest.$ac_ext
4100ac_cv_c_compiler_gnu=$ac_compiler_gnu
4101
4102fi
4103echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4104echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4105GCC=`test $ac_compiler_gnu = yes && echo yes`
4106ac_test_CFLAGS=${CFLAGS+set}
4107ac_save_CFLAGS=$CFLAGS
4108CFLAGS="-g"
4109echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4110echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4111if test "${ac_cv_prog_cc_g+set}" = set; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114  cat >conftest.$ac_ext <<_ACEOF
4115#line $LINENO "configure"
4116#include "confdefs.h"
4117
4118#ifdef F77_DUMMY_MAIN
4119#  ifdef __cplusplus
4120     extern "C"
4121#  endif
4122   int F77_DUMMY_MAIN() { return 1; }
4123#endif
4124int
4125main ()
4126{
4127
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134  (eval $ac_compile) 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } &&
4138         { ac_try='test -s conftest.$ac_objext'
4139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140  (eval $ac_try) 2>&5
4141  ac_status=$?
4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143  (exit $ac_status); }; }; then
4144  ac_cv_prog_cc_g=yes
4145else
4146  echo "$as_me: failed program was:" >&5
4147cat conftest.$ac_ext >&5
4148ac_cv_prog_cc_g=no
4149fi
4150rm -f conftest.$ac_objext conftest.$ac_ext
4151fi
4152echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4153echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4154if test "$ac_test_CFLAGS" = set; then
4155  CFLAGS=$ac_save_CFLAGS
4156elif test $ac_cv_prog_cc_g = yes; then
4157  if test "$GCC" = yes; then
4158    CFLAGS="-g -O2"
4159  else
4160    CFLAGS="-g"
4161  fi
4162else
4163  if test "$GCC" = yes; then
4164    CFLAGS="-O2"
4165  else
4166    CFLAGS=
4167  fi
4168fi
4169# Some people use a C++ compiler to compile C.  Since we use `exit',
4170# in C++ we need to declare it.  In case someone uses the same compiler
4171# for both compiling C and C++ we need to have the C++ compiler decide
4172# the declaration of exit, since it's the most demanding environment.
4173cat >conftest.$ac_ext <<_ACEOF
4174@%:@ifndef __cplusplus
4175  choke me
4176@%:@endif
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180  (eval $ac_compile) 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); } &&
4184         { ac_try='test -s conftest.$ac_objext'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; }; then
4190  for ac_declaration in \
4191   ''\
4192   '#include <stdlib.h>' \
4193   'extern "C" void std::exit (int) throw (); using std::exit;' \
4194   'extern "C" void std::exit (int); using std::exit;' \
4195   'extern "C" void exit (int) throw ();' \
4196   'extern "C" void exit (int);' \
4197   'void exit (int);'
4198do
4199  cat >conftest.$ac_ext <<_ACEOF
4200#line $LINENO "configure"
4201#include "confdefs.h"
4202@%:@include <stdlib.h>
4203$ac_declaration
4204#ifdef F77_DUMMY_MAIN
4205#  ifdef __cplusplus
4206     extern "C"
4207#  endif
4208   int F77_DUMMY_MAIN() { return 1; }
4209#endif
4210int
4211main ()
4212{
4213exit (42);
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220  (eval $ac_compile) 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } &&
4224         { ac_try='test -s conftest.$ac_objext'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; }; then
4230  :
4231else
4232  echo "$as_me: failed program was:" >&5
4233cat conftest.$ac_ext >&5
4234continue
4235fi
4236rm -f conftest.$ac_objext conftest.$ac_ext
4237  cat >conftest.$ac_ext <<_ACEOF
4238#line $LINENO "configure"
4239#include "confdefs.h"
4240$ac_declaration
4241#ifdef F77_DUMMY_MAIN
4242#  ifdef __cplusplus
4243     extern "C"
4244#  endif
4245   int F77_DUMMY_MAIN() { return 1; }
4246#endif
4247int
4248main ()
4249{
4250exit (42);
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257  (eval $ac_compile) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } &&
4261         { ac_try='test -s conftest.$ac_objext'
4262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263  (eval $ac_try) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }; }; then
4267  break
4268else
4269  echo "$as_me: failed program was:" >&5
4270cat conftest.$ac_ext >&5
4271fi
4272rm -f conftest.$ac_objext conftest.$ac_ext
4273done
4274rm -f conftest*
4275if test -n "$ac_declaration"; then
4276  echo '#ifdef __cplusplus' >>confdefs.h
4277  echo $ac_declaration      >>confdefs.h
4278  echo '#endif'             >>confdefs.h
4279fi
4280
4281else
4282  echo "$as_me: failed program was:" >&5
4283cat conftest.$ac_ext >&5
4284fi
4285rm -f conftest.$ac_objext conftest.$ac_ext
4286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292depcc="$CC"   am_compiler_list=
4293
4294echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4295echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4296if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4297  echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4300  # We make a subdir and do the tests there.  Otherwise we can end up
4301  # making bogus files that we don't know about and never remove.  For
4302  # instance it was reported that on HP-UX the gcc test will end up
4303  # making a dummy file named `D' -- because `-MD' means `put the output
4304  # in D'.
4305  mkdir conftest.dir
4306  # Copy depcomp to subdir because otherwise we won't find it if we're
4307  # using a relative directory.
4308  cp "$am_depcomp" conftest.dir
4309  cd conftest.dir
4310
4311  am_cv_CC_dependencies_compiler_type=none
4312  if test "$am_compiler_list" = ""; then
4313     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4314  fi
4315  for depmode in $am_compiler_list; do
4316    # We need to recreate these files for each test, as the compiler may
4317    # overwrite some of them when testing with obscure command lines.
4318    # This happens at least with the AIX C compiler.
4319    echo '#include "conftest.h"' > conftest.c
4320    echo 'int i;' > conftest.h
4321    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4322
4323    case $depmode in
4324    nosideeffect)
4325      # after this tag, mechanisms are not by side-effect, so they'll
4326      # only be used when explicitly requested
4327      if test "x$enable_dependency_tracking" = xyes; then
4328	continue
4329      else
4330	break
4331      fi
4332      ;;
4333    none) break ;;
4334    esac
4335    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4336    # mode.  It turns out that the SunPro C++ compiler does not properly
4337    # handle `-M -o', and we need to detect this.
4338    if depmode=$depmode \
4339       source=conftest.c object=conftest.o \
4340       depfile=conftest.Po tmpdepfile=conftest.TPo \
4341       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4342       grep conftest.h conftest.Po > /dev/null 2>&1 &&
4343       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4344      am_cv_CC_dependencies_compiler_type=$depmode
4345      break
4346    fi
4347  done
4348
4349  cd ..
4350  rm -rf conftest.dir
4351else
4352  am_cv_CC_dependencies_compiler_type=none
4353fi
4354
4355fi
4356echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4357echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4358CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4359
4360
4361    CFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict"
4362    CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict"
4363    LIBS="-lm -lnsl"
4364else
4365    echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367fi
4368
4369WANT_ICC_MPICH_XEON_FLAGS=0
4370echo "$as_me:$LINENO: checking preset icc   for generic with MPICH flags                     " >&5
4371echo $ECHO_N "checking preset icc   for generic with MPICH flags                     ... $ECHO_C" >&6
4372if test "$with_icc_mpich_xeon" = "yes"; then
4373    unset CC
4374    unset CXX
4375    WANT_ICC_MPICH_XEON_FLAGS=1
4376    echo "$as_me:$LINENO: result: yes" >&5
4377echo "${ECHO_T}yes" >&6
4378    CC="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-intel80/bin/mpicc"
4379    CFLAGS="-Wall -wd810,383,981,279,444 -O3 -ip -static -DNDEBUG -DHAVE_MPI"
4380    CXX="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-intel80/bin/mpicxx"
4381    CXXFLAGS="-Wall -wd810,383,981,279,444 -O3 -ip -static -DNDEBUG -DHAVE_MPI"
4382    LIBS="-lm -lnsl"
4383else
4384    echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
4386fi
4387
4388
4389WANT_ICC_MPICH_FLAGS=0
4390echo "$as_me:$LINENO: checking preset icc   for generic with MPICH and optimization flags    " >&5
4391echo $ECHO_N "checking preset icc   for generic with MPICH and optimization flags    ... $ECHO_C" >&6
4392if (test "$with_icc_mpich" = "yes") then
4393    unset CC
4394    unset CXX
4395    WANT_ICC_MPICH_FLAGS=1
4396    echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398    ac_ext=cc
4399ac_cpp='$CXXCPP $CPPFLAGS'
4400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4403
4404    ac_ext=cc
4405ac_cpp='$CXXCPP $CPPFLAGS'
4406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4409if test -n "$ac_tool_prefix"; then
4410  for ac_prog in $CCC mpiCC mpic++ mpicxx
4411  do
4412    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4414echo "$as_me:$LINENO: checking for $ac_word" >&5
4415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416if test "${ac_cv_prog_CXX+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  if test -n "$CXX"; then
4420  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4421else
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427  for ac_exec_ext in '' $ac_executable_extensions; do
4428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431    break 2
4432  fi
4433done
4434done
4435
4436fi
4437fi
4438CXX=$ac_cv_prog_CXX
4439if test -n "$CXX"; then
4440  echo "$as_me:$LINENO: result: $CXX" >&5
4441echo "${ECHO_T}$CXX" >&6
4442else
4443  echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445fi
4446
4447    test -n "$CXX" && break
4448  done
4449fi
4450if test -z "$CXX"; then
4451  ac_ct_CXX=$CXX
4452  for ac_prog in $CCC mpiCC mpic++ mpicxx
4453do
4454  # Extract the first word of "$ac_prog", so it can be a program name with args.
4455set dummy $ac_prog; ac_word=$2
4456echo "$as_me:$LINENO: checking for $ac_word" >&5
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4459  echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461  if test -n "$ac_ct_CXX"; then
4462  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467  IFS=$as_save_IFS
4468  test -z "$as_dir" && as_dir=.
4469  for ac_exec_ext in '' $ac_executable_extensions; do
4470  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471    ac_cv_prog_ac_ct_CXX="$ac_prog"
4472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473    break 2
4474  fi
4475done
4476done
4477
4478fi
4479fi
4480ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4481if test -n "$ac_ct_CXX"; then
4482  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4483echo "${ECHO_T}$ac_ct_CXX" >&6
4484else
4485  echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6
4487fi
4488
4489  test -n "$ac_ct_CXX" && break
4490done
4491test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4492
4493  CXX=$ac_ct_CXX
4494fi
4495
4496
4497# Provide some information about the compiler.
4498echo "$as_me:$LINENO:" \
4499     "checking for C++ compiler version" >&5
4500ac_compiler=`set X $ac_compile; echo $2`
4501{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4502  (eval $ac_compiler --version </dev/null >&5) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }
4506{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4507  (eval $ac_compiler -v </dev/null >&5) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }
4511{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4512  (eval $ac_compiler -V </dev/null >&5) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }
4516
4517echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4518echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4519if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  cat >conftest.$ac_ext <<_ACEOF
4523#line $LINENO "configure"
4524#include "confdefs.h"
4525
4526#ifdef F77_DUMMY_MAIN
4527#  ifdef __cplusplus
4528     extern "C"
4529#  endif
4530   int F77_DUMMY_MAIN() { return 1; }
4531#endif
4532int
4533main ()
4534{
4535#ifndef __GNUC__
4536       choke me
4537#endif
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545  (eval $ac_compile) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } &&
4549         { ac_try='test -s conftest.$ac_objext'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; }; then
4555  ac_compiler_gnu=yes
4556else
4557  echo "$as_me: failed program was:" >&5
4558cat conftest.$ac_ext >&5
4559ac_compiler_gnu=no
4560fi
4561rm -f conftest.$ac_objext conftest.$ac_ext
4562ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4563
4564fi
4565echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4566echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4567GXX=`test $ac_compiler_gnu = yes && echo yes`
4568ac_test_CXXFLAGS=${CXXFLAGS+set}
4569ac_save_CXXFLAGS=$CXXFLAGS
4570CXXFLAGS="-g"
4571echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4572echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4573if test "${ac_cv_prog_cxx_g+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  cat >conftest.$ac_ext <<_ACEOF
4577#line $LINENO "configure"
4578#include "confdefs.h"
4579
4580#ifdef F77_DUMMY_MAIN
4581#  ifdef __cplusplus
4582     extern "C"
4583#  endif
4584   int F77_DUMMY_MAIN() { return 1; }
4585#endif
4586int
4587main ()
4588{
4589
4590  ;
4591  return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext
4595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596  (eval $ac_compile) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); } &&
4600         { ac_try='test -s conftest.$ac_objext'
4601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602  (eval $ac_try) 2>&5
4603  ac_status=$?
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); }; }; then
4606  ac_cv_prog_cxx_g=yes
4607else
4608  echo "$as_me: failed program was:" >&5
4609cat conftest.$ac_ext >&5
4610ac_cv_prog_cxx_g=no
4611fi
4612rm -f conftest.$ac_objext conftest.$ac_ext
4613fi
4614echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4615echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4616if test "$ac_test_CXXFLAGS" = set; then
4617  CXXFLAGS=$ac_save_CXXFLAGS
4618elif test $ac_cv_prog_cxx_g = yes; then
4619  if test "$GXX" = yes; then
4620    CXXFLAGS="-g -O2"
4621  else
4622    CXXFLAGS="-g"
4623  fi
4624else
4625  if test "$GXX" = yes; then
4626    CXXFLAGS="-O2"
4627  else
4628    CXXFLAGS=
4629  fi
4630fi
4631for ac_declaration in \
4632   ''\
4633   '#include <stdlib.h>' \
4634   'extern "C" void std::exit (int) throw (); using std::exit;' \
4635   'extern "C" void std::exit (int); using std::exit;' \
4636   'extern "C" void exit (int) throw ();' \
4637   'extern "C" void exit (int);' \
4638   'void exit (int);'
4639do
4640  cat >conftest.$ac_ext <<_ACEOF
4641#line $LINENO "configure"
4642#include "confdefs.h"
4643@%:@include <stdlib.h>
4644$ac_declaration
4645#ifdef F77_DUMMY_MAIN
4646#  ifdef __cplusplus
4647     extern "C"
4648#  endif
4649   int F77_DUMMY_MAIN() { return 1; }
4650#endif
4651int
4652main ()
4653{
4654exit (42);
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659rm -f conftest.$ac_objext
4660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661  (eval $ac_compile) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } &&
4665         { ac_try='test -s conftest.$ac_objext'
4666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667  (eval $ac_try) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; }; then
4671  :
4672else
4673  echo "$as_me: failed program was:" >&5
4674cat conftest.$ac_ext >&5
4675continue
4676fi
4677rm -f conftest.$ac_objext conftest.$ac_ext
4678  cat >conftest.$ac_ext <<_ACEOF
4679#line $LINENO "configure"
4680#include "confdefs.h"
4681$ac_declaration
4682#ifdef F77_DUMMY_MAIN
4683#  ifdef __cplusplus
4684     extern "C"
4685#  endif
4686   int F77_DUMMY_MAIN() { return 1; }
4687#endif
4688int
4689main ()
4690{
4691exit (42);
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696rm -f conftest.$ac_objext
4697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698  (eval $ac_compile) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); } &&
4702         { ac_try='test -s conftest.$ac_objext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  break
4709else
4710  echo "$as_me: failed program was:" >&5
4711cat conftest.$ac_ext >&5
4712fi
4713rm -f conftest.$ac_objext conftest.$ac_ext
4714done
4715rm -f conftest*
4716if test -n "$ac_declaration"; then
4717  echo '#ifdef __cplusplus' >>confdefs.h
4718  echo $ac_declaration      >>confdefs.h
4719  echo '#endif'             >>confdefs.h
4720fi
4721
4722ac_ext=cc
4723ac_cpp='$CXXCPP $CPPFLAGS'
4724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4727
4728depcc="$CXX"  am_compiler_list=
4729
4730echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4731echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4732if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4736  # We make a subdir and do the tests there.  Otherwise we can end up
4737  # making bogus files that we don't know about and never remove.  For
4738  # instance it was reported that on HP-UX the gcc test will end up
4739  # making a dummy file named `D' -- because `-MD' means `put the output
4740  # in D'.
4741  mkdir conftest.dir
4742  # Copy depcomp to subdir because otherwise we won't find it if we're
4743  # using a relative directory.
4744  cp "$am_depcomp" conftest.dir
4745  cd conftest.dir
4746
4747  am_cv_CXX_dependencies_compiler_type=none
4748  if test "$am_compiler_list" = ""; then
4749     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4750  fi
4751  for depmode in $am_compiler_list; do
4752    # We need to recreate these files for each test, as the compiler may
4753    # overwrite some of them when testing with obscure command lines.
4754    # This happens at least with the AIX C compiler.
4755    echo '#include "conftest.h"' > conftest.c
4756    echo 'int i;' > conftest.h
4757    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4758
4759    case $depmode in
4760    nosideeffect)
4761      # after this tag, mechanisms are not by side-effect, so they'll
4762      # only be used when explicitly requested
4763      if test "x$enable_dependency_tracking" = xyes; then
4764	continue
4765      else
4766	break
4767      fi
4768      ;;
4769    none) break ;;
4770    esac
4771    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4772    # mode.  It turns out that the SunPro C++ compiler does not properly
4773    # handle `-M -o', and we need to detect this.
4774    if depmode=$depmode \
4775       source=conftest.c object=conftest.o \
4776       depfile=conftest.Po tmpdepfile=conftest.TPo \
4777       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4778       grep conftest.h conftest.Po > /dev/null 2>&1 &&
4779       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4780      am_cv_CXX_dependencies_compiler_type=$depmode
4781      break
4782    fi
4783  done
4784
4785  cd ..
4786  rm -rf conftest.dir
4787else
4788  am_cv_CXX_dependencies_compiler_type=none
4789fi
4790
4791fi
4792echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4793echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4794CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4795
4796
4797    ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803    ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808if test -n "$ac_tool_prefix"; then
4809  for ac_prog in mpicc
4810  do
4811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_CC+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  if test -n "$CC"; then
4819  ac_cv_prog_CC="$CC" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826  for ac_exec_ext in '' $ac_executable_extensions; do
4827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830    break 2
4831  fi
4832done
4833done
4834
4835fi
4836fi
4837CC=$ac_cv_prog_CC
4838if test -n "$CC"; then
4839  echo "$as_me:$LINENO: result: $CC" >&5
4840echo "${ECHO_T}$CC" >&6
4841else
4842  echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
4844fi
4845
4846    test -n "$CC" && break
4847  done
4848fi
4849if test -z "$CC"; then
4850  ac_ct_CC=$CC
4851  for ac_prog in mpicc
4852do
4853  # Extract the first word of "$ac_prog", so it can be a program name with args.
4854set dummy $ac_prog; ac_word=$2
4855echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  if test -n "$ac_ct_CC"; then
4861  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868  for ac_exec_ext in '' $ac_executable_extensions; do
4869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870    ac_cv_prog_ac_ct_CC="$ac_prog"
4871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875done
4876
4877fi
4878fi
4879ac_ct_CC=$ac_cv_prog_ac_ct_CC
4880if test -n "$ac_ct_CC"; then
4881  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4882echo "${ECHO_T}$ac_ct_CC" >&6
4883else
4884  echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888  test -n "$ac_ct_CC" && break
4889done
4890
4891  CC=$ac_ct_CC
4892fi
4893
4894
4895test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
4896echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
4897   { (exit 1); exit 1; }; }
4898
4899# Provide some information about the compiler.
4900echo "$as_me:$LINENO:" \
4901     "checking for C compiler version" >&5
4902ac_compiler=`set X $ac_compile; echo $2`
4903{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4904  (eval $ac_compiler --version </dev/null >&5) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }
4908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4909  (eval $ac_compiler -v </dev/null >&5) 2>&5
4910  ac_status=$?
4911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); }
4913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4914  (eval $ac_compiler -V </dev/null >&5) 2>&5
4915  ac_status=$?
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); }
4918
4919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4921if test "${ac_cv_c_compiler_gnu+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  cat >conftest.$ac_ext <<_ACEOF
4925#line $LINENO "configure"
4926#include "confdefs.h"
4927
4928#ifdef F77_DUMMY_MAIN
4929#  ifdef __cplusplus
4930     extern "C"
4931#  endif
4932   int F77_DUMMY_MAIN() { return 1; }
4933#endif
4934int
4935main ()
4936{
4937#ifndef __GNUC__
4938       choke me
4939#endif
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947  (eval $ac_compile) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); } &&
4951         { ac_try='test -s conftest.$ac_objext'
4952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953  (eval $ac_try) 2>&5
4954  ac_status=$?
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); }; }; then
4957  ac_compiler_gnu=yes
4958else
4959  echo "$as_me: failed program was:" >&5
4960cat conftest.$ac_ext >&5
4961ac_compiler_gnu=no
4962fi
4963rm -f conftest.$ac_objext conftest.$ac_ext
4964ac_cv_c_compiler_gnu=$ac_compiler_gnu
4965
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4968echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4969GCC=`test $ac_compiler_gnu = yes && echo yes`
4970ac_test_CFLAGS=${CFLAGS+set}
4971ac_save_CFLAGS=$CFLAGS
4972CFLAGS="-g"
4973echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4974echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4975if test "${ac_cv_prog_cc_g+set}" = set; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978  cat >conftest.$ac_ext <<_ACEOF
4979#line $LINENO "configure"
4980#include "confdefs.h"
4981
4982#ifdef F77_DUMMY_MAIN
4983#  ifdef __cplusplus
4984     extern "C"
4985#  endif
4986   int F77_DUMMY_MAIN() { return 1; }
4987#endif
4988int
4989main ()
4990{
4991
4992  ;
4993  return 0;
4994}
4995_ACEOF
4996rm -f conftest.$ac_objext
4997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998  (eval $ac_compile) 2>&5
4999  ac_status=$?
5000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001  (exit $ac_status); } &&
5002         { ac_try='test -s conftest.$ac_objext'
5003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004  (eval $ac_try) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; }; then
5008  ac_cv_prog_cc_g=yes
5009else
5010  echo "$as_me: failed program was:" >&5
5011cat conftest.$ac_ext >&5
5012ac_cv_prog_cc_g=no
5013fi
5014rm -f conftest.$ac_objext conftest.$ac_ext
5015fi
5016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5018if test "$ac_test_CFLAGS" = set; then
5019  CFLAGS=$ac_save_CFLAGS
5020elif test $ac_cv_prog_cc_g = yes; then
5021  if test "$GCC" = yes; then
5022    CFLAGS="-g -O2"
5023  else
5024    CFLAGS="-g"
5025  fi
5026else
5027  if test "$GCC" = yes; then
5028    CFLAGS="-O2"
5029  else
5030    CFLAGS=
5031  fi
5032fi
5033# Some people use a C++ compiler to compile C.  Since we use `exit',
5034# in C++ we need to declare it.  In case someone uses the same compiler
5035# for both compiling C and C++ we need to have the C++ compiler decide
5036# the declaration of exit, since it's the most demanding environment.
5037cat >conftest.$ac_ext <<_ACEOF
5038@%:@ifndef __cplusplus
5039  choke me
5040@%:@endif
5041_ACEOF
5042rm -f conftest.$ac_objext
5043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044  (eval $ac_compile) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } &&
5048         { ac_try='test -s conftest.$ac_objext'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; }; then
5054  for ac_declaration in \
5055   ''\
5056   '#include <stdlib.h>' \
5057   'extern "C" void std::exit (int) throw (); using std::exit;' \
5058   'extern "C" void std::exit (int); using std::exit;' \
5059   'extern "C" void exit (int) throw ();' \
5060   'extern "C" void exit (int);' \
5061   'void exit (int);'
5062do
5063  cat >conftest.$ac_ext <<_ACEOF
5064#line $LINENO "configure"
5065#include "confdefs.h"
5066@%:@include <stdlib.h>
5067$ac_declaration
5068#ifdef F77_DUMMY_MAIN
5069#  ifdef __cplusplus
5070     extern "C"
5071#  endif
5072   int F77_DUMMY_MAIN() { return 1; }
5073#endif
5074int
5075main ()
5076{
5077exit (42);
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082rm -f conftest.$ac_objext
5083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5084  (eval $ac_compile) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } &&
5088         { ac_try='test -s conftest.$ac_objext'
5089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090  (eval $ac_try) 2>&5
5091  ac_status=$?
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); }; }; then
5094  :
5095else
5096  echo "$as_me: failed program was:" >&5
5097cat conftest.$ac_ext >&5
5098continue
5099fi
5100rm -f conftest.$ac_objext conftest.$ac_ext
5101  cat >conftest.$ac_ext <<_ACEOF
5102#line $LINENO "configure"
5103#include "confdefs.h"
5104$ac_declaration
5105#ifdef F77_DUMMY_MAIN
5106#  ifdef __cplusplus
5107     extern "C"
5108#  endif
5109   int F77_DUMMY_MAIN() { return 1; }
5110#endif
5111int
5112main ()
5113{
5114exit (42);
5115  ;
5116  return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121  (eval $ac_compile) 2>&5
5122  ac_status=$?
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); } &&
5125         { ac_try='test -s conftest.$ac_objext'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; }; then
5131  break
5132else
5133  echo "$as_me: failed program was:" >&5
5134cat conftest.$ac_ext >&5
5135fi
5136rm -f conftest.$ac_objext conftest.$ac_ext
5137done
5138rm -f conftest*
5139if test -n "$ac_declaration"; then
5140  echo '#ifdef __cplusplus' >>confdefs.h
5141  echo $ac_declaration      >>confdefs.h
5142  echo '#endif'             >>confdefs.h
5143fi
5144
5145else
5146  echo "$as_me: failed program was:" >&5
5147cat conftest.$ac_ext >&5
5148fi
5149rm -f conftest.$ac_objext conftest.$ac_ext
5150ac_ext=c
5151ac_cpp='$CPP $CPPFLAGS'
5152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155
5156depcc="$CC"   am_compiler_list=
5157
5158echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5159echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5160if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5161  echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5164  # We make a subdir and do the tests there.  Otherwise we can end up
5165  # making bogus files that we don't know about and never remove.  For
5166  # instance it was reported that on HP-UX the gcc test will end up
5167  # making a dummy file named `D' -- because `-MD' means `put the output
5168  # in D'.
5169  mkdir conftest.dir
5170  # Copy depcomp to subdir because otherwise we won't find it if we're
5171  # using a relative directory.
5172  cp "$am_depcomp" conftest.dir
5173  cd conftest.dir
5174
5175  am_cv_CC_dependencies_compiler_type=none
5176  if test "$am_compiler_list" = ""; then
5177     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5178  fi
5179  for depmode in $am_compiler_list; do
5180    # We need to recreate these files for each test, as the compiler may
5181    # overwrite some of them when testing with obscure command lines.
5182    # This happens at least with the AIX C compiler.
5183    echo '#include "conftest.h"' > conftest.c
5184    echo 'int i;' > conftest.h
5185    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5186
5187    case $depmode in
5188    nosideeffect)
5189      # after this tag, mechanisms are not by side-effect, so they'll
5190      # only be used when explicitly requested
5191      if test "x$enable_dependency_tracking" = xyes; then
5192	continue
5193      else
5194	break
5195      fi
5196      ;;
5197    none) break ;;
5198    esac
5199    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5200    # mode.  It turns out that the SunPro C++ compiler does not properly
5201    # handle `-M -o', and we need to detect this.
5202    if depmode=$depmode \
5203       source=conftest.c object=conftest.o \
5204       depfile=conftest.Po tmpdepfile=conftest.TPo \
5205       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5206       grep conftest.h conftest.Po > /dev/null 2>&1 &&
5207       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5208      am_cv_CC_dependencies_compiler_type=$depmode
5209      break
5210    fi
5211  done
5212
5213  cd ..
5214  rm -rf conftest.dir
5215else
5216  am_cv_CC_dependencies_compiler_type=none
5217fi
5218
5219fi
5220echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5221echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5223
5224
5225    CFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG -DHAVE_MPI"
5226    CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG -DHAVE_MPI"
5227    LIBS="-lm -lnsl"
5228else
5229    echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231fi
5232
5233WANT_ICC_MPICH_DEBUG_FLAGS=0
5234echo "$as_me:$LINENO: checking preset icc   for generic with MPICH and debugging flags       " >&5
5235echo $ECHO_N "checking preset icc   for generic with MPICH and debugging flags       ... $ECHO_C" >&6
5236if test "$with_icc_mpich_debug" = "yes"; then
5237    unset CC
5238    unset CXX
5239    WANT_ICC_MPICH_DEBUG_FLAGS=1
5240    echo "$as_me:$LINENO: result: yes" >&5
5241echo "${ECHO_T}yes" >&6
5242    ac_ext=cc
5243ac_cpp='$CXXCPP $CPPFLAGS'
5244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247
5248    ac_ext=cc
5249ac_cpp='$CXXCPP $CPPFLAGS'
5250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5253if test -n "$ac_tool_prefix"; then
5254  for ac_prog in $CCC mpiCC mpic++ mpicxx
5255  do
5256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_prog_CXX+set}" = set; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  if test -n "$CXX"; then
5264  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271  for ac_exec_ext in '' $ac_executable_extensions; do
5272  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278done
5279
5280fi
5281fi
5282CXX=$ac_cv_prog_CXX
5283if test -n "$CXX"; then
5284  echo "$as_me:$LINENO: result: $CXX" >&5
5285echo "${ECHO_T}$CXX" >&6
5286else
5287  echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289fi
5290
5291    test -n "$CXX" && break
5292  done
5293fi
5294if test -z "$CXX"; then
5295  ac_ct_CXX=$CXX
5296  for ac_prog in $CCC mpiCC mpic++ mpicxx
5297do
5298  # Extract the first word of "$ac_prog", so it can be a program name with args.
5299set dummy $ac_prog; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5303  echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305  if test -n "$ac_ct_CXX"; then
5306  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5307else
5308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH
5310do
5311  IFS=$as_save_IFS
5312  test -z "$as_dir" && as_dir=.
5313  for ac_exec_ext in '' $ac_executable_extensions; do
5314  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315    ac_cv_prog_ac_ct_CXX="$ac_prog"
5316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317    break 2
5318  fi
5319done
5320done
5321
5322fi
5323fi
5324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5325if test -n "$ac_ct_CXX"; then
5326  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5327echo "${ECHO_T}$ac_ct_CXX" >&6
5328else
5329  echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
5331fi
5332
5333  test -n "$ac_ct_CXX" && break
5334done
5335test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5336
5337  CXX=$ac_ct_CXX
5338fi
5339
5340
5341# Provide some information about the compiler.
5342echo "$as_me:$LINENO:" \
5343     "checking for C++ compiler version" >&5
5344ac_compiler=`set X $ac_compile; echo $2`
5345{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5346  (eval $ac_compiler --version </dev/null >&5) 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }
5350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5351  (eval $ac_compiler -v </dev/null >&5) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }
5355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5356  (eval $ac_compiler -V </dev/null >&5) 2>&5
5357  ac_status=$?
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); }
5360
5361echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5364  echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366  cat >conftest.$ac_ext <<_ACEOF
5367#line $LINENO "configure"
5368#include "confdefs.h"
5369
5370#ifdef F77_DUMMY_MAIN
5371#  ifdef __cplusplus
5372     extern "C"
5373#  endif
5374   int F77_DUMMY_MAIN() { return 1; }
5375#endif
5376int
5377main ()
5378{
5379#ifndef __GNUC__
5380       choke me
5381#endif
5382
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389  (eval $ac_compile) 2>&5
5390  ac_status=$?
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); } &&
5393         { ac_try='test -s conftest.$ac_objext'
5394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395  (eval $ac_try) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; }; then
5399  ac_compiler_gnu=yes
5400else
5401  echo "$as_me: failed program was:" >&5
5402cat conftest.$ac_ext >&5
5403ac_compiler_gnu=no
5404fi
5405rm -f conftest.$ac_objext conftest.$ac_ext
5406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5407
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5410echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5411GXX=`test $ac_compiler_gnu = yes && echo yes`
5412ac_test_CXXFLAGS=${CXXFLAGS+set}
5413ac_save_CXXFLAGS=$CXXFLAGS
5414CXXFLAGS="-g"
5415echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5416echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5417if test "${ac_cv_prog_cxx_g+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  cat >conftest.$ac_ext <<_ACEOF
5421#line $LINENO "configure"
5422#include "confdefs.h"
5423
5424#ifdef F77_DUMMY_MAIN
5425#  ifdef __cplusplus
5426     extern "C"
5427#  endif
5428   int F77_DUMMY_MAIN() { return 1; }
5429#endif
5430int
5431main ()
5432{
5433
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440  (eval $ac_compile) 2>&5
5441  ac_status=$?
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); } &&
5444         { ac_try='test -s conftest.$ac_objext'
5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446  (eval $ac_try) 2>&5
5447  ac_status=$?
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; }; then
5450  ac_cv_prog_cxx_g=yes
5451else
5452  echo "$as_me: failed program was:" >&5
5453cat conftest.$ac_ext >&5
5454ac_cv_prog_cxx_g=no
5455fi
5456rm -f conftest.$ac_objext conftest.$ac_ext
5457fi
5458echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5459echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5460if test "$ac_test_CXXFLAGS" = set; then
5461  CXXFLAGS=$ac_save_CXXFLAGS
5462elif test $ac_cv_prog_cxx_g = yes; then
5463  if test "$GXX" = yes; then
5464    CXXFLAGS="-g -O2"
5465  else
5466    CXXFLAGS="-g"
5467  fi
5468else
5469  if test "$GXX" = yes; then
5470    CXXFLAGS="-O2"
5471  else
5472    CXXFLAGS=
5473  fi
5474fi
5475for ac_declaration in \
5476   ''\
5477   '#include <stdlib.h>' \
5478   'extern "C" void std::exit (int) throw (); using std::exit;' \
5479   'extern "C" void std::exit (int); using std::exit;' \
5480   'extern "C" void exit (int) throw ();' \
5481   'extern "C" void exit (int);' \
5482   'void exit (int);'
5483do
5484  cat >conftest.$ac_ext <<_ACEOF
5485#line $LINENO "configure"
5486#include "confdefs.h"
5487@%:@include <stdlib.h>
5488$ac_declaration
5489#ifdef F77_DUMMY_MAIN
5490#  ifdef __cplusplus
5491     extern "C"
5492#  endif
5493   int F77_DUMMY_MAIN() { return 1; }
5494#endif
5495int
5496main ()
5497{
5498exit (42);
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext
5504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505  (eval $ac_compile) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } &&
5509         { ac_try='test -s conftest.$ac_objext'
5510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511  (eval $ac_try) 2>&5
5512  ac_status=$?
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); }; }; then
5515  :
5516else
5517  echo "$as_me: failed program was:" >&5
5518cat conftest.$ac_ext >&5
5519continue
5520fi
5521rm -f conftest.$ac_objext conftest.$ac_ext
5522  cat >conftest.$ac_ext <<_ACEOF
5523#line $LINENO "configure"
5524#include "confdefs.h"
5525$ac_declaration
5526#ifdef F77_DUMMY_MAIN
5527#  ifdef __cplusplus
5528     extern "C"
5529#  endif
5530   int F77_DUMMY_MAIN() { return 1; }
5531#endif
5532int
5533main ()
5534{
5535exit (42);
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540rm -f conftest.$ac_objext
5541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542  (eval $ac_compile) 2>&5
5543  ac_status=$?
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } &&
5546         { ac_try='test -s conftest.$ac_objext'
5547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548  (eval $ac_try) 2>&5
5549  ac_status=$?
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); }; }; then
5552  break
5553else
5554  echo "$as_me: failed program was:" >&5
5555cat conftest.$ac_ext >&5
5556fi
5557rm -f conftest.$ac_objext conftest.$ac_ext
5558done
5559rm -f conftest*
5560if test -n "$ac_declaration"; then
5561  echo '#ifdef __cplusplus' >>confdefs.h
5562  echo $ac_declaration      >>confdefs.h
5563  echo '#endif'             >>confdefs.h
5564fi
5565
5566ac_ext=cc
5567ac_cpp='$CXXCPP $CPPFLAGS'
5568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5571
5572depcc="$CXX"  am_compiler_list=
5573
5574echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5575echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5576if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5580  # We make a subdir and do the tests there.  Otherwise we can end up
5581  # making bogus files that we don't know about and never remove.  For
5582  # instance it was reported that on HP-UX the gcc test will end up
5583  # making a dummy file named `D' -- because `-MD' means `put the output
5584  # in D'.
5585  mkdir conftest.dir
5586  # Copy depcomp to subdir because otherwise we won't find it if we're
5587  # using a relative directory.
5588  cp "$am_depcomp" conftest.dir
5589  cd conftest.dir
5590
5591  am_cv_CXX_dependencies_compiler_type=none
5592  if test "$am_compiler_list" = ""; then
5593     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5594  fi
5595  for depmode in $am_compiler_list; do
5596    # We need to recreate these files for each test, as the compiler may
5597    # overwrite some of them when testing with obscure command lines.
5598    # This happens at least with the AIX C compiler.
5599    echo '#include "conftest.h"' > conftest.c
5600    echo 'int i;' > conftest.h
5601    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5602
5603    case $depmode in
5604    nosideeffect)
5605      # after this tag, mechanisms are not by side-effect, so they'll
5606      # only be used when explicitly requested
5607      if test "x$enable_dependency_tracking" = xyes; then
5608	continue
5609      else
5610	break
5611      fi
5612      ;;
5613    none) break ;;
5614    esac
5615    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616    # mode.  It turns out that the SunPro C++ compiler does not properly
5617    # handle `-M -o', and we need to detect this.
5618    if depmode=$depmode \
5619       source=conftest.c object=conftest.o \
5620       depfile=conftest.Po tmpdepfile=conftest.TPo \
5621       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5622       grep conftest.h conftest.Po > /dev/null 2>&1 &&
5623       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5624      am_cv_CXX_dependencies_compiler_type=$depmode
5625      break
5626    fi
5627  done
5628
5629  cd ..
5630  rm -rf conftest.dir
5631else
5632  am_cv_CXX_dependencies_compiler_type=none
5633fi
5634
5635fi
5636echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5637echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5638CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5639
5640
5641    ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647    ac_ext=c
5648ac_cpp='$CPP $CPPFLAGS'
5649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652if test -n "$ac_tool_prefix"; then
5653  for ac_prog in mpicc
5654  do
5655    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5657echo "$as_me:$LINENO: checking for $ac_word" >&5
5658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5659if test "${ac_cv_prog_CC+set}" = set; then
5660  echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662  if test -n "$CC"; then
5663  ac_cv_prog_CC="$CC" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668  IFS=$as_save_IFS
5669  test -z "$as_dir" && as_dir=.
5670  for ac_exec_ext in '' $ac_executable_extensions; do
5671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674    break 2
5675  fi
5676done
5677done
5678
5679fi
5680fi
5681CC=$ac_cv_prog_CC
5682if test -n "$CC"; then
5683  echo "$as_me:$LINENO: result: $CC" >&5
5684echo "${ECHO_T}$CC" >&6
5685else
5686  echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688fi
5689
5690    test -n "$CC" && break
5691  done
5692fi
5693if test -z "$CC"; then
5694  ac_ct_CC=$CC
5695  for ac_prog in mpicc
5696do
5697  # Extract the first word of "$ac_prog", so it can be a program name with args.
5698set dummy $ac_prog; ac_word=$2
5699echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  if test -n "$ac_ct_CC"; then
5705  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712  for ac_exec_ext in '' $ac_executable_extensions; do
5713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714    ac_cv_prog_ac_ct_CC="$ac_prog"
5715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716    break 2
5717  fi
5718done
5719done
5720
5721fi
5722fi
5723ac_ct_CC=$ac_cv_prog_ac_ct_CC
5724if test -n "$ac_ct_CC"; then
5725  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5726echo "${ECHO_T}$ac_ct_CC" >&6
5727else
5728  echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6
5730fi
5731
5732  test -n "$ac_ct_CC" && break
5733done
5734
5735  CC=$ac_ct_CC
5736fi
5737
5738
5739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
5740echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
5741   { (exit 1); exit 1; }; }
5742
5743# Provide some information about the compiler.
5744echo "$as_me:$LINENO:" \
5745     "checking for C compiler version" >&5
5746ac_compiler=`set X $ac_compile; echo $2`
5747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5748  (eval $ac_compiler --version </dev/null >&5) 2>&5
5749  ac_status=$?
5750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751  (exit $ac_status); }
5752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5753  (eval $ac_compiler -v </dev/null >&5) 2>&5
5754  ac_status=$?
5755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); }
5757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5758  (eval $ac_compiler -V </dev/null >&5) 2>&5
5759  ac_status=$?
5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761  (exit $ac_status); }
5762
5763echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5764echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5765if test "${ac_cv_c_compiler_gnu+set}" = set; then
5766  echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768  cat >conftest.$ac_ext <<_ACEOF
5769#line $LINENO "configure"
5770#include "confdefs.h"
5771
5772#ifdef F77_DUMMY_MAIN
5773#  ifdef __cplusplus
5774     extern "C"
5775#  endif
5776   int F77_DUMMY_MAIN() { return 1; }
5777#endif
5778int
5779main ()
5780{
5781#ifndef __GNUC__
5782       choke me
5783#endif
5784
5785  ;
5786  return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext
5790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791  (eval $ac_compile) 2>&5
5792  ac_status=$?
5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794  (exit $ac_status); } &&
5795         { ac_try='test -s conftest.$ac_objext'
5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797  (eval $ac_try) 2>&5
5798  ac_status=$?
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); }; }; then
5801  ac_compiler_gnu=yes
5802else
5803  echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805ac_compiler_gnu=no
5806fi
5807rm -f conftest.$ac_objext conftest.$ac_ext
5808ac_cv_c_compiler_gnu=$ac_compiler_gnu
5809
5810fi
5811echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5812echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5813GCC=`test $ac_compiler_gnu = yes && echo yes`
5814ac_test_CFLAGS=${CFLAGS+set}
5815ac_save_CFLAGS=$CFLAGS
5816CFLAGS="-g"
5817echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5818echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5819if test "${ac_cv_prog_cc_g+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  cat >conftest.$ac_ext <<_ACEOF
5823#line $LINENO "configure"
5824#include "confdefs.h"
5825
5826#ifdef F77_DUMMY_MAIN
5827#  ifdef __cplusplus
5828     extern "C"
5829#  endif
5830   int F77_DUMMY_MAIN() { return 1; }
5831#endif
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext
5841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842  (eval $ac_compile) 2>&5
5843  ac_status=$?
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); } &&
5846         { ac_try='test -s conftest.$ac_objext'
5847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848  (eval $ac_try) 2>&5
5849  ac_status=$?
5850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851  (exit $ac_status); }; }; then
5852  ac_cv_prog_cc_g=yes
5853else
5854  echo "$as_me: failed program was:" >&5
5855cat conftest.$ac_ext >&5
5856ac_cv_prog_cc_g=no
5857fi
5858rm -f conftest.$ac_objext conftest.$ac_ext
5859fi
5860echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5861echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5862if test "$ac_test_CFLAGS" = set; then
5863  CFLAGS=$ac_save_CFLAGS
5864elif test $ac_cv_prog_cc_g = yes; then
5865  if test "$GCC" = yes; then
5866    CFLAGS="-g -O2"
5867  else
5868    CFLAGS="-g"
5869  fi
5870else
5871  if test "$GCC" = yes; then
5872    CFLAGS="-O2"
5873  else
5874    CFLAGS=
5875  fi
5876fi
5877# Some people use a C++ compiler to compile C.  Since we use `exit',
5878# in C++ we need to declare it.  In case someone uses the same compiler
5879# for both compiling C and C++ we need to have the C++ compiler decide
5880# the declaration of exit, since it's the most demanding environment.
5881cat >conftest.$ac_ext <<_ACEOF
5882@%:@ifndef __cplusplus
5883  choke me
5884@%:@endif
5885_ACEOF
5886rm -f conftest.$ac_objext
5887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888  (eval $ac_compile) 2>&5
5889  ac_status=$?
5890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891  (exit $ac_status); } &&
5892         { ac_try='test -s conftest.$ac_objext'
5893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894  (eval $ac_try) 2>&5
5895  ac_status=$?
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); }; }; then
5898  for ac_declaration in \
5899   ''\
5900   '#include <stdlib.h>' \
5901   'extern "C" void std::exit (int) throw (); using std::exit;' \
5902   'extern "C" void std::exit (int); using std::exit;' \
5903   'extern "C" void exit (int) throw ();' \
5904   'extern "C" void exit (int);' \
5905   'void exit (int);'
5906do
5907  cat >conftest.$ac_ext <<_ACEOF
5908#line $LINENO "configure"
5909#include "confdefs.h"
5910@%:@include <stdlib.h>
5911$ac_declaration
5912#ifdef F77_DUMMY_MAIN
5913#  ifdef __cplusplus
5914     extern "C"
5915#  endif
5916   int F77_DUMMY_MAIN() { return 1; }
5917#endif
5918int
5919main ()
5920{
5921exit (42);
5922  ;
5923  return 0;
5924}
5925_ACEOF
5926rm -f conftest.$ac_objext
5927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928  (eval $ac_compile) 2>&5
5929  ac_status=$?
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); } &&
5932         { ac_try='test -s conftest.$ac_objext'
5933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934  (eval $ac_try) 2>&5
5935  ac_status=$?
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); }; }; then
5938  :
5939else
5940  echo "$as_me: failed program was:" >&5
5941cat conftest.$ac_ext >&5
5942continue
5943fi
5944rm -f conftest.$ac_objext conftest.$ac_ext
5945  cat >conftest.$ac_ext <<_ACEOF
5946#line $LINENO "configure"
5947#include "confdefs.h"
5948$ac_declaration
5949#ifdef F77_DUMMY_MAIN
5950#  ifdef __cplusplus
5951     extern "C"
5952#  endif
5953   int F77_DUMMY_MAIN() { return 1; }
5954#endif
5955int
5956main ()
5957{
5958exit (42);
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965  (eval $ac_compile) 2>&5
5966  ac_status=$?
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); } &&
5969         { ac_try='test -s conftest.$ac_objext'
5970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971  (eval $ac_try) 2>&5
5972  ac_status=$?
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); }; }; then
5975  break
5976else
5977  echo "$as_me: failed program was:" >&5
5978cat conftest.$ac_ext >&5
5979fi
5980rm -f conftest.$ac_objext conftest.$ac_ext
5981done
5982rm -f conftest*
5983if test -n "$ac_declaration"; then
5984  echo '#ifdef __cplusplus' >>confdefs.h
5985  echo $ac_declaration      >>confdefs.h
5986  echo '#endif'             >>confdefs.h
5987fi
5988
5989else
5990  echo "$as_me: failed program was:" >&5
5991cat conftest.$ac_ext >&5
5992fi
5993rm -f conftest.$ac_objext conftest.$ac_ext
5994ac_ext=c
5995ac_cpp='$CPP $CPPFLAGS'
5996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999
6000depcc="$CC"   am_compiler_list=
6001
6002echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6003echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6004if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6008  # We make a subdir and do the tests there.  Otherwise we can end up
6009  # making bogus files that we don't know about and never remove.  For
6010  # instance it was reported that on HP-UX the gcc test will end up
6011  # making a dummy file named `D' -- because `-MD' means `put the output
6012  # in D'.
6013  mkdir conftest.dir
6014  # Copy depcomp to subdir because otherwise we won't find it if we're
6015  # using a relative directory.
6016  cp "$am_depcomp" conftest.dir
6017  cd conftest.dir
6018
6019  am_cv_CC_dependencies_compiler_type=none
6020  if test "$am_compiler_list" = ""; then
6021     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6022  fi
6023  for depmode in $am_compiler_list; do
6024    # We need to recreate these files for each test, as the compiler may
6025    # overwrite some of them when testing with obscure command lines.
6026    # This happens at least with the AIX C compiler.
6027    echo '#include "conftest.h"' > conftest.c
6028    echo 'int i;' > conftest.h
6029    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
6030
6031    case $depmode in
6032    nosideeffect)
6033      # after this tag, mechanisms are not by side-effect, so they'll
6034      # only be used when explicitly requested
6035      if test "x$enable_dependency_tracking" = xyes; then
6036	continue
6037      else
6038	break
6039      fi
6040      ;;
6041    none) break ;;
6042    esac
6043    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6044    # mode.  It turns out that the SunPro C++ compiler does not properly
6045    # handle `-M -o', and we need to detect this.
6046    if depmode=$depmode \
6047       source=conftest.c object=conftest.o \
6048       depfile=conftest.Po tmpdepfile=conftest.TPo \
6049       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
6050       grep conftest.h conftest.Po > /dev/null 2>&1 &&
6051       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6052      am_cv_CC_dependencies_compiler_type=$depmode
6053      break
6054    fi
6055  done
6056
6057  cd ..
6058  rm -rf conftest.dir
6059else
6060  am_cv_CC_dependencies_compiler_type=none
6061fi
6062
6063fi
6064echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6065echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6066CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6067
6068
6069    CFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict -DHAVE_MPI"
6070    CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict -DHAVE_MPI"
6071    LIBS="-lm -lnsl"
6072else
6073    echo "$as_me:$LINENO: result: no" >&5
6074echo "${ECHO_T}no" >&6
6075fi
6076
6077
6078WANT_GCC_MPICH_FLAGS=0
6079echo "$as_me:$LINENO: checking preset g++   for generic with MPICH flags                     " >&5
6080echo $ECHO_N "checking preset g++   for generic with MPICH flags                     ... $ECHO_C" >&6
6081if test "$with_gcc_mpich" = "yes"; then
6082    unset CC
6083    unset CXX
6084    WANT_GCC_MPICH_FLAGS=1
6085    echo "$as_me:$LINENO: result: yes" >&5
6086echo "${ECHO_T}yes" >&6
6087    ac_ext=cc
6088ac_cpp='$CXXCPP $CPPFLAGS'
6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093    ac_ext=cc
6094ac_cpp='$CXXCPP $CPPFLAGS'
6095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6098if test -n "$ac_tool_prefix"; then
6099  for ac_prog in $CCC mpiCC mpicxx mpic++
6100  do
6101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6103echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105if test "${ac_cv_prog_CXX+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  if test -n "$CXX"; then
6109  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  test -z "$as_dir" && as_dir=.
6116  for ac_exec_ext in '' $ac_executable_extensions; do
6117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120    break 2
6121  fi
6122done
6123done
6124
6125fi
6126fi
6127CXX=$ac_cv_prog_CXX
6128if test -n "$CXX"; then
6129  echo "$as_me:$LINENO: result: $CXX" >&5
6130echo "${ECHO_T}$CXX" >&6
6131else
6132  echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134fi
6135
6136    test -n "$CXX" && break
6137  done
6138fi
6139if test -z "$CXX"; then
6140  ac_ct_CXX=$CXX
6141  for ac_prog in $CCC mpiCC mpicxx mpic++
6142do
6143  # Extract the first word of "$ac_prog", so it can be a program name with args.
6144set dummy $ac_prog; ac_word=$2
6145echo "$as_me:$LINENO: checking for $ac_word" >&5
6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6147if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6148  echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150  if test -n "$ac_ct_CXX"; then
6151  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158  for ac_exec_ext in '' $ac_executable_extensions; do
6159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160    ac_cv_prog_ac_ct_CXX="$ac_prog"
6161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162    break 2
6163  fi
6164done
6165done
6166
6167fi
6168fi
6169ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6170if test -n "$ac_ct_CXX"; then
6171  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6172echo "${ECHO_T}$ac_ct_CXX" >&6
6173else
6174  echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176fi
6177
6178  test -n "$ac_ct_CXX" && break
6179done
6180test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6181
6182  CXX=$ac_ct_CXX
6183fi
6184
6185
6186# Provide some information about the compiler.
6187echo "$as_me:$LINENO:" \
6188     "checking for C++ compiler version" >&5
6189ac_compiler=`set X $ac_compile; echo $2`
6190{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6191  (eval $ac_compiler --version </dev/null >&5) 2>&5
6192  ac_status=$?
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); }
6195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6196  (eval $ac_compiler -v </dev/null >&5) 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }
6200{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6201  (eval $ac_compiler -V </dev/null >&5) 2>&5
6202  ac_status=$?
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); }
6205
6206echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6207echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6208if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  cat >conftest.$ac_ext <<_ACEOF
6212#line $LINENO "configure"
6213#include "confdefs.h"
6214
6215#ifdef F77_DUMMY_MAIN
6216#  ifdef __cplusplus
6217     extern "C"
6218#  endif
6219   int F77_DUMMY_MAIN() { return 1; }
6220#endif
6221int
6222main ()
6223{
6224#ifndef __GNUC__
6225       choke me
6226#endif
6227
6228  ;
6229  return 0;
6230}
6231_ACEOF
6232rm -f conftest.$ac_objext
6233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234  (eval $ac_compile) 2>&5
6235  ac_status=$?
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238         { ac_try='test -s conftest.$ac_objext'
6239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240  (eval $ac_try) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }; }; then
6244  ac_compiler_gnu=yes
6245else
6246  echo "$as_me: failed program was:" >&5
6247cat conftest.$ac_ext >&5
6248ac_compiler_gnu=no
6249fi
6250rm -f conftest.$ac_objext conftest.$ac_ext
6251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6252
6253fi
6254echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6255echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6256GXX=`test $ac_compiler_gnu = yes && echo yes`
6257ac_test_CXXFLAGS=${CXXFLAGS+set}
6258ac_save_CXXFLAGS=$CXXFLAGS
6259CXXFLAGS="-g"
6260echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6261echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6262if test "${ac_cv_prog_cxx_g+set}" = set; then
6263  echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265  cat >conftest.$ac_ext <<_ACEOF
6266#line $LINENO "configure"
6267#include "confdefs.h"
6268
6269#ifdef F77_DUMMY_MAIN
6270#  ifdef __cplusplus
6271     extern "C"
6272#  endif
6273   int F77_DUMMY_MAIN() { return 1; }
6274#endif
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285  (eval $ac_compile) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); } &&
6289         { ac_try='test -s conftest.$ac_objext'
6290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291  (eval $ac_try) 2>&5
6292  ac_status=$?
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); }; }; then
6295  ac_cv_prog_cxx_g=yes
6296else
6297  echo "$as_me: failed program was:" >&5
6298cat conftest.$ac_ext >&5
6299ac_cv_prog_cxx_g=no
6300fi
6301rm -f conftest.$ac_objext conftest.$ac_ext
6302fi
6303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6305if test "$ac_test_CXXFLAGS" = set; then
6306  CXXFLAGS=$ac_save_CXXFLAGS
6307elif test $ac_cv_prog_cxx_g = yes; then
6308  if test "$GXX" = yes; then
6309    CXXFLAGS="-g -O2"
6310  else
6311    CXXFLAGS="-g"
6312  fi
6313else
6314  if test "$GXX" = yes; then
6315    CXXFLAGS="-O2"
6316  else
6317    CXXFLAGS=
6318  fi
6319fi
6320for ac_declaration in \
6321   ''\
6322   '#include <stdlib.h>' \
6323   'extern "C" void std::exit (int) throw (); using std::exit;' \
6324   'extern "C" void std::exit (int); using std::exit;' \
6325   'extern "C" void exit (int) throw ();' \
6326   'extern "C" void exit (int);' \
6327   'void exit (int);'
6328do
6329  cat >conftest.$ac_ext <<_ACEOF
6330#line $LINENO "configure"
6331#include "confdefs.h"
6332@%:@include <stdlib.h>
6333$ac_declaration
6334#ifdef F77_DUMMY_MAIN
6335#  ifdef __cplusplus
6336     extern "C"
6337#  endif
6338   int F77_DUMMY_MAIN() { return 1; }
6339#endif
6340int
6341main ()
6342{
6343exit (42);
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext
6349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350  (eval $ac_compile) 2>&5
6351  ac_status=$?
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } &&
6354         { ac_try='test -s conftest.$ac_objext'
6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356  (eval $ac_try) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }; }; then
6360  :
6361else
6362  echo "$as_me: failed program was:" >&5
6363cat conftest.$ac_ext >&5
6364continue
6365fi
6366rm -f conftest.$ac_objext conftest.$ac_ext
6367  cat >conftest.$ac_ext <<_ACEOF
6368#line $LINENO "configure"
6369#include "confdefs.h"
6370$ac_declaration
6371#ifdef F77_DUMMY_MAIN
6372#  ifdef __cplusplus
6373     extern "C"
6374#  endif
6375   int F77_DUMMY_MAIN() { return 1; }
6376#endif
6377int
6378main ()
6379{
6380exit (42);
6381  ;
6382  return 0;
6383}
6384_ACEOF
6385rm -f conftest.$ac_objext
6386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387  (eval $ac_compile) 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); } &&
6391         { ac_try='test -s conftest.$ac_objext'
6392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393  (eval $ac_try) 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); }; }; then
6397  break
6398else
6399  echo "$as_me: failed program was:" >&5
6400cat conftest.$ac_ext >&5
6401fi
6402rm -f conftest.$ac_objext conftest.$ac_ext
6403done
6404rm -f conftest*
6405if test -n "$ac_declaration"; then
6406  echo '#ifdef __cplusplus' >>confdefs.h
6407  echo $ac_declaration      >>confdefs.h
6408  echo '#endif'             >>confdefs.h
6409fi
6410
6411ac_ext=cc
6412ac_cpp='$CXXCPP $CPPFLAGS'
6413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6416
6417depcc="$CXX"  am_compiler_list=
6418
6419echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6420echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6421if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6422  echo $ECHO_N "(cached) $ECHO_C" >&6
6423else
6424  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6425  # We make a subdir and do the tests there.  Otherwise we can end up
6426  # making bogus files that we don't know about and never remove.  For
6427  # instance it was reported that on HP-UX the gcc test will end up
6428  # making a dummy file named `D' -- because `-MD' means `put the output
6429  # in D'.
6430  mkdir conftest.dir
6431  # Copy depcomp to subdir because otherwise we won't find it if we're
6432  # using a relative directory.
6433  cp "$am_depcomp" conftest.dir
6434  cd conftest.dir
6435
6436  am_cv_CXX_dependencies_compiler_type=none
6437  if test "$am_compiler_list" = ""; then
6438     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6439  fi
6440  for depmode in $am_compiler_list; do
6441    # We need to recreate these files for each test, as the compiler may
6442    # overwrite some of them when testing with obscure command lines.
6443    # This happens at least with the AIX C compiler.
6444    echo '#include "conftest.h"' > conftest.c
6445    echo 'int i;' > conftest.h
6446    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
6447
6448    case $depmode in
6449    nosideeffect)
6450      # after this tag, mechanisms are not by side-effect, so they'll
6451      # only be used when explicitly requested
6452      if test "x$enable_dependency_tracking" = xyes; then
6453	continue
6454      else
6455	break
6456      fi
6457      ;;
6458    none) break ;;
6459    esac
6460    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6461    # mode.  It turns out that the SunPro C++ compiler does not properly
6462    # handle `-M -o', and we need to detect this.
6463    if depmode=$depmode \
6464       source=conftest.c object=conftest.o \
6465       depfile=conftest.Po tmpdepfile=conftest.TPo \
6466       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
6467       grep conftest.h conftest.Po > /dev/null 2>&1 &&
6468       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6469      am_cv_CXX_dependencies_compiler_type=$depmode
6470      break
6471    fi
6472  done
6473
6474  cd ..
6475  rm -rf conftest.dir
6476else
6477  am_cv_CXX_dependencies_compiler_type=none
6478fi
6479
6480fi
6481echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6482echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6483CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6484
6485
6486    CC="mpicc"
6487    CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI"
6488    CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI"
6489    LIBS="-lm -lnsl"
6490    DEPFLAGS=""
6491else
6492    echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6
6494fi
6495
6496ANT_GCC_MPICH_XEON=0
6497echo "$as_me:$LINENO: checking preset g++   for generic with MPICH XEON flags                " >&5
6498echo $ECHO_N "checking preset g++   for generic with MPICH XEON flags                ... $ECHO_C" >&6
6499if test "$with_gcc_mpich_xeon" = "yes"; then
6500    unset CC
6501    unset CXX
6502    WANT_GCC_MPICH_XEON=1
6503    echo "$as_me:$LINENO: result: yes" >&5
6504echo "${ECHO_T}yes" >&6
6505    CC="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-gcc-2/bin/mpicc"
6506    CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI"
6507    CXX="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-gcc-2/bin/mpicxx"
6508    CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI"
6509    LIBS="-lm -lnsl"
6510    DEPFLAGS=""
6511else
6512    echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6
6514fi
6515
6516WANT_GCC_MPICH_DEBUG_FLAGS=0
6517echo "$as_me:$LINENO: checking preset g++   for generic with MPICH debug flags               " >&5
6518echo $ECHO_N "checking preset g++   for generic with MPICH debug flags               ... $ECHO_C" >&6
6519if test "$with_gcc_mpich_debug" = "yes"; then
6520    unset CC
6521    unset CXX
6522    WANT_GCC_MPICH_DEBUG_FLAGS=1
6523    echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525    CC="mpicc"
6526    CFLAGS="-Wall -DHAVE_MPI -I${MPI_HOME}/include"
6527    ac_ext=cc
6528ac_cpp='$CXXCPP $CPPFLAGS'
6529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6532
6533    ac_ext=cc
6534ac_cpp='$CXXCPP $CPPFLAGS'
6535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6538if test -n "$ac_tool_prefix"; then
6539  for ac_prog in $CCC mpiCC mpicxx mpic++
6540  do
6541    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543echo "$as_me:$LINENO: checking for $ac_word" >&5
6544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6545if test "${ac_cv_prog_CXX+set}" = set; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  if test -n "$CXX"; then
6549  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6550else
6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554  IFS=$as_save_IFS
6555  test -z "$as_dir" && as_dir=.
6556  for ac_exec_ext in '' $ac_executable_extensions; do
6557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560    break 2
6561  fi
6562done
6563done
6564
6565fi
6566fi
6567CXX=$ac_cv_prog_CXX
6568if test -n "$CXX"; then
6569  echo "$as_me:$LINENO: result: $CXX" >&5
6570echo "${ECHO_T}$CXX" >&6
6571else
6572  echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6
6574fi
6575
6576    test -n "$CXX" && break
6577  done
6578fi
6579if test -z "$CXX"; then
6580  ac_ct_CXX=$CXX
6581  for ac_prog in $CCC mpiCC mpicxx mpic++
6582do
6583  # Extract the first word of "$ac_prog", so it can be a program name with args.
6584set dummy $ac_prog; ac_word=$2
6585echo "$as_me:$LINENO: checking for $ac_word" >&5
6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6588  echo $ECHO_N "(cached) $ECHO_C" >&6
6589else
6590  if test -n "$ac_ct_CXX"; then
6591  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598  for ac_exec_ext in '' $ac_executable_extensions; do
6599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600    ac_cv_prog_ac_ct_CXX="$ac_prog"
6601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605done
6606
6607fi
6608fi
6609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6610if test -n "$ac_ct_CXX"; then
6611  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6612echo "${ECHO_T}$ac_ct_CXX" >&6
6613else
6614  echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
6616fi
6617
6618  test -n "$ac_ct_CXX" && break
6619done
6620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6621
6622  CXX=$ac_ct_CXX
6623fi
6624
6625
6626# Provide some information about the compiler.
6627echo "$as_me:$LINENO:" \
6628     "checking for C++ compiler version" >&5
6629ac_compiler=`set X $ac_compile; echo $2`
6630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6631  (eval $ac_compiler --version </dev/null >&5) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }
6635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6636  (eval $ac_compiler -v </dev/null >&5) 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }
6640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6641  (eval $ac_compiler -V </dev/null >&5) 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }
6645
6646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6649  echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651  cat >conftest.$ac_ext <<_ACEOF
6652#line $LINENO "configure"
6653#include "confdefs.h"
6654
6655#ifdef F77_DUMMY_MAIN
6656#  ifdef __cplusplus
6657     extern "C"
6658#  endif
6659   int F77_DUMMY_MAIN() { return 1; }
6660#endif
6661int
6662main ()
6663{
6664#ifndef __GNUC__
6665       choke me
6666#endif
6667
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674  (eval $ac_compile) 2>&5
6675  ac_status=$?
6676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677  (exit $ac_status); } &&
6678         { ac_try='test -s conftest.$ac_objext'
6679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680  (eval $ac_try) 2>&5
6681  ac_status=$?
6682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683  (exit $ac_status); }; }; then
6684  ac_compiler_gnu=yes
6685else
6686  echo "$as_me: failed program was:" >&5
6687cat conftest.$ac_ext >&5
6688ac_compiler_gnu=no
6689fi
6690rm -f conftest.$ac_objext conftest.$ac_ext
6691ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6692
6693fi
6694echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6695echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6696GXX=`test $ac_compiler_gnu = yes && echo yes`
6697ac_test_CXXFLAGS=${CXXFLAGS+set}
6698ac_save_CXXFLAGS=$CXXFLAGS
6699CXXFLAGS="-g"
6700echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6701echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6702if test "${ac_cv_prog_cxx_g+set}" = set; then
6703  echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705  cat >conftest.$ac_ext <<_ACEOF
6706#line $LINENO "configure"
6707#include "confdefs.h"
6708
6709#ifdef F77_DUMMY_MAIN
6710#  ifdef __cplusplus
6711     extern "C"
6712#  endif
6713   int F77_DUMMY_MAIN() { return 1; }
6714#endif
6715int
6716main ()
6717{
6718
6719  ;
6720  return 0;
6721}
6722_ACEOF
6723rm -f conftest.$ac_objext
6724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725  (eval $ac_compile) 2>&5
6726  ac_status=$?
6727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728  (exit $ac_status); } &&
6729         { ac_try='test -s conftest.$ac_objext'
6730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731  (eval $ac_try) 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); }; }; then
6735  ac_cv_prog_cxx_g=yes
6736else
6737  echo "$as_me: failed program was:" >&5
6738cat conftest.$ac_ext >&5
6739ac_cv_prog_cxx_g=no
6740fi
6741rm -f conftest.$ac_objext conftest.$ac_ext
6742fi
6743echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6744echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6745if test "$ac_test_CXXFLAGS" = set; then
6746  CXXFLAGS=$ac_save_CXXFLAGS
6747elif test $ac_cv_prog_cxx_g = yes; then
6748  if test "$GXX" = yes; then
6749    CXXFLAGS="-g -O2"
6750  else
6751    CXXFLAGS="-g"
6752  fi
6753else
6754  if test "$GXX" = yes; then
6755    CXXFLAGS="-O2"
6756  else
6757    CXXFLAGS=
6758  fi
6759fi
6760for ac_declaration in \
6761   ''\
6762   '#include <stdlib.h>' \
6763   'extern "C" void std::exit (int) throw (); using std::exit;' \
6764   'extern "C" void std::exit (int); using std::exit;' \
6765   'extern "C" void exit (int) throw ();' \
6766   'extern "C" void exit (int);' \
6767   'void exit (int);'
6768do
6769  cat >conftest.$ac_ext <<_ACEOF
6770#line $LINENO "configure"
6771#include "confdefs.h"
6772@%:@include <stdlib.h>
6773$ac_declaration
6774#ifdef F77_DUMMY_MAIN
6775#  ifdef __cplusplus
6776     extern "C"
6777#  endif
6778   int F77_DUMMY_MAIN() { return 1; }
6779#endif
6780int
6781main ()
6782{
6783exit (42);
6784  ;
6785  return 0;
6786}
6787_ACEOF
6788rm -f conftest.$ac_objext
6789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790  (eval $ac_compile) 2>&5
6791  ac_status=$?
6792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793  (exit $ac_status); } &&
6794         { ac_try='test -s conftest.$ac_objext'
6795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796  (eval $ac_try) 2>&5
6797  ac_status=$?
6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799  (exit $ac_status); }; }; then
6800  :
6801else
6802  echo "$as_me: failed program was:" >&5
6803cat conftest.$ac_ext >&5
6804continue
6805fi
6806rm -f conftest.$ac_objext conftest.$ac_ext
6807  cat >conftest.$ac_ext <<_ACEOF
6808#line $LINENO "configure"
6809#include "confdefs.h"
6810$ac_declaration
6811#ifdef F77_DUMMY_MAIN
6812#  ifdef __cplusplus
6813     extern "C"
6814#  endif
6815   int F77_DUMMY_MAIN() { return 1; }
6816#endif
6817int
6818main ()
6819{
6820exit (42);
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825rm -f conftest.$ac_objext
6826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827  (eval $ac_compile) 2>&5
6828  ac_status=$?
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); } &&
6831         { ac_try='test -s conftest.$ac_objext'
6832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833  (eval $ac_try) 2>&5
6834  ac_status=$?
6835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836  (exit $ac_status); }; }; then
6837  break
6838else
6839  echo "$as_me: failed program was:" >&5
6840cat conftest.$ac_ext >&5
6841fi
6842rm -f conftest.$ac_objext conftest.$ac_ext
6843done
6844rm -f conftest*
6845if test -n "$ac_declaration"; then
6846  echo '#ifdef __cplusplus' >>confdefs.h
6847  echo $ac_declaration      >>confdefs.h
6848  echo '#endif'             >>confdefs.h
6849fi
6850
6851ac_ext=cc
6852ac_cpp='$CXXCPP $CPPFLAGS'
6853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856
6857depcc="$CXX"  am_compiler_list=
6858
6859echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6860echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6861if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6862  echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6865  # We make a subdir and do the tests there.  Otherwise we can end up
6866  # making bogus files that we don't know about and never remove.  For
6867  # instance it was reported that on HP-UX the gcc test will end up
6868  # making a dummy file named `D' -- because `-MD' means `put the output
6869  # in D'.
6870  mkdir conftest.dir
6871  # Copy depcomp to subdir because otherwise we won't find it if we're
6872  # using a relative directory.
6873  cp "$am_depcomp" conftest.dir
6874  cd conftest.dir
6875
6876  am_cv_CXX_dependencies_compiler_type=none
6877  if test "$am_compiler_list" = ""; then
6878     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6879  fi
6880  for depmode in $am_compiler_list; do
6881    # We need to recreate these files for each test, as the compiler may
6882    # overwrite some of them when testing with obscure command lines.
6883    # This happens at least with the AIX C compiler.
6884    echo '#include "conftest.h"' > conftest.c
6885    echo 'int i;' > conftest.h
6886    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
6887
6888    case $depmode in
6889    nosideeffect)
6890      # after this tag, mechanisms are not by side-effect, so they'll
6891      # only be used when explicitly requested
6892      if test "x$enable_dependency_tracking" = xyes; then
6893	continue
6894      else
6895	break
6896      fi
6897      ;;
6898    none) break ;;
6899    esac
6900    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6901    # mode.  It turns out that the SunPro C++ compiler does not properly
6902    # handle `-M -o', and we need to detect this.
6903    if depmode=$depmode \
6904       source=conftest.c object=conftest.o \
6905       depfile=conftest.Po tmpdepfile=conftest.TPo \
6906       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
6907       grep conftest.h conftest.Po > /dev/null 2>&1 &&
6908       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6909      am_cv_CXX_dependencies_compiler_type=$depmode
6910      break
6911    fi
6912  done
6913
6914  cd ..
6915  rm -rf conftest.dir
6916else
6917  am_cv_CXX_dependencies_compiler_type=none
6918fi
6919
6920fi
6921echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6922echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6923CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6924
6925
6926    CXXFLAGS="-Wall -DHAVE_MPI -I${MPI_HOME}/include"
6927    LIBS="-lm -lnsl"
6928    DEPFLAGS=""
6929else
6930    echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932fi
6933
6934WANT_GCC_FLAGS=0
6935echo "$as_me:$LINENO: checking preset g++   for generic with optimization flags              " >&5
6936echo $ECHO_N "checking preset g++   for generic with optimization flags              ... $ECHO_C" >&6
6937if (test "$with_gcc" = "yes" || ((test $use_preset = 0) && ( test $CXX = "c++" || test $CXX = "g++"))) then
6938    WANT_GCC_FLAGS=1
6939    echo "$as_me:$LINENO: result: yes" >&5
6940echo "${ECHO_T}yes" >&6
6941    CC="gcc"
6942    CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG"
6943    CXX="g++"
6944    CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG"
6945    LIBS="-lm -lnsl"
6946    DEPFLAGS=""
6947else
6948    echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
6950fi
6951
6952WANT_GCC_DEBUG_FLAGS=0
6953echo "$as_me:$LINENO: checking preset g++   for generic with debugging flags                 " >&5
6954echo $ECHO_N "checking preset g++   for generic with debugging flags                 ... $ECHO_C" >&6
6955if test "$with_gcc_debug" = "yes"; then
6956    WANT_GCC_DEBUG_FLAGS=1
6957    echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959    CC="gcc"
6960    CFLAGS="-Wall"
6961    CXX="g++"
6962    CXXFLAGS="-Wall"
6963    LIBS="-lm -lnsl"
6964    DEPFLAGS=""
6965else
6966    echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6
6968fi
6969
6970WANT_GCC_DEBUG_GDB_FLAGS=0
6971echo "$as_me:$LINENO: checking preset g++   for generic with debugging and gdb flags         " >&5
6972echo $ECHO_N "checking preset g++   for generic with debugging and gdb flags         ... $ECHO_C" >&6
6973if test "$with_gcc_debug_gdb" = "yes"; then
6974    WANT_GCC_DEBUG_GDB_FLAGS=1
6975    echo "$as_me:$LINENO: result: yes" >&5
6976echo "${ECHO_T}yes" >&6
6977    CC="gcc"
6978    CFLAGS="-g -Wall"
6979    CXX="g++"
6980    CXXFLAGS="-g -Wall"
6981    LIBS="-lm -lnsl"
6982    DEPFLAGS=""
6983else
6984    echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
6986fi
6987
6988WANT_PPC_XLC_FLAGS=0
6989echo "$as_me:$LINENO: checking preset xlC   for PPC with optimization flags                  " >&5
6990echo $ECHO_N "checking preset xlC   for PPC with optimization flags                  ... $ECHO_C" >&6
6991if test "$with_ppc_xlc" = "yes"; then
6992    WANT_PPC_XLC_FLAGS=1
6993    echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995    CC="xlc_r"
6996    CFLAGS="-O4 -qinlglue -qcache=auto -qarch=auto -qtune=auto -DNDEBUG"
6997    CXX="xlC_r"
6998    CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG"
6999    LIBS="-lm -lnsl"
7000    DEPFLAGS=""
7001else
7002    echo "$as_me:$LINENO: result: no" >&5
7003echo "${ECHO_T}no" >&6
7004fi
7005
7006WANT_PPC_XLC_DEBUG_FLAGS=0
7007echo "$as_me:$LINENO: checking preset xlC   for PPC with debugging flags                     " >&5
7008echo $ECHO_N "checking preset xlC   for PPC with debugging flags                     ... $ECHO_C" >&6
7009if test "$with_ppc_xlc_debug" = "yes"; then
7010    WANT_PPC_XLC_DEBUG_FLAGS=1
7011    echo "$as_me:$LINENO: result: yes" >&5
7012echo "${ECHO_T}yes" >&6
7013    CC="xlc_r"
7014    CFLAGS=""
7015    CXX="xlC_r"
7016    CXXFLAGS=""
7017    LIBS="-lm -lnsl"
7018    DEPFLAGS=""
7019else
7020    echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022fi
7023
7024
7025WANT_AIX_XLC_FLAGS=0
7026echo "$as_me:$LINENO: checking preset xlC   for AIX with optimization flags                  " >&5
7027echo $ECHO_N "checking preset xlC   for AIX with optimization flags                  ... $ECHO_C" >&6
7028if test "$with_aix_xlc" = "yes"; then
7029    WANT_AIX_XLC_FLAGS=1
7030    echo "$as_me:$LINENO: result: yes" >&5
7031echo "${ECHO_T}yes" >&6
7032    CC="xlc_r"
7033    CFLAGS="-O4 -qinlglue -qcache=auto -qarch=auto -qtune=auto -DNDEBUG"
7034    CXX="xlC_r"
7035    CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG"
7036    LIBS="-lm -lnsl"
7037    DEPFLAGS=""
7038else
7039    echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041fi
7042
7043WANT_AIX_XLC_DEBUG_FLAGS=0
7044echo "$as_me:$LINENO: checking preset xlC   for AIX with debugging flags                     " >&5
7045echo $ECHO_N "checking preset xlC   for AIX with debugging flags                     ... $ECHO_C" >&6
7046if test "$with_aix_xlc_debug" = "yes"; then
7047    WANT_AIX_XLC_DEBUG_FLAGS=1
7048    echo "$as_me:$LINENO: result: yes" >&5
7049echo "${ECHO_T}yes" >&6
7050    CC="xlc_r"
7051    CFLAGS=""
7052    CXX="xlC_r"
7053    CXXFLAGS="-qrtti=dyna"
7054    LIBS="-lm -lnsl"
7055    DEPFLAGS=""
7056else
7057    echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6
7059fi
7060
7061
7062echo "$as_me:$LINENO: checking preset xlC   for AIX with MPI and optimization flags          " >&5
7063echo $ECHO_N "checking preset xlC   for AIX with MPI and optimization flags          ... $ECHO_C" >&6
7064WANT_AIX_XLC_MPI_FLAGS=0
7065if (test "$with_aix_xlc_mpi" = "yes" || ((test $use_preset = 0) && test $CXX = "mpCC_r")) then
7066    WANT_AIX_XLC_MPI_FLAGS=1
7067    echo "$as_me:$LINENO: result: yes" >&5
7068echo "${ECHO_T}yes" >&6
7069    CC="mpcc_r"
7070    CFLAGS="-O4 -qinlglue-qcache=auto -qarch=auto -qtune=auto -DNDEBUG -DHAVE_MPI"
7071    CXX="mpCC_r"
7072    CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG -DHAVE_MPI"
7073    LIBS="-lm -lnsl"
7074    DEPFLAGS=""
7075else
7076    echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078fi
7079
7080WANT_AIX_XLC_MPI_DEBUG_FLAGS=0
7081echo "$as_me:$LINENO: checking preset xlC   for AIX with MPI and debugging flags             " >&5
7082echo $ECHO_N "checking preset xlC   for AIX with MPI and debugging flags             ... $ECHO_C" >&6
7083if test "$with_aix_xlc_mpi_debug" = "yes"; then
7084    WANT_AIX_XLC_MPI_DEBUG_FLAGS=1
7085    echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
7087    CC="mpcc_r"
7088    CFLAGS="-g -DHAVE_MPI"
7089    CXX="mpCC_r"
7090    CXXFLAGS="-g -qrtti=dyna -DHAVE_MPI"
7091    LIBS="-lm -lnsl"
7092    DEPFLAGS=""
7093else
7094    echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
7096fi
7097
7098echo "$as_me:$LINENO: checking preset aCC   for HPUX with optimization flags                 " >&5
7099echo $ECHO_N "checking preset aCC   for HPUX with optimization flags                 ... $ECHO_C" >&6
7100WANT_HPUX_CC_FLAGS=0
7101if (test "$with_hpux_cc" = "yes" || ((test $use_preset = 0) && test $CXX = "aCC")) then
7102    WANT_HPUX_CC_FLAGS=1
7103    echo "$as_me:$LINENO: result: yes" >&5
7104echo "${ECHO_T}yes" >&6
7105    CC="cc"
7106    CFLAGS="+Z +DD64 -fast  -DNDEBUG"
7107    CXX="aCC"
7108    CXXFLAGS="+Z +DD64 +O2 +Oaggressive +noeh -AA +W67,829,336 -DNDEBUG"
7109    LIBS="-lm -lnsl"
7110else
7111    echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
7113fi
7114
7115echo "$as_me:$LINENO: checking preset aCC   for HPUX with debugging flags                    " >&5
7116echo $ECHO_N "checking preset aCC   for HPUX with debugging flags                    ... $ECHO_C" >&6
7117WANT_HPUX_CC_DEBUG_FLAGS=0
7118if test "$with_hpux_cc_debug" = "yes"; then
7119    WANT_HPUX_CC_DEBUG_FLAGS=1
7120    echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122    CC="cc"
7123    CFLAGS="+DD64 +Z -g1"
7124    CXX="aCC"
7125    CXXFLAGS="+DD64 +Z -AA -g1 +W67,829,336"
7126    LIBS="-lm -lnsl"
7127else
7128    echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130fi
7131
7132echo "$as_me:$LINENO: checking preset aCC   for HPUX with MPI and optimization flags         " >&5
7133echo $ECHO_N "checking preset aCC   for HPUX with MPI and optimization flags         ... $ECHO_C" >&6
7134WANT_HPUX_CC_MPI_FLAGS=0
7135if test "$with_hpux_cc_mpi" = "yes"; then
7136    unset CC
7137    unset CXX
7138    WANT_HPUX_CC_MPI_FLAGS=1
7139    echo "$as_me:$LINENO: result: yes" >&5
7140echo "${ECHO_T}yes" >&6
7141    CC="mpicc"
7142    CFLAGS="+Z +DD64 -fast  -DNDEBUG -DHAVE_MPI"
7143    ac_ext=cc
7144ac_cpp='$CXXCPP $CPPFLAGS'
7145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7148
7149    ac_ext=cc
7150ac_cpp='$CXXCPP $CPPFLAGS'
7151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7154if test -n "$ac_tool_prefix"; then
7155  for ac_prog in $CCC mpiCC mpicxx mpic++
7156  do
7157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7159echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7161if test "${ac_cv_prog_CXX+set}" = set; then
7162  echo $ECHO_N "(cached) $ECHO_C" >&6
7163else
7164  if test -n "$CXX"; then
7165  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170  IFS=$as_save_IFS
7171  test -z "$as_dir" && as_dir=.
7172  for ac_exec_ext in '' $ac_executable_extensions; do
7173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176    break 2
7177  fi
7178done
7179done
7180
7181fi
7182fi
7183CXX=$ac_cv_prog_CXX
7184if test -n "$CXX"; then
7185  echo "$as_me:$LINENO: result: $CXX" >&5
7186echo "${ECHO_T}$CXX" >&6
7187else
7188  echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190fi
7191
7192    test -n "$CXX" && break
7193  done
7194fi
7195if test -z "$CXX"; then
7196  ac_ct_CXX=$CXX
7197  for ac_prog in $CCC mpiCC mpicxx mpic++
7198do
7199  # Extract the first word of "$ac_prog", so it can be a program name with args.
7200set dummy $ac_prog; ac_word=$2
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  if test -n "$ac_ct_CXX"; then
7207  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212  IFS=$as_save_IFS
7213  test -z "$as_dir" && as_dir=.
7214  for ac_exec_ext in '' $ac_executable_extensions; do
7215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216    ac_cv_prog_ac_ct_CXX="$ac_prog"
7217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218    break 2
7219  fi
7220done
7221done
7222
7223fi
7224fi
7225ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7226if test -n "$ac_ct_CXX"; then
7227  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7228echo "${ECHO_T}$ac_ct_CXX" >&6
7229else
7230  echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
7232fi
7233
7234  test -n "$ac_ct_CXX" && break
7235done
7236test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7237
7238  CXX=$ac_ct_CXX
7239fi
7240
7241
7242# Provide some information about the compiler.
7243echo "$as_me:$LINENO:" \
7244     "checking for C++ compiler version" >&5
7245ac_compiler=`set X $ac_compile; echo $2`
7246{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7247  (eval $ac_compiler --version </dev/null >&5) 2>&5
7248  ac_status=$?
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); }
7251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7252  (eval $ac_compiler -v </dev/null >&5) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }
7256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7257  (eval $ac_compiler -V </dev/null >&5) 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }
7261
7262echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  cat >conftest.$ac_ext <<_ACEOF
7268#line $LINENO "configure"
7269#include "confdefs.h"
7270
7271#ifdef F77_DUMMY_MAIN
7272#  ifdef __cplusplus
7273     extern "C"
7274#  endif
7275   int F77_DUMMY_MAIN() { return 1; }
7276#endif
7277int
7278main ()
7279{
7280#ifndef __GNUC__
7281       choke me
7282#endif
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext
7289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290  (eval $ac_compile) 2>&5
7291  ac_status=$?
7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293  (exit $ac_status); } &&
7294         { ac_try='test -s conftest.$ac_objext'
7295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296  (eval $ac_try) 2>&5
7297  ac_status=$?
7298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299  (exit $ac_status); }; }; then
7300  ac_compiler_gnu=yes
7301else
7302  echo "$as_me: failed program was:" >&5
7303cat conftest.$ac_ext >&5
7304ac_compiler_gnu=no
7305fi
7306rm -f conftest.$ac_objext conftest.$ac_ext
7307ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7308
7309fi
7310echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7311echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7312GXX=`test $ac_compiler_gnu = yes && echo yes`
7313ac_test_CXXFLAGS=${CXXFLAGS+set}
7314ac_save_CXXFLAGS=$CXXFLAGS
7315CXXFLAGS="-g"
7316echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7317echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7318if test "${ac_cv_prog_cxx_g+set}" = set; then
7319  echo $ECHO_N "(cached) $ECHO_C" >&6
7320else
7321  cat >conftest.$ac_ext <<_ACEOF
7322#line $LINENO "configure"
7323#include "confdefs.h"
7324
7325#ifdef F77_DUMMY_MAIN
7326#  ifdef __cplusplus
7327     extern "C"
7328#  endif
7329   int F77_DUMMY_MAIN() { return 1; }
7330#endif
7331int
7332main ()
7333{
7334
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext
7340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341  (eval $ac_compile) 2>&5
7342  ac_status=$?
7343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344  (exit $ac_status); } &&
7345         { ac_try='test -s conftest.$ac_objext'
7346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347  (eval $ac_try) 2>&5
7348  ac_status=$?
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); }; }; then
7351  ac_cv_prog_cxx_g=yes
7352else
7353  echo "$as_me: failed program was:" >&5
7354cat conftest.$ac_ext >&5
7355ac_cv_prog_cxx_g=no
7356fi
7357rm -f conftest.$ac_objext conftest.$ac_ext
7358fi
7359echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7360echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7361if test "$ac_test_CXXFLAGS" = set; then
7362  CXXFLAGS=$ac_save_CXXFLAGS
7363elif test $ac_cv_prog_cxx_g = yes; then
7364  if test "$GXX" = yes; then
7365    CXXFLAGS="-g -O2"
7366  else
7367    CXXFLAGS="-g"
7368  fi
7369else
7370  if test "$GXX" = yes; then
7371    CXXFLAGS="-O2"
7372  else
7373    CXXFLAGS=
7374  fi
7375fi
7376for ac_declaration in \
7377   ''\
7378   '#include <stdlib.h>' \
7379   'extern "C" void std::exit (int) throw (); using std::exit;' \
7380   'extern "C" void std::exit (int); using std::exit;' \
7381   'extern "C" void exit (int) throw ();' \
7382   'extern "C" void exit (int);' \
7383   'void exit (int);'
7384do
7385  cat >conftest.$ac_ext <<_ACEOF
7386#line $LINENO "configure"
7387#include "confdefs.h"
7388@%:@include <stdlib.h>
7389$ac_declaration
7390#ifdef F77_DUMMY_MAIN
7391#  ifdef __cplusplus
7392     extern "C"
7393#  endif
7394   int F77_DUMMY_MAIN() { return 1; }
7395#endif
7396int
7397main ()
7398{
7399exit (42);
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404rm -f conftest.$ac_objext
7405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406  (eval $ac_compile) 2>&5
7407  ac_status=$?
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } &&
7410         { ac_try='test -s conftest.$ac_objext'
7411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412  (eval $ac_try) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); }; }; then
7416  :
7417else
7418  echo "$as_me: failed program was:" >&5
7419cat conftest.$ac_ext >&5
7420continue
7421fi
7422rm -f conftest.$ac_objext conftest.$ac_ext
7423  cat >conftest.$ac_ext <<_ACEOF
7424#line $LINENO "configure"
7425#include "confdefs.h"
7426$ac_declaration
7427#ifdef F77_DUMMY_MAIN
7428#  ifdef __cplusplus
7429     extern "C"
7430#  endif
7431   int F77_DUMMY_MAIN() { return 1; }
7432#endif
7433int
7434main ()
7435{
7436exit (42);
7437  ;
7438  return 0;
7439}
7440_ACEOF
7441rm -f conftest.$ac_objext
7442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443  (eval $ac_compile) 2>&5
7444  ac_status=$?
7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446  (exit $ac_status); } &&
7447         { ac_try='test -s conftest.$ac_objext'
7448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449  (eval $ac_try) 2>&5
7450  ac_status=$?
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); }; }; then
7453  break
7454else
7455  echo "$as_me: failed program was:" >&5
7456cat conftest.$ac_ext >&5
7457fi
7458rm -f conftest.$ac_objext conftest.$ac_ext
7459done
7460rm -f conftest*
7461if test -n "$ac_declaration"; then
7462  echo '#ifdef __cplusplus' >>confdefs.h
7463  echo $ac_declaration      >>confdefs.h
7464  echo '#endif'             >>confdefs.h
7465fi
7466
7467ac_ext=cc
7468ac_cpp='$CXXCPP $CPPFLAGS'
7469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7472
7473depcc="$CXX"  am_compiler_list=
7474
7475echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7476echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7477if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7478  echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7481  # We make a subdir and do the tests there.  Otherwise we can end up
7482  # making bogus files that we don't know about and never remove.  For
7483  # instance it was reported that on HP-UX the gcc test will end up
7484  # making a dummy file named `D' -- because `-MD' means `put the output
7485  # in D'.
7486  mkdir conftest.dir
7487  # Copy depcomp to subdir because otherwise we won't find it if we're
7488  # using a relative directory.
7489  cp "$am_depcomp" conftest.dir
7490  cd conftest.dir
7491
7492  am_cv_CXX_dependencies_compiler_type=none
7493  if test "$am_compiler_list" = ""; then
7494     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7495  fi
7496  for depmode in $am_compiler_list; do
7497    # We need to recreate these files for each test, as the compiler may
7498    # overwrite some of them when testing with obscure command lines.
7499    # This happens at least with the AIX C compiler.
7500    echo '#include "conftest.h"' > conftest.c
7501    echo 'int i;' > conftest.h
7502    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7503
7504    case $depmode in
7505    nosideeffect)
7506      # after this tag, mechanisms are not by side-effect, so they'll
7507      # only be used when explicitly requested
7508      if test "x$enable_dependency_tracking" = xyes; then
7509	continue
7510      else
7511	break
7512      fi
7513      ;;
7514    none) break ;;
7515    esac
7516    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7517    # mode.  It turns out that the SunPro C++ compiler does not properly
7518    # handle `-M -o', and we need to detect this.
7519    if depmode=$depmode \
7520       source=conftest.c object=conftest.o \
7521       depfile=conftest.Po tmpdepfile=conftest.TPo \
7522       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7523       grep conftest.h conftest.Po > /dev/null 2>&1 &&
7524       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7525      am_cv_CXX_dependencies_compiler_type=$depmode
7526      break
7527    fi
7528  done
7529
7530  cd ..
7531  rm -rf conftest.dir
7532else
7533  am_cv_CXX_dependencies_compiler_type=none
7534fi
7535
7536fi
7537echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7538echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7539CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7540
7541
7542    CXXFLAGS="+Z +DD64 +O2 +Oaggressive +noeh -AA +W67,829,336 -DNDEBUG -DHAVE_MPI"
7543    LIBS="-lm -lnsl"
7544else
7545    echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549echo "$as_me:$LINENO: checking preset aCC   for HPUX with MPI and debugging flags            " >&5
7550echo $ECHO_N "checking preset aCC   for HPUX with MPI and debugging flags            ... $ECHO_C" >&6
7551WANT_HPUX_CC_MPI_DEBUG_FLAGS=0
7552if test "$with_hpux_cc_mpi_debug" = "yes"; then
7553    unset CC
7554    unset CXX
7555    WANT_HPUX_CC_MPI_DEBUG_FLAGS=1
7556    echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
7558    CC="mpicc"
7559    CFLAGS="+DD64 +Z -g1 -DHAVE_MPI"
7560    ac_ext=cc
7561ac_cpp='$CXXCPP $CPPFLAGS'
7562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7565
7566    ac_ext=cc
7567ac_cpp='$CXXCPP $CPPFLAGS'
7568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7571if test -n "$ac_tool_prefix"; then
7572  for ac_prog in $CCC mpiCC mpicxx mpic++
7573  do
7574    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7575set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7576echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578if test "${ac_cv_prog_CXX+set}" = set; then
7579  echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581  if test -n "$CXX"; then
7582  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589  for ac_exec_ext in '' $ac_executable_extensions; do
7590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596done
7597
7598fi
7599fi
7600CXX=$ac_cv_prog_CXX
7601if test -n "$CXX"; then
7602  echo "$as_me:$LINENO: result: $CXX" >&5
7603echo "${ECHO_T}$CXX" >&6
7604else
7605  echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6
7607fi
7608
7609    test -n "$CXX" && break
7610  done
7611fi
7612if test -z "$CXX"; then
7613  ac_ct_CXX=$CXX
7614  for ac_prog in $CCC mpiCC mpicxx mpic++
7615do
7616  # Extract the first word of "$ac_prog", so it can be a program name with args.
7617set dummy $ac_prog; ac_word=$2
7618echo "$as_me:$LINENO: checking for $ac_word" >&5
7619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7620if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7621  echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623  if test -n "$ac_ct_CXX"; then
7624  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629  IFS=$as_save_IFS
7630  test -z "$as_dir" && as_dir=.
7631  for ac_exec_ext in '' $ac_executable_extensions; do
7632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633    ac_cv_prog_ac_ct_CXX="$ac_prog"
7634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635    break 2
7636  fi
7637done
7638done
7639
7640fi
7641fi
7642ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7643if test -n "$ac_ct_CXX"; then
7644  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7645echo "${ECHO_T}$ac_ct_CXX" >&6
7646else
7647  echo "$as_me:$LINENO: result: no" >&5
7648echo "${ECHO_T}no" >&6
7649fi
7650
7651  test -n "$ac_ct_CXX" && break
7652done
7653test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7654
7655  CXX=$ac_ct_CXX
7656fi
7657
7658
7659# Provide some information about the compiler.
7660echo "$as_me:$LINENO:" \
7661     "checking for C++ compiler version" >&5
7662ac_compiler=`set X $ac_compile; echo $2`
7663{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7664  (eval $ac_compiler --version </dev/null >&5) 2>&5
7665  ac_status=$?
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); }
7668{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7669  (eval $ac_compiler -v </dev/null >&5) 2>&5
7670  ac_status=$?
7671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672  (exit $ac_status); }
7673{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7674  (eval $ac_compiler -V </dev/null >&5) 2>&5
7675  ac_status=$?
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); }
7678
7679echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7680echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7681if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7682  echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684  cat >conftest.$ac_ext <<_ACEOF
7685#line $LINENO "configure"
7686#include "confdefs.h"
7687
7688#ifdef F77_DUMMY_MAIN
7689#  ifdef __cplusplus
7690     extern "C"
7691#  endif
7692   int F77_DUMMY_MAIN() { return 1; }
7693#endif
7694int
7695main ()
7696{
7697#ifndef __GNUC__
7698       choke me
7699#endif
7700
7701  ;
7702  return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext
7706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7707  (eval $ac_compile) 2>&5
7708  ac_status=$?
7709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710  (exit $ac_status); } &&
7711         { ac_try='test -s conftest.$ac_objext'
7712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713  (eval $ac_try) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); }; }; then
7717  ac_compiler_gnu=yes
7718else
7719  echo "$as_me: failed program was:" >&5
7720cat conftest.$ac_ext >&5
7721ac_compiler_gnu=no
7722fi
7723rm -f conftest.$ac_objext conftest.$ac_ext
7724ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7725
7726fi
7727echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7728echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7729GXX=`test $ac_compiler_gnu = yes && echo yes`
7730ac_test_CXXFLAGS=${CXXFLAGS+set}
7731ac_save_CXXFLAGS=$CXXFLAGS
7732CXXFLAGS="-g"
7733echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7734echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7735if test "${ac_cv_prog_cxx_g+set}" = set; then
7736  echo $ECHO_N "(cached) $ECHO_C" >&6
7737else
7738  cat >conftest.$ac_ext <<_ACEOF
7739#line $LINENO "configure"
7740#include "confdefs.h"
7741
7742#ifdef F77_DUMMY_MAIN
7743#  ifdef __cplusplus
7744     extern "C"
7745#  endif
7746   int F77_DUMMY_MAIN() { return 1; }
7747#endif
7748int
7749main ()
7750{
7751
7752  ;
7753  return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext
7757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758  (eval $ac_compile) 2>&5
7759  ac_status=$?
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); } &&
7762         { ac_try='test -s conftest.$ac_objext'
7763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764  (eval $ac_try) 2>&5
7765  ac_status=$?
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); }; }; then
7768  ac_cv_prog_cxx_g=yes
7769else
7770  echo "$as_me: failed program was:" >&5
7771cat conftest.$ac_ext >&5
7772ac_cv_prog_cxx_g=no
7773fi
7774rm -f conftest.$ac_objext conftest.$ac_ext
7775fi
7776echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7777echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7778if test "$ac_test_CXXFLAGS" = set; then
7779  CXXFLAGS=$ac_save_CXXFLAGS
7780elif test $ac_cv_prog_cxx_g = yes; then
7781  if test "$GXX" = yes; then
7782    CXXFLAGS="-g -O2"
7783  else
7784    CXXFLAGS="-g"
7785  fi
7786else
7787  if test "$GXX" = yes; then
7788    CXXFLAGS="-O2"
7789  else
7790    CXXFLAGS=
7791  fi
7792fi
7793for ac_declaration in \
7794   ''\
7795   '#include <stdlib.h>' \
7796   'extern "C" void std::exit (int) throw (); using std::exit;' \
7797   'extern "C" void std::exit (int); using std::exit;' \
7798   'extern "C" void exit (int) throw ();' \
7799   'extern "C" void exit (int);' \
7800   'void exit (int);'
7801do
7802  cat >conftest.$ac_ext <<_ACEOF
7803#line $LINENO "configure"
7804#include "confdefs.h"
7805@%:@include <stdlib.h>
7806$ac_declaration
7807#ifdef F77_DUMMY_MAIN
7808#  ifdef __cplusplus
7809     extern "C"
7810#  endif
7811   int F77_DUMMY_MAIN() { return 1; }
7812#endif
7813int
7814main ()
7815{
7816exit (42);
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821rm -f conftest.$ac_objext
7822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823  (eval $ac_compile) 2>&5
7824  ac_status=$?
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); } &&
7827         { ac_try='test -s conftest.$ac_objext'
7828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829  (eval $ac_try) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }; }; then
7833  :
7834else
7835  echo "$as_me: failed program was:" >&5
7836cat conftest.$ac_ext >&5
7837continue
7838fi
7839rm -f conftest.$ac_objext conftest.$ac_ext
7840  cat >conftest.$ac_ext <<_ACEOF
7841#line $LINENO "configure"
7842#include "confdefs.h"
7843$ac_declaration
7844#ifdef F77_DUMMY_MAIN
7845#  ifdef __cplusplus
7846     extern "C"
7847#  endif
7848   int F77_DUMMY_MAIN() { return 1; }
7849#endif
7850int
7851main ()
7852{
7853exit (42);
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858rm -f conftest.$ac_objext
7859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860  (eval $ac_compile) 2>&5
7861  ac_status=$?
7862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863  (exit $ac_status); } &&
7864         { ac_try='test -s conftest.$ac_objext'
7865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866  (eval $ac_try) 2>&5
7867  ac_status=$?
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); }; }; then
7870  break
7871else
7872  echo "$as_me: failed program was:" >&5
7873cat conftest.$ac_ext >&5
7874fi
7875rm -f conftest.$ac_objext conftest.$ac_ext
7876done
7877rm -f conftest*
7878if test -n "$ac_declaration"; then
7879  echo '#ifdef __cplusplus' >>confdefs.h
7880  echo $ac_declaration      >>confdefs.h
7881  echo '#endif'             >>confdefs.h
7882fi
7883
7884ac_ext=cc
7885ac_cpp='$CXXCPP $CPPFLAGS'
7886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7889
7890depcc="$CXX"  am_compiler_list=
7891
7892echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7893echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7894if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7895  echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7898  # We make a subdir and do the tests there.  Otherwise we can end up
7899  # making bogus files that we don't know about and never remove.  For
7900  # instance it was reported that on HP-UX the gcc test will end up
7901  # making a dummy file named `D' -- because `-MD' means `put the output
7902  # in D'.
7903  mkdir conftest.dir
7904  # Copy depcomp to subdir because otherwise we won't find it if we're
7905  # using a relative directory.
7906  cp "$am_depcomp" conftest.dir
7907  cd conftest.dir
7908
7909  am_cv_CXX_dependencies_compiler_type=none
7910  if test "$am_compiler_list" = ""; then
7911     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7912  fi
7913  for depmode in $am_compiler_list; do
7914    # We need to recreate these files for each test, as the compiler may
7915    # overwrite some of them when testing with obscure command lines.
7916    # This happens at least with the AIX C compiler.
7917    echo '#include "conftest.h"' > conftest.c
7918    echo 'int i;' > conftest.h
7919    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7920
7921    case $depmode in
7922    nosideeffect)
7923      # after this tag, mechanisms are not by side-effect, so they'll
7924      # only be used when explicitly requested
7925      if test "x$enable_dependency_tracking" = xyes; then
7926	continue
7927      else
7928	break
7929      fi
7930      ;;
7931    none) break ;;
7932    esac
7933    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7934    # mode.  It turns out that the SunPro C++ compiler does not properly
7935    # handle `-M -o', and we need to detect this.
7936    if depmode=$depmode \
7937       source=conftest.c object=conftest.o \
7938       depfile=conftest.Po tmpdepfile=conftest.TPo \
7939       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7940       grep conftest.h conftest.Po > /dev/null 2>&1 &&
7941       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7942      am_cv_CXX_dependencies_compiler_type=$depmode
7943      break
7944    fi
7945  done
7946
7947  cd ..
7948  rm -rf conftest.dir
7949else
7950  am_cv_CXX_dependencies_compiler_type=none
7951fi
7952
7953fi
7954echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7955echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7956CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7957
7958
7959    CXXFLAGS="+DD64 +Z -AA -g1 +W67,829,336 -DHAVE_MPI"
7960    LIBS="-lm -lnsl"
7961else
7962    echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6
7964fi
7965
7966
7967
7968
7969
7970
7971
7972
7973echo ""
7974echo "CC       : $CC"
7975echo "CFLAGS   : $CFLAGS"
7976echo "CXXFLAGS : $CXXFLAGS"
7977echo "CXX      : $CXX"
7978echo "CXXCPP   : $CXXCPP"
7979echo "LIBS     : $LIBS"
7980echo "CPP      : $CPP"
7981echo "CPPFLAGS : $CPPFLAGS"
7982echo ""
7983
7984#
7985# Tools
7986#
7987ac_ext=cc
7988ac_cpp='$CXXCPP $CPPFLAGS'
7989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7992
7993ac_ext=cc
7994ac_cpp='$CXXCPP $CPPFLAGS'
7995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7998if test -n "$ac_tool_prefix"; then
7999  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8000  do
8001    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8003echo "$as_me:$LINENO: checking for $ac_word" >&5
8004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8005if test "${ac_cv_prog_CXX+set}" = set; then
8006  echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008  if test -n "$CXX"; then
8009  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8010else
8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014  IFS=$as_save_IFS
8015  test -z "$as_dir" && as_dir=.
8016  for ac_exec_ext in '' $ac_executable_extensions; do
8017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020    break 2
8021  fi
8022done
8023done
8024
8025fi
8026fi
8027CXX=$ac_cv_prog_CXX
8028if test -n "$CXX"; then
8029  echo "$as_me:$LINENO: result: $CXX" >&5
8030echo "${ECHO_T}$CXX" >&6
8031else
8032  echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034fi
8035
8036    test -n "$CXX" && break
8037  done
8038fi
8039if test -z "$CXX"; then
8040  ac_ct_CXX=$CXX
8041  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8042do
8043  # Extract the first word of "$ac_prog", so it can be a program name with args.
8044set dummy $ac_prog; ac_word=$2
8045echo "$as_me:$LINENO: checking for $ac_word" >&5
8046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8048  echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050  if test -n "$ac_ct_CXX"; then
8051  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8052else
8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054for as_dir in $PATH
8055do
8056  IFS=$as_save_IFS
8057  test -z "$as_dir" && as_dir=.
8058  for ac_exec_ext in '' $ac_executable_extensions; do
8059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060    ac_cv_prog_ac_ct_CXX="$ac_prog"
8061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062    break 2
8063  fi
8064done
8065done
8066
8067fi
8068fi
8069ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8070if test -n "$ac_ct_CXX"; then
8071  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8072echo "${ECHO_T}$ac_ct_CXX" >&6
8073else
8074  echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076fi
8077
8078  test -n "$ac_ct_CXX" && break
8079done
8080test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8081
8082  CXX=$ac_ct_CXX
8083fi
8084
8085
8086# Provide some information about the compiler.
8087echo "$as_me:$LINENO:" \
8088     "checking for C++ compiler version" >&5
8089ac_compiler=`set X $ac_compile; echo $2`
8090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8091  (eval $ac_compiler --version </dev/null >&5) 2>&5
8092  ac_status=$?
8093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094  (exit $ac_status); }
8095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8096  (eval $ac_compiler -v </dev/null >&5) 2>&5
8097  ac_status=$?
8098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099  (exit $ac_status); }
8100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8101  (eval $ac_compiler -V </dev/null >&5) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }
8105
8106echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8107echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8108if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  cat >conftest.$ac_ext <<_ACEOF
8112#line $LINENO "configure"
8113#include "confdefs.h"
8114
8115#ifdef F77_DUMMY_MAIN
8116#  ifdef __cplusplus
8117     extern "C"
8118#  endif
8119   int F77_DUMMY_MAIN() { return 1; }
8120#endif
8121int
8122main ()
8123{
8124#ifndef __GNUC__
8125       choke me
8126#endif
8127
8128  ;
8129  return 0;
8130}
8131_ACEOF
8132rm -f conftest.$ac_objext
8133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134  (eval $ac_compile) 2>&5
8135  ac_status=$?
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); } &&
8138         { ac_try='test -s conftest.$ac_objext'
8139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140  (eval $ac_try) 2>&5
8141  ac_status=$?
8142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143  (exit $ac_status); }; }; then
8144  ac_compiler_gnu=yes
8145else
8146  echo "$as_me: failed program was:" >&5
8147cat conftest.$ac_ext >&5
8148ac_compiler_gnu=no
8149fi
8150rm -f conftest.$ac_objext conftest.$ac_ext
8151ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8152
8153fi
8154echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8155echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8156GXX=`test $ac_compiler_gnu = yes && echo yes`
8157ac_test_CXXFLAGS=${CXXFLAGS+set}
8158ac_save_CXXFLAGS=$CXXFLAGS
8159CXXFLAGS="-g"
8160echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8161echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8162if test "${ac_cv_prog_cxx_g+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  cat >conftest.$ac_ext <<_ACEOF
8166#line $LINENO "configure"
8167#include "confdefs.h"
8168
8169#ifdef F77_DUMMY_MAIN
8170#  ifdef __cplusplus
8171     extern "C"
8172#  endif
8173   int F77_DUMMY_MAIN() { return 1; }
8174#endif
8175int
8176main ()
8177{
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext
8184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185  (eval $ac_compile) 2>&5
8186  ac_status=$?
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); } &&
8189         { ac_try='test -s conftest.$ac_objext'
8190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191  (eval $ac_try) 2>&5
8192  ac_status=$?
8193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194  (exit $ac_status); }; }; then
8195  ac_cv_prog_cxx_g=yes
8196else
8197  echo "$as_me: failed program was:" >&5
8198cat conftest.$ac_ext >&5
8199ac_cv_prog_cxx_g=no
8200fi
8201rm -f conftest.$ac_objext conftest.$ac_ext
8202fi
8203echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8205if test "$ac_test_CXXFLAGS" = set; then
8206  CXXFLAGS=$ac_save_CXXFLAGS
8207elif test $ac_cv_prog_cxx_g = yes; then
8208  if test "$GXX" = yes; then
8209    CXXFLAGS="-g -O2"
8210  else
8211    CXXFLAGS="-g"
8212  fi
8213else
8214  if test "$GXX" = yes; then
8215    CXXFLAGS="-O2"
8216  else
8217    CXXFLAGS=
8218  fi
8219fi
8220for ac_declaration in \
8221   ''\
8222   '#include <stdlib.h>' \
8223   'extern "C" void std::exit (int) throw (); using std::exit;' \
8224   'extern "C" void std::exit (int); using std::exit;' \
8225   'extern "C" void exit (int) throw ();' \
8226   'extern "C" void exit (int);' \
8227   'void exit (int);'
8228do
8229  cat >conftest.$ac_ext <<_ACEOF
8230#line $LINENO "configure"
8231#include "confdefs.h"
8232@%:@include <stdlib.h>
8233$ac_declaration
8234#ifdef F77_DUMMY_MAIN
8235#  ifdef __cplusplus
8236     extern "C"
8237#  endif
8238   int F77_DUMMY_MAIN() { return 1; }
8239#endif
8240int
8241main ()
8242{
8243exit (42);
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250  (eval $ac_compile) 2>&5
8251  ac_status=$?
8252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253  (exit $ac_status); } &&
8254         { ac_try='test -s conftest.$ac_objext'
8255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256  (eval $ac_try) 2>&5
8257  ac_status=$?
8258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259  (exit $ac_status); }; }; then
8260  :
8261else
8262  echo "$as_me: failed program was:" >&5
8263cat conftest.$ac_ext >&5
8264continue
8265fi
8266rm -f conftest.$ac_objext conftest.$ac_ext
8267  cat >conftest.$ac_ext <<_ACEOF
8268#line $LINENO "configure"
8269#include "confdefs.h"
8270$ac_declaration
8271#ifdef F77_DUMMY_MAIN
8272#  ifdef __cplusplus
8273     extern "C"
8274#  endif
8275   int F77_DUMMY_MAIN() { return 1; }
8276#endif
8277int
8278main ()
8279{
8280exit (42);
8281  ;
8282  return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext
8286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287  (eval $ac_compile) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); } &&
8291         { ac_try='test -s conftest.$ac_objext'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; }; then
8297  break
8298else
8299  echo "$as_me: failed program was:" >&5
8300cat conftest.$ac_ext >&5
8301fi
8302rm -f conftest.$ac_objext conftest.$ac_ext
8303done
8304rm -f conftest*
8305if test -n "$ac_declaration"; then
8306  echo '#ifdef __cplusplus' >>confdefs.h
8307  echo $ac_declaration      >>confdefs.h
8308  echo '#endif'             >>confdefs.h
8309fi
8310
8311ac_ext=cc
8312ac_cpp='$CXXCPP $CPPFLAGS'
8313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8316
8317depcc="$CXX"  am_compiler_list=
8318
8319echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8320echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8321if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8322  echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8325  # We make a subdir and do the tests there.  Otherwise we can end up
8326  # making bogus files that we don't know about and never remove.  For
8327  # instance it was reported that on HP-UX the gcc test will end up
8328  # making a dummy file named `D' -- because `-MD' means `put the output
8329  # in D'.
8330  mkdir conftest.dir
8331  # Copy depcomp to subdir because otherwise we won't find it if we're
8332  # using a relative directory.
8333  cp "$am_depcomp" conftest.dir
8334  cd conftest.dir
8335
8336  am_cv_CXX_dependencies_compiler_type=none
8337  if test "$am_compiler_list" = ""; then
8338     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8339  fi
8340  for depmode in $am_compiler_list; do
8341    # We need to recreate these files for each test, as the compiler may
8342    # overwrite some of them when testing with obscure command lines.
8343    # This happens at least with the AIX C compiler.
8344    echo '#include "conftest.h"' > conftest.c
8345    echo 'int i;' > conftest.h
8346    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8347
8348    case $depmode in
8349    nosideeffect)
8350      # after this tag, mechanisms are not by side-effect, so they'll
8351      # only be used when explicitly requested
8352      if test "x$enable_dependency_tracking" = xyes; then
8353	continue
8354      else
8355	break
8356      fi
8357      ;;
8358    none) break ;;
8359    esac
8360    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8361    # mode.  It turns out that the SunPro C++ compiler does not properly
8362    # handle `-M -o', and we need to detect this.
8363    if depmode=$depmode \
8364       source=conftest.c object=conftest.o \
8365       depfile=conftest.Po tmpdepfile=conftest.TPo \
8366       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8367       grep conftest.h conftest.Po > /dev/null 2>&1 &&
8368       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8369      am_cv_CXX_dependencies_compiler_type=$depmode
8370      break
8371    fi
8372  done
8373
8374  cd ..
8375  rm -rf conftest.dir
8376else
8377  am_cv_CXX_dependencies_compiler_type=none
8378fi
8379
8380fi
8381echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8382echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8383CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8384
8385
8386ac_ext=cc
8387ac_cpp='$CXXCPP $CPPFLAGS'
8388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8391echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8392echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8393if test -z "$CXXCPP"; then
8394  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8395  echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397      # Double quotes because CXXCPP needs to be expanded
8398    for CXXCPP in "$CXX -E" "/lib/cpp"
8399    do
8400      ac_preproc_ok=false
8401for ac_cxx_preproc_warn_flag in '' yes
8402do
8403  # Use a header file that comes with gcc, so configuring glibc
8404  # with a fresh cross-compiler works.
8405  # On the NeXT, cc -E runs the code through the compiler's parser,
8406  # not just through cpp. "Syntax error" is here to catch this case.
8407  cat >conftest.$ac_ext <<_ACEOF
8408#line $LINENO "configure"
8409#include "confdefs.h"
8410@%:@include <assert.h>
8411                     Syntax error
8412_ACEOF
8413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8415  ac_status=$?
8416  egrep -v '^ *\+' conftest.er1 >conftest.err
8417  rm -f conftest.er1
8418  cat conftest.err >&5
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); } >/dev/null; then
8421  if test -s conftest.err; then
8422    ac_cpp_err=$ac_cxx_preproc_warn_flag
8423  else
8424    ac_cpp_err=
8425  fi
8426else
8427  ac_cpp_err=yes
8428fi
8429if test -z "$ac_cpp_err"; then
8430  :
8431else
8432  echo "$as_me: failed program was:" >&5
8433  cat conftest.$ac_ext >&5
8434  # Broken: fails on valid input.
8435continue
8436fi
8437rm -f conftest.err conftest.$ac_ext
8438
8439  # OK, works on sane cases.  Now check whether non-existent headers
8440  # can be detected and how.
8441  cat >conftest.$ac_ext <<_ACEOF
8442#line $LINENO "configure"
8443#include "confdefs.h"
8444@%:@include <ac_nonexistent.h>
8445_ACEOF
8446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8447  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8448  ac_status=$?
8449  egrep -v '^ *\+' conftest.er1 >conftest.err
8450  rm -f conftest.er1
8451  cat conftest.err >&5
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); } >/dev/null; then
8454  if test -s conftest.err; then
8455    ac_cpp_err=$ac_cxx_preproc_warn_flag
8456  else
8457    ac_cpp_err=
8458  fi
8459else
8460  ac_cpp_err=yes
8461fi
8462if test -z "$ac_cpp_err"; then
8463  # Broken: success on invalid input.
8464continue
8465else
8466  echo "$as_me: failed program was:" >&5
8467  cat conftest.$ac_ext >&5
8468  # Passes both tests.
8469ac_preproc_ok=:
8470break
8471fi
8472rm -f conftest.err conftest.$ac_ext
8473
8474done
8475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8476rm -f conftest.err conftest.$ac_ext
8477if $ac_preproc_ok; then
8478  break
8479fi
8480
8481    done
8482    ac_cv_prog_CXXCPP=$CXXCPP
8483
8484fi
8485  CXXCPP=$ac_cv_prog_CXXCPP
8486else
8487  ac_cv_prog_CXXCPP=$CXXCPP
8488fi
8489echo "$as_me:$LINENO: result: $CXXCPP" >&5
8490echo "${ECHO_T}$CXXCPP" >&6
8491ac_preproc_ok=false
8492for ac_cxx_preproc_warn_flag in '' yes
8493do
8494  # Use a header file that comes with gcc, so configuring glibc
8495  # with a fresh cross-compiler works.
8496  # On the NeXT, cc -E runs the code through the compiler's parser,
8497  # not just through cpp. "Syntax error" is here to catch this case.
8498  cat >conftest.$ac_ext <<_ACEOF
8499#line $LINENO "configure"
8500#include "confdefs.h"
8501@%:@include <assert.h>
8502                     Syntax error
8503_ACEOF
8504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506  ac_status=$?
8507  egrep -v '^ *\+' conftest.er1 >conftest.err
8508  rm -f conftest.er1
8509  cat conftest.err >&5
8510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511  (exit $ac_status); } >/dev/null; then
8512  if test -s conftest.err; then
8513    ac_cpp_err=$ac_cxx_preproc_warn_flag
8514  else
8515    ac_cpp_err=
8516  fi
8517else
8518  ac_cpp_err=yes
8519fi
8520if test -z "$ac_cpp_err"; then
8521  :
8522else
8523  echo "$as_me: failed program was:" >&5
8524  cat conftest.$ac_ext >&5
8525  # Broken: fails on valid input.
8526continue
8527fi
8528rm -f conftest.err conftest.$ac_ext
8529
8530  # OK, works on sane cases.  Now check whether non-existent headers
8531  # can be detected and how.
8532  cat >conftest.$ac_ext <<_ACEOF
8533#line $LINENO "configure"
8534#include "confdefs.h"
8535@%:@include <ac_nonexistent.h>
8536_ACEOF
8537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539  ac_status=$?
8540  egrep -v '^ *\+' conftest.er1 >conftest.err
8541  rm -f conftest.er1
8542  cat conftest.err >&5
8543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544  (exit $ac_status); } >/dev/null; then
8545  if test -s conftest.err; then
8546    ac_cpp_err=$ac_cxx_preproc_warn_flag
8547  else
8548    ac_cpp_err=
8549  fi
8550else
8551  ac_cpp_err=yes
8552fi
8553if test -z "$ac_cpp_err"; then
8554  # Broken: success on invalid input.
8555continue
8556else
8557  echo "$as_me: failed program was:" >&5
8558  cat conftest.$ac_ext >&5
8559  # Passes both tests.
8560ac_preproc_ok=:
8561break
8562fi
8563rm -f conftest.err conftest.$ac_ext
8564
8565done
8566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8567rm -f conftest.err conftest.$ac_ext
8568if $ac_preproc_ok; then
8569  :
8570else
8571  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
8572echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
8573   { (exit 1); exit 1; }; }
8574fi
8575
8576ac_ext=cc
8577ac_cpp='$CXXCPP $CPPFLAGS'
8578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8581
8582ac_ext=c
8583ac_cpp='$CPP $CPPFLAGS'
8584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587if test -n "$ac_tool_prefix"; then
8588  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8589set dummy ${ac_tool_prefix}gcc; ac_word=$2
8590echo "$as_me:$LINENO: checking for $ac_word" >&5
8591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8592if test "${ac_cv_prog_CC+set}" = set; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  if test -n "$CC"; then
8596  ac_cv_prog_CC="$CC" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  test -z "$as_dir" && as_dir=.
8603  for ac_exec_ext in '' $ac_executable_extensions; do
8604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605    ac_cv_prog_CC="${ac_tool_prefix}gcc"
8606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610done
8611
8612fi
8613fi
8614CC=$ac_cv_prog_CC
8615if test -n "$CC"; then
8616  echo "$as_me:$LINENO: result: $CC" >&5
8617echo "${ECHO_T}$CC" >&6
8618else
8619  echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621fi
8622
8623fi
8624if test -z "$ac_cv_prog_CC"; then
8625  ac_ct_CC=$CC
8626  # Extract the first word of "gcc", so it can be a program name with args.
8627set dummy gcc; ac_word=$2
8628echo "$as_me:$LINENO: checking for $ac_word" >&5
8629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8631  echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633  if test -n "$ac_ct_CC"; then
8634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641  for ac_exec_ext in '' $ac_executable_extensions; do
8642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643    ac_cv_prog_ac_ct_CC="gcc"
8644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648done
8649
8650fi
8651fi
8652ac_ct_CC=$ac_cv_prog_ac_ct_CC
8653if test -n "$ac_ct_CC"; then
8654  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8655echo "${ECHO_T}$ac_ct_CC" >&6
8656else
8657  echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
8659fi
8660
8661  CC=$ac_ct_CC
8662else
8663  CC="$ac_cv_prog_CC"
8664fi
8665
8666if test -z "$CC"; then
8667  if test -n "$ac_tool_prefix"; then
8668  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8669set dummy ${ac_tool_prefix}cc; ac_word=$2
8670echo "$as_me:$LINENO: checking for $ac_word" >&5
8671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672if test "${ac_cv_prog_CC+set}" = set; then
8673  echo $ECHO_N "(cached) $ECHO_C" >&6
8674else
8675  if test -n "$CC"; then
8676  ac_cv_prog_CC="$CC" # Let the user override the test.
8677else
8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681  IFS=$as_save_IFS
8682  test -z "$as_dir" && as_dir=.
8683  for ac_exec_ext in '' $ac_executable_extensions; do
8684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685    ac_cv_prog_CC="${ac_tool_prefix}cc"
8686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687    break 2
8688  fi
8689done
8690done
8691
8692fi
8693fi
8694CC=$ac_cv_prog_CC
8695if test -n "$CC"; then
8696  echo "$as_me:$LINENO: result: $CC" >&5
8697echo "${ECHO_T}$CC" >&6
8698else
8699  echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6
8701fi
8702
8703fi
8704if test -z "$ac_cv_prog_CC"; then
8705  ac_ct_CC=$CC
8706  # Extract the first word of "cc", so it can be a program name with args.
8707set dummy cc; ac_word=$2
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8711  echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713  if test -n "$ac_ct_CC"; then
8714  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719  IFS=$as_save_IFS
8720  test -z "$as_dir" && as_dir=.
8721  for ac_exec_ext in '' $ac_executable_extensions; do
8722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723    ac_cv_prog_ac_ct_CC="cc"
8724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725    break 2
8726  fi
8727done
8728done
8729
8730fi
8731fi
8732ac_ct_CC=$ac_cv_prog_ac_ct_CC
8733if test -n "$ac_ct_CC"; then
8734  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8735echo "${ECHO_T}$ac_ct_CC" >&6
8736else
8737  echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
8739fi
8740
8741  CC=$ac_ct_CC
8742else
8743  CC="$ac_cv_prog_CC"
8744fi
8745
8746fi
8747if test -z "$CC"; then
8748  # Extract the first word of "cc", so it can be a program name with args.
8749set dummy cc; ac_word=$2
8750echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752if test "${ac_cv_prog_CC+set}" = set; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755  if test -n "$CC"; then
8756  ac_cv_prog_CC="$CC" # Let the user override the test.
8757else
8758  ac_prog_rejected=no
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762  IFS=$as_save_IFS
8763  test -z "$as_dir" && as_dir=.
8764  for ac_exec_ext in '' $ac_executable_extensions; do
8765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8767       ac_prog_rejected=yes
8768       continue
8769     fi
8770    ac_cv_prog_CC="cc"
8771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772    break 2
8773  fi
8774done
8775done
8776
8777if test $ac_prog_rejected = yes; then
8778  # We found a bogon in the path, so make sure we never use it.
8779  set dummy $ac_cv_prog_CC
8780  shift
8781  if test $@%:@ != 0; then
8782    # We chose a different compiler from the bogus one.
8783    # However, it has the same basename, so the bogon will be chosen
8784    # first if we set CC to just the basename; use the full file name.
8785    shift
8786    set dummy "$as_dir/$ac_word" ${1+"$@"}
8787    shift
8788    ac_cv_prog_CC="$@"
8789  fi
8790fi
8791fi
8792fi
8793CC=$ac_cv_prog_CC
8794if test -n "$CC"; then
8795  echo "$as_me:$LINENO: result: $CC" >&5
8796echo "${ECHO_T}$CC" >&6
8797else
8798  echo "$as_me:$LINENO: result: no" >&5
8799echo "${ECHO_T}no" >&6
8800fi
8801
8802fi
8803if test -z "$CC"; then
8804  if test -n "$ac_tool_prefix"; then
8805  for ac_prog in cl
8806  do
8807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8809echo "$as_me:$LINENO: checking for $ac_word" >&5
8810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8811if test "${ac_cv_prog_CC+set}" = set; then
8812  echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814  if test -n "$CC"; then
8815  ac_cv_prog_CC="$CC" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  test -z "$as_dir" && as_dir=.
8822  for ac_exec_ext in '' $ac_executable_extensions; do
8823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826    break 2
8827  fi
8828done
8829done
8830
8831fi
8832fi
8833CC=$ac_cv_prog_CC
8834if test -n "$CC"; then
8835  echo "$as_me:$LINENO: result: $CC" >&5
8836echo "${ECHO_T}$CC" >&6
8837else
8838  echo "$as_me:$LINENO: result: no" >&5
8839echo "${ECHO_T}no" >&6
8840fi
8841
8842    test -n "$CC" && break
8843  done
8844fi
8845if test -z "$CC"; then
8846  ac_ct_CC=$CC
8847  for ac_prog in cl
8848do
8849  # Extract the first word of "$ac_prog", so it can be a program name with args.
8850set dummy $ac_prog; ac_word=$2
8851echo "$as_me:$LINENO: checking for $ac_word" >&5
8852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8854  echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856  if test -n "$ac_ct_CC"; then
8857  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8858else
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862  IFS=$as_save_IFS
8863  test -z "$as_dir" && as_dir=.
8864  for ac_exec_ext in '' $ac_executable_extensions; do
8865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866    ac_cv_prog_ac_ct_CC="$ac_prog"
8867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868    break 2
8869  fi
8870done
8871done
8872
8873fi
8874fi
8875ac_ct_CC=$ac_cv_prog_ac_ct_CC
8876if test -n "$ac_ct_CC"; then
8877  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8878echo "${ECHO_T}$ac_ct_CC" >&6
8879else
8880  echo "$as_me:$LINENO: result: no" >&5
8881echo "${ECHO_T}no" >&6
8882fi
8883
8884  test -n "$ac_ct_CC" && break
8885done
8886
8887  CC=$ac_ct_CC
8888fi
8889
8890fi
8891
8892
8893test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
8894echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
8895   { (exit 1); exit 1; }; }
8896
8897# Provide some information about the compiler.
8898echo "$as_me:$LINENO:" \
8899     "checking for C compiler version" >&5
8900ac_compiler=`set X $ac_compile; echo $2`
8901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8902  (eval $ac_compiler --version </dev/null >&5) 2>&5
8903  ac_status=$?
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); }
8906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8907  (eval $ac_compiler -v </dev/null >&5) 2>&5
8908  ac_status=$?
8909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910  (exit $ac_status); }
8911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8912  (eval $ac_compiler -V </dev/null >&5) 2>&5
8913  ac_status=$?
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); }
8916
8917echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8918echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8919if test "${ac_cv_c_compiler_gnu+set}" = set; then
8920  echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922  cat >conftest.$ac_ext <<_ACEOF
8923#line $LINENO "configure"
8924#include "confdefs.h"
8925
8926#ifdef F77_DUMMY_MAIN
8927#  ifdef __cplusplus
8928     extern "C"
8929#  endif
8930   int F77_DUMMY_MAIN() { return 1; }
8931#endif
8932int
8933main ()
8934{
8935#ifndef __GNUC__
8936       choke me
8937#endif
8938
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext
8944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8945  (eval $ac_compile) 2>&5
8946  ac_status=$?
8947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948  (exit $ac_status); } &&
8949         { ac_try='test -s conftest.$ac_objext'
8950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951  (eval $ac_try) 2>&5
8952  ac_status=$?
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); }; }; then
8955  ac_compiler_gnu=yes
8956else
8957  echo "$as_me: failed program was:" >&5
8958cat conftest.$ac_ext >&5
8959ac_compiler_gnu=no
8960fi
8961rm -f conftest.$ac_objext conftest.$ac_ext
8962ac_cv_c_compiler_gnu=$ac_compiler_gnu
8963
8964fi
8965echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8966echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8967GCC=`test $ac_compiler_gnu = yes && echo yes`
8968ac_test_CFLAGS=${CFLAGS+set}
8969ac_save_CFLAGS=$CFLAGS
8970CFLAGS="-g"
8971echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8972echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8973if test "${ac_cv_prog_cc_g+set}" = set; then
8974  echo $ECHO_N "(cached) $ECHO_C" >&6
8975else
8976  cat >conftest.$ac_ext <<_ACEOF
8977#line $LINENO "configure"
8978#include "confdefs.h"
8979
8980#ifdef F77_DUMMY_MAIN
8981#  ifdef __cplusplus
8982     extern "C"
8983#  endif
8984   int F77_DUMMY_MAIN() { return 1; }
8985#endif
8986int
8987main ()
8988{
8989
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994rm -f conftest.$ac_objext
8995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8996  (eval $ac_compile) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); } &&
9000         { ac_try='test -s conftest.$ac_objext'
9001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002  (eval $ac_try) 2>&5
9003  ac_status=$?
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); }; }; then
9006  ac_cv_prog_cc_g=yes
9007else
9008  echo "$as_me: failed program was:" >&5
9009cat conftest.$ac_ext >&5
9010ac_cv_prog_cc_g=no
9011fi
9012rm -f conftest.$ac_objext conftest.$ac_ext
9013fi
9014echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9015echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9016if test "$ac_test_CFLAGS" = set; then
9017  CFLAGS=$ac_save_CFLAGS
9018elif test $ac_cv_prog_cc_g = yes; then
9019  if test "$GCC" = yes; then
9020    CFLAGS="-g -O2"
9021  else
9022    CFLAGS="-g"
9023  fi
9024else
9025  if test "$GCC" = yes; then
9026    CFLAGS="-O2"
9027  else
9028    CFLAGS=
9029  fi
9030fi
9031# Some people use a C++ compiler to compile C.  Since we use `exit',
9032# in C++ we need to declare it.  In case someone uses the same compiler
9033# for both compiling C and C++ we need to have the C++ compiler decide
9034# the declaration of exit, since it's the most demanding environment.
9035cat >conftest.$ac_ext <<_ACEOF
9036@%:@ifndef __cplusplus
9037  choke me
9038@%:@endif
9039_ACEOF
9040rm -f conftest.$ac_objext
9041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042  (eval $ac_compile) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); } &&
9046         { ac_try='test -s conftest.$ac_objext'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; }; then
9052  for ac_declaration in \
9053   ''\
9054   '#include <stdlib.h>' \
9055   'extern "C" void std::exit (int) throw (); using std::exit;' \
9056   'extern "C" void std::exit (int); using std::exit;' \
9057   'extern "C" void exit (int) throw ();' \
9058   'extern "C" void exit (int);' \
9059   'void exit (int);'
9060do
9061  cat >conftest.$ac_ext <<_ACEOF
9062#line $LINENO "configure"
9063#include "confdefs.h"
9064@%:@include <stdlib.h>
9065$ac_declaration
9066#ifdef F77_DUMMY_MAIN
9067#  ifdef __cplusplus
9068     extern "C"
9069#  endif
9070   int F77_DUMMY_MAIN() { return 1; }
9071#endif
9072int
9073main ()
9074{
9075exit (42);
9076  ;
9077  return 0;
9078}
9079_ACEOF
9080rm -f conftest.$ac_objext
9081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082  (eval $ac_compile) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); } &&
9086         { ac_try='test -s conftest.$ac_objext'
9087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088  (eval $ac_try) 2>&5
9089  ac_status=$?
9090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091  (exit $ac_status); }; }; then
9092  :
9093else
9094  echo "$as_me: failed program was:" >&5
9095cat conftest.$ac_ext >&5
9096continue
9097fi
9098rm -f conftest.$ac_objext conftest.$ac_ext
9099  cat >conftest.$ac_ext <<_ACEOF
9100#line $LINENO "configure"
9101#include "confdefs.h"
9102$ac_declaration
9103#ifdef F77_DUMMY_MAIN
9104#  ifdef __cplusplus
9105     extern "C"
9106#  endif
9107   int F77_DUMMY_MAIN() { return 1; }
9108#endif
9109int
9110main ()
9111{
9112exit (42);
9113  ;
9114  return 0;
9115}
9116_ACEOF
9117rm -f conftest.$ac_objext
9118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119  (eval $ac_compile) 2>&5
9120  ac_status=$?
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); } &&
9123         { ac_try='test -s conftest.$ac_objext'
9124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125  (eval $ac_try) 2>&5
9126  ac_status=$?
9127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128  (exit $ac_status); }; }; then
9129  break
9130else
9131  echo "$as_me: failed program was:" >&5
9132cat conftest.$ac_ext >&5
9133fi
9134rm -f conftest.$ac_objext conftest.$ac_ext
9135done
9136rm -f conftest*
9137if test -n "$ac_declaration"; then
9138  echo '#ifdef __cplusplus' >>confdefs.h
9139  echo $ac_declaration      >>confdefs.h
9140  echo '#endif'             >>confdefs.h
9141fi
9142
9143else
9144  echo "$as_me: failed program was:" >&5
9145cat conftest.$ac_ext >&5
9146fi
9147rm -f conftest.$ac_objext conftest.$ac_ext
9148ac_ext=cc
9149ac_cpp='$CXXCPP $CPPFLAGS'
9150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9153
9154depcc="$CC"   am_compiler_list=
9155
9156echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9157echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9158if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9159  echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9162  # We make a subdir and do the tests there.  Otherwise we can end up
9163  # making bogus files that we don't know about and never remove.  For
9164  # instance it was reported that on HP-UX the gcc test will end up
9165  # making a dummy file named `D' -- because `-MD' means `put the output
9166  # in D'.
9167  mkdir conftest.dir
9168  # Copy depcomp to subdir because otherwise we won't find it if we're
9169  # using a relative directory.
9170  cp "$am_depcomp" conftest.dir
9171  cd conftest.dir
9172
9173  am_cv_CC_dependencies_compiler_type=none
9174  if test "$am_compiler_list" = ""; then
9175     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9176  fi
9177  for depmode in $am_compiler_list; do
9178    # We need to recreate these files for each test, as the compiler may
9179    # overwrite some of them when testing with obscure command lines.
9180    # This happens at least with the AIX C compiler.
9181    echo '#include "conftest.h"' > conftest.c
9182    echo 'int i;' > conftest.h
9183    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9184
9185    case $depmode in
9186    nosideeffect)
9187      # after this tag, mechanisms are not by side-effect, so they'll
9188      # only be used when explicitly requested
9189      if test "x$enable_dependency_tracking" = xyes; then
9190	continue
9191      else
9192	break
9193      fi
9194      ;;
9195    none) break ;;
9196    esac
9197    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9198    # mode.  It turns out that the SunPro C++ compiler does not properly
9199    # handle `-M -o', and we need to detect this.
9200    if depmode=$depmode \
9201       source=conftest.c object=conftest.o \
9202       depfile=conftest.Po tmpdepfile=conftest.TPo \
9203       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9204       grep conftest.h conftest.Po > /dev/null 2>&1 &&
9205       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9206      am_cv_CC_dependencies_compiler_type=$depmode
9207      break
9208    fi
9209  done
9210
9211  cd ..
9212  rm -rf conftest.dir
9213else
9214  am_cv_CC_dependencies_compiler_type=none
9215fi
9216
9217fi
9218echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9219echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9221
9222
9223# Find a good install program.  We prefer a C program (faster),
9224# so one script is as good as another.  But avoid the broken or
9225# incompatible versions:
9226# SysV /etc/install, /usr/sbin/install
9227# SunOS /usr/etc/install
9228# IRIX /sbin/install
9229# AIX /bin/install
9230# AmigaOS /C/install, which installs bootblocks on floppy discs
9231# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9232# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9233# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9234# ./install, which can be erroneously created by make from ./install.sh.
9235echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9236echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9237if test -z "$INSTALL"; then
9238if test "${ac_cv_path_install+set}" = set; then
9239  echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244  IFS=$as_save_IFS
9245  test -z "$as_dir" && as_dir=.
9246  # Account for people who put trailing slashes in PATH elements.
9247case $as_dir/ in
9248  ./ | .// | /cC/* | \
9249  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9250  /usr/ucb/* ) ;;
9251  *)
9252    # OSF1 and SCO ODT 3.0 have their own names for install.
9253    # Don't use installbsd from OSF since it installs stuff as root
9254    # by default.
9255    for ac_prog in ginstall scoinst install; do
9256      for ac_exec_ext in '' $ac_executable_extensions; do
9257        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9258          if test $ac_prog = install &&
9259            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9260            # AIX install.  It has an incompatible calling convention.
9261            :
9262          elif test $ac_prog = install &&
9263            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9264            # program-specific install script used by HP pwplus--don't use.
9265            :
9266          else
9267            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9268            break 3
9269          fi
9270        fi
9271      done
9272    done
9273    ;;
9274esac
9275done
9276
9277
9278fi
9279  if test "${ac_cv_path_install+set}" = set; then
9280    INSTALL=$ac_cv_path_install
9281  else
9282    # As a last resort, use the slow shell script.  We don't cache a
9283    # path for INSTALL within a source directory, because that will
9284    # break other packages using the cache if that directory is
9285    # removed, or if the path is relative.
9286    INSTALL=$ac_install_sh
9287  fi
9288fi
9289echo "$as_me:$LINENO: result: $INSTALL" >&5
9290echo "${ECHO_T}$INSTALL" >&6
9291
9292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9293# It thinks the first close brace ends the variable substitution.
9294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9295
9296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9297
9298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9299
9300if test -n "$ac_tool_prefix"; then
9301  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9303echo "$as_me:$LINENO: checking for $ac_word" >&5
9304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9305if test "${ac_cv_prog_RANLIB+set}" = set; then
9306  echo $ECHO_N "(cached) $ECHO_C" >&6
9307else
9308  if test -n "$RANLIB"; then
9309  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  test -z "$as_dir" && as_dir=.
9316  for ac_exec_ext in '' $ac_executable_extensions; do
9317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9320    break 2
9321  fi
9322done
9323done
9324
9325fi
9326fi
9327RANLIB=$ac_cv_prog_RANLIB
9328if test -n "$RANLIB"; then
9329  echo "$as_me:$LINENO: result: $RANLIB" >&5
9330echo "${ECHO_T}$RANLIB" >&6
9331else
9332  echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
9334fi
9335
9336fi
9337if test -z "$ac_cv_prog_RANLIB"; then
9338  ac_ct_RANLIB=$RANLIB
9339  # Extract the first word of "ranlib", so it can be a program name with args.
9340set dummy ranlib; ac_word=$2
9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9343if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9344  echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346  if test -n "$ac_ct_RANLIB"; then
9347  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9348else
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352  IFS=$as_save_IFS
9353  test -z "$as_dir" && as_dir=.
9354  for ac_exec_ext in '' $ac_executable_extensions; do
9355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356    ac_cv_prog_ac_ct_RANLIB="ranlib"
9357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358    break 2
9359  fi
9360done
9361done
9362
9363  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9364fi
9365fi
9366ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9367if test -n "$ac_ct_RANLIB"; then
9368  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9369echo "${ECHO_T}$ac_ct_RANLIB" >&6
9370else
9371  echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
9373fi
9374
9375  RANLIB=$ac_ct_RANLIB
9376else
9377  RANLIB="$ac_cv_prog_RANLIB"
9378fi
9379
9380
9381have_mpi=false
9382case $CXXFLAGS in
9383  *-DHAVE_MPI*) have_mpi=true;;
9384esac
9385echo "$as_me:$LINENO: checking using MPI" >&5
9386echo $ECHO_N "checking using MPI... $ECHO_C" >&6
9387if test $have_mpi = false; then
9388  echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6;
9390else
9391  echo "$as_me:$LINENO: result: yes" >&5
9392echo "${ECHO_T}yes" >&6;
9393fi
9394
9395
9396
9397
9398echo "$as_me:$LINENO: checking for X" >&5
9399echo $ECHO_N "checking for X... $ECHO_C" >&6
9400
9401
9402# Check whether --with-x or --without-x was given.
9403if test "${with_x+set}" = set; then
9404  withval="$with_x"
9405
9406fi;
9407# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9408if test "x$with_x" = xno; then
9409  # The user explicitly disabled X.
9410  have_x=disabled
9411else
9412  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9413    # Both variables are already set.
9414    have_x=yes
9415  else
9416    if test "${ac_cv_have_x+set}" = set; then
9417  echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419  # One or both of the vars are not set, and there is no cached value.
9420ac_x_includes=no ac_x_libraries=no
9421rm -fr conftest.dir
9422if mkdir conftest.dir; then
9423  cd conftest.dir
9424  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9425  cat >Imakefile <<'_ACEOF'
9426acfindx:
9427	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9428_ACEOF
9429  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9430    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9431    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9432    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9433    for ac_extension in a so sl; do
9434      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9435         test -f $ac_im_libdir/libX11.$ac_extension; then
9436        ac_im_usrlibdir=$ac_im_libdir; break
9437      fi
9438    done
9439    # Screen out bogus values from the imake configuration.  They are
9440    # bogus both because they are the default anyway, and because
9441    # using them would break gcc on systems where it needs fixed includes.
9442    case $ac_im_incroot in
9443	/usr/include) ;;
9444	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9445    esac
9446    case $ac_im_usrlibdir in
9447	/usr/lib | /lib) ;;
9448	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9449    esac
9450  fi
9451  cd ..
9452  rm -fr conftest.dir
9453fi
9454
9455# Standard set of common directories for X headers.
9456# Check X11 before X11Rn because it is often a symlink to the current release.
9457ac_x_header_dirs='
9458/usr/X11/include
9459/usr/X11R6/include
9460/usr/X11R5/include
9461/usr/X11R4/include
9462
9463/usr/include/X11
9464/usr/include/X11R6
9465/usr/include/X11R5
9466/usr/include/X11R4
9467
9468/usr/local/X11/include
9469/usr/local/X11R6/include
9470/usr/local/X11R5/include
9471/usr/local/X11R4/include
9472
9473/usr/local/include/X11
9474/usr/local/include/X11R6
9475/usr/local/include/X11R5
9476/usr/local/include/X11R4
9477
9478/usr/X386/include
9479/usr/x386/include
9480/usr/XFree86/include/X11
9481
9482/usr/include
9483/usr/local/include
9484/usr/unsupported/include
9485/usr/athena/include
9486/usr/local/x11r5/include
9487/usr/lpp/Xamples/include
9488
9489/usr/openwin/include
9490/usr/openwin/share/include'
9491
9492if test "$ac_x_includes" = no; then
9493  # Guess where to find include files, by looking for Intrinsic.h.
9494  # First, try using that file with no special directory specified.
9495  cat >conftest.$ac_ext <<_ACEOF
9496#line $LINENO "configure"
9497#include "confdefs.h"
9498@%:@include <X11/Intrinsic.h>
9499_ACEOF
9500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9502  ac_status=$?
9503  egrep -v '^ *\+' conftest.er1 >conftest.err
9504  rm -f conftest.er1
9505  cat conftest.err >&5
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); } >/dev/null; then
9508  if test -s conftest.err; then
9509    ac_cpp_err=$ac_cxx_preproc_warn_flag
9510  else
9511    ac_cpp_err=
9512  fi
9513else
9514  ac_cpp_err=yes
9515fi
9516if test -z "$ac_cpp_err"; then
9517  # We can compile using X headers with no special include directory.
9518ac_x_includes=
9519else
9520  echo "$as_me: failed program was:" >&5
9521  cat conftest.$ac_ext >&5
9522  for ac_dir in $ac_x_header_dirs; do
9523  if test -r "$ac_dir/X11/Intrinsic.h"; then
9524    ac_x_includes=$ac_dir
9525    break
9526  fi
9527done
9528fi
9529rm -f conftest.err conftest.$ac_ext
9530fi # $ac_x_includes = no
9531
9532if test "$ac_x_libraries" = no; then
9533  # Check for the libraries.
9534  # See if we find them without any special options.
9535  # Don't add to $LIBS permanently.
9536  ac_save_LIBS=$LIBS
9537  LIBS="-lXt $LIBS"
9538  cat >conftest.$ac_ext <<_ACEOF
9539#line $LINENO "configure"
9540#include "confdefs.h"
9541@%:@include <X11/Intrinsic.h>
9542#ifdef F77_DUMMY_MAIN
9543#  ifdef __cplusplus
9544     extern "C"
9545#  endif
9546   int F77_DUMMY_MAIN() { return 1; }
9547#endif
9548int
9549main ()
9550{
9551XtMalloc (0)
9552  ;
9553  return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext conftest$ac_exeext
9557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558  (eval $ac_link) 2>&5
9559  ac_status=$?
9560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561  (exit $ac_status); } &&
9562         { ac_try='test -s conftest$ac_exeext'
9563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564  (eval $ac_try) 2>&5
9565  ac_status=$?
9566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); }; }; then
9568  LIBS=$ac_save_LIBS
9569# We can link X programs with no special library path.
9570ac_x_libraries=
9571else
9572  echo "$as_me: failed program was:" >&5
9573cat conftest.$ac_ext >&5
9574LIBS=$ac_save_LIBS
9575for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9576do
9577  # Don't even attempt the hair of trying to link an X program!
9578  for ac_extension in a so sl; do
9579    if test -r $ac_dir/libXt.$ac_extension; then
9580      ac_x_libraries=$ac_dir
9581      break 2
9582    fi
9583  done
9584done
9585fi
9586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9587fi # $ac_x_libraries = no
9588
9589if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9590  # Didn't find X anywhere.  Cache the known absence of X.
9591  ac_cv_have_x="have_x=no"
9592else
9593  # Record where we found X for the cache.
9594  ac_cv_have_x="have_x=yes \
9595	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9596fi
9597fi
9598
9599  fi
9600  eval "$ac_cv_have_x"
9601fi # $with_x != no
9602
9603if test "$have_x" != yes; then
9604  echo "$as_me:$LINENO: result: $have_x" >&5
9605echo "${ECHO_T}$have_x" >&6
9606  no_x=yes
9607else
9608  # If each of the values was on the command line, it overrides each guess.
9609  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9610  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9611  # Update the cache value to reflect the command line values.
9612  ac_cv_have_x="have_x=yes \
9613		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9614  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9615echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9616fi
9617
9618if test "$no_x" = yes; then
9619  # Not all programs may use this symbol, but it does not hurt to define it.
9620
9621cat >>confdefs.h <<\_ACEOF
9622@%:@define X_DISPLAY_MISSING 1
9623_ACEOF
9624
9625  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9626else
9627  if test -n "$x_includes"; then
9628    X_CFLAGS="$X_CFLAGS -I$x_includes"
9629  fi
9630
9631  # It would also be nice to do this for all -L options, not just this one.
9632  if test -n "$x_libraries"; then
9633    X_LIBS="$X_LIBS -L$x_libraries"
9634    # For Solaris; some versions of Sun CC require a space after -R and
9635    # others require no space.  Words are not sufficient . . . .
9636    case `(uname -sr) 2>/dev/null` in
9637    "SunOS 5"*)
9638      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9639echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9640      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9641      cat >conftest.$ac_ext <<_ACEOF
9642#line $LINENO "configure"
9643#include "confdefs.h"
9644
9645#ifdef F77_DUMMY_MAIN
9646#  ifdef __cplusplus
9647     extern "C"
9648#  endif
9649   int F77_DUMMY_MAIN() { return 1; }
9650#endif
9651int
9652main ()
9653{
9654
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661  (eval $ac_link) 2>&5
9662  ac_status=$?
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); } &&
9665         { ac_try='test -s conftest$ac_exeext'
9666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667  (eval $ac_try) 2>&5
9668  ac_status=$?
9669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670  (exit $ac_status); }; }; then
9671  ac_R_nospace=yes
9672else
9673  echo "$as_me: failed program was:" >&5
9674cat conftest.$ac_ext >&5
9675ac_R_nospace=no
9676fi
9677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9678      if test $ac_R_nospace = yes; then
9679	echo "$as_me:$LINENO: result: no" >&5
9680echo "${ECHO_T}no" >&6
9681	X_LIBS="$X_LIBS -R$x_libraries"
9682      else
9683	LIBS="$ac_xsave_LIBS -R $x_libraries"
9684	cat >conftest.$ac_ext <<_ACEOF
9685#line $LINENO "configure"
9686#include "confdefs.h"
9687
9688#ifdef F77_DUMMY_MAIN
9689#  ifdef __cplusplus
9690     extern "C"
9691#  endif
9692   int F77_DUMMY_MAIN() { return 1; }
9693#endif
9694int
9695main ()
9696{
9697
9698  ;
9699  return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704  (eval $ac_link) 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); } &&
9708         { ac_try='test -s conftest$ac_exeext'
9709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710  (eval $ac_try) 2>&5
9711  ac_status=$?
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); }; }; then
9714  ac_R_space=yes
9715else
9716  echo "$as_me: failed program was:" >&5
9717cat conftest.$ac_ext >&5
9718ac_R_space=no
9719fi
9720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9721	if test $ac_R_space = yes; then
9722	  echo "$as_me:$LINENO: result: yes" >&5
9723echo "${ECHO_T}yes" >&6
9724	  X_LIBS="$X_LIBS -R $x_libraries"
9725	else
9726	  echo "$as_me:$LINENO: result: neither works" >&5
9727echo "${ECHO_T}neither works" >&6
9728	fi
9729      fi
9730      LIBS=$ac_xsave_LIBS
9731    esac
9732  fi
9733
9734  # Check for system-dependent libraries X programs must link with.
9735  # Do this before checking for the system-independent R6 libraries
9736  # (-lICE), since we may need -lsocket or whatever for X linking.
9737
9738  if test "$ISC" = yes; then
9739    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9740  else
9741    # Martyn Johnson says this is needed for Ultrix, if the X
9742    # libraries were built with DECnet support.  And Karl Berry says
9743    # the Alpha needs dnet_stub (dnet does not exist).
9744    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9745    cat >conftest.$ac_ext <<_ACEOF
9746#line $LINENO "configure"
9747#include "confdefs.h"
9748
9749/* Override any gcc2 internal prototype to avoid an error.  */
9750#ifdef __cplusplus
9751extern "C"
9752#endif
9753/* We use char because int might match the return type of a gcc2
9754   builtin and then its argument prototype would still apply.  */
9755char XOpenDisplay ();
9756#ifdef F77_DUMMY_MAIN
9757#  ifdef __cplusplus
9758     extern "C"
9759#  endif
9760   int F77_DUMMY_MAIN() { return 1; }
9761#endif
9762int
9763main ()
9764{
9765XOpenDisplay ();
9766  ;
9767  return 0;
9768}
9769_ACEOF
9770rm -f conftest.$ac_objext conftest$ac_exeext
9771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772  (eval $ac_link) 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); } &&
9776         { ac_try='test -s conftest$ac_exeext'
9777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778  (eval $ac_try) 2>&5
9779  ac_status=$?
9780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781  (exit $ac_status); }; }; then
9782  :
9783else
9784  echo "$as_me: failed program was:" >&5
9785cat conftest.$ac_ext >&5
9786echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9787echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9789  echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791  ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldnet  $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794#line $LINENO "configure"
9795#include "confdefs.h"
9796
9797/* Override any gcc2 internal prototype to avoid an error.  */
9798#ifdef __cplusplus
9799extern "C"
9800#endif
9801/* We use char because int might match the return type of a gcc2
9802   builtin and then its argument prototype would still apply.  */
9803char dnet_ntoa ();
9804#ifdef F77_DUMMY_MAIN
9805#  ifdef __cplusplus
9806     extern "C"
9807#  endif
9808   int F77_DUMMY_MAIN() { return 1; }
9809#endif
9810int
9811main ()
9812{
9813dnet_ntoa ();
9814  ;
9815  return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820  (eval $ac_link) 2>&5
9821  ac_status=$?
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); } &&
9824         { ac_try='test -s conftest$ac_exeext'
9825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826  (eval $ac_try) 2>&5
9827  ac_status=$?
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); }; }; then
9830  ac_cv_lib_dnet_dnet_ntoa=yes
9831else
9832  echo "$as_me: failed program was:" >&5
9833cat conftest.$ac_ext >&5
9834ac_cv_lib_dnet_dnet_ntoa=no
9835fi
9836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
9839echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9840echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9841if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9842  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9843fi
9844
9845    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9846      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9847echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9848if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9849  echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851  ac_check_lib_save_LIBS=$LIBS
9852LIBS="-ldnet_stub  $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854#line $LINENO "configure"
9855#include "confdefs.h"
9856
9857/* Override any gcc2 internal prototype to avoid an error.  */
9858#ifdef __cplusplus
9859extern "C"
9860#endif
9861/* We use char because int might match the return type of a gcc2
9862   builtin and then its argument prototype would still apply.  */
9863char dnet_ntoa ();
9864#ifdef F77_DUMMY_MAIN
9865#  ifdef __cplusplus
9866     extern "C"
9867#  endif
9868   int F77_DUMMY_MAIN() { return 1; }
9869#endif
9870int
9871main ()
9872{
9873dnet_ntoa ();
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
9879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880  (eval $ac_link) 2>&5
9881  ac_status=$?
9882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883  (exit $ac_status); } &&
9884         { ac_try='test -s conftest$ac_exeext'
9885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886  (eval $ac_try) 2>&5
9887  ac_status=$?
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); }; }; then
9890  ac_cv_lib_dnet_stub_dnet_ntoa=yes
9891else
9892  echo "$as_me: failed program was:" >&5
9893cat conftest.$ac_ext >&5
9894ac_cv_lib_dnet_stub_dnet_ntoa=no
9895fi
9896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9900echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9901if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9902  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9903fi
9904
9905    fi
9906fi
9907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9908    LIBS="$ac_xsave_LIBS"
9909
9910    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9911    # to get the SysV transport functions.
9912    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9913    # needs -lnsl.
9914    # The nsl library prevents programs from opening the X display
9915    # on Irix 5.2, according to T.E. Dickey.
9916    # The functions gethostbyname, getservbyname, and inet_addr are
9917    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9918    echo "$as_me:$LINENO: checking for gethostbyname" >&5
9919echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9920if test "${ac_cv_func_gethostbyname+set}" = set; then
9921  echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923  cat >conftest.$ac_ext <<_ACEOF
9924#line $LINENO "configure"
9925#include "confdefs.h"
9926/* System header to define __stub macros and hopefully few prototypes,
9927    which can conflict with char gethostbyname (); below.  */
9928#include <assert.h>
9929/* Override any gcc2 internal prototype to avoid an error.  */
9930#ifdef __cplusplus
9931extern "C"
9932#endif
9933/* We use char because int might match the return type of a gcc2
9934   builtin and then its argument prototype would still apply.  */
9935char gethostbyname ();
9936char (*f) ();
9937
9938#ifdef F77_DUMMY_MAIN
9939#  ifdef __cplusplus
9940     extern "C"
9941#  endif
9942   int F77_DUMMY_MAIN() { return 1; }
9943#endif
9944int
9945main ()
9946{
9947/* The GNU C library defines this for functions which it implements
9948    to always fail with ENOSYS.  Some functions are actually named
9949    something starting with __ and the normal name is an alias.  */
9950#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9951choke me
9952#else
9953f = gethostbyname;
9954#endif
9955
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962  (eval $ac_link) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); } &&
9966         { ac_try='test -s conftest$ac_exeext'
9967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968  (eval $ac_try) 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; }; then
9972  ac_cv_func_gethostbyname=yes
9973else
9974  echo "$as_me: failed program was:" >&5
9975cat conftest.$ac_ext >&5
9976ac_cv_func_gethostbyname=no
9977fi
9978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979fi
9980echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9981echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9982
9983    if test $ac_cv_func_gethostbyname = no; then
9984      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9985echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9986if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-lnsl  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992#line $LINENO "configure"
9993#include "confdefs.h"
9994
9995/* Override any gcc2 internal prototype to avoid an error.  */
9996#ifdef __cplusplus
9997extern "C"
9998#endif
9999/* We use char because int might match the return type of a gcc2
10000   builtin and then its argument prototype would still apply.  */
10001char gethostbyname ();
10002#ifdef F77_DUMMY_MAIN
10003#  ifdef __cplusplus
10004     extern "C"
10005#  endif
10006   int F77_DUMMY_MAIN() { return 1; }
10007#endif
10008int
10009main ()
10010{
10011gethostbyname ();
10012  ;
10013  return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
10017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018  (eval $ac_link) 2>&5
10019  ac_status=$?
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } &&
10022         { ac_try='test -s conftest$ac_exeext'
10023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024  (eval $ac_try) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); }; }; then
10028  ac_cv_lib_nsl_gethostbyname=yes
10029else
10030  echo "$as_me: failed program was:" >&5
10031cat conftest.$ac_ext >&5
10032ac_cv_lib_nsl_gethostbyname=no
10033fi
10034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10035LIBS=$ac_check_lib_save_LIBS
10036fi
10037echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10038echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10039if test $ac_cv_lib_nsl_gethostbyname = yes; then
10040  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10041fi
10042
10043      if test $ac_cv_lib_nsl_gethostbyname = no; then
10044        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10045echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10046if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10047  echo $ECHO_N "(cached) $ECHO_C" >&6
10048else
10049  ac_check_lib_save_LIBS=$LIBS
10050LIBS="-lbsd  $LIBS"
10051cat >conftest.$ac_ext <<_ACEOF
10052#line $LINENO "configure"
10053#include "confdefs.h"
10054
10055/* Override any gcc2 internal prototype to avoid an error.  */
10056#ifdef __cplusplus
10057extern "C"
10058#endif
10059/* We use char because int might match the return type of a gcc2
10060   builtin and then its argument prototype would still apply.  */
10061char gethostbyname ();
10062#ifdef F77_DUMMY_MAIN
10063#  ifdef __cplusplus
10064     extern "C"
10065#  endif
10066   int F77_DUMMY_MAIN() { return 1; }
10067#endif
10068int
10069main ()
10070{
10071gethostbyname ();
10072  ;
10073  return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
10077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078  (eval $ac_link) 2>&5
10079  ac_status=$?
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); } &&
10082         { ac_try='test -s conftest$ac_exeext'
10083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084  (eval $ac_try) 2>&5
10085  ac_status=$?
10086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087  (exit $ac_status); }; }; then
10088  ac_cv_lib_bsd_gethostbyname=yes
10089else
10090  echo "$as_me: failed program was:" >&5
10091cat conftest.$ac_ext >&5
10092ac_cv_lib_bsd_gethostbyname=no
10093fi
10094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10095LIBS=$ac_check_lib_save_LIBS
10096fi
10097echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10098echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10099if test $ac_cv_lib_bsd_gethostbyname = yes; then
10100  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10101fi
10102
10103      fi
10104    fi
10105
10106    # lieder@skyler.mavd.honeywell.com says without -lsocket,
10107    # socket/setsockopt and other routines are undefined under SCO ODT
10108    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10109    # on later versions), says Simon Leinen: it contains gethostby*
10110    # variants that don't use the nameserver (or something).  -lsocket
10111    # must be given before -lnsl if both are needed.  We assume that
10112    # if connect needs -lnsl, so does gethostbyname.
10113    echo "$as_me:$LINENO: checking for connect" >&5
10114echo $ECHO_N "checking for connect... $ECHO_C" >&6
10115if test "${ac_cv_func_connect+set}" = set; then
10116  echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118  cat >conftest.$ac_ext <<_ACEOF
10119#line $LINENO "configure"
10120#include "confdefs.h"
10121/* System header to define __stub macros and hopefully few prototypes,
10122    which can conflict with char connect (); below.  */
10123#include <assert.h>
10124/* Override any gcc2 internal prototype to avoid an error.  */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128/* We use char because int might match the return type of a gcc2
10129   builtin and then its argument prototype would still apply.  */
10130char connect ();
10131char (*f) ();
10132
10133#ifdef F77_DUMMY_MAIN
10134#  ifdef __cplusplus
10135     extern "C"
10136#  endif
10137   int F77_DUMMY_MAIN() { return 1; }
10138#endif
10139int
10140main ()
10141{
10142/* The GNU C library defines this for functions which it implements
10143    to always fail with ENOSYS.  Some functions are actually named
10144    something starting with __ and the normal name is an alias.  */
10145#if defined (__stub_connect) || defined (__stub___connect)
10146choke me
10147#else
10148f = connect;
10149#endif
10150
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155rm -f conftest.$ac_objext conftest$ac_exeext
10156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157  (eval $ac_link) 2>&5
10158  ac_status=$?
10159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); } &&
10161         { ac_try='test -s conftest$ac_exeext'
10162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163  (eval $ac_try) 2>&5
10164  ac_status=$?
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); }; }; then
10167  ac_cv_func_connect=yes
10168else
10169  echo "$as_me: failed program was:" >&5
10170cat conftest.$ac_ext >&5
10171ac_cv_func_connect=no
10172fi
10173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10174fi
10175echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10176echo "${ECHO_T}$ac_cv_func_connect" >&6
10177
10178    if test $ac_cv_func_connect = no; then
10179      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10180echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10181if test "${ac_cv_lib_socket_connect+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  ac_check_lib_save_LIBS=$LIBS
10185LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10186cat >conftest.$ac_ext <<_ACEOF
10187#line $LINENO "configure"
10188#include "confdefs.h"
10189
10190/* Override any gcc2 internal prototype to avoid an error.  */
10191#ifdef __cplusplus
10192extern "C"
10193#endif
10194/* We use char because int might match the return type of a gcc2
10195   builtin and then its argument prototype would still apply.  */
10196char connect ();
10197#ifdef F77_DUMMY_MAIN
10198#  ifdef __cplusplus
10199     extern "C"
10200#  endif
10201   int F77_DUMMY_MAIN() { return 1; }
10202#endif
10203int
10204main ()
10205{
10206connect ();
10207  ;
10208  return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213  (eval $ac_link) 2>&5
10214  ac_status=$?
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); } &&
10217         { ac_try='test -s conftest$ac_exeext'
10218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219  (eval $ac_try) 2>&5
10220  ac_status=$?
10221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); }; }; then
10223  ac_cv_lib_socket_connect=yes
10224else
10225  echo "$as_me: failed program was:" >&5
10226cat conftest.$ac_ext >&5
10227ac_cv_lib_socket_connect=no
10228fi
10229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10230LIBS=$ac_check_lib_save_LIBS
10231fi
10232echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10233echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10234if test $ac_cv_lib_socket_connect = yes; then
10235  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10236fi
10237
10238    fi
10239
10240    # Guillermo Gomez says -lposix is necessary on A/UX.
10241    echo "$as_me:$LINENO: checking for remove" >&5
10242echo $ECHO_N "checking for remove... $ECHO_C" >&6
10243if test "${ac_cv_func_remove+set}" = set; then
10244  echo $ECHO_N "(cached) $ECHO_C" >&6
10245else
10246  cat >conftest.$ac_ext <<_ACEOF
10247#line $LINENO "configure"
10248#include "confdefs.h"
10249/* System header to define __stub macros and hopefully few prototypes,
10250    which can conflict with char remove (); below.  */
10251#include <assert.h>
10252/* Override any gcc2 internal prototype to avoid an error.  */
10253#ifdef __cplusplus
10254extern "C"
10255#endif
10256/* We use char because int might match the return type of a gcc2
10257   builtin and then its argument prototype would still apply.  */
10258char remove ();
10259char (*f) ();
10260
10261#ifdef F77_DUMMY_MAIN
10262#  ifdef __cplusplus
10263     extern "C"
10264#  endif
10265   int F77_DUMMY_MAIN() { return 1; }
10266#endif
10267int
10268main ()
10269{
10270/* The GNU C library defines this for functions which it implements
10271    to always fail with ENOSYS.  Some functions are actually named
10272    something starting with __ and the normal name is an alias.  */
10273#if defined (__stub_remove) || defined (__stub___remove)
10274choke me
10275#else
10276f = remove;
10277#endif
10278
10279  ;
10280  return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
10284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285  (eval $ac_link) 2>&5
10286  ac_status=$?
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); } &&
10289         { ac_try='test -s conftest$ac_exeext'
10290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291  (eval $ac_try) 2>&5
10292  ac_status=$?
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); }; }; then
10295  ac_cv_func_remove=yes
10296else
10297  echo "$as_me: failed program was:" >&5
10298cat conftest.$ac_ext >&5
10299ac_cv_func_remove=no
10300fi
10301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10302fi
10303echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10304echo "${ECHO_T}$ac_cv_func_remove" >&6
10305
10306    if test $ac_cv_func_remove = no; then
10307      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10308echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10309if test "${ac_cv_lib_posix_remove+set}" = set; then
10310  echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312  ac_check_lib_save_LIBS=$LIBS
10313LIBS="-lposix  $LIBS"
10314cat >conftest.$ac_ext <<_ACEOF
10315#line $LINENO "configure"
10316#include "confdefs.h"
10317
10318/* Override any gcc2 internal prototype to avoid an error.  */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322/* We use char because int might match the return type of a gcc2
10323   builtin and then its argument prototype would still apply.  */
10324char remove ();
10325#ifdef F77_DUMMY_MAIN
10326#  ifdef __cplusplus
10327     extern "C"
10328#  endif
10329   int F77_DUMMY_MAIN() { return 1; }
10330#endif
10331int
10332main ()
10333{
10334remove ();
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext conftest$ac_exeext
10340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341  (eval $ac_link) 2>&5
10342  ac_status=$?
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); } &&
10345         { ac_try='test -s conftest$ac_exeext'
10346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347  (eval $ac_try) 2>&5
10348  ac_status=$?
10349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); }; }; then
10351  ac_cv_lib_posix_remove=yes
10352else
10353  echo "$as_me: failed program was:" >&5
10354cat conftest.$ac_ext >&5
10355ac_cv_lib_posix_remove=no
10356fi
10357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10358LIBS=$ac_check_lib_save_LIBS
10359fi
10360echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10361echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10362if test $ac_cv_lib_posix_remove = yes; then
10363  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10364fi
10365
10366    fi
10367
10368    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10369    echo "$as_me:$LINENO: checking for shmat" >&5
10370echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10371if test "${ac_cv_func_shmat+set}" = set; then
10372  echo $ECHO_N "(cached) $ECHO_C" >&6
10373else
10374  cat >conftest.$ac_ext <<_ACEOF
10375#line $LINENO "configure"
10376#include "confdefs.h"
10377/* System header to define __stub macros and hopefully few prototypes,
10378    which can conflict with char shmat (); below.  */
10379#include <assert.h>
10380/* Override any gcc2 internal prototype to avoid an error.  */
10381#ifdef __cplusplus
10382extern "C"
10383#endif
10384/* We use char because int might match the return type of a gcc2
10385   builtin and then its argument prototype would still apply.  */
10386char shmat ();
10387char (*f) ();
10388
10389#ifdef F77_DUMMY_MAIN
10390#  ifdef __cplusplus
10391     extern "C"
10392#  endif
10393   int F77_DUMMY_MAIN() { return 1; }
10394#endif
10395int
10396main ()
10397{
10398/* The GNU C library defines this for functions which it implements
10399    to always fail with ENOSYS.  Some functions are actually named
10400    something starting with __ and the normal name is an alias.  */
10401#if defined (__stub_shmat) || defined (__stub___shmat)
10402choke me
10403#else
10404f = shmat;
10405#endif
10406
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
10412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413  (eval $ac_link) 2>&5
10414  ac_status=$?
10415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416  (exit $ac_status); } &&
10417         { ac_try='test -s conftest$ac_exeext'
10418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419  (eval $ac_try) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); }; }; then
10423  ac_cv_func_shmat=yes
10424else
10425  echo "$as_me: failed program was:" >&5
10426cat conftest.$ac_ext >&5
10427ac_cv_func_shmat=no
10428fi
10429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10430fi
10431echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10432echo "${ECHO_T}$ac_cv_func_shmat" >&6
10433
10434    if test $ac_cv_func_shmat = no; then
10435      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10436echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10437if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10438  echo $ECHO_N "(cached) $ECHO_C" >&6
10439else
10440  ac_check_lib_save_LIBS=$LIBS
10441LIBS="-lipc  $LIBS"
10442cat >conftest.$ac_ext <<_ACEOF
10443#line $LINENO "configure"
10444#include "confdefs.h"
10445
10446/* Override any gcc2 internal prototype to avoid an error.  */
10447#ifdef __cplusplus
10448extern "C"
10449#endif
10450/* We use char because int might match the return type of a gcc2
10451   builtin and then its argument prototype would still apply.  */
10452char shmat ();
10453#ifdef F77_DUMMY_MAIN
10454#  ifdef __cplusplus
10455     extern "C"
10456#  endif
10457   int F77_DUMMY_MAIN() { return 1; }
10458#endif
10459int
10460main ()
10461{
10462shmat ();
10463  ;
10464  return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469  (eval $ac_link) 2>&5
10470  ac_status=$?
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); } &&
10473         { ac_try='test -s conftest$ac_exeext'
10474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475  (eval $ac_try) 2>&5
10476  ac_status=$?
10477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478  (exit $ac_status); }; }; then
10479  ac_cv_lib_ipc_shmat=yes
10480else
10481  echo "$as_me: failed program was:" >&5
10482cat conftest.$ac_ext >&5
10483ac_cv_lib_ipc_shmat=no
10484fi
10485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10486LIBS=$ac_check_lib_save_LIBS
10487fi
10488echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10489echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10490if test $ac_cv_lib_ipc_shmat = yes; then
10491  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10492fi
10493
10494    fi
10495  fi
10496
10497  # Check for libraries that X11R6 Xt/Xaw programs need.
10498  ac_save_LDFLAGS=$LDFLAGS
10499  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10500  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10501  # check for ICE first), but we must link in the order -lSM -lICE or
10502  # we get undefined symbols.  So assume we have SM if we have ICE.
10503  # These have to be linked with before -lX11, unlike the other
10504  # libraries we check for below, so use a different variable.
10505  # John Interrante, Karl Berry
10506  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10507echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10508if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10509  echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511  ac_check_lib_save_LIBS=$LIBS
10512LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10513cat >conftest.$ac_ext <<_ACEOF
10514#line $LINENO "configure"
10515#include "confdefs.h"
10516
10517/* Override any gcc2 internal prototype to avoid an error.  */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
10521/* We use char because int might match the return type of a gcc2
10522   builtin and then its argument prototype would still apply.  */
10523char IceConnectionNumber ();
10524#ifdef F77_DUMMY_MAIN
10525#  ifdef __cplusplus
10526     extern "C"
10527#  endif
10528   int F77_DUMMY_MAIN() { return 1; }
10529#endif
10530int
10531main ()
10532{
10533IceConnectionNumber ();
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext conftest$ac_exeext
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540  (eval $ac_link) 2>&5
10541  ac_status=$?
10542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543  (exit $ac_status); } &&
10544         { ac_try='test -s conftest$ac_exeext'
10545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546  (eval $ac_try) 2>&5
10547  ac_status=$?
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); }; }; then
10550  ac_cv_lib_ICE_IceConnectionNumber=yes
10551else
10552  echo "$as_me: failed program was:" >&5
10553cat conftest.$ac_ext >&5
10554ac_cv_lib_ICE_IceConnectionNumber=no
10555fi
10556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10557LIBS=$ac_check_lib_save_LIBS
10558fi
10559echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10560echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10561if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10562  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10563fi
10564
10565  LDFLAGS=$ac_save_LDFLAGS
10566
10567fi
10568
10569
10570
10571save_libs=$LIBS
10572save_cflags=$CFLAGS
10573save_cppflags=$CPPFLAGS
10574save_ldflags=$LDFLAGS
10575save_cxxflags=$CXXFLAGS
10576
10577
10578
10579#save_cxxflags="$save_cxxflags -DTEMPLATE_IN_HEADER"
10580
10581#
10582# limits
10583#
10584have_no_limits=false
10585echo "$as_me:$LINENO: checking for limits " >&5
10586echo $ECHO_N "checking for limits ... $ECHO_C" >&6
10587cat >conftest.$ac_ext <<_ACEOF
10588#line $LINENO "configure"
10589#include "confdefs.h"
10590
10591		#include <limits>
10592
10593#ifdef F77_DUMMY_MAIN
10594#  ifdef __cplusplus
10595     extern "C"
10596#  endif
10597   int F77_DUMMY_MAIN() { return 1; }
10598#endif
10599int
10600main ()
10601{
10602
10603
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext
10609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610  (eval $ac_compile) 2>&5
10611  ac_status=$?
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); } &&
10614         { ac_try='test -s conftest.$ac_objext'
10615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616  (eval $ac_try) 2>&5
10617  ac_status=$?
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); }; }; then
10620  have_no_limits=true
10621else
10622  echo "$as_me: failed program was:" >&5
10623cat conftest.$ac_ext >&5
10624fi
10625rm -f conftest.$ac_objext conftest.$ac_ext
10626if test $have_no_limits = false; then
10627  save_cxxflags="$save_cxxflags -DHAVE_NO_LIMITS"
10628  echo "$as_me:$LINENO: result: no" >&5
10629echo "${ECHO_T}no" >&6;
10630else
10631  echo "$as_me:$LINENO: result: yes" >&5
10632echo "${ECHO_T}yes" >&6;
10633fi
10634
10635#
10636# sstream
10637#
10638have_no_sstream=false
10639echo "$as_me:$LINENO: checking for sstream " >&5
10640echo $ECHO_N "checking for sstream ... $ECHO_C" >&6
10641cat >conftest.$ac_ext <<_ACEOF
10642#line $LINENO "configure"
10643#include "confdefs.h"
10644
10645		#include <sstream>
10646
10647#ifdef F77_DUMMY_MAIN
10648#  ifdef __cplusplus
10649     extern "C"
10650#  endif
10651   int F77_DUMMY_MAIN() { return 1; }
10652#endif
10653int
10654main ()
10655{
10656
10657
10658  ;
10659  return 0;
10660}
10661_ACEOF
10662rm -f conftest.$ac_objext
10663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10664  (eval $ac_compile) 2>&5
10665  ac_status=$?
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); } &&
10668         { ac_try='test -s conftest.$ac_objext'
10669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670  (eval $ac_try) 2>&5
10671  ac_status=$?
10672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); }; }; then
10674  have_no_sstream=true
10675else
10676  echo "$as_me: failed program was:" >&5
10677cat conftest.$ac_ext >&5
10678fi
10679rm -f conftest.$ac_objext conftest.$ac_ext
10680if test $have_no_sstream = false; then
10681  save_cxxflags="$save_cxxflags -DHAVE_NO_SSTREAM"
10682  echo "$as_me:$LINENO: result: no" >&5
10683echo "${ECHO_T}no" >&6;
10684else
10685  echo "$as_me:$LINENO: result: yes" >&5
10686echo "${ECHO_T}yes" >&6;
10687fi
10688
10689#
10690# partial_template_specialization
10691#
10692partial_template_specialization=false
10693echo "$as_me:$LINENO: checking for partial template specialization" >&5
10694echo $ECHO_N "checking for partial template specialization... $ECHO_C" >&6
10695cat >conftest.$ac_ext <<_ACEOF
10696#line $LINENO "configure"
10697#include "confdefs.h"
10698
10699		#include "framework/base/Array_Fastest.h"
10700                using namespace ProtoMol;
10701
10702#ifdef F77_DUMMY_MAIN
10703#  ifdef __cplusplus
10704     extern "C"
10705#  endif
10706   int F77_DUMMY_MAIN() { return 1; }
10707#endif
10708int
10709main ()
10710{
10711
10712	    Array<int,3> a(ArraySizes(1)(1)(1));
10713	    RefArray<int,2> rA = a[0];
10714
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721  (eval $ac_compile) 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); } &&
10725         { ac_try='test -s conftest.$ac_objext'
10726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727  (eval $ac_try) 2>&5
10728  ac_status=$?
10729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730  (exit $ac_status); }; }; then
10731  partial_template_specialization=true
10732else
10733  echo "$as_me: failed program was:" >&5
10734cat conftest.$ac_ext >&5
10735fi
10736rm -f conftest.$ac_objext conftest.$ac_ext
10737if test $partial_template_specialization = false; then
10738  save_cxxflags="$save_cxxflags -DNO_PARTIAL_TEMPLATE_SPECIALIZATION"
10739  echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6;
10741else
10742  echo "$as_me:$LINENO: result: yes" >&5
10743echo "${ECHO_T}yes" >&6;
10744fi
10745
10746
10747#
10748# Socket
10749#
10750have_socket=true
10751
10752echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10753echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10754if test "${ac_cv_lib_socket_socket+set}" = set; then
10755  echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757  ac_check_lib_save_LIBS=$LIBS
10758LIBS="-lsocket  $LIBS"
10759cat >conftest.$ac_ext <<_ACEOF
10760#line $LINENO "configure"
10761#include "confdefs.h"
10762
10763/* Override any gcc2 internal prototype to avoid an error.  */
10764#ifdef __cplusplus
10765extern "C"
10766#endif
10767/* We use char because int might match the return type of a gcc2
10768   builtin and then its argument prototype would still apply.  */
10769char socket ();
10770#ifdef F77_DUMMY_MAIN
10771#  ifdef __cplusplus
10772     extern "C"
10773#  endif
10774   int F77_DUMMY_MAIN() { return 1; }
10775#endif
10776int
10777main ()
10778{
10779socket ();
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext conftest$ac_exeext
10785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786  (eval $ac_link) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); } &&
10790         { ac_try='test -s conftest$ac_exeext'
10791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792  (eval $ac_try) 2>&5
10793  ac_status=$?
10794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795  (exit $ac_status); }; }; then
10796  ac_cv_lib_socket_socket=yes
10797else
10798  echo "$as_me: failed program was:" >&5
10799cat conftest.$ac_ext >&5
10800ac_cv_lib_socket_socket=no
10801fi
10802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10803LIBS=$ac_check_lib_save_LIBS
10804fi
10805echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10806echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10807if test $ac_cv_lib_socket_socket = yes; then
10808  cat >>confdefs.h <<_ACEOF
10809@%:@define HAVE_LIBSOCKET 1
10810_ACEOF
10811
10812  LIBS="-lsocket $LIBS"
10813
10814else
10815  have_socket=false
10816fi
10817
10818if test $have_socket = true; then
10819   SOCKET_LIBS="-lsocket"
10820fi
10821
10822
10823have_socket=true
10824echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10825echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10826if test "${ac_cv_header_stdc+set}" = set; then
10827  echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829  cat >conftest.$ac_ext <<_ACEOF
10830#line $LINENO "configure"
10831#include "confdefs.h"
10832#include <stdlib.h>
10833#include <stdarg.h>
10834#include <string.h>
10835#include <float.h>
10836
10837_ACEOF
10838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10840  ac_status=$?
10841  egrep -v '^ *\+' conftest.er1 >conftest.err
10842  rm -f conftest.er1
10843  cat conftest.err >&5
10844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845  (exit $ac_status); } >/dev/null; then
10846  if test -s conftest.err; then
10847    ac_cpp_err=$ac_cxx_preproc_warn_flag
10848  else
10849    ac_cpp_err=
10850  fi
10851else
10852  ac_cpp_err=yes
10853fi
10854if test -z "$ac_cpp_err"; then
10855  ac_cv_header_stdc=yes
10856else
10857  echo "$as_me: failed program was:" >&5
10858  cat conftest.$ac_ext >&5
10859  ac_cv_header_stdc=no
10860fi
10861rm -f conftest.err conftest.$ac_ext
10862
10863if test $ac_cv_header_stdc = yes; then
10864  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10865  cat >conftest.$ac_ext <<_ACEOF
10866#line $LINENO "configure"
10867#include "confdefs.h"
10868#include <string.h>
10869
10870_ACEOF
10871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10872  egrep "memchr" >/dev/null 2>&1; then
10873  :
10874else
10875  ac_cv_header_stdc=no
10876fi
10877rm -f conftest*
10878
10879fi
10880
10881if test $ac_cv_header_stdc = yes; then
10882  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10883  cat >conftest.$ac_ext <<_ACEOF
10884#line $LINENO "configure"
10885#include "confdefs.h"
10886#include <stdlib.h>
10887
10888_ACEOF
10889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10890  egrep "free" >/dev/null 2>&1; then
10891  :
10892else
10893  ac_cv_header_stdc=no
10894fi
10895rm -f conftest*
10896
10897fi
10898
10899if test $ac_cv_header_stdc = yes; then
10900  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10901  if test "$cross_compiling" = yes; then
10902  :
10903else
10904  cat >conftest.$ac_ext <<_ACEOF
10905#line $LINENO "configure"
10906#include "confdefs.h"
10907#include <ctype.h>
10908#if ((' ' & 0x0FF) == 0x020)
10909# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10910# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10911#else
10912# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10913                     || ('j' <= (c) && (c) <= 'r') \
10914                     || ('s' <= (c) && (c) <= 'z'))
10915# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10916#endif
10917
10918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10919int
10920main ()
10921{
10922  int i;
10923  for (i = 0; i < 256; i++)
10924    if (XOR (islower (i), ISLOWER (i))
10925        || toupper (i) != TOUPPER (i))
10926      exit(2);
10927  exit (0);
10928}
10929_ACEOF
10930rm -f conftest$ac_exeext
10931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932  (eval $ac_link) 2>&5
10933  ac_status=$?
10934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937  (eval $ac_try) 2>&5
10938  ac_status=$?
10939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940  (exit $ac_status); }; }; then
10941  :
10942else
10943  echo "$as_me: program exited with status $ac_status" >&5
10944echo "$as_me: failed program was:" >&5
10945cat conftest.$ac_ext >&5
10946( exit $ac_status )
10947ac_cv_header_stdc=no
10948fi
10949rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10950fi
10951fi
10952fi
10953echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10954echo "${ECHO_T}$ac_cv_header_stdc" >&6
10955if test $ac_cv_header_stdc = yes; then
10956
10957cat >>confdefs.h <<\_ACEOF
10958@%:@define STDC_HEADERS 1
10959_ACEOF
10960
10961fi
10962
10963# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10974                  inttypes.h stdint.h unistd.h
10975do
10976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10977echo "$as_me:$LINENO: checking for $ac_header" >&5
10978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980  echo $ECHO_N "(cached) $ECHO_C" >&6
10981else
10982  cat >conftest.$ac_ext <<_ACEOF
10983#line $LINENO "configure"
10984#include "confdefs.h"
10985$ac_includes_default
10986
10987@%:@include <$ac_header>
10988_ACEOF
10989rm -f conftest.$ac_objext
10990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991  (eval $ac_compile) 2>&5
10992  ac_status=$?
10993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994  (exit $ac_status); } &&
10995         { ac_try='test -s conftest.$ac_objext'
10996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997  (eval $ac_try) 2>&5
10998  ac_status=$?
10999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000  (exit $ac_status); }; }; then
11001  eval "$as_ac_Header=yes"
11002else
11003  echo "$as_me: failed program was:" >&5
11004cat conftest.$ac_ext >&5
11005eval "$as_ac_Header=no"
11006fi
11007rm -f conftest.$ac_objext conftest.$ac_ext
11008fi
11009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11011if test `eval echo '${'$as_ac_Header'}'` = yes; then
11012  cat >>confdefs.h <<_ACEOF
11013@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11014_ACEOF
11015
11016fi
11017
11018done
11019
11020
11021if test "${ac_cv_header_sys_socket_h+set}" = set; then
11022  echo "$as_me:$LINENO: checking for sys/socket.h" >&5
11023echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
11024if test "${ac_cv_header_sys_socket_h+set}" = set; then
11025  echo $ECHO_N "(cached) $ECHO_C" >&6
11026fi
11027echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
11028echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
11029else
11030  # Is the header compilable?
11031echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
11032echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
11033cat >conftest.$ac_ext <<_ACEOF
11034#line $LINENO "configure"
11035#include "confdefs.h"
11036$ac_includes_default
11037@%:@include <sys/socket.h>
11038_ACEOF
11039rm -f conftest.$ac_objext
11040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041  (eval $ac_compile) 2>&5
11042  ac_status=$?
11043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044  (exit $ac_status); } &&
11045         { ac_try='test -s conftest.$ac_objext'
11046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047  (eval $ac_try) 2>&5
11048  ac_status=$?
11049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050  (exit $ac_status); }; }; then
11051  ac_header_compiler=yes
11052else
11053  echo "$as_me: failed program was:" >&5
11054cat conftest.$ac_ext >&5
11055ac_header_compiler=no
11056fi
11057rm -f conftest.$ac_objext conftest.$ac_ext
11058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059echo "${ECHO_T}$ac_header_compiler" >&6
11060
11061# Is the header present?
11062echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
11063echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
11064cat >conftest.$ac_ext <<_ACEOF
11065#line $LINENO "configure"
11066#include "confdefs.h"
11067@%:@include <sys/socket.h>
11068_ACEOF
11069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11070  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11071  ac_status=$?
11072  egrep -v '^ *\+' conftest.er1 >conftest.err
11073  rm -f conftest.er1
11074  cat conftest.err >&5
11075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); } >/dev/null; then
11077  if test -s conftest.err; then
11078    ac_cpp_err=$ac_cxx_preproc_warn_flag
11079  else
11080    ac_cpp_err=
11081  fi
11082else
11083  ac_cpp_err=yes
11084fi
11085if test -z "$ac_cpp_err"; then
11086  ac_header_preproc=yes
11087else
11088  echo "$as_me: failed program was:" >&5
11089  cat conftest.$ac_ext >&5
11090  ac_header_preproc=no
11091fi
11092rm -f conftest.err conftest.$ac_ext
11093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11094echo "${ECHO_T}$ac_header_preproc" >&6
11095
11096# So?  What about this header?
11097case $ac_header_compiler:$ac_header_preproc in
11098  yes:no )
11099    { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
11100echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11101    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
11102echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
11103  no:yes )
11104    { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
11105echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
11106    { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
11107echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
11108    { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
11109echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
11110esac
11111echo "$as_me:$LINENO: checking for sys/socket.h" >&5
11112echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
11113if test "${ac_cv_header_sys_socket_h+set}" = set; then
11114  echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116  ac_cv_header_sys_socket_h=$ac_header_preproc
11117fi
11118echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
11119echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
11120
11121fi
11122if test $ac_cv_header_sys_socket_h = yes; then
11123  :
11124else
11125  have_socket=false
11126fi
11127
11128
11129
11130echo "$as_me:$LINENO: checking for socketlen type" >&5
11131echo $ECHO_N "checking for socketlen type... $ECHO_C" >&6
11132cat >conftest.$ac_ext <<_ACEOF
11133#line $LINENO "configure"
11134#include "confdefs.h"
11135
11136		#include <sys/types.h>
11137		#include <sys/socket.h>
11138		#include <netinet/in.h>
11139
11140#ifdef F77_DUMMY_MAIN
11141#  ifdef __cplusplus
11142     extern "C"
11143#  endif
11144   int F77_DUMMY_MAIN() { return 1; }
11145#endif
11146int
11147main ()
11148{
11149	sockaddr_in   addr;
11150	  socklen_t     len = 0;
11151	  getsockname(0, (struct sockaddr*)&addr, &len);
11152
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159  (eval $ac_compile) 2>&5
11160  ac_status=$?
11161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162  (exit $ac_status); } &&
11163         { ac_try='test -s conftest.$ac_objext'
11164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165  (eval $ac_try) 2>&5
11166  ac_status=$?
11167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168  (exit $ac_status); }; }; then
11169  SOCKLEN_TYPE=socklen_t
11170else
11171  echo "$as_me: failed program was:" >&5
11172cat conftest.$ac_ext >&5
11173fi
11174rm -f conftest.$ac_objext conftest.$ac_ext
11175if test "${SOCKLEN_TYPE}" = "" ; then
11176	cat >conftest.$ac_ext <<_ACEOF
11177#line $LINENO "configure"
11178#include "confdefs.h"
11179
11180			#include <sys/types.h>
11181			#include <sys/socket.h>
11182			#include <netinet/in.h>
11183
11184#ifdef F77_DUMMY_MAIN
11185#  ifdef __cplusplus
11186     extern "C"
11187#  endif
11188   int F77_DUMMY_MAIN() { return 1; }
11189#endif
11190int
11191main ()
11192{
11193	sockaddr_in   addr;
11194		  size_t    len = 0;
11195		  getsockname(0, (struct sockaddr*)&addr, &len);
11196
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201rm -f conftest.$ac_objext
11202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203  (eval $ac_compile) 2>&5
11204  ac_status=$?
11205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); } &&
11207         { ac_try='test -s conftest.$ac_objext'
11208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209  (eval $ac_try) 2>&5
11210  ac_status=$?
11211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212  (exit $ac_status); }; }; then
11213  SOCKLEN_TYPE=size_t
11214else
11215  echo "$as_me: failed program was:" >&5
11216cat conftest.$ac_ext >&5
11217fi
11218rm -f conftest.$ac_objext conftest.$ac_ext
11219fi
11220if test "${SOCKLEN_TYPE}" = "" ; then
11221	cat >conftest.$ac_ext <<_ACEOF
11222#line $LINENO "configure"
11223#include "confdefs.h"
11224
11225			#include <sys/types.h>
11226			#include <sys/socket.h>
11227			#include <netinet/in.h>
11228
11229#ifdef F77_DUMMY_MAIN
11230#  ifdef __cplusplus
11231     extern "C"
11232#  endif
11233   int F77_DUMMY_MAIN() { return 1; }
11234#endif
11235int
11236main ()
11237{
11238	sockaddr_in   addr;
11239		  unsigned int  len = 0;
11240		  getsockname(0, (struct sockaddr*)&addr, &len);
11241
11242  ;
11243  return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248  (eval $ac_compile) 2>&5
11249  ac_status=$?
11250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251  (exit $ac_status); } &&
11252         { ac_try='test -s conftest.$ac_objext'
11253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254  (eval $ac_try) 2>&5
11255  ac_status=$?
11256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257  (exit $ac_status); }; }; then
11258  SOCKLEN_TYPE="unsigned int"
11259else
11260  echo "$as_me: failed program was:" >&5
11261cat conftest.$ac_ext >&5
11262fi
11263rm -f conftest.$ac_objext conftest.$ac_ext
11264fi
11265if test "${SOCKLEN_TYPE}" = "" ; then
11266	cat >conftest.$ac_ext <<_ACEOF
11267#line $LINENO "configure"
11268#include "confdefs.h"
11269
11270			#include <sys/types.h>
11271			#include <sys/socket.h>
11272			#include <netinet/in.h>
11273
11274#ifdef F77_DUMMY_MAIN
11275#  ifdef __cplusplus
11276     extern "C"
11277#  endif
11278   int F77_DUMMY_MAIN() { return 1; }
11279#endif
11280int
11281main ()
11282{
11283	sockaddr_in   addr;
11284		  int 					len = 0;
11285		  getsockname(0, (struct sockaddr*)&addr, &len);
11286
11287  ;
11288  return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext
11292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293  (eval $ac_compile) 2>&5
11294  ac_status=$?
11295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296  (exit $ac_status); } &&
11297         { ac_try='test -s conftest.$ac_objext'
11298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299  (eval $ac_try) 2>&5
11300  ac_status=$?
11301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302  (exit $ac_status); }; }; then
11303  SOCKLEN_TYPE="int"
11304else
11305  echo "$as_me: failed program was:" >&5
11306cat conftest.$ac_ext >&5
11307fi
11308rm -f conftest.$ac_objext conftest.$ac_ext
11309fi
11310if test "${SOCKLEN_TYPE}" != "" ; then
11311	echo "$as_me:$LINENO: result: $SOCKLEN_TYPE" >&5
11312echo "${ECHO_T}$SOCKLEN_TYPE" >&6
11313fi
11314
11315cat >>confdefs.h <<_ACEOF
11316@%:@define SOCKLEN_TYPE ${SOCKLEN_TYPE}
11317_ACEOF
11318
11319
11320#
11321# Sizeof
11322#
11323echo "$as_me:$LINENO: checking for char" >&5
11324echo $ECHO_N "checking for char... $ECHO_C" >&6
11325if test "${ac_cv_type_char+set}" = set; then
11326  echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328  cat >conftest.$ac_ext <<_ACEOF
11329#line $LINENO "configure"
11330#include "confdefs.h"
11331$ac_includes_default
11332#ifdef F77_DUMMY_MAIN
11333#  ifdef __cplusplus
11334     extern "C"
11335#  endif
11336   int F77_DUMMY_MAIN() { return 1; }
11337#endif
11338int
11339main ()
11340{
11341if ((char *) 0)
11342  return 0;
11343if (sizeof (char))
11344  return 0;
11345  ;
11346  return 0;
11347}
11348_ACEOF
11349rm -f conftest.$ac_objext
11350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11351  (eval $ac_compile) 2>&5
11352  ac_status=$?
11353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354  (exit $ac_status); } &&
11355         { ac_try='test -s conftest.$ac_objext'
11356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357  (eval $ac_try) 2>&5
11358  ac_status=$?
11359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360  (exit $ac_status); }; }; then
11361  ac_cv_type_char=yes
11362else
11363  echo "$as_me: failed program was:" >&5
11364cat conftest.$ac_ext >&5
11365ac_cv_type_char=no
11366fi
11367rm -f conftest.$ac_objext conftest.$ac_ext
11368fi
11369echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11370echo "${ECHO_T}$ac_cv_type_char" >&6
11371
11372echo "$as_me:$LINENO: checking size of char" >&5
11373echo $ECHO_N "checking size of char... $ECHO_C" >&6
11374if test "${ac_cv_sizeof_char+set}" = set; then
11375  echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377  if test "$ac_cv_type_char" = yes; then
11378  # The cast to unsigned long works around a bug in the HP C Compiler
11379  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11380  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11381  # This bug is HP SR number 8606223364.
11382  if test "$cross_compiling" = yes; then
11383  # Depending upon the size, compute the lo and hi bounds.
11384cat >conftest.$ac_ext <<_ACEOF
11385#line $LINENO "configure"
11386#include "confdefs.h"
11387$ac_includes_default
11388#ifdef F77_DUMMY_MAIN
11389#  ifdef __cplusplus
11390     extern "C"
11391#  endif
11392   int F77_DUMMY_MAIN() { return 1; }
11393#endif
11394int
11395main ()
11396{
11397static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
11398test_array @<:@0@:>@ = 0
11399
11400  ;
11401  return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11406  (eval $ac_compile) 2>&5
11407  ac_status=$?
11408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409  (exit $ac_status); } &&
11410         { ac_try='test -s conftest.$ac_objext'
11411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412  (eval $ac_try) 2>&5
11413  ac_status=$?
11414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); }; }; then
11416  ac_lo=0 ac_mid=0
11417  while :; do
11418    cat >conftest.$ac_ext <<_ACEOF
11419#line $LINENO "configure"
11420#include "confdefs.h"
11421$ac_includes_default
11422#ifdef F77_DUMMY_MAIN
11423#  ifdef __cplusplus
11424     extern "C"
11425#  endif
11426   int F77_DUMMY_MAIN() { return 1; }
11427#endif
11428int
11429main ()
11430{
11431static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
11432test_array @<:@0@:>@ = 0
11433
11434  ;
11435  return 0;
11436}
11437_ACEOF
11438rm -f conftest.$ac_objext
11439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440  (eval $ac_compile) 2>&5
11441  ac_status=$?
11442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443  (exit $ac_status); } &&
11444         { ac_try='test -s conftest.$ac_objext'
11445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446  (eval $ac_try) 2>&5
11447  ac_status=$?
11448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449  (exit $ac_status); }; }; then
11450  ac_hi=$ac_mid; break
11451else
11452  echo "$as_me: failed program was:" >&5
11453cat conftest.$ac_ext >&5
11454ac_lo=`expr $ac_mid + 1`
11455                    if test $ac_lo -le $ac_mid; then
11456                      ac_lo= ac_hi=
11457                      break
11458                    fi
11459                    ac_mid=`expr 2 '*' $ac_mid + 1`
11460fi
11461rm -f conftest.$ac_objext conftest.$ac_ext
11462  done
11463else
11464  echo "$as_me: failed program was:" >&5
11465cat conftest.$ac_ext >&5
11466cat >conftest.$ac_ext <<_ACEOF
11467#line $LINENO "configure"
11468#include "confdefs.h"
11469$ac_includes_default
11470#ifdef F77_DUMMY_MAIN
11471#  ifdef __cplusplus
11472     extern "C"
11473#  endif
11474   int F77_DUMMY_MAIN() { return 1; }
11475#endif
11476int
11477main ()
11478{
11479static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
11480test_array @<:@0@:>@ = 0
11481
11482  ;
11483  return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext
11487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488  (eval $ac_compile) 2>&5
11489  ac_status=$?
11490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491  (exit $ac_status); } &&
11492         { ac_try='test -s conftest.$ac_objext'
11493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494  (eval $ac_try) 2>&5
11495  ac_status=$?
11496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497  (exit $ac_status); }; }; then
11498  ac_hi=-1 ac_mid=-1
11499  while :; do
11500    cat >conftest.$ac_ext <<_ACEOF
11501#line $LINENO "configure"
11502#include "confdefs.h"
11503$ac_includes_default
11504#ifdef F77_DUMMY_MAIN
11505#  ifdef __cplusplus
11506     extern "C"
11507#  endif
11508   int F77_DUMMY_MAIN() { return 1; }
11509#endif
11510int
11511main ()
11512{
11513static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
11514test_array @<:@0@:>@ = 0
11515
11516  ;
11517  return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext
11521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522  (eval $ac_compile) 2>&5
11523  ac_status=$?
11524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525  (exit $ac_status); } &&
11526         { ac_try='test -s conftest.$ac_objext'
11527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528  (eval $ac_try) 2>&5
11529  ac_status=$?
11530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531  (exit $ac_status); }; }; then
11532  ac_lo=$ac_mid; break
11533else
11534  echo "$as_me: failed program was:" >&5
11535cat conftest.$ac_ext >&5
11536ac_hi=`expr '(' $ac_mid ')' - 1`
11537                       if test $ac_mid -le $ac_hi; then
11538                         ac_lo= ac_hi=
11539                         break
11540                       fi
11541                       ac_mid=`expr 2 '*' $ac_mid`
11542fi
11543rm -f conftest.$ac_objext conftest.$ac_ext
11544  done
11545else
11546  echo "$as_me: failed program was:" >&5
11547cat conftest.$ac_ext >&5
11548ac_lo= ac_hi=
11549fi
11550rm -f conftest.$ac_objext conftest.$ac_ext
11551fi
11552rm -f conftest.$ac_objext conftest.$ac_ext
11553# Binary search between lo and hi bounds.
11554while test "x$ac_lo" != "x$ac_hi"; do
11555  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11556  cat >conftest.$ac_ext <<_ACEOF
11557#line $LINENO "configure"
11558#include "confdefs.h"
11559$ac_includes_default
11560#ifdef F77_DUMMY_MAIN
11561#  ifdef __cplusplus
11562     extern "C"
11563#  endif
11564   int F77_DUMMY_MAIN() { return 1; }
11565#endif
11566int
11567main ()
11568{
11569static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
11570test_array @<:@0@:>@ = 0
11571
11572  ;
11573  return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext
11577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578  (eval $ac_compile) 2>&5
11579  ac_status=$?
11580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581  (exit $ac_status); } &&
11582         { ac_try='test -s conftest.$ac_objext'
11583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584  (eval $ac_try) 2>&5
11585  ac_status=$?
11586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587  (exit $ac_status); }; }; then
11588  ac_hi=$ac_mid
11589else
11590  echo "$as_me: failed program was:" >&5
11591cat conftest.$ac_ext >&5
11592ac_lo=`expr '(' $ac_mid ')' + 1`
11593fi
11594rm -f conftest.$ac_objext conftest.$ac_ext
11595done
11596case $ac_lo in
11597?*) ac_cv_sizeof_char=$ac_lo;;
11598'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
11599echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
11600   { (exit 1); exit 1; }; } ;;
11601esac
11602else
11603  if test "$cross_compiling" = yes; then
11604  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11605echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11606   { (exit 1); exit 1; }; }
11607else
11608  cat >conftest.$ac_ext <<_ACEOF
11609#line $LINENO "configure"
11610#include "confdefs.h"
11611$ac_includes_default
11612long longval () { return (long) (sizeof (char)); }
11613unsigned long ulongval () { return (long) (sizeof (char)); }
11614@%:@include <stdio.h>
11615@%:@include <stdlib.h>
11616#ifdef F77_DUMMY_MAIN
11617#  ifdef __cplusplus
11618     extern "C"
11619#  endif
11620   int F77_DUMMY_MAIN() { return 1; }
11621#endif
11622int
11623main ()
11624{
11625
11626  FILE *f = fopen ("conftest.val", "w");
11627  if (! f)
11628    exit (1);
11629  if (((long) (sizeof (char))) < 0)
11630    {
11631      long i = longval ();
11632      if (i != ((long) (sizeof (char))))
11633	exit (1);
11634      fprintf (f, "%ld\n", i);
11635    }
11636  else
11637    {
11638      unsigned long i = ulongval ();
11639      if (i != ((long) (sizeof (char))))
11640	exit (1);
11641      fprintf (f, "%lu\n", i);
11642    }
11643  exit (ferror (f) || fclose (f) != 0);
11644
11645  ;
11646  return 0;
11647}
11648_ACEOF
11649rm -f conftest$ac_exeext
11650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11651  (eval $ac_link) 2>&5
11652  ac_status=$?
11653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656  (eval $ac_try) 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); }; }; then
11660  ac_cv_sizeof_char=`cat conftest.val`
11661else
11662  echo "$as_me: program exited with status $ac_status" >&5
11663echo "$as_me: failed program was:" >&5
11664cat conftest.$ac_ext >&5
11665( exit $ac_status )
11666{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
11667echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
11668   { (exit 1); exit 1; }; }
11669fi
11670rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11671fi
11672fi
11673rm -f conftest.val
11674else
11675  ac_cv_sizeof_char=0
11676fi
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11679echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11680cat >>confdefs.h <<_ACEOF
11681@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
11682_ACEOF
11683
11684
11685echo "$as_me:$LINENO: checking for short" >&5
11686echo $ECHO_N "checking for short... $ECHO_C" >&6
11687if test "${ac_cv_type_short+set}" = set; then
11688  echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690  cat >conftest.$ac_ext <<_ACEOF
11691#line $LINENO "configure"
11692#include "confdefs.h"
11693$ac_includes_default
11694#ifdef F77_DUMMY_MAIN
11695#  ifdef __cplusplus
11696     extern "C"
11697#  endif
11698   int F77_DUMMY_MAIN() { return 1; }
11699#endif
11700int
11701main ()
11702{
11703if ((short *) 0)
11704  return 0;
11705if (sizeof (short))
11706  return 0;
11707  ;
11708  return 0;
11709}
11710_ACEOF
11711rm -f conftest.$ac_objext
11712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713  (eval $ac_compile) 2>&5
11714  ac_status=$?
11715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716  (exit $ac_status); } &&
11717         { ac_try='test -s conftest.$ac_objext'
11718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719  (eval $ac_try) 2>&5
11720  ac_status=$?
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); }; }; then
11723  ac_cv_type_short=yes
11724else
11725  echo "$as_me: failed program was:" >&5
11726cat conftest.$ac_ext >&5
11727ac_cv_type_short=no
11728fi
11729rm -f conftest.$ac_objext conftest.$ac_ext
11730fi
11731echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11732echo "${ECHO_T}$ac_cv_type_short" >&6
11733
11734echo "$as_me:$LINENO: checking size of short" >&5
11735echo $ECHO_N "checking size of short... $ECHO_C" >&6
11736if test "${ac_cv_sizeof_short+set}" = set; then
11737  echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739  if test "$ac_cv_type_short" = yes; then
11740  # The cast to unsigned long works around a bug in the HP C Compiler
11741  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11742  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11743  # This bug is HP SR number 8606223364.
11744  if test "$cross_compiling" = yes; then
11745  # Depending upon the size, compute the lo and hi bounds.
11746cat >conftest.$ac_ext <<_ACEOF
11747#line $LINENO "configure"
11748#include "confdefs.h"
11749$ac_includes_default
11750#ifdef F77_DUMMY_MAIN
11751#  ifdef __cplusplus
11752     extern "C"
11753#  endif
11754   int F77_DUMMY_MAIN() { return 1; }
11755#endif
11756int
11757main ()
11758{
11759static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= 0)@:>@;
11760test_array @<:@0@:>@ = 0
11761
11762  ;
11763  return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768  (eval $ac_compile) 2>&5
11769  ac_status=$?
11770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771  (exit $ac_status); } &&
11772         { ac_try='test -s conftest.$ac_objext'
11773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774  (eval $ac_try) 2>&5
11775  ac_status=$?
11776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777  (exit $ac_status); }; }; then
11778  ac_lo=0 ac_mid=0
11779  while :; do
11780    cat >conftest.$ac_ext <<_ACEOF
11781#line $LINENO "configure"
11782#include "confdefs.h"
11783$ac_includes_default
11784#ifdef F77_DUMMY_MAIN
11785#  ifdef __cplusplus
11786     extern "C"
11787#  endif
11788   int F77_DUMMY_MAIN() { return 1; }
11789#endif
11790int
11791main ()
11792{
11793static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
11794test_array @<:@0@:>@ = 0
11795
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext
11801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802  (eval $ac_compile) 2>&5
11803  ac_status=$?
11804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805  (exit $ac_status); } &&
11806         { ac_try='test -s conftest.$ac_objext'
11807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808  (eval $ac_try) 2>&5
11809  ac_status=$?
11810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811  (exit $ac_status); }; }; then
11812  ac_hi=$ac_mid; break
11813else
11814  echo "$as_me: failed program was:" >&5
11815cat conftest.$ac_ext >&5
11816ac_lo=`expr $ac_mid + 1`
11817                    if test $ac_lo -le $ac_mid; then
11818                      ac_lo= ac_hi=
11819                      break
11820                    fi
11821                    ac_mid=`expr 2 '*' $ac_mid + 1`
11822fi
11823rm -f conftest.$ac_objext conftest.$ac_ext
11824  done
11825else
11826  echo "$as_me: failed program was:" >&5
11827cat conftest.$ac_ext >&5
11828cat >conftest.$ac_ext <<_ACEOF
11829#line $LINENO "configure"
11830#include "confdefs.h"
11831$ac_includes_default
11832#ifdef F77_DUMMY_MAIN
11833#  ifdef __cplusplus
11834     extern "C"
11835#  endif
11836   int F77_DUMMY_MAIN() { return 1; }
11837#endif
11838int
11839main ()
11840{
11841static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) < 0)@:>@;
11842test_array @<:@0@:>@ = 0
11843
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext
11849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850  (eval $ac_compile) 2>&5
11851  ac_status=$?
11852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853  (exit $ac_status); } &&
11854         { ac_try='test -s conftest.$ac_objext'
11855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856  (eval $ac_try) 2>&5
11857  ac_status=$?
11858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859  (exit $ac_status); }; }; then
11860  ac_hi=-1 ac_mid=-1
11861  while :; do
11862    cat >conftest.$ac_ext <<_ACEOF
11863#line $LINENO "configure"
11864#include "confdefs.h"
11865$ac_includes_default
11866#ifdef F77_DUMMY_MAIN
11867#  ifdef __cplusplus
11868     extern "C"
11869#  endif
11870   int F77_DUMMY_MAIN() { return 1; }
11871#endif
11872int
11873main ()
11874{
11875static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)@:>@;
11876test_array @<:@0@:>@ = 0
11877
11878  ;
11879  return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext
11883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884  (eval $ac_compile) 2>&5
11885  ac_status=$?
11886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887  (exit $ac_status); } &&
11888         { ac_try='test -s conftest.$ac_objext'
11889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890  (eval $ac_try) 2>&5
11891  ac_status=$?
11892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893  (exit $ac_status); }; }; then
11894  ac_lo=$ac_mid; break
11895else
11896  echo "$as_me: failed program was:" >&5
11897cat conftest.$ac_ext >&5
11898ac_hi=`expr '(' $ac_mid ')' - 1`
11899                       if test $ac_mid -le $ac_hi; then
11900                         ac_lo= ac_hi=
11901                         break
11902                       fi
11903                       ac_mid=`expr 2 '*' $ac_mid`
11904fi
11905rm -f conftest.$ac_objext conftest.$ac_ext
11906  done
11907else
11908  echo "$as_me: failed program was:" >&5
11909cat conftest.$ac_ext >&5
11910ac_lo= ac_hi=
11911fi
11912rm -f conftest.$ac_objext conftest.$ac_ext
11913fi
11914rm -f conftest.$ac_objext conftest.$ac_ext
11915# Binary search between lo and hi bounds.
11916while test "x$ac_lo" != "x$ac_hi"; do
11917  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11918  cat >conftest.$ac_ext <<_ACEOF
11919#line $LINENO "configure"
11920#include "confdefs.h"
11921$ac_includes_default
11922#ifdef F77_DUMMY_MAIN
11923#  ifdef __cplusplus
11924     extern "C"
11925#  endif
11926   int F77_DUMMY_MAIN() { return 1; }
11927#endif
11928int
11929main ()
11930{
11931static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
11932test_array @<:@0@:>@ = 0
11933
11934  ;
11935  return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext
11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940  (eval $ac_compile) 2>&5
11941  ac_status=$?
11942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943  (exit $ac_status); } &&
11944         { ac_try='test -s conftest.$ac_objext'
11945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946  (eval $ac_try) 2>&5
11947  ac_status=$?
11948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949  (exit $ac_status); }; }; then
11950  ac_hi=$ac_mid
11951else
11952  echo "$as_me: failed program was:" >&5
11953cat conftest.$ac_ext >&5
11954ac_lo=`expr '(' $ac_mid ')' + 1`
11955fi
11956rm -f conftest.$ac_objext conftest.$ac_ext
11957done
11958case $ac_lo in
11959?*) ac_cv_sizeof_short=$ac_lo;;
11960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
11961echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
11962   { (exit 1); exit 1; }; } ;;
11963esac
11964else
11965  if test "$cross_compiling" = yes; then
11966  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11967echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11968   { (exit 1); exit 1; }; }
11969else
11970  cat >conftest.$ac_ext <<_ACEOF
11971#line $LINENO "configure"
11972#include "confdefs.h"
11973$ac_includes_default
11974long longval () { return (long) (sizeof (short)); }
11975unsigned long ulongval () { return (long) (sizeof (short)); }
11976@%:@include <stdio.h>
11977@%:@include <stdlib.h>
11978#ifdef F77_DUMMY_MAIN
11979#  ifdef __cplusplus
11980     extern "C"
11981#  endif
11982   int F77_DUMMY_MAIN() { return 1; }
11983#endif
11984int
11985main ()
11986{
11987
11988  FILE *f = fopen ("conftest.val", "w");
11989  if (! f)
11990    exit (1);
11991  if (((long) (sizeof (short))) < 0)
11992    {
11993      long i = longval ();
11994      if (i != ((long) (sizeof (short))))
11995	exit (1);
11996      fprintf (f, "%ld\n", i);
11997    }
11998  else
11999    {
12000      unsigned long i = ulongval ();
12001      if (i != ((long) (sizeof (short))))
12002	exit (1);
12003      fprintf (f, "%lu\n", i);
12004    }
12005  exit (ferror (f) || fclose (f) != 0);
12006
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011rm -f conftest$ac_exeext
12012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013  (eval $ac_link) 2>&5
12014  ac_status=$?
12015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018  (eval $ac_try) 2>&5
12019  ac_status=$?
12020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021  (exit $ac_status); }; }; then
12022  ac_cv_sizeof_short=`cat conftest.val`
12023else
12024  echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5
12026cat conftest.$ac_ext >&5
12027( exit $ac_status )
12028{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
12029echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
12030   { (exit 1); exit 1; }; }
12031fi
12032rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12033fi
12034fi
12035rm -f conftest.val
12036else
12037  ac_cv_sizeof_short=0
12038fi
12039fi
12040echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12041echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12042cat >>confdefs.h <<_ACEOF
12043@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
12044_ACEOF
12045
12046
12047echo "$as_me:$LINENO: checking for int" >&5
12048echo $ECHO_N "checking for int... $ECHO_C" >&6
12049if test "${ac_cv_type_int+set}" = set; then
12050  echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
12052  cat >conftest.$ac_ext <<_ACEOF
12053#line $LINENO "configure"
12054#include "confdefs.h"
12055$ac_includes_default
12056#ifdef F77_DUMMY_MAIN
12057#  ifdef __cplusplus
12058     extern "C"
12059#  endif
12060   int F77_DUMMY_MAIN() { return 1; }
12061#endif
12062int
12063main ()
12064{
12065if ((int *) 0)
12066  return 0;
12067if (sizeof (int))
12068  return 0;
12069  ;
12070  return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext
12074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075  (eval $ac_compile) 2>&5
12076  ac_status=$?
12077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078  (exit $ac_status); } &&
12079         { ac_try='test -s conftest.$ac_objext'
12080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081  (eval $ac_try) 2>&5
12082  ac_status=$?
12083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084  (exit $ac_status); }; }; then
12085  ac_cv_type_int=yes
12086else
12087  echo "$as_me: failed program was:" >&5
12088cat conftest.$ac_ext >&5
12089ac_cv_type_int=no
12090fi
12091rm -f conftest.$ac_objext conftest.$ac_ext
12092fi
12093echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12094echo "${ECHO_T}$ac_cv_type_int" >&6
12095
12096echo "$as_me:$LINENO: checking size of int" >&5
12097echo $ECHO_N "checking size of int... $ECHO_C" >&6
12098if test "${ac_cv_sizeof_int+set}" = set; then
12099  echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101  if test "$ac_cv_type_int" = yes; then
12102  # The cast to unsigned long works around a bug in the HP C Compiler
12103  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12104  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12105  # This bug is HP SR number 8606223364.
12106  if test "$cross_compiling" = yes; then
12107  # Depending upon the size, compute the lo and hi bounds.
12108cat >conftest.$ac_ext <<_ACEOF
12109#line $LINENO "configure"
12110#include "confdefs.h"
12111$ac_includes_default
12112#ifdef F77_DUMMY_MAIN
12113#  ifdef __cplusplus
12114     extern "C"
12115#  endif
12116   int F77_DUMMY_MAIN() { return 1; }
12117#endif
12118int
12119main ()
12120{
12121static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
12122test_array @<:@0@:>@ = 0
12123
12124  ;
12125  return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext
12129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130  (eval $ac_compile) 2>&5
12131  ac_status=$?
12132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133  (exit $ac_status); } &&
12134         { ac_try='test -s conftest.$ac_objext'
12135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136  (eval $ac_try) 2>&5
12137  ac_status=$?
12138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139  (exit $ac_status); }; }; then
12140  ac_lo=0 ac_mid=0
12141  while :; do
12142    cat >conftest.$ac_ext <<_ACEOF
12143#line $LINENO "configure"
12144#include "confdefs.h"
12145$ac_includes_default
12146#ifdef F77_DUMMY_MAIN
12147#  ifdef __cplusplus
12148     extern "C"
12149#  endif
12150   int F77_DUMMY_MAIN() { return 1; }
12151#endif
12152int
12153main ()
12154{
12155static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
12156test_array @<:@0@:>@ = 0
12157
12158  ;
12159  return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164  (eval $ac_compile) 2>&5
12165  ac_status=$?
12166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167  (exit $ac_status); } &&
12168         { ac_try='test -s conftest.$ac_objext'
12169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170  (eval $ac_try) 2>&5
12171  ac_status=$?
12172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173  (exit $ac_status); }; }; then
12174  ac_hi=$ac_mid; break
12175else
12176  echo "$as_me: failed program was:" >&5
12177cat conftest.$ac_ext >&5
12178ac_lo=`expr $ac_mid + 1`
12179                    if test $ac_lo -le $ac_mid; then
12180                      ac_lo= ac_hi=
12181                      break
12182                    fi
12183                    ac_mid=`expr 2 '*' $ac_mid + 1`
12184fi
12185rm -f conftest.$ac_objext conftest.$ac_ext
12186  done
12187else
12188  echo "$as_me: failed program was:" >&5
12189cat conftest.$ac_ext >&5
12190cat >conftest.$ac_ext <<_ACEOF
12191#line $LINENO "configure"
12192#include "confdefs.h"
12193$ac_includes_default
12194#ifdef F77_DUMMY_MAIN
12195#  ifdef __cplusplus
12196     extern "C"
12197#  endif
12198   int F77_DUMMY_MAIN() { return 1; }
12199#endif
12200int
12201main ()
12202{
12203static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
12204test_array @<:@0@:>@ = 0
12205
12206  ;
12207  return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212  (eval $ac_compile) 2>&5
12213  ac_status=$?
12214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215  (exit $ac_status); } &&
12216         { ac_try='test -s conftest.$ac_objext'
12217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218  (eval $ac_try) 2>&5
12219  ac_status=$?
12220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221  (exit $ac_status); }; }; then
12222  ac_hi=-1 ac_mid=-1
12223  while :; do
12224    cat >conftest.$ac_ext <<_ACEOF
12225#line $LINENO "configure"
12226#include "confdefs.h"
12227$ac_includes_default
12228#ifdef F77_DUMMY_MAIN
12229#  ifdef __cplusplus
12230     extern "C"
12231#  endif
12232   int F77_DUMMY_MAIN() { return 1; }
12233#endif
12234int
12235main ()
12236{
12237static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
12238test_array @<:@0@:>@ = 0
12239
12240  ;
12241  return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext
12245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12246  (eval $ac_compile) 2>&5
12247  ac_status=$?
12248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249  (exit $ac_status); } &&
12250         { ac_try='test -s conftest.$ac_objext'
12251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252  (eval $ac_try) 2>&5
12253  ac_status=$?
12254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255  (exit $ac_status); }; }; then
12256  ac_lo=$ac_mid; break
12257else
12258  echo "$as_me: failed program was:" >&5
12259cat conftest.$ac_ext >&5
12260ac_hi=`expr '(' $ac_mid ')' - 1`
12261                       if test $ac_mid -le $ac_hi; then
12262                         ac_lo= ac_hi=
12263                         break
12264                       fi
12265                       ac_mid=`expr 2 '*' $ac_mid`
12266fi
12267rm -f conftest.$ac_objext conftest.$ac_ext
12268  done
12269else
12270  echo "$as_me: failed program was:" >&5
12271cat conftest.$ac_ext >&5
12272ac_lo= ac_hi=
12273fi
12274rm -f conftest.$ac_objext conftest.$ac_ext
12275fi
12276rm -f conftest.$ac_objext conftest.$ac_ext
12277# Binary search between lo and hi bounds.
12278while test "x$ac_lo" != "x$ac_hi"; do
12279  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12280  cat >conftest.$ac_ext <<_ACEOF
12281#line $LINENO "configure"
12282#include "confdefs.h"
12283$ac_includes_default
12284#ifdef F77_DUMMY_MAIN
12285#  ifdef __cplusplus
12286     extern "C"
12287#  endif
12288   int F77_DUMMY_MAIN() { return 1; }
12289#endif
12290int
12291main ()
12292{
12293static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
12294test_array @<:@0@:>@ = 0
12295
12296  ;
12297  return 0;
12298}
12299_ACEOF
12300rm -f conftest.$ac_objext
12301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12302  (eval $ac_compile) 2>&5
12303  ac_status=$?
12304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305  (exit $ac_status); } &&
12306         { ac_try='test -s conftest.$ac_objext'
12307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308  (eval $ac_try) 2>&5
12309  ac_status=$?
12310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311  (exit $ac_status); }; }; then
12312  ac_hi=$ac_mid
12313else
12314  echo "$as_me: failed program was:" >&5
12315cat conftest.$ac_ext >&5
12316ac_lo=`expr '(' $ac_mid ')' + 1`
12317fi
12318rm -f conftest.$ac_objext conftest.$ac_ext
12319done
12320case $ac_lo in
12321?*) ac_cv_sizeof_int=$ac_lo;;
12322'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
12323echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
12324   { (exit 1); exit 1; }; } ;;
12325esac
12326else
12327  if test "$cross_compiling" = yes; then
12328  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12329echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12330   { (exit 1); exit 1; }; }
12331else
12332  cat >conftest.$ac_ext <<_ACEOF
12333#line $LINENO "configure"
12334#include "confdefs.h"
12335$ac_includes_default
12336long longval () { return (long) (sizeof (int)); }
12337unsigned long ulongval () { return (long) (sizeof (int)); }
12338@%:@include <stdio.h>
12339@%:@include <stdlib.h>
12340#ifdef F77_DUMMY_MAIN
12341#  ifdef __cplusplus
12342     extern "C"
12343#  endif
12344   int F77_DUMMY_MAIN() { return 1; }
12345#endif
12346int
12347main ()
12348{
12349
12350  FILE *f = fopen ("conftest.val", "w");
12351  if (! f)
12352    exit (1);
12353  if (((long) (sizeof (int))) < 0)
12354    {
12355      long i = longval ();
12356      if (i != ((long) (sizeof (int))))
12357	exit (1);
12358      fprintf (f, "%ld\n", i);
12359    }
12360  else
12361    {
12362      unsigned long i = ulongval ();
12363      if (i != ((long) (sizeof (int))))
12364	exit (1);
12365      fprintf (f, "%lu\n", i);
12366    }
12367  exit (ferror (f) || fclose (f) != 0);
12368
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373rm -f conftest$ac_exeext
12374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375  (eval $ac_link) 2>&5
12376  ac_status=$?
12377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380  (eval $ac_try) 2>&5
12381  ac_status=$?
12382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383  (exit $ac_status); }; }; then
12384  ac_cv_sizeof_int=`cat conftest.val`
12385else
12386  echo "$as_me: program exited with status $ac_status" >&5
12387echo "$as_me: failed program was:" >&5
12388cat conftest.$ac_ext >&5
12389( exit $ac_status )
12390{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
12391echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
12392   { (exit 1); exit 1; }; }
12393fi
12394rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12395fi
12396fi
12397rm -f conftest.val
12398else
12399  ac_cv_sizeof_int=0
12400fi
12401fi
12402echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12403echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12404cat >>confdefs.h <<_ACEOF
12405@%:@define SIZEOF_INT $ac_cv_sizeof_int
12406_ACEOF
12407
12408
12409echo "$as_me:$LINENO: checking for long" >&5
12410echo $ECHO_N "checking for long... $ECHO_C" >&6
12411if test "${ac_cv_type_long+set}" = set; then
12412  echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414  cat >conftest.$ac_ext <<_ACEOF
12415#line $LINENO "configure"
12416#include "confdefs.h"
12417$ac_includes_default
12418#ifdef F77_DUMMY_MAIN
12419#  ifdef __cplusplus
12420     extern "C"
12421#  endif
12422   int F77_DUMMY_MAIN() { return 1; }
12423#endif
12424int
12425main ()
12426{
12427if ((long *) 0)
12428  return 0;
12429if (sizeof (long))
12430  return 0;
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435rm -f conftest.$ac_objext
12436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12437  (eval $ac_compile) 2>&5
12438  ac_status=$?
12439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440  (exit $ac_status); } &&
12441         { ac_try='test -s conftest.$ac_objext'
12442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443  (eval $ac_try) 2>&5
12444  ac_status=$?
12445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446  (exit $ac_status); }; }; then
12447  ac_cv_type_long=yes
12448else
12449  echo "$as_me: failed program was:" >&5
12450cat conftest.$ac_ext >&5
12451ac_cv_type_long=no
12452fi
12453rm -f conftest.$ac_objext conftest.$ac_ext
12454fi
12455echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12456echo "${ECHO_T}$ac_cv_type_long" >&6
12457
12458echo "$as_me:$LINENO: checking size of long" >&5
12459echo $ECHO_N "checking size of long... $ECHO_C" >&6
12460if test "${ac_cv_sizeof_long+set}" = set; then
12461  echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463  if test "$ac_cv_type_long" = yes; then
12464  # The cast to unsigned long works around a bug in the HP C Compiler
12465  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12466  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12467  # This bug is HP SR number 8606223364.
12468  if test "$cross_compiling" = yes; then
12469  # Depending upon the size, compute the lo and hi bounds.
12470cat >conftest.$ac_ext <<_ACEOF
12471#line $LINENO "configure"
12472#include "confdefs.h"
12473$ac_includes_default
12474#ifdef F77_DUMMY_MAIN
12475#  ifdef __cplusplus
12476     extern "C"
12477#  endif
12478   int F77_DUMMY_MAIN() { return 1; }
12479#endif
12480int
12481main ()
12482{
12483static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= 0)@:>@;
12484test_array @<:@0@:>@ = 0
12485
12486  ;
12487  return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
12491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492  (eval $ac_compile) 2>&5
12493  ac_status=$?
12494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); } &&
12496         { ac_try='test -s conftest.$ac_objext'
12497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498  (eval $ac_try) 2>&5
12499  ac_status=$?
12500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501  (exit $ac_status); }; }; then
12502  ac_lo=0 ac_mid=0
12503  while :; do
12504    cat >conftest.$ac_ext <<_ACEOF
12505#line $LINENO "configure"
12506#include "confdefs.h"
12507$ac_includes_default
12508#ifdef F77_DUMMY_MAIN
12509#  ifdef __cplusplus
12510     extern "C"
12511#  endif
12512   int F77_DUMMY_MAIN() { return 1; }
12513#endif
12514int
12515main ()
12516{
12517static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
12518test_array @<:@0@:>@ = 0
12519
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext
12525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526  (eval $ac_compile) 2>&5
12527  ac_status=$?
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); } &&
12530         { ac_try='test -s conftest.$ac_objext'
12531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532  (eval $ac_try) 2>&5
12533  ac_status=$?
12534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535  (exit $ac_status); }; }; then
12536  ac_hi=$ac_mid; break
12537else
12538  echo "$as_me: failed program was:" >&5
12539cat conftest.$ac_ext >&5
12540ac_lo=`expr $ac_mid + 1`
12541                    if test $ac_lo -le $ac_mid; then
12542                      ac_lo= ac_hi=
12543                      break
12544                    fi
12545                    ac_mid=`expr 2 '*' $ac_mid + 1`
12546fi
12547rm -f conftest.$ac_objext conftest.$ac_ext
12548  done
12549else
12550  echo "$as_me: failed program was:" >&5
12551cat conftest.$ac_ext >&5
12552cat >conftest.$ac_ext <<_ACEOF
12553#line $LINENO "configure"
12554#include "confdefs.h"
12555$ac_includes_default
12556#ifdef F77_DUMMY_MAIN
12557#  ifdef __cplusplus
12558     extern "C"
12559#  endif
12560   int F77_DUMMY_MAIN() { return 1; }
12561#endif
12562int
12563main ()
12564{
12565static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) < 0)@:>@;
12566test_array @<:@0@:>@ = 0
12567
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext
12573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574  (eval $ac_compile) 2>&5
12575  ac_status=$?
12576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577  (exit $ac_status); } &&
12578         { ac_try='test -s conftest.$ac_objext'
12579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580  (eval $ac_try) 2>&5
12581  ac_status=$?
12582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583  (exit $ac_status); }; }; then
12584  ac_hi=-1 ac_mid=-1
12585  while :; do
12586    cat >conftest.$ac_ext <<_ACEOF
12587#line $LINENO "configure"
12588#include "confdefs.h"
12589$ac_includes_default
12590#ifdef F77_DUMMY_MAIN
12591#  ifdef __cplusplus
12592     extern "C"
12593#  endif
12594   int F77_DUMMY_MAIN() { return 1; }
12595#endif
12596int
12597main ()
12598{
12599static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)@:>@;
12600test_array @<:@0@:>@ = 0
12601
12602  ;
12603  return 0;
12604}
12605_ACEOF
12606rm -f conftest.$ac_objext
12607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608  (eval $ac_compile) 2>&5
12609  ac_status=$?
12610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); } &&
12612         { ac_try='test -s conftest.$ac_objext'
12613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614  (eval $ac_try) 2>&5
12615  ac_status=$?
12616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617  (exit $ac_status); }; }; then
12618  ac_lo=$ac_mid; break
12619else
12620  echo "$as_me: failed program was:" >&5
12621cat conftest.$ac_ext >&5
12622ac_hi=`expr '(' $ac_mid ')' - 1`
12623                       if test $ac_mid -le $ac_hi; then
12624                         ac_lo= ac_hi=
12625                         break
12626                       fi
12627                       ac_mid=`expr 2 '*' $ac_mid`
12628fi
12629rm -f conftest.$ac_objext conftest.$ac_ext
12630  done
12631else
12632  echo "$as_me: failed program was:" >&5
12633cat conftest.$ac_ext >&5
12634ac_lo= ac_hi=
12635fi
12636rm -f conftest.$ac_objext conftest.$ac_ext
12637fi
12638rm -f conftest.$ac_objext conftest.$ac_ext
12639# Binary search between lo and hi bounds.
12640while test "x$ac_lo" != "x$ac_hi"; do
12641  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12642  cat >conftest.$ac_ext <<_ACEOF
12643#line $LINENO "configure"
12644#include "confdefs.h"
12645$ac_includes_default
12646#ifdef F77_DUMMY_MAIN
12647#  ifdef __cplusplus
12648     extern "C"
12649#  endif
12650   int F77_DUMMY_MAIN() { return 1; }
12651#endif
12652int
12653main ()
12654{
12655static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
12656test_array @<:@0@:>@ = 0
12657
12658  ;
12659  return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
12663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664  (eval $ac_compile) 2>&5
12665  ac_status=$?
12666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667  (exit $ac_status); } &&
12668         { ac_try='test -s conftest.$ac_objext'
12669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670  (eval $ac_try) 2>&5
12671  ac_status=$?
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); }; }; then
12674  ac_hi=$ac_mid
12675else
12676  echo "$as_me: failed program was:" >&5
12677cat conftest.$ac_ext >&5
12678ac_lo=`expr '(' $ac_mid ')' + 1`
12679fi
12680rm -f conftest.$ac_objext conftest.$ac_ext
12681done
12682case $ac_lo in
12683?*) ac_cv_sizeof_long=$ac_lo;;
12684'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
12685echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
12686   { (exit 1); exit 1; }; } ;;
12687esac
12688else
12689  if test "$cross_compiling" = yes; then
12690  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12691echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12692   { (exit 1); exit 1; }; }
12693else
12694  cat >conftest.$ac_ext <<_ACEOF
12695#line $LINENO "configure"
12696#include "confdefs.h"
12697$ac_includes_default
12698long longval () { return (long) (sizeof (long)); }
12699unsigned long ulongval () { return (long) (sizeof (long)); }
12700@%:@include <stdio.h>
12701@%:@include <stdlib.h>
12702#ifdef F77_DUMMY_MAIN
12703#  ifdef __cplusplus
12704     extern "C"
12705#  endif
12706   int F77_DUMMY_MAIN() { return 1; }
12707#endif
12708int
12709main ()
12710{
12711
12712  FILE *f = fopen ("conftest.val", "w");
12713  if (! f)
12714    exit (1);
12715  if (((long) (sizeof (long))) < 0)
12716    {
12717      long i = longval ();
12718      if (i != ((long) (sizeof (long))))
12719	exit (1);
12720      fprintf (f, "%ld\n", i);
12721    }
12722  else
12723    {
12724      unsigned long i = ulongval ();
12725      if (i != ((long) (sizeof (long))))
12726	exit (1);
12727      fprintf (f, "%lu\n", i);
12728    }
12729  exit (ferror (f) || fclose (f) != 0);
12730
12731  ;
12732  return 0;
12733}
12734_ACEOF
12735rm -f conftest$ac_exeext
12736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737  (eval $ac_link) 2>&5
12738  ac_status=$?
12739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742  (eval $ac_try) 2>&5
12743  ac_status=$?
12744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745  (exit $ac_status); }; }; then
12746  ac_cv_sizeof_long=`cat conftest.val`
12747else
12748  echo "$as_me: program exited with status $ac_status" >&5
12749echo "$as_me: failed program was:" >&5
12750cat conftest.$ac_ext >&5
12751( exit $ac_status )
12752{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
12753echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
12754   { (exit 1); exit 1; }; }
12755fi
12756rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12757fi
12758fi
12759rm -f conftest.val
12760else
12761  ac_cv_sizeof_long=0
12762fi
12763fi
12764echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12765echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12766cat >>confdefs.h <<_ACEOF
12767@%:@define SIZEOF_LONG $ac_cv_sizeof_long
12768_ACEOF
12769
12770
12771echo "$as_me:$LINENO: checking for size_t" >&5
12772echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12773if test "${ac_cv_type_size_t+set}" = set; then
12774  echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776  cat >conftest.$ac_ext <<_ACEOF
12777#line $LINENO "configure"
12778#include "confdefs.h"
12779$ac_includes_default
12780#ifdef F77_DUMMY_MAIN
12781#  ifdef __cplusplus
12782     extern "C"
12783#  endif
12784   int F77_DUMMY_MAIN() { return 1; }
12785#endif
12786int
12787main ()
12788{
12789if ((size_t *) 0)
12790  return 0;
12791if (sizeof (size_t))
12792  return 0;
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
12798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799  (eval $ac_compile) 2>&5
12800  ac_status=$?
12801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802  (exit $ac_status); } &&
12803         { ac_try='test -s conftest.$ac_objext'
12804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805  (eval $ac_try) 2>&5
12806  ac_status=$?
12807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808  (exit $ac_status); }; }; then
12809  ac_cv_type_size_t=yes
12810else
12811  echo "$as_me: failed program was:" >&5
12812cat conftest.$ac_ext >&5
12813ac_cv_type_size_t=no
12814fi
12815rm -f conftest.$ac_objext conftest.$ac_ext
12816fi
12817echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12818echo "${ECHO_T}$ac_cv_type_size_t" >&6
12819
12820echo "$as_me:$LINENO: checking size of size_t" >&5
12821echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
12822if test "${ac_cv_sizeof_size_t+set}" = set; then
12823  echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825  if test "$ac_cv_type_size_t" = yes; then
12826  # The cast to unsigned long works around a bug in the HP C Compiler
12827  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12828  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12829  # This bug is HP SR number 8606223364.
12830  if test "$cross_compiling" = yes; then
12831  # Depending upon the size, compute the lo and hi bounds.
12832cat >conftest.$ac_ext <<_ACEOF
12833#line $LINENO "configure"
12834#include "confdefs.h"
12835$ac_includes_default
12836#ifdef F77_DUMMY_MAIN
12837#  ifdef __cplusplus
12838     extern "C"
12839#  endif
12840   int F77_DUMMY_MAIN() { return 1; }
12841#endif
12842int
12843main ()
12844{
12845static int test_array @<:@1 - 2 * !(((long) (sizeof (size_t))) >= 0)@:>@;
12846test_array @<:@0@:>@ = 0
12847
12848  ;
12849  return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext
12853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12854  (eval $ac_compile) 2>&5
12855  ac_status=$?
12856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857  (exit $ac_status); } &&
12858         { ac_try='test -s conftest.$ac_objext'
12859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860  (eval $ac_try) 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }; }; then
12864  ac_lo=0 ac_mid=0
12865  while :; do
12866    cat >conftest.$ac_ext <<_ACEOF
12867#line $LINENO "configure"
12868#include "confdefs.h"
12869$ac_includes_default
12870#ifdef F77_DUMMY_MAIN
12871#  ifdef __cplusplus
12872     extern "C"
12873#  endif
12874   int F77_DUMMY_MAIN() { return 1; }
12875#endif
12876int
12877main ()
12878{
12879static int test_array @<:@1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)@:>@;
12880test_array @<:@0@:>@ = 0
12881
12882  ;
12883  return 0;
12884}
12885_ACEOF
12886rm -f conftest.$ac_objext
12887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888  (eval $ac_compile) 2>&5
12889  ac_status=$?
12890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891  (exit $ac_status); } &&
12892         { ac_try='test -s conftest.$ac_objext'
12893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894  (eval $ac_try) 2>&5
12895  ac_status=$?
12896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897  (exit $ac_status); }; }; then
12898  ac_hi=$ac_mid; break
12899else
12900  echo "$as_me: failed program was:" >&5
12901cat conftest.$ac_ext >&5
12902ac_lo=`expr $ac_mid + 1`
12903                    if test $ac_lo -le $ac_mid; then
12904                      ac_lo= ac_hi=
12905                      break
12906                    fi
12907                    ac_mid=`expr 2 '*' $ac_mid + 1`
12908fi
12909rm -f conftest.$ac_objext conftest.$ac_ext
12910  done
12911else
12912  echo "$as_me: failed program was:" >&5
12913cat conftest.$ac_ext >&5
12914cat >conftest.$ac_ext <<_ACEOF
12915#line $LINENO "configure"
12916#include "confdefs.h"
12917$ac_includes_default
12918#ifdef F77_DUMMY_MAIN
12919#  ifdef __cplusplus
12920     extern "C"
12921#  endif
12922   int F77_DUMMY_MAIN() { return 1; }
12923#endif
12924int
12925main ()
12926{
12927static int test_array @<:@1 - 2 * !(((long) (sizeof (size_t))) < 0)@:>@;
12928test_array @<:@0@:>@ = 0
12929
12930  ;
12931  return 0;
12932}
12933_ACEOF
12934rm -f conftest.$ac_objext
12935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936  (eval $ac_compile) 2>&5
12937  ac_status=$?
12938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939  (exit $ac_status); } &&
12940         { ac_try='test -s conftest.$ac_objext'
12941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942  (eval $ac_try) 2>&5
12943  ac_status=$?
12944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945  (exit $ac_status); }; }; then
12946  ac_hi=-1 ac_mid=-1
12947  while :; do
12948    cat >conftest.$ac_ext <<_ACEOF
12949#line $LINENO "configure"
12950#include "confdefs.h"
12951$ac_includes_default
12952#ifdef F77_DUMMY_MAIN
12953#  ifdef __cplusplus
12954     extern "C"
12955#  endif
12956   int F77_DUMMY_MAIN() { return 1; }
12957#endif
12958int
12959main ()
12960{
12961static int test_array @<:@1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)@:>@;
12962test_array @<:@0@:>@ = 0
12963
12964  ;
12965  return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970  (eval $ac_compile) 2>&5
12971  ac_status=$?
12972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973  (exit $ac_status); } &&
12974         { ac_try='test -s conftest.$ac_objext'
12975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976  (eval $ac_try) 2>&5
12977  ac_status=$?
12978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979  (exit $ac_status); }; }; then
12980  ac_lo=$ac_mid; break
12981else
12982  echo "$as_me: failed program was:" >&5
12983cat conftest.$ac_ext >&5
12984ac_hi=`expr '(' $ac_mid ')' - 1`
12985                       if test $ac_mid -le $ac_hi; then
12986                         ac_lo= ac_hi=
12987                         break
12988                       fi
12989                       ac_mid=`expr 2 '*' $ac_mid`
12990fi
12991rm -f conftest.$ac_objext conftest.$ac_ext
12992  done
12993else
12994  echo "$as_me: failed program was:" >&5
12995cat conftest.$ac_ext >&5
12996ac_lo= ac_hi=
12997fi
12998rm -f conftest.$ac_objext conftest.$ac_ext
12999fi
13000rm -f conftest.$ac_objext conftest.$ac_ext
13001# Binary search between lo and hi bounds.
13002while test "x$ac_lo" != "x$ac_hi"; do
13003  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13004  cat >conftest.$ac_ext <<_ACEOF
13005#line $LINENO "configure"
13006#include "confdefs.h"
13007$ac_includes_default
13008#ifdef F77_DUMMY_MAIN
13009#  ifdef __cplusplus
13010     extern "C"
13011#  endif
13012   int F77_DUMMY_MAIN() { return 1; }
13013#endif
13014int
13015main ()
13016{
13017static int test_array @<:@1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)@:>@;
13018test_array @<:@0@:>@ = 0
13019
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024rm -f conftest.$ac_objext
13025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026  (eval $ac_compile) 2>&5
13027  ac_status=$?
13028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029  (exit $ac_status); } &&
13030         { ac_try='test -s conftest.$ac_objext'
13031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032  (eval $ac_try) 2>&5
13033  ac_status=$?
13034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035  (exit $ac_status); }; }; then
13036  ac_hi=$ac_mid
13037else
13038  echo "$as_me: failed program was:" >&5
13039cat conftest.$ac_ext >&5
13040ac_lo=`expr '(' $ac_mid ')' + 1`
13041fi
13042rm -f conftest.$ac_objext conftest.$ac_ext
13043done
13044case $ac_lo in
13045?*) ac_cv_sizeof_size_t=$ac_lo;;
13046'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
13047echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
13048   { (exit 1); exit 1; }; } ;;
13049esac
13050else
13051  if test "$cross_compiling" = yes; then
13052  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13053echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13054   { (exit 1); exit 1; }; }
13055else
13056  cat >conftest.$ac_ext <<_ACEOF
13057#line $LINENO "configure"
13058#include "confdefs.h"
13059$ac_includes_default
13060long longval () { return (long) (sizeof (size_t)); }
13061unsigned long ulongval () { return (long) (sizeof (size_t)); }
13062@%:@include <stdio.h>
13063@%:@include <stdlib.h>
13064#ifdef F77_DUMMY_MAIN
13065#  ifdef __cplusplus
13066     extern "C"
13067#  endif
13068   int F77_DUMMY_MAIN() { return 1; }
13069#endif
13070int
13071main ()
13072{
13073
13074  FILE *f = fopen ("conftest.val", "w");
13075  if (! f)
13076    exit (1);
13077  if (((long) (sizeof (size_t))) < 0)
13078    {
13079      long i = longval ();
13080      if (i != ((long) (sizeof (size_t))))
13081	exit (1);
13082      fprintf (f, "%ld\n", i);
13083    }
13084  else
13085    {
13086      unsigned long i = ulongval ();
13087      if (i != ((long) (sizeof (size_t))))
13088	exit (1);
13089      fprintf (f, "%lu\n", i);
13090    }
13091  exit (ferror (f) || fclose (f) != 0);
13092
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097rm -f conftest$ac_exeext
13098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13099  (eval $ac_link) 2>&5
13100  ac_status=$?
13101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104  (eval $ac_try) 2>&5
13105  ac_status=$?
13106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107  (exit $ac_status); }; }; then
13108  ac_cv_sizeof_size_t=`cat conftest.val`
13109else
13110  echo "$as_me: program exited with status $ac_status" >&5
13111echo "$as_me: failed program was:" >&5
13112cat conftest.$ac_ext >&5
13113( exit $ac_status )
13114{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
13115echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
13116   { (exit 1); exit 1; }; }
13117fi
13118rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13119fi
13120fi
13121rm -f conftest.val
13122else
13123  ac_cv_sizeof_size_t=0
13124fi
13125fi
13126echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13127echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
13128cat >>confdefs.h <<_ACEOF
13129@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13130_ACEOF
13131
13132
13133echo "$as_me:$LINENO: checking for void*" >&5
13134echo $ECHO_N "checking for void*... $ECHO_C" >&6
13135if test "${ac_cv_type_voidp+set}" = set; then
13136  echo $ECHO_N "(cached) $ECHO_C" >&6
13137else
13138  cat >conftest.$ac_ext <<_ACEOF
13139#line $LINENO "configure"
13140#include "confdefs.h"
13141$ac_includes_default
13142#ifdef F77_DUMMY_MAIN
13143#  ifdef __cplusplus
13144     extern "C"
13145#  endif
13146   int F77_DUMMY_MAIN() { return 1; }
13147#endif
13148int
13149main ()
13150{
13151if ((void* *) 0)
13152  return 0;
13153if (sizeof (void*))
13154  return 0;
13155  ;
13156  return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext
13160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161  (eval $ac_compile) 2>&5
13162  ac_status=$?
13163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164  (exit $ac_status); } &&
13165         { ac_try='test -s conftest.$ac_objext'
13166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167  (eval $ac_try) 2>&5
13168  ac_status=$?
13169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170  (exit $ac_status); }; }; then
13171  ac_cv_type_voidp=yes
13172else
13173  echo "$as_me: failed program was:" >&5
13174cat conftest.$ac_ext >&5
13175ac_cv_type_voidp=no
13176fi
13177rm -f conftest.$ac_objext conftest.$ac_ext
13178fi
13179echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
13180echo "${ECHO_T}$ac_cv_type_voidp" >&6
13181
13182echo "$as_me:$LINENO: checking size of void*" >&5
13183echo $ECHO_N "checking size of void*... $ECHO_C" >&6
13184if test "${ac_cv_sizeof_voidp+set}" = set; then
13185  echo $ECHO_N "(cached) $ECHO_C" >&6
13186else
13187  if test "$ac_cv_type_voidp" = yes; then
13188  # The cast to unsigned long works around a bug in the HP C Compiler
13189  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13190  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13191  # This bug is HP SR number 8606223364.
13192  if test "$cross_compiling" = yes; then
13193  # Depending upon the size, compute the lo and hi bounds.
13194cat >conftest.$ac_ext <<_ACEOF
13195#line $LINENO "configure"
13196#include "confdefs.h"
13197$ac_includes_default
13198#ifdef F77_DUMMY_MAIN
13199#  ifdef __cplusplus
13200     extern "C"
13201#  endif
13202   int F77_DUMMY_MAIN() { return 1; }
13203#endif
13204int
13205main ()
13206{
13207static int test_array @<:@1 - 2 * !(((long) (sizeof (void*))) >= 0)@:>@;
13208test_array @<:@0@:>@ = 0
13209
13210  ;
13211  return 0;
13212}
13213_ACEOF
13214rm -f conftest.$ac_objext
13215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216  (eval $ac_compile) 2>&5
13217  ac_status=$?
13218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219  (exit $ac_status); } &&
13220         { ac_try='test -s conftest.$ac_objext'
13221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222  (eval $ac_try) 2>&5
13223  ac_status=$?
13224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225  (exit $ac_status); }; }; then
13226  ac_lo=0 ac_mid=0
13227  while :; do
13228    cat >conftest.$ac_ext <<_ACEOF
13229#line $LINENO "configure"
13230#include "confdefs.h"
13231$ac_includes_default
13232#ifdef F77_DUMMY_MAIN
13233#  ifdef __cplusplus
13234     extern "C"
13235#  endif
13236   int F77_DUMMY_MAIN() { return 1; }
13237#endif
13238int
13239main ()
13240{
13241static int test_array @<:@1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)@:>@;
13242test_array @<:@0@:>@ = 0
13243
13244  ;
13245  return 0;
13246}
13247_ACEOF
13248rm -f conftest.$ac_objext
13249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250  (eval $ac_compile) 2>&5
13251  ac_status=$?
13252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253  (exit $ac_status); } &&
13254         { ac_try='test -s conftest.$ac_objext'
13255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256  (eval $ac_try) 2>&5
13257  ac_status=$?
13258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259  (exit $ac_status); }; }; then
13260  ac_hi=$ac_mid; break
13261else
13262  echo "$as_me: failed program was:" >&5
13263cat conftest.$ac_ext >&5
13264ac_lo=`expr $ac_mid + 1`
13265                    if test $ac_lo -le $ac_mid; then
13266                      ac_lo= ac_hi=
13267                      break
13268                    fi
13269                    ac_mid=`expr 2 '*' $ac_mid + 1`
13270fi
13271rm -f conftest.$ac_objext conftest.$ac_ext
13272  done
13273else
13274  echo "$as_me: failed program was:" >&5
13275cat conftest.$ac_ext >&5
13276cat >conftest.$ac_ext <<_ACEOF
13277#line $LINENO "configure"
13278#include "confdefs.h"
13279$ac_includes_default
13280#ifdef F77_DUMMY_MAIN
13281#  ifdef __cplusplus
13282     extern "C"
13283#  endif
13284   int F77_DUMMY_MAIN() { return 1; }
13285#endif
13286int
13287main ()
13288{
13289static int test_array @<:@1 - 2 * !(((long) (sizeof (void*))) < 0)@:>@;
13290test_array @<:@0@:>@ = 0
13291
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext
13297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298  (eval $ac_compile) 2>&5
13299  ac_status=$?
13300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301  (exit $ac_status); } &&
13302         { ac_try='test -s conftest.$ac_objext'
13303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304  (eval $ac_try) 2>&5
13305  ac_status=$?
13306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307  (exit $ac_status); }; }; then
13308  ac_hi=-1 ac_mid=-1
13309  while :; do
13310    cat >conftest.$ac_ext <<_ACEOF
13311#line $LINENO "configure"
13312#include "confdefs.h"
13313$ac_includes_default
13314#ifdef F77_DUMMY_MAIN
13315#  ifdef __cplusplus
13316     extern "C"
13317#  endif
13318   int F77_DUMMY_MAIN() { return 1; }
13319#endif
13320int
13321main ()
13322{
13323static int test_array @<:@1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)@:>@;
13324test_array @<:@0@:>@ = 0
13325
13326  ;
13327  return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332  (eval $ac_compile) 2>&5
13333  ac_status=$?
13334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335  (exit $ac_status); } &&
13336         { ac_try='test -s conftest.$ac_objext'
13337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338  (eval $ac_try) 2>&5
13339  ac_status=$?
13340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341  (exit $ac_status); }; }; then
13342  ac_lo=$ac_mid; break
13343else
13344  echo "$as_me: failed program was:" >&5
13345cat conftest.$ac_ext >&5
13346ac_hi=`expr '(' $ac_mid ')' - 1`
13347                       if test $ac_mid -le $ac_hi; then
13348                         ac_lo= ac_hi=
13349                         break
13350                       fi
13351                       ac_mid=`expr 2 '*' $ac_mid`
13352fi
13353rm -f conftest.$ac_objext conftest.$ac_ext
13354  done
13355else
13356  echo "$as_me: failed program was:" >&5
13357cat conftest.$ac_ext >&5
13358ac_lo= ac_hi=
13359fi
13360rm -f conftest.$ac_objext conftest.$ac_ext
13361fi
13362rm -f conftest.$ac_objext conftest.$ac_ext
13363# Binary search between lo and hi bounds.
13364while test "x$ac_lo" != "x$ac_hi"; do
13365  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13366  cat >conftest.$ac_ext <<_ACEOF
13367#line $LINENO "configure"
13368#include "confdefs.h"
13369$ac_includes_default
13370#ifdef F77_DUMMY_MAIN
13371#  ifdef __cplusplus
13372     extern "C"
13373#  endif
13374   int F77_DUMMY_MAIN() { return 1; }
13375#endif
13376int
13377main ()
13378{
13379static int test_array @<:@1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)@:>@;
13380test_array @<:@0@:>@ = 0
13381
13382  ;
13383  return 0;
13384}
13385_ACEOF
13386rm -f conftest.$ac_objext
13387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388  (eval $ac_compile) 2>&5
13389  ac_status=$?
13390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391  (exit $ac_status); } &&
13392         { ac_try='test -s conftest.$ac_objext'
13393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394  (eval $ac_try) 2>&5
13395  ac_status=$?
13396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397  (exit $ac_status); }; }; then
13398  ac_hi=$ac_mid
13399else
13400  echo "$as_me: failed program was:" >&5
13401cat conftest.$ac_ext >&5
13402ac_lo=`expr '(' $ac_mid ')' + 1`
13403fi
13404rm -f conftest.$ac_objext conftest.$ac_ext
13405done
13406case $ac_lo in
13407?*) ac_cv_sizeof_voidp=$ac_lo;;
13408'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77" >&5
13409echo "$as_me: error: cannot compute sizeof (void*), 77" >&2;}
13410   { (exit 1); exit 1; }; } ;;
13411esac
13412else
13413  if test "$cross_compiling" = yes; then
13414  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13415echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13416   { (exit 1); exit 1; }; }
13417else
13418  cat >conftest.$ac_ext <<_ACEOF
13419#line $LINENO "configure"
13420#include "confdefs.h"
13421$ac_includes_default
13422long longval () { return (long) (sizeof (void*)); }
13423unsigned long ulongval () { return (long) (sizeof (void*)); }
13424@%:@include <stdio.h>
13425@%:@include <stdlib.h>
13426#ifdef F77_DUMMY_MAIN
13427#  ifdef __cplusplus
13428     extern "C"
13429#  endif
13430   int F77_DUMMY_MAIN() { return 1; }
13431#endif
13432int
13433main ()
13434{
13435
13436  FILE *f = fopen ("conftest.val", "w");
13437  if (! f)
13438    exit (1);
13439  if (((long) (sizeof (void*))) < 0)
13440    {
13441      long i = longval ();
13442      if (i != ((long) (sizeof (void*))))
13443	exit (1);
13444      fprintf (f, "%ld\n", i);
13445    }
13446  else
13447    {
13448      unsigned long i = ulongval ();
13449      if (i != ((long) (sizeof (void*))))
13450	exit (1);
13451      fprintf (f, "%lu\n", i);
13452    }
13453  exit (ferror (f) || fclose (f) != 0);
13454
13455  ;
13456  return 0;
13457}
13458_ACEOF
13459rm -f conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461  (eval $ac_link) 2>&5
13462  ac_status=$?
13463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466  (eval $ac_try) 2>&5
13467  ac_status=$?
13468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469  (exit $ac_status); }; }; then
13470  ac_cv_sizeof_voidp=`cat conftest.val`
13471else
13472  echo "$as_me: program exited with status $ac_status" >&5
13473echo "$as_me: failed program was:" >&5
13474cat conftest.$ac_ext >&5
13475( exit $ac_status )
13476{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77" >&5
13477echo "$as_me: error: cannot compute sizeof (void*), 77" >&2;}
13478   { (exit 1); exit 1; }; }
13479fi
13480rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13481fi
13482fi
13483rm -f conftest.val
13484else
13485  ac_cv_sizeof_voidp=0
13486fi
13487fi
13488echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
13489echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
13490cat >>confdefs.h <<_ACEOF
13491@%:@define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13492_ACEOF
13493
13494
13495SIZEOF_INT=$ac_cv_sizeof_int
13496SIZEOF_SHORT=$ac_cv_sizeof_int
13497
13498echo "$as_me:$LINENO: checking for 32-bit int" >&5
13499echo $ECHO_N "checking for 32-bit int... $ECHO_C" >&6
13500if test "${SIZEOF_INT}" = 4; then
13501    INT32_TYPE=int
13502elif test "${SIZEOF_SHORT}" = 4; then
13503    INT32_TYPE=short
13504else
13505    { { echo "$as_me:$LINENO: error: neither int (${SIZEOF_INT}) nor short (${SIZEOF_SHORT}) have sizeof 4!" >&5
13506echo "$as_me: error: neither int (${SIZEOF_INT}) nor short (${SIZEOF_SHORT}) have sizeof 4!" >&2;}
13507   { (exit 1); exit 1; }; }
13508fi
13509
13510cat >>confdefs.h <<_ACEOF
13511@%:@define INT32_TYPE ${INT32_TYPE}
13512_ACEOF
13513
13514echo "$as_me:$LINENO: result: $INT32_TYPE" >&5
13515echo "${ECHO_T}$INT32_TYPE" >&6
13516
13517
13518#
13519# cycles
13520#
13521# comment out if autoconf less then 2.53
13522
13523echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13524echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13525if test "${ac_cv_prog_cc_stdc+set}" = set; then
13526  echo $ECHO_N "(cached) $ECHO_C" >&6
13527else
13528  ac_cv_prog_cc_stdc=no
13529ac_save_CC=$CC
13530cat >conftest.$ac_ext <<_ACEOF
13531#line $LINENO "configure"
13532#include "confdefs.h"
13533#include <stdarg.h>
13534#include <stdio.h>
13535#include <sys/types.h>
13536#include <sys/stat.h>
13537/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13538struct buf { int x; };
13539FILE * (*rcsopen) (struct buf *, struct stat *, int);
13540static char *e (p, i)
13541     char **p;
13542     int i;
13543{
13544  return p[i];
13545}
13546static char *f (char * (*g) (char **, int), char **p, ...)
13547{
13548  char *s;
13549  va_list v;
13550  va_start (v,p);
13551  s = g (p, va_arg (v,int));
13552  va_end (v);
13553  return s;
13554}
13555int test (int i, double x);
13556struct s1 {int (*f) (int a);};
13557struct s2 {int (*f) (double a);};
13558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13559int argc;
13560char **argv;
13561#ifdef F77_DUMMY_MAIN
13562#  ifdef __cplusplus
13563     extern "C"
13564#  endif
13565   int F77_DUMMY_MAIN() { return 1; }
13566#endif
13567int
13568main ()
13569{
13570return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575# Don't try gcc -ansi; that turns off useful extensions and
13576# breaks some systems' header files.
13577# AIX			-qlanglvl=ansi
13578# Ultrix and OSF/1	-std1
13579# HP-UX 10.20 and later	-Ae
13580# HP-UX older versions	-Aa -D_HPUX_SOURCE
13581# SVR4			-Xc -D__EXTENSIONS__
13582for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13583do
13584  CC="$ac_save_CC $ac_arg"
13585  rm -f conftest.$ac_objext
13586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587  (eval $ac_compile) 2>&5
13588  ac_status=$?
13589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590  (exit $ac_status); } &&
13591         { ac_try='test -s conftest.$ac_objext'
13592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593  (eval $ac_try) 2>&5
13594  ac_status=$?
13595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596  (exit $ac_status); }; }; then
13597  ac_cv_prog_cc_stdc=$ac_arg
13598break
13599else
13600  echo "$as_me: failed program was:" >&5
13601cat conftest.$ac_ext >&5
13602fi
13603rm -f conftest.$ac_objext
13604done
13605rm -f conftest.$ac_ext conftest.$ac_objext
13606CC=$ac_save_CC
13607
13608fi
13609
13610case "x$ac_cv_prog_cc_stdc" in
13611  x|xno)
13612    echo "$as_me:$LINENO: result: none needed" >&5
13613echo "${ECHO_T}none needed" >&6 ;;
13614  *)
13615    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13616echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13617    CC="$CC $ac_cv_prog_cc_stdc" ;;
13618esac
13619
13620echo "$as_me:$LINENO: checking for inline" >&5
13621echo $ECHO_N "checking for inline... $ECHO_C" >&6
13622if test "${ac_cv_c_inline+set}" = set; then
13623  echo $ECHO_N "(cached) $ECHO_C" >&6
13624else
13625  ac_cv_c_inline=no
13626for ac_kw in inline __inline__ __inline; do
13627  cat >conftest.$ac_ext <<_ACEOF
13628#line $LINENO "configure"
13629#include "confdefs.h"
13630#ifndef __cplusplus
13631static $ac_kw int static_foo () {return 0; }
13632$ac_kw int foo () {return 0; }
13633#endif
13634
13635_ACEOF
13636rm -f conftest.$ac_objext
13637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638  (eval $ac_compile) 2>&5
13639  ac_status=$?
13640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641  (exit $ac_status); } &&
13642         { ac_try='test -s conftest.$ac_objext'
13643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644  (eval $ac_try) 2>&5
13645  ac_status=$?
13646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647  (exit $ac_status); }; }; then
13648  ac_cv_c_inline=$ac_kw; break
13649else
13650  echo "$as_me: failed program was:" >&5
13651cat conftest.$ac_ext >&5
13652fi
13653rm -f conftest.$ac_objext conftest.$ac_ext
13654done
13655
13656fi
13657echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13658echo "${ECHO_T}$ac_cv_c_inline" >&6
13659case $ac_cv_c_inline in
13660  inline | yes) ;;
13661  no)
13662cat >>confdefs.h <<\_ACEOF
13663@%:@define inline
13664_ACEOF
13665 ;;
13666  *)  cat >>confdefs.h <<_ACEOF
13667@%:@define inline $ac_cv_c_inline
13668_ACEOF
13669 ;;
13670esac
13671
13672echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13673echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13674if test "${ac_cv_header_time+set}" = set; then
13675  echo $ECHO_N "(cached) $ECHO_C" >&6
13676else
13677  cat >conftest.$ac_ext <<_ACEOF
13678#line $LINENO "configure"
13679#include "confdefs.h"
13680#include <sys/types.h>
13681#include <sys/time.h>
13682#include <time.h>
13683
13684#ifdef F77_DUMMY_MAIN
13685#  ifdef __cplusplus
13686     extern "C"
13687#  endif
13688   int F77_DUMMY_MAIN() { return 1; }
13689#endif
13690int
13691main ()
13692{
13693if ((struct tm *) 0)
13694return 0;
13695  ;
13696  return 0;
13697}
13698_ACEOF
13699rm -f conftest.$ac_objext
13700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701  (eval $ac_compile) 2>&5
13702  ac_status=$?
13703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704  (exit $ac_status); } &&
13705         { ac_try='test -s conftest.$ac_objext'
13706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707  (eval $ac_try) 2>&5
13708  ac_status=$?
13709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710  (exit $ac_status); }; }; then
13711  ac_cv_header_time=yes
13712else
13713  echo "$as_me: failed program was:" >&5
13714cat conftest.$ac_ext >&5
13715ac_cv_header_time=no
13716fi
13717rm -f conftest.$ac_objext conftest.$ac_ext
13718fi
13719echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13720echo "${ECHO_T}$ac_cv_header_time" >&6
13721if test $ac_cv_header_time = yes; then
13722
13723cat >>confdefs.h <<\_ACEOF
13724@%:@define TIME_WITH_SYS_TIME 1
13725_ACEOF
13726
13727fi
13728
13729
13730
13731
13732for ac_header in sys/time.h c_asm.h intrinsics.h
13733do
13734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13735if eval "test \"\${$as_ac_Header+set}\" = set"; then
13736  echo "$as_me:$LINENO: checking for $ac_header" >&5
13737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13738if eval "test \"\${$as_ac_Header+set}\" = set"; then
13739  echo $ECHO_N "(cached) $ECHO_C" >&6
13740fi
13741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13743else
13744  # Is the header compilable?
13745echo "$as_me:$LINENO: checking $ac_header usability" >&5
13746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13747cat >conftest.$ac_ext <<_ACEOF
13748#line $LINENO "configure"
13749#include "confdefs.h"
13750$ac_includes_default
13751@%:@include <$ac_header>
13752_ACEOF
13753rm -f conftest.$ac_objext
13754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755  (eval $ac_compile) 2>&5
13756  ac_status=$?
13757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758  (exit $ac_status); } &&
13759         { ac_try='test -s conftest.$ac_objext'
13760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761  (eval $ac_try) 2>&5
13762  ac_status=$?
13763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764  (exit $ac_status); }; }; then
13765  ac_header_compiler=yes
13766else
13767  echo "$as_me: failed program was:" >&5
13768cat conftest.$ac_ext >&5
13769ac_header_compiler=no
13770fi
13771rm -f conftest.$ac_objext conftest.$ac_ext
13772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773echo "${ECHO_T}$ac_header_compiler" >&6
13774
13775# Is the header present?
13776echo "$as_me:$LINENO: checking $ac_header presence" >&5
13777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13778cat >conftest.$ac_ext <<_ACEOF
13779#line $LINENO "configure"
13780#include "confdefs.h"
13781@%:@include <$ac_header>
13782_ACEOF
13783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13784  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13785  ac_status=$?
13786  egrep -v '^ *\+' conftest.er1 >conftest.err
13787  rm -f conftest.er1
13788  cat conftest.err >&5
13789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790  (exit $ac_status); } >/dev/null; then
13791  if test -s conftest.err; then
13792    ac_cpp_err=$ac_cxx_preproc_warn_flag
13793  else
13794    ac_cpp_err=
13795  fi
13796else
13797  ac_cpp_err=yes
13798fi
13799if test -z "$ac_cpp_err"; then
13800  ac_header_preproc=yes
13801else
13802  echo "$as_me: failed program was:" >&5
13803  cat conftest.$ac_ext >&5
13804  ac_header_preproc=no
13805fi
13806rm -f conftest.err conftest.$ac_ext
13807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808echo "${ECHO_T}$ac_header_preproc" >&6
13809
13810# So?  What about this header?
13811case $ac_header_compiler:$ac_header_preproc in
13812  yes:no )
13813    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13817  no:yes )
13818    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13820    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13824esac
13825echo "$as_me:$LINENO: checking for $ac_header" >&5
13826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13827if eval "test \"\${$as_ac_Header+set}\" = set"; then
13828  echo $ECHO_N "(cached) $ECHO_C" >&6
13829else
13830  eval "$as_ac_Header=$ac_header_preproc"
13831fi
13832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834
13835fi
13836if test `eval echo '${'$as_ac_Header'}'` = yes; then
13837  cat >>confdefs.h <<_ACEOF
13838@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839_ACEOF
13840
13841fi
13842
13843done
13844
13845
13846echo "$as_me:$LINENO: checking for hrtime_t" >&5
13847echo $ECHO_N "checking for hrtime_t... $ECHO_C" >&6
13848if test "${ac_cv_type_hrtime_t+set}" = set; then
13849  echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851  cat >conftest.$ac_ext <<_ACEOF
13852#line $LINENO "configure"
13853#include "confdefs.h"
13854#if HAVE_SYS_TIME_H
13855#include <sys/time.h>
13856#endif
13857
13858#ifdef F77_DUMMY_MAIN
13859#  ifdef __cplusplus
13860     extern "C"
13861#  endif
13862   int F77_DUMMY_MAIN() { return 1; }
13863#endif
13864int
13865main ()
13866{
13867if ((hrtime_t *) 0)
13868  return 0;
13869if (sizeof (hrtime_t))
13870  return 0;
13871  ;
13872  return 0;
13873}
13874_ACEOF
13875rm -f conftest.$ac_objext
13876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877  (eval $ac_compile) 2>&5
13878  ac_status=$?
13879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880  (exit $ac_status); } &&
13881         { ac_try='test -s conftest.$ac_objext'
13882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883  (eval $ac_try) 2>&5
13884  ac_status=$?
13885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886  (exit $ac_status); }; }; then
13887  ac_cv_type_hrtime_t=yes
13888else
13889  echo "$as_me: failed program was:" >&5
13890cat conftest.$ac_ext >&5
13891ac_cv_type_hrtime_t=no
13892fi
13893rm -f conftest.$ac_objext conftest.$ac_ext
13894fi
13895echo "$as_me:$LINENO: result: $ac_cv_type_hrtime_t" >&5
13896echo "${ECHO_T}$ac_cv_type_hrtime_t" >&6
13897if test $ac_cv_type_hrtime_t = yes; then
13898
13899cat >>confdefs.h <<\_ACEOF
13900@%:@define HAVE_HRTIME_T 1
13901_ACEOF
13902
13903fi
13904
13905
13906
13907
13908for ac_func in gethrtime clock_gettime
13909do
13910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13911echo "$as_me:$LINENO: checking for $ac_func" >&5
13912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13913if eval "test \"\${$as_ac_var+set}\" = set"; then
13914  echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916  cat >conftest.$ac_ext <<_ACEOF
13917#line $LINENO "configure"
13918#include "confdefs.h"
13919/* System header to define __stub macros and hopefully few prototypes,
13920    which can conflict with char $ac_func (); below.  */
13921#include <assert.h>
13922/* Override any gcc2 internal prototype to avoid an error.  */
13923#ifdef __cplusplus
13924extern "C"
13925#endif
13926/* We use char because int might match the return type of a gcc2
13927   builtin and then its argument prototype would still apply.  */
13928char $ac_func ();
13929char (*f) ();
13930
13931#ifdef F77_DUMMY_MAIN
13932#  ifdef __cplusplus
13933     extern "C"
13934#  endif
13935   int F77_DUMMY_MAIN() { return 1; }
13936#endif
13937int
13938main ()
13939{
13940/* The GNU C library defines this for functions which it implements
13941    to always fail with ENOSYS.  Some functions are actually named
13942    something starting with __ and the normal name is an alias.  */
13943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944choke me
13945#else
13946f = $ac_func;
13947#endif
13948
13949  ;
13950  return 0;
13951}
13952_ACEOF
13953rm -f conftest.$ac_objext conftest$ac_exeext
13954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955  (eval $ac_link) 2>&5
13956  ac_status=$?
13957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958  (exit $ac_status); } &&
13959         { ac_try='test -s conftest$ac_exeext'
13960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961  (eval $ac_try) 2>&5
13962  ac_status=$?
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); }; }; then
13965  eval "$as_ac_var=yes"
13966else
13967  echo "$as_me: failed program was:" >&5
13968cat conftest.$ac_ext >&5
13969eval "$as_ac_var=no"
13970fi
13971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13972fi
13973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13975if test `eval echo '${'$as_ac_var'}'` = yes; then
13976  cat >>confdefs.h <<_ACEOF
13977@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13978_ACEOF
13979
13980fi
13981done
13982
13983
13984
13985echo "$as_me:$LINENO: checking for read_real_time" >&5
13986echo $ECHO_N "checking for read_real_time... $ECHO_C" >&6
13987read_real_time_ok=yes
13988cat >conftest.$ac_ext <<_ACEOF
13989#line $LINENO "configure"
13990#include "confdefs.h"
13991#if TIME_WITH_SYS_TIME
13992                # include <sys/time.h>
13993                # include <time.h>
13994                #else
13995                # if HAVE_SYS_TIME_H
13996                #  include <sys/time.h>
13997                # else
13998                #  include <time.h>
13999                # endif
14000                #endif
14001
14002#ifdef F77_DUMMY_MAIN
14003#  ifdef __cplusplus
14004     extern "C"
14005#  endif
14006   int F77_DUMMY_MAIN() { return 1; }
14007#endif
14008int
14009main ()
14010{
14011
14012		timebasestruct_t t;
14013	        read_real_time(&t, TIMEBASE_SZ);
14014
14015  ;
14016  return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021  (eval $ac_compile) 2>&5
14022  ac_status=$?
14023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024  (exit $ac_status); } &&
14025         { ac_try='test -s conftest.$ac_objext'
14026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027  (eval $ac_try) 2>&5
14028  ac_status=$?
14029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030  (exit $ac_status); }; }; then
14031
14032cat >>confdefs.h <<\_ACEOF
14033@%:@define HAVE_READ_REAL_TIME 1
14034_ACEOF
14035
14036else
14037  echo "$as_me: failed program was:" >&5
14038cat conftest.$ac_ext >&5
14039read_real_time_ok=no
14040fi
14041rm -f conftest.$ac_objext conftest.$ac_ext
14042echo "$as_me:$LINENO: result: $read_real_time_ok" >&5
14043echo "${ECHO_T}$read_real_time_ok" >&6
14044
14045echo "$as_me:$LINENO: checking for time_base_to_time" >&5
14046echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6
14047time_base_to_time_ok=yes
14048cat >conftest.$ac_ext <<_ACEOF
14049#line $LINENO "configure"
14050#include "confdefs.h"
14051#if TIME_WITH_SYS_TIME
14052                # include <sys/time.h>
14053                # include <time.h>
14054                #else
14055                # if HAVE_SYS_TIME_H
14056                #  include <sys/time.h>
14057                # else
14058                #  include <time.h>
14059                # endif
14060                #endif
14061
14062#ifdef F77_DUMMY_MAIN
14063#  ifdef __cplusplus
14064     extern "C"
14065#  endif
14066   int F77_DUMMY_MAIN() { return 1; }
14067#endif
14068int
14069main ()
14070{
14071
14072		timebasestruct_t t;
14073	        time_base_to_time(&t, TIMEBASE_SZ);
14074
14075  ;
14076  return 0;
14077}
14078_ACEOF
14079rm -f conftest.$ac_objext
14080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081  (eval $ac_compile) 2>&5
14082  ac_status=$?
14083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084  (exit $ac_status); } &&
14085         { ac_try='test -s conftest.$ac_objext'
14086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087  (eval $ac_try) 2>&5
14088  ac_status=$?
14089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090  (exit $ac_status); }; }; then
14091
14092cat >>confdefs.h <<\_ACEOF
14093@%:@define HAVE_TIME_BASE_TO_TIME 1
14094_ACEOF
14095
14096else
14097  echo "$as_me: failed program was:" >&5
14098cat conftest.$ac_ext >&5
14099time_base_to_time_ok=no
14100fi
14101rm -f conftest.$ac_objext conftest.$ac_ext
14102echo "$as_me:$LINENO: result: $time_base_to_time_ok" >&5
14103echo "${ECHO_T}$time_base_to_time_ok" >&6
14104
14105#AC_MSG_CHECKING([for rtc])
14106#rtc_ok=yes
14107#AC_TRY_COMPILE([], [], [AC_DEFINE(HAVE_RTC,1,[Define if you have the rtc().])], [rtc_ok=no])
14108#AC_MSG_RESULT($rtc_ok)
14109
14110
14111
14112echo "$as_me:$LINENO: checking for _rtc intrinsic" >&5
14113echo $ECHO_N "checking for _rtc intrinsic... $ECHO_C" >&6
14114rtc_ok=yes
14115cat >conftest.$ac_ext <<_ACEOF
14116#line $LINENO "configure"
14117#include "confdefs.h"
14118#ifdef HAVE_INTRINSICS_H
14119#include <intrinsics.h>
14120#endif
14121#ifdef F77_DUMMY_MAIN
14122#  ifdef __cplusplus
14123     extern "C"
14124#  endif
14125   int F77_DUMMY_MAIN() { return 1; }
14126#endif
14127int
14128main ()
14129{
14130_rtc()
14131  ;
14132  return 0;
14133}
14134_ACEOF
14135rm -f conftest.$ac_objext conftest$ac_exeext
14136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137  (eval $ac_link) 2>&5
14138  ac_status=$?
14139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140  (exit $ac_status); } &&
14141         { ac_try='test -s conftest$ac_exeext'
14142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143  (eval $ac_try) 2>&5
14144  ac_status=$?
14145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146  (exit $ac_status); }; }; then
14147
14148cat >>confdefs.h <<\_ACEOF
14149@%:@define HAVE__RTC 1
14150_ACEOF
14151
14152else
14153  echo "$as_me: failed program was:" >&5
14154cat conftest.$ac_ext >&5
14155rtc_ok=no
14156fi
14157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14158echo "$as_me:$LINENO: result: $rtc_ok" >&5
14159echo "${ECHO_T}$rtc_ok" >&6
14160
14161
14162#
14163# FFT
14164#
14165#
14166# FFT ZFFT
14167#
14168have_fft_zfft=true
14169FFT_ZFFT_LIBS=""
14170FFT_ZFFT_CFLAGS=""
14171
14172#
14173# FFT SGI
14174#
14175LIBS=$save_libs
14176CFLAGS=$save_cflags
14177CPPFLAGS=$save_cppflags
14178have_fft_sgi=true
14179FFT_SGI_LIBS="-lcomplib.sgimath"
14180FFT_SGI_CFLAGS="-DHAVE_FFT_SGI -DHAVE_FFT"
14181
14182echo "$as_me:$LINENO: checking for zfftm1di in -lcomplib.sgimath" >&5
14183echo $ECHO_N "checking for zfftm1di in -lcomplib.sgimath... $ECHO_C" >&6
14184if test "${ac_cv_lib_complib_sgimath_zfftm1di+set}" = set; then
14185  echo $ECHO_N "(cached) $ECHO_C" >&6
14186else
14187  ac_check_lib_save_LIBS=$LIBS
14188LIBS="-lcomplib.sgimath  $LIBS"
14189cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191#include "confdefs.h"
14192
14193/* Override any gcc2 internal prototype to avoid an error.  */
14194#ifdef __cplusplus
14195extern "C"
14196#endif
14197/* We use char because int might match the return type of a gcc2
14198   builtin and then its argument prototype would still apply.  */
14199char zfftm1di ();
14200#ifdef F77_DUMMY_MAIN
14201#  ifdef __cplusplus
14202     extern "C"
14203#  endif
14204   int F77_DUMMY_MAIN() { return 1; }
14205#endif
14206int
14207main ()
14208{
14209zfftm1di ();
14210  ;
14211  return 0;
14212}
14213_ACEOF
14214rm -f conftest.$ac_objext conftest$ac_exeext
14215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216  (eval $ac_link) 2>&5
14217  ac_status=$?
14218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219  (exit $ac_status); } &&
14220         { ac_try='test -s conftest$ac_exeext'
14221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222  (eval $ac_try) 2>&5
14223  ac_status=$?
14224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225  (exit $ac_status); }; }; then
14226  ac_cv_lib_complib_sgimath_zfftm1di=yes
14227else
14228  echo "$as_me: failed program was:" >&5
14229cat conftest.$ac_ext >&5
14230ac_cv_lib_complib_sgimath_zfftm1di=no
14231fi
14232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14233LIBS=$ac_check_lib_save_LIBS
14234fi
14235echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfftm1di" >&5
14236echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfftm1di" >&6
14237if test $ac_cv_lib_complib_sgimath_zfftm1di = yes; then
14238  cat >>confdefs.h <<_ACEOF
14239@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14240_ACEOF
14241
14242  LIBS="-lcomplib.sgimath $LIBS"
14243
14244else
14245  have_fft_sgi=false
14246fi
14247
14248
14249echo "$as_me:$LINENO: checking for zfftm1d in -lcomplib.sgimath" >&5
14250echo $ECHO_N "checking for zfftm1d in -lcomplib.sgimath... $ECHO_C" >&6
14251if test "${ac_cv_lib_complib_sgimath_zfftm1d+set}" = set; then
14252  echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254  ac_check_lib_save_LIBS=$LIBS
14255LIBS="-lcomplib.sgimath  $LIBS"
14256cat >conftest.$ac_ext <<_ACEOF
14257#line $LINENO "configure"
14258#include "confdefs.h"
14259
14260/* Override any gcc2 internal prototype to avoid an error.  */
14261#ifdef __cplusplus
14262extern "C"
14263#endif
14264/* We use char because int might match the return type of a gcc2
14265   builtin and then its argument prototype would still apply.  */
14266char zfftm1d ();
14267#ifdef F77_DUMMY_MAIN
14268#  ifdef __cplusplus
14269     extern "C"
14270#  endif
14271   int F77_DUMMY_MAIN() { return 1; }
14272#endif
14273int
14274main ()
14275{
14276zfftm1d ();
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext conftest$ac_exeext
14282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14283  (eval $ac_link) 2>&5
14284  ac_status=$?
14285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286  (exit $ac_status); } &&
14287         { ac_try='test -s conftest$ac_exeext'
14288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289  (eval $ac_try) 2>&5
14290  ac_status=$?
14291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292  (exit $ac_status); }; }; then
14293  ac_cv_lib_complib_sgimath_zfftm1d=yes
14294else
14295  echo "$as_me: failed program was:" >&5
14296cat conftest.$ac_ext >&5
14297ac_cv_lib_complib_sgimath_zfftm1d=no
14298fi
14299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14300LIBS=$ac_check_lib_save_LIBS
14301fi
14302echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfftm1d" >&5
14303echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfftm1d" >&6
14304if test $ac_cv_lib_complib_sgimath_zfftm1d = yes; then
14305  cat >>confdefs.h <<_ACEOF
14306@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14307_ACEOF
14308
14309  LIBS="-lcomplib.sgimath $LIBS"
14310
14311else
14312  have_fft_sgi=false
14313fi
14314
14315
14316echo "$as_me:$LINENO: checking for zfft2di in -lcomplib.sgimath" >&5
14317echo $ECHO_N "checking for zfft2di in -lcomplib.sgimath... $ECHO_C" >&6
14318if test "${ac_cv_lib_complib_sgimath_zfft2di+set}" = set; then
14319  echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321  ac_check_lib_save_LIBS=$LIBS
14322LIBS="-lcomplib.sgimath  $LIBS"
14323cat >conftest.$ac_ext <<_ACEOF
14324#line $LINENO "configure"
14325#include "confdefs.h"
14326
14327/* Override any gcc2 internal prototype to avoid an error.  */
14328#ifdef __cplusplus
14329extern "C"
14330#endif
14331/* We use char because int might match the return type of a gcc2
14332   builtin and then its argument prototype would still apply.  */
14333char zfft2di ();
14334#ifdef F77_DUMMY_MAIN
14335#  ifdef __cplusplus
14336     extern "C"
14337#  endif
14338   int F77_DUMMY_MAIN() { return 1; }
14339#endif
14340int
14341main ()
14342{
14343zfft2di ();
14344  ;
14345  return 0;
14346}
14347_ACEOF
14348rm -f conftest.$ac_objext conftest$ac_exeext
14349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350  (eval $ac_link) 2>&5
14351  ac_status=$?
14352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353  (exit $ac_status); } &&
14354         { ac_try='test -s conftest$ac_exeext'
14355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356  (eval $ac_try) 2>&5
14357  ac_status=$?
14358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359  (exit $ac_status); }; }; then
14360  ac_cv_lib_complib_sgimath_zfft2di=yes
14361else
14362  echo "$as_me: failed program was:" >&5
14363cat conftest.$ac_ext >&5
14364ac_cv_lib_complib_sgimath_zfft2di=no
14365fi
14366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14367LIBS=$ac_check_lib_save_LIBS
14368fi
14369echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft2di" >&5
14370echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft2di" >&6
14371if test $ac_cv_lib_complib_sgimath_zfft2di = yes; then
14372  cat >>confdefs.h <<_ACEOF
14373@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14374_ACEOF
14375
14376  LIBS="-lcomplib.sgimath $LIBS"
14377
14378else
14379  have_fft_sgi=false
14380fi
14381
14382
14383echo "$as_me:$LINENO: checking for zfft2d in -lcomplib.sgimath" >&5
14384echo $ECHO_N "checking for zfft2d in -lcomplib.sgimath... $ECHO_C" >&6
14385if test "${ac_cv_lib_complib_sgimath_zfft2d+set}" = set; then
14386  echo $ECHO_N "(cached) $ECHO_C" >&6
14387else
14388  ac_check_lib_save_LIBS=$LIBS
14389LIBS="-lcomplib.sgimath  $LIBS"
14390cat >conftest.$ac_ext <<_ACEOF
14391#line $LINENO "configure"
14392#include "confdefs.h"
14393
14394/* Override any gcc2 internal prototype to avoid an error.  */
14395#ifdef __cplusplus
14396extern "C"
14397#endif
14398/* We use char because int might match the return type of a gcc2
14399   builtin and then its argument prototype would still apply.  */
14400char zfft2d ();
14401#ifdef F77_DUMMY_MAIN
14402#  ifdef __cplusplus
14403     extern "C"
14404#  endif
14405   int F77_DUMMY_MAIN() { return 1; }
14406#endif
14407int
14408main ()
14409{
14410zfft2d ();
14411  ;
14412  return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext conftest$ac_exeext
14416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417  (eval $ac_link) 2>&5
14418  ac_status=$?
14419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420  (exit $ac_status); } &&
14421         { ac_try='test -s conftest$ac_exeext'
14422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423  (eval $ac_try) 2>&5
14424  ac_status=$?
14425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426  (exit $ac_status); }; }; then
14427  ac_cv_lib_complib_sgimath_zfft2d=yes
14428else
14429  echo "$as_me: failed program was:" >&5
14430cat conftest.$ac_ext >&5
14431ac_cv_lib_complib_sgimath_zfft2d=no
14432fi
14433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14434LIBS=$ac_check_lib_save_LIBS
14435fi
14436echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft2d" >&5
14437echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft2d" >&6
14438if test $ac_cv_lib_complib_sgimath_zfft2d = yes; then
14439  cat >>confdefs.h <<_ACEOF
14440@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14441_ACEOF
14442
14443  LIBS="-lcomplib.sgimath $LIBS"
14444
14445else
14446  have_fft_sgi=false
14447fi
14448
14449
14450echo "$as_me:$LINENO: checking for zfft3di in -lcomplib.sgimath" >&5
14451echo $ECHO_N "checking for zfft3di in -lcomplib.sgimath... $ECHO_C" >&6
14452if test "${ac_cv_lib_complib_sgimath_zfft3di+set}" = set; then
14453  echo $ECHO_N "(cached) $ECHO_C" >&6
14454else
14455  ac_check_lib_save_LIBS=$LIBS
14456LIBS="-lcomplib.sgimath  $LIBS"
14457cat >conftest.$ac_ext <<_ACEOF
14458#line $LINENO "configure"
14459#include "confdefs.h"
14460
14461/* Override any gcc2 internal prototype to avoid an error.  */
14462#ifdef __cplusplus
14463extern "C"
14464#endif
14465/* We use char because int might match the return type of a gcc2
14466   builtin and then its argument prototype would still apply.  */
14467char zfft3di ();
14468#ifdef F77_DUMMY_MAIN
14469#  ifdef __cplusplus
14470     extern "C"
14471#  endif
14472   int F77_DUMMY_MAIN() { return 1; }
14473#endif
14474int
14475main ()
14476{
14477zfft3di ();
14478  ;
14479  return 0;
14480}
14481_ACEOF
14482rm -f conftest.$ac_objext conftest$ac_exeext
14483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484  (eval $ac_link) 2>&5
14485  ac_status=$?
14486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487  (exit $ac_status); } &&
14488         { ac_try='test -s conftest$ac_exeext'
14489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490  (eval $ac_try) 2>&5
14491  ac_status=$?
14492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493  (exit $ac_status); }; }; then
14494  ac_cv_lib_complib_sgimath_zfft3di=yes
14495else
14496  echo "$as_me: failed program was:" >&5
14497cat conftest.$ac_ext >&5
14498ac_cv_lib_complib_sgimath_zfft3di=no
14499fi
14500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14501LIBS=$ac_check_lib_save_LIBS
14502fi
14503echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft3di" >&5
14504echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft3di" >&6
14505if test $ac_cv_lib_complib_sgimath_zfft3di = yes; then
14506  cat >>confdefs.h <<_ACEOF
14507@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14508_ACEOF
14509
14510  LIBS="-lcomplib.sgimath $LIBS"
14511
14512else
14513  have_fft_sgi=false
14514fi
14515
14516
14517echo "$as_me:$LINENO: checking for zfft3d in -lcomplib.sgimath" >&5
14518echo $ECHO_N "checking for zfft3d in -lcomplib.sgimath... $ECHO_C" >&6
14519if test "${ac_cv_lib_complib_sgimath_zfft3d+set}" = set; then
14520  echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
14522  ac_check_lib_save_LIBS=$LIBS
14523LIBS="-lcomplib.sgimath  $LIBS"
14524cat >conftest.$ac_ext <<_ACEOF
14525#line $LINENO "configure"
14526#include "confdefs.h"
14527
14528/* Override any gcc2 internal prototype to avoid an error.  */
14529#ifdef __cplusplus
14530extern "C"
14531#endif
14532/* We use char because int might match the return type of a gcc2
14533   builtin and then its argument prototype would still apply.  */
14534char zfft3d ();
14535#ifdef F77_DUMMY_MAIN
14536#  ifdef __cplusplus
14537     extern "C"
14538#  endif
14539   int F77_DUMMY_MAIN() { return 1; }
14540#endif
14541int
14542main ()
14543{
14544zfft3d ();
14545  ;
14546  return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext conftest$ac_exeext
14550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551  (eval $ac_link) 2>&5
14552  ac_status=$?
14553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554  (exit $ac_status); } &&
14555         { ac_try='test -s conftest$ac_exeext'
14556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557  (eval $ac_try) 2>&5
14558  ac_status=$?
14559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560  (exit $ac_status); }; }; then
14561  ac_cv_lib_complib_sgimath_zfft3d=yes
14562else
14563  echo "$as_me: failed program was:" >&5
14564cat conftest.$ac_ext >&5
14565ac_cv_lib_complib_sgimath_zfft3d=no
14566fi
14567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14568LIBS=$ac_check_lib_save_LIBS
14569fi
14570echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft3d" >&5
14571echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft3d" >&6
14572if test $ac_cv_lib_complib_sgimath_zfft3d = yes; then
14573  cat >>confdefs.h <<_ACEOF
14574@%:@define HAVE_LIBCOMPLIB_SGIMATH 1
14575_ACEOF
14576
14577  LIBS="-lcomplib.sgimath $LIBS"
14578
14579else
14580  have_fft_sgi=false
14581fi
14582
14583if test "${ac_cv_header_fft_h+set}" = set; then
14584  echo "$as_me:$LINENO: checking for fft.h" >&5
14585echo $ECHO_N "checking for fft.h... $ECHO_C" >&6
14586if test "${ac_cv_header_fft_h+set}" = set; then
14587  echo $ECHO_N "(cached) $ECHO_C" >&6
14588fi
14589echo "$as_me:$LINENO: result: $ac_cv_header_fft_h" >&5
14590echo "${ECHO_T}$ac_cv_header_fft_h" >&6
14591else
14592  # Is the header compilable?
14593echo "$as_me:$LINENO: checking fft.h usability" >&5
14594echo $ECHO_N "checking fft.h usability... $ECHO_C" >&6
14595cat >conftest.$ac_ext <<_ACEOF
14596#line $LINENO "configure"
14597#include "confdefs.h"
14598$ac_includes_default
14599@%:@include <fft.h>
14600_ACEOF
14601rm -f conftest.$ac_objext
14602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603  (eval $ac_compile) 2>&5
14604  ac_status=$?
14605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606  (exit $ac_status); } &&
14607         { ac_try='test -s conftest.$ac_objext'
14608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609  (eval $ac_try) 2>&5
14610  ac_status=$?
14611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612  (exit $ac_status); }; }; then
14613  ac_header_compiler=yes
14614else
14615  echo "$as_me: failed program was:" >&5
14616cat conftest.$ac_ext >&5
14617ac_header_compiler=no
14618fi
14619rm -f conftest.$ac_objext conftest.$ac_ext
14620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14621echo "${ECHO_T}$ac_header_compiler" >&6
14622
14623# Is the header present?
14624echo "$as_me:$LINENO: checking fft.h presence" >&5
14625echo $ECHO_N "checking fft.h presence... $ECHO_C" >&6
14626cat >conftest.$ac_ext <<_ACEOF
14627#line $LINENO "configure"
14628#include "confdefs.h"
14629@%:@include <fft.h>
14630_ACEOF
14631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14632  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14633  ac_status=$?
14634  egrep -v '^ *\+' conftest.er1 >conftest.err
14635  rm -f conftest.er1
14636  cat conftest.err >&5
14637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638  (exit $ac_status); } >/dev/null; then
14639  if test -s conftest.err; then
14640    ac_cpp_err=$ac_cxx_preproc_warn_flag
14641  else
14642    ac_cpp_err=
14643  fi
14644else
14645  ac_cpp_err=yes
14646fi
14647if test -z "$ac_cpp_err"; then
14648  ac_header_preproc=yes
14649else
14650  echo "$as_me: failed program was:" >&5
14651  cat conftest.$ac_ext >&5
14652  ac_header_preproc=no
14653fi
14654rm -f conftest.err conftest.$ac_ext
14655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656echo "${ECHO_T}$ac_header_preproc" >&6
14657
14658# So?  What about this header?
14659case $ac_header_compiler:$ac_header_preproc in
14660  yes:no )
14661    { echo "$as_me:$LINENO: WARNING: fft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14662echo "$as_me: WARNING: fft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14663    { echo "$as_me:$LINENO: WARNING: fft.h: proceeding with the preprocessor's result" >&5
14664echo "$as_me: WARNING: fft.h: proceeding with the preprocessor's result" >&2;};;
14665  no:yes )
14666    { echo "$as_me:$LINENO: WARNING: fft.h: present but cannot be compiled" >&5
14667echo "$as_me: WARNING: fft.h: present but cannot be compiled" >&2;}
14668    { echo "$as_me:$LINENO: WARNING: fft.h: check for missing prerequisite headers?" >&5
14669echo "$as_me: WARNING: fft.h: check for missing prerequisite headers?" >&2;}
14670    { echo "$as_me:$LINENO: WARNING: fft.h: proceeding with the preprocessor's result" >&5
14671echo "$as_me: WARNING: fft.h: proceeding with the preprocessor's result" >&2;};;
14672esac
14673echo "$as_me:$LINENO: checking for fft.h" >&5
14674echo $ECHO_N "checking for fft.h... $ECHO_C" >&6
14675if test "${ac_cv_header_fft_h+set}" = set; then
14676  echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678  ac_cv_header_fft_h=$ac_header_preproc
14679fi
14680echo "$as_me:$LINENO: result: $ac_cv_header_fft_h" >&5
14681echo "${ECHO_T}$ac_cv_header_fft_h" >&6
14682
14683fi
14684if test $ac_cv_header_fft_h = yes; then
14685  :
14686else
14687  have_fft_sgi=false
14688fi
14689
14690
14691
14692#
14693# FFT AIX/IBM
14694#
14695LIBS=$save_libs
14696CFLAGS=$save_cflags
14697CPPFLAGS=$save_cppflags
14698have_fft_essl=true
14699FFT_ESSL_LIBS="-lessl"
14700FFT_ESSL_CFLAGS="-DHAVE_FFT_ESSL -DHAVE_FFT"
14701
14702echo "$as_me:$LINENO: checking for dcft in -lessl" >&5
14703echo $ECHO_N "checking for dcft in -lessl... $ECHO_C" >&6
14704if test "${ac_cv_lib_essl_dcft+set}" = set; then
14705  echo $ECHO_N "(cached) $ECHO_C" >&6
14706else
14707  ac_check_lib_save_LIBS=$LIBS
14708LIBS="-lessl  $LIBS"
14709cat >conftest.$ac_ext <<_ACEOF
14710#line $LINENO "configure"
14711#include "confdefs.h"
14712
14713/* Override any gcc2 internal prototype to avoid an error.  */
14714#ifdef __cplusplus
14715extern "C"
14716#endif
14717/* We use char because int might match the return type of a gcc2
14718   builtin and then its argument prototype would still apply.  */
14719char dcft ();
14720#ifdef F77_DUMMY_MAIN
14721#  ifdef __cplusplus
14722     extern "C"
14723#  endif
14724   int F77_DUMMY_MAIN() { return 1; }
14725#endif
14726int
14727main ()
14728{
14729dcft ();
14730  ;
14731  return 0;
14732}
14733_ACEOF
14734rm -f conftest.$ac_objext conftest$ac_exeext
14735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736  (eval $ac_link) 2>&5
14737  ac_status=$?
14738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739  (exit $ac_status); } &&
14740         { ac_try='test -s conftest$ac_exeext'
14741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742  (eval $ac_try) 2>&5
14743  ac_status=$?
14744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745  (exit $ac_status); }; }; then
14746  ac_cv_lib_essl_dcft=yes
14747else
14748  echo "$as_me: failed program was:" >&5
14749cat conftest.$ac_ext >&5
14750ac_cv_lib_essl_dcft=no
14751fi
14752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14753LIBS=$ac_check_lib_save_LIBS
14754fi
14755echo "$as_me:$LINENO: result: $ac_cv_lib_essl_dcft" >&5
14756echo "${ECHO_T}$ac_cv_lib_essl_dcft" >&6
14757if test $ac_cv_lib_essl_dcft = yes; then
14758  cat >>confdefs.h <<_ACEOF
14759@%:@define HAVE_LIBESSL 1
14760_ACEOF
14761
14762  LIBS="-lessl $LIBS"
14763
14764else
14765  have_fft_essl=false
14766fi
14767
14768if test "${ac_cv_header_essl_h+set}" = set; then
14769  echo "$as_me:$LINENO: checking for essl.h" >&5
14770echo $ECHO_N "checking for essl.h... $ECHO_C" >&6
14771if test "${ac_cv_header_essl_h+set}" = set; then
14772  echo $ECHO_N "(cached) $ECHO_C" >&6
14773fi
14774echo "$as_me:$LINENO: result: $ac_cv_header_essl_h" >&5
14775echo "${ECHO_T}$ac_cv_header_essl_h" >&6
14776else
14777  # Is the header compilable?
14778echo "$as_me:$LINENO: checking essl.h usability" >&5
14779echo $ECHO_N "checking essl.h usability... $ECHO_C" >&6
14780cat >conftest.$ac_ext <<_ACEOF
14781#line $LINENO "configure"
14782#include "confdefs.h"
14783$ac_includes_default
14784@%:@include <essl.h>
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788  (eval $ac_compile) 2>&5
14789  ac_status=$?
14790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791  (exit $ac_status); } &&
14792         { ac_try='test -s conftest.$ac_objext'
14793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794  (eval $ac_try) 2>&5
14795  ac_status=$?
14796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797  (exit $ac_status); }; }; then
14798  ac_header_compiler=yes
14799else
14800  echo "$as_me: failed program was:" >&5
14801cat conftest.$ac_ext >&5
14802ac_header_compiler=no
14803fi
14804rm -f conftest.$ac_objext conftest.$ac_ext
14805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806echo "${ECHO_T}$ac_header_compiler" >&6
14807
14808# Is the header present?
14809echo "$as_me:$LINENO: checking essl.h presence" >&5
14810echo $ECHO_N "checking essl.h presence... $ECHO_C" >&6
14811cat >conftest.$ac_ext <<_ACEOF
14812#line $LINENO "configure"
14813#include "confdefs.h"
14814@%:@include <essl.h>
14815_ACEOF
14816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14818  ac_status=$?
14819  egrep -v '^ *\+' conftest.er1 >conftest.err
14820  rm -f conftest.er1
14821  cat conftest.err >&5
14822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823  (exit $ac_status); } >/dev/null; then
14824  if test -s conftest.err; then
14825    ac_cpp_err=$ac_cxx_preproc_warn_flag
14826  else
14827    ac_cpp_err=
14828  fi
14829else
14830  ac_cpp_err=yes
14831fi
14832if test -z "$ac_cpp_err"; then
14833  ac_header_preproc=yes
14834else
14835  echo "$as_me: failed program was:" >&5
14836  cat conftest.$ac_ext >&5
14837  ac_header_preproc=no
14838fi
14839rm -f conftest.err conftest.$ac_ext
14840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841echo "${ECHO_T}$ac_header_preproc" >&6
14842
14843# So?  What about this header?
14844case $ac_header_compiler:$ac_header_preproc in
14845  yes:no )
14846    { echo "$as_me:$LINENO: WARNING: essl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14847echo "$as_me: WARNING: essl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848    { echo "$as_me:$LINENO: WARNING: essl.h: proceeding with the preprocessor's result" >&5
14849echo "$as_me: WARNING: essl.h: proceeding with the preprocessor's result" >&2;};;
14850  no:yes )
14851    { echo "$as_me:$LINENO: WARNING: essl.h: present but cannot be compiled" >&5
14852echo "$as_me: WARNING: essl.h: present but cannot be compiled" >&2;}
14853    { echo "$as_me:$LINENO: WARNING: essl.h: check for missing prerequisite headers?" >&5
14854echo "$as_me: WARNING: essl.h: check for missing prerequisite headers?" >&2;}
14855    { echo "$as_me:$LINENO: WARNING: essl.h: proceeding with the preprocessor's result" >&5
14856echo "$as_me: WARNING: essl.h: proceeding with the preprocessor's result" >&2;};;
14857esac
14858echo "$as_me:$LINENO: checking for essl.h" >&5
14859echo $ECHO_N "checking for essl.h... $ECHO_C" >&6
14860if test "${ac_cv_header_essl_h+set}" = set; then
14861  echo $ECHO_N "(cached) $ECHO_C" >&6
14862else
14863  ac_cv_header_essl_h=$ac_header_preproc
14864fi
14865echo "$as_me:$LINENO: result: $ac_cv_header_essl_h" >&5
14866echo "${ECHO_T}$ac_cv_header_essl_h" >&6
14867
14868fi
14869if test $ac_cv_header_essl_h = yes; then
14870  :
14871else
14872  have_fft_essl=false
14873fi
14874
14875
14876
14877#
14878# FFTW2 MPI
14879#
14880LIBS=$save_libs
14881CFLAGS=$save_cflags
14882CPPFLAGS=$save_cppflags
14883require_fftw2mpi=false
14884if test x"$with_fftw2mpi" != x; then
14885	FFTW2_MPI_INCLUDE="$with_fftw2mpi/include"
14886	FFTW2_MPI_LIB="$with_fftw2mpi/lib"
14887	FFTW2_MPI_ROOT="$with_fftw2mpi"
14888	require_fftw2mpi=true
14889fi
14890FFT_FFTW2_MPI_LIBS="-L$FFTW2_MPI_LIB -lfftw_mpi -lfftw"
14891FFT_FFTW2_MPI_CFLAGS="-DHAVE_FFT_FFTW2_MPI -DHAVE_FFT -I$FFTW2_MPI_INCLUDE"
14892LIBS="$FFT_FFTW2_MPI_LIBS"
14893CFLAGS="$CFLAGS $FFT_FFTW2_MPI_CFLAGS"
14894CPPFLAGS="$CPPFLAGS $FFT_FFTW2_MPI_CFLAGS"
14895
14896have_fft_fftw2mpi=true
14897unset ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan
14898unset ac_cv_lib_fftw_fftw3d_create_plan
14899unset ac_cv_header_fftw_mpi_h
14900unset ac_cv_header_fftw_h
14901
14902echo "$as_me:$LINENO: checking for fftw3d_mpi_create_plan in -lfftw_mpi" >&5
14903echo $ECHO_N "checking for fftw3d_mpi_create_plan in -lfftw_mpi... $ECHO_C" >&6
14904if test "${ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan+set}" = set; then
14905  echo $ECHO_N "(cached) $ECHO_C" >&6
14906else
14907  ac_check_lib_save_LIBS=$LIBS
14908LIBS="-lfftw_mpi  $LIBS"
14909cat >conftest.$ac_ext <<_ACEOF
14910#line $LINENO "configure"
14911#include "confdefs.h"
14912
14913/* Override any gcc2 internal prototype to avoid an error.  */
14914#ifdef __cplusplus
14915extern "C"
14916#endif
14917/* We use char because int might match the return type of a gcc2
14918   builtin and then its argument prototype would still apply.  */
14919char fftw3d_mpi_create_plan ();
14920#ifdef F77_DUMMY_MAIN
14921#  ifdef __cplusplus
14922     extern "C"
14923#  endif
14924   int F77_DUMMY_MAIN() { return 1; }
14925#endif
14926int
14927main ()
14928{
14929fftw3d_mpi_create_plan ();
14930  ;
14931  return 0;
14932}
14933_ACEOF
14934rm -f conftest.$ac_objext conftest$ac_exeext
14935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936  (eval $ac_link) 2>&5
14937  ac_status=$?
14938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939  (exit $ac_status); } &&
14940         { ac_try='test -s conftest$ac_exeext'
14941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942  (eval $ac_try) 2>&5
14943  ac_status=$?
14944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945  (exit $ac_status); }; }; then
14946  ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan=yes
14947else
14948  echo "$as_me: failed program was:" >&5
14949cat conftest.$ac_ext >&5
14950ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan=no
14951fi
14952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14953LIBS=$ac_check_lib_save_LIBS
14954fi
14955echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan" >&5
14956echo "${ECHO_T}$ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan" >&6
14957if test $ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan = yes; then
14958  cat >>confdefs.h <<_ACEOF
14959@%:@define HAVE_LIBFFTW_MPI 1
14960_ACEOF
14961
14962  LIBS="-lfftw_mpi $LIBS"
14963
14964else
14965  have_fft_fftw2mpi=false
14966fi
14967
14968
14969echo "$as_me:$LINENO: checking for fftw3d_create_plan in -lfftw" >&5
14970echo $ECHO_N "checking for fftw3d_create_plan in -lfftw... $ECHO_C" >&6
14971if test "${ac_cv_lib_fftw_fftw3d_create_plan+set}" = set; then
14972  echo $ECHO_N "(cached) $ECHO_C" >&6
14973else
14974  ac_check_lib_save_LIBS=$LIBS
14975LIBS="-lfftw  $LIBS"
14976cat >conftest.$ac_ext <<_ACEOF
14977#line $LINENO "configure"
14978#include "confdefs.h"
14979
14980/* Override any gcc2 internal prototype to avoid an error.  */
14981#ifdef __cplusplus
14982extern "C"
14983#endif
14984/* We use char because int might match the return type of a gcc2
14985   builtin and then its argument prototype would still apply.  */
14986char fftw3d_create_plan ();
14987#ifdef F77_DUMMY_MAIN
14988#  ifdef __cplusplus
14989     extern "C"
14990#  endif
14991   int F77_DUMMY_MAIN() { return 1; }
14992#endif
14993int
14994main ()
14995{
14996fftw3d_create_plan ();
14997  ;
14998  return 0;
14999}
15000_ACEOF
15001rm -f conftest.$ac_objext conftest$ac_exeext
15002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15003  (eval $ac_link) 2>&5
15004  ac_status=$?
15005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006  (exit $ac_status); } &&
15007         { ac_try='test -s conftest$ac_exeext'
15008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009  (eval $ac_try) 2>&5
15010  ac_status=$?
15011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012  (exit $ac_status); }; }; then
15013  ac_cv_lib_fftw_fftw3d_create_plan=yes
15014else
15015  echo "$as_me: failed program was:" >&5
15016cat conftest.$ac_ext >&5
15017ac_cv_lib_fftw_fftw3d_create_plan=no
15018fi
15019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15020LIBS=$ac_check_lib_save_LIBS
15021fi
15022echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw3d_create_plan" >&5
15023echo "${ECHO_T}$ac_cv_lib_fftw_fftw3d_create_plan" >&6
15024if test $ac_cv_lib_fftw_fftw3d_create_plan = yes; then
15025  cat >>confdefs.h <<_ACEOF
15026@%:@define HAVE_LIBFFTW 1
15027_ACEOF
15028
15029  LIBS="-lfftw $LIBS"
15030
15031else
15032  have_fft_fftw2mpi=false
15033fi
15034
15035if test "${ac_cv_header_fftw_mpi_h+set}" = set; then
15036  echo "$as_me:$LINENO: checking for fftw_mpi.h" >&5
15037echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6
15038if test "${ac_cv_header_fftw_mpi_h+set}" = set; then
15039  echo $ECHO_N "(cached) $ECHO_C" >&6
15040fi
15041echo "$as_me:$LINENO: result: $ac_cv_header_fftw_mpi_h" >&5
15042echo "${ECHO_T}$ac_cv_header_fftw_mpi_h" >&6
15043else
15044  # Is the header compilable?
15045echo "$as_me:$LINENO: checking fftw_mpi.h usability" >&5
15046echo $ECHO_N "checking fftw_mpi.h usability... $ECHO_C" >&6
15047cat >conftest.$ac_ext <<_ACEOF
15048#line $LINENO "configure"
15049#include "confdefs.h"
15050$ac_includes_default
15051@%:@include <fftw_mpi.h>
15052_ACEOF
15053rm -f conftest.$ac_objext
15054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15055  (eval $ac_compile) 2>&5
15056  ac_status=$?
15057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058  (exit $ac_status); } &&
15059         { ac_try='test -s conftest.$ac_objext'
15060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061  (eval $ac_try) 2>&5
15062  ac_status=$?
15063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064  (exit $ac_status); }; }; then
15065  ac_header_compiler=yes
15066else
15067  echo "$as_me: failed program was:" >&5
15068cat conftest.$ac_ext >&5
15069ac_header_compiler=no
15070fi
15071rm -f conftest.$ac_objext conftest.$ac_ext
15072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15073echo "${ECHO_T}$ac_header_compiler" >&6
15074
15075# Is the header present?
15076echo "$as_me:$LINENO: checking fftw_mpi.h presence" >&5
15077echo $ECHO_N "checking fftw_mpi.h presence... $ECHO_C" >&6
15078cat >conftest.$ac_ext <<_ACEOF
15079#line $LINENO "configure"
15080#include "confdefs.h"
15081@%:@include <fftw_mpi.h>
15082_ACEOF
15083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15085  ac_status=$?
15086  egrep -v '^ *\+' conftest.er1 >conftest.err
15087  rm -f conftest.er1
15088  cat conftest.err >&5
15089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090  (exit $ac_status); } >/dev/null; then
15091  if test -s conftest.err; then
15092    ac_cpp_err=$ac_cxx_preproc_warn_flag
15093  else
15094    ac_cpp_err=
15095  fi
15096else
15097  ac_cpp_err=yes
15098fi
15099if test -z "$ac_cpp_err"; then
15100  ac_header_preproc=yes
15101else
15102  echo "$as_me: failed program was:" >&5
15103  cat conftest.$ac_ext >&5
15104  ac_header_preproc=no
15105fi
15106rm -f conftest.err conftest.$ac_ext
15107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15108echo "${ECHO_T}$ac_header_preproc" >&6
15109
15110# So?  What about this header?
15111case $ac_header_compiler:$ac_header_preproc in
15112  yes:no )
15113    { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
15114echo "$as_me: WARNING: fftw_mpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15115    { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&5
15116echo "$as_me: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&2;};;
15117  no:yes )
15118    { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: present but cannot be compiled" >&5
15119echo "$as_me: WARNING: fftw_mpi.h: present but cannot be compiled" >&2;}
15120    { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: check for missing prerequisite headers?" >&5
15121echo "$as_me: WARNING: fftw_mpi.h: check for missing prerequisite headers?" >&2;}
15122    { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&5
15123echo "$as_me: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&2;};;
15124esac
15125echo "$as_me:$LINENO: checking for fftw_mpi.h" >&5
15126echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6
15127if test "${ac_cv_header_fftw_mpi_h+set}" = set; then
15128  echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130  ac_cv_header_fftw_mpi_h=$ac_header_preproc
15131fi
15132echo "$as_me:$LINENO: result: $ac_cv_header_fftw_mpi_h" >&5
15133echo "${ECHO_T}$ac_cv_header_fftw_mpi_h" >&6
15134
15135fi
15136if test $ac_cv_header_fftw_mpi_h = yes; then
15137  :
15138else
15139  have_fft_fftw2mpi=false
15140fi
15141
15142
15143if test "${ac_cv_header_fftw_h+set}" = set; then
15144  echo "$as_me:$LINENO: checking for fftw.h" >&5
15145echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
15146if test "${ac_cv_header_fftw_h+set}" = set; then
15147  echo $ECHO_N "(cached) $ECHO_C" >&6
15148fi
15149echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
15150echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
15151else
15152  # Is the header compilable?
15153echo "$as_me:$LINENO: checking fftw.h usability" >&5
15154echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
15155cat >conftest.$ac_ext <<_ACEOF
15156#line $LINENO "configure"
15157#include "confdefs.h"
15158$ac_includes_default
15159@%:@include <fftw.h>
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163  (eval $ac_compile) 2>&5
15164  ac_status=$?
15165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166  (exit $ac_status); } &&
15167         { ac_try='test -s conftest.$ac_objext'
15168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169  (eval $ac_try) 2>&5
15170  ac_status=$?
15171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172  (exit $ac_status); }; }; then
15173  ac_header_compiler=yes
15174else
15175  echo "$as_me: failed program was:" >&5
15176cat conftest.$ac_ext >&5
15177ac_header_compiler=no
15178fi
15179rm -f conftest.$ac_objext conftest.$ac_ext
15180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181echo "${ECHO_T}$ac_header_compiler" >&6
15182
15183# Is the header present?
15184echo "$as_me:$LINENO: checking fftw.h presence" >&5
15185echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
15186cat >conftest.$ac_ext <<_ACEOF
15187#line $LINENO "configure"
15188#include "confdefs.h"
15189@%:@include <fftw.h>
15190_ACEOF
15191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15193  ac_status=$?
15194  egrep -v '^ *\+' conftest.er1 >conftest.err
15195  rm -f conftest.er1
15196  cat conftest.err >&5
15197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198  (exit $ac_status); } >/dev/null; then
15199  if test -s conftest.err; then
15200    ac_cpp_err=$ac_cxx_preproc_warn_flag
15201  else
15202    ac_cpp_err=
15203  fi
15204else
15205  ac_cpp_err=yes
15206fi
15207if test -z "$ac_cpp_err"; then
15208  ac_header_preproc=yes
15209else
15210  echo "$as_me: failed program was:" >&5
15211  cat conftest.$ac_ext >&5
15212  ac_header_preproc=no
15213fi
15214rm -f conftest.err conftest.$ac_ext
15215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15216echo "${ECHO_T}$ac_header_preproc" >&6
15217
15218# So?  What about this header?
15219case $ac_header_compiler:$ac_header_preproc in
15220  yes:no )
15221    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
15222echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15223    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
15224echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;};;
15225  no:yes )
15226    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
15227echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
15228    { echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5
15229echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;}
15230    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
15231echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;};;
15232esac
15233echo "$as_me:$LINENO: checking for fftw.h" >&5
15234echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
15235if test "${ac_cv_header_fftw_h+set}" = set; then
15236  echo $ECHO_N "(cached) $ECHO_C" >&6
15237else
15238  ac_cv_header_fftw_h=$ac_header_preproc
15239fi
15240echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
15241echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
15242
15243fi
15244if test $ac_cv_header_fftw_h = yes; then
15245  :
15246else
15247  have_fft_fftw2mpi=false
15248fi
15249
15250
15251
15252
15253#
15254# FFTW3
15255#
15256LIBS=$save_libs
15257CFLAGS=$save_cflags
15258CPPFLAGS=$save_cppflags
15259require_fftw3=false
15260if test x"$with_fftw3" != x; then
15261	FFTW3_INCLUDE="$with_fftw3/include"
15262	FFTW3_LIB="$with_fftw3/lib"
15263	FFTW3_ROOT="$with_fftw3"
15264	require_fftw3=true
15265fi
15266FFT_FFTW3_LIBS="-L$FFTW3_LIB -lfftw3"
15267FFT_FFTW3_CFLAGS="-DHAVE_FFT_FFTW3 -DHAVE_FFT -I$FFTW3_INCLUDE"
15268LIBS="$FFT_FFTW3_LIBS"
15269CFLAGS="$CFLAGS $FFT_FFTW3_CFLAGS"
15270CPPFLAGS="$CPPFLAGS $FFT_FFTW3_CFLAGS"
15271
15272have_fft_fftw3=true
15273unset ac_cv_lib_fftw3_fftw_plan_dft_3d
15274unset ac_cv_header_fftw3_h
15275
15276echo "$as_me:$LINENO: checking for fftw_plan_dft_3d in -lfftw3" >&5
15277echo $ECHO_N "checking for fftw_plan_dft_3d in -lfftw3... $ECHO_C" >&6
15278if test "${ac_cv_lib_fftw3_fftw_plan_dft_3d+set}" = set; then
15279  echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281  ac_check_lib_save_LIBS=$LIBS
15282LIBS="-lfftw3  $LIBS"
15283cat >conftest.$ac_ext <<_ACEOF
15284#line $LINENO "configure"
15285#include "confdefs.h"
15286
15287/* Override any gcc2 internal prototype to avoid an error.  */
15288#ifdef __cplusplus
15289extern "C"
15290#endif
15291/* We use char because int might match the return type of a gcc2
15292   builtin and then its argument prototype would still apply.  */
15293char fftw_plan_dft_3d ();
15294#ifdef F77_DUMMY_MAIN
15295#  ifdef __cplusplus
15296     extern "C"
15297#  endif
15298   int F77_DUMMY_MAIN() { return 1; }
15299#endif
15300int
15301main ()
15302{
15303fftw_plan_dft_3d ();
15304  ;
15305  return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext conftest$ac_exeext
15309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15310  (eval $ac_link) 2>&5
15311  ac_status=$?
15312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313  (exit $ac_status); } &&
15314         { ac_try='test -s conftest$ac_exeext'
15315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316  (eval $ac_try) 2>&5
15317  ac_status=$?
15318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319  (exit $ac_status); }; }; then
15320  ac_cv_lib_fftw3_fftw_plan_dft_3d=yes
15321else
15322  echo "$as_me: failed program was:" >&5
15323cat conftest.$ac_ext >&5
15324ac_cv_lib_fftw3_fftw_plan_dft_3d=no
15325fi
15326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15327LIBS=$ac_check_lib_save_LIBS
15328fi
15329echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_3d" >&5
15330echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_3d" >&6
15331if test $ac_cv_lib_fftw3_fftw_plan_dft_3d = yes; then
15332  cat >>confdefs.h <<_ACEOF
15333@%:@define HAVE_LIBFFTW3 1
15334_ACEOF
15335
15336  LIBS="-lfftw3 $LIBS"
15337
15338else
15339  have_fft_fftw3=false
15340fi
15341
15342if test "${ac_cv_header_fftw3_h+set}" = set; then
15343  echo "$as_me:$LINENO: checking for fftw3.h" >&5
15344echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
15345if test "${ac_cv_header_fftw3_h+set}" = set; then
15346  echo $ECHO_N "(cached) $ECHO_C" >&6
15347fi
15348echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
15349echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
15350else
15351  # Is the header compilable?
15352echo "$as_me:$LINENO: checking fftw3.h usability" >&5
15353echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
15354cat >conftest.$ac_ext <<_ACEOF
15355#line $LINENO "configure"
15356#include "confdefs.h"
15357$ac_includes_default
15358@%:@include <fftw3.h>
15359_ACEOF
15360rm -f conftest.$ac_objext
15361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362  (eval $ac_compile) 2>&5
15363  ac_status=$?
15364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365  (exit $ac_status); } &&
15366         { ac_try='test -s conftest.$ac_objext'
15367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368  (eval $ac_try) 2>&5
15369  ac_status=$?
15370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371  (exit $ac_status); }; }; then
15372  ac_header_compiler=yes
15373else
15374  echo "$as_me: failed program was:" >&5
15375cat conftest.$ac_ext >&5
15376ac_header_compiler=no
15377fi
15378rm -f conftest.$ac_objext conftest.$ac_ext
15379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15380echo "${ECHO_T}$ac_header_compiler" >&6
15381
15382# Is the header present?
15383echo "$as_me:$LINENO: checking fftw3.h presence" >&5
15384echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
15385cat >conftest.$ac_ext <<_ACEOF
15386#line $LINENO "configure"
15387#include "confdefs.h"
15388@%:@include <fftw3.h>
15389_ACEOF
15390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15392  ac_status=$?
15393  egrep -v '^ *\+' conftest.er1 >conftest.err
15394  rm -f conftest.er1
15395  cat conftest.err >&5
15396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397  (exit $ac_status); } >/dev/null; then
15398  if test -s conftest.err; then
15399    ac_cpp_err=$ac_cxx_preproc_warn_flag
15400  else
15401    ac_cpp_err=
15402  fi
15403else
15404  ac_cpp_err=yes
15405fi
15406if test -z "$ac_cpp_err"; then
15407  ac_header_preproc=yes
15408else
15409  echo "$as_me: failed program was:" >&5
15410  cat conftest.$ac_ext >&5
15411  ac_header_preproc=no
15412fi
15413rm -f conftest.err conftest.$ac_ext
15414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415echo "${ECHO_T}$ac_header_preproc" >&6
15416
15417# So?  What about this header?
15418case $ac_header_compiler:$ac_header_preproc in
15419  yes:no )
15420    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
15421echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
15423echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;};;
15424  no:yes )
15425    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
15426echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
15427    { echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
15428echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
15429    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
15430echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;};;
15431esac
15432echo "$as_me:$LINENO: checking for fftw3.h" >&5
15433echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
15434if test "${ac_cv_header_fftw3_h+set}" = set; then
15435  echo $ECHO_N "(cached) $ECHO_C" >&6
15436else
15437  ac_cv_header_fftw3_h=$ac_header_preproc
15438fi
15439echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
15440echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
15441
15442fi
15443if test $ac_cv_header_fftw3_h = yes; then
15444  :
15445else
15446  have_fft_fftw3=false
15447fi
15448
15449
15450
15451#
15452# FFTW2
15453#
15454LIBS=$save_libs
15455CFLAGS=$save_cflags
15456CPPFLAGS=$save_cppflags
15457require_fftw2=false
15458if test x"$with_fftw2" != x; then
15459	FFTW2_INCLUDE="$with_fftw2/include"
15460	FFTW2_LIB="$with_fftw2/lib"
15461	FFTW2_ROOT="$with_fftw2"
15462	require_fftw2=true
15463fi
15464FFT_FFTW2_LIBS="-L$FFTW2_LIB -lfftw"
15465FFT_FFTW2_CFLAGS="-DHAVE_FFT_FFTW2 -DHAVE_FFT -I$FFTW2_INCLUDE"
15466LIBS="$FFT_FFTW2_LIBS"
15467CFLAGS="$CFLAGS $FFT_FFTW2_CFLAGS"
15468CPPFLAGS="$CPPFLAGS $FFT_FFTW2_CFLAGS"
15469
15470have_fft_fftw2=true
15471unset ac_cv_lib_fftw_fftw3d_create_plan
15472unset ac_cv_header_fftw_h
15473
15474echo "$as_me:$LINENO: checking for fftw3d_create_plan in -lfftw" >&5
15475echo $ECHO_N "checking for fftw3d_create_plan in -lfftw... $ECHO_C" >&6
15476if test "${ac_cv_lib_fftw_fftw3d_create_plan+set}" = set; then
15477  echo $ECHO_N "(cached) $ECHO_C" >&6
15478else
15479  ac_check_lib_save_LIBS=$LIBS
15480LIBS="-lfftw  $LIBS"
15481cat >conftest.$ac_ext <<_ACEOF
15482#line $LINENO "configure"
15483#include "confdefs.h"
15484
15485/* Override any gcc2 internal prototype to avoid an error.  */
15486#ifdef __cplusplus
15487extern "C"
15488#endif
15489/* We use char because int might match the return type of a gcc2
15490   builtin and then its argument prototype would still apply.  */
15491char fftw3d_create_plan ();
15492#ifdef F77_DUMMY_MAIN
15493#  ifdef __cplusplus
15494     extern "C"
15495#  endif
15496   int F77_DUMMY_MAIN() { return 1; }
15497#endif
15498int
15499main ()
15500{
15501fftw3d_create_plan ();
15502  ;
15503  return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext conftest$ac_exeext
15507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508  (eval $ac_link) 2>&5
15509  ac_status=$?
15510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511  (exit $ac_status); } &&
15512         { ac_try='test -s conftest$ac_exeext'
15513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514  (eval $ac_try) 2>&5
15515  ac_status=$?
15516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517  (exit $ac_status); }; }; then
15518  ac_cv_lib_fftw_fftw3d_create_plan=yes
15519else
15520  echo "$as_me: failed program was:" >&5
15521cat conftest.$ac_ext >&5
15522ac_cv_lib_fftw_fftw3d_create_plan=no
15523fi
15524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15525LIBS=$ac_check_lib_save_LIBS
15526fi
15527echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw3d_create_plan" >&5
15528echo "${ECHO_T}$ac_cv_lib_fftw_fftw3d_create_plan" >&6
15529if test $ac_cv_lib_fftw_fftw3d_create_plan = yes; then
15530  cat >>confdefs.h <<_ACEOF
15531@%:@define HAVE_LIBFFTW 1
15532_ACEOF
15533
15534  LIBS="-lfftw $LIBS"
15535
15536else
15537  have_fft_fftw2=false
15538fi
15539
15540if test "${ac_cv_header_fftw_h+set}" = set; then
15541  echo "$as_me:$LINENO: checking for fftw.h" >&5
15542echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
15543if test "${ac_cv_header_fftw_h+set}" = set; then
15544  echo $ECHO_N "(cached) $ECHO_C" >&6
15545fi
15546echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
15547echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
15548else
15549  # Is the header compilable?
15550echo "$as_me:$LINENO: checking fftw.h usability" >&5
15551echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
15552cat >conftest.$ac_ext <<_ACEOF
15553#line $LINENO "configure"
15554#include "confdefs.h"
15555$ac_includes_default
15556@%:@include <fftw.h>
15557_ACEOF
15558rm -f conftest.$ac_objext
15559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560  (eval $ac_compile) 2>&5
15561  ac_status=$?
15562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563  (exit $ac_status); } &&
15564         { ac_try='test -s conftest.$ac_objext'
15565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566  (eval $ac_try) 2>&5
15567  ac_status=$?
15568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569  (exit $ac_status); }; }; then
15570  ac_header_compiler=yes
15571else
15572  echo "$as_me: failed program was:" >&5
15573cat conftest.$ac_ext >&5
15574ac_header_compiler=no
15575fi
15576rm -f conftest.$ac_objext conftest.$ac_ext
15577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578echo "${ECHO_T}$ac_header_compiler" >&6
15579
15580# Is the header present?
15581echo "$as_me:$LINENO: checking fftw.h presence" >&5
15582echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
15583cat >conftest.$ac_ext <<_ACEOF
15584#line $LINENO "configure"
15585#include "confdefs.h"
15586@%:@include <fftw.h>
15587_ACEOF
15588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15590  ac_status=$?
15591  egrep -v '^ *\+' conftest.er1 >conftest.err
15592  rm -f conftest.er1
15593  cat conftest.err >&5
15594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595  (exit $ac_status); } >/dev/null; then
15596  if test -s conftest.err; then
15597    ac_cpp_err=$ac_cxx_preproc_warn_flag
15598  else
15599    ac_cpp_err=
15600  fi
15601else
15602  ac_cpp_err=yes
15603fi
15604if test -z "$ac_cpp_err"; then
15605  ac_header_preproc=yes
15606else
15607  echo "$as_me: failed program was:" >&5
15608  cat conftest.$ac_ext >&5
15609  ac_header_preproc=no
15610fi
15611rm -f conftest.err conftest.$ac_ext
15612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613echo "${ECHO_T}$ac_header_preproc" >&6
15614
15615# So?  What about this header?
15616case $ac_header_compiler:$ac_header_preproc in
15617  yes:no )
15618    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
15619echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
15621echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;};;
15622  no:yes )
15623    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
15624echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
15625    { echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5
15626echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;}
15627    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
15628echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;};;
15629esac
15630echo "$as_me:$LINENO: checking for fftw.h" >&5
15631echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
15632if test "${ac_cv_header_fftw_h+set}" = set; then
15633  echo $ECHO_N "(cached) $ECHO_C" >&6
15634else
15635  ac_cv_header_fftw_h=$ac_header_preproc
15636fi
15637echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
15638echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
15639
15640fi
15641if test $ac_cv_header_fftw_h = yes; then
15642  :
15643else
15644  have_fft_fftw2=false
15645fi
15646
15647
15648
15649
15650#
15651echo "$as_me:$LINENO: checking FFT SGI complib.sgimath" >&5
15652echo $ECHO_N "checking FFT SGI complib.sgimath... $ECHO_C" >&6
15653if test $have_fft_sgi = false; then
15654  echo "$as_me:$LINENO: result: no" >&5
15655echo "${ECHO_T}no" >&6;
15656else
15657  echo "$as_me:$LINENO: result: yes" >&5
15658echo "${ECHO_T}yes" >&6;
15659fi
15660echo "$as_me:$LINENO: checking FFT ESSL" >&5
15661echo $ECHO_N "checking FFT ESSL... $ECHO_C" >&6
15662if test $have_fft_essl = false; then
15663  echo "$as_me:$LINENO: result: no" >&5
15664echo "${ECHO_T}no" >&6;
15665else
15666  echo "$as_me:$LINENO: result: yes" >&5
15667echo "${ECHO_T}yes" >&6;
15668fi
15669echo "$as_me:$LINENO: checking FFT FFTW3" >&5
15670echo $ECHO_N "checking FFT FFTW3... $ECHO_C" >&6
15671if test $have_fft_fftw3 = false; then
15672  echo "$as_me:$LINENO: result: no" >&5
15673echo "${ECHO_T}no" >&6;
15674else
15675  echo "$as_me:$LINENO: result: yes" >&5
15676echo "${ECHO_T}yes" >&6;
15677fi
15678echo "$as_me:$LINENO: checking FFT FFTW2" >&5
15679echo $ECHO_N "checking FFT FFTW2... $ECHO_C" >&6
15680if test $have_fft_fftw2 = false; then
15681  echo "$as_me:$LINENO: result: no" >&5
15682echo "${ECHO_T}no" >&6;
15683else
15684  echo "$as_me:$LINENO: result: yes" >&5
15685echo "${ECHO_T}yes" >&6;
15686fi
15687echo "$as_me:$LINENO: checking FFT FFTW2 MPI" >&5
15688echo $ECHO_N "checking FFT FFTW2 MPI... $ECHO_C" >&6
15689if test $have_fft_fftw2mpi = false; then
15690  echo "$as_me:$LINENO: result: no" >&5
15691echo "${ECHO_T}no" >&6;
15692else
15693  echo "$as_me:$LINENO: result: yes" >&5
15694echo "${ECHO_T}yes" >&6;
15695fi
15696
15697
15698# Now, pick the right one ...
15699have_fft=false
15700if (test x"$with_fft" = xsgi && test $have_fft_sgi = true) then
15701    echo "using SGI FFT complib.sgimath"
15702    FFT_LIBS=$FFT_SGI_LIBS
15703    FFT_CFLAGS=$FFT_SGI_CFLAGS
15704    have_fft=true
15705elif (test x"$with_fft" = xessl && test $have_fft_essl = true) then
15706    echo "using FFT ESSL"
15707    FFT_LIBS=$FFT_ESSL_LIBS
15708    FFT_CFLAGS=$FFT_ESSL_CFLAGS
15709    have_fft=true
15710elif (test x"$with_fft" = xfftw2mpi && test $have_fft_fftw2mpi = true && $have_mpi = true) then
15711    echo "using FFTW2 MPI"
15712    FFT_LIBS=$FFT_FFTW2_MPI_LIBS
15713    FFT_CFLAGS=$FFT_FFTW2_MPI_CFLAGS
15714    have_fft=true
15715elif (test x"$with_fft" = xfftw3 && test $have_fft_fftw3 = true) then
15716    echo "using FFTW3"
15717    FFT_LIBS=$FFT_FFTW3_LIBS
15718    FFT_CFLAGS=$FFT_FFTW3_CFLAGS
15719    have_fft=true
15720elif (test x"$with_fft" = xfftw2 && test $have_fft_fftw2 = true) then
15721    echo "using FFTW2"
15722    FFT_LIBS=$FFT_FFTW2_LIBS
15723    FFT_CFLAGS=$FFT_FFTW2_CFLAGS
15724    have_fft=true
15725elif (test x"$with_fft" = xzfft) then
15726    echo "using FFT ZFFT"
15727    FFT_LIBS=$FFT_ZFFT_LIBS
15728    FFT_CFLAGS=$FFT_ZFFT_CFLAGS
15729    have_fft=true
15730else
15731  if (test x"$with_fft" != x) then
15732    echo "Opps ... $with_fft not supported!"
15733  fi
15734  if (test $have_fft_fftw2mpi = true && test $require_fftw2mpi = true && $have_mpi = true) then
15735         echo "using FFTW2 MPI"
15736	 FFT_LIBS=$FFT_FFTW2_MPI_LIBS
15737	 FFT_CFLAGS=$FFT_FFTW2_MPI_CFLAGS
15738  elif (test $have_fft_fftw3 = true && test $require_fftw3 = true) then
15739         echo "using FFTW3"
15740	 FFT_LIBS=$FFT_FFTW3_LIBS
15741	 FFT_CFLAGS=$FFT_FFTW3_CFLAGS
15742  elif (test $have_fft_sgi = true) then
15743	 echo "using SGI FFT complib.sgimath"
15744	 FFT_LIBS=$FFT_SGI_LIBS
15745	 FFT_CFLAGS=$FFT_SGI_CFLAGS
15746  elif (test $have_fft_essl = true) then
15747	 echo "using FFT ESSL"
15748	 FFT_LIBS=$FFT_ESSL_LIBS
15749	 FFT_CFLAGS=$FFT_ESSL_CFLAGS
15750  elif (test $have_fft_fftw3 = true) then
15751         echo "using FFTW3"
15752	 FFT_LIBS=$FFT_FFTW3_LIBS
15753	 FFT_CFLAGS=$FFT_FFTW3_CFLAGS
15754  elif (test $have_fft_fftw2 = true) then
15755         echo "using FFTW2"
15756	 FFT_LIBS=$FFT_FFTW2_LIBS
15757	 FFT_CFLAGS=$FFT_FFTW2_CFLAGS
15758  else
15759 	 echo "using FFT ZFFT"
15760	 FFT_LIBS=$FFT_ZFFT_LIBS
15761	 FFT_CFLAGS=$FFT_ZFFT_CFLAGS
15762  fi
15763fi
15764
15765
15766
15767
15768# echo "FFT_ESSL_LIBS    : $FFT_ESSL_LIBS"
15769# echo "FFT_ESSL_CFLAGS  : $FFT_ESSL_CFLAGS"
15770# echo "FFT_FFTW3_LIBS   : $FFT_FFTW3_LIBS"
15771# echo "FFT_FFTW3_CFLAGS : $FFT_FFTW3_CFLAGS"
15772# echo "FFT_FFTW2_LIBS   : $FFT_FFTW2_LIBS"
15773# echo "FFT_FFTW2_CFLAGS : $FFT_FFTW2_CFLAGS"
15774# echo "FFT_LIBS         : $FFT_LIBS"
15775# echo "FFT_CFLAGS       : $FFT_CFLAGS"
15776
15777
15778# PNG
15779LIBS=$save_libs
15780CFLAGS=$save_cflags
15781CPPFLAGS=$save_cppflags
15782have_png=true
15783PNG_LIBS="-lpng"
15784
15785echo "$as_me:$LINENO: checking for compress in -lz" >&5
15786echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
15787if test "${ac_cv_lib_z_compress+set}" = set; then
15788  echo $ECHO_N "(cached) $ECHO_C" >&6
15789else
15790  ac_check_lib_save_LIBS=$LIBS
15791LIBS="-lz  $LIBS"
15792cat >conftest.$ac_ext <<_ACEOF
15793#line $LINENO "configure"
15794#include "confdefs.h"
15795
15796/* Override any gcc2 internal prototype to avoid an error.  */
15797#ifdef __cplusplus
15798extern "C"
15799#endif
15800/* We use char because int might match the return type of a gcc2
15801   builtin and then its argument prototype would still apply.  */
15802char compress ();
15803#ifdef F77_DUMMY_MAIN
15804#  ifdef __cplusplus
15805     extern "C"
15806#  endif
15807   int F77_DUMMY_MAIN() { return 1; }
15808#endif
15809int
15810main ()
15811{
15812compress ();
15813  ;
15814  return 0;
15815}
15816_ACEOF
15817rm -f conftest.$ac_objext conftest$ac_exeext
15818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819  (eval $ac_link) 2>&5
15820  ac_status=$?
15821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822  (exit $ac_status); } &&
15823         { ac_try='test -s conftest$ac_exeext'
15824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825  (eval $ac_try) 2>&5
15826  ac_status=$?
15827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828  (exit $ac_status); }; }; then
15829  ac_cv_lib_z_compress=yes
15830else
15831  echo "$as_me: failed program was:" >&5
15832cat conftest.$ac_ext >&5
15833ac_cv_lib_z_compress=no
15834fi
15835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836LIBS=$ac_check_lib_save_LIBS
15837fi
15838echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
15839echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
15840if test $ac_cv_lib_z_compress = yes; then
15841  LIBS="$LIBS -lz" GLUT_LIBS="$GLUT_LIBS -lz"
15842fi
15843
15844if test "${ac_cv_header_png_h+set}" = set; then
15845  echo "$as_me:$LINENO: checking for png.h" >&5
15846echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15847if test "${ac_cv_header_png_h+set}" = set; then
15848  echo $ECHO_N "(cached) $ECHO_C" >&6
15849fi
15850echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15851echo "${ECHO_T}$ac_cv_header_png_h" >&6
15852else
15853  # Is the header compilable?
15854echo "$as_me:$LINENO: checking png.h usability" >&5
15855echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15856cat >conftest.$ac_ext <<_ACEOF
15857#line $LINENO "configure"
15858#include "confdefs.h"
15859$ac_includes_default
15860@%:@include <png.h>
15861_ACEOF
15862rm -f conftest.$ac_objext
15863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864  (eval $ac_compile) 2>&5
15865  ac_status=$?
15866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867  (exit $ac_status); } &&
15868         { ac_try='test -s conftest.$ac_objext'
15869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870  (eval $ac_try) 2>&5
15871  ac_status=$?
15872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873  (exit $ac_status); }; }; then
15874  ac_header_compiler=yes
15875else
15876  echo "$as_me: failed program was:" >&5
15877cat conftest.$ac_ext >&5
15878ac_header_compiler=no
15879fi
15880rm -f conftest.$ac_objext conftest.$ac_ext
15881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882echo "${ECHO_T}$ac_header_compiler" >&6
15883
15884# Is the header present?
15885echo "$as_me:$LINENO: checking png.h presence" >&5
15886echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15887cat >conftest.$ac_ext <<_ACEOF
15888#line $LINENO "configure"
15889#include "confdefs.h"
15890@%:@include <png.h>
15891_ACEOF
15892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15894  ac_status=$?
15895  egrep -v '^ *\+' conftest.er1 >conftest.err
15896  rm -f conftest.er1
15897  cat conftest.err >&5
15898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899  (exit $ac_status); } >/dev/null; then
15900  if test -s conftest.err; then
15901    ac_cpp_err=$ac_cxx_preproc_warn_flag
15902  else
15903    ac_cpp_err=
15904  fi
15905else
15906  ac_cpp_err=yes
15907fi
15908if test -z "$ac_cpp_err"; then
15909  ac_header_preproc=yes
15910else
15911  echo "$as_me: failed program was:" >&5
15912  cat conftest.$ac_ext >&5
15913  ac_header_preproc=no
15914fi
15915rm -f conftest.err conftest.$ac_ext
15916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917echo "${ECHO_T}$ac_header_preproc" >&6
15918
15919# So?  What about this header?
15920case $ac_header_compiler:$ac_header_preproc in
15921  yes:no )
15922    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15923echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15925echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
15926  no:yes )
15927    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15928echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15929    { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15930echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15931    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15932echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
15933esac
15934echo "$as_me:$LINENO: checking for png.h" >&5
15935echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15936if test "${ac_cv_header_png_h+set}" = set; then
15937  echo $ECHO_N "(cached) $ECHO_C" >&6
15938else
15939  ac_cv_header_png_h=$ac_header_preproc
15940fi
15941echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15942echo "${ECHO_T}$ac_cv_header_png_h" >&6
15943
15944fi
15945if test $ac_cv_header_png_h = yes; then
15946  :
15947else
15948  have_png=false PNG_LIBS=""
15949fi
15950
15951
15952
15953echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5
15954echo $ECHO_N "checking for png_create_write_struct in -lpng... $ECHO_C" >&6
15955if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then
15956  echo $ECHO_N "(cached) $ECHO_C" >&6
15957else
15958  ac_check_lib_save_LIBS=$LIBS
15959LIBS="-lpng  $LIBS"
15960cat >conftest.$ac_ext <<_ACEOF
15961#line $LINENO "configure"
15962#include "confdefs.h"
15963
15964/* Override any gcc2 internal prototype to avoid an error.  */
15965#ifdef __cplusplus
15966extern "C"
15967#endif
15968/* We use char because int might match the return type of a gcc2
15969   builtin and then its argument prototype would still apply.  */
15970char png_create_write_struct ();
15971#ifdef F77_DUMMY_MAIN
15972#  ifdef __cplusplus
15973     extern "C"
15974#  endif
15975   int F77_DUMMY_MAIN() { return 1; }
15976#endif
15977int
15978main ()
15979{
15980png_create_write_struct ();
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext conftest$ac_exeext
15986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987  (eval $ac_link) 2>&5
15988  ac_status=$?
15989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990  (exit $ac_status); } &&
15991         { ac_try='test -s conftest$ac_exeext'
15992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993  (eval $ac_try) 2>&5
15994  ac_status=$?
15995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996  (exit $ac_status); }; }; then
15997  ac_cv_lib_png_png_create_write_struct=yes
15998else
15999  echo "$as_me: failed program was:" >&5
16000cat conftest.$ac_ext >&5
16001ac_cv_lib_png_png_create_write_struct=no
16002fi
16003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16004LIBS=$ac_check_lib_save_LIBS
16005fi
16006echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5
16007echo "${ECHO_T}$ac_cv_lib_png_png_create_write_struct" >&6
16008if test $ac_cv_lib_png_png_create_write_struct = yes; then
16009  cat >>confdefs.h <<_ACEOF
16010@%:@define HAVE_LIBPNG 1
16011_ACEOF
16012
16013  LIBS="-lpng $LIBS"
16014
16015else
16016  have_png=false PNG_LIBS=""
16017fi
16018
16019if (test "$PNG_LIBS" != "") then
16020   echo "using PNG... yes"
16021else
16022   echo "using PNG... no"
16023fi
16024
16025
16026# X11
16027LIBS=$save_libs
16028CFLAGS=$save_cflags
16029CPPFLAGS=$save_cppflags
16030have_x11=true
16031#X_CFLAGS="-I/usr/X11R6/include"
16032#X_LIBS="-L/usr/X11R6/lib -lXm -lXt -lXext -lX11"
16033LIBS="$X_LIBS $LIBS -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11"
16034CFLAGS="$CFLAGS $X_CFLAGS"
16035echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5
16036echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6
16037if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then
16038  echo $ECHO_N "(cached) $ECHO_C" >&6
16039else
16040  ac_check_lib_save_LIBS=$LIBS
16041LIBS="-lpthread  $LIBS"
16042cat >conftest.$ac_ext <<_ACEOF
16043#line $LINENO "configure"
16044#include "confdefs.h"
16045
16046/* Override any gcc2 internal prototype to avoid an error.  */
16047#ifdef __cplusplus
16048extern "C"
16049#endif
16050/* We use char because int might match the return type of a gcc2
16051   builtin and then its argument prototype would still apply.  */
16052char pthread_cancel ();
16053#ifdef F77_DUMMY_MAIN
16054#  ifdef __cplusplus
16055     extern "C"
16056#  endif
16057   int F77_DUMMY_MAIN() { return 1; }
16058#endif
16059int
16060main ()
16061{
16062pthread_cancel ();
16063  ;
16064  return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext conftest$ac_exeext
16068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16069  (eval $ac_link) 2>&5
16070  ac_status=$?
16071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072  (exit $ac_status); } &&
16073         { ac_try='test -s conftest$ac_exeext'
16074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075  (eval $ac_try) 2>&5
16076  ac_status=$?
16077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078  (exit $ac_status); }; }; then
16079  ac_cv_lib_pthread_pthread_cancel=yes
16080else
16081  echo "$as_me: failed program was:" >&5
16082cat conftest.$ac_ext >&5
16083ac_cv_lib_pthread_pthread_cancel=no
16084fi
16085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16086LIBS=$ac_check_lib_save_LIBS
16087fi
16088echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5
16089echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6
16090if test $ac_cv_lib_pthread_pthread_cancel = yes; then
16091  LIBS="$LIBS -lpthread"
16092fi
16093
16094echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16095echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16096if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16097  echo $ECHO_N "(cached) $ECHO_C" >&6
16098else
16099  ac_check_lib_save_LIBS=$LIBS
16100LIBS="-ldl  $LIBS"
16101cat >conftest.$ac_ext <<_ACEOF
16102#line $LINENO "configure"
16103#include "confdefs.h"
16104
16105/* Override any gcc2 internal prototype to avoid an error.  */
16106#ifdef __cplusplus
16107extern "C"
16108#endif
16109/* We use char because int might match the return type of a gcc2
16110   builtin and then its argument prototype would still apply.  */
16111char dlopen ();
16112#ifdef F77_DUMMY_MAIN
16113#  ifdef __cplusplus
16114     extern "C"
16115#  endif
16116   int F77_DUMMY_MAIN() { return 1; }
16117#endif
16118int
16119main ()
16120{
16121dlopen ();
16122  ;
16123  return 0;
16124}
16125_ACEOF
16126rm -f conftest.$ac_objext conftest$ac_exeext
16127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128  (eval $ac_link) 2>&5
16129  ac_status=$?
16130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131  (exit $ac_status); } &&
16132         { ac_try='test -s conftest$ac_exeext'
16133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134  (eval $ac_try) 2>&5
16135  ac_status=$?
16136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137  (exit $ac_status); }; }; then
16138  ac_cv_lib_dl_dlopen=yes
16139else
16140  echo "$as_me: failed program was:" >&5
16141cat conftest.$ac_ext >&5
16142ac_cv_lib_dl_dlopen=no
16143fi
16144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16145LIBS=$ac_check_lib_save_LIBS
16146fi
16147echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16148echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16149if test $ac_cv_lib_dl_dlopen = yes; then
16150  LIBS="$LIBS -ldl"
16151fi
16152
16153
16154#echo "$X_LIBS $X_CFLAGS"
16155#echo "$LIBS $CFLAGS"
16156
16157
16158#AC_CHECK_LIB(Xm, XmStringFree, ,[have_x11=false])
16159
16160echo "$as_me:$LINENO: checking for XmuAllStandardColormaps  in -lXmu" >&5
16161echo $ECHO_N "checking for XmuAllStandardColormaps  in -lXmu... $ECHO_C" >&6
16162if test "${ac_cv_lib_Xmu_XmuAllStandardColormaps_+set}" = set; then
16163  echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165  ac_check_lib_save_LIBS=$LIBS
16166LIBS="-lXmu  $LIBS"
16167cat >conftest.$ac_ext <<_ACEOF
16168#line $LINENO "configure"
16169#include "confdefs.h"
16170
16171/* Override any gcc2 internal prototype to avoid an error.  */
16172#ifdef __cplusplus
16173extern "C"
16174#endif
16175/* We use char because int might match the return type of a gcc2
16176   builtin and then its argument prototype would still apply.  */
16177char XmuAllStandardColormaps  ();
16178#ifdef F77_DUMMY_MAIN
16179#  ifdef __cplusplus
16180     extern "C"
16181#  endif
16182   int F77_DUMMY_MAIN() { return 1; }
16183#endif
16184int
16185main ()
16186{
16187XmuAllStandardColormaps  ();
16188  ;
16189  return 0;
16190}
16191_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194  (eval $ac_link) 2>&5
16195  ac_status=$?
16196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197  (exit $ac_status); } &&
16198         { ac_try='test -s conftest$ac_exeext'
16199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200  (eval $ac_try) 2>&5
16201  ac_status=$?
16202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203  (exit $ac_status); }; }; then
16204  ac_cv_lib_Xmu_XmuAllStandardColormaps_=yes
16205else
16206  echo "$as_me: failed program was:" >&5
16207cat conftest.$ac_ext >&5
16208ac_cv_lib_Xmu_XmuAllStandardColormaps_=no
16209fi
16210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16211LIBS=$ac_check_lib_save_LIBS
16212fi
16213echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuAllStandardColormaps_" >&5
16214echo "${ECHO_T}$ac_cv_lib_Xmu_XmuAllStandardColormaps_" >&6
16215if test $ac_cv_lib_Xmu_XmuAllStandardColormaps_ = yes; then
16216  cat >>confdefs.h <<_ACEOF
16217@%:@define HAVE_LIBXMU 1
16218_ACEOF
16219
16220  LIBS="-lXmu $LIBS"
16221
16222else
16223  have_x11=false
16224fi
16225
16226
16227echo "$as_me:$LINENO: checking for XtAppInitialize in -lXt" >&5
16228echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
16229if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
16230  echo $ECHO_N "(cached) $ECHO_C" >&6
16231else
16232  ac_check_lib_save_LIBS=$LIBS
16233LIBS="-lXt  $LIBS"
16234cat >conftest.$ac_ext <<_ACEOF
16235#line $LINENO "configure"
16236#include "confdefs.h"
16237
16238/* Override any gcc2 internal prototype to avoid an error.  */
16239#ifdef __cplusplus
16240extern "C"
16241#endif
16242/* We use char because int might match the return type of a gcc2
16243   builtin and then its argument prototype would still apply.  */
16244char XtAppInitialize ();
16245#ifdef F77_DUMMY_MAIN
16246#  ifdef __cplusplus
16247     extern "C"
16248#  endif
16249   int F77_DUMMY_MAIN() { return 1; }
16250#endif
16251int
16252main ()
16253{
16254XtAppInitialize ();
16255  ;
16256  return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext conftest$ac_exeext
16260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261  (eval $ac_link) 2>&5
16262  ac_status=$?
16263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264  (exit $ac_status); } &&
16265         { ac_try='test -s conftest$ac_exeext'
16266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267  (eval $ac_try) 2>&5
16268  ac_status=$?
16269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270  (exit $ac_status); }; }; then
16271  ac_cv_lib_Xt_XtAppInitialize=yes
16272else
16273  echo "$as_me: failed program was:" >&5
16274cat conftest.$ac_ext >&5
16275ac_cv_lib_Xt_XtAppInitialize=no
16276fi
16277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16278LIBS=$ac_check_lib_save_LIBS
16279fi
16280echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
16281echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
16282if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
16283  cat >>confdefs.h <<_ACEOF
16284@%:@define HAVE_LIBXT 1
16285_ACEOF
16286
16287  LIBS="-lXt $LIBS"
16288
16289else
16290  have_x11=false
16291fi
16292
16293
16294echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16295echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
16296if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16297  echo $ECHO_N "(cached) $ECHO_C" >&6
16298else
16299  ac_check_lib_save_LIBS=$LIBS
16300LIBS="-lSM  $LIBS"
16301cat >conftest.$ac_ext <<_ACEOF
16302#line $LINENO "configure"
16303#include "confdefs.h"
16304
16305/* Override any gcc2 internal prototype to avoid an error.  */
16306#ifdef __cplusplus
16307extern "C"
16308#endif
16309/* We use char because int might match the return type of a gcc2
16310   builtin and then its argument prototype would still apply.  */
16311char SmcOpenConnection ();
16312#ifdef F77_DUMMY_MAIN
16313#  ifdef __cplusplus
16314     extern "C"
16315#  endif
16316   int F77_DUMMY_MAIN() { return 1; }
16317#endif
16318int
16319main ()
16320{
16321SmcOpenConnection ();
16322  ;
16323  return 0;
16324}
16325_ACEOF
16326rm -f conftest.$ac_objext conftest$ac_exeext
16327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328  (eval $ac_link) 2>&5
16329  ac_status=$?
16330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331  (exit $ac_status); } &&
16332         { ac_try='test -s conftest$ac_exeext'
16333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334  (eval $ac_try) 2>&5
16335  ac_status=$?
16336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337  (exit $ac_status); }; }; then
16338  ac_cv_lib_SM_SmcOpenConnection=yes
16339else
16340  echo "$as_me: failed program was:" >&5
16341cat conftest.$ac_ext >&5
16342ac_cv_lib_SM_SmcOpenConnection=no
16343fi
16344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16345LIBS=$ac_check_lib_save_LIBS
16346fi
16347echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16348echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
16349if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16350  cat >>confdefs.h <<_ACEOF
16351@%:@define HAVE_LIBSM 1
16352_ACEOF
16353
16354  LIBS="-lSM $LIBS"
16355
16356else
16357  have_x11=false
16358fi
16359
16360
16361echo "$as_me:$LINENO: checking for IceAcceptConnection in -lICE" >&5
16362echo $ECHO_N "checking for IceAcceptConnection in -lICE... $ECHO_C" >&6
16363if test "${ac_cv_lib_ICE_IceAcceptConnection+set}" = set; then
16364  echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366  ac_check_lib_save_LIBS=$LIBS
16367LIBS="-lICE  $LIBS"
16368cat >conftest.$ac_ext <<_ACEOF
16369#line $LINENO "configure"
16370#include "confdefs.h"
16371
16372/* Override any gcc2 internal prototype to avoid an error.  */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376/* We use char because int might match the return type of a gcc2
16377   builtin and then its argument prototype would still apply.  */
16378char IceAcceptConnection ();
16379#ifdef F77_DUMMY_MAIN
16380#  ifdef __cplusplus
16381     extern "C"
16382#  endif
16383   int F77_DUMMY_MAIN() { return 1; }
16384#endif
16385int
16386main ()
16387{
16388IceAcceptConnection ();
16389  ;
16390  return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext conftest$ac_exeext
16394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395  (eval $ac_link) 2>&5
16396  ac_status=$?
16397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398  (exit $ac_status); } &&
16399         { ac_try='test -s conftest$ac_exeext'
16400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401  (eval $ac_try) 2>&5
16402  ac_status=$?
16403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404  (exit $ac_status); }; }; then
16405  ac_cv_lib_ICE_IceAcceptConnection=yes
16406else
16407  echo "$as_me: failed program was:" >&5
16408cat conftest.$ac_ext >&5
16409ac_cv_lib_ICE_IceAcceptConnection=no
16410fi
16411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16412LIBS=$ac_check_lib_save_LIBS
16413fi
16414echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceAcceptConnection" >&5
16415echo "${ECHO_T}$ac_cv_lib_ICE_IceAcceptConnection" >&6
16416if test $ac_cv_lib_ICE_IceAcceptConnection = yes; then
16417  cat >>confdefs.h <<_ACEOF
16418@%:@define HAVE_LIBICE 1
16419_ACEOF
16420
16421  LIBS="-lICE $LIBS"
16422
16423else
16424  have_x11=false
16425fi
16426
16427
16428echo "$as_me:$LINENO: checking for XextCreateExtension in -lXext" >&5
16429echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
16430if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
16431  echo $ECHO_N "(cached) $ECHO_C" >&6
16432else
16433  ac_check_lib_save_LIBS=$LIBS
16434LIBS="-lXext  $LIBS"
16435cat >conftest.$ac_ext <<_ACEOF
16436#line $LINENO "configure"
16437#include "confdefs.h"
16438
16439/* Override any gcc2 internal prototype to avoid an error.  */
16440#ifdef __cplusplus
16441extern "C"
16442#endif
16443/* We use char because int might match the return type of a gcc2
16444   builtin and then its argument prototype would still apply.  */
16445char XextCreateExtension ();
16446#ifdef F77_DUMMY_MAIN
16447#  ifdef __cplusplus
16448     extern "C"
16449#  endif
16450   int F77_DUMMY_MAIN() { return 1; }
16451#endif
16452int
16453main ()
16454{
16455XextCreateExtension ();
16456  ;
16457  return 0;
16458}
16459_ACEOF
16460rm -f conftest.$ac_objext conftest$ac_exeext
16461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462  (eval $ac_link) 2>&5
16463  ac_status=$?
16464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465  (exit $ac_status); } &&
16466         { ac_try='test -s conftest$ac_exeext'
16467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468  (eval $ac_try) 2>&5
16469  ac_status=$?
16470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471  (exit $ac_status); }; }; then
16472  ac_cv_lib_Xext_XextCreateExtension=yes
16473else
16474  echo "$as_me: failed program was:" >&5
16475cat conftest.$ac_ext >&5
16476ac_cv_lib_Xext_XextCreateExtension=no
16477fi
16478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16479LIBS=$ac_check_lib_save_LIBS
16480fi
16481echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
16482echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
16483if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
16484  cat >>confdefs.h <<_ACEOF
16485@%:@define HAVE_LIBXEXT 1
16486_ACEOF
16487
16488  LIBS="-lXext $LIBS"
16489
16490else
16491  have_x11=false
16492fi
16493
16494
16495echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
16496echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
16497if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
16498  echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500  ac_check_lib_save_LIBS=$LIBS
16501LIBS="-lX11  $LIBS"
16502cat >conftest.$ac_ext <<_ACEOF
16503#line $LINENO "configure"
16504#include "confdefs.h"
16505
16506/* Override any gcc2 internal prototype to avoid an error.  */
16507#ifdef __cplusplus
16508extern "C"
16509#endif
16510/* We use char because int might match the return type of a gcc2
16511   builtin and then its argument prototype would still apply.  */
16512char XOpenDisplay ();
16513#ifdef F77_DUMMY_MAIN
16514#  ifdef __cplusplus
16515     extern "C"
16516#  endif
16517   int F77_DUMMY_MAIN() { return 1; }
16518#endif
16519int
16520main ()
16521{
16522XOpenDisplay ();
16523  ;
16524  return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext conftest$ac_exeext
16528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16529  (eval $ac_link) 2>&5
16530  ac_status=$?
16531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532  (exit $ac_status); } &&
16533         { ac_try='test -s conftest$ac_exeext'
16534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535  (eval $ac_try) 2>&5
16536  ac_status=$?
16537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538  (exit $ac_status); }; }; then
16539  ac_cv_lib_X11_XOpenDisplay=yes
16540else
16541  echo "$as_me: failed program was:" >&5
16542cat conftest.$ac_ext >&5
16543ac_cv_lib_X11_XOpenDisplay=no
16544fi
16545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16546LIBS=$ac_check_lib_save_LIBS
16547fi
16548echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
16549echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
16550if test $ac_cv_lib_X11_XOpenDisplay = yes; then
16551  cat >>confdefs.h <<_ACEOF
16552@%:@define HAVE_LIBX11 1
16553_ACEOF
16554
16555  LIBS="-lX11 $LIBS"
16556
16557else
16558  have_x11=false
16559fi
16560
16561
16562echo "$as_me:$LINENO: checking for XOpenDevice in -lXi" >&5
16563echo $ECHO_N "checking for XOpenDevice in -lXi... $ECHO_C" >&6
16564if test "${ac_cv_lib_Xi_XOpenDevice+set}" = set; then
16565  echo $ECHO_N "(cached) $ECHO_C" >&6
16566else
16567  ac_check_lib_save_LIBS=$LIBS
16568LIBS="-lXi  $LIBS"
16569cat >conftest.$ac_ext <<_ACEOF
16570#line $LINENO "configure"
16571#include "confdefs.h"
16572
16573/* Override any gcc2 internal prototype to avoid an error.  */
16574#ifdef __cplusplus
16575extern "C"
16576#endif
16577/* We use char because int might match the return type of a gcc2
16578   builtin and then its argument prototype would still apply.  */
16579char XOpenDevice ();
16580#ifdef F77_DUMMY_MAIN
16581#  ifdef __cplusplus
16582     extern "C"
16583#  endif
16584   int F77_DUMMY_MAIN() { return 1; }
16585#endif
16586int
16587main ()
16588{
16589XOpenDevice ();
16590  ;
16591  return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext conftest$ac_exeext
16595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596  (eval $ac_link) 2>&5
16597  ac_status=$?
16598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599  (exit $ac_status); } &&
16600         { ac_try='test -s conftest$ac_exeext'
16601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602  (eval $ac_try) 2>&5
16603  ac_status=$?
16604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605  (exit $ac_status); }; }; then
16606  ac_cv_lib_Xi_XOpenDevice=yes
16607else
16608  echo "$as_me: failed program was:" >&5
16609cat conftest.$ac_ext >&5
16610ac_cv_lib_Xi_XOpenDevice=no
16611fi
16612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16613LIBS=$ac_check_lib_save_LIBS
16614fi
16615echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XOpenDevice" >&5
16616echo "${ECHO_T}$ac_cv_lib_Xi_XOpenDevice" >&6
16617if test $ac_cv_lib_Xi_XOpenDevice = yes; then
16618  cat >>confdefs.h <<_ACEOF
16619@%:@define HAVE_LIBXI 1
16620_ACEOF
16621
16622  LIBS="-lXi $LIBS"
16623
16624else
16625  have_x11=false
16626fi
16627
16628
16629
16630# GLUT
16631LIBS=$save_libs
16632CFLAGS=$save_cflags
16633CPPFLAGS=$save_cppflags
16634have_glut=true
16635require_glut=false
16636if test "$with_glut" != ""; then
16637   if (test "$with_glut" != false && test "$with_glut" != no) then
16638      require_glut=true
16639   fi
16640   if (test "$with_glut" != yes && test "$with_glut" != true && test "$with_glut" != false && test "$with_glut" != no) then
16641	GLUT_ROOT="$with_glut"
16642	GLUT_LIBS="-L$GLUT_ROOT/lib -L$GLUT_ROOT/lib/glut"
16643	GLUT_CFLAGS="-I$GLUT_ROOT/include -I$GLUT_ROOT/include/GL"
16644   fi
16645fi
16646
16647GLUT_LIBS="$GLUT_LIBS $X_LIBS -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11"
16648GLUT_CFLAGS="$GLUT_CFLAGS $X_CFLAGS"
16649LIBS=$GLUT_LIBS
16650CPPFLAGS="$CPPFLAGS $GLUT_CFLAGS"
16651echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5
16652echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6
16653if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then
16654  echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656  ac_check_lib_save_LIBS=$LIBS
16657LIBS="-lpthread  $LIBS"
16658cat >conftest.$ac_ext <<_ACEOF
16659#line $LINENO "configure"
16660#include "confdefs.h"
16661
16662/* Override any gcc2 internal prototype to avoid an error.  */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666/* We use char because int might match the return type of a gcc2
16667   builtin and then its argument prototype would still apply.  */
16668char pthread_cancel ();
16669#ifdef F77_DUMMY_MAIN
16670#  ifdef __cplusplus
16671     extern "C"
16672#  endif
16673   int F77_DUMMY_MAIN() { return 1; }
16674#endif
16675int
16676main ()
16677{
16678pthread_cancel ();
16679  ;
16680  return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext conftest$ac_exeext
16684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16685  (eval $ac_link) 2>&5
16686  ac_status=$?
16687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688  (exit $ac_status); } &&
16689         { ac_try='test -s conftest$ac_exeext'
16690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691  (eval $ac_try) 2>&5
16692  ac_status=$?
16693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694  (exit $ac_status); }; }; then
16695  ac_cv_lib_pthread_pthread_cancel=yes
16696else
16697  echo "$as_me: failed program was:" >&5
16698cat conftest.$ac_ext >&5
16699ac_cv_lib_pthread_pthread_cancel=no
16700fi
16701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16702LIBS=$ac_check_lib_save_LIBS
16703fi
16704echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5
16705echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6
16706if test $ac_cv_lib_pthread_pthread_cancel = yes; then
16707  GLUT_LIBS="$GLUT_LIBS -lpthread" LIBS="$LIBS -lpthread"
16708fi
16709
16710echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16711echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16712if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16713  echo $ECHO_N "(cached) $ECHO_C" >&6
16714else
16715  ac_check_lib_save_LIBS=$LIBS
16716LIBS="-ldl  $LIBS"
16717cat >conftest.$ac_ext <<_ACEOF
16718#line $LINENO "configure"
16719#include "confdefs.h"
16720
16721/* Override any gcc2 internal prototype to avoid an error.  */
16722#ifdef __cplusplus
16723extern "C"
16724#endif
16725/* We use char because int might match the return type of a gcc2
16726   builtin and then its argument prototype would still apply.  */
16727char dlopen ();
16728#ifdef F77_DUMMY_MAIN
16729#  ifdef __cplusplus
16730     extern "C"
16731#  endif
16732   int F77_DUMMY_MAIN() { return 1; }
16733#endif
16734int
16735main ()
16736{
16737dlopen ();
16738  ;
16739  return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext conftest$ac_exeext
16743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744  (eval $ac_link) 2>&5
16745  ac_status=$?
16746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747  (exit $ac_status); } &&
16748         { ac_try='test -s conftest$ac_exeext'
16749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750  (eval $ac_try) 2>&5
16751  ac_status=$?
16752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753  (exit $ac_status); }; }; then
16754  ac_cv_lib_dl_dlopen=yes
16755else
16756  echo "$as_me: failed program was:" >&5
16757cat conftest.$ac_ext >&5
16758ac_cv_lib_dl_dlopen=no
16759fi
16760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16761LIBS=$ac_check_lib_save_LIBS
16762fi
16763echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16765if test $ac_cv_lib_dl_dlopen = yes; then
16766  GLUT_LIBS="$GLUT_LIBS -ldl" LIBS="$LIBS -ldl"
16767fi
16768
16769
16770echo "$as_me:$LINENO: checking for glClear in -lGL" >&5
16771echo $ECHO_N "checking for glClear in -lGL... $ECHO_C" >&6
16772if test "${ac_cv_lib_GL_glClear+set}" = set; then
16773  echo $ECHO_N "(cached) $ECHO_C" >&6
16774else
16775  ac_check_lib_save_LIBS=$LIBS
16776LIBS="-lGL  $LIBS"
16777cat >conftest.$ac_ext <<_ACEOF
16778#line $LINENO "configure"
16779#include "confdefs.h"
16780
16781/* Override any gcc2 internal prototype to avoid an error.  */
16782#ifdef __cplusplus
16783extern "C"
16784#endif
16785/* We use char because int might match the return type of a gcc2
16786   builtin and then its argument prototype would still apply.  */
16787char glClear ();
16788#ifdef F77_DUMMY_MAIN
16789#  ifdef __cplusplus
16790     extern "C"
16791#  endif
16792   int F77_DUMMY_MAIN() { return 1; }
16793#endif
16794int
16795main ()
16796{
16797glClear ();
16798  ;
16799  return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
16803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804  (eval $ac_link) 2>&5
16805  ac_status=$?
16806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807  (exit $ac_status); } &&
16808         { ac_try='test -s conftest$ac_exeext'
16809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810  (eval $ac_try) 2>&5
16811  ac_status=$?
16812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813  (exit $ac_status); }; }; then
16814  ac_cv_lib_GL_glClear=yes
16815else
16816  echo "$as_me: failed program was:" >&5
16817cat conftest.$ac_ext >&5
16818ac_cv_lib_GL_glClear=no
16819fi
16820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16821LIBS=$ac_check_lib_save_LIBS
16822fi
16823echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glClear" >&5
16824echo "${ECHO_T}$ac_cv_lib_GL_glClear" >&6
16825if test $ac_cv_lib_GL_glClear = yes; then
16826  cat >>confdefs.h <<_ACEOF
16827@%:@define HAVE_LIBGL 1
16828_ACEOF
16829
16830  LIBS="-lGL $LIBS"
16831
16832else
16833  have_glut=false
16834fi
16835
16836
16837echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
16838echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
16839if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
16840  echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842  ac_check_lib_save_LIBS=$LIBS
16843LIBS="-lGLU  $LIBS"
16844cat >conftest.$ac_ext <<_ACEOF
16845#line $LINENO "configure"
16846#include "confdefs.h"
16847
16848/* Override any gcc2 internal prototype to avoid an error.  */
16849#ifdef __cplusplus
16850extern "C"
16851#endif
16852/* We use char because int might match the return type of a gcc2
16853   builtin and then its argument prototype would still apply.  */
16854char gluLookAt ();
16855#ifdef F77_DUMMY_MAIN
16856#  ifdef __cplusplus
16857     extern "C"
16858#  endif
16859   int F77_DUMMY_MAIN() { return 1; }
16860#endif
16861int
16862main ()
16863{
16864gluLookAt ();
16865  ;
16866  return 0;
16867}
16868_ACEOF
16869rm -f conftest.$ac_objext conftest$ac_exeext
16870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16871  (eval $ac_link) 2>&5
16872  ac_status=$?
16873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874  (exit $ac_status); } &&
16875         { ac_try='test -s conftest$ac_exeext'
16876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877  (eval $ac_try) 2>&5
16878  ac_status=$?
16879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880  (exit $ac_status); }; }; then
16881  ac_cv_lib_GLU_gluLookAt=yes
16882else
16883  echo "$as_me: failed program was:" >&5
16884cat conftest.$ac_ext >&5
16885ac_cv_lib_GLU_gluLookAt=no
16886fi
16887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16888LIBS=$ac_check_lib_save_LIBS
16889fi
16890echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
16891echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
16892if test $ac_cv_lib_GLU_gluLookAt = yes; then
16893  cat >>confdefs.h <<_ACEOF
16894@%:@define HAVE_LIBGLU 1
16895_ACEOF
16896
16897  LIBS="-lGLU $LIBS"
16898
16899else
16900  have_glut=false
16901fi
16902
16903
16904echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
16905echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
16906if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
16907  echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909  ac_check_lib_save_LIBS=$LIBS
16910LIBS="-lglut  $LIBS"
16911cat >conftest.$ac_ext <<_ACEOF
16912#line $LINENO "configure"
16913#include "confdefs.h"
16914
16915/* Override any gcc2 internal prototype to avoid an error.  */
16916#ifdef __cplusplus
16917extern "C"
16918#endif
16919/* We use char because int might match the return type of a gcc2
16920   builtin and then its argument prototype would still apply.  */
16921char glutMainLoop ();
16922#ifdef F77_DUMMY_MAIN
16923#  ifdef __cplusplus
16924     extern "C"
16925#  endif
16926   int F77_DUMMY_MAIN() { return 1; }
16927#endif
16928int
16929main ()
16930{
16931glutMainLoop ();
16932  ;
16933  return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext conftest$ac_exeext
16937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938  (eval $ac_link) 2>&5
16939  ac_status=$?
16940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941  (exit $ac_status); } &&
16942         { ac_try='test -s conftest$ac_exeext'
16943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944  (eval $ac_try) 2>&5
16945  ac_status=$?
16946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947  (exit $ac_status); }; }; then
16948  ac_cv_lib_glut_glutMainLoop=yes
16949else
16950  echo "$as_me: failed program was:" >&5
16951cat conftest.$ac_ext >&5
16952ac_cv_lib_glut_glutMainLoop=no
16953fi
16954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16955LIBS=$ac_check_lib_save_LIBS
16956fi
16957echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
16958echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
16959if test $ac_cv_lib_glut_glutMainLoop = yes; then
16960  cat >>confdefs.h <<_ACEOF
16961@%:@define HAVE_LIBGLUT 1
16962_ACEOF
16963
16964  LIBS="-lglut $LIBS"
16965
16966else
16967  have_glut=false
16968fi
16969
16970if test "${ac_cv_header_GL_glut_h+set}" = set; then
16971  echo "$as_me:$LINENO: checking for GL/glut.h" >&5
16972echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
16973if test "${ac_cv_header_GL_glut_h+set}" = set; then
16974  echo $ECHO_N "(cached) $ECHO_C" >&6
16975fi
16976echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
16977echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
16978else
16979  # Is the header compilable?
16980echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
16981echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6
16982cat >conftest.$ac_ext <<_ACEOF
16983#line $LINENO "configure"
16984#include "confdefs.h"
16985$ac_includes_default
16986@%:@include <GL/glut.h>
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990  (eval $ac_compile) 2>&5
16991  ac_status=$?
16992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993  (exit $ac_status); } &&
16994         { ac_try='test -s conftest.$ac_objext'
16995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996  (eval $ac_try) 2>&5
16997  ac_status=$?
16998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999  (exit $ac_status); }; }; then
17000  ac_header_compiler=yes
17001else
17002  echo "$as_me: failed program was:" >&5
17003cat conftest.$ac_ext >&5
17004ac_header_compiler=no
17005fi
17006rm -f conftest.$ac_objext conftest.$ac_ext
17007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008echo "${ECHO_T}$ac_header_compiler" >&6
17009
17010# Is the header present?
17011echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
17012echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6
17013cat >conftest.$ac_ext <<_ACEOF
17014#line $LINENO "configure"
17015#include "confdefs.h"
17016@%:@include <GL/glut.h>
17017_ACEOF
17018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17019  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17020  ac_status=$?
17021  egrep -v '^ *\+' conftest.er1 >conftest.err
17022  rm -f conftest.er1
17023  cat conftest.err >&5
17024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025  (exit $ac_status); } >/dev/null; then
17026  if test -s conftest.err; then
17027    ac_cpp_err=$ac_cxx_preproc_warn_flag
17028  else
17029    ac_cpp_err=
17030  fi
17031else
17032  ac_cpp_err=yes
17033fi
17034if test -z "$ac_cpp_err"; then
17035  ac_header_preproc=yes
17036else
17037  echo "$as_me: failed program was:" >&5
17038  cat conftest.$ac_ext >&5
17039  ac_header_preproc=no
17040fi
17041rm -f conftest.err conftest.$ac_ext
17042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17043echo "${ECHO_T}$ac_header_preproc" >&6
17044
17045# So?  What about this header?
17046case $ac_header_compiler:$ac_header_preproc in
17047  yes:no )
17048    { echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
17049echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17050    { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
17051echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;};;
17052  no:yes )
17053    { echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
17054echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
17055    { echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
17056echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
17057    { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
17058echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;};;
17059esac
17060echo "$as_me:$LINENO: checking for GL/glut.h" >&5
17061echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
17062if test "${ac_cv_header_GL_glut_h+set}" = set; then
17063  echo $ECHO_N "(cached) $ECHO_C" >&6
17064else
17065  ac_cv_header_GL_glut_h=$ac_header_preproc
17066fi
17067echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
17068echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
17069
17070fi
17071if test $ac_cv_header_GL_glut_h = yes; then
17072  :
17073else
17074  have_glut=false
17075fi
17076
17077
17078echo "$as_me:$LINENO: checking for jpeg_CreateDecompress in -ljpeg" >&5
17079echo $ECHO_N "checking for jpeg_CreateDecompress in -ljpeg... $ECHO_C" >&6
17080if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then
17081  echo $ECHO_N "(cached) $ECHO_C" >&6
17082else
17083  ac_check_lib_save_LIBS=$LIBS
17084LIBS="-ljpeg  $LIBS"
17085cat >conftest.$ac_ext <<_ACEOF
17086#line $LINENO "configure"
17087#include "confdefs.h"
17088
17089/* Override any gcc2 internal prototype to avoid an error.  */
17090#ifdef __cplusplus
17091extern "C"
17092#endif
17093/* We use char because int might match the return type of a gcc2
17094   builtin and then its argument prototype would still apply.  */
17095char jpeg_CreateDecompress ();
17096#ifdef F77_DUMMY_MAIN
17097#  ifdef __cplusplus
17098     extern "C"
17099#  endif
17100   int F77_DUMMY_MAIN() { return 1; }
17101#endif
17102int
17103main ()
17104{
17105jpeg_CreateDecompress ();
17106  ;
17107  return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext conftest$ac_exeext
17111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112  (eval $ac_link) 2>&5
17113  ac_status=$?
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); } &&
17116         { ac_try='test -s conftest$ac_exeext'
17117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118  (eval $ac_try) 2>&5
17119  ac_status=$?
17120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121  (exit $ac_status); }; }; then
17122  ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
17123else
17124  echo "$as_me: failed program was:" >&5
17125cat conftest.$ac_ext >&5
17126ac_cv_lib_jpeg_jpeg_CreateDecompress=no
17127fi
17128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17129LIBS=$ac_check_lib_save_LIBS
17130fi
17131echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
17132echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6
17133if test $ac_cv_lib_jpeg_jpeg_CreateDecompress = yes; then
17134  GLUT_LIBS="$GLUT_LIBS -ljpeg"
17135fi
17136
17137echo "$as_me:$LINENO: checking for TIFFSetErrorHandler in -ltiff" >&5
17138echo $ECHO_N "checking for TIFFSetErrorHandler in -ltiff... $ECHO_C" >&6
17139if test "${ac_cv_lib_tiff_TIFFSetErrorHandler+set}" = set; then
17140  echo $ECHO_N "(cached) $ECHO_C" >&6
17141else
17142  ac_check_lib_save_LIBS=$LIBS
17143LIBS="-ltiff  $LIBS"
17144cat >conftest.$ac_ext <<_ACEOF
17145#line $LINENO "configure"
17146#include "confdefs.h"
17147
17148/* Override any gcc2 internal prototype to avoid an error.  */
17149#ifdef __cplusplus
17150extern "C"
17151#endif
17152/* We use char because int might match the return type of a gcc2
17153   builtin and then its argument prototype would still apply.  */
17154char TIFFSetErrorHandler ();
17155#ifdef F77_DUMMY_MAIN
17156#  ifdef __cplusplus
17157     extern "C"
17158#  endif
17159   int F77_DUMMY_MAIN() { return 1; }
17160#endif
17161int
17162main ()
17163{
17164TIFFSetErrorHandler ();
17165  ;
17166  return 0;
17167}
17168_ACEOF
17169rm -f conftest.$ac_objext conftest$ac_exeext
17170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17171  (eval $ac_link) 2>&5
17172  ac_status=$?
17173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174  (exit $ac_status); } &&
17175         { ac_try='test -s conftest$ac_exeext'
17176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177  (eval $ac_try) 2>&5
17178  ac_status=$?
17179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180  (exit $ac_status); }; }; then
17181  ac_cv_lib_tiff_TIFFSetErrorHandler=yes
17182else
17183  echo "$as_me: failed program was:" >&5
17184cat conftest.$ac_ext >&5
17185ac_cv_lib_tiff_TIFFSetErrorHandler=no
17186fi
17187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17188LIBS=$ac_check_lib_save_LIBS
17189fi
17190echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFSetErrorHandler" >&5
17191echo "${ECHO_T}$ac_cv_lib_tiff_TIFFSetErrorHandler" >&6
17192if test $ac_cv_lib_tiff_TIFFSetErrorHandler = yes; then
17193  GLUT_LIBS="$GLUT_LIBS -ltiff"
17194fi
17195
17196
17197echo "$as_me:$LINENO: checking found GLUT" >&5
17198echo $ECHO_N "checking found GLUT... $ECHO_C" >&6
17199if test $have_glut = false; then
17200  echo "$as_me:$LINENO: result: no" >&5
17201echo "${ECHO_T}no" >&6;
17202else
17203  echo "$as_me:$LINENO: result: yes" >&5
17204echo "${ECHO_T}yes" >&6;
17205fi
17206if (test $require_glut = true) then
17207  if (test $have_glut = false) then
17208    { { echo "$as_me:$LINENO: error: Required library GLUT not found!" >&5
17209echo "$as_me: error: Required library GLUT not found!" >&2;}
17210   { (exit 1); exit 1; }; }
17211  elif (test $have_png = false) then
17212    { { echo "$as_me:$LINENO: error: GLUT GUI cannot be built.  Missing PNG library!!!" >&5
17213echo "$as_me: error: GLUT GUI cannot be built.  Missing PNG library!!!" >&2;}
17214   { (exit 1); exit 1; }; }
17215  elif (test $have_x11 = false) then
17216    { { echo "$as_me:$LINENO: error: GLUT GUI cannot be built.  Missing X11 library!!!" >&5
17217echo "$as_me: error: GLUT GUI cannot be built.  Missing X11 library!!!" >&2;}
17218   { (exit 1); exit 1; }; }
17219  else
17220    GLUT_CFLAGS="-DHAVE_GLUT $GLUT_CFLAGS"
17221  fi
17222else
17223  GLUT_CFLAGS=""
17224  GLUT_LIBS=""
17225  X_LIBS=""
17226  X_CFLAGS=""
17227  #PNG_LIBS=""
17228fi
17229if (test "$GLUT_LIBS" != "") then
17230   echo "using GLUT... yes"
17231else
17232   echo "using GLUT... no"
17233fi
17234
17235
17236
17237
17238
17239
17240#echo "GLUT: $GLUT_CFLAGS $GLUT_LIBS"
17241
17242
17243#
17244# Check to see if the user wants our preset Sun g++ flags and the g++ compiler
17245#
17246
17247
17248LIBS=$save_libs
17249CFLAGS=$save_cflags
17250CPPFLAGS=$save_cppflags
17251CXXFLAGS=$save_cxxflags
17252
17253#AC_SUBST(CFLAGS)
17254#AC_SUBST(LIBS)
17255
17256compiler_version=`($CXX -V;$CXX -v) 2>&1 | perl ./compilerVersion.pl`
17257
17258cat >>confdefs.h <<_ACEOF
17259@%:@define PACKAGE_COMPILER "$CXX $CXXFLAGS"
17260_ACEOF
17261
17262
17263cat >>confdefs.h <<_ACEOF
17264@%:@define PACKAGE_COMPILER_VERSION "$compiler_version"
17265_ACEOF
17266
17267
17268
17269
17270
17271#Default AR
17272#Early versions of automake
17273AR1="ar"
17274#Late versions of automake
17275AR2="ar cru"
17276
17277
17278#
17279#Change the AR flag to CC -ar -o if we are using MIPSpro
17280#in debug or production mode.
17281#
17282
17283if(test "$WANT_IRIX_MIPSPRO_MPI_FLAGS" = 1 ||
17284   test "$WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS" = 1 ||
17285   test "$WANT_IRIX_MIPSPRO_FLAGS" = 1 ||
17286   test "$WANT_IRIX_MIPSPRO_DEBUG_FLAGS" = 1) then
17287  AR1="../mipscc_ar"
17288  AR2="$(CXX) -ar -o"
17289fi
17290
17291
17292
17293
17294CLEANFILES="-r *~"
17295
17296
17297#
17298# Check for "makedepend".  Not everyone has this.
17299#
17300
17301for ac_prog in makedepend
17302do
17303  # Extract the first word of "$ac_prog", so it can be a program name with args.
17304set dummy $ac_prog; ac_word=$2
17305echo "$as_me:$LINENO: checking for $ac_word" >&5
17306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17307if test "${ac_cv_prog_MAKEDEPEND+set}" = set; then
17308  echo $ECHO_N "(cached) $ECHO_C" >&6
17309else
17310  if test -n "$MAKEDEPEND"; then
17311  ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
17312else
17313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17314for as_dir in $PATH
17315do
17316  IFS=$as_save_IFS
17317  test -z "$as_dir" && as_dir=.
17318  for ac_exec_ext in '' $ac_executable_extensions; do
17319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17320    ac_cv_prog_MAKEDEPEND="$ac_prog"
17321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17322    break 2
17323  fi
17324done
17325done
17326
17327fi
17328fi
17329MAKEDEPEND=$ac_cv_prog_MAKEDEPEND
17330if test -n "$MAKEDEPEND"; then
17331  echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
17332echo "${ECHO_T}$MAKEDEPEND" >&6
17333else
17334  echo "$as_me:$LINENO: result: no" >&5
17335echo "${ECHO_T}no" >&6
17336fi
17337
17338  test -n "$MAKEDEPEND" && break
17339done
17340test -n "$MAKEDEPEND" || MAKEDEPEND="no"
17341
17342
17343#
17344# Fix for ar
17345#
17346
17347
17348
17349
17350#
17351
17352
17353ac_config_files="$ac_config_files Makefile framework/Makefile framework/base/Makefile framework/io/Makefile framework/parallel/Makefile framework/topology/Makefile framework/forces/Makefile framework/imd/Makefile framework/integrators/Makefile framework/frontend/Makefile framework/factories/Makefile applications/Makefile applications/protomol-app/Makefile applications/coulomb-app/Makefile applications/dcd2dcd-app/Makefile applications/iSGProtomol-app/Makefile applications/iSGProtomol-app/base/Makefile applications/iSGProtomol-app/io/Makefile applications/iSGProtomol-app/frontend/Makefile applications/iSGProtomol-app/forces/Makefile applications/iSGProtomol-app/factories/Makefile applications/iSGProtomol-app/integrators/Makefile applications/coords2coords-app/Makefile applications/xyzviz-app/Makefile"
17354cat >confcache <<\_ACEOF
17355# This file is a shell script that caches the results of configure
17356# tests run on this system so they can be shared between configure
17357# scripts and configure runs, see configure's option --config-cache.
17358# It is not useful on other systems.  If it contains results you don't
17359# want to keep, you may remove or edit it.
17360#
17361# config.status only pays attention to the cache file if you give it
17362# the --recheck option to rerun configure.
17363#
17364# `ac_cv_env_foo' variables (set or unset) will be overriden when
17365# loading this file, other *unset* `ac_cv_foo' will be assigned the
17366# following values.
17367
17368_ACEOF
17369
17370# The following way of writing the cache mishandles newlines in values,
17371# but we know of no workaround that is simple, portable, and efficient.
17372# So, don't put newlines in cache variables' values.
17373# Ultrix sh set writes to stderr and can't be redirected directly,
17374# and sets the high bit in the cache file unless we assign to the vars.
17375{
17376  (set) 2>&1 |
17377    case `(ac_space=' '; set | grep ac_space) 2>&1` in
17378    *ac_space=\ *)
17379      # `set' does not quote correctly, so add quotes (double-quote
17380      # substitution turns \\\\ into \\, and sed turns \\ into \).
17381      sed -n \
17382        "s/'/'\\\\''/g;
17383    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17384      ;;
17385    *)
17386      # `set' quotes correctly as required by POSIX, so do not add quotes.
17387      sed -n \
17388        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17389      ;;
17390    esac;
17391} |
17392  sed '
17393     t clear
17394     : clear
17395     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17396     t end
17397     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17398     : end' >>confcache
17399if cmp -s $cache_file confcache; then :; else
17400  if test -w $cache_file; then
17401    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17402    cat confcache >$cache_file
17403  else
17404    echo "not updating unwritable cache $cache_file"
17405  fi
17406fi
17407rm -f confcache
17408
17409test "x$prefix" = xNONE && prefix=$ac_default_prefix
17410# Let make expand exec_prefix.
17411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17412
17413# VPATH may cause trouble with some makes, so we remove $(srcdir),
17414# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17415# trailing colons and then remove the whole line if VPATH becomes empty
17416# (actually we leave an empty line to preserve line numbers).
17417if test "x$srcdir" = x.; then
17418  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
17419s/:*\$(srcdir):*/:/;
17420s/:*\${srcdir}:*/:/;
17421s/:*@srcdir@:*/:/;
17422s/^\([^=]*=[ 	]*\):*/\1/;
17423s/:*$//;
17424s/^[^=]*=[ 	]*$//;
17425}'
17426fi
17427
17428DEFS=-DHAVE_CONFIG_H
17429
17430if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17431  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17432Usually this means the macro was only invoked conditionally." >&5
17433echo "$as_me: error: conditional \"AMDEP\" was never defined.
17434Usually this means the macro was only invoked conditionally." >&2;}
17435   { (exit 1); exit 1; }; }
17436fi
17437
17438: ${CONFIG_STATUS=./config.status}
17439ac_clean_files_save=$ac_clean_files
17440ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17441{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17442echo "$as_me: creating $CONFIG_STATUS" >&6;}
17443cat >$CONFIG_STATUS <<_ACEOF
17444#! $SHELL
17445# Generated by $as_me.
17446# Run this file to recreate the current configuration.
17447# Compiler output produced by configure, useful for debugging
17448# configure, is in config.log if it exists.
17449
17450debug=false
17451SHELL=\${CONFIG_SHELL-$SHELL}
17452_ACEOF
17453
17454cat >>$CONFIG_STATUS <<\_ACEOF
17455
17456## --------------------- ##
17457## M4sh Initialization.  ##
17458## --------------------- ##
17459
17460# Be Bourne compatible
17461if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17462  emulate sh
17463  NULLCMD=:
17464elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17465  set -o posix
17466fi
17467
17468# NLS nuisances.
17469# Support unset when possible.
17470if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17471  as_unset=unset
17472else
17473  as_unset=false
17474fi
17475
17476(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17477    { $as_unset LANG || test "${LANG+set}" != set; } ||
17478      { LANG=C; export LANG; }
17479(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17480    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17481      { LC_ALL=C; export LC_ALL; }
17482(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17483    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17484      { LC_TIME=C; export LC_TIME; }
17485(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17486    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17487      { LC_CTYPE=C; export LC_CTYPE; }
17488(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17489    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17490      { LANGUAGE=C; export LANGUAGE; }
17491(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17492    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17493      { LC_COLLATE=C; export LC_COLLATE; }
17494(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17495    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17496      { LC_NUMERIC=C; export LC_NUMERIC; }
17497(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17498    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17499      { LC_MESSAGES=C; export LC_MESSAGES; }
17500
17501
17502# Name of the executable.
17503as_me=`(basename "$0") 2>/dev/null ||
17504$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17505	 X"$0" : 'X\(//\)$' \| \
17506	 X"$0" : 'X\(/\)$' \| \
17507	 .     : '\(.\)' 2>/dev/null ||
17508echo X/"$0" |
17509    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17510  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
17511  	  /^X\/\(\/\).*/{ s//\1/; q; }
17512  	  s/.*/./; q'`
17513
17514# PATH needs CR, and LINENO needs CR and PATH.
17515# Avoid depending upon Character Ranges.
17516as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17517as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17518as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17519as_cr_digits='0123456789'
17520as_cr_alnum=$as_cr_Letters$as_cr_digits
17521
17522# The user is always right.
17523if test "${PATH_SEPARATOR+set}" != set; then
17524  echo "#! /bin/sh" >conftest.sh
17525  echo  "exit 0"   >>conftest.sh
17526  chmod +x conftest.sh
17527  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17528    PATH_SEPARATOR=';'
17529  else
17530    PATH_SEPARATOR=:
17531  fi
17532  rm -f conftest.sh
17533fi
17534
17535
17536  as_lineno_1=$LINENO
17537  as_lineno_2=$LINENO
17538  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17539  test "x$as_lineno_1" != "x$as_lineno_2" &&
17540  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17541  # Find who we are.  Look in the path if we contain no path at all
17542  # relative or not.
17543  case $0 in
17544    *[\\/]* ) as_myself=$0 ;;
17545    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546for as_dir in $PATH
17547do
17548  IFS=$as_save_IFS
17549  test -z "$as_dir" && as_dir=.
17550  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17551done
17552
17553       ;;
17554  esac
17555  # We did not find ourselves, most probably we were run as `sh COMMAND'
17556  # in which case we are not to be found in the path.
17557  if test "x$as_myself" = x; then
17558    as_myself=$0
17559  fi
17560  if test ! -f "$as_myself"; then
17561    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17562echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17563   { (exit 1); exit 1; }; }
17564  fi
17565  case $CONFIG_SHELL in
17566  '')
17567    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17568for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17569do
17570  IFS=$as_save_IFS
17571  test -z "$as_dir" && as_dir=.
17572  for as_base in sh bash ksh sh5; do
17573	 case $as_dir in
17574	 /*)
17575	   if ("$as_dir/$as_base" -c '
17576  as_lineno_1=$LINENO
17577  as_lineno_2=$LINENO
17578  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17579  test "x$as_lineno_1" != "x$as_lineno_2" &&
17580  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17581	     CONFIG_SHELL=$as_dir/$as_base
17582	     export CONFIG_SHELL
17583	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17584	   fi;;
17585	 esac
17586       done
17587done
17588;;
17589  esac
17590
17591  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17592  # uniformly replaced by the line number.  The first 'sed' inserts a
17593  # line-number line before each line; the second 'sed' does the real
17594  # work.  The second script uses 'N' to pair each line-number line
17595  # with the numbered line, and appends trailing '-' during
17596  # substitution so that $LINENO is not a special case at line end.
17597  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17598  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17599  sed '=' <$as_myself |
17600    sed '
17601      N
17602      s,$,-,
17603      : loop
17604      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17605      t loop
17606      s,-$,,
17607      s,^['$as_cr_digits']*\n,,
17608    ' >$as_me.lineno &&
17609  chmod +x $as_me.lineno ||
17610    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17611echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17612   { (exit 1); exit 1; }; }
17613
17614  # Don't try to exec as it changes $[0], causing all sort of problems
17615  # (the dirname of $[0] is not the place where we might find the
17616  # original and so on.  Autoconf is especially sensible to this).
17617  . ./$as_me.lineno
17618  # Exit status is that of the last command.
17619  exit
17620}
17621
17622
17623case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17624  *c*,-n*) ECHO_N= ECHO_C='
17625' ECHO_T='	' ;;
17626  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17627  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17628esac
17629
17630if expr a : '\(a\)' >/dev/null 2>&1; then
17631  as_expr=expr
17632else
17633  as_expr=false
17634fi
17635
17636rm -f conf$$ conf$$.exe conf$$.file
17637echo >conf$$.file
17638if ln -s conf$$.file conf$$ 2>/dev/null; then
17639  # We could just check for DJGPP; but this test a) works b) is more generic
17640  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17641  if test -f conf$$.exe; then
17642    # Don't use ln at all; we don't have any links
17643    as_ln_s='cp -p'
17644  else
17645    as_ln_s='ln -s'
17646  fi
17647elif ln conf$$.file conf$$ 2>/dev/null; then
17648  as_ln_s=ln
17649else
17650  as_ln_s='cp -p'
17651fi
17652rm -f conf$$ conf$$.exe conf$$.file
17653
17654as_executable_p="test -f"
17655
17656# Sed expression to map a string onto a valid CPP name.
17657as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17658
17659# Sed expression to map a string onto a valid variable name.
17660as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17661
17662
17663# IFS
17664# We need space, tab and new line, in precisely that order.
17665as_nl='
17666'
17667IFS=" 	$as_nl"
17668
17669# CDPATH.
17670$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17671
17672exec 6>&1
17673
17674# Open the log real soon, to keep \$[0] and so on meaningful, and to
17675# report actual input values of CONFIG_FILES etc. instead of their
17676# values after options handling.  Logging --version etc. is OK.
17677exec 5>>config.log
17678{
17679  echo
17680  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17681@%:@@%:@ Running $as_me. @%:@@%:@
17682_ASBOX
17683} >&5
17684cat >&5 <<_CSEOF
17685
17686This file was extended by protomol $as_me 2.0.3, which was
17687generated by GNU Autoconf 2.53.  Invocation command line was
17688
17689  CONFIG_FILES    = $CONFIG_FILES
17690  CONFIG_HEADERS  = $CONFIG_HEADERS
17691  CONFIG_LINKS    = $CONFIG_LINKS
17692  CONFIG_COMMANDS = $CONFIG_COMMANDS
17693  $ $0 $@
17694
17695_CSEOF
17696echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17697echo >&5
17698_ACEOF
17699
17700# Files that config.status was made for.
17701if test -n "$ac_config_files"; then
17702  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17703fi
17704
17705if test -n "$ac_config_headers"; then
17706  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17707fi
17708
17709if test -n "$ac_config_links"; then
17710  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17711fi
17712
17713if test -n "$ac_config_commands"; then
17714  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17715fi
17716
17717cat >>$CONFIG_STATUS <<\_ACEOF
17718
17719ac_cs_usage="\
17720\`$as_me' instantiates files from templates according to the
17721current configuration.
17722
17723Usage: $0 [OPTIONS] [FILE]...
17724
17725  -h, --help       print this help, then exit
17726  -V, --version    print version number, then exit
17727  -d, --debug      don't remove temporary files
17728      --recheck    update $as_me by reconfiguring in the same conditions
17729  --file=FILE[:TEMPLATE]
17730                   instantiate the configuration file FILE
17731  --header=FILE[:TEMPLATE]
17732                   instantiate the configuration header FILE
17733
17734Configuration files:
17735$config_files
17736
17737Configuration headers:
17738$config_headers
17739
17740Configuration commands:
17741$config_commands
17742
17743Report bugs to <bug-autoconf@gnu.org>."
17744_ACEOF
17745
17746cat >>$CONFIG_STATUS <<_ACEOF
17747ac_cs_version="\\
17748protomol config.status 2.0.3
17749configured by $0, generated by GNU Autoconf 2.53,
17750  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17751
17752Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17753Free Software Foundation, Inc.
17754This config.status script is free software; the Free Software Foundation
17755gives unlimited permission to copy, distribute and modify it."
17756srcdir=$srcdir
17757INSTALL="$INSTALL"
17758_ACEOF
17759
17760cat >>$CONFIG_STATUS <<\_ACEOF
17761# If no file are specified by the user, then we need to provide default
17762# value.  By we need to know if files were specified by the user.
17763ac_need_defaults=:
17764while test $# != 0
17765do
17766  case $1 in
17767  --*=*)
17768    ac_option=`expr "x$1" : 'x\([^=]*\)='`
17769    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17770    shift
17771    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17772    shift
17773    ;;
17774  -*);;
17775  *) # This is not an option, so the user has probably given explicit
17776     # arguments.
17777     ac_need_defaults=false;;
17778  esac
17779
17780  case $1 in
17781  # Handling of the options.
17782_ACEOF
17783cat >>$CONFIG_STATUS <<_ACEOF
17784  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17785    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17786    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17787_ACEOF
17788cat >>$CONFIG_STATUS <<\_ACEOF
17789  --version | --vers* | -V )
17790    echo "$ac_cs_version"; exit 0 ;;
17791  --he | --h)
17792    # Conflict between --help and --header
17793    { { echo "$as_me:$LINENO: error: ambiguous option: $1
17794Try \`$0 --help' for more information." >&5
17795echo "$as_me: error: ambiguous option: $1
17796Try \`$0 --help' for more information." >&2;}
17797   { (exit 1); exit 1; }; };;
17798  --help | --hel | -h )
17799    echo "$ac_cs_usage"; exit 0 ;;
17800  --debug | --d* | -d )
17801    debug=: ;;
17802  --file | --fil | --fi | --f )
17803    shift
17804    CONFIG_FILES="$CONFIG_FILES $1"
17805    ac_need_defaults=false;;
17806  --header | --heade | --head | --hea )
17807    shift
17808    CONFIG_HEADERS="$CONFIG_HEADERS $1"
17809    ac_need_defaults=false;;
17810
17811  # This is an error.
17812  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17813Try \`$0 --help' for more information." >&5
17814echo "$as_me: error: unrecognized option: $1
17815Try \`$0 --help' for more information." >&2;}
17816   { (exit 1); exit 1; }; } ;;
17817
17818  *) ac_config_targets="$ac_config_targets $1" ;;
17819
17820  esac
17821  shift
17822done
17823
17824_ACEOF
17825
17826cat >>$CONFIG_STATUS <<_ACEOF
17827#
17828# INIT-COMMANDS section.
17829#
17830
17831AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17832
17833_ACEOF
17834
17835
17836
17837cat >>$CONFIG_STATUS <<\_ACEOF
17838for ac_config_target in $ac_config_targets
17839do
17840  case "$ac_config_target" in
17841  # Handling of arguments.
17842  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17843  "framework/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/Makefile" ;;
17844  "framework/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/base/Makefile" ;;
17845  "framework/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/io/Makefile" ;;
17846  "framework/parallel/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/parallel/Makefile" ;;
17847  "framework/topology/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/topology/Makefile" ;;
17848  "framework/forces/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/forces/Makefile" ;;
17849  "framework/imd/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/imd/Makefile" ;;
17850  "framework/integrators/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/integrators/Makefile" ;;
17851  "framework/frontend/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/frontend/Makefile" ;;
17852  "framework/factories/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/factories/Makefile" ;;
17853  "applications/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;;
17854  "applications/protomol-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/protomol-app/Makefile" ;;
17855  "applications/coulomb-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/coulomb-app/Makefile" ;;
17856  "applications/dcd2dcd-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/dcd2dcd-app/Makefile" ;;
17857  "applications/iSGProtomol-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/Makefile" ;;
17858  "applications/iSGProtomol-app/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/base/Makefile" ;;
17859  "applications/iSGProtomol-app/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/io/Makefile" ;;
17860  "applications/iSGProtomol-app/frontend/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/frontend/Makefile" ;;
17861  "applications/iSGProtomol-app/forces/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/forces/Makefile" ;;
17862  "applications/iSGProtomol-app/factories/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/factories/Makefile" ;;
17863  "applications/iSGProtomol-app/integrators/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/integrators/Makefile" ;;
17864  "applications/coords2coords-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/coords2coords-app/Makefile" ;;
17865  "applications/xyzviz-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/xyzviz-app/Makefile" ;;
17866  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17867  "protomol_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS protomol_config.h" ;;
17868  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17869echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17870   { (exit 1); exit 1; }; };;
17871  esac
17872done
17873
17874# If the user did not use the arguments to specify the items to instantiate,
17875# then the envvar interface is used.  Set only those that are not.
17876# We use the long form for the default assignment because of an extremely
17877# bizarre bug on SunOS 4.1.3.
17878if $ac_need_defaults; then
17879  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17880  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17881  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17882fi
17883
17884# Create a temporary directory, and hook for its removal unless debugging.
17885$debug ||
17886{
17887  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17888  trap '{ (exit 1); exit 1; }' 1 2 13 15
17889}
17890
17891# Create a (secure) tmp directory for tmp files.
17892: ${TMPDIR=/tmp}
17893{
17894  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17895  test -n "$tmp" && test -d "$tmp"
17896}  ||
17897{
17898  tmp=$TMPDIR/cs$$-$RANDOM
17899  (umask 077 && mkdir $tmp)
17900} ||
17901{
17902   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17903   { (exit 1); exit 1; }
17904}
17905
17906_ACEOF
17907
17908cat >>$CONFIG_STATUS <<_ACEOF
17909
17910#
17911# CONFIG_FILES section.
17912#
17913
17914# No need to generate the scripts if there are no CONFIG_FILES.
17915# This happens for instance when ./config.status config.h
17916if test -n "\$CONFIG_FILES"; then
17917  # Protect against being on the right side of a sed subst in config.status.
17918  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17919   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17920s,@SHELL@,$SHELL,;t t
17921s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17922s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17923s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17924s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17925s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17926s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17927s,@exec_prefix@,$exec_prefix,;t t
17928s,@prefix@,$prefix,;t t
17929s,@program_transform_name@,$program_transform_name,;t t
17930s,@bindir@,$bindir,;t t
17931s,@sbindir@,$sbindir,;t t
17932s,@libexecdir@,$libexecdir,;t t
17933s,@datadir@,$datadir,;t t
17934s,@sysconfdir@,$sysconfdir,;t t
17935s,@sharedstatedir@,$sharedstatedir,;t t
17936s,@localstatedir@,$localstatedir,;t t
17937s,@libdir@,$libdir,;t t
17938s,@includedir@,$includedir,;t t
17939s,@oldincludedir@,$oldincludedir,;t t
17940s,@infodir@,$infodir,;t t
17941s,@mandir@,$mandir,;t t
17942s,@build_alias@,$build_alias,;t t
17943s,@host_alias@,$host_alias,;t t
17944s,@target_alias@,$target_alias,;t t
17945s,@DEFS@,$DEFS,;t t
17946s,@ECHO_C@,$ECHO_C,;t t
17947s,@ECHO_N@,$ECHO_N,;t t
17948s,@ECHO_T@,$ECHO_T,;t t
17949s,@LIBS@,$LIBS,;t t
17950s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17951s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17952s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17953s,@PACKAGE@,$PACKAGE,;t t
17954s,@VERSION@,$VERSION,;t t
17955s,@ACLOCAL@,$ACLOCAL,;t t
17956s,@AUTOCONF@,$AUTOCONF,;t t
17957s,@AUTOMAKE@,$AUTOMAKE,;t t
17958s,@AUTOHEADER@,$AUTOHEADER,;t t
17959s,@MAKEINFO@,$MAKEINFO,;t t
17960s,@AMTAR@,$AMTAR,;t t
17961s,@install_sh@,$install_sh,;t t
17962s,@STRIP@,$STRIP,;t t
17963s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17964s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17965s,@AWK@,$AWK,;t t
17966s,@SET_MAKE@,$SET_MAKE,;t t
17967s,@PROTOMOL_MAJOR_VERSION@,$PROTOMOL_MAJOR_VERSION,;t t
17968s,@PROTOMOL_MINOR_VERSION@,$PROTOMOL_MINOR_VERSION,;t t
17969s,@PROTOMOL_PATCH_LEVEL@,$PROTOMOL_PATCH_LEVEL,;t t
17970s,@LT_RELEASE@,$LT_RELEASE,;t t
17971s,@LT_CURRENT@,$LT_CURRENT,;t t
17972s,@LT_REVISION@,$LT_REVISION,;t t
17973s,@LT_AGE@,$LT_AGE,;t t
17974s,@CXX@,$CXX,;t t
17975s,@CXXFLAGS@,$CXXFLAGS,;t t
17976s,@LDFLAGS@,$LDFLAGS,;t t
17977s,@CPPFLAGS@,$CPPFLAGS,;t t
17978s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17979s,@EXEEXT@,$EXEEXT,;t t
17980s,@OBJEXT@,$OBJEXT,;t t
17981s,@DEPDIR@,$DEPDIR,;t t
17982s,@am__include@,$am__include,;t t
17983s,@am__quote@,$am__quote,;t t
17984s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17985s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17986s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17987s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17988s,@CC@,$CC,;t t
17989s,@CFLAGS@,$CFLAGS,;t t
17990s,@ac_ct_CC@,$ac_ct_CC,;t t
17991s,@CCDEPMODE@,$CCDEPMODE,;t t
17992s,@DEPFLAGS@,$DEPFLAGS,;t t
17993s,@CXXCPP@,$CXXCPP,;t t
17994s,@RANLIB@,$RANLIB,;t t
17995s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17996s,@X_CFLAGS@,$X_CFLAGS,;t t
17997s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17998s,@X_LIBS@,$X_LIBS,;t t
17999s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18000s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
18001s,@FFT_LIBS@,$FFT_LIBS,;t t
18002s,@FFT_CFLAGS@,$FFT_CFLAGS,;t t
18003s,@PNG_LIBS@,$PNG_LIBS,;t t
18004s,@GLUT_LIBS@,$GLUT_LIBS,;t t
18005s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t
18006s,@CLEANFILES@,$CLEANFILES,;t t
18007s,@MAKEDEPEND@,$MAKEDEPEND,;t t
18008s,@AR1@,$AR1,;t t
18009s,@AR2@,$AR2,;t t
18010CEOF
18011
18012_ACEOF
18013
18014  cat >>$CONFIG_STATUS <<\_ACEOF
18015  # Split the substitutions into bite-sized pieces for seds with
18016  # small command number limits, like on Digital OSF/1 and HP-UX.
18017  ac_max_sed_lines=48
18018  ac_sed_frag=1 # Number of current file.
18019  ac_beg=1 # First line for current file.
18020  ac_end=$ac_max_sed_lines # Line after last line for current file.
18021  ac_more_lines=:
18022  ac_sed_cmds=
18023  while $ac_more_lines; do
18024    if test $ac_beg -gt 1; then
18025      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18026    else
18027      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18028    fi
18029    if test ! -s $tmp/subs.frag; then
18030      ac_more_lines=false
18031    else
18032      # The purpose of the label and of the branching condition is to
18033      # speed up the sed processing (if there are no `@' at all, there
18034      # is no need to browse any of the substitutions).
18035      # These are the two extra sed commands mentioned above.
18036      (echo ':t
18037  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18038      if test -z "$ac_sed_cmds"; then
18039  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18040      else
18041  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18042      fi
18043      ac_sed_frag=`expr $ac_sed_frag + 1`
18044      ac_beg=$ac_end
18045      ac_end=`expr $ac_end + $ac_max_sed_lines`
18046    fi
18047  done
18048  if test -z "$ac_sed_cmds"; then
18049    ac_sed_cmds=cat
18050  fi
18051fi # test -n "$CONFIG_FILES"
18052
18053_ACEOF
18054cat >>$CONFIG_STATUS <<\_ACEOF
18055for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18056  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18057  case $ac_file in
18058  - | *:- | *:-:* ) # input from stdin
18059        cat >$tmp/stdin
18060        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18061        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18062  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18063        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18064  * )   ac_file_in=$ac_file.in ;;
18065  esac
18066
18067  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18068  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18069$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18070         X"$ac_file" : 'X\(//\)[^/]' \| \
18071         X"$ac_file" : 'X\(//\)$' \| \
18072         X"$ac_file" : 'X\(/\)' \| \
18073         .     : '\(.\)' 2>/dev/null ||
18074echo X"$ac_file" |
18075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18076  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18077  	  /^X\(\/\/\)$/{ s//\1/; q; }
18078  	  /^X\(\/\).*/{ s//\1/; q; }
18079  	  s/.*/./; q'`
18080  { case "$ac_dir" in
18081  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18082  *)                      as_incr_dir=.;;
18083esac
18084as_dummy="$ac_dir"
18085for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18086  case $as_mkdir_dir in
18087    # Skip DOS drivespec
18088    ?:) as_incr_dir=$as_mkdir_dir ;;
18089    *)
18090      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18091      test -d "$as_incr_dir" ||
18092        mkdir "$as_incr_dir" ||
18093	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18094echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18095   { (exit 1); exit 1; }; }
18096    ;;
18097  esac
18098done; }
18099
18100  ac_builddir=.
18101
18102if test "$ac_dir" != .; then
18103  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18104  # A "../" for each directory in $ac_dir_suffix.
18105  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18106else
18107  ac_dir_suffix= ac_top_builddir=
18108fi
18109
18110case $srcdir in
18111  .)  # No --srcdir option.  We are building in place.
18112    ac_srcdir=.
18113    if test -z "$ac_top_builddir"; then
18114       ac_top_srcdir=.
18115    else
18116       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18117    fi ;;
18118  [\\/]* | ?:[\\/]* )  # Absolute path.
18119    ac_srcdir=$srcdir$ac_dir_suffix;
18120    ac_top_srcdir=$srcdir ;;
18121  *) # Relative path.
18122    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18123    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18124esac
18125# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18126# absolute.
18127ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18128ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18129ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18130ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18131
18132
18133  case $INSTALL in
18134  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18135  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18136  esac
18137
18138  if test x"$ac_file" != x-; then
18139    { echo "$as_me:$LINENO: creating $ac_file" >&5
18140echo "$as_me: creating $ac_file" >&6;}
18141    rm -f "$ac_file"
18142  fi
18143  # Let's still pretend it is `configure' which instantiates (i.e., don't
18144  # use $as_me), people would be surprised to read:
18145  #    /* config.h.  Generated by config.status.  */
18146  if test x"$ac_file" = x-; then
18147    configure_input=
18148  else
18149    configure_input="$ac_file.  "
18150  fi
18151  configure_input=$configure_input"Generated from `echo $ac_file_in |
18152                                     sed 's,.*/,,'` by configure."
18153
18154  # First look for the input files in the build tree, otherwise in the
18155  # src tree.
18156  ac_file_inputs=`IFS=:
18157    for f in $ac_file_in; do
18158      case $f in
18159      -) echo $tmp/stdin ;;
18160      [\\/$]*)
18161         # Absolute (can't be DOS-style, as IFS=:)
18162         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18163echo "$as_me: error: cannot find input file: $f" >&2;}
18164   { (exit 1); exit 1; }; }
18165         echo $f;;
18166      *) # Relative
18167         if test -f "$f"; then
18168           # Build tree
18169           echo $f
18170         elif test -f "$srcdir/$f"; then
18171           # Source tree
18172           echo $srcdir/$f
18173         else
18174           # /dev/null tree
18175           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18176echo "$as_me: error: cannot find input file: $f" >&2;}
18177   { (exit 1); exit 1; }; }
18178         fi;;
18179      esac
18180    done` || { (exit 1); exit 1; }
18181_ACEOF
18182cat >>$CONFIG_STATUS <<_ACEOF
18183  sed "$ac_vpsub
18184$extrasub
18185_ACEOF
18186cat >>$CONFIG_STATUS <<\_ACEOF
18187:t
18188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18189s,@configure_input@,$configure_input,;t t
18190s,@srcdir@,$ac_srcdir,;t t
18191s,@abs_srcdir@,$ac_abs_srcdir,;t t
18192s,@top_srcdir@,$ac_top_srcdir,;t t
18193s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18194s,@builddir@,$ac_builddir,;t t
18195s,@abs_builddir@,$ac_abs_builddir,;t t
18196s,@top_builddir@,$ac_top_builddir,;t t
18197s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18198s,@INSTALL@,$ac_INSTALL,;t t
18199" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18200  rm -f $tmp/stdin
18201  if test x"$ac_file" != x-; then
18202    mv $tmp/out $ac_file
18203  else
18204    cat $tmp/out
18205    rm -f $tmp/out
18206  fi
18207
18208done
18209_ACEOF
18210cat >>$CONFIG_STATUS <<\_ACEOF
18211
18212#
18213# CONFIG_HEADER section.
18214#
18215
18216# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18217# NAME is the cpp macro being defined and VALUE is the value it is being given.
18218#
18219# ac_d sets the value in "#define NAME VALUE" lines.
18220ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
18221ac_dB='[ 	].*$,\1#\2'
18222ac_dC=' '
18223ac_dD=',;t'
18224# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18225ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
18226ac_uB='$,\1#\2define\3'
18227ac_uC=' '
18228ac_uD=',;t'
18229
18230for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18231  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18232  case $ac_file in
18233  - | *:- | *:-:* ) # input from stdin
18234        cat >$tmp/stdin
18235        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18236        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18237  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18238        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18239  * )   ac_file_in=$ac_file.in ;;
18240  esac
18241
18242  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18243echo "$as_me: creating $ac_file" >&6;}
18244
18245  # First look for the input files in the build tree, otherwise in the
18246  # src tree.
18247  ac_file_inputs=`IFS=:
18248    for f in $ac_file_in; do
18249      case $f in
18250      -) echo $tmp/stdin ;;
18251      [\\/$]*)
18252         # Absolute (can't be DOS-style, as IFS=:)
18253         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18254echo "$as_me: error: cannot find input file: $f" >&2;}
18255   { (exit 1); exit 1; }; }
18256         echo $f;;
18257      *) # Relative
18258         if test -f "$f"; then
18259           # Build tree
18260           echo $f
18261         elif test -f "$srcdir/$f"; then
18262           # Source tree
18263           echo $srcdir/$f
18264         else
18265           # /dev/null tree
18266           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18267echo "$as_me: error: cannot find input file: $f" >&2;}
18268   { (exit 1); exit 1; }; }
18269         fi;;
18270      esac
18271    done` || { (exit 1); exit 1; }
18272  # Remove the trailing spaces.
18273  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
18274
18275_ACEOF
18276
18277# Transform confdefs.h into two sed scripts, `conftest.defines' and
18278# `conftest.undefs', that substitutes the proper values into
18279# config.h.in to produce config.h.  The first handles `#define'
18280# templates, and the second `#undef' templates.
18281# And first: Protect against being on the right side of a sed subst in
18282# config.status.  Protect against being in an unquoted here document
18283# in config.status.
18284rm -f conftest.defines conftest.undefs
18285# Using a here document instead of a string reduces the quoting nightmare.
18286# Putting comments in sed scripts is not portable.
18287#
18288# `end' is used to avoid that the second main sed command (meant for
18289# 0-ary CPP macros) applies to n-ary macro definitions.
18290# See the Autoconf documentation for `clear'.
18291cat >confdef2sed.sed <<\_ACEOF
18292s/[\\&,]/\\&/g
18293s,[\\$`],\\&,g
18294t clear
18295: clear
18296s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18297t end
18298s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18299: end
18300_ACEOF
18301# If some macros were called several times there might be several times
18302# the same #defines, which is useless.  Nevertheless, we may not want to
18303# sort them, since we want the *last* AC-DEFINE to be honored.
18304uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18305sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18306rm -f confdef2sed.sed
18307
18308# This sed command replaces #undef with comments.  This is necessary, for
18309# example, in the case of _POSIX_SOURCE, which is predefined and required
18310# on some systems where configure will not decide to define it.
18311cat >>conftest.undefs <<\_ACEOF
18312s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18313_ACEOF
18314
18315# Break up conftest.defines because some shells have a limit on the size
18316# of here documents, and old seds have small limits too (100 cmds).
18317echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18318echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18319echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18320echo '  :' >>$CONFIG_STATUS
18321rm -f conftest.tail
18322while grep . conftest.defines >/dev/null
18323do
18324  # Write a limited-size here document to $tmp/defines.sed.
18325  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18326  # Speed up: don't consider the non `#define' lines.
18327  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
18328  # Work around the forget-to-reset-the-flag bug.
18329  echo 't clr' >>$CONFIG_STATUS
18330  echo ': clr' >>$CONFIG_STATUS
18331  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18332  echo 'CEOF
18333  sed -f $tmp/defines.sed $tmp/in >$tmp/out
18334  rm -f $tmp/in
18335  mv $tmp/out $tmp/in
18336' >>$CONFIG_STATUS
18337  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18338  rm -f conftest.defines
18339  mv conftest.tail conftest.defines
18340done
18341rm -f conftest.defines
18342echo '  fi # egrep' >>$CONFIG_STATUS
18343echo >>$CONFIG_STATUS
18344
18345# Break up conftest.undefs because some shells have a limit on the size
18346# of here documents, and old seds have small limits too (100 cmds).
18347echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18348rm -f conftest.tail
18349while grep . conftest.undefs >/dev/null
18350do
18351  # Write a limited-size here document to $tmp/undefs.sed.
18352  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18353  # Speed up: don't consider the non `#undef'
18354  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
18355  # Work around the forget-to-reset-the-flag bug.
18356  echo 't clr' >>$CONFIG_STATUS
18357  echo ': clr' >>$CONFIG_STATUS
18358  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18359  echo 'CEOF
18360  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18361  rm -f $tmp/in
18362  mv $tmp/out $tmp/in
18363' >>$CONFIG_STATUS
18364  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18365  rm -f conftest.undefs
18366  mv conftest.tail conftest.undefs
18367done
18368rm -f conftest.undefs
18369
18370cat >>$CONFIG_STATUS <<\_ACEOF
18371  # Let's still pretend it is `configure' which instantiates (i.e., don't
18372  # use $as_me), people would be surprised to read:
18373  #    /* config.h.  Generated by config.status.  */
18374  if test x"$ac_file" = x-; then
18375    echo "/* Generated by configure.  */" >$tmp/config.h
18376  else
18377    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18378  fi
18379  cat $tmp/in >>$tmp/config.h
18380  rm -f $tmp/in
18381  if test x"$ac_file" != x-; then
18382    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18383      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18384echo "$as_me: $ac_file is unchanged" >&6;}
18385    else
18386      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18388         X"$ac_file" : 'X\(//\)[^/]' \| \
18389         X"$ac_file" : 'X\(//\)$' \| \
18390         X"$ac_file" : 'X\(/\)' \| \
18391         .     : '\(.\)' 2>/dev/null ||
18392echo X"$ac_file" |
18393    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18394  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18395  	  /^X\(\/\/\)$/{ s//\1/; q; }
18396  	  /^X\(\/\).*/{ s//\1/; q; }
18397  	  s/.*/./; q'`
18398      { case "$ac_dir" in
18399  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18400  *)                      as_incr_dir=.;;
18401esac
18402as_dummy="$ac_dir"
18403for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18404  case $as_mkdir_dir in
18405    # Skip DOS drivespec
18406    ?:) as_incr_dir=$as_mkdir_dir ;;
18407    *)
18408      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18409      test -d "$as_incr_dir" ||
18410        mkdir "$as_incr_dir" ||
18411	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18412echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18413   { (exit 1); exit 1; }; }
18414    ;;
18415  esac
18416done; }
18417
18418      rm -f $ac_file
18419      mv $tmp/config.h $ac_file
18420    fi
18421  else
18422    cat $tmp/config.h
18423    rm -f $tmp/config.h
18424  fi
18425  # Run the commands associated with the file.
18426  case $ac_file in
18427    protomol_config.h ) # update the timestamp
18428echo 'timestamp for protomol_config.h' >"./stamp-h1"
18429 ;;
18430  esac
18431done
18432_ACEOF
18433cat >>$CONFIG_STATUS <<\_ACEOF
18434
18435#
18436# CONFIG_COMMANDS section.
18437#
18438for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18439  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18440  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18441  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18442$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18443         X"$ac_dest" : 'X\(//\)[^/]' \| \
18444         X"$ac_dest" : 'X\(//\)$' \| \
18445         X"$ac_dest" : 'X\(/\)' \| \
18446         .     : '\(.\)' 2>/dev/null ||
18447echo X"$ac_dest" |
18448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18449  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18450  	  /^X\(\/\/\)$/{ s//\1/; q; }
18451  	  /^X\(\/\).*/{ s//\1/; q; }
18452  	  s/.*/./; q'`
18453  ac_builddir=.
18454
18455if test "$ac_dir" != .; then
18456  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18457  # A "../" for each directory in $ac_dir_suffix.
18458  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18459else
18460  ac_dir_suffix= ac_top_builddir=
18461fi
18462
18463case $srcdir in
18464  .)  # No --srcdir option.  We are building in place.
18465    ac_srcdir=.
18466    if test -z "$ac_top_builddir"; then
18467       ac_top_srcdir=.
18468    else
18469       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18470    fi ;;
18471  [\\/]* | ?:[\\/]* )  # Absolute path.
18472    ac_srcdir=$srcdir$ac_dir_suffix;
18473    ac_top_srcdir=$srcdir ;;
18474  *) # Relative path.
18475    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18476    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18477esac
18478# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18479# absolute.
18480ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18481ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18482ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18483ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18484
18485
18486  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18487echo "$as_me: executing $ac_dest commands" >&6;}
18488  case $ac_dest in
18489    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18490  # Strip MF so we end up with the name of the file.
18491  mf=`echo "$mf" | sed -e 's/:.*$//'`
18492  # Check whether this is an Automake generated Makefile or not.
18493  # We used to match only the files named `Makefile.in', but
18494  # some people rename them; so instead we look at the file content.
18495  # Grep'ing the first line is not enough: some people post-process
18496  # each Makefile.in and add a new line on top of each file to say so.
18497  # So let's grep whole file.
18498  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18499    dirpart=`(dirname "$mf") 2>/dev/null ||
18500$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18501         X"$mf" : 'X\(//\)[^/]' \| \
18502         X"$mf" : 'X\(//\)$' \| \
18503         X"$mf" : 'X\(/\)' \| \
18504         .     : '\(.\)' 2>/dev/null ||
18505echo X"$mf" |
18506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18507  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18508  	  /^X\(\/\/\)$/{ s//\1/; q; }
18509  	  /^X\(\/\).*/{ s//\1/; q; }
18510  	  s/.*/./; q'`
18511  else
18512    continue
18513  fi
18514  grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
18515  # Extract the definition of DEP_FILES from the Makefile without
18516  # running `make'.
18517  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18518  test -z "$DEPDIR" && continue
18519  # When using ansi2knr, U may be empty or an underscore; expand it
18520  U=`sed -n -e '/^U = / s///p' < "$mf"`
18521  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18522  # We invoke sed twice because it is the simplest approach to
18523  # changing $(DEPDIR) to its actual value in the expansion.
18524  for file in `sed -n -e '
18525    /^DEP_FILES = .*\\\\$/ {
18526      s/^DEP_FILES = //
18527      :loop
18528	s/\\\\$//
18529	p
18530	n
18531	/\\\\$/ b loop
18532      p
18533    }
18534    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18535       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18536    # Make sure the directory exists.
18537    test -f "$dirpart/$file" && continue
18538    fdir=`(dirname "$file") 2>/dev/null ||
18539$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18540         X"$file" : 'X\(//\)[^/]' \| \
18541         X"$file" : 'X\(//\)$' \| \
18542         X"$file" : 'X\(/\)' \| \
18543         .     : '\(.\)' 2>/dev/null ||
18544echo X"$file" |
18545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18546  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18547  	  /^X\(\/\/\)$/{ s//\1/; q; }
18548  	  /^X\(\/\).*/{ s//\1/; q; }
18549  	  s/.*/./; q'`
18550    { case $dirpart/$fdir in
18551  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18552  *)                      as_incr_dir=.;;
18553esac
18554as_dummy=$dirpart/$fdir
18555for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18556  case $as_mkdir_dir in
18557    # Skip DOS drivespec
18558    ?:) as_incr_dir=$as_mkdir_dir ;;
18559    *)
18560      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18561      test -d "$as_incr_dir" ||
18562        mkdir "$as_incr_dir" ||
18563	{ { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
18564echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
18565   { (exit 1); exit 1; }; }
18566    ;;
18567  esac
18568done; }
18569
18570    # echo "creating $dirpart/$file"
18571    echo '# dummy' > "$dirpart/$file"
18572  done
18573done
18574 ;;
18575  esac
18576done
18577_ACEOF
18578
18579cat >>$CONFIG_STATUS <<\_ACEOF
18580
18581{ (exit 0); exit 0; }
18582_ACEOF
18583chmod +x $CONFIG_STATUS
18584ac_clean_files=$ac_clean_files_save
18585
18586
18587# configure is writing to config.log, and then calls config.status.
18588# config.status does its own redirection, appending to config.log.
18589# Unfortunately, on DOS this fails, as config.log is still kept open
18590# by configure, so config.status won't be able to write to it; its
18591# output is simply discarded.  So we exec the FD to /dev/null,
18592# effectively closing config.log, so it can be properly (re)opened and
18593# appended to by config.status.  When coming back to configure, we
18594# need to make the FD available again.
18595if test "$no_create" != yes; then
18596  ac_cs_success=:
18597  exec 5>/dev/null
18598  $SHELL $CONFIG_STATUS || ac_cs_success=false
18599  exec 5>>config.log
18600  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18601  # would make configure fail if this is the last instruction.
18602  $ac_cs_success || { (exit 1); exit 1; }
18603fi
18604
18605
18606
18607echo ""
18608echo "CC       : $CC"
18609echo "CFLAGS   : $CFLAGS"
18610echo "CXXFLAGS : $CXXFLAGS"
18611echo "CXX      : $CXX"
18612echo "CXXCPP   : $CXXCPP"
18613echo "LIBS     : $LIBS"
18614echo "CPP      : $CPP"
18615echo "CPPFLAGS : $CPPFLAGS"
18616echo ""
18617echo "make clean;make depend;make"
18618
18619