ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 1200 by chuckv, Fri Dec 7 00:00:05 2007 UTC vs.
Revision 1621 by gezelter, Mon Sep 12 18:19:40 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.59 for OOPSE 4.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright (C) 2003 Free Software Foundation, Inc.
7 > #
8 > # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 > # Foundation, Inc.
11 > #
12 > #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15 < ## --------------------- ##
16 < ## M4sh Initialization.  ##
17 < ## --------------------- ##
15 > ## -------------------- ##
16 > ## M4sh Initialization. ##
17 > ## -------------------- ##
18  
19 < # Be Bourne compatible
20 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 > # Be more Bourne compatible
20 > DUALCASE=1; export DUALCASE # for MKS sh
21 > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22    emulate sh
23    NULLCMD=:
24 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25    # is contrary to our usage.  Disable this feature.
26    alias -g '${1+"$@"}'='"$@"'
27 < elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 <  set -o posix
27 >  setopt NO_GLOB_SUBST
28 > else
29 >  case `(set -o) 2>/dev/null` in #(
30 >  *posix*) :
31 >    set -o posix ;; #(
32 >  *) :
33 >     ;;
34 > esac
35   fi
24 DUALCASE=1; export DUALCASE # for MKS sh
36  
37 < # Support unset when possible.
38 < if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39 <  as_unset=unset
37 >
38 > as_nl='
39 > '
40 > export as_nl
41 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 > # Prefer a ksh shell builtin over an external printf program on Solaris,
46 > # but without wasting forks for bash or zsh.
47 > if test -z "$BASH_VERSION$ZSH_VERSION" \
48 >    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 >  as_echo='print -r --'
50 >  as_echo_n='print -rn --'
51 > elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 >  as_echo='printf %s\n'
53 >  as_echo_n='printf %s'
54   else
55 <  as_unset=false
55 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 >    as_echo_n='/usr/ucb/echo -n'
58 >  else
59 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 >    as_echo_n_body='eval
61 >      arg=$1;
62 >      case $arg in #(
63 >      *"$as_nl"*)
64 >        expr "X$arg" : "X\\(.*\\)$as_nl";
65 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 >      esac;
67 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 >    '
69 >    export as_echo_n_body
70 >    as_echo_n='sh -c $as_echo_n_body as_echo'
71 >  fi
72 >  export as_echo_body
73 >  as_echo='sh -c $as_echo_body as_echo'
74   fi
75  
76 + # The user is always right.
77 + if test "${PATH_SEPARATOR+set}" != set; then
78 +  PATH_SEPARATOR=:
79 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 +      PATH_SEPARATOR=';'
82 +  }
83 + fi
84  
85 < # Work around bugs in pre-3.0 UWIN ksh.
86 < $as_unset ENV MAIL MAILPATH
85 >
86 > # IFS
87 > # We need space, tab and new line, in precisely that order.  Quoting is
88 > # there to prevent editors from complaining about space-tab.
89 > # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 > # splitting by setting IFS to empty value.)
91 > IFS=" ""        $as_nl"
92 >
93 > # Find who we are.  Look in the path if we contain no directory separator.
94 > as_myself=
95 > case $0 in #((
96 >  *[\\/]* ) as_myself=$0 ;;
97 >  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 > for as_dir in $PATH
99 > do
100 >  IFS=$as_save_IFS
101 >  test -z "$as_dir" && as_dir=.
102 >    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 >  done
104 > IFS=$as_save_IFS
105 >
106 >     ;;
107 > esac
108 > # We did not find ourselves, most probably we were run as `sh COMMAND'
109 > # in which case we are not to be found in the path.
110 > if test "x$as_myself" = x; then
111 >  as_myself=$0
112 > fi
113 > if test ! -f "$as_myself"; then
114 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 >  exit 1
116 > fi
117 >
118 > # Unset variables that we do not need and which cause bugs (e.g. in
119 > # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 > # suppresses any "Segmentation fault" message there.  '((' could
121 > # trigger a bug in pdksh 5.2.14.
122 > for as_var in BASH_ENV ENV MAIL MAILPATH
123 > do eval test x\${$as_var+set} = xset \
124 >  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 > done
126   PS1='$ '
127   PS2='> '
128   PS4='+ '
129  
130   # NLS nuisances.
131 < for as_var in \
132 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
133 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
134 <  LC_TELEPHONE LC_TIME
131 > LC_ALL=C
132 > export LC_ALL
133 > LANGUAGE=C
134 > export LANGUAGE
135 >
136 > # CDPATH.
137 > (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 >
139 > if test "x$CONFIG_SHELL" = x; then
140 >  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 >  emulate sh
142 >  NULLCMD=:
143 >  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 >  # is contrary to our usage.  Disable this feature.
145 >  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 >  setopt NO_GLOB_SUBST
147 > else
148 >  case \`(set -o) 2>/dev/null\` in #(
149 >  *posix*) :
150 >    set -o posix ;; #(
151 >  *) :
152 >     ;;
153 > esac
154 > fi
155 > "
156 >  as_required="as_fn_return () { (exit \$1); }
157 > as_fn_success () { as_fn_return 0; }
158 > as_fn_failure () { as_fn_return 1; }
159 > as_fn_ret_success () { return 0; }
160 > as_fn_ret_failure () { return 1; }
161 >
162 > exitcode=0
163 > as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 > as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 > as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 > as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 > if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 >
169 > else
170 >  exitcode=1; echo positional parameters were not saved.
171 > fi
172 > test x\$exitcode = x0 || exit 1"
173 >  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 >  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 >  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 >  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 > test \$(( 1 + 1 )) = 2 || exit 1"
178 >  if (eval "$as_required") 2>/dev/null; then :
179 >  as_have_required=yes
180 > else
181 >  as_have_required=no
182 > fi
183 >  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 >
185 > else
186 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 > as_found=false
188 > for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189   do
190 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
191 <    eval $as_var=C; export $as_var
190 >  IFS=$as_save_IFS
191 >  test -z "$as_dir" && as_dir=.
192 >  as_found=:
193 >  case $as_dir in #(
194 >         /*)
195 >           for as_base in sh bash ksh sh5; do
196 >             # Try only shells that exist, to save several forks.
197 >             as_shell=$as_dir/$as_base
198 >             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 >                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 >  CONFIG_SHELL=$as_shell as_have_required=yes
201 >                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 >  break 2
203 > fi
204 > fi
205 >           done;;
206 >       esac
207 >  as_found=false
208 > done
209 > $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 >              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 >  CONFIG_SHELL=$SHELL as_have_required=yes
212 > fi; }
213 > IFS=$as_save_IFS
214 >
215 >
216 >      if test "x$CONFIG_SHELL" != x; then :
217 >  # We cannot yet assume a decent shell, so we have to provide a
218 >        # neutralization value for shells without unset; and this also
219 >        # works around shells that cannot unset nonexistent variables.
220 >        # Preserve -v and -x to the replacement shell.
221 >        BASH_ENV=/dev/null
222 >        ENV=/dev/null
223 >        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 >        export CONFIG_SHELL
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 > fi
233 >
234 >    if test x$as_have_required = xno; then :
235 >  $as_echo "$0: This script requires a shell more modern than all"
236 >  $as_echo "$0: the shells that I found on your system."
237 >  if test x${ZSH_VERSION+set} = xset ; then
238 >    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 >    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240    else
241 <    $as_unset $as_var
241 >    $as_echo "$0: Please tell bug-autoconf@gnu.org and gezelter@nd.edu
242 > $0: about your system, including any error possibly output
243 > $0: before this message. Then install a modern shell, or
244 > $0: manually run the script under such a shell if you do
245 > $0: have one."
246    fi
247 < done
247 >  exit 1
248 > fi
249 > fi
250 > fi
251 > SHELL=${CONFIG_SHELL-/bin/sh}
252 > export SHELL
253 > # Unset more variables known to interfere with behavior of common tools.
254 > CLICOLOR_FORCE= GREP_OPTIONS=
255 > unset CLICOLOR_FORCE GREP_OPTIONS
256  
257 < # Required to use basename.
258 < if expr a : '\(a\)' >/dev/null 2>&1; then
257 > ## --------------------- ##
258 > ## M4sh Shell Functions. ##
259 > ## --------------------- ##
260 > # as_fn_unset VAR
261 > # ---------------
262 > # Portably unset VAR.
263 > as_fn_unset ()
264 > {
265 >  { eval $1=; unset $1;}
266 > }
267 > as_unset=as_fn_unset
268 >
269 > # as_fn_set_status STATUS
270 > # -----------------------
271 > # Set $? to STATUS, without forking.
272 > as_fn_set_status ()
273 > {
274 >  return $1
275 > } # as_fn_set_status
276 >
277 > # as_fn_exit STATUS
278 > # -----------------
279 > # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 > as_fn_exit ()
281 > {
282 >  set +e
283 >  as_fn_set_status $1
284 >  exit $1
285 > } # as_fn_exit
286 >
287 > # as_fn_mkdir_p
288 > # -------------
289 > # Create "$as_dir" as a directory, including parents if necessary.
290 > as_fn_mkdir_p ()
291 > {
292 >
293 >  case $as_dir in #(
294 >  -*) as_dir=./$as_dir;;
295 >  esac
296 >  test -d "$as_dir" || eval $as_mkdir_p || {
297 >    as_dirs=
298 >    while :; do
299 >      case $as_dir in #(
300 >      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 >      *) as_qdir=$as_dir;;
302 >      esac
303 >      as_dirs="'$as_qdir' $as_dirs"
304 >      as_dir=`$as_dirname -- "$as_dir" ||
305 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 >         X"$as_dir" : 'X\(//\)[^/]' \| \
307 >         X"$as_dir" : 'X\(//\)$' \| \
308 >         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 > $as_echo X"$as_dir" |
310 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 >            s//\1/
312 >            q
313 >          }
314 >          /^X\(\/\/\)[^/].*/{
315 >            s//\1/
316 >            q
317 >          }
318 >          /^X\(\/\/\)$/{
319 >            s//\1/
320 >            q
321 >          }
322 >          /^X\(\/\).*/{
323 >            s//\1/
324 >            q
325 >          }
326 >          s/.*/./; q'`
327 >      test -d "$as_dir" && break
328 >    done
329 >    test -z "$as_dirs" || eval "mkdir $as_dirs"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 >
332 >
333 > } # as_fn_mkdir_p
334 > # as_fn_append VAR VALUE
335 > # ----------------------
336 > # Append the text in VALUE to the end of the definition contained in VAR. Take
337 > # advantage of any shell optimizations that allow amortized linear growth over
338 > # repeated appends, instead of the typical quadratic growth present in naive
339 > # implementations.
340 > if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 >  eval 'as_fn_append ()
342 >  {
343 >    eval $1+=\$2
344 >  }'
345 > else
346 >  as_fn_append ()
347 >  {
348 >    eval $1=\$$1\$2
349 >  }
350 > fi # as_fn_append
351 >
352 > # as_fn_arith ARG...
353 > # ------------------
354 > # Perform arithmetic evaluation on the ARGs, and store the result in the
355 > # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 > # must be portable across $(()) and expr.
357 > if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 >  eval 'as_fn_arith ()
359 >  {
360 >    as_val=$(( $* ))
361 >  }'
362 > else
363 >  as_fn_arith ()
364 >  {
365 >    as_val=`expr "$@" || test $? -eq 1`
366 >  }
367 > fi # as_fn_arith
368 >
369 >
370 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 > # ----------------------------------------
372 > # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 > # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 > # script with STATUS, using 1 if that was 0.
375 > as_fn_error ()
376 > {
377 >  as_status=$1; test $as_status -eq 0 && as_status=1
378 >  if test "$4"; then
379 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 >  fi
382 >  $as_echo "$as_me: error: $2" >&2
383 >  as_fn_exit $as_status
384 > } # as_fn_error
385 >
386 > if expr a : '\(a\)' >/dev/null 2>&1 &&
387 >   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388    as_expr=expr
389   else
390    as_expr=false
391   fi
392  
393 < if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
393 > if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394    as_basename=basename
395   else
396    as_basename=false
397   fi
398  
399 + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 +  as_dirname=dirname
401 + else
402 +  as_dirname=false
403 + fi
404  
405 < # Name of the executable.
68 < as_me=`$as_basename "$0" ||
405 > as_me=`$as_basename -- "$0" ||
406   $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407           X"$0" : 'X\(//\)$' \| \
408 <         X"$0" : 'X\(/\)$' \| \
409 <         .     : '\(.\)' 2>/dev/null ||
410 < echo X/"$0" |
411 <    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
412 <          /^X\/\(\/\/\)$/{ s//\1/; q; }
413 <          /^X\/\(\/\).*/{ s//\1/; q; }
414 <          s/.*/./; q'`
408 >         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 > $as_echo X/"$0" |
410 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
411 >            s//\1/
412 >            q
413 >          }
414 >          /^X\/\(\/\/\)$/{
415 >            s//\1/
416 >            q
417 >          }
418 >          /^X\/\(\/\).*/{
419 >            s//\1/
420 >            q
421 >          }
422 >          s/.*/./; q'`
423  
79
80 # PATH needs CR, and LINENO needs CR and PATH.
424   # Avoid depending upon Character Ranges.
425   as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426   as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# Line 85 | Line 428 | as_cr_alnum=$as_cr_Letters$as_cr_digits
428   as_cr_digits='0123456789'
429   as_cr_alnum=$as_cr_Letters$as_cr_digits
430  
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99 fi
431  
432 <
433 <  as_lineno_1=$LINENO
434 <  as_lineno_2=$LINENO
435 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
436 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
437 <  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
438 <  # Find who we are.  Look in the path if we contain no path at all
439 <  # relative or not.
440 <  case $0 in
110 <    *[\\/]* ) as_myself=$0 ;;
111 <    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 < for as_dir in $PATH
113 < do
114 <  IFS=$as_save_IFS
115 <  test -z "$as_dir" && as_dir=.
116 <  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 < done
118 <
119 <       ;;
120 <  esac
121 <  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 <  # in which case we are not to be found in the path.
123 <  if test "x$as_myself" = x; then
124 <    as_myself=$0
125 <  fi
126 <  if test ! -f "$as_myself"; then
127 <    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 <   { (exit 1); exit 1; }; }
129 <  fi
130 <  case $CONFIG_SHELL in
131 <  '')
132 <    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 < for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 < do
135 <  IFS=$as_save_IFS
136 <  test -z "$as_dir" && as_dir=.
137 <  for as_base in sh bash ksh sh5; do
138 <         case $as_dir in
139 <         /*)
140 <           if ("$as_dir/$as_base" -c '
141 <  as_lineno_1=$LINENO
142 <  as_lineno_2=$LINENO
143 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 <  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 <             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 <             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 <             CONFIG_SHELL=$as_dir/$as_base
149 <             export CONFIG_SHELL
150 <             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 <           fi;;
152 <         esac
153 <       done
154 < done
155 < ;;
156 <  esac
157 <
158 <  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 <  # uniformly replaced by the line number.  The first 'sed' inserts a
160 <  # line-number line before each line; the second 'sed' does the real
161 <  # work.  The second script uses 'N' to pair each line-number line
162 <  # with the numbered line, and appends trailing '-' during
163 <  # substitution so that $LINENO is not a special case at line end.
164 <  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 <  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 <  sed '=' <$as_myself |
432 >  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 >  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 >  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 >  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 >  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437 >  sed -n '
438 >    p
439 >    /[$]LINENO/=
440 >  ' <$as_myself |
441      sed '
442 +      s/[$]LINENO.*/&-/
443 +      t lineno
444 +      b
445 +      :lineno
446        N
447 <      s,$,-,
448 <      : loop
171 <      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
447 >      :loop
448 >      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449        t loop
450 <      s,-$,,
174 <      s,^['$as_cr_digits']*\n,,
450 >      s/-\n.*//
451      ' >$as_me.lineno &&
452 <  chmod +x $as_me.lineno ||
453 <    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 <   { (exit 1); exit 1; }; }
452 >  chmod +x "$as_me.lineno" ||
453 >    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454  
455    # Don't try to exec as it changes $[0], causing all sort of problems
456    # (the dirname of $[0] is not the place where we might find the
457 <  # original and so on.  Autoconf is especially sensible to this).
458 <  . ./$as_me.lineno
457 >  # original and so on.  Autoconf is especially sensitive to this).
458 >  . "./$as_me.lineno"
459    # Exit status is that of the last command.
460    exit
461   }
462  
463 <
464 < case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
465 <  *c*,-n*) ECHO_N= ECHO_C='
466 < ' ECHO_T='      ' ;;
467 <  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
468 <  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
463 > ECHO_C= ECHO_N= ECHO_T=
464 > case `echo -n x` in #(((((
465 > -n*)
466 >  case `echo 'xy\c'` in
467 >  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468 >  xy)  ECHO_C='\c';;
469 >  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 >       ECHO_T=' ';;
471 >  esac;;
472 > *)
473 >  ECHO_N='-n';;
474   esac
475  
476 < if expr a : '\(a\)' >/dev/null 2>&1; then
477 <  as_expr=expr
476 > rm -f conf$$ conf$$.exe conf$$.file
477 > if test -d conf$$.dir; then
478 >  rm -f conf$$.dir/conf$$.file
479   else
480 <  as_expr=false
480 >  rm -f conf$$.dir
481 >  mkdir conf$$.dir 2>/dev/null
482   fi
483 <
484 < rm -f conf$$ conf$$.exe conf$$.file
203 < echo >conf$$.file
204 < if ln -s conf$$.file conf$$ 2>/dev/null; then
205 <  # We could just check for DJGPP; but this test a) works b) is more generic
206 <  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 <  if test -f conf$$.exe; then
208 <    # Don't use ln at all; we don't have any links
209 <    as_ln_s='cp -p'
210 <  else
483 > if (echo >conf$$.file) 2>/dev/null; then
484 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
485      as_ln_s='ln -s'
486 +    # ... but there are two gotchas:
487 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 +    # In both cases, we have to default to `cp -p'.
490 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 +      as_ln_s='cp -p'
492 +  elif ln conf$$.file conf$$ 2>/dev/null; then
493 +    as_ln_s=ln
494 +  else
495 +    as_ln_s='cp -p'
496    fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
497   else
498    as_ln_s='cp -p'
499   fi
500 < rm -f conf$$ conf$$.exe conf$$.file
500 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 > rmdir conf$$.dir 2>/dev/null
502  
503   if mkdir -p . 2>/dev/null; then
504 <  as_mkdir_p=:
504 >  as_mkdir_p='mkdir -p "$as_dir"'
505   else
506    test -d ./-p && rmdir ./-p
507    as_mkdir_p=false
508   fi
509  
510 < as_executable_p="test -f"
510 > if test -x / >/dev/null 2>&1; then
511 >  as_test_x='test -x'
512 > else
513 >  if ls -dL / >/dev/null 2>&1; then
514 >    as_ls_L_option=L
515 >  else
516 >    as_ls_L_option=
517 >  fi
518 >  as_test_x='
519 >    eval sh -c '\''
520 >      if test -d "$1"; then
521 >        test -d "$1/.";
522 >      else
523 >        case $1 in #(
524 >        -*)set "./$1";;
525 >        esac;
526 >        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 >        ???[sx]*):;;*)false;;esac;fi
528 >    '\'' sh
529 >  '
530 > fi
531 > as_executable_p=$as_test_x
532  
533   # Sed expression to map a string onto a valid CPP name.
534   as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Line 233 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 < # IFS
541 < # We need space, tab and new line, in precisely that order.
238 < as_nl='
239 < '
240 < IFS="   $as_nl"
540 > test -n "$DJDIR" || exec 7<&0 </dev/null
541 > exec 6>&1
542  
242 # CDPATH.
243 $as_unset CDPATH
244
245
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
251 exec 6>&1
252
548   #
549   # Initializations.
550   #
551   ac_default_prefix=/usr/local
552 + ac_clean_files=
553   ac_config_libobj_dir=.
554 + LIBOBJS=
555   cross_compiling=no
556   subdirs=
557   MFLAGS=
558   MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
559  
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='4.0'
564 < PACKAGE_STRING='OOPSE 4.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='1.0'
564 > PACKAGE_STRING='OpenMD 1.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566 + PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
572   #include <stdio.h>
573 < #if HAVE_SYS_TYPES_H
573 > #ifdef HAVE_SYS_TYPES_H
574   # include <sys/types.h>
575   #endif
576 < #if HAVE_SYS_STAT_H
576 > #ifdef HAVE_SYS_STAT_H
577   # include <sys/stat.h>
578   #endif
579 < #if STDC_HEADERS
579 > #ifdef STDC_HEADERS
580   # include <stdlib.h>
581   # include <stddef.h>
582   #else
583 < # if HAVE_STDLIB_H
583 > # ifdef HAVE_STDLIB_H
584   #  include <stdlib.h>
585   # endif
586   #endif
587 < #if HAVE_STRING_H
588 < # if !STDC_HEADERS && HAVE_MEMORY_H
587 > #ifdef HAVE_STRING_H
588 > # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589   #  include <memory.h>
590   # endif
591   # include <string.h>
592   #endif
593 < #if HAVE_STRINGS_H
593 > #ifdef HAVE_STRINGS_H
594   # include <strings.h>
595   #endif
596 < #if HAVE_INTTYPES_H
596 > #ifdef HAVE_INTTYPES_H
597   # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
598   #endif
599 < #if HAVE_UNISTD_H
599 > #ifdef HAVE_STDINT_H
600 > # include <stdint.h>
601 > #endif
602 > #ifdef HAVE_UNISTD_H
603   # include <unistd.h>
604   #endif"
605  
606 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug USE_SINGLE_PRECISION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS QHULL_INC_DIR QHULL_LIB_DIR QHULL LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_CXXFLAGS CGAL_LDFLAGS CGAL_CPPFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS'
606 > ac_subst_vars='LTLIBOBJS
607 > SUBDIRS
608 > OPENMD_HOME
609 > OPENMD
610 > MKINSTALLDIRS
611 > BATEXT
612 > enable_latex_docs
613 > enable_html_docs
614 > enable_dot
615 > DOC
616 > DOT
617 > DOXYGEN
618 > POW_LIB
619 > LIBOBJS
620 > USE_OPENBABEL
621 > OPENBABEL_LIB
622 > OPENBABEL_LIB_DIR
623 > OPENBABEL_INC_DIR
624 > USE_QHULL
625 > QHULL
626 > QHULL_LIB_DIR
627 > QHULL_INC_DIR
628 > CXXCPP
629 > FFTW_LIBS
630 > FFTW_LIB_DIR
631 > FFTW_INC_DIR
632 > ZLIB
633 > ZLIB_LIB_DIR
634 > ZLIB_INC_DIR
635 > F90_MODULE_NAMES
636 > F90MODINCSPEC
637 > MODDIRFLAG
638 > F90_WORK_FILES_ARG
639 > MOD
640 > FC_FUNC_
641 > FC_FUNC
642 > FCLIBS
643 > PREPDEFFLAG
644 > FCFLAGS_SRCEXT
645 > FCFLAGS_F90
646 > PS
647 > AR
648 > INSTALL_DATA
649 > INSTALL_SCRIPT
650 > INSTALL_PROGRAM
651 > PERL_SHEBANG
652 > PERLINTERP
653 > RANLIB
654 > SET_MAKE
655 > LN_S
656 > EGREP
657 > GREP
658 > CPP
659 > USE_MPI
660 > MPIFC
661 > MPICC
662 > MPILIBS
663 > MPICXX
664 > LIBDL
665 > ac_ct_FC
666 > FCFLAGS
667 > FC
668 > ac_ct_CC
669 > CFLAGS
670 > CC
671 > OBJEXT
672 > EXEEXT
673 > ac_ct_CXX
674 > CPPFLAGS
675 > LDFLAGS
676 > CXXFLAGS
677 > CXX
678 > USE_SINGLE_PRECISION
679 > debug
680 > PROGNAME
681 > host_os
682 > host_vendor
683 > host_cpu
684 > host
685 > build_os
686 > build_vendor
687 > build_cpu
688 > build
689 > target_alias
690 > host_alias
691 > build_alias
692 > LIBS
693 > ECHO_T
694 > ECHO_N
695 > ECHO_C
696 > DEFS
697 > mandir
698 > localedir
699 > libdir
700 > psdir
701 > pdfdir
702 > dvidir
703 > htmldir
704 > infodir
705 > docdir
706 > oldincludedir
707 > includedir
708 > localstatedir
709 > sharedstatedir
710 > sysconfdir
711 > datadir
712 > datarootdir
713 > libexecdir
714 > sbindir
715 > bindir
716 > program_transform_name
717 > prefix
718 > exec_prefix
719 > PACKAGE_URL
720 > PACKAGE_BUGREPORT
721 > PACKAGE_STRING
722 > PACKAGE_VERSION
723 > PACKAGE_TARNAME
724 > PACKAGE_NAME
725 > PATH_SEPARATOR
726 > SHELL'
727   ac_subst_files=''
728 + ac_user_opts='
729 + enable_option_checking
730 + enable_openmd_home
731 + enable_debug
732 + enable_single
733 + enable_float
734 + with_perl_shebang
735 + with_zlib
736 + with_fftw
737 + with_qhull
738 + with_openbabel
739 + enable_doxygen
740 + enable_dot
741 + enable_html_docs
742 + enable_latex_docs
743 + '
744 +      ac_precious_vars='build_alias
745 + host_alias
746 + target_alias
747 + CXX
748 + CXXFLAGS
749 + LDFLAGS
750 + LIBS
751 + CPPFLAGS
752 + CCC
753 + CC
754 + CFLAGS
755 + FC
756 + FCFLAGS
757 + MPICXX
758 + MPICC
759 + MPIFC
760 + CPP
761 + CXXCPP'
762  
763 +
764   # Initialize some variables set by options.
765   ac_init_help=
766   ac_init_version=false
767 + ac_unrecognized_opts=
768 + ac_unrecognized_sep=
769   # The variables have the same names as the options, with
770   # dashes changed to underlines.
771   cache_file=/dev/null
# Line 340 | Line 788 | x_libraries=NONE
788   # and all the variables that are supposed to be based on exec_prefix
789   # by default will actually change.
790   # Use braces instead of parens because sh, perl, etc. also accept them.
791 + # (The list follows the same order as the GNU Coding Standards.)
792   bindir='${exec_prefix}/bin'
793   sbindir='${exec_prefix}/sbin'
794   libexecdir='${exec_prefix}/libexec'
795 < datadir='${prefix}/share'
795 > datarootdir='${prefix}/share'
796 > datadir='${datarootdir}'
797   sysconfdir='${prefix}/etc'
798   sharedstatedir='${prefix}/com'
799   localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
800   includedir='${prefix}/include'
801   oldincludedir='/usr/include'
802 < infodir='${prefix}/info'
803 < mandir='${prefix}/man'
802 > docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 > infodir='${datarootdir}/info'
804 > htmldir='${docdir}'
805 > dvidir='${docdir}'
806 > pdfdir='${docdir}'
807 > psdir='${docdir}'
808 > libdir='${exec_prefix}/lib'
809 > localedir='${datarootdir}/locale'
810 > mandir='${datarootdir}/man'
811  
812   ac_prev=
813 + ac_dashdash=
814   for ac_option
815   do
816    # If the previous option needs an argument, assign it.
817    if test -n "$ac_prev"; then
818 <    eval "$ac_prev=\$ac_option"
818 >    eval $ac_prev=\$ac_option
819      ac_prev=
820      continue
821    fi
822  
823 <  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
823 >  case $ac_option in
824 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 >  *=)   ac_optarg= ;;
826 >  *)    ac_optarg=yes ;;
827 >  esac
828  
829    # Accept the important Cygnus configure options, so we can diagnose typos.
830  
831 <  case $ac_option in
831 >  case $ac_dashdash$ac_option in
832 >  --)
833 >    ac_dashdash=yes ;;
834  
835    -bindir | --bindir | --bindi | --bind | --bin | --bi)
836      ac_prev=bindir ;;
# Line 389 | Line 852 | do
852    --config-cache | -C)
853      cache_file=config.cache ;;
854  
855 <  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
855 >  -datadir | --datadir | --datadi | --datad)
856      ac_prev=datadir ;;
857 <  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 <  | --da=*)
857 >  -datadir=* | --datadir=* | --datadi=* | --datad=*)
858      datadir=$ac_optarg ;;
859  
860 +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 +  | --dataroo | --dataro | --datar)
862 +    ac_prev=datarootdir ;;
863 +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 +    datarootdir=$ac_optarg ;;
866 +
867    -disable-* | --disable-*)
868 <    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 >    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869      # Reject names that are not valid shell variable names.
870 <    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
871 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 <   { (exit 1); exit 1; }; }
873 <    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
874 <    eval "enable_$ac_feature=no" ;;
870 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 >      as_fn_error $? "invalid feature name: $ac_useropt"
872 >    ac_useropt_orig=$ac_useropt
873 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 >    case $ac_user_opts in
875 >      *"
876 > "enable_$ac_useropt"
877 > "*) ;;
878 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 >         ac_unrecognized_sep=', ';;
880 >    esac
881 >    eval enable_$ac_useropt=no ;;
882  
883 +  -docdir | --docdir | --docdi | --doc | --do)
884 +    ac_prev=docdir ;;
885 +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 +    docdir=$ac_optarg ;;
887 +
888 +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 +    ac_prev=dvidir ;;
890 +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 +    dvidir=$ac_optarg ;;
892 +
893    -enable-* | --enable-*)
894 <    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 >    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895      # Reject names that are not valid shell variable names.
896 <    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
897 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 <   { (exit 1); exit 1; }; }
899 <    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
900 <    case $ac_option in
901 <      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
902 <      *) ac_optarg=yes ;;
896 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 >      as_fn_error $? "invalid feature name: $ac_useropt"
898 >    ac_useropt_orig=$ac_useropt
899 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 >    case $ac_user_opts in
901 >      *"
902 > "enable_$ac_useropt"
903 > "*) ;;
904 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 >         ac_unrecognized_sep=', ';;
906      esac
907 <    eval "enable_$ac_feature='$ac_optarg'" ;;
907 >    eval enable_$ac_useropt=\$ac_optarg ;;
908  
909    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 441 | Line 930 | do
930      ac_prev=host_alias ;;
931    -host=* | --host=* | --hos=* | --ho=*)
932      host_alias=$ac_optarg ;;
933 +
934 +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 +    ac_prev=htmldir ;;
936 +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 +  | --ht=*)
938 +    htmldir=$ac_optarg ;;
939  
940    -includedir | --includedir | --includedi | --included | --include \
941    | --includ | --inclu | --incl | --inc)
# Line 466 | Line 961 | do
961    | --libexe=* | --libex=* | --libe=*)
962      libexecdir=$ac_optarg ;;
963  
964 +  -localedir | --localedir | --localedi | --localed | --locale)
965 +    ac_prev=localedir ;;
966 +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 +    localedir=$ac_optarg ;;
968 +
969    -localstatedir | --localstatedir | --localstatedi | --localstated \
970 <  | --localstate | --localstat | --localsta | --localst \
471 <  | --locals | --local | --loca | --loc | --lo)
970 >  | --localstate | --localstat | --localsta | --localst | --locals)
971      ac_prev=localstatedir ;;
972    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 <  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 <  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
973 >  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974      localstatedir=$ac_optarg ;;
975  
976    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
# Line 537 | Line 1035 | do
1035    | --progr-tra=* | --program-tr=* | --program-t=*)
1036      program_transform_name=$ac_optarg ;;
1037  
1038 +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 +    ac_prev=pdfdir ;;
1040 +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 +    pdfdir=$ac_optarg ;;
1042 +
1043 +  -psdir | --psdir | --psdi | --psd | --ps)
1044 +    ac_prev=psdir ;;
1045 +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 +    psdir=$ac_optarg ;;
1047 +
1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049    | -silent | --silent | --silen | --sile | --sil)
1050      silent=yes ;;
# Line 587 | Line 1095 | do
1095      ac_init_version=: ;;
1096  
1097    -with-* | --with-*)
1098 <    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 >    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099      # Reject names that are not valid shell variable names.
1100 <    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 <   { (exit 1); exit 1; }; }
1103 <    ac_package=`echo $ac_package| sed 's/-/_/g'`
1104 <    case $ac_option in
1105 <      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1106 <      *) ac_optarg=yes ;;
1100 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 >      as_fn_error $? "invalid package name: $ac_useropt"
1102 >    ac_useropt_orig=$ac_useropt
1103 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 >    case $ac_user_opts in
1105 >      *"
1106 > "with_$ac_useropt"
1107 > "*) ;;
1108 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 >         ac_unrecognized_sep=', ';;
1110      esac
1111 <    eval "with_$ac_package='$ac_optarg'" ;;
1111 >    eval with_$ac_useropt=\$ac_optarg ;;
1112  
1113    -without-* | --without-*)
1114 <    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 >    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115      # Reject names that are not valid shell variable names.
1116 <    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1117 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 <   { (exit 1); exit 1; }; }
1119 <    ac_package=`echo $ac_package | sed 's/-/_/g'`
1120 <    eval "with_$ac_package=no" ;;
1116 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 >      as_fn_error $? "invalid package name: $ac_useropt"
1118 >    ac_useropt_orig=$ac_useropt
1119 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 >    case $ac_user_opts in
1121 >      *"
1122 > "with_$ac_useropt"
1123 > "*) ;;
1124 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 >         ac_unrecognized_sep=', ';;
1126 >    esac
1127 >    eval with_$ac_useropt=no ;;
1128  
1129    --x)
1130      # Obsolete; use --with-x.
# Line 626 | Line 1144 | do
1144    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145      x_libraries=$ac_optarg ;;
1146  
1147 <  -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 < Try \`$0 --help' for more information." >&2
631 <   { (exit 1); exit 1; }; }
1147 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 > Try \`$0 --help' for more information"
1149      ;;
1150  
1151    *=*)
1152      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153      # Reject names that are not valid shell variable names.
1154 <    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155 <      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 <   { (exit 1); exit 1; }; }
1157 <    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1158 <    eval "$ac_envvar='$ac_optarg'"
1154 >    case $ac_envvar in #(
1155 >      '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157 >    esac
1158 >    eval $ac_envvar=\$ac_optarg
1159      export $ac_envvar ;;
1160  
1161    *)
1162      # FIXME: should be removed in autoconf 3.0.
1163 <    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 >    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 <      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 >      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167      ;;
1168  
1169    esac
# Line 654 | Line 1171 | if test -n "$ac_prev"; then
1171  
1172   if test -n "$ac_prev"; then
1173    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 <  { echo "$as_me: error: missing argument to $ac_option" >&2
658 <   { (exit 1); exit 1; }; }
1174 >  as_fn_error $? "missing argument to $ac_option"
1175   fi
1176  
1177 < # Be sure to have absolute paths.
1178 < for ac_var in exec_prefix prefix
1179 < do
1180 <  eval ac_val=$`echo $ac_var`
1181 <  case $ac_val in
666 <    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 <    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 <   { (exit 1); exit 1; }; };;
1177 > if test -n "$ac_unrecognized_opts"; then
1178 >  case $enable_option_checking in
1179 >    no) ;;
1180 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 >    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182    esac
1183 < done
1183 > fi
1184  
1185 < # Be sure to have absolute paths.
1186 < for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1187 <              localstatedir libdir includedir oldincludedir infodir mandir
1188 < do
1189 <  eval ac_val=$`echo $ac_var`
1185 > # Check all directory arguments for consistency.
1186 > for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 >                datadir sysconfdir sharedstatedir localstatedir includedir \
1188 >                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 >                libdir localedir mandir
1190 > do
1191 >  eval ac_val=\$$ac_var
1192 >  # Remove trailing slashes.
1193    case $ac_val in
1194 <    [\\/$]* | ?:[\\/]* ) ;;
1195 <    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1196 <   { (exit 1); exit 1; }; };;
1194 >    */ )
1195 >      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 >      eval $ac_var=\$ac_val;;
1197    esac
1198 +  # Be sure to have absolute directory names.
1199 +  case $ac_val in
1200 +    [\\/$]* | ?:[\\/]* )  continue;;
1201 +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 +  esac
1203 +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204   done
1205  
1206   # There might be people who depend on the old broken behavior: `$host'
# Line 692 | Line 1214 | if test "x$host_alias" != x; then
1214   if test "x$host_alias" != x; then
1215    if test "x$build_alias" = x; then
1216      cross_compiling=maybe
1217 <    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 <    If a cross compiler is detected then cross compile mode will be used." >&2
1217 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 >    If a cross compiler is detected then cross compile mode will be used" >&2
1219    elif test "x$build_alias" != "x$host_alias"; then
1220      cross_compiling=yes
1221    fi
# Line 705 | Line 1227 | test "$silent" = yes && exec 6>/dev/null
1227   test "$silent" = yes && exec 6>/dev/null
1228  
1229  
1230 + ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 + ac_ls_di=`ls -di .` &&
1232 + ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 +  as_fn_error $? "working directory cannot be determined"
1234 + test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 +  as_fn_error $? "pwd does not report name of working directory"
1236 +
1237 +
1238   # Find the source files, if location was not specified.
1239   if test -z "$srcdir"; then
1240    ac_srcdir_defaulted=yes
1241 <  # Try the directory containing this script, then its parent.
1242 <  ac_confdir=`(dirname "$0") 2>/dev/null ||
1243 < $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 <         X"$0" : 'X\(//\)[^/]' \| \
1245 <         X"$0" : 'X\(//\)$' \| \
1246 <         X"$0" : 'X\(/\)' \| \
1247 <         .     : '\(.\)' 2>/dev/null ||
1248 < echo X"$0" |
1249 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1250 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1251 <          /^X\(\/\/\)$/{ s//\1/; q; }
1252 <          /^X\(\/\).*/{ s//\1/; q; }
1253 <          s/.*/./; q'`
1241 >  # Try the directory containing this script, then the parent directory.
1242 >  ac_confdir=`$as_dirname -- "$as_myself" ||
1243 > $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 >         X"$as_myself" : 'X\(//\)[^/]' \| \
1245 >         X"$as_myself" : 'X\(//\)$' \| \
1246 >         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 > $as_echo X"$as_myself" |
1248 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 >            s//\1/
1250 >            q
1251 >          }
1252 >          /^X\(\/\/\)[^/].*/{
1253 >            s//\1/
1254 >            q
1255 >          }
1256 >          /^X\(\/\/\)$/{
1257 >            s//\1/
1258 >            q
1259 >          }
1260 >          /^X\(\/\).*/{
1261 >            s//\1/
1262 >            q
1263 >          }
1264 >          s/.*/./; q'`
1265    srcdir=$ac_confdir
1266 <  if test ! -r $srcdir/$ac_unique_file; then
1266 >  if test ! -r "$srcdir/$ac_unique_file"; then
1267      srcdir=..
1268    fi
1269   else
1270    ac_srcdir_defaulted=no
1271   fi
1272 < if test ! -r $srcdir/$ac_unique_file; then
1273 <  if test "$ac_srcdir_defaulted" = yes; then
1274 <    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 <   { (exit 1); exit 1; }; }
735 <  else
736 <    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 <   { (exit 1); exit 1; }; }
738 <  fi
1272 > if test ! -r "$srcdir/$ac_unique_file"; then
1273 >  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275   fi
1276 < (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1277 <  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1278 <   { (exit 1); exit 1; }; }
1279 < srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1280 < ac_env_build_alias_set=${build_alias+set}
1281 < ac_env_build_alias_value=$build_alias
1282 < ac_cv_env_build_alias_set=${build_alias+set}
1283 < ac_cv_env_build_alias_value=$build_alias
1284 < ac_env_host_alias_set=${host_alias+set}
1285 < ac_env_host_alias_value=$host_alias
1286 < ac_cv_env_host_alias_set=${host_alias+set}
1287 < ac_cv_env_host_alias_value=$host_alias
1288 < ac_env_target_alias_set=${target_alias+set}
1289 < ac_env_target_alias_value=$target_alias
1290 < ac_cv_env_target_alias_set=${target_alias+set}
1291 < ac_cv_env_target_alias_value=$target_alias
1292 < ac_env_CXX_set=${CXX+set}
1293 < ac_env_CXX_value=$CXX
1294 < ac_cv_env_CXX_set=${CXX+set}
1295 < ac_cv_env_CXX_value=$CXX
760 < ac_env_CXXFLAGS_set=${CXXFLAGS+set}
761 < ac_env_CXXFLAGS_value=$CXXFLAGS
762 < ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
763 < ac_cv_env_CXXFLAGS_value=$CXXFLAGS
764 < ac_env_LDFLAGS_set=${LDFLAGS+set}
765 < ac_env_LDFLAGS_value=$LDFLAGS
766 < ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 < ac_cv_env_LDFLAGS_value=$LDFLAGS
768 < ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 < ac_env_CPPFLAGS_value=$CPPFLAGS
770 < ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 < ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 < ac_env_CC_set=${CC+set}
773 < ac_env_CC_value=$CC
774 < ac_cv_env_CC_set=${CC+set}
775 < ac_cv_env_CC_value=$CC
776 < ac_env_CFLAGS_set=${CFLAGS+set}
777 < ac_env_CFLAGS_value=$CFLAGS
778 < ac_cv_env_CFLAGS_set=${CFLAGS+set}
779 < ac_cv_env_CFLAGS_value=$CFLAGS
780 < ac_env_FC_set=${FC+set}
781 < ac_env_FC_value=$FC
782 < ac_cv_env_FC_set=${FC+set}
783 < ac_cv_env_FC_value=$FC
784 < ac_env_FCFLAGS_set=${FCFLAGS+set}
785 < ac_env_FCFLAGS_value=$FCFLAGS
786 < ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
787 < ac_cv_env_FCFLAGS_value=$FCFLAGS
788 < ac_env_CPP_set=${CPP+set}
789 < ac_env_CPP_value=$CPP
790 < ac_cv_env_CPP_set=${CPP+set}
791 < ac_cv_env_CPP_value=$CPP
792 < ac_env_CXXCPP_set=${CXXCPP+set}
793 < ac_env_CXXCPP_value=$CXXCPP
794 < ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 < ac_cv_env_CXXCPP_value=$CXXCPP
1276 > ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 > ac_abs_confdir=`(
1278 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 >        pwd)`
1280 > # When building in place, set srcdir=.
1281 > if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 >  srcdir=.
1283 > fi
1284 > # Remove unnecessary trailing slashes from srcdir.
1285 > # Double slashes in file names in object file debugging info
1286 > # mess up M-x gdb in Emacs.
1287 > case $srcdir in
1288 > */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 > esac
1290 > for ac_var in $ac_precious_vars; do
1291 >  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 >  eval ac_env_${ac_var}_value=\$${ac_var}
1293 >  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 >  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 > done
1296  
1297   #
1298   # Report the --help message.
# Line 801 | Line 1301 | if test "$ac_init_help" = "long"; then
1301    # Omit some internal or obsolete options to make the list less imposing.
1302    # This message is too long to be a string in the A/UX 3.1 sh.
1303    cat <<_ACEOF
1304 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1304 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1305  
1306   Usage: $0 [OPTION]... [VAR=VALUE]...
1307  
# Line 815 | Line 1315 | Configuration:
1315        --help=short        display options specific to this package
1316        --help=recursive    display the short help of all the included packages
1317    -V, --version           display version information and exit
1318 <  -q, --quiet, --silent   do not print \`checking...' messages
1318 >  -q, --quiet, --silent   do not print \`checking ...' messages
1319        --cache-file=FILE   cache test results in FILE [disabled]
1320    -C, --config-cache      alias for \`--cache-file=config.cache'
1321    -n, --no-create         do not create output files
1322        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323  
824 _ACEOF
825
826  cat <<_ACEOF
1324   Installation directories:
1325    --prefix=PREFIX         install architecture-independent files in PREFIX
1326 <                          [$ac_default_prefix]
1326 >                          [$ac_default_prefix]
1327    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328 <                          [PREFIX]
1328 >                          [PREFIX]
1329  
1330   By default, \`make install' will install all the files in
1331   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 838 | Line 1335 | Fine tuning of the installation directories:
1335   For better control, use the options below.
1336  
1337   Fine tuning of the installation directories:
1338 <  --bindir=DIR           user executables [EPREFIX/bin]
1339 <  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340 <  --libexecdir=DIR       program executables [EPREFIX/libexec]
1341 <  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1342 <  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343 <  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344 <  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345 <  --libdir=DIR           object code libraries [EPREFIX/lib]
1346 <  --includedir=DIR       C header files [PREFIX/include]
1347 <  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348 <  --infodir=DIR          info documentation [PREFIX/info]
1349 <  --mandir=DIR           man documentation [PREFIX/man]
1338 >  --bindir=DIR            user executables [EPREFIX/bin]
1339 >  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1340 >  --libexecdir=DIR        program executables [EPREFIX/libexec]
1341 >  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1342 >  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1343 >  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1344 >  --libdir=DIR            object code libraries [EPREFIX/lib]
1345 >  --includedir=DIR        C header files [PREFIX/include]
1346 >  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1347 >  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1348 >  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1349 >  --infodir=DIR           info documentation [DATAROOTDIR/info]
1350 >  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351 >  --mandir=DIR            man documentation [DATAROOTDIR/man]
1352 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1353 >  --htmldir=DIR           html documentation [DOCDIR]
1354 >  --dvidir=DIR            dvi documentation [DOCDIR]
1355 >  --pdfdir=DIR            pdf documentation [DOCDIR]
1356 >  --psdir=DIR             ps documentation [DOCDIR]
1357   _ACEOF
1358  
1359    cat <<\_ACEOF
# Line 862 | Line 1366 | if test -n "$ac_init_help"; then
1366  
1367   if test -n "$ac_init_help"; then
1368    case $ac_init_help in
1369 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1369 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1370     esac
1371    cat <<\_ACEOF
1372  
1373   Optional Features:
1374 +  --disable-option-checking  ignore unrecognized --enable/--with options
1375    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1378 <  --enable-debug          Compile OOPSE in debug mode
1379 <  --enable-single         compile OOPSE in single precision
1377 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1378 >  --enable-debug          Compile OpenMD in debug mode
1379 >  --enable-single         compile OpenMD in single precision
1380    --enable-float          synonym for --enable-single
1381    --enable-doxygen        enable documentation generation with doxygen (auto)
1382    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 889 | Line 1394 | Optional Packages:
1394                            to /usr/local or /usr if not found in /usr/local)
1395    --with-qhull=DIR        root directory path of qhull installation (defaults
1396                            to /usr/local or /usr if not found in /usr/local)
1397 <  --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1398 <  --with-cgalmakefile=makefile
1399 <                          Use the following CGAL makefile
1397 >  --with-openbabel=DIR    root directory path of openbabel-2.x installation
1398 >                          (defaults to /usr/local or /usr if not found in
1399 >                          /usr/local)
1400  
1401   Some influential environment variables:
1402    CXX         C++ compiler command
1403    CXXFLAGS    C++ compiler flags
1404    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405                nonstandard directory <lib dir>
1406 <  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1407 <              headers in a nonstandard directory <include dir>
1406 >  LIBS        libraries to pass to the linker, e.g. -l<library>
1407 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 >              you have headers in a nonstandard directory <include dir>
1409    CC          C compiler command
1410    CFLAGS      C compiler flags
1411    FC          Fortran compiler command
1412    FCFLAGS     Fortran compiler flags
1413 +  MPICXX      MPI C++ compiler command
1414 +  MPICC       MPI C compiler command
1415 +  MPIFC       MPI Fortran compiler command
1416    CPP         C preprocessor
1417    CXXCPP      C++ preprocessor
1418  
# Line 912 | Line 1421 | _ACEOF
1421  
1422   Report bugs to <gezelter@nd.edu>.
1423   _ACEOF
1424 + ac_status=$?
1425   fi
1426  
1427   if test "$ac_init_help" = "recursive"; then
1428    # If there are subdirs, report their specific --help.
919  ac_popdir=`pwd`
1429    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 <    test -d $ac_dir || continue
1430 >    test -d "$ac_dir" ||
1431 >      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 >      continue
1433      ac_builddir=.
1434  
1435 < if test "$ac_dir" != .; then
1436 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1437 <  # A "../" for each directory in $ac_dir_suffix.
1438 <  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1439 < else
1440 <  ac_dir_suffix= ac_top_builddir=
1441 < fi
1435 > case "$ac_dir" in
1436 > .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 > *)
1438 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 >  # A ".." for each directory in $ac_dir_suffix.
1440 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 >  case $ac_top_builddir_sub in
1442 >  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 >  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 >  esac ;;
1445 > esac
1446 > ac_abs_top_builddir=$ac_pwd
1447 > ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 > # for backward compatibility:
1449 > ac_top_builddir=$ac_top_build_prefix
1450  
1451   case $srcdir in
1452 <  .)  # No --srcdir option.  We are building in place.
1452 >  .)  # We are building in place.
1453      ac_srcdir=.
1454 <    if test -z "$ac_top_builddir"; then
1455 <       ac_top_srcdir=.
1456 <    else
938 <       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 <    fi ;;
940 <  [\\/]* | ?:[\\/]* )  # Absolute path.
1454 >    ac_top_srcdir=$ac_top_builddir_sub
1455 >    ac_abs_top_srcdir=$ac_pwd ;;
1456 >  [\\/]* | ?:[\\/]* )  # Absolute name.
1457      ac_srcdir=$srcdir$ac_dir_suffix;
1458 <    ac_top_srcdir=$srcdir ;;
1459 <  *) # Relative path.
1460 <    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1461 <    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1462 < esac
1463 <
948 < # Do not use `cd foo && pwd` to compute absolute paths, because
949 < # the directories may not exist.
950 < case `pwd` in
951 < .) ac_abs_builddir="$ac_dir";;
952 < *)
953 <  case "$ac_dir" in
954 <  .) ac_abs_builddir=`pwd`;;
955 <  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 <  *) ac_abs_builddir=`pwd`/"$ac_dir";;
957 <  esac;;
958 < esac
959 < case $ac_abs_builddir in
960 < .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 < *)
962 <  case ${ac_top_builddir}. in
963 <  .) ac_abs_top_builddir=$ac_abs_builddir;;
964 <  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 <  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966 <  esac;;
1458 >    ac_top_srcdir=$srcdir
1459 >    ac_abs_top_srcdir=$srcdir ;;
1460 >  *) # Relative name.
1461 >    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 >    ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 >    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464   esac
1465 < case $ac_abs_builddir in
969 < .) ac_abs_srcdir=$ac_srcdir;;
970 < *)
971 <  case $ac_srcdir in
972 <  .) ac_abs_srcdir=$ac_abs_builddir;;
973 <  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 <  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975 <  esac;;
976 < esac
977 < case $ac_abs_builddir in
978 < .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 < *)
980 <  case $ac_top_srcdir in
981 <  .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 <  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 <  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 <  esac;;
985 < esac
1465 > ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466  
1467 <    cd $ac_dir
1468 <    # Check for guested configure; otherwise get Cygnus style configure.
1469 <    if test -f $ac_srcdir/configure.gnu; then
1470 <      echo
1471 <      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1472 <    elif test -f $ac_srcdir/configure; then
1473 <      echo
1474 <      $SHELL $ac_srcdir/configure  --help=recursive
995 <    elif test -f $ac_srcdir/configure.ac ||
996 <           test -f $ac_srcdir/configure.in; then
997 <      echo
998 <      $ac_configure --help
1467 >    cd "$ac_dir" || { ac_status=$?; continue; }
1468 >    # Check for guested configure.
1469 >    if test -f "$ac_srcdir/configure.gnu"; then
1470 >      echo &&
1471 >      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 >    elif test -f "$ac_srcdir/configure"; then
1473 >      echo &&
1474 >      $SHELL "$ac_srcdir/configure" --help=recursive
1475      else
1476 <      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 <    fi
1478 <    cd $ac_popdir
1476 >      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 >    fi || ac_status=$?
1478 >    cd "$ac_pwd" || { ac_status=$?; break; }
1479    done
1480   fi
1481  
1482 < test -n "$ac_init_help" && exit 0
1482 > test -n "$ac_init_help" && exit $ac_status
1483   if $ac_init_version; then
1484    cat <<\_ACEOF
1485 < OOPSE configure 4.0
1486 < generated by GNU Autoconf 2.59
1485 > OpenMD configure 1.0
1486 > generated by GNU Autoconf 2.68
1487  
1488 < Copyright (C) 2003 Free Software Foundation, Inc.
1488 > Copyright (C) 2010 Free Software Foundation, Inc.
1489   This configure script is free software; the Free Software Foundation
1490   gives unlimited permission to copy, distribute and modify it.
1491   _ACEOF
1492 <  exit 0
1492 >  exit
1493   fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1494  
1495 < It was created by OOPSE $as_me 4.0, which was
1496 < generated by GNU Autoconf 2.59.  Invocation command line was
1495 > ## ------------------------ ##
1496 > ## Autoconf initialization. ##
1497 > ## ------------------------ ##
1498  
1499 <  $ $0 $@
1500 <
1501 < _ACEOF
1499 > # ac_fn_cxx_try_compile LINENO
1500 > # ----------------------------
1501 > # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 > ac_fn_cxx_try_compile ()
1503   {
1504 < cat <<_ASUNAME
1505 < ## --------- ##
1506 < ## Platform. ##
1507 < ## --------- ##
1504 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 >  rm -f conftest.$ac_objext
1506 >  if { { ac_try="$ac_compile"
1507 > case "(($ac_try" in
1508 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 >  *) ac_try_echo=$ac_try;;
1510 > esac
1511 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 > $as_echo "$ac_try_echo"; } >&5
1513 >  (eval "$ac_compile") 2>conftest.err
1514 >  ac_status=$?
1515 >  if test -s conftest.err; then
1516 >    grep -v '^ *+' conftest.err >conftest.er1
1517 >    cat conftest.er1 >&5
1518 >    mv -f conftest.er1 conftest.err
1519 >  fi
1520 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 >  test $ac_status = 0; } && {
1522 >         test -z "$ac_cxx_werror_flag" ||
1523 >         test ! -s conftest.err
1524 >       } && test -s conftest.$ac_objext; then :
1525 >  ac_retval=0
1526 > else
1527 >  $as_echo "$as_me: failed program was:" >&5
1528 > sed 's/^/| /' conftest.$ac_ext >&5
1529  
1530 < hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1531 < uname -m = `(uname -m) 2>/dev/null || echo unknown`
1532 < uname -r = `(uname -r) 2>/dev/null || echo unknown`
1533 < uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 < uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530 >        ac_retval=1
1531 > fi
1532 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 >  as_fn_set_status $ac_retval
1534  
1535 < /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 < /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1535 > } # ac_fn_cxx_try_compile
1536  
1537 < /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1538 < /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1539 < /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1540 < hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1541 < /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1542 < /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1543 < /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1537 > # ac_fn_c_try_compile LINENO
1538 > # --------------------------
1539 > # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 > ac_fn_c_try_compile ()
1541 > {
1542 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 >  rm -f conftest.$ac_objext
1544 >  if { { ac_try="$ac_compile"
1545 > case "(($ac_try" in
1546 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 >  *) ac_try_echo=$ac_try;;
1548 > esac
1549 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 > $as_echo "$ac_try_echo"; } >&5
1551 >  (eval "$ac_compile") 2>conftest.err
1552 >  ac_status=$?
1553 >  if test -s conftest.err; then
1554 >    grep -v '^ *+' conftest.err >conftest.er1
1555 >    cat conftest.er1 >&5
1556 >    mv -f conftest.er1 conftest.err
1557 >  fi
1558 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 >  test $ac_status = 0; } && {
1560 >         test -z "$ac_c_werror_flag" ||
1561 >         test ! -s conftest.err
1562 >       } && test -s conftest.$ac_objext; then :
1563 >  ac_retval=0
1564 > else
1565 >  $as_echo "$as_me: failed program was:" >&5
1566 > sed 's/^/| /' conftest.$ac_ext >&5
1567  
1568 < _ASUNAME
1568 >        ac_retval=1
1569 > fi
1570 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 >  as_fn_set_status $ac_retval
1572  
1573 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 < for as_dir in $PATH
1056 < do
1057 <  IFS=$as_save_IFS
1058 <  test -z "$as_dir" && as_dir=.
1059 <  echo "PATH: $as_dir"
1060 < done
1573 > } # ac_fn_c_try_compile
1574  
1575 < } >&5
1575 > # ac_fn_fc_try_compile LINENO
1576 > # ---------------------------
1577 > # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 > ac_fn_fc_try_compile ()
1579 > {
1580 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 >  rm -f conftest.$ac_objext
1582 >  if { { ac_try="$ac_compile"
1583 > case "(($ac_try" in
1584 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 >  *) ac_try_echo=$ac_try;;
1586 > esac
1587 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 > $as_echo "$ac_try_echo"; } >&5
1589 >  (eval "$ac_compile") 2>conftest.err
1590 >  ac_status=$?
1591 >  if test -s conftest.err; then
1592 >    grep -v '^ *+' conftest.err >conftest.er1
1593 >    cat conftest.er1 >&5
1594 >    mv -f conftest.er1 conftest.err
1595 >  fi
1596 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 >  test $ac_status = 0; } && {
1598 >         test -z "$ac_fc_werror_flag" ||
1599 >         test ! -s conftest.err
1600 >       } && test -s conftest.$ac_objext; then :
1601 >  ac_retval=0
1602 > else
1603 >  $as_echo "$as_me: failed program was:" >&5
1604 > sed 's/^/| /' conftest.$ac_ext >&5
1605  
1606 < cat >&5 <<_ACEOF
1606 >        ac_retval=1
1607 > fi
1608 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 >  as_fn_set_status $ac_retval
1610  
1611 + } # ac_fn_fc_try_compile
1612  
1613 < ## ----------- ##
1614 < ## Core tests. ##
1615 < ## ----------- ##
1613 > # ac_fn_cxx_try_link LINENO
1614 > # -------------------------
1615 > # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 > ac_fn_cxx_try_link ()
1617 > {
1618 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 >  rm -f conftest.$ac_objext conftest$ac_exeext
1620 >  if { { ac_try="$ac_link"
1621 > case "(($ac_try" in
1622 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 >  *) ac_try_echo=$ac_try;;
1624 > esac
1625 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 > $as_echo "$ac_try_echo"; } >&5
1627 >  (eval "$ac_link") 2>conftest.err
1628 >  ac_status=$?
1629 >  if test -s conftest.err; then
1630 >    grep -v '^ *+' conftest.err >conftest.er1
1631 >    cat conftest.er1 >&5
1632 >    mv -f conftest.er1 conftest.err
1633 >  fi
1634 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 >  test $ac_status = 0; } && {
1636 >         test -z "$ac_cxx_werror_flag" ||
1637 >         test ! -s conftest.err
1638 >       } && test -s conftest$ac_exeext && {
1639 >         test "$cross_compiling" = yes ||
1640 >         $as_test_x conftest$ac_exeext
1641 >       }; then :
1642 >  ac_retval=0
1643 > else
1644 >  $as_echo "$as_me: failed program was:" >&5
1645 > sed 's/^/| /' conftest.$ac_ext >&5
1646  
1647 < _ACEOF
1647 >        ac_retval=1
1648 > fi
1649 >  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 >  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 >  # interfere with the next link command; also delete a directory that is
1652 >  # left behind by Apple's compiler.  We do this before executing the actions.
1653 >  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 >  as_fn_set_status $ac_retval
1656  
1657 + } # ac_fn_cxx_try_link
1658  
1659 < # Keep a trace of the command line.
1660 < # Strip out --no-create and --no-recursion so they do not pile up.
1661 < # Strip out --silent because we don't want to record it for future runs.
1662 < # Also quote any args containing shell meta-characters.
1078 < # Make two passes to allow for proper duplicate-argument suppression.
1079 < ac_configure_args=
1080 < ac_configure_args0=
1081 < ac_configure_args1=
1082 < ac_sep=
1083 < ac_must_keep_next=false
1084 < for ac_pass in 1 2
1085 < do
1086 <  for ac_arg
1087 <  do
1088 <    case $ac_arg in
1089 <    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 <    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 <    | -silent | --silent | --silen | --sile | --sil)
1092 <      continue ;;
1093 <    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 <      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 <    esac
1096 <    case $ac_pass in
1097 <    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 <    2)
1099 <      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 <      if test $ac_must_keep_next = true; then
1101 <        ac_must_keep_next=false # Got value, back to normal.
1102 <      else
1103 <        case $ac_arg in
1104 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1105 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 <          | -with-* | --with-* | -without-* | --without-* | --x)
1108 <            case "$ac_configure_args0 " in
1109 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 <            esac
1111 <            ;;
1112 <          -* ) ac_must_keep_next=true ;;
1113 <        esac
1114 <      fi
1115 <      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 <      # Get rid of the leading space.
1117 <      ac_sep=" "
1118 <      ;;
1119 <    esac
1120 <  done
1121 < done
1122 < $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 < $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 <
1125 < # When interrupted or exit'd, cleanup temporary files, and complete
1126 < # config.log.  We remove comments because anyway the quotes in there
1127 < # would cause problems or look ugly.
1128 < # WARNING: Be sure not to use single quotes in there, as some shells,
1129 < # such as our DU 5.0 friend, will then `close' the trap.
1130 < trap 'exit_status=$?
1131 <  # Save into config.log some information that might help in debugging.
1132 <  {
1133 <    echo
1134 <
1135 <    cat <<\_ASBOX
1136 < ## ---------------- ##
1137 < ## Cache variables. ##
1138 < ## ---------------- ##
1139 < _ASBOX
1140 <    echo
1141 <    # The following way of writing the cache mishandles newlines in values,
1659 > # ac_fn_cxx_check_func LINENO FUNC VAR
1660 > # ------------------------------------
1661 > # Tests whether FUNC exists, setting the cache variable VAR accordingly
1662 > ac_fn_cxx_check_func ()
1663   {
1664 <  (set) 2>&1 |
1665 <    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1666 <    *ac_space=\ *)
1667 <      sed -n \
1668 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1669 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1670 <      ;;
1671 <    *)
1672 <      sed -n \
1673 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1674 <      ;;
1154 <    esac;
1155 < }
1156 <    echo
1664 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 > $as_echo_n "checking for $2... " >&6; }
1667 > if eval \${$3+:} false; then :
1668 >  $as_echo_n "(cached) " >&6
1669 > else
1670 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 > /* end confdefs.h.  */
1672 > /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1673 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1674 > #define $2 innocuous_$2
1675  
1676 <    cat <<\_ASBOX
1677 < ## ----------------- ##
1678 < ## Output variables. ##
1679 < ## ----------------- ##
1162 < _ASBOX
1163 <    echo
1164 <    for ac_var in $ac_subst_vars
1165 <    do
1166 <      eval ac_val=$`echo $ac_var`
1167 <      echo "$ac_var='"'"'$ac_val'"'"'"
1168 <    done | sort
1169 <    echo
1676 > /* System header to define __stub macros and hopefully few prototypes,
1677 >    which can conflict with char $2 (); below.
1678 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1679 >    <limits.h> exists even on freestanding compilers.  */
1680  
1681 <    if test -n "$ac_subst_files"; then
1682 <      cat <<\_ASBOX
1683 < ## ------------- ##
1684 < ## Output files. ##
1685 < ## ------------- ##
1176 < _ASBOX
1177 <      echo
1178 <      for ac_var in $ac_subst_files
1179 <      do
1180 <        eval ac_val=$`echo $ac_var`
1181 <        echo "$ac_var='"'"'$ac_val'"'"'"
1182 <      done | sort
1183 <      echo
1184 <    fi
1681 > #ifdef __STDC__
1682 > # include <limits.h>
1683 > #else
1684 > # include <assert.h>
1685 > #endif
1686  
1687 <    if test -s confdefs.h; then
1187 <      cat <<\_ASBOX
1188 < ## ----------- ##
1189 < ## confdefs.h. ##
1190 < ## ----------- ##
1191 < _ASBOX
1192 <      echo
1193 <      sed "/^$/d" confdefs.h | sort
1194 <      echo
1195 <    fi
1196 <    test "$ac_signal" != 0 &&
1197 <      echo "$as_me: caught signal $ac_signal"
1198 <    echo "$as_me: exit $exit_status"
1199 <  } >&5
1200 <  rm -f core *.core &&
1201 <  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 <    exit $exit_status
1203 <     ' 0
1204 < for ac_signal in 1 2 13 15; do
1205 <  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 < done
1207 < ac_signal=0
1687 > #undef $2
1688  
1689 < # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 < rm -rf conftest* confdefs.h
1691 < # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1692 < echo >confdefs.h
1689 > /* Override any GCC internal prototype to avoid an error.
1690 >   Use char because int might match the return type of a GCC
1691 >   builtin and then its argument prototype would still apply.  */
1692 > #ifdef __cplusplus
1693 > extern "C"
1694 > #endif
1695 > char $2 ();
1696 > /* The GNU C library defines this for functions which it implements
1697 >    to always fail with ENOSYS.  Some functions are actually named
1698 >    something starting with __ and the normal name is an alias.  */
1699 > #if defined __stub_$2 || defined __stub___$2
1700 > choke me
1701 > #endif
1702  
1703 < # Predefined preprocessor variables.
1704 <
1705 < cat >>confdefs.h <<_ACEOF
1706 < #define PACKAGE_NAME "$PACKAGE_NAME"
1703 > int
1704 > main ()
1705 > {
1706 > return $2 ();
1707 >  ;
1708 >  return 0;
1709 > }
1710   _ACEOF
1711 + if ac_fn_cxx_try_link "$LINENO"; then :
1712 +  eval "$3=yes"
1713 + else
1714 +  eval "$3=no"
1715 + fi
1716 + rm -f core conftest.err conftest.$ac_objext \
1717 +    conftest$ac_exeext conftest.$ac_ext
1718 + fi
1719 + eval ac_res=\$$3
1720 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 + $as_echo "$ac_res" >&6; }
1722 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  
1724 + } # ac_fn_cxx_check_func
1725  
1726 < cat >>confdefs.h <<_ACEOF
1727 < #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 < _ACEOF
1726 > # ac_fn_c_try_link LINENO
1727 > # -----------------------
1728 > # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 > ac_fn_c_try_link ()
1730 > {
1731 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 >  rm -f conftest.$ac_objext conftest$ac_exeext
1733 >  if { { ac_try="$ac_link"
1734 > case "(($ac_try" in
1735 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 >  *) ac_try_echo=$ac_try;;
1737 > esac
1738 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 > $as_echo "$ac_try_echo"; } >&5
1740 >  (eval "$ac_link") 2>conftest.err
1741 >  ac_status=$?
1742 >  if test -s conftest.err; then
1743 >    grep -v '^ *+' conftest.err >conftest.er1
1744 >    cat conftest.er1 >&5
1745 >    mv -f conftest.er1 conftest.err
1746 >  fi
1747 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 >  test $ac_status = 0; } && {
1749 >         test -z "$ac_c_werror_flag" ||
1750 >         test ! -s conftest.err
1751 >       } && test -s conftest$ac_exeext && {
1752 >         test "$cross_compiling" = yes ||
1753 >         $as_test_x conftest$ac_exeext
1754 >       }; then :
1755 >  ac_retval=0
1756 > else
1757 >  $as_echo "$as_me: failed program was:" >&5
1758 > sed 's/^/| /' conftest.$ac_ext >&5
1759  
1760 +        ac_retval=1
1761 + fi
1762 +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 +  # interfere with the next link command; also delete a directory that is
1765 +  # left behind by Apple's compiler.  We do this before executing the actions.
1766 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 +  as_fn_set_status $ac_retval
1769  
1770 < cat >>confdefs.h <<_ACEOF
1771 < #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 < _ACEOF
1770 > } # ac_fn_c_try_link
1771 >
1772 > # ac_fn_c_check_func LINENO FUNC VAR
1773 > # ----------------------------------
1774 > # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 > ac_fn_c_check_func ()
1776 > {
1777 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 > $as_echo_n "checking for $2... " >&6; }
1780 > if eval \${$3+:} false; then :
1781 >  $as_echo_n "(cached) " >&6
1782 > else
1783 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 > /* end confdefs.h.  */
1785 > /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1787 > #define $2 innocuous_$2
1788  
1789 + /* System header to define __stub macros and hopefully few prototypes,
1790 +    which can conflict with char $2 (); below.
1791 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 +    <limits.h> exists even on freestanding compilers.  */
1793  
1794 < cat >>confdefs.h <<_ACEOF
1795 < #define PACKAGE_STRING "$PACKAGE_STRING"
1796 < _ACEOF
1794 > #ifdef __STDC__
1795 > # include <limits.h>
1796 > #else
1797 > # include <assert.h>
1798 > #endif
1799  
1800 + #undef $2
1801  
1802 < cat >>confdefs.h <<_ACEOF
1803 < #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 > /* Override any GCC internal prototype to avoid an error.
1803 >   Use char because int might match the return type of a GCC
1804 >   builtin and then its argument prototype would still apply.  */
1805 > #ifdef __cplusplus
1806 > extern "C"
1807 > #endif
1808 > char $2 ();
1809 > /* The GNU C library defines this for functions which it implements
1810 >    to always fail with ENOSYS.  Some functions are actually named
1811 >    something starting with __ and the normal name is an alias.  */
1812 > #if defined __stub_$2 || defined __stub___$2
1813 > choke me
1814 > #endif
1815 >
1816 > int
1817 > main ()
1818 > {
1819 > return $2 ();
1820 >  ;
1821 >  return 0;
1822 > }
1823   _ACEOF
1824 + if ac_fn_c_try_link "$LINENO"; then :
1825 +  eval "$3=yes"
1826 + else
1827 +  eval "$3=no"
1828 + fi
1829 + rm -f core conftest.err conftest.$ac_objext \
1830 +    conftest$ac_exeext conftest.$ac_ext
1831 + fi
1832 + eval ac_res=\$$3
1833 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 + $as_echo "$ac_res" >&6; }
1835 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836  
1837 + } # ac_fn_c_check_func
1838  
1839 < # Let the site file select an alternate cache file if it wants to.
1840 < # Prefer explicitly selected file to automatically selected ones.
1841 < if test -z "$CONFIG_SITE"; then
1842 <  if test "x$prefix" != xNONE; then
1843 <    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1844 <  else
1845 <    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1839 > # ac_fn_fc_try_link LINENO
1840 > # ------------------------
1841 > # Try to link conftest.$ac_ext, and return whether this succeeded.
1842 > ac_fn_fc_try_link ()
1843 > {
1844 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 >  rm -f conftest.$ac_objext conftest$ac_exeext
1846 >  if { { ac_try="$ac_link"
1847 > case "(($ac_try" in
1848 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 >  *) ac_try_echo=$ac_try;;
1850 > esac
1851 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 > $as_echo "$ac_try_echo"; } >&5
1853 >  (eval "$ac_link") 2>conftest.err
1854 >  ac_status=$?
1855 >  if test -s conftest.err; then
1856 >    grep -v '^ *+' conftest.err >conftest.er1
1857 >    cat conftest.er1 >&5
1858 >    mv -f conftest.er1 conftest.err
1859    fi
1860 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 +  test $ac_status = 0; } && {
1862 +         test -z "$ac_fc_werror_flag" ||
1863 +         test ! -s conftest.err
1864 +       } && test -s conftest$ac_exeext && {
1865 +         test "$cross_compiling" = yes ||
1866 +         $as_test_x conftest$ac_exeext
1867 +       }; then :
1868 +  ac_retval=0
1869 + else
1870 +  $as_echo "$as_me: failed program was:" >&5
1871 + sed 's/^/| /' conftest.$ac_ext >&5
1872 +
1873 +        ac_retval=1
1874   fi
1875 < for ac_site_file in $CONFIG_SITE; do
1876 <  if test -r "$ac_site_file"; then
1877 <    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878 < echo "$as_me: loading site script $ac_site_file" >&6;}
1879 <    sed 's/^/| /' "$ac_site_file" >&5
1880 <    . "$ac_site_file"
1881 <  fi
1257 < done
1875 >  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 >  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 >  # interfere with the next link command; also delete a directory that is
1878 >  # left behind by Apple's compiler.  We do this before executing the actions.
1879 >  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 >  as_fn_set_status $ac_retval
1882  
1883 < if test -r "$cache_file"; then
1884 <  # Some versions of bash will fail to source /dev/null (special
1885 <  # files actually), so we avoid doing that.
1886 <  if test -f "$cache_file"; then
1887 <    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 < echo "$as_me: loading cache $cache_file" >&6;}
1889 <    case $cache_file in
1890 <      [\\/]* | ?:[\\/]* ) . $cache_file;;
1891 <      *)                      . ./$cache_file;;
1892 <    esac
1883 > } # ac_fn_fc_try_link
1884 >
1885 > # ac_fn_c_try_cpp LINENO
1886 > # ----------------------
1887 > # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 > ac_fn_c_try_cpp ()
1889 > {
1890 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 >  if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 > case "(($ac_try" in
1893 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 >  *) ac_try_echo=$ac_try;;
1895 > esac
1896 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 > $as_echo "$ac_try_echo"; } >&5
1898 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 >  ac_status=$?
1900 >  if test -s conftest.err; then
1901 >    grep -v '^ *+' conftest.err >conftest.er1
1902 >    cat conftest.er1 >&5
1903 >    mv -f conftest.er1 conftest.err
1904    fi
1905 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 +  test $ac_status = 0; } > conftest.i && {
1907 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1908 +         test ! -s conftest.err
1909 +       }; then :
1910 +  ac_retval=0
1911   else
1912 <  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 < echo "$as_me: creating cache $cache_file" >&6;}
1273 <  >$cache_file
1274 < fi
1912 >  $as_echo "$as_me: failed program was:" >&5
1913 > sed 's/^/| /' conftest.$ac_ext >&5
1914  
1915 < # Check that the precious variables saved in the cache have kept the same
1277 < # value.
1278 < ac_cache_corrupted=false
1279 < for ac_var in `(set) 2>&1 |
1280 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281 <  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282 <  eval ac_new_set=\$ac_env_${ac_var}_set
1283 <  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284 <  eval ac_new_val="\$ac_env_${ac_var}_value"
1285 <  case $ac_old_set,$ac_new_set in
1286 <    set,)
1287 <      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 < echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289 <      ac_cache_corrupted=: ;;
1290 <    ,set)
1291 <      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 < echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293 <      ac_cache_corrupted=: ;;
1294 <    ,);;
1295 <    *)
1296 <      if test "x$ac_old_val" != "x$ac_new_val"; then
1297 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298 < echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1300 < echo "$as_me:   former value:  $ac_old_val" >&2;}
1301 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1302 < echo "$as_me:   current value: $ac_new_val" >&2;}
1303 <        ac_cache_corrupted=:
1304 <      fi;;
1305 <  esac
1306 <  # Pass precious variables to config.status.
1307 <  if test "$ac_new_set" = set; then
1308 <    case $ac_new_val in
1309 <    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310 <      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311 <    *) ac_arg=$ac_var=$ac_new_val ;;
1312 <    esac
1313 <    case " $ac_configure_args " in
1314 <      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1315 <      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316 <    esac
1317 <  fi
1318 < done
1319 < if $ac_cache_corrupted; then
1320 <  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321 < echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322 <  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323 < echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324 <   { (exit 1); exit 1; }; }
1915 >    ac_retval=1
1916   fi
1917 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 +  as_fn_set_status $ac_retval
1919  
1920 < ac_ext=c
1328 < ac_cpp='$CPP $CPPFLAGS'
1329 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920 > } # ac_fn_c_try_cpp
1921  
1922 <
1923 <
1924 <
1925 <
1926 <
1927 <
1928 <
1929 <
1930 <
1931 <
1932 <
1933 <
1934 <
1935 <
1936 <
1937 <
1938 <
1939 <
1940 <
1922 > # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923 > # -------------------------------------------------------
1924 > # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925 > # the include files in INCLUDES and setting the cache variable VAR
1926 > # accordingly.
1927 > ac_fn_c_check_header_mongrel ()
1928 > {
1929 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 >  if eval \${$3+:} false; then :
1931 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 > $as_echo_n "checking for $2... " >&6; }
1933 > if eval \${$3+:} false; then :
1934 >  $as_echo_n "(cached) " >&6
1935 > fi
1936 > eval ac_res=\$$3
1937 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 > $as_echo "$ac_res" >&6; }
1939 > else
1940 >  # Is the header compilable?
1941 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942 > $as_echo_n "checking $2 usability... " >&6; }
1943 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 > /* end confdefs.h.  */
1945 > $4
1946 > #include <$2>
1947 > _ACEOF
1948 > if ac_fn_c_try_compile "$LINENO"; then :
1949 >  ac_header_compiler=yes
1950 > else
1951 >  ac_header_compiler=no
1952 > fi
1953 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955 > $as_echo "$ac_header_compiler" >&6; }
1956  
1957 + # Is the header present?
1958 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959 + $as_echo_n "checking $2 presence... " >&6; }
1960 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 + /* end confdefs.h.  */
1962 + #include <$2>
1963 + _ACEOF
1964 + if ac_fn_c_try_cpp "$LINENO"; then :
1965 +  ac_header_preproc=yes
1966 + else
1967 +  ac_header_preproc=no
1968 + fi
1969 + rm -f conftest.err conftest.i conftest.$ac_ext
1970 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971 + $as_echo "$ac_header_preproc" >&6; }
1972  
1973 + # So?  What about this header?
1974 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1975 +  yes:no: )
1976 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977 + $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 +    ;;
1981 +  no:yes:* )
1982 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983 + $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1985 + $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1986 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987 + $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1989 + $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1990 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 + ( $as_echo "## ------------------------------ ##
1993 + ## Report this to gezelter@nd.edu ##
1994 + ## ------------------------------ ##"
1995 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
1996 +    ;;
1997 + esac
1998 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 + $as_echo_n "checking for $2... " >&6; }
2000 + if eval \${$3+:} false; then :
2001 +  $as_echo_n "(cached) " >&6
2002 + else
2003 +  eval "$3=\$ac_header_compiler"
2004 + fi
2005 + eval ac_res=\$$3
2006 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 + $as_echo "$ac_res" >&6; }
2008 + fi
2009 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010  
2011 + } # ac_fn_c_check_header_mongrel
2012  
2013 + # ac_fn_c_try_run LINENO
2014 + # ----------------------
2015 + # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2016 + # that executables *can* be run.
2017 + ac_fn_c_try_run ()
2018 + {
2019 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 +  if { { ac_try="$ac_link"
2021 + case "(($ac_try" in
2022 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 +  *) ac_try_echo=$ac_try;;
2024 + esac
2025 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 + $as_echo "$ac_try_echo"; } >&5
2027 +  (eval "$ac_link") 2>&5
2028 +  ac_status=$?
2029 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2031 +  { { case "(($ac_try" in
2032 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 +  *) ac_try_echo=$ac_try;;
2034 + esac
2035 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 + $as_echo "$ac_try_echo"; } >&5
2037 +  (eval "$ac_try") 2>&5
2038 +  ac_status=$?
2039 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 +  test $ac_status = 0; }; }; then :
2041 +  ac_retval=0
2042 + else
2043 +  $as_echo "$as_me: program exited with status $ac_status" >&5
2044 +       $as_echo "$as_me: failed program was:" >&5
2045 + sed 's/^/| /' conftest.$ac_ext >&5
2046  
2047 +       ac_retval=$ac_status
2048 + fi
2049 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 +  as_fn_set_status $ac_retval
2052  
2053 + } # ac_fn_c_try_run
2054  
2055 < ac_aux_dir=
2056 < for ac_dir in ac-tools $srcdir/ac-tools; do
2057 <  if test -f $ac_dir/install-sh; then
2058 <    ac_aux_dir=$ac_dir
2059 <    ac_install_sh="$ac_aux_dir/install-sh -c"
2060 <    break
2061 <  elif test -f $ac_dir/install.sh; then
2062 <    ac_aux_dir=$ac_dir
2063 <    ac_install_sh="$ac_aux_dir/install.sh -c"
2064 <    break
2065 <  elif test -f $ac_dir/shtool; then
2066 <    ac_aux_dir=$ac_dir
2067 <    ac_install_sh="$ac_aux_dir/shtool install -c"
2068 <    break
2055 > # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2056 > # -------------------------------------------------------
2057 > # Tests whether HEADER exists and can be compiled using the include files in
2058 > # INCLUDES, setting the cache variable VAR accordingly.
2059 > ac_fn_c_check_header_compile ()
2060 > {
2061 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 > $as_echo_n "checking for $2... " >&6; }
2064 > if eval \${$3+:} false; then :
2065 >  $as_echo_n "(cached) " >&6
2066 > else
2067 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 > /* end confdefs.h.  */
2069 > $4
2070 > #include <$2>
2071 > _ACEOF
2072 > if ac_fn_c_try_compile "$LINENO"; then :
2073 >  eval "$3=yes"
2074 > else
2075 >  eval "$3=no"
2076 > fi
2077 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 > fi
2079 > eval ac_res=\$$3
2080 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 > $as_echo "$ac_res" >&6; }
2082 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 >
2084 > } # ac_fn_c_check_header_compile
2085 >
2086 > # ac_fn_cxx_try_cpp LINENO
2087 > # ------------------------
2088 > # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2089 > ac_fn_cxx_try_cpp ()
2090 > {
2091 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 >  if { { ac_try="$ac_cpp conftest.$ac_ext"
2093 > case "(($ac_try" in
2094 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 >  *) ac_try_echo=$ac_try;;
2096 > esac
2097 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2098 > $as_echo "$ac_try_echo"; } >&5
2099 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2100 >  ac_status=$?
2101 >  if test -s conftest.err; then
2102 >    grep -v '^ *+' conftest.err >conftest.er1
2103 >    cat conftest.er1 >&5
2104 >    mv -f conftest.er1 conftest.err
2105    fi
2106 < done
2107 < if test -z "$ac_aux_dir"; then
2108 <  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
2109 < echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
2110 <   { (exit 1); exit 1; }; }
2106 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 >  test $ac_status = 0; } > conftest.i && {
2108 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2109 >         test ! -s conftest.err
2110 >       }; then :
2111 >  ac_retval=0
2112 > else
2113 >  $as_echo "$as_me: failed program was:" >&5
2114 > sed 's/^/| /' conftest.$ac_ext >&5
2115 >
2116 >    ac_retval=1
2117   fi
2118 < ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2119 < ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1382 < ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2118 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 >  as_fn_set_status $ac_retval
2120  
2121 + } # ac_fn_cxx_try_cpp
2122  
2123 <          ac_config_headers="$ac_config_headers src/config.h"
2123 > # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2124 > # ---------------------------------------------------------
2125 > # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126 > # the include files in INCLUDES and setting the cache variable VAR
2127 > # accordingly.
2128 > ac_fn_cxx_check_header_mongrel ()
2129 > {
2130 >  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 >  if eval \${$3+:} false; then :
2132 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 > $as_echo_n "checking for $2... " >&6; }
2134 > if eval \${$3+:} false; then :
2135 >  $as_echo_n "(cached) " >&6
2136 > fi
2137 > eval ac_res=\$$3
2138 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 > $as_echo "$ac_res" >&6; }
2140 > else
2141 >  # Is the header compilable?
2142 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143 > $as_echo_n "checking $2 usability... " >&6; }
2144 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 > /* end confdefs.h.  */
2146 > $4
2147 > #include <$2>
2148 > _ACEOF
2149 > if ac_fn_cxx_try_compile "$LINENO"; then :
2150 >  ac_header_compiler=yes
2151 > else
2152 >  ac_header_compiler=no
2153 > fi
2154 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156 > $as_echo "$ac_header_compiler" >&6; }
2157  
2158 + # Is the header present?
2159 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160 + $as_echo_n "checking $2 presence... " >&6; }
2161 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 + /* end confdefs.h.  */
2163 + #include <$2>
2164 + _ACEOF
2165 + if ac_fn_cxx_try_cpp "$LINENO"; then :
2166 +  ac_header_preproc=yes
2167 + else
2168 +  ac_header_preproc=no
2169 + fi
2170 + rm -f conftest.err conftest.i conftest.$ac_ext
2171 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172 + $as_echo "$ac_header_preproc" >&6; }
2173  
2174 + # So?  What about this header?
2175 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2176 +  yes:no: )
2177 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178 + $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 +    ;;
2182 +  no:yes:* )
2183 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184 + $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2186 + $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2187 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188 + $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2190 + $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2191 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 + ( $as_echo "## ------------------------------ ##
2194 + ## Report this to gezelter@nd.edu ##
2195 + ## ------------------------------ ##"
2196 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
2197 +    ;;
2198 + esac
2199 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 + $as_echo_n "checking for $2... " >&6; }
2201 + if eval \${$3+:} false; then :
2202 +  $as_echo_n "(cached) " >&6
2203 + else
2204 +  eval "$3=\$ac_header_compiler"
2205 + fi
2206 + eval ac_res=\$$3
2207 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 + $as_echo "$ac_res" >&6; }
2209 + fi
2210 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211  
2212 + } # ac_fn_cxx_check_header_mongrel
2213  
2214 + # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2215 + # -------------------------------------------
2216 + # Tests whether TYPE exists after having included INCLUDES, setting cache
2217 + # variable VAR accordingly.
2218 + ac_fn_c_check_type ()
2219 + {
2220 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 + $as_echo_n "checking for $2... " >&6; }
2223 + if eval \${$3+:} false; then :
2224 +  $as_echo_n "(cached) " >&6
2225 + else
2226 +  eval "$3=no"
2227 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 + /* end confdefs.h.  */
2229 + $4
2230 + #ifdef FC_DUMMY_MAIN
2231 + #ifndef FC_DUMMY_MAIN_EQ_F77
2232 + #  ifdef __cplusplus
2233 +     extern "C"
2234 + #  endif
2235 +   int FC_DUMMY_MAIN() { return 1; }
2236 + #endif
2237 + #endif
2238 + int
2239 + main ()
2240 + {
2241 + if (sizeof ($2))
2242 +         return 0;
2243 +  ;
2244 +  return 0;
2245 + }
2246 + _ACEOF
2247 + if ac_fn_c_try_compile "$LINENO"; then :
2248 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 + /* end confdefs.h.  */
2250 + $4
2251 + #ifdef FC_DUMMY_MAIN
2252 + #ifndef FC_DUMMY_MAIN_EQ_F77
2253 + #  ifdef __cplusplus
2254 +     extern "C"
2255 + #  endif
2256 +   int FC_DUMMY_MAIN() { return 1; }
2257 + #endif
2258 + #endif
2259 + int
2260 + main ()
2261 + {
2262 + if (sizeof (($2)))
2263 +            return 0;
2264 +  ;
2265 +  return 0;
2266 + }
2267 + _ACEOF
2268 + if ac_fn_c_try_compile "$LINENO"; then :
2269  
2270 + else
2271 +  eval "$3=yes"
2272 + fi
2273 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 + fi
2275 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 + fi
2277 + eval ac_res=\$$3
2278 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 + $as_echo "$ac_res" >&6; }
2280 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281  
2282 + } # ac_fn_c_check_type
2283 + cat >config.log <<_ACEOF
2284 + This file contains any messages produced by compilers while
2285 + running configure, to aid debugging if configure makes a mistake.
2286  
2287 + It was created by OpenMD $as_me 1.0, which was
2288 + generated by GNU Autoconf 2.68.  Invocation command line was
2289  
2290 +  $ $0 $@
2291  
2292 + _ACEOF
2293 + exec 5>>config.log
2294 + {
2295 + cat <<_ASUNAME
2296 + ## --------- ##
2297 + ## Platform. ##
2298 + ## --------- ##
2299  
2300 + hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 + uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 + uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 + uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 + uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305  
2306 + /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 + /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2308  
2309 + /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2310 + /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2311 + /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 + /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2313 + /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2314 + /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2315 + /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2316  
2317 + _ASUNAME
2318  
2319 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 + for as_dir in $PATH
2321 + do
2322 +  IFS=$as_save_IFS
2323 +  test -z "$as_dir" && as_dir=.
2324 +    $as_echo "PATH: $as_dir"
2325 +  done
2326 + IFS=$as_save_IFS
2327  
2328 + } >&5
2329  
2330 + cat >&5 <<_ACEOF
2331  
2332  
2333 + ## ----------- ##
2334 + ## Core tests. ##
2335 + ## ----------- ##
2336  
2337 + _ACEOF
2338  
2339  
2340 + # Keep a trace of the command line.
2341 + # Strip out --no-create and --no-recursion so they do not pile up.
2342 + # Strip out --silent because we don't want to record it for future runs.
2343 + # Also quote any args containing shell meta-characters.
2344 + # Make two passes to allow for proper duplicate-argument suppression.
2345 + ac_configure_args=
2346 + ac_configure_args0=
2347 + ac_configure_args1=
2348 + ac_must_keep_next=false
2349 + for ac_pass in 1 2
2350 + do
2351 +  for ac_arg
2352 +  do
2353 +    case $ac_arg in
2354 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356 +    | -silent | --silent | --silen | --sile | --sil)
2357 +      continue ;;
2358 +    *\'*)
2359 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360 +    esac
2361 +    case $ac_pass in
2362 +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363 +    2)
2364 +      as_fn_append ac_configure_args1 " '$ac_arg'"
2365 +      if test $ac_must_keep_next = true; then
2366 +        ac_must_keep_next=false # Got value, back to normal.
2367 +      else
2368 +        case $ac_arg in
2369 +          *=* | --config-cache | -C | -disable-* | --disable-* \
2370 +          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371 +          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372 +          | -with-* | --with-* | -without-* | --without-* | --x)
2373 +            case "$ac_configure_args0 " in
2374 +              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375 +            esac
2376 +            ;;
2377 +          -* ) ac_must_keep_next=true ;;
2378 +        esac
2379 +      fi
2380 +      as_fn_append ac_configure_args " '$ac_arg'"
2381 +      ;;
2382 +    esac
2383 +  done
2384 + done
2385 + { ac_configure_args0=; unset ac_configure_args0;}
2386 + { ac_configure_args1=; unset ac_configure_args1;}
2387  
2388 + # When interrupted or exit'd, cleanup temporary files, and complete
2389 + # config.log.  We remove comments because anyway the quotes in there
2390 + # would cause problems or look ugly.
2391 + # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 + # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 + trap 'exit_status=$?
2394 +  # Save into config.log some information that might help in debugging.
2395 +  {
2396 +    echo
2397  
2398 +    $as_echo "## ---------------- ##
2399 + ## Cache variables. ##
2400 + ## ---------------- ##"
2401 +    echo
2402 +    # The following way of writing the cache mishandles newlines in values,
2403 + (
2404 +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405 +    eval ac_val=\$$ac_var
2406 +    case $ac_val in #(
2407 +    *${as_nl}*)
2408 +      case $ac_var in #(
2409 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410 + $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411 +      esac
2412 +      case $ac_var in #(
2413 +      _ | IFS | as_nl) ;; #(
2414 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415 +      *) { eval $ac_var=; unset $ac_var;} ;;
2416 +      esac ;;
2417 +    esac
2418 +  done
2419 +  (set) 2>&1 |
2420 +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421 +    *${as_nl}ac_space=\ *)
2422 +      sed -n \
2423 +        "s/'\''/'\''\\\\'\'''\''/g;
2424 +          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425 +      ;; #(
2426 +    *)
2427 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428 +      ;;
2429 +    esac |
2430 +    sort
2431 + )
2432 +    echo
2433  
2434 +    $as_echo "## ----------------- ##
2435 + ## Output variables. ##
2436 + ## ----------------- ##"
2437 +    echo
2438 +    for ac_var in $ac_subst_vars
2439 +    do
2440 +      eval ac_val=\$$ac_var
2441 +      case $ac_val in
2442 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 +      esac
2444 +      $as_echo "$ac_var='\''$ac_val'\''"
2445 +    done | sort
2446 +    echo
2447  
2448 +    if test -n "$ac_subst_files"; then
2449 +      $as_echo "## ------------------- ##
2450 + ## File substitutions. ##
2451 + ## ------------------- ##"
2452 +      echo
2453 +      for ac_var in $ac_subst_files
2454 +      do
2455 +        eval ac_val=\$$ac_var
2456 +        case $ac_val in
2457 +        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 +        esac
2459 +        $as_echo "$ac_var='\''$ac_val'\''"
2460 +      done | sort
2461 +      echo
2462 +    fi
2463  
2464 +    if test -s confdefs.h; then
2465 +      $as_echo "## ----------- ##
2466 + ## confdefs.h. ##
2467 + ## ----------- ##"
2468 +      echo
2469 +      cat confdefs.h
2470 +      echo
2471 +    fi
2472 +    test "$ac_signal" != 0 &&
2473 +      $as_echo "$as_me: caught signal $ac_signal"
2474 +    $as_echo "$as_me: exit $exit_status"
2475 +  } >&5
2476 +  rm -f core *.core core.conftest.* &&
2477 +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2478 +    exit $exit_status
2479 + ' 0
2480 + for ac_signal in 1 2 13 15; do
2481 +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482 + done
2483 + ac_signal=0
2484  
2485 + # confdefs.h avoids OS command line length limits that DEFS can exceed.
2486 + rm -f -r conftest* confdefs.h
2487  
2488 + $as_echo "/* confdefs.h */" > confdefs.h
2489  
2490 + # Predefined preprocessor variables.
2491  
2492 + cat >>confdefs.h <<_ACEOF
2493 + #define PACKAGE_NAME "$PACKAGE_NAME"
2494 + _ACEOF
2495  
2496 + cat >>confdefs.h <<_ACEOF
2497 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2498 + _ACEOF
2499  
2500 + cat >>confdefs.h <<_ACEOF
2501 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
2502 + _ACEOF
2503  
2504 + cat >>confdefs.h <<_ACEOF
2505 + #define PACKAGE_STRING "$PACKAGE_STRING"
2506 + _ACEOF
2507  
2508 + cat >>confdefs.h <<_ACEOF
2509 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2510 + _ACEOF
2511  
2512 + cat >>confdefs.h <<_ACEOF
2513 + #define PACKAGE_URL "$PACKAGE_URL"
2514 + _ACEOF
2515  
2516  
2517 + # Let the site file select an alternate cache file if it wants to.
2518 + # Prefer an explicitly selected file to automatically selected ones.
2519 + ac_site_file1=NONE
2520 + ac_site_file2=NONE
2521 + if test -n "$CONFIG_SITE"; then
2522 +  # We do not want a PATH search for config.site.
2523 +  case $CONFIG_SITE in #((
2524 +    -*)  ac_site_file1=./$CONFIG_SITE;;
2525 +    */*) ac_site_file1=$CONFIG_SITE;;
2526 +    *)   ac_site_file1=./$CONFIG_SITE;;
2527 +  esac
2528 + elif test "x$prefix" != xNONE; then
2529 +  ac_site_file1=$prefix/share/config.site
2530 +  ac_site_file2=$prefix/etc/config.site
2531 + else
2532 +  ac_site_file1=$ac_default_prefix/share/config.site
2533 +  ac_site_file2=$ac_default_prefix/etc/config.site
2534 + fi
2535 + for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536 + do
2537 +  test "x$ac_site_file" = xNONE && continue
2538 +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540 + $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 +    sed 's/^/| /' "$ac_site_file" >&5
2542 +    . "$ac_site_file" \
2543 +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 + as_fn_error $? "failed to load site script $ac_site_file
2546 + See \`config.log' for more details" "$LINENO" 5; }
2547 +  fi
2548 + done
2549  
2550 + if test -r "$cache_file"; then
2551 +  # Some versions of bash will fail to source /dev/null (special files
2552 +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2553 +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555 + $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 +    case $cache_file in
2557 +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558 +      *)                      . "./$cache_file";;
2559 +    esac
2560 +  fi
2561 + else
2562 +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563 + $as_echo "$as_me: creating cache $cache_file" >&6;}
2564 +  >$cache_file
2565 + fi
2566  
2567 + # Check that the precious variables saved in the cache have kept the same
2568 + # value.
2569 + ac_cache_corrupted=false
2570 + for ac_var in $ac_precious_vars; do
2571 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 +  eval ac_new_set=\$ac_env_${ac_var}_set
2573 +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 +  eval ac_new_val=\$ac_env_${ac_var}_value
2575 +  case $ac_old_set,$ac_new_set in
2576 +    set,)
2577 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578 + $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 +      ac_cache_corrupted=: ;;
2580 +    ,set)
2581 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582 + $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 +      ac_cache_corrupted=: ;;
2584 +    ,);;
2585 +    *)
2586 +      if test "x$ac_old_val" != "x$ac_new_val"; then
2587 +        # differences in whitespace do not lead to failure.
2588 +        ac_old_val_w=`echo x $ac_old_val`
2589 +        ac_new_val_w=`echo x $ac_new_val`
2590 +        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 +          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592 + $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 +          ac_cache_corrupted=:
2594 +        else
2595 +          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596 + $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 +          eval $ac_var=\$ac_old_val
2598 +        fi
2599 +        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2600 + $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2601 +        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2602 + $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2603 +      fi;;
2604 +  esac
2605 +  # Pass precious variables to config.status.
2606 +  if test "$ac_new_set" = set; then
2607 +    case $ac_new_val in
2608 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 +    *) ac_arg=$ac_var=$ac_new_val ;;
2610 +    esac
2611 +    case " $ac_configure_args " in
2612 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2613 +      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 +    esac
2615 +  fi
2616 + done
2617 + if $ac_cache_corrupted; then
2618 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 + $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623 + fi
2624 + ## -------------------- ##
2625 + ## Main body of script. ##
2626 + ## -------------------- ##
2627  
2628 + ac_ext=c
2629 + ac_cpp='$CPP $CPPFLAGS'
2630 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633  
2634  
2635 + ac_aux_dir=
2636 + for ac_dir in ac-tools "$srcdir"/ac-tools; do
2637 +  if test -f "$ac_dir/install-sh"; then
2638 +    ac_aux_dir=$ac_dir
2639 +    ac_install_sh="$ac_aux_dir/install-sh -c"
2640 +    break
2641 +  elif test -f "$ac_dir/install.sh"; then
2642 +    ac_aux_dir=$ac_dir
2643 +    ac_install_sh="$ac_aux_dir/install.sh -c"
2644 +    break
2645 +  elif test -f "$ac_dir/shtool"; then
2646 +    ac_aux_dir=$ac_dir
2647 +    ac_install_sh="$ac_aux_dir/shtool install -c"
2648 +    break
2649 +  fi
2650 + done
2651 + if test -z "$ac_aux_dir"; then
2652 +  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2653 + fi
2654  
2655 + # These three variables are undocumented and unsupported,
2656 + # and are intended to be withdrawn in a future Autoconf release.
2657 + # They can cause serious problems if a builder's source tree is in a directory
2658 + # whose full name contains unusual characters.
2659 + ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2660 + ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2661 + ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2662  
1430 #
1431 #
1432 #
2663  
2664  
2665 + ac_config_headers="$ac_config_headers src/config.h"
2666  
2667  
2668  
2669  
2670  
2671  
1441 # AC_F90_MODULE_NAMES
1442 # -------------------
1443 #
1444 # Figure out how the Fortran 90 compiler constructs module file names
1445 #
1446 # AC_F90_MODULE_NAMES
2672  
2673  
2674  
# Line 1482 | Line 2707 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
2707  
2708  
2709  
2710 + #
2711 + #
2712 + #
2713  
2714  
2715  
# Line 1492 | Line 2720 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
2720  
2721  
2722  
2723 + # AC_F90_MODULE_NAMES
2724 + # -------------------
2725 + #
2726 + # Figure out how the Fortran 90 compiler constructs module file names
2727 + #
2728 + # AC_F90_MODULE_NAMES
2729  
2730  
2731  
# Line 1553 | Line 2787 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
2787  
2788  
2789  
1556 # This is taken from http://autoqt.sourceforge.net/
1557 # Copyright (c) 2002, Geoffrey Wossum
1558 # All rights reserved.
2790  
1560 # Redistribution and use in source and binary forms, with or without
1561 # modification, are permitted provided that the following conditions are
1562 # met:
2791  
1564 #  - Redistributions of source code must retain the above copyright notice,
1565 #    this list of conditions and the following disclaimer.
2792  
1567 #  - Redistributions in binary form must reproduce the above copyright
1568 #    notice, this list of conditions and the following disclaimer in the
1569 #    documentation and/or other materials provided with the distribution.
2793  
1571 #  - Neither the name of Geoffrey Wossum nor the names of its
1572 #    contributors may be used to endorse or promote products derived from
1573 #    this software without specific prior written permission.
2794  
2795  
1576 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1577 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1578 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1579 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1580 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1581 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1582 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1583 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1584 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1585 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1586 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2796  
2797  
1589 # Check for Qt compiler flags, linker flags, and binary packages
2798  
2799  
2800  
1593 # who am i
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598   { (exit 1); exit 1; }; }
2801  
2802 < echo "$as_me:$LINENO: checking build system type" >&5
2803 < echo $ECHO_N "checking build system type... $ECHO_C" >&6
2804 < if test "${ac_cv_build+set}" = set; then
2805 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2802 >
2803 >
2804 >
2805 >
2806 >
2807 >
2808 >
2809 >
2810 >
2811 >
2812 >
2813 >
2814 >
2815 >
2816 > # ===========================================================================
2817 > #             http://www.nongnu.org/autoconf-archive/ax_mpi.html
2818 > # ===========================================================================
2819 > #
2820 > # SYNOPSIS
2821 > #
2822 > #   AX_MPI([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2823 > #
2824 > # DESCRIPTION
2825 > #
2826 > #   This macro tries to find out how to compile programs that use MPI
2827 > #   (Message Passing Interface), a standard API for parallel process
2828 > #   communication (see http://www-unix.mcs.anl.gov/mpi/)
2829 > #
2830 > #   On success, it sets the MPICC, MPICXX, MPIF77, or MPIFC output variable
2831 > #   to the name of the MPI compiler, depending upon the current language.
2832 > #   (This may just be $CC/$CXX/$F77/$FC, but is more often something like
2833 > #   mpicc/mpiCC/mpif77/mpif90.) It also sets MPILIBS to any libraries that
2834 > #   are needed for linking MPI (e.g. -lmpi or -lfmpi, if a special
2835 > #   MPICC/MPICXX/MPIF77/MPIFC was not found).
2836 > #
2837 > #   If you want to compile everything with MPI, you should set:
2838 > #
2839 > #       CC="MPICC" #OR# CXX="MPICXX" #OR# F77="MPIF77" #OR# FC="MPIFC"
2840 > #       LIBS="$MPILIBS $LIBS"
2841 > #
2842 > #   NOTE: The above assumes that you will use $CC (or whatever) for linking
2843 > #   as well as for compiling. (This is the default for automake and most
2844 > #   Makefiles.)
2845 > #
2846 > #   The user can force a particular library/compiler by setting the
2847 > #   MPICC/MPICXX/MPIF77/MPIFC and/or MPILIBS environment variables.
2848 > #
2849 > #   ACTION-IF-FOUND is a list of shell commands to run if an MPI library is
2850 > #   found, and ACTION-IF-NOT-FOUND is a list of commands to run if it is not
2851 > #   found. If ACTION-IF-FOUND is not specified, the default action will
2852 > #   define HAVE_MPI.
2853 > #
2854 > # LICENSE
2855 > #
2856 > #   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
2857 > #   Copyright (c) 2008 Julian C. Cummings <cummings@cacr.caltech.edu>
2858 > #
2859 > #   This program is free software: you can redistribute it and/or modify it
2860 > #   under the terms of the GNU General Public License as published by the
2861 > #   Free Software Foundation, either version 3 of the License, or (at your
2862 > #   option) any later version.
2863 > #
2864 > #   This program is distributed in the hope that it will be useful, but
2865 > #   WITHOUT ANY WARRANTY; without even the implied warranty of
2866 > #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2867 > #   Public License for more details.
2868 > #
2869 > #   You should have received a copy of the GNU General Public License along
2870 > #   with this program. If not, see <http://www.gnu.org/licenses/>.
2871 > #
2872 > #   As a special exception, the respective Autoconf Macro's copyright owner
2873 > #   gives unlimited permission to copy, distribute and modify the configure
2874 > #   scripts that are the output of Autoconf when processing the Macro. You
2875 > #   need not follow the terms of the GNU General Public License when using
2876 > #   or distributing such scripts, even though portions of the text of the
2877 > #   Macro appear in them. The GNU General Public License (GPL) does govern
2878 > #   all other use of the material that constitutes the Autoconf Macro.
2879 > #
2880 > #   This special exception to the GPL applies to versions of the Autoconf
2881 > #   Macro released by the Autoconf Archive. When you make and distribute a
2882 > #   modified version of the Autoconf Macro, you may extend this special
2883 > #   exception to the GPL to apply to your modified version as well.
2884 >
2885 > # This is what autoupdate's m4 run will expand.  It fires
2886 > # the warning (with _au_warn_XXX), outputs it into the
2887 > # updated configure.ac (with AC_DIAGNOSE), and then outputs
2888 > # the replacement expansion.
2889 >
2890 >
2891 > # This is an auxiliary macro that is also run when
2892 > # autoupdate runs m4.  It simply calls m4_warning, but
2893 > # we need a wrapper so that each warning is emitted only
2894 > # once.  We break the quoting in m4_warning's argument in
2895 > # order to expand this macro's arguments, not AU_DEFUN's.
2896 >
2897 >
2898 > # Finally, this is the expansion that is picked up by
2899 > # autoconf.  It tells the user to run autoupdate, and
2900 > # then outputs the replacement expansion.  We do not care
2901 > # about autoupdate's warning because that contains
2902 > # information on what to do *after* running autoupdate.
2903 >
2904 >
2905 >
2906 > # who am i
2907 > # Make sure we can run config.sub.
2908 > $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2909 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2910 >
2911 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2912 > $as_echo_n "checking build system type... " >&6; }
2913 > if ${ac_cv_build+:} false; then :
2914 >  $as_echo_n "(cached) " >&6
2915   else
2916 <  ac_cv_build_alias=$build_alias
2917 < test -z "$ac_cv_build_alias" &&
2918 <  ac_cv_build_alias=`$ac_config_guess`
2919 < test -z "$ac_cv_build_alias" &&
2920 <  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2921 < echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2922 <   { (exit 1); exit 1; }; }
1612 < ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 <  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 <   { (exit 1); exit 1; }; }
2916 >  ac_build_alias=$build_alias
2917 > test "x$ac_build_alias" = x &&
2918 >  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2919 > test "x$ac_build_alias" = x &&
2920 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2921 > ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2922 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2923  
2924   fi
2925 < echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2926 < echo "${ECHO_T}$ac_cv_build" >&6
2925 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2926 > $as_echo "$ac_cv_build" >&6; }
2927 > case $ac_cv_build in
2928 > *-*-*) ;;
2929 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2930 > esac
2931   build=$ac_cv_build
2932 < build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2933 < build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2934 < build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2932 > ac_save_IFS=$IFS; IFS='-'
2933 > set x $ac_cv_build
2934 > shift
2935 > build_cpu=$1
2936 > build_vendor=$2
2937 > shift; shift
2938 > # Remember, the first character of IFS is used to create $*,
2939 > # except with old shells:
2940 > build_os=$*
2941 > IFS=$ac_save_IFS
2942 > case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2943  
2944  
2945 < echo "$as_me:$LINENO: checking host system type" >&5
2946 < echo $ECHO_N "checking host system type... $ECHO_C" >&6
2947 < if test "${ac_cv_host+set}" = set; then
2948 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2945 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2946 > $as_echo_n "checking host system type... " >&6; }
2947 > if ${ac_cv_host+:} false; then :
2948 >  $as_echo_n "(cached) " >&6
2949   else
2950 <  ac_cv_host_alias=$host_alias
2951 < test -z "$ac_cv_host_alias" &&
2952 <  ac_cv_host_alias=$ac_cv_build_alias
2953 < ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2954 <  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2955 < echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 <   { (exit 1); exit 1; }; }
2950 >  if test "x$host_alias" = x; then
2951 >  ac_cv_host=$ac_cv_build
2952 > else
2953 >  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2954 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2955 > fi
2956  
2957   fi
2958 < echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2959 < echo "${ECHO_T}$ac_cv_host" >&6
2958 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2959 > $as_echo "$ac_cv_host" >&6; }
2960 > case $ac_cv_host in
2961 > *-*-*) ;;
2962 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2963 > esac
2964   host=$ac_cv_host
2965 < host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2966 < host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2967 < host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2965 > ac_save_IFS=$IFS; IFS='-'
2966 > set x $ac_cv_host
2967 > shift
2968 > host_cpu=$1
2969 > host_vendor=$2
2970 > shift; shift
2971 > # Remember, the first character of IFS is used to create $*,
2972 > # except with old shells:
2973 > host_os=$*
2974 > IFS=$ac_save_IFS
2975 > case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2976  
2977  
2978  
2979  
2980  
2981   # set program name
2982 < PROGNAME="oopse"
2982 > PROGNAME="openmd"
2983  
2984  
2985  
2986  
2987   OBJEXT=".$OBJEXT"
2988  
2989 < OOPSE=oopse
2989 > OPENMD=openmd
2990  
2991   if test "x${prefix}" = "xNONE"
2992   then
2993 <  OOPSE_HOME=${ac_default_prefix}/oopse
2993 >  OPENMD_HOME=${ac_default_prefix}/openmd
2994   else
2995 <  OOPSE_HOME=${prefix}/oopse
2995 >  OPENMD_HOME=${prefix}/openmd
2996   fi
2997 < # Check whether --enable-oopse-home or --disable-oopse-home was given.
2998 < if test "${enable_oopse_home+set}" = set; then
2999 <  enableval="$enable_oopse_home"
3000 <  OOPSE_HOME="${enableval}"
1671 < fi;
2997 > # Check whether --enable-openmd-home was given.
2998 > if test "${enable_openmd_home+set}" = set; then :
2999 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
3000 > fi
3001  
3002 +
3003   # there are two ways to do debugging.  One with the --enable-debug flag
3004   # and one using the DEBUG environment variable
3005  
3006   debug=0
3007 < # Check whether --enable-debug or --disable-debug was given.
3008 < if test "${enable_debug+set}" = set; then
3009 <  enableval="$enable_debug"
3010 <  debug=1
3011 < fi;
3007 > # Check whether --enable-debug was given.
3008 > if test "${enable_debug+set}" = set; then :
3009 >  enableval=$enable_debug; debug=1
3010 > fi
3011 >
3012   if test "${DEBUG}"; then
3013  
3014 < cat >>confdefs.h <<\_ACEOF
1685 < #define debug 1
1686 < _ACEOF
3014 > $as_echo "#define debug 1" >>confdefs.h
3015  
3016    msg="$msg, debug mode"
3017   fi
3018  
3019  
3020 < # Check whether --enable-single or --disable-single was given.
3021 < if test "${enable_single+set}" = set; then
3022 <  enableval="$enable_single"
1695 <  ok=$enableval
3020 > # Check whether --enable-single was given.
3021 > if test "${enable_single+set}" = set; then :
3022 >  enableval=$enable_single; ok=$enableval
3023   else
3024    ok=no
3025 < fi;
3026 < # Check whether --enable-float or --disable-float was given.
3027 < if test "${enable_float+set}" = set; then
3028 <  enableval="$enable_float"
3029 <  ok=$enableval
3030 < fi;
3025 > fi
3026 >
3027 > # Check whether --enable-float was given.
3028 > if test "${enable_float+set}" = set; then :
3029 >  enableval=$enable_float; ok=$enableval
3030 > fi
3031 >
3032   if test "$ok" = "yes"; then
3033  
3034 < cat >>confdefs.h <<\_ACEOF
1707 < #define SINGLE_PRECISION 1
1708 < _ACEOF
3034 > $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
3035  
3036          USE_SINGLE_PRECISION=yes
3037  
3038   fi
3039  
3040 < # Checks for programs.
1715 < ac_ext=cc
3040 > ac_ext=cpp
3041   ac_cpp='$CXXCPP $CPPFLAGS'
3042   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3045 < if test -n "$ac_tool_prefix"; then
3046 <  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3045 > if test -z "$CXX"; then
3046 >  if test -n "$CCC"; then
3047 >    CXX=$CCC
3048 >  else
3049 >    if test -n "$ac_tool_prefix"; then
3050 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3051    do
3052      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 < if test "${ac_cv_prog_CXX+set}" = set; then
3057 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3054 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 > $as_echo_n "checking for $ac_word... " >&6; }
3056 > if ${ac_cv_prog_CXX+:} false; then :
3057 >  $as_echo_n "(cached) " >&6
3058   else
3059    if test -n "$CXX"; then
3060    ac_cv_prog_CXX="$CXX" # Let the user override the test.
# Line 1735 | Line 3064 | do
3064   do
3065    IFS=$as_save_IFS
3066    test -z "$as_dir" && as_dir=.
3067 <  for ac_exec_ext in '' $ac_executable_extensions; do
3068 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 >    for ac_exec_ext in '' $ac_executable_extensions; do
3068 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3070 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071      break 2
3072    fi
3073   done
3074 < done
3074 >  done
3075 > IFS=$as_save_IFS
3076  
3077   fi
3078   fi
3079   CXX=$ac_cv_prog_CXX
3080   if test -n "$CXX"; then
3081 <  echo "$as_me:$LINENO: result: $CXX" >&5
3082 < echo "${ECHO_T}$CXX" >&6
3081 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3082 > $as_echo "$CXX" >&6; }
3083   else
3084 <  echo "$as_me:$LINENO: result: no" >&5
3085 < echo "${ECHO_T}no" >&6
3084 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 > $as_echo "no" >&6; }
3086   fi
3087  
3088 +
3089      test -n "$CXX" && break
3090    done
3091   fi
3092   if test -z "$CXX"; then
3093    ac_ct_CXX=$CXX
3094 <  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3094 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3095   do
3096    # Extract the first word of "$ac_prog", so it can be a program name with args.
3097   set dummy $ac_prog; ac_word=$2
3098 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3101 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3098 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 > $as_echo_n "checking for $ac_word... " >&6; }
3100 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3101 >  $as_echo_n "(cached) " >&6
3102   else
3103    if test -n "$ac_ct_CXX"; then
3104    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
# Line 1777 | Line 3108 | do
3108   do
3109    IFS=$as_save_IFS
3110    test -z "$as_dir" && as_dir=.
3111 <  for ac_exec_ext in '' $ac_executable_extensions; do
3112 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 >    for ac_exec_ext in '' $ac_executable_extensions; do
3112 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113      ac_cv_prog_ac_ct_CXX="$ac_prog"
3114 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115      break 2
3116    fi
3117   done
3118 < done
3118 >  done
3119 > IFS=$as_save_IFS
3120  
3121   fi
3122   fi
3123   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3124   if test -n "$ac_ct_CXX"; then
3125 <  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3126 < echo "${ECHO_T}$ac_ct_CXX" >&6
3125 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3126 > $as_echo "$ac_ct_CXX" >&6; }
3127   else
3128 <  echo "$as_me:$LINENO: result: no" >&5
3129 < echo "${ECHO_T}no" >&6
3128 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 > $as_echo "no" >&6; }
3130   fi
3131  
3132 +
3133    test -n "$ac_ct_CXX" && break
3134   done
1802 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3135  
3136 <  CXX=$ac_ct_CXX
3136 >  if test "x$ac_ct_CXX" = x; then
3137 >    CXX="g++"
3138 >  else
3139 >    case $cross_compiling:$ac_tool_warned in
3140 > yes:)
3141 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 > ac_tool_warned=yes ;;
3144 > esac
3145 >    CXX=$ac_ct_CXX
3146 >  fi
3147   fi
3148  
3149 <
3149 >  fi
3150 > fi
3151   # Provide some information about the compiler.
3152 < echo "$as_me:$LINENO:" \
3153 <     "checking for C++ compiler version" >&5
3154 < ac_compiler=`set X $ac_compile; echo $2`
3155 < { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3156 <  (eval $ac_compiler --version </dev/null >&5) 2>&5
3152 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3153 > set X $ac_compile
3154 > ac_compiler=$2
3155 > for ac_option in --version -v -V -qversion; do
3156 >  { { ac_try="$ac_compiler $ac_option >&5"
3157 > case "(($ac_try" in
3158 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 >  *) ac_try_echo=$ac_try;;
3160 > esac
3161 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 > $as_echo "$ac_try_echo"; } >&5
3163 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164    ac_status=$?
3165 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 <  (exit $ac_status); }
3167 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3168 <  (eval $ac_compiler -v </dev/null >&5) 2>&5
3169 <  ac_status=$?
3170 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 <  (exit $ac_status); }
3172 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3173 <  (eval $ac_compiler -V </dev/null >&5) 2>&5
3174 <  ac_status=$?
1825 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 <  (exit $ac_status); }
3165 >  if test -s conftest.err; then
3166 >    sed '10a\
3167 > ... rest of stderr output deleted ...
3168 >         10q' conftest.err >conftest.er1
3169 >    cat conftest.er1 >&5
3170 >  fi
3171 >  rm -f conftest.er1 conftest.err
3172 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 >  test $ac_status = 0; }
3174 > done
3175  
3176 < cat >conftest.$ac_ext <<_ACEOF
1829 < /* confdefs.h.  */
1830 < _ACEOF
1831 < cat confdefs.h >>conftest.$ac_ext
1832 < cat >>conftest.$ac_ext <<_ACEOF
3176 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177   /* end confdefs.h.  */
3178  
3179   int
# Line 1841 | Line 3185 | ac_clean_files_save=$ac_clean_files
3185   }
3186   _ACEOF
3187   ac_clean_files_save=$ac_clean_files
3188 < ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189   # Try to create an executable without -o first, disregard a.out.
3190   # It will help us diagnose broken compilers, and finding out an intuition
3191   # of exeext.
3192 < echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3193 < echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
3194 < ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1851 < if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1852 <  (eval $ac_link_default) 2>&5
1853 <  ac_status=$?
1854 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 <  (exit $ac_status); }; then
1856 <  # Find the output, starting from the most likely.  This scheme is
1857 < # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1858 < # resort.
3192 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3193 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3194 > ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195  
3196 < # Be careful to initialize this variable, since it used to be cached.
3197 < # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3198 < ac_cv_exeext=
3199 < # b.out is created by i960 compilers.
3200 < for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3196 > # The possible output files:
3197 > ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198 >
3199 > ac_rmfiles=
3200 > for ac_file in $ac_files
3201   do
3202 +  case $ac_file in
3203 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 +  esac
3206 + done
3207 + rm -f $ac_rmfiles
3208 +
3209 + if { { ac_try="$ac_link_default"
3210 + case "(($ac_try" in
3211 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 +  *) ac_try_echo=$ac_try;;
3213 + esac
3214 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 + $as_echo "$ac_try_echo"; } >&5
3216 +  (eval "$ac_link_default") 2>&5
3217 +  ac_status=$?
3218 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 +  test $ac_status = 0; }; then :
3220 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3221 + # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3222 + # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3223 + # so that the user can short-circuit this test for compilers unknown to
3224 + # Autoconf.
3225 + for ac_file in $ac_files ''
3226 + do
3227    test -f "$ac_file" || continue
3228    case $ac_file in
3229 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3229 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230          ;;
1870    conftest.$ac_ext )
1871        # This is the source file.
1872        ;;
3231      [ab].out )
3232          # We found the default executable, but exeext='' is most
3233          # certainly right.
3234          break;;
3235      *.* )
3236 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
3238 <        # but it would be cool to find out if it's true.  Does anybody
3239 <        # maintain Libtool? --akim.
3240 <        export ac_cv_exeext
3236 >        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3237 >        then :; else
3238 >           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 >        fi
3240 >        # We set ac_cv_exeext here because the later test for it is not
3241 >        # safe: cross compilers may not add the suffix if given an `-o'
3242 >        # argument, so we may need to know it at that point already.
3243 >        # Even if this section looks crufty: it has the advantage of
3244 >        # actually working.
3245          break;;
3246      * )
3247          break;;
3248    esac
3249   done
3250 + test "$ac_cv_exeext" = no && ac_cv_exeext=
3251 +
3252   else
3253 <  echo "$as_me: failed program was:" >&5
3253 >  ac_file=''
3254 > fi
3255 > if test -z "$ac_file"; then :
3256 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 > $as_echo "no" >&6; }
3258 > $as_echo "$as_me: failed program was:" >&5
3259   sed 's/^/| /' conftest.$ac_ext >&5
3260  
3261 < { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3262 < See \`config.log' for more details." >&5
3263 < echo "$as_me: error: C++ compiler cannot create executables
3264 < See \`config.log' for more details." >&2;}
3265 <   { (exit 77); exit 77; }; }
3261 > { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 > as_fn_error 77 "C++ compiler cannot create executables
3264 > See \`config.log' for more details" "$LINENO" 5; }
3265 > else
3266 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 > $as_echo "yes" >&6; }
3268   fi
3269 <
3269 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3270 > $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3271 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 > $as_echo "$ac_file" >&6; }
3273   ac_exeext=$ac_cv_exeext
1900 echo "$as_me:$LINENO: result: $ac_file" >&5
1901 echo "${ECHO_T}$ac_file" >&6
3274  
3275 < # Check the compiler produces executables we can run.  If not, either
1904 < # the compiler is broken, or we cross compile.
1905 < echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1906 < echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1907 < # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1908 < # If not cross compiling, check that we can run a simple program.
1909 < if test "$cross_compiling" != yes; then
1910 <  if { ac_try='./$ac_file'
1911 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 <  (eval $ac_try) 2>&5
1913 <  ac_status=$?
1914 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 <  (exit $ac_status); }; }; then
1916 <    cross_compiling=no
1917 <  else
1918 <    if test "$cross_compiling" = maybe; then
1919 <        cross_compiling=yes
1920 <    else
1921 <        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1922 < If you meant to cross compile, use \`--host'.
1923 < See \`config.log' for more details." >&5
1924 < echo "$as_me: error: cannot run C++ compiled programs.
1925 < If you meant to cross compile, use \`--host'.
1926 < See \`config.log' for more details." >&2;}
1927 <   { (exit 1); exit 1; }; }
1928 <    fi
1929 <  fi
1930 < fi
1931 < echo "$as_me:$LINENO: result: yes" >&5
1932 < echo "${ECHO_T}yes" >&6
1933 <
1934 < rm -f a.out a.exe conftest$ac_cv_exeext b.out
3275 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276   ac_clean_files=$ac_clean_files_save
3277 < # Check the compiler produces executables we can run.  If not, either
3278 < # the compiler is broken, or we cross compile.
3279 < echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3280 < echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3281 < echo "$as_me:$LINENO: result: $cross_compiling" >&5
3282 < echo "${ECHO_T}$cross_compiling" >&6
3283 <
3284 < echo "$as_me:$LINENO: checking for suffix of executables" >&5
3285 < echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3286 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1946 <  (eval $ac_link) 2>&5
3277 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278 > $as_echo_n "checking for suffix of executables... " >&6; }
3279 > if { { ac_try="$ac_link"
3280 > case "(($ac_try" in
3281 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 >  *) ac_try_echo=$ac_try;;
3283 > esac
3284 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 > $as_echo "$ac_try_echo"; } >&5
3286 >  (eval "$ac_link") 2>&5
3287    ac_status=$?
3288 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 <  (exit $ac_status); }; then
3288 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 >  test $ac_status = 0; }; then :
3290    # If both `conftest.exe' and `conftest' are `present' (well, observable)
3291   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3292   # work properly (i.e., refer to `conftest.exe'), while it won't with
# Line 1954 | Line 3294 | for ac_file in conftest.exe conftest conftest.*; do
3294   for ac_file in conftest.exe conftest conftest.*; do
3295    test -f "$ac_file" || continue
3296    case $ac_file in
3297 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3297 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1959          export ac_cv_exeext
3299            break;;
3300      * ) break;;
3301    esac
3302   done
3303   else
3304 <  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3305 < See \`config.log' for more details." >&5
3306 < echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3307 < See \`config.log' for more details." >&2;}
1969 <   { (exit 1); exit 1; }; }
3304 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 > See \`config.log' for more details" "$LINENO" 5; }
3308   fi
3309 <
3310 < rm -f conftest$ac_cv_exeext
3311 < echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1974 < echo "${ECHO_T}$ac_cv_exeext" >&6
3309 > rm -f conftest conftest$ac_cv_exeext
3310 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311 > $as_echo "$ac_cv_exeext" >&6; }
3312  
3313   rm -f conftest.$ac_ext
3314   EXEEXT=$ac_cv_exeext
3315   ac_exeext=$EXEEXT
3316 < echo "$as_me:$LINENO: checking for suffix of object files" >&5
3317 < echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3318 < if test "${ac_cv_objext+set}" = set; then
3319 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3320 < else
3321 <  cat >conftest.$ac_ext <<_ACEOF
3322 < /* confdefs.h.  */
3316 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 > /* end confdefs.h.  */
3318 > #include <stdio.h>
3319 > int
3320 > main ()
3321 > {
3322 > FILE *f = fopen ("conftest.out", "w");
3323 > return ferror (f) || fclose (f) != 0;
3324 >
3325 >  ;
3326 >  return 0;
3327 > }
3328   _ACEOF
3329 < cat confdefs.h >>conftest.$ac_ext
3330 < cat >>conftest.$ac_ext <<_ACEOF
3329 > ac_clean_files="$ac_clean_files conftest.out"
3330 > # Check that the compiler produces executables we can run.  If not, either
3331 > # the compiler is broken, or we cross compile.
3332 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 > if test "$cross_compiling" != yes; then
3335 >  { { ac_try="$ac_link"
3336 > case "(($ac_try" in
3337 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 >  *) ac_try_echo=$ac_try;;
3339 > esac
3340 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 > $as_echo "$ac_try_echo"; } >&5
3342 >  (eval "$ac_link") 2>&5
3343 >  ac_status=$?
3344 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 >  test $ac_status = 0; }
3346 >  if { ac_try='./conftest$ac_cv_exeext'
3347 >  { { case "(($ac_try" in
3348 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 >  *) ac_try_echo=$ac_try;;
3350 > esac
3351 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 > $as_echo "$ac_try_echo"; } >&5
3353 >  (eval "$ac_try") 2>&5
3354 >  ac_status=$?
3355 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 >  test $ac_status = 0; }; }; then
3357 >    cross_compiling=no
3358 >  else
3359 >    if test "$cross_compiling" = maybe; then
3360 >        cross_compiling=yes
3361 >    else
3362 >        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 > as_fn_error $? "cannot run C++ compiled programs.
3365 > If you meant to cross compile, use \`--host'.
3366 > See \`config.log' for more details" "$LINENO" 5; }
3367 >    fi
3368 >  fi
3369 > fi
3370 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 > $as_echo "$cross_compiling" >&6; }
3372 >
3373 > rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 > ac_clean_files=$ac_clean_files_save
3375 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376 > $as_echo_n "checking for suffix of object files... " >&6; }
3377 > if ${ac_cv_objext+:} false; then :
3378 >  $as_echo_n "(cached) " >&6
3379 > else
3380 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381   /* end confdefs.h.  */
3382  
3383   int
# Line 1997 | Line 3389 | rm -f conftest.o conftest.obj
3389   }
3390   _ACEOF
3391   rm -f conftest.o conftest.obj
3392 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 <  (eval $ac_compile) 2>&5
3392 > if { { ac_try="$ac_compile"
3393 > case "(($ac_try" in
3394 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 >  *) ac_try_echo=$ac_try;;
3396 > esac
3397 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 > $as_echo "$ac_try_echo"; } >&5
3399 >  (eval "$ac_compile") 2>&5
3400    ac_status=$?
3401 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 <  (exit $ac_status); }; then
3403 <  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3401 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 >  test $ac_status = 0; }; then :
3403 >  for ac_file in conftest.o conftest.obj conftest.*; do
3404 >  test -f "$ac_file" || continue;
3405    case $ac_file in
3406 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3406 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408         break;;
3409    esac
3410   done
3411   else
3412 <  echo "$as_me: failed program was:" >&5
3412 >  $as_echo "$as_me: failed program was:" >&5
3413   sed 's/^/| /' conftest.$ac_ext >&5
3414  
3415 < { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3416 < See \`config.log' for more details." >&5
3417 < echo "$as_me: error: cannot compute suffix of object files: cannot compile
3418 < See \`config.log' for more details." >&2;}
2020 <   { (exit 1); exit 1; }; }
3415 > { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 > See \`config.log' for more details" "$LINENO" 5; }
3419   fi
2022
3420   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421   fi
3422 < echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3423 < echo "${ECHO_T}$ac_cv_objext" >&6
3422 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 > $as_echo "$ac_cv_objext" >&6; }
3424   OBJEXT=$ac_cv_objext
3425   ac_objext=$OBJEXT
3426 < echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3427 < echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3428 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3429 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3426 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3427 > $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3428 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3429 >  $as_echo_n "(cached) " >&6
3430   else
3431 <  cat >conftest.$ac_ext <<_ACEOF
2035 < /* confdefs.h.  */
2036 < _ACEOF
2037 < cat confdefs.h >>conftest.$ac_ext
2038 < cat >>conftest.$ac_ext <<_ACEOF
3431 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432   /* end confdefs.h.  */
3433  
3434   int
# Line 2049 | Line 3442 | _ACEOF
3442    return 0;
3443   }
3444   _ACEOF
3445 < rm -f conftest.$ac_objext
2053 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 <  (eval $ac_compile) 2>conftest.er1
2055 <  ac_status=$?
2056 <  grep -v '^ *+' conftest.er1 >conftest.err
2057 <  rm -f conftest.er1
2058 <  cat conftest.err >&5
2059 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 <  (exit $ac_status); } &&
2061 <         { ac_try='test -z "$ac_cxx_werror_flag"
2062 <                         || test ! -s conftest.err'
2063 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 <  (eval $ac_try) 2>&5
2065 <  ac_status=$?
2066 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 <  (exit $ac_status); }; } &&
2068 <         { ac_try='test -s conftest.$ac_objext'
2069 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 <  (eval $ac_try) 2>&5
2071 <  ac_status=$?
2072 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 <  (exit $ac_status); }; }; then
3445 > if ac_fn_cxx_try_compile "$LINENO"; then :
3446    ac_compiler_gnu=yes
3447   else
3448 <  echo "$as_me: failed program was:" >&5
2077 < sed 's/^/| /' conftest.$ac_ext >&5
2078 <
2079 < ac_compiler_gnu=no
3448 >  ac_compiler_gnu=no
3449   fi
3450 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3452  
3453   fi
3454 < echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3455 < echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3456 < GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3455 > $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3456 > if test $ac_compiler_gnu = yes; then
3457 >  GXX=yes
3458 > else
3459 >  GXX=
3460 > fi
3461   ac_test_CXXFLAGS=${CXXFLAGS+set}
3462   ac_save_CXXFLAGS=$CXXFLAGS
3463 < CXXFLAGS="-g"
3464 < echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3465 < echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3466 < if test "${ac_cv_prog_cxx_g+set}" = set; then
2094 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3463 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3464 > $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3465 > if ${ac_cv_prog_cxx_g+:} false; then :
3466 >  $as_echo_n "(cached) " >&6
3467   else
3468 <  cat >conftest.$ac_ext <<_ACEOF
3469 < /* confdefs.h.  */
3470 < _ACEOF
3471 < cat confdefs.h >>conftest.$ac_ext
3472 < cat >>conftest.$ac_ext <<_ACEOF
3468 >  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3469 >   ac_cxx_werror_flag=yes
3470 >   ac_cv_prog_cxx_g=no
3471 >   CXXFLAGS="-g"
3472 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473   /* end confdefs.h.  */
3474  
3475   int
# Line 2108 | Line 3480 | _ACEOF
3480    return 0;
3481   }
3482   _ACEOF
3483 < rm -f conftest.$ac_objext
2112 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113 <  (eval $ac_compile) 2>conftest.er1
2114 <  ac_status=$?
2115 <  grep -v '^ *+' conftest.er1 >conftest.err
2116 <  rm -f conftest.er1
2117 <  cat conftest.err >&5
2118 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 <  (exit $ac_status); } &&
2120 <         { ac_try='test -z "$ac_cxx_werror_flag"
2121 <                         || test ! -s conftest.err'
2122 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 <  (eval $ac_try) 2>&5
2124 <  ac_status=$?
2125 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 <  (exit $ac_status); }; } &&
2127 <         { ac_try='test -s conftest.$ac_objext'
2128 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 <  (eval $ac_try) 2>&5
2130 <  ac_status=$?
2131 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 <  (exit $ac_status); }; }; then
3483 > if ac_fn_cxx_try_compile "$LINENO"; then :
3484    ac_cv_prog_cxx_g=yes
3485   else
3486 <  echo "$as_me: failed program was:" >&5
3487 < sed 's/^/| /' conftest.$ac_ext >&5
3486 >  CXXFLAGS=""
3487 >      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 > /* end confdefs.h.  */
3489  
3490 < ac_cv_prog_cxx_g=no
3490 > int
3491 > main ()
3492 > {
3493 >
3494 >  ;
3495 >  return 0;
3496 > }
3497 > _ACEOF
3498 > if ac_fn_cxx_try_compile "$LINENO"; then :
3499 >
3500 > else
3501 >  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3502 >         CXXFLAGS="-g"
3503 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 > /* end confdefs.h.  */
3505 >
3506 > int
3507 > main ()
3508 > {
3509 >
3510 >  ;
3511 >  return 0;
3512 > }
3513 > _ACEOF
3514 > if ac_fn_cxx_try_compile "$LINENO"; then :
3515 >  ac_cv_prog_cxx_g=yes
3516   fi
3517 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518   fi
3519 < echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3520 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3519 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 > fi
3521 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 >   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3523 > fi
3524 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3525 > $as_echo "$ac_cv_prog_cxx_g" >&6; }
3526   if test "$ac_test_CXXFLAGS" = set; then
3527    CXXFLAGS=$ac_save_CXXFLAGS
3528   elif test $ac_cv_prog_cxx_g = yes; then
# Line 2156 | Line 3538 | fi
3538      CXXFLAGS=
3539    fi
3540   fi
2159 for ac_declaration in \
2160   '' \
2161   'extern "C" void std::exit (int) throw (); using std::exit;' \
2162   'extern "C" void std::exit (int); using std::exit;' \
2163   'extern "C" void exit (int) throw ();' \
2164   'extern "C" void exit (int);' \
2165   'void exit (int);'
2166 do
2167  cat >conftest.$ac_ext <<_ACEOF
2168 /* confdefs.h.  */
2169 _ACEOF
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h.  */
2173 $ac_declaration
2174 #include <stdlib.h>
2175 int
2176 main ()
2177 {
2178 exit (42);
2179  ;
2180  return 0;
2181 }
2182 _ACEOF
2183 rm -f conftest.$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185  (eval $ac_compile) 2>conftest.er1
2186  ac_status=$?
2187  grep -v '^ *+' conftest.er1 >conftest.err
2188  rm -f conftest.er1
2189  cat conftest.err >&5
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); } &&
2192         { ac_try='test -z "$ac_cxx_werror_flag"
2193                         || test ! -s conftest.err'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; } &&
2199         { ac_try='test -s conftest.$ac_objext'
2200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201  (eval $ac_try) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; }; then
2205  :
2206 else
2207  echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 continue
2211 fi
2212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2213  cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 $ac_declaration
2220 int
2221 main ()
2222 {
2223 exit (42);
2224  ;
2225  return 0;
2226 }
2227 _ACEOF
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230  (eval $ac_compile) 2>conftest.er1
2231  ac_status=$?
2232  grep -v '^ *+' conftest.er1 >conftest.err
2233  rm -f conftest.er1
2234  cat conftest.err >&5
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); } &&
2237         { ac_try='test -z "$ac_cxx_werror_flag"
2238                         || test ! -s conftest.err'
2239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240  (eval $ac_try) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; } &&
2244         { ac_try='test -s conftest.$ac_objext'
2245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246  (eval $ac_try) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }; }; then
2250  break
2251 else
2252  echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 done
2258 rm -f conftest*
2259 if test -n "$ac_declaration"; then
2260  echo '#ifdef __cplusplus' >>confdefs.h
2261  echo $ac_declaration      >>confdefs.h
2262  echo '#endif'             >>confdefs.h
2263 fi
2264
3541   ac_ext=c
3542   ac_cpp='$CPP $CPPFLAGS'
3543   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2274 | Line 3550 | if test -n "$ac_tool_prefix"; then
3550   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552   if test -n "$ac_tool_prefix"; then
3553 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
3553 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3554    do
3555      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559 < if test "${ac_cv_prog_CC+set}" = set; then
3560 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3557 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 > $as_echo_n "checking for $ac_word... " >&6; }
3559 > if ${ac_cv_prog_CC+:} false; then :
3560 >  $as_echo_n "(cached) " >&6
3561   else
3562    if test -n "$CC"; then
3563    ac_cv_prog_CC="$CC" # Let the user override the test.
# Line 2291 | Line 3567 | do
3567   do
3568    IFS=$as_save_IFS
3569    test -z "$as_dir" && as_dir=.
3570 <  for ac_exec_ext in '' $ac_executable_extensions; do
3571 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 >    for ac_exec_ext in '' $ac_executable_extensions; do
3571 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574      break 2
3575    fi
3576   done
3577 < done
3577 >  done
3578 > IFS=$as_save_IFS
3579  
3580   fi
3581   fi
3582   CC=$ac_cv_prog_CC
3583   if test -n "$CC"; then
3584 <  echo "$as_me:$LINENO: result: $CC" >&5
3585 < echo "${ECHO_T}$CC" >&6
3584 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 > $as_echo "$CC" >&6; }
3586   else
3587 <  echo "$as_me:$LINENO: result: no" >&5
3588 < echo "${ECHO_T}no" >&6
3587 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 > $as_echo "no" >&6; }
3589   fi
3590  
3591 +
3592      test -n "$CC" && break
3593    done
3594   fi
3595   if test -z "$CC"; then
3596    ac_ct_CC=$CC
3597 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
3597 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3598   do
3599    # Extract the first word of "$ac_prog", so it can be a program name with args.
3600   set dummy $ac_prog; ac_word=$2
3601 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3604 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3601 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 > $as_echo_n "checking for $ac_word... " >&6; }
3603 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604 >  $as_echo_n "(cached) " >&6
3605   else
3606    if test -n "$ac_ct_CC"; then
3607    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
# Line 2333 | Line 3611 | do
3611   do
3612    IFS=$as_save_IFS
3613    test -z "$as_dir" && as_dir=.
3614 <  for ac_exec_ext in '' $ac_executable_extensions; do
3615 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 >    for ac_exec_ext in '' $ac_executable_extensions; do
3615 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616      ac_cv_prog_ac_ct_CC="$ac_prog"
3617 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618      break 2
3619    fi
3620   done
3621 < done
3621 >  done
3622 > IFS=$as_save_IFS
3623  
3624   fi
3625   fi
3626   ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627   if test -n "$ac_ct_CC"; then
3628 <  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3629 < echo "${ECHO_T}$ac_ct_CC" >&6
3628 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 > $as_echo "$ac_ct_CC" >&6; }
3630   else
3631 <  echo "$as_me:$LINENO: result: no" >&5
3632 < echo "${ECHO_T}no" >&6
3631 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 > $as_echo "no" >&6; }
3633   fi
3634  
3635 +
3636    test -n "$ac_ct_CC" && break
3637   done
3638  
3639 <  CC=$ac_ct_CC
3639 >  if test "x$ac_ct_CC" = x; then
3640 >    CC=""
3641 >  else
3642 >    case $cross_compiling:$ac_tool_warned in
3643 > yes:)
3644 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 > ac_tool_warned=yes ;;
3647 > esac
3648 >    CC=$ac_ct_CC
3649 >  fi
3650   fi
3651  
3652  
3653 < test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3654 < See \`config.log' for more details." >&5
3655 < echo "$as_me: error: no acceptable C compiler found in \$PATH
3656 < See \`config.log' for more details." >&2;}
2367 <   { (exit 1); exit 1; }; }
3653 > test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 > as_fn_error $? "no acceptable C compiler found in \$PATH
3656 > See \`config.log' for more details" "$LINENO" 5; }
3657  
3658   # Provide some information about the compiler.
3659 < echo "$as_me:$LINENO:" \
3660 <     "checking for C compiler version" >&5
3661 < ac_compiler=`set X $ac_compile; echo $2`
3662 < { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3663 <  (eval $ac_compiler --version </dev/null >&5) 2>&5
3659 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3660 > set X $ac_compile
3661 > ac_compiler=$2
3662 > for ac_option in --version -v -V -qversion; do
3663 >  { { ac_try="$ac_compiler $ac_option >&5"
3664 > case "(($ac_try" in
3665 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 >  *) ac_try_echo=$ac_try;;
3667 > esac
3668 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 > $as_echo "$ac_try_echo"; } >&5
3670 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3671    ac_status=$?
3672 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 <  (exit $ac_status); }
3674 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3675 <  (eval $ac_compiler -v </dev/null >&5) 2>&5
3676 <  ac_status=$?
3677 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 <  (exit $ac_status); }
3679 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3680 <  (eval $ac_compiler -V </dev/null >&5) 2>&5
3681 <  ac_status=$?
2386 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 <  (exit $ac_status); }
3672 >  if test -s conftest.err; then
3673 >    sed '10a\
3674 > ... rest of stderr output deleted ...
3675 >         10q' conftest.err >conftest.er1
3676 >    cat conftest.er1 >&5
3677 >  fi
3678 >  rm -f conftest.er1 conftest.err
3679 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 >  test $ac_status = 0; }
3681 > done
3682  
3683 < echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3684 < echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3685 < if test "${ac_cv_c_compiler_gnu+set}" = set; then
3686 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3683 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3684 > $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3685 > if ${ac_cv_c_compiler_gnu+:} false; then :
3686 >  $as_echo_n "(cached) " >&6
3687   else
3688 <  cat >conftest.$ac_ext <<_ACEOF
2395 < /* confdefs.h.  */
2396 < _ACEOF
2397 < cat confdefs.h >>conftest.$ac_ext
2398 < cat >>conftest.$ac_ext <<_ACEOF
3688 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689   /* end confdefs.h.  */
3690  
3691   int
# Line 2409 | Line 3699 | _ACEOF
3699    return 0;
3700   }
3701   _ACEOF
3702 < rm -f conftest.$ac_objext
2413 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 <  (eval $ac_compile) 2>conftest.er1
2415 <  ac_status=$?
2416 <  grep -v '^ *+' conftest.er1 >conftest.err
2417 <  rm -f conftest.er1
2418 <  cat conftest.err >&5
2419 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 <  (exit $ac_status); } &&
2421 <         { ac_try='test -z "$ac_c_werror_flag"
2422 <                         || test ! -s conftest.err'
2423 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 <  (eval $ac_try) 2>&5
2425 <  ac_status=$?
2426 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 <  (exit $ac_status); }; } &&
2428 <         { ac_try='test -s conftest.$ac_objext'
2429 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 <  (eval $ac_try) 2>&5
2431 <  ac_status=$?
2432 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 <  (exit $ac_status); }; }; then
3702 > if ac_fn_c_try_compile "$LINENO"; then :
3703    ac_compiler_gnu=yes
3704   else
3705 <  echo "$as_me: failed program was:" >&5
2437 < sed 's/^/| /' conftest.$ac_ext >&5
2438 <
2439 < ac_compiler_gnu=no
3705 >  ac_compiler_gnu=no
3706   fi
3707 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708   ac_cv_c_compiler_gnu=$ac_compiler_gnu
3709  
3710   fi
3711 < echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3712 < echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3713 < GCC=`test $ac_compiler_gnu = yes && echo yes`
3711 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3712 > $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3713 > if test $ac_compiler_gnu = yes; then
3714 >  GCC=yes
3715 > else
3716 >  GCC=
3717 > fi
3718   ac_test_CFLAGS=${CFLAGS+set}
3719   ac_save_CFLAGS=$CFLAGS
3720 < CFLAGS="-g"
3721 < echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3722 < echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3723 < if test "${ac_cv_prog_cc_g+set}" = set; then
2454 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3720 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3721 > $as_echo_n "checking whether $CC accepts -g... " >&6; }
3722 > if ${ac_cv_prog_cc_g+:} false; then :
3723 >  $as_echo_n "(cached) " >&6
3724   else
3725 <  cat >conftest.$ac_ext <<_ACEOF
3726 < /* confdefs.h.  */
3727 < _ACEOF
3728 < cat confdefs.h >>conftest.$ac_ext
3729 < cat >>conftest.$ac_ext <<_ACEOF
3725 >  ac_save_c_werror_flag=$ac_c_werror_flag
3726 >   ac_c_werror_flag=yes
3727 >   ac_cv_prog_cc_g=no
3728 >   CFLAGS="-g"
3729 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730   /* end confdefs.h.  */
3731  
3732   int
# Line 2468 | Line 3737 | _ACEOF
3737    return 0;
3738   }
3739   _ACEOF
3740 < rm -f conftest.$ac_objext
2472 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 <  (eval $ac_compile) 2>conftest.er1
2474 <  ac_status=$?
2475 <  grep -v '^ *+' conftest.er1 >conftest.err
2476 <  rm -f conftest.er1
2477 <  cat conftest.err >&5
2478 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 <  (exit $ac_status); } &&
2480 <         { ac_try='test -z "$ac_c_werror_flag"
2481 <                         || test ! -s conftest.err'
2482 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 <  (eval $ac_try) 2>&5
2484 <  ac_status=$?
2485 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 <  (exit $ac_status); }; } &&
2487 <         { ac_try='test -s conftest.$ac_objext'
2488 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 <  (eval $ac_try) 2>&5
2490 <  ac_status=$?
2491 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 <  (exit $ac_status); }; }; then
3740 > if ac_fn_c_try_compile "$LINENO"; then :
3741    ac_cv_prog_cc_g=yes
3742   else
3743 <  echo "$as_me: failed program was:" >&5
3744 < sed 's/^/| /' conftest.$ac_ext >&5
3743 >  CFLAGS=""
3744 >      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 > /* end confdefs.h.  */
3746  
3747 < ac_cv_prog_cc_g=no
3747 > int
3748 > main ()
3749 > {
3750 >
3751 >  ;
3752 >  return 0;
3753 > }
3754 > _ACEOF
3755 > if ac_fn_c_try_compile "$LINENO"; then :
3756 >
3757 > else
3758 >  ac_c_werror_flag=$ac_save_c_werror_flag
3759 >         CFLAGS="-g"
3760 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 > /* end confdefs.h.  */
3762 >
3763 > int
3764 > main ()
3765 > {
3766 >
3767 >  ;
3768 >  return 0;
3769 > }
3770 > _ACEOF
3771 > if ac_fn_c_try_compile "$LINENO"; then :
3772 >  ac_cv_prog_cc_g=yes
3773   fi
3774 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775   fi
3776 < echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3777 < echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3776 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 > fi
3778 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 >   ac_c_werror_flag=$ac_save_c_werror_flag
3780 > fi
3781 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3782 > $as_echo "$ac_cv_prog_cc_g" >&6; }
3783   if test "$ac_test_CFLAGS" = set; then
3784    CFLAGS=$ac_save_CFLAGS
3785   elif test $ac_cv_prog_cc_g = yes; then
# Line 2516 | Line 3795 | fi
3795      CFLAGS=
3796    fi
3797   fi
3798 < echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3799 < echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3800 < if test "${ac_cv_prog_cc_stdc+set}" = set; then
3801 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3798 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3799 > $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3800 > if ${ac_cv_prog_cc_c89+:} false; then :
3801 >  $as_echo_n "(cached) " >&6
3802   else
3803 <  ac_cv_prog_cc_stdc=no
3803 >  ac_cv_prog_cc_c89=no
3804   ac_save_CC=$CC
3805 < cat >conftest.$ac_ext <<_ACEOF
2527 < /* confdefs.h.  */
2528 < _ACEOF
2529 < cat confdefs.h >>conftest.$ac_ext
2530 < cat >>conftest.$ac_ext <<_ACEOF
3805 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806   /* end confdefs.h.  */
3807   #include <stdarg.h>
3808   #include <stdio.h>
# Line 2555 | Line 3830 | static char *f (char * (*g) (char **, int), char **p,
3830   /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3831     function prototypes and stuff, but not '\xHH' hex character constants.
3832     These don't provoke an error unfortunately, instead are silently treated
3833 <   as 'x'.  The following induces an error, until -std1 is added to get
3833 >   as 'x'.  The following induces an error, until -std is added to get
3834     proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3835     array size at least.  It's necessary to write '\x00'==0 to get something
3836 <   that's true only with -std1.  */
3836 >   that's true only with -std.  */
3837   int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838  
3839 + /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 +   inside strings and character constants.  */
3841 + #define FOO(x) 'x'
3842 + int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843 +
3844   int test (int i, double x);
3845   struct s1 {int (*f) (int a);};
3846   struct s2 {int (*f) (double a);};
# Line 2575 | Line 3855 | _ACEOF
3855    return 0;
3856   }
3857   _ACEOF
3858 < # Don't try gcc -ansi; that turns off useful extensions and
3859 < # breaks some systems' header files.
2580 < # AIX                   -qlanglvl=ansi
2581 < # Ultrix and OSF/1      -std1
2582 < # HP-UX 10.20 and later -Ae
2583 < # HP-UX older versions  -Aa -D_HPUX_SOURCE
2584 < # SVR4                  -Xc -D__EXTENSIONS__
2585 < for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3858 > for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 >        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860   do
3861    CC="$ac_save_CC $ac_arg"
3862 <  rm -f conftest.$ac_objext
3863 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 <  (eval $ac_compile) 2>conftest.er1
2591 <  ac_status=$?
2592 <  grep -v '^ *+' conftest.er1 >conftest.err
2593 <  rm -f conftest.er1
2594 <  cat conftest.err >&5
2595 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 <  (exit $ac_status); } &&
2597 <         { ac_try='test -z "$ac_c_werror_flag"
2598 <                         || test ! -s conftest.err'
2599 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 <  (eval $ac_try) 2>&5
2601 <  ac_status=$?
2602 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 <  (exit $ac_status); }; } &&
2604 <         { ac_try='test -s conftest.$ac_objext'
2605 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 <  (eval $ac_try) 2>&5
2607 <  ac_status=$?
2608 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 <  (exit $ac_status); }; }; then
2610 <  ac_cv_prog_cc_stdc=$ac_arg
2611 < break
2612 < else
2613 <  echo "$as_me: failed program was:" >&5
2614 < sed 's/^/| /' conftest.$ac_ext >&5
2615 <
3862 >  if ac_fn_c_try_compile "$LINENO"; then :
3863 >  ac_cv_prog_cc_c89=$ac_arg
3864   fi
3865 < rm -f conftest.err conftest.$ac_objext
3865 > rm -f core conftest.err conftest.$ac_objext
3866 >  test "x$ac_cv_prog_cc_c89" != "xno" && break
3867   done
3868 < rm -f conftest.$ac_ext conftest.$ac_objext
3868 > rm -f conftest.$ac_ext
3869   CC=$ac_save_CC
3870  
3871   fi
3872 <
3873 < case "x$ac_cv_prog_cc_stdc" in
3874 <  x|xno)
3875 <    echo "$as_me:$LINENO: result: none needed" >&5
3876 < echo "${ECHO_T}none needed" >&6 ;;
3872 > # AC_CACHE_VAL
3873 > case "x$ac_cv_prog_cc_c89" in
3874 >  x)
3875 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876 > $as_echo "none needed" >&6; } ;;
3877 >  xno)
3878 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 > $as_echo "unsupported" >&6; } ;;
3880    *)
3881 <    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3882 < echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3883 <    CC="$CC $ac_cv_prog_cc_stdc" ;;
3881 >    CC="$CC $ac_cv_prog_cc_c89"
3882 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883 > $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884   esac
3885 + if test "x$ac_cv_prog_cc_c89" != xno; then :
3886  
2634 # Some people use a C++ compiler to compile C.  Since we use `exit',
2635 # in C++ we need to declare it.  In case someone uses the same compiler
2636 # for both compiling C and C++ we need to have the C++ compiler decide
2637 # the declaration of exit, since it's the most demanding environment.
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #ifndef __cplusplus
2640  choke me
2641 #endif
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645  (eval $ac_compile) 2>conftest.er1
2646  ac_status=$?
2647  grep -v '^ *+' conftest.er1 >conftest.err
2648  rm -f conftest.er1
2649  cat conftest.err >&5
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); } &&
2652         { ac_try='test -z "$ac_c_werror_flag"
2653                         || test ! -s conftest.err'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; } &&
2659         { ac_try='test -s conftest.$ac_objext'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; }; then
2665  for ac_declaration in \
2666   '' \
2667   'extern "C" void std::exit (int) throw (); using std::exit;' \
2668   'extern "C" void std::exit (int); using std::exit;' \
2669   'extern "C" void exit (int) throw ();' \
2670   'extern "C" void exit (int);' \
2671   'void exit (int);'
2672 do
2673  cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 $ac_declaration
2680 #include <stdlib.h>
2681 int
2682 main ()
2683 {
2684 exit (42);
2685  ;
2686  return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691  (eval $ac_compile) 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } &&
2698         { ac_try='test -z "$ac_c_werror_flag"
2699                         || test ! -s conftest.err'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; } &&
2705         { ac_try='test -s conftest.$ac_objext'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; }; then
2711  :
2712 else
2713  echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 continue
3887   fi
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719  cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725 $ac_declaration
2726 int
2727 main ()
2728 {
2729 exit (42);
2730  ;
2731  return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -z "$ac_c_werror_flag"
2744                         || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750         { ac_try='test -s conftest.$ac_objext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  break
2757 else
2758  echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
3888  
2761 fi
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 done
2764 rm -f conftest*
2765 if test -n "$ac_declaration"; then
2766  echo '#ifdef __cplusplus' >>confdefs.h
2767  echo $ac_declaration      >>confdefs.h
2768  echo '#endif'             >>confdefs.h
2769 fi
2770
2771 else
2772  echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 fi
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889   ac_ext=c
3890   ac_cpp='$CPP $CPPFLAGS'
3891   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894  
3895 < ac_ext=${FC_SRCEXT-f}
3896 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3897 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3895 > ac_ext=${ac_fc_srcext-f}
3896 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3897 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3898   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3899   if test -n "$ac_tool_prefix"; then
3900 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3900 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3901    do
3902      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 < if test "${ac_cv_prog_FC+set}" = set; then
3907 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3904 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 > $as_echo_n "checking for $ac_word... " >&6; }
3906 > if ${ac_cv_prog_FC+:} false; then :
3907 >  $as_echo_n "(cached) " >&6
3908   else
3909    if test -n "$FC"; then
3910    ac_cv_prog_FC="$FC" # Let the user override the test.
# Line 2802 | Line 3914 | do
3914   do
3915    IFS=$as_save_IFS
3916    test -z "$as_dir" && as_dir=.
3917 <  for ac_exec_ext in '' $ac_executable_extensions; do
3918 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 >    for ac_exec_ext in '' $ac_executable_extensions; do
3918 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919      ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3920 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921      break 2
3922    fi
3923   done
3924 < done
3924 >  done
3925 > IFS=$as_save_IFS
3926  
3927   fi
3928   fi
3929   FC=$ac_cv_prog_FC
3930   if test -n "$FC"; then
3931 <  echo "$as_me:$LINENO: result: $FC" >&5
3932 < echo "${ECHO_T}$FC" >&6
3931 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3932 > $as_echo "$FC" >&6; }
3933   else
3934 <  echo "$as_me:$LINENO: result: no" >&5
3935 < echo "${ECHO_T}no" >&6
3934 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 > $as_echo "no" >&6; }
3936   fi
3937  
3938 +
3939      test -n "$FC" && break
3940    done
3941   fi
3942   if test -z "$FC"; then
3943    ac_ct_FC=$FC
3944 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3944 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3945   do
3946    # Extract the first word of "$ac_prog", so it can be a program name with args.
3947   set dummy $ac_prog; ac_word=$2
3948 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3949 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3950 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
3951 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3948 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 > $as_echo_n "checking for $ac_word... " >&6; }
3950 > if ${ac_cv_prog_ac_ct_FC+:} false; then :
3951 >  $as_echo_n "(cached) " >&6
3952   else
3953    if test -n "$ac_ct_FC"; then
3954    ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
# Line 2844 | Line 3958 | do
3958   do
3959    IFS=$as_save_IFS
3960    test -z "$as_dir" && as_dir=.
3961 <  for ac_exec_ext in '' $ac_executable_extensions; do
3962 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 >    for ac_exec_ext in '' $ac_executable_extensions; do
3962 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963      ac_cv_prog_ac_ct_FC="$ac_prog"
3964 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965      break 2
3966    fi
3967   done
3968 < done
3968 >  done
3969 > IFS=$as_save_IFS
3970  
3971   fi
3972   fi
3973   ac_ct_FC=$ac_cv_prog_ac_ct_FC
3974   if test -n "$ac_ct_FC"; then
3975 <  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
3976 < echo "${ECHO_T}$ac_ct_FC" >&6
3975 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3976 > $as_echo "$ac_ct_FC" >&6; }
3977   else
3978 <  echo "$as_me:$LINENO: result: no" >&5
3979 < echo "${ECHO_T}no" >&6
3978 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 > $as_echo "no" >&6; }
3980   fi
3981  
3982 +
3983    test -n "$ac_ct_FC" && break
3984   done
3985  
3986 <  FC=$ac_ct_FC
3986 >  if test "x$ac_ct_FC" = x; then
3987 >    FC=""
3988 >  else
3989 >    case $cross_compiling:$ac_tool_warned in
3990 > yes:)
3991 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993 > ac_tool_warned=yes ;;
3994 > esac
3995 >    FC=$ac_ct_FC
3996 >  fi
3997   fi
3998  
3999  
4000   # Provide some information about the compiler.
4001 < echo "$as_me:2875:" \
4002 <     "checking for Fortran compiler version" >&5
4003 < ac_compiler=`set X $ac_compile; echo $2`
4004 < { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 <  (eval $ac_compiler --version </dev/null >&5) 2>&5
4001 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4002 > set X $ac_compile
4003 > ac_compiler=$2
4004 > for ac_option in --version -v -V -qversion; do
4005 >  { { ac_try="$ac_compiler $ac_option >&5"
4006 > case "(($ac_try" in
4007 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 >  *) ac_try_echo=$ac_try;;
4009 > esac
4010 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 > $as_echo "$ac_try_echo"; } >&5
4012 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013    ac_status=$?
4014 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 <  (exit $ac_status); }
4016 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4017 <  (eval $ac_compiler -v </dev/null >&5) 2>&5
4018 <  ac_status=$?
4019 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 <  (exit $ac_status); }
4021 < { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4022 <  (eval $ac_compiler -V </dev/null >&5) 2>&5
4023 <  ac_status=$?
2891 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 <  (exit $ac_status); }
4014 >  if test -s conftest.err; then
4015 >    sed '10a\
4016 > ... rest of stderr output deleted ...
4017 >         10q' conftest.err >conftest.er1
4018 >    cat conftest.er1 >&5
4019 >  fi
4020 >  rm -f conftest.er1 conftest.err
4021 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 >  test $ac_status = 0; }
4023 > done
4024   rm -f a.out
4025  
4026   # If we don't use `.F' as extension, the preprocessor is not run on the
4027   # input file.  (Note that this only needs to work for GNU compilers.)
4028   ac_save_ext=$ac_ext
4029   ac_ext=F
4030 < echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4031 < echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4032 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4033 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4030 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4031 > $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4032 > if ${ac_cv_fc_compiler_gnu+:} false; then :
4033 >  $as_echo_n "(cached) " >&6
4034   else
4035 <  cat >conftest.$ac_ext <<_ACEOF
4035 >  cat > conftest.$ac_ext <<_ACEOF
4036        program main
4037   #ifndef __GNUC__
4038         choke me
# Line 2909 | Line 4040 | _ACEOF
4040  
4041        end
4042   _ACEOF
4043 < rm -f conftest.$ac_objext
2913 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914 <  (eval $ac_compile) 2>conftest.er1
2915 <  ac_status=$?
2916 <  grep -v '^ *+' conftest.er1 >conftest.err
2917 <  rm -f conftest.er1
2918 <  cat conftest.err >&5
2919 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 <  (exit $ac_status); } &&
2921 <         { ac_try='test -z "$ac_fc_werror_flag"
2922 <                         || test ! -s conftest.err'
2923 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 <  (eval $ac_try) 2>&5
2925 <  ac_status=$?
2926 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 <  (exit $ac_status); }; } &&
2928 <         { ac_try='test -s conftest.$ac_objext'
2929 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 <  (eval $ac_try) 2>&5
2931 <  ac_status=$?
2932 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 <  (exit $ac_status); }; }; then
4043 > if ac_fn_fc_try_compile "$LINENO"; then :
4044    ac_compiler_gnu=yes
4045   else
4046 <  echo "$as_me: failed program was:" >&5
2937 < sed 's/^/| /' conftest.$ac_ext >&5
2938 <
2939 < ac_compiler_gnu=no
4046 >  ac_compiler_gnu=no
4047   fi
4048 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049   ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4050  
4051   fi
4052 < echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4053 < echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4052 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4053 > $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4054   ac_ext=$ac_save_ext
4055 < ac_test_FFLAGS=${FCFLAGS+set}
4056 < ac_save_FFLAGS=$FCFLAGS
4055 > ac_test_FCFLAGS=${FCFLAGS+set}
4056 > ac_save_FCFLAGS=$FCFLAGS
4057   FCFLAGS=
4058 < echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4059 < echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4060 < if test "${ac_cv_prog_fc_g+set}" = set; then
4061 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4058 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4059 > $as_echo_n "checking whether $FC accepts -g... " >&6; }
4060 > if ${ac_cv_prog_fc_g+:} false; then :
4061 >  $as_echo_n "(cached) " >&6
4062   else
4063    FCFLAGS=-g
4064 < cat >conftest.$ac_ext <<_ACEOF
4064 > cat > conftest.$ac_ext <<_ACEOF
4065        program main
4066  
4067        end
4068   _ACEOF
4069 < rm -f conftest.$ac_objext
2963 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964 <  (eval $ac_compile) 2>conftest.er1
2965 <  ac_status=$?
2966 <  grep -v '^ *+' conftest.er1 >conftest.err
2967 <  rm -f conftest.er1
2968 <  cat conftest.err >&5
2969 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 <  (exit $ac_status); } &&
2971 <         { ac_try='test -z "$ac_fc_werror_flag"
2972 <                         || test ! -s conftest.err'
2973 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 <  (eval $ac_try) 2>&5
2975 <  ac_status=$?
2976 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 <  (exit $ac_status); }; } &&
2978 <         { ac_try='test -s conftest.$ac_objext'
2979 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 <  (eval $ac_try) 2>&5
2981 <  ac_status=$?
2982 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 <  (exit $ac_status); }; }; then
4069 > if ac_fn_fc_try_compile "$LINENO"; then :
4070    ac_cv_prog_fc_g=yes
4071   else
4072 <  echo "$as_me: failed program was:" >&5
2987 < sed 's/^/| /' conftest.$ac_ext >&5
2988 <
2989 < ac_cv_prog_fc_g=no
4072 >  ac_cv_prog_fc_g=no
4073   fi
4074 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4074 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075  
4076   fi
4077 < echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4078 < echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4079 < if test "$ac_test_FFLAGS" = set; then
4080 <  FCFLAGS=$ac_save_FFLAGS
4077 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4078 > $as_echo "$ac_cv_prog_fc_g" >&6; }
4079 > if test "$ac_test_FCFLAGS" = set; then
4080 >  FCFLAGS=$ac_save_FCFLAGS
4081   elif test $ac_cv_prog_fc_g = yes; then
4082    if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4083      FCFLAGS="-g -O2"
# Line 3015 | Line 4098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100  
4101 < ac_ext=c
4102 < ac_cpp='$CPP $CPPFLAGS'
4103 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 < echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4107 < echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4108 < # On Suns, sometimes $CPP names a directory.
4109 < if test -n "$CPP" && test -d "$CPP"; then
4110 <  CPP=
4111 < fi
4112 < if test -z "$CPP"; then
4113 <  if test "${ac_cv_prog_CPP+set}" = set; then
4114 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4101 >
4102 > save_CXX=$CXX
4103 > save_CC=$CC
4104 > save_FC=$FC
4105 > save_LIBS=$LIBS
4106 >
4107 > ac_ext=cpp
4108 > ac_cpp='$CXXCPP $CPPFLAGS'
4109 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4112 >
4113 >
4114 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4115 > $as_echo_n "checking for dlopen in -lc... " >&6; }
4116 > if ${ac_cv_lib_c_dlopen+:} false; then :
4117 >  $as_echo_n "(cached) " >&6
4118   else
4119 <      # Double quotes because CPP needs to be expanded
4120 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4121 <    do
3036 <      ac_preproc_ok=false
3037 < for ac_c_preproc_warn_flag in '' yes
3038 < do
3039 <  # Use a header file that comes with gcc, so configuring glibc
3040 <  # with a fresh cross-compiler works.
3041 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3042 <  # <limits.h> exists even on freestanding compilers.
3043 <  # On the NeXT, cc -E runs the code through the compiler's parser,
3044 <  # not just through cpp. "Syntax error" is here to catch this case.
3045 <  cat >conftest.$ac_ext <<_ACEOF
3046 < /* confdefs.h.  */
3047 < _ACEOF
3048 < cat confdefs.h >>conftest.$ac_ext
3049 < cat >>conftest.$ac_ext <<_ACEOF
4119 >  ac_check_lib_save_LIBS=$LIBS
4120 > LIBS="-lc  $LIBS"
4121 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122   /* end confdefs.h.  */
4123 < #ifdef __STDC__
4124 < # include <limits.h>
4125 < #else
4126 < # include <assert.h>
4123 >
4124 > /* Override any GCC internal prototype to avoid an error.
4125 >   Use char because int might match the return type of a GCC
4126 >   builtin and then its argument prototype would still apply.  */
4127 > #ifdef __cplusplus
4128 > extern "C"
4129   #endif
4130 <                     Syntax error
4130 > char dlopen ();
4131 > int
4132 > main ()
4133 > {
4134 > return dlopen ();
4135 >  ;
4136 >  return 0;
4137 > }
4138   _ACEOF
4139 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4140 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060 <  ac_status=$?
3061 <  grep -v '^ *+' conftest.er1 >conftest.err
3062 <  rm -f conftest.er1
3063 <  cat conftest.err >&5
3064 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 <  (exit $ac_status); } >/dev/null; then
3066 <  if test -s conftest.err; then
3067 <    ac_cpp_err=$ac_c_preproc_warn_flag
3068 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069 <  else
3070 <    ac_cpp_err=
3071 <  fi
4139 > if ac_fn_cxx_try_link "$LINENO"; then :
4140 >  ac_cv_lib_c_dlopen=yes
4141   else
4142 <  ac_cpp_err=yes
4142 >  ac_cv_lib_c_dlopen=no
4143   fi
4144 < if test -z "$ac_cpp_err"; then
4145 <  :
4144 > rm -f core conftest.err conftest.$ac_objext \
4145 >    conftest$ac_exeext conftest.$ac_ext
4146 > LIBS=$ac_check_lib_save_LIBS
4147 > fi
4148 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4149 > $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4150 > if test "x$ac_cv_lib_c_dlopen" = xyes; then :
4151 >  LIBDL=""
4152   else
4153 <  echo "$as_me: failed program was:" >&5
4154 < sed 's/^/| /' conftest.$ac_ext >&5
4153 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4154 > $as_echo_n "checking for dlopen in -ldl... " >&6; }
4155 > if ${ac_cv_lib_dl_dlopen+:} false; then :
4156 >  $as_echo_n "(cached) " >&6
4157 > else
4158 >  ac_check_lib_save_LIBS=$LIBS
4159 > LIBS="-ldl  $LIBS"
4160 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 > /* end confdefs.h.  */
4162  
4163 <  # Broken: fails on valid input.
4164 < continue
4165 < fi
4166 < rm -f conftest.err conftest.$ac_ext
4167 <
4168 <  # OK, works on sane cases.  Now check whether non-existent headers
4169 <  # can be detected and how.
4170 <  cat >conftest.$ac_ext <<_ACEOF
4171 < /* confdefs.h.  */
4163 > /* Override any GCC internal prototype to avoid an error.
4164 >   Use char because int might match the return type of a GCC
4165 >   builtin and then its argument prototype would still apply.  */
4166 > #ifdef __cplusplus
4167 > extern "C"
4168 > #endif
4169 > char dlopen ();
4170 > int
4171 > main ()
4172 > {
4173 > return dlopen ();
4174 >  ;
4175 >  return 0;
4176 > }
4177   _ACEOF
4178 < cat confdefs.h >>conftest.$ac_ext
4179 < cat >>conftest.$ac_ext <<_ACEOF
3093 < /* end confdefs.h.  */
3094 < #include <ac_nonexistent.h>
3095 < _ACEOF
3096 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 <  ac_status=$?
3099 <  grep -v '^ *+' conftest.er1 >conftest.err
3100 <  rm -f conftest.er1
3101 <  cat conftest.err >&5
3102 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 <  (exit $ac_status); } >/dev/null; then
3104 <  if test -s conftest.err; then
3105 <    ac_cpp_err=$ac_c_preproc_warn_flag
3106 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 <  else
3108 <    ac_cpp_err=
3109 <  fi
4178 > if ac_fn_cxx_try_link "$LINENO"; then :
4179 >  ac_cv_lib_dl_dlopen=yes
4180   else
4181 <  ac_cpp_err=yes
4181 >  ac_cv_lib_dl_dlopen=no
4182   fi
4183 < if test -z "$ac_cpp_err"; then
4184 <  # Broken: success on invalid input.
4185 < continue
3116 < else
3117 <  echo "$as_me: failed program was:" >&5
3118 < sed 's/^/| /' conftest.$ac_ext >&5
3119 <
3120 <  # Passes both tests.
3121 < ac_preproc_ok=:
3122 < break
4183 > rm -f core conftest.err conftest.$ac_objext \
4184 >    conftest$ac_exeext conftest.$ac_ext
4185 > LIBS=$ac_check_lib_save_LIBS
4186   fi
4187 < rm -f conftest.err conftest.$ac_ext
4187 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4188 > $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4189 > if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4190 >  LIBDL="-ldl"
4191 > fi
4192  
3126 done
3127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128 rm -f conftest.err conftest.$ac_ext
3129 if $ac_preproc_ok; then
3130  break
4193   fi
4194  
3133    done
3134    ac_cv_prog_CPP=$CPP
4195  
3136 fi
3137  CPP=$ac_cv_prog_CPP
3138 else
3139  ac_cv_prog_CPP=$CPP
3140 fi
3141 echo "$as_me:$LINENO: result: $CPP" >&5
3142 echo "${ECHO_T}$CPP" >&6
3143 ac_preproc_ok=false
3144 for ac_c_preproc_warn_flag in '' yes
3145 do
3146  # Use a header file that comes with gcc, so configuring glibc
3147  # with a fresh cross-compiler works.
3148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3149  # <limits.h> exists even on freestanding compilers.
3150  # On the NeXT, cc -E runs the code through the compiler's parser,
3151  # not just through cpp. "Syntax error" is here to catch this case.
3152  cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #ifdef __STDC__
3159 # include <limits.h>
3160 #else
3161 # include <assert.h>
3162 #endif
3163                     Syntax error
3164 _ACEOF
3165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167  ac_status=$?
3168  grep -v '^ *+' conftest.er1 >conftest.err
3169  rm -f conftest.er1
3170  cat conftest.err >&5
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); } >/dev/null; then
3173  if test -s conftest.err; then
3174    ac_cpp_err=$ac_c_preproc_warn_flag
3175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3176  else
3177    ac_cpp_err=
3178  fi
3179 else
3180  ac_cpp_err=yes
3181 fi
3182 if test -z "$ac_cpp_err"; then
3183  :
3184 else
3185  echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
4196  
3188  # Broken: fails on valid input.
3189 continue
3190 fi
3191 rm -f conftest.err conftest.$ac_ext
4197  
4198 <  # OK, works on sane cases.  Now check whether non-existent headers
4199 <  # can be detected and how.
4200 <  cat >conftest.$ac_ext <<_ACEOF
4201 < /* confdefs.h.  */
4202 < _ACEOF
4203 < cat confdefs.h >>conftest.$ac_ext
4204 < cat >>conftest.$ac_ext <<_ACEOF
4205 < /* end confdefs.h.  */
4206 < #include <ac_nonexistent.h>
4207 < _ACEOF
4208 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205 <  ac_status=$?
3206 <  grep -v '^ *+' conftest.er1 >conftest.err
3207 <  rm -f conftest.er1
3208 <  cat conftest.err >&5
3209 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 <  (exit $ac_status); } >/dev/null; then
3211 <  if test -s conftest.err; then
3212 <    ac_cpp_err=$ac_c_preproc_warn_flag
3213 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3214 <  else
3215 <    ac_cpp_err=
3216 <  fi
4198 >
4199 >
4200 >
4201 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4202 > do
4203 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 > set dummy $ac_prog; ac_word=$2
4205 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 > $as_echo_n "checking for $ac_word... " >&6; }
4207 > if ${ac_cv_prog_MPICXX+:} false; then :
4208 >  $as_echo_n "(cached) " >&6
4209   else
4210 <  ac_cpp_err=yes
4211 < fi
3220 < if test -z "$ac_cpp_err"; then
3221 <  # Broken: success on invalid input.
3222 < continue
4210 >  if test -n "$MPICXX"; then
4211 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4212   else
4213 <  echo "$as_me: failed program was:" >&5
4214 < sed 's/^/| /' conftest.$ac_ext >&5
4213 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 > for as_dir in $PATH
4215 > do
4216 >  IFS=$as_save_IFS
4217 >  test -z "$as_dir" && as_dir=.
4218 >    for ac_exec_ext in '' $ac_executable_extensions; do
4219 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 >    ac_cv_prog_MPICXX="$ac_prog"
4221 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 >    break 2
4223 >  fi
4224 > done
4225 >  done
4226 > IFS=$as_save_IFS
4227  
3227  # Passes both tests.
3228 ac_preproc_ok=:
3229 break
4228   fi
4229 < rm -f conftest.err conftest.$ac_ext
4230 <
4231 < done
4232 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 < rm -f conftest.err conftest.$ac_ext
3236 < if $ac_preproc_ok; then
3237 <  :
4229 > fi
4230 > MPICXX=$ac_cv_prog_MPICXX
4231 > if test -n "$MPICXX"; then
4232 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4233 > $as_echo "$MPICXX" >&6; }
4234   else
4235 <  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4236 < See \`config.log' for more details." >&5
3241 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3242 < See \`config.log' for more details." >&2;}
3243 <   { (exit 1); exit 1; }; }
4235 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 > $as_echo "no" >&6; }
4237   fi
4238  
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239  
4240 < echo "$as_me:$LINENO: checking for egrep" >&5
4241 < echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 < if test "${ac_cv_prog_egrep+set}" = set; then
3255 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3256 < else
3257 <  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258 <    then ac_cv_prog_egrep='grep -E'
3259 <    else ac_cv_prog_egrep='egrep'
3260 <    fi
3261 < fi
3262 < echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263 < echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264 < EGREP=$ac_cv_prog_egrep
4240 >  test -n "$MPICXX" && break
4241 > done
4242 > test -n "$MPICXX" || MPICXX="$CXX"
4243  
4244 +        ax_mpi_save_CXX="$CXX"
4245 +        CXX="$MPICXX"
4246  
4247 < echo "$as_me:$LINENO: checking whether ln -s works" >&5
4248 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4249 < LN_S=$as_ln_s
4250 < if test "$LN_S" = "ln -s"; then
4251 <  echo "$as_me:$LINENO: result: yes" >&5
4252 < echo "${ECHO_T}yes" >&6
3273 < else
3274 <  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3275 < echo "${ECHO_T}no, using $LN_S" >&6
4247 >
4248 >
4249 > if test x = x"$MPILIBS"; then
4250 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4251 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4252 >  MPILIBS=" "
4253   fi
4254  
4255 < echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4256 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4257 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4258 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4259 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4255 > fi
4256 >
4257 > if test x = x"$MPILIBS"; then
4258 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4259 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4260 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4261 >  $as_echo_n "(cached) " >&6
4262   else
4263 <  cat >conftest.make <<\_ACEOF
4264 < all:
4265 <        @echo 'ac_maketemp="$(MAKE)"'
4263 >  ac_check_lib_save_LIBS=$LIBS
4264 > LIBS="-lmpi  $LIBS"
4265 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 > /* end confdefs.h.  */
4267 >
4268 > /* Override any GCC internal prototype to avoid an error.
4269 >   Use char because int might match the return type of a GCC
4270 >   builtin and then its argument prototype would still apply.  */
4271 > #ifdef __cplusplus
4272 > extern "C"
4273 > #endif
4274 > char MPI_Init ();
4275 > int
4276 > main ()
4277 > {
4278 > return MPI_Init ();
4279 >  ;
4280 >  return 0;
4281 > }
4282   _ACEOF
4283 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4284 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3290 < if test -n "$ac_maketemp"; then
3291 <  eval ac_cv_prog_make_${ac_make}_set=yes
4283 > if ac_fn_cxx_try_link "$LINENO"; then :
4284 >  ac_cv_lib_mpi_MPI_Init=yes
4285   else
4286 <  eval ac_cv_prog_make_${ac_make}_set=no
4286 >  ac_cv_lib_mpi_MPI_Init=no
4287   fi
4288 < rm -f conftest.make
4288 > rm -f core conftest.err conftest.$ac_objext \
4289 >    conftest$ac_exeext conftest.$ac_ext
4290 > LIBS=$ac_check_lib_save_LIBS
4291   fi
4292 < if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4293 <  echo "$as_me:$LINENO: result: yes" >&5
4294 < echo "${ECHO_T}yes" >&6
4295 <  SET_MAKE=
3301 < else
3302 <  echo "$as_me:$LINENO: result: no" >&5
3303 < echo "${ECHO_T}no" >&6
3304 <  SET_MAKE="MAKE=${MAKE-make}"
4292 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4293 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4294 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4295 >  MPILIBS="-lmpi"
4296   fi
4297  
4298 < if test -n "$ac_tool_prefix"; then
4299 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4300 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4301 < echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 < if test "${ac_cv_prog_RANLIB+set}" = set; then
3313 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4298 > fi
4299 > if test x = x"$MPILIBS"; then
4300 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4301 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4302 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4303 >  $as_echo_n "(cached) " >&6
4304   else
4305 <  if test -n "$RANLIB"; then
4306 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4307 < else
4308 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 < for as_dir in $PATH
3320 < do
3321 <  IFS=$as_save_IFS
3322 <  test -z "$as_dir" && as_dir=.
3323 <  for ac_exec_ext in '' $ac_executable_extensions; do
3324 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3326 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 <    break 2
3328 <  fi
3329 < done
3330 < done
4305 >  ac_check_lib_save_LIBS=$LIBS
4306 > LIBS="-lmpich  $LIBS"
4307 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 > /* end confdefs.h.  */
4309  
4310 + /* Override any GCC internal prototype to avoid an error.
4311 +   Use char because int might match the return type of a GCC
4312 +   builtin and then its argument prototype would still apply.  */
4313 + #ifdef __cplusplus
4314 + extern "C"
4315 + #endif
4316 + char MPI_Init ();
4317 + int
4318 + main ()
4319 + {
4320 + return MPI_Init ();
4321 +  ;
4322 +  return 0;
4323 + }
4324 + _ACEOF
4325 + if ac_fn_cxx_try_link "$LINENO"; then :
4326 +  ac_cv_lib_mpich_MPI_Init=yes
4327 + else
4328 +  ac_cv_lib_mpich_MPI_Init=no
4329   fi
4330 + rm -f core conftest.err conftest.$ac_objext \
4331 +    conftest$ac_exeext conftest.$ac_ext
4332 + LIBS=$ac_check_lib_save_LIBS
4333   fi
4334 < RANLIB=$ac_cv_prog_RANLIB
4335 < if test -n "$RANLIB"; then
4336 <  echo "$as_me:$LINENO: result: $RANLIB" >&5
4337 < echo "${ECHO_T}$RANLIB" >&6
3338 < else
3339 <  echo "$as_me:$LINENO: result: no" >&5
3340 < echo "${ECHO_T}no" >&6
4334 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4335 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4336 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4337 >  MPILIBS="-lmpich"
4338   fi
4339  
4340   fi
4341 < if test -z "$ac_cv_prog_RANLIB"; then
4342 <  ac_ct_RANLIB=$RANLIB
4343 <  # Extract the first word of "ranlib", so it can be a program name with args.
4344 < set dummy ranlib; ac_word=$2
4345 < echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4348 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4341 >
4342 > if test x != x"$MPILIBS"; then
4343 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4344 > $as_echo_n "checking for mpi.h... " >&6; }
4345 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 > /* end confdefs.h.  */
4347 > #include <mpi.h>
4348 > int
4349 > main ()
4350 > {
4351 >
4352 >  ;
4353 >  return 0;
4354 > }
4355 > _ACEOF
4356 > if ac_fn_cxx_try_compile "$LINENO"; then :
4357 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358 > $as_echo "yes" >&6; }
4359   else
4360 <  if test -n "$ac_ct_RANLIB"; then
4361 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4360 >  MPILIBS=""
4361 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 > $as_echo "no" >&6; }
4363 > fi
4364 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 > fi
4366 >
4367 > CXX="$ax_mpi_save_CXX"
4368 >
4369 >
4370 >
4371 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4372 > if test x = x"$MPILIBS"; then
4373 >        USE_MPI="no"
4374 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4375 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4376 >        :
4377   else
4378 +        USE_MPI="yes"
4379 +        :
4380 + fi
4381 +
4382 +
4383 + if test $USE_MPI != no; then :
4384 +
4385 + ac_ext=c
4386 + ac_cpp='$CPP $CPPFLAGS'
4387 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 +
4391 +
4392 +
4393 +
4394 +
4395 +
4396 +        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4397 + do
4398 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 + set dummy $ac_prog; ac_word=$2
4400 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 + $as_echo_n "checking for $ac_word... " >&6; }
4402 + if ${ac_cv_prog_MPICC+:} false; then :
4403 +  $as_echo_n "(cached) " >&6
4404 + else
4405 +  if test -n "$MPICC"; then
4406 +  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4407 + else
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409   for as_dir in $PATH
4410   do
4411    IFS=$as_save_IFS
4412    test -z "$as_dir" && as_dir=.
4413 <  for ac_exec_ext in '' $ac_executable_extensions; do
4414 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
4416 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 >    for ac_exec_ext in '' $ac_executable_extensions; do
4414 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 >    ac_cv_prog_MPICC="$ac_prog"
4416 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417      break 2
4418    fi
4419   done
4420 < done
4420 >  done
4421 > IFS=$as_save_IFS
4422  
3370  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4423   fi
4424   fi
4425 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4426 < if test -n "$ac_ct_RANLIB"; then
4427 <  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4428 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
4425 > MPICC=$ac_cv_prog_MPICC
4426 > if test -n "$MPICC"; then
4427 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4428 > $as_echo "$MPICC" >&6; }
4429   else
4430 <  echo "$as_me:$LINENO: result: no" >&5
4431 < echo "${ECHO_T}no" >&6
4430 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 > $as_echo "no" >&6; }
4432   fi
4433  
4434 <  RANLIB=$ac_ct_RANLIB
4434 >
4435 >  test -n "$MPICC" && break
4436 > done
4437 > test -n "$MPICC" || MPICC="$CC"
4438 >
4439 >        ax_mpi_save_CC="$CC"
4440 >        CC="$MPICC"
4441 >
4442 >
4443 >
4444 > if test x = x"$MPILIBS"; then
4445 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4446 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4447 >  MPILIBS=" "
4448 > fi
4449 >
4450 > fi
4451 >
4452 > if test x = x"$MPILIBS"; then
4453 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4454 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4455 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4456 >  $as_echo_n "(cached) " >&6
4457   else
4458 <  RANLIB="$ac_cv_prog_RANLIB"
4458 >  ac_check_lib_save_LIBS=$LIBS
4459 > LIBS="-lmpi  $LIBS"
4460 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 > /* end confdefs.h.  */
4462 >
4463 > /* Override any GCC internal prototype to avoid an error.
4464 >   Use char because int might match the return type of a GCC
4465 >   builtin and then its argument prototype would still apply.  */
4466 > #ifdef __cplusplus
4467 > extern "C"
4468 > #endif
4469 > char MPI_Init ();
4470 > int
4471 > main ()
4472 > {
4473 > return MPI_Init ();
4474 >  ;
4475 >  return 0;
4476 > }
4477 > _ACEOF
4478 > if ac_fn_c_try_link "$LINENO"; then :
4479 >  ac_cv_lib_mpi_MPI_Init=yes
4480 > else
4481 >  ac_cv_lib_mpi_MPI_Init=no
4482   fi
4483 + rm -f core conftest.err conftest.$ac_objext \
4484 +    conftest$ac_exeext conftest.$ac_ext
4485 + LIBS=$ac_check_lib_save_LIBS
4486 + fi
4487 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4488 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4489 + if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4490 +  MPILIBS="-lmpi"
4491 + fi
4492  
4493 + fi
4494 + if test x = x"$MPILIBS"; then
4495 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4496 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4497 + if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4498 +  $as_echo_n "(cached) " >&6
4499 + else
4500 +  ac_check_lib_save_LIBS=$LIBS
4501 + LIBS="-lmpich  $LIBS"
4502 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 + /* end confdefs.h.  */
4504  
4505 <   # Extract the first word of "perl", so it can be a program name with args.
4506 < set dummy perl; ac_word=$2
4507 < echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 < if test "${ac_cv_path_PERLINTERP+set}" = set; then
4510 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4505 > /* Override any GCC internal prototype to avoid an error.
4506 >   Use char because int might match the return type of a GCC
4507 >   builtin and then its argument prototype would still apply.  */
4508 > #ifdef __cplusplus
4509 > extern "C"
4510 > #endif
4511 > char MPI_Init ();
4512 > int
4513 > main ()
4514 > {
4515 > return MPI_Init ();
4516 >  ;
4517 >  return 0;
4518 > }
4519 > _ACEOF
4520 > if ac_fn_c_try_link "$LINENO"; then :
4521 >  ac_cv_lib_mpich_MPI_Init=yes
4522   else
4523 <  case $PERLINTERP in
4524 <  [\\/]* | ?:[\\/]*)
4525 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4526 <  ;;
4527 <  *)
4528 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 < for as_dir in $PATH
4530 < do
4531 <  IFS=$as_save_IFS
4532 <  test -z "$as_dir" && as_dir=.
4533 <  for ac_exec_ext in '' $ac_executable_extensions; do
3406 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
3408 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 <    break 2
3410 <  fi
3411 < done
3412 < done
4523 >  ac_cv_lib_mpich_MPI_Init=no
4524 > fi
4525 > rm -f core conftest.err conftest.$ac_objext \
4526 >    conftest$ac_exeext conftest.$ac_ext
4527 > LIBS=$ac_check_lib_save_LIBS
4528 > fi
4529 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4530 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4531 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4532 >  MPILIBS="-lmpich"
4533 > fi
4534  
3414  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
3415  ;;
3416 esac
4535   fi
3418 PERLINTERP=$ac_cv_path_PERLINTERP
4536  
4537 < if test -n "$PERLINTERP"; then
4538 <  echo "$as_me:$LINENO: result: $PERLINTERP" >&5
4539 < echo "${ECHO_T}$PERLINTERP" >&6
4537 > if test x != x"$MPILIBS"; then
4538 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4539 > $as_echo_n "checking for mpi.h... " >&6; }
4540 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 > /* end confdefs.h.  */
4542 > #include <mpi.h>
4543 > int
4544 > main ()
4545 > {
4546 >
4547 >  ;
4548 >  return 0;
4549 > }
4550 > _ACEOF
4551 > if ac_fn_c_try_compile "$LINENO"; then :
4552 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 > $as_echo "yes" >&6; }
4554   else
4555 <  echo "$as_me:$LINENO: result: no" >&5
4556 < echo "${ECHO_T}no" >&6
4555 >  MPILIBS=""
4556 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 > $as_echo "no" >&6; }
4558   fi
4559 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 + fi
4561  
4562 <   ac_cv_path_perlinterp="$PERLINTERP"
3429 <   _sHpB='#!'
4562 > CC="$ax_mpi_save_CC"
4563  
4564  
4565 < # Check whether --with-perl-shebang or --without-perl-shebang was given.
4566 < if test "${with_perl_shebang+set}" = set; then
4567 <  withval="$with_perl_shebang"
4568 <  opt_perl_shebang="$withval"
4565 >
4566 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4567 > if test x = x"$MPILIBS"; then
4568 >        USE_MPI="no"
4569 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4570 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4571 >        :
4572   else
4573 +        USE_MPI="yes"
4574 +        :
4575 + fi
4576 +
4577 +
4578 + fi
4579 +
4580 + if test $USE_MPI != no; then :
4581 +
4582 + ac_ext=${ac_fc_srcext-f}
4583 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4584 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4585 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4586 +
4587 +
4588 +
4589 +
4590 +
4591 +
4592 +        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4593 + do
4594 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 + set dummy $ac_prog; ac_word=$2
4596 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 + $as_echo_n "checking for $ac_word... " >&6; }
4598 + if ${ac_cv_prog_MPIFC+:} false; then :
4599 +  $as_echo_n "(cached) " >&6
4600 + else
4601 +  if test -n "$MPIFC"; then
4602 +  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4603 + else
4604 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 + for as_dir in $PATH
4606 + do
4607 +  IFS=$as_save_IFS
4608 +  test -z "$as_dir" && as_dir=.
4609 +    for ac_exec_ext in '' $ac_executable_extensions; do
4610 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 +    ac_cv_prog_MPIFC="$ac_prog"
4612 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 +    break 2
4614 +  fi
4615 + done
4616 +  done
4617 + IFS=$as_save_IFS
4618 +
4619 + fi
4620 + fi
4621 + MPIFC=$ac_cv_prog_MPIFC
4622 + if test -n "$MPIFC"; then
4623 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4624 + $as_echo "$MPIFC" >&6; }
4625 + else
4626 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 + $as_echo "no" >&6; }
4628 + fi
4629 +
4630 +
4631 +  test -n "$MPIFC" && break
4632 + done
4633 + test -n "$MPIFC" || MPIFC="$FC"
4634 +
4635 +        ax_mpi_save_FC="$FC"
4636 +        FC="$MPIFC"
4637 +
4638 +
4639 +
4640 + if test x = x"$MPILIBS"; then
4641 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4642 + $as_echo_n "checking for MPI_Init... " >&6; }
4643 +                        cat > conftest.$ac_ext <<_ACEOF
4644 +      program main
4645 +      call MPI_Init
4646 +      end
4647 + _ACEOF
4648 + if ac_fn_fc_try_link "$LINENO"; then :
4649 +  MPILIBS=" "
4650 +                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 + $as_echo "yes" >&6; }
4652 + else
4653 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 + $as_echo "no" >&6; }
4655 + fi
4656 + rm -f core conftest.err conftest.$ac_objext \
4657 +    conftest$ac_exeext conftest.$ac_ext
4658 + fi
4659 +
4660 +        if test x = x"$MPILIBS"; then
4661 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4662 + $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4663 + if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
4664 +  $as_echo_n "(cached) " >&6
4665 + else
4666 +  ac_check_lib_save_LIBS=$LIBS
4667 + LIBS="-lfmpi  $LIBS"
4668 + cat > conftest.$ac_ext <<_ACEOF
4669 +      program main
4670 +      call MPI_Init
4671 +      end
4672 + _ACEOF
4673 + if ac_fn_fc_try_link "$LINENO"; then :
4674 +  ac_cv_lib_fmpi_MPI_Init=yes
4675 + else
4676 +  ac_cv_lib_fmpi_MPI_Init=no
4677 + fi
4678 + rm -f core conftest.err conftest.$ac_objext \
4679 +    conftest$ac_exeext conftest.$ac_ext
4680 + LIBS=$ac_check_lib_save_LIBS
4681 + fi
4682 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4683 + $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4684 + if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
4685 +  MPILIBS="-lfmpi"
4686 + fi
4687 +
4688 +        fi
4689 +        if test x = x"$MPILIBS"; then
4690 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4691 + $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4692 + if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then :
4693 +  $as_echo_n "(cached) " >&6
4694 + else
4695 +  ac_check_lib_save_LIBS=$LIBS
4696 + LIBS="-lmpichf90  $LIBS"
4697 + cat > conftest.$ac_ext <<_ACEOF
4698 +      program main
4699 +      call MPI_Init
4700 +      end
4701 + _ACEOF
4702 + if ac_fn_fc_try_link "$LINENO"; then :
4703 +  ac_cv_lib_mpichf90_MPI_Init=yes
4704 + else
4705 +  ac_cv_lib_mpichf90_MPI_Init=no
4706 + fi
4707 + rm -f core conftest.err conftest.$ac_objext \
4708 +    conftest$ac_exeext conftest.$ac_ext
4709 + LIBS=$ac_check_lib_save_LIBS
4710 + fi
4711 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4712 + $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4713 + if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then :
4714 +  MPILIBS="-lmpichf90"
4715 + fi
4716 +
4717 +        fi
4718 +
4719 + if test x = x"$MPILIBS"; then
4720 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4721 + $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4722 + if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4723 +  $as_echo_n "(cached) " >&6
4724 + else
4725 +  ac_check_lib_save_LIBS=$LIBS
4726 + LIBS="-lmpi  $LIBS"
4727 + cat > conftest.$ac_ext <<_ACEOF
4728 +      program main
4729 +      call MPI_Init
4730 +      end
4731 + _ACEOF
4732 + if ac_fn_fc_try_link "$LINENO"; then :
4733 +  ac_cv_lib_mpi_MPI_Init=yes
4734 + else
4735 +  ac_cv_lib_mpi_MPI_Init=no
4736 + fi
4737 + rm -f core conftest.err conftest.$ac_objext \
4738 +    conftest$ac_exeext conftest.$ac_ext
4739 + LIBS=$ac_check_lib_save_LIBS
4740 + fi
4741 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4742 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4743 + if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4744 +  MPILIBS="-lmpi"
4745 + fi
4746 +
4747 + fi
4748 + if test x = x"$MPILIBS"; then
4749 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4750 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4751 + if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4752 +  $as_echo_n "(cached) " >&6
4753 + else
4754 +  ac_check_lib_save_LIBS=$LIBS
4755 + LIBS="-lmpich  $LIBS"
4756 + cat > conftest.$ac_ext <<_ACEOF
4757 +      program main
4758 +      call MPI_Init
4759 +      end
4760 + _ACEOF
4761 + if ac_fn_fc_try_link "$LINENO"; then :
4762 +  ac_cv_lib_mpich_MPI_Init=yes
4763 + else
4764 +  ac_cv_lib_mpich_MPI_Init=no
4765 + fi
4766 + rm -f core conftest.err conftest.$ac_objext \
4767 +    conftest$ac_exeext conftest.$ac_ext
4768 + LIBS=$ac_check_lib_save_LIBS
4769 + fi
4770 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4771 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4772 + if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4773 +  MPILIBS="-lmpich"
4774 + fi
4775 +
4776 + fi
4777 +
4778 + if test x != x"$MPILIBS"; then
4779 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4780 + $as_echo_n "checking for mpif.h... " >&6; }
4781 +        cat > conftest.$ac_ext <<_ACEOF
4782 +      program main
4783 +      include 'mpif.h'
4784 +      end
4785 + _ACEOF
4786 + if ac_fn_fc_try_compile "$LINENO"; then :
4787 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 + $as_echo "yes" >&6; }
4789 + else
4790 +  MPILIBS=""
4791 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 + $as_echo "no" >&6; }
4793 + fi
4794 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 + fi
4796 +
4797 + FC="$ax_mpi_save_FC"
4798 +
4799 +
4800 +
4801 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4802 + if test x = x"$MPILIBS"; then
4803 +        USE_MPI="no"
4804 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4805 + $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4806 +        :
4807 + else
4808 +        USE_MPI="yes"
4809 +        :
4810 + fi
4811 +
4812 +
4813 + fi
4814 + if test $USE_MPI != no; then :
4815 +
4816 +        CXX=$MPICXX
4817 +        CC=$MPICC
4818 +        FC=$MPIFC
4819 +        LIBS="$MPILIBS $LIBS"
4820 +
4821 + else
4822 +
4823 +        CXX=$save_CXX
4824 +        CC=$save_CC
4825 +        FC=$save_FC
4826 +        LIBS=$save_LIBS
4827 +
4828 +
4829 + fi
4830 +
4831 +
4832 + # Checks for programs.
4833 + ac_ext=c
4834 + ac_cpp='$CPP $CPPFLAGS'
4835 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4839 + $as_echo_n "checking how to run the C preprocessor... " >&6; }
4840 + # On Suns, sometimes $CPP names a directory.
4841 + if test -n "$CPP" && test -d "$CPP"; then
4842 +  CPP=
4843 + fi
4844 + if test -z "$CPP"; then
4845 +  if ${ac_cv_prog_CPP+:} false; then :
4846 +  $as_echo_n "(cached) " >&6
4847 + else
4848 +      # Double quotes because CPP needs to be expanded
4849 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4850 +    do
4851 +      ac_preproc_ok=false
4852 + for ac_c_preproc_warn_flag in '' yes
4853 + do
4854 +  # Use a header file that comes with gcc, so configuring glibc
4855 +  # with a fresh cross-compiler works.
4856 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 +  # <limits.h> exists even on freestanding compilers.
4858 +  # On the NeXT, cc -E runs the code through the compiler's parser,
4859 +  # not just through cpp. "Syntax error" is here to catch this case.
4860 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 + /* end confdefs.h.  */
4862 + #ifdef __STDC__
4863 + # include <limits.h>
4864 + #else
4865 + # include <assert.h>
4866 + #endif
4867 +                     Syntax error
4868 + _ACEOF
4869 + if ac_fn_c_try_cpp "$LINENO"; then :
4870 +
4871 + else
4872 +  # Broken: fails on valid input.
4873 + continue
4874 + fi
4875 + rm -f conftest.err conftest.i conftest.$ac_ext
4876 +
4877 +  # OK, works on sane cases.  Now check whether nonexistent headers
4878 +  # can be detected and how.
4879 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 + /* end confdefs.h.  */
4881 + #include <ac_nonexistent.h>
4882 + _ACEOF
4883 + if ac_fn_c_try_cpp "$LINENO"; then :
4884 +  # Broken: success on invalid input.
4885 + continue
4886 + else
4887 +  # Passes both tests.
4888 + ac_preproc_ok=:
4889 + break
4890 + fi
4891 + rm -f conftest.err conftest.i conftest.$ac_ext
4892 +
4893 + done
4894 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4895 + rm -f conftest.i conftest.err conftest.$ac_ext
4896 + if $ac_preproc_ok; then :
4897 +  break
4898 + fi
4899 +
4900 +    done
4901 +    ac_cv_prog_CPP=$CPP
4902 +
4903 + fi
4904 +  CPP=$ac_cv_prog_CPP
4905 + else
4906 +  ac_cv_prog_CPP=$CPP
4907 + fi
4908 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4909 + $as_echo "$CPP" >&6; }
4910 + ac_preproc_ok=false
4911 + for ac_c_preproc_warn_flag in '' yes
4912 + do
4913 +  # Use a header file that comes with gcc, so configuring glibc
4914 +  # with a fresh cross-compiler works.
4915 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4916 +  # <limits.h> exists even on freestanding compilers.
4917 +  # On the NeXT, cc -E runs the code through the compiler's parser,
4918 +  # not just through cpp. "Syntax error" is here to catch this case.
4919 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 + /* end confdefs.h.  */
4921 + #ifdef __STDC__
4922 + # include <limits.h>
4923 + #else
4924 + # include <assert.h>
4925 + #endif
4926 +                     Syntax error
4927 + _ACEOF
4928 + if ac_fn_c_try_cpp "$LINENO"; then :
4929 +
4930 + else
4931 +  # Broken: fails on valid input.
4932 + continue
4933 + fi
4934 + rm -f conftest.err conftest.i conftest.$ac_ext
4935 +
4936 +  # OK, works on sane cases.  Now check whether nonexistent headers
4937 +  # can be detected and how.
4938 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 + /* end confdefs.h.  */
4940 + #include <ac_nonexistent.h>
4941 + _ACEOF
4942 + if ac_fn_c_try_cpp "$LINENO"; then :
4943 +  # Broken: success on invalid input.
4944 + continue
4945 + else
4946 +  # Passes both tests.
4947 + ac_preproc_ok=:
4948 + break
4949 + fi
4950 + rm -f conftest.err conftest.i conftest.$ac_ext
4951 +
4952 + done
4953 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 + rm -f conftest.i conftest.err conftest.$ac_ext
4955 + if $ac_preproc_ok; then :
4956 +
4957 + else
4958 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4959 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4960 + as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4961 + See \`config.log' for more details" "$LINENO" 5; }
4962 + fi
4963 +
4964 + ac_ext=${ac_fc_srcext-f}
4965 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4966 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4967 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4968 +
4969 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970 + $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 + if ${ac_cv_path_GREP+:} false; then :
4972 +  $as_echo_n "(cached) " >&6
4973 + else
4974 +  if test -z "$GREP"; then
4975 +  ac_path_GREP_found=false
4976 +  # Loop through the user's path and test for each of PROGNAME-LIST
4977 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 + do
4980 +  IFS=$as_save_IFS
4981 +  test -z "$as_dir" && as_dir=.
4982 +    for ac_prog in grep ggrep; do
4983 +    for ac_exec_ext in '' $ac_executable_extensions; do
4984 +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985 +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4986 + # Check for GNU ac_path_GREP and select it if it is found.
4987 +  # Check for GNU $ac_path_GREP
4988 + case `"$ac_path_GREP" --version 2>&1` in
4989 + *GNU*)
4990 +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4991 + *)
4992 +  ac_count=0
4993 +  $as_echo_n 0123456789 >"conftest.in"
4994 +  while :
4995 +  do
4996 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 +    mv "conftest.tmp" "conftest.in"
4998 +    cp "conftest.in" "conftest.nl"
4999 +    $as_echo 'GREP' >> "conftest.nl"
5000 +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
5003 +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004 +      # Best one so far, save it but keep looking for a better one
5005 +      ac_cv_path_GREP="$ac_path_GREP"
5006 +      ac_path_GREP_max=$ac_count
5007 +    fi
5008 +    # 10*(2^10) chars as input seems more than enough
5009 +    test $ac_count -gt 10 && break
5010 +  done
5011 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 + esac
5013 +
5014 +      $ac_path_GREP_found && break 3
5015 +    done
5016 +  done
5017 +  done
5018 + IFS=$as_save_IFS
5019 +  if test -z "$ac_cv_path_GREP"; then
5020 +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021 +  fi
5022 + else
5023 +  ac_cv_path_GREP=$GREP
5024 + fi
5025 +
5026 + fi
5027 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5028 + $as_echo "$ac_cv_path_GREP" >&6; }
5029 + GREP="$ac_cv_path_GREP"
5030 +
5031 +
5032 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5033 + $as_echo_n "checking for egrep... " >&6; }
5034 + if ${ac_cv_path_EGREP+:} false; then :
5035 +  $as_echo_n "(cached) " >&6
5036 + else
5037 +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5038 +   then ac_cv_path_EGREP="$GREP -E"
5039 +   else
5040 +     if test -z "$EGREP"; then
5041 +  ac_path_EGREP_found=false
5042 +  # Loop through the user's path and test for each of PROGNAME-LIST
5043 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5045 + do
5046 +  IFS=$as_save_IFS
5047 +  test -z "$as_dir" && as_dir=.
5048 +    for ac_prog in egrep; do
5049 +    for ac_exec_ext in '' $ac_executable_extensions; do
5050 +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5051 +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5052 + # Check for GNU ac_path_EGREP and select it if it is found.
5053 +  # Check for GNU $ac_path_EGREP
5054 + case `"$ac_path_EGREP" --version 2>&1` in
5055 + *GNU*)
5056 +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5057 + *)
5058 +  ac_count=0
5059 +  $as_echo_n 0123456789 >"conftest.in"
5060 +  while :
5061 +  do
5062 +    cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 +    mv "conftest.tmp" "conftest.in"
5064 +    cp "conftest.in" "conftest.nl"
5065 +    $as_echo 'EGREP' >> "conftest.nl"
5066 +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067 +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068 +    as_fn_arith $ac_count + 1 && ac_count=$as_val
5069 +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5070 +      # Best one so far, save it but keep looking for a better one
5071 +      ac_cv_path_EGREP="$ac_path_EGREP"
5072 +      ac_path_EGREP_max=$ac_count
5073 +    fi
5074 +    # 10*(2^10) chars as input seems more than enough
5075 +    test $ac_count -gt 10 && break
5076 +  done
5077 +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078 + esac
5079 +
5080 +      $ac_path_EGREP_found && break 3
5081 +    done
5082 +  done
5083 +  done
5084 + IFS=$as_save_IFS
5085 +  if test -z "$ac_cv_path_EGREP"; then
5086 +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5087 +  fi
5088 + else
5089 +  ac_cv_path_EGREP=$EGREP
5090 + fi
5091 +
5092 +   fi
5093 + fi
5094 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5095 + $as_echo "$ac_cv_path_EGREP" >&6; }
5096 + EGREP="$ac_cv_path_EGREP"
5097 +
5098 +
5099 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5100 + $as_echo_n "checking whether ln -s works... " >&6; }
5101 + LN_S=$as_ln_s
5102 + if test "$LN_S" = "ln -s"; then
5103 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 + $as_echo "yes" >&6; }
5105 + else
5106 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5107 + $as_echo "no, using $LN_S" >&6; }
5108 + fi
5109 +
5110 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5111 + $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5112 + set x ${MAKE-make}
5113 + ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5114 + if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5115 +  $as_echo_n "(cached) " >&6
5116 + else
5117 +  cat >conftest.make <<\_ACEOF
5118 + SHELL = /bin/sh
5119 + all:
5120 +        @echo '@@@%%%=$(MAKE)=@@@%%%'
5121 + _ACEOF
5122 + # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5123 + case `${MAKE-make} -f conftest.make 2>/dev/null` in
5124 +  *@@@%%%=?*=@@@%%%*)
5125 +    eval ac_cv_prog_make_${ac_make}_set=yes;;
5126 +  *)
5127 +    eval ac_cv_prog_make_${ac_make}_set=no;;
5128 + esac
5129 + rm -f conftest.make
5130 + fi
5131 + if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5132 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 + $as_echo "yes" >&6; }
5134 +  SET_MAKE=
5135 + else
5136 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 + $as_echo "no" >&6; }
5138 +  SET_MAKE="MAKE=${MAKE-make}"
5139 + fi
5140 +
5141 + if test -n "$ac_tool_prefix"; then
5142 +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5143 + set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5144 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 + $as_echo_n "checking for $ac_word... " >&6; }
5146 + if ${ac_cv_prog_RANLIB+:} false; then :
5147 +  $as_echo_n "(cached) " >&6
5148 + else
5149 +  if test -n "$RANLIB"; then
5150 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5151 + else
5152 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 + for as_dir in $PATH
5154 + do
5155 +  IFS=$as_save_IFS
5156 +  test -z "$as_dir" && as_dir=.
5157 +    for ac_exec_ext in '' $ac_executable_extensions; do
5158 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5160 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 +    break 2
5162 +  fi
5163 + done
5164 +  done
5165 + IFS=$as_save_IFS
5166 +
5167 + fi
5168 + fi
5169 + RANLIB=$ac_cv_prog_RANLIB
5170 + if test -n "$RANLIB"; then
5171 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5172 + $as_echo "$RANLIB" >&6; }
5173 + else
5174 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 + $as_echo "no" >&6; }
5176 + fi
5177 +
5178 +
5179 + fi
5180 + if test -z "$ac_cv_prog_RANLIB"; then
5181 +  ac_ct_RANLIB=$RANLIB
5182 +  # Extract the first word of "ranlib", so it can be a program name with args.
5183 + set dummy ranlib; ac_word=$2
5184 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 + $as_echo_n "checking for $ac_word... " >&6; }
5186 + if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5187 +  $as_echo_n "(cached) " >&6
5188 + else
5189 +  if test -n "$ac_ct_RANLIB"; then
5190 +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5191 + else
5192 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 + for as_dir in $PATH
5194 + do
5195 +  IFS=$as_save_IFS
5196 +  test -z "$as_dir" && as_dir=.
5197 +    for ac_exec_ext in '' $ac_executable_extensions; do
5198 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 +    ac_cv_prog_ac_ct_RANLIB="ranlib"
5200 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 +    break 2
5202 +  fi
5203 + done
5204 +  done
5205 + IFS=$as_save_IFS
5206 +
5207 + fi
5208 + fi
5209 + ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5210 + if test -n "$ac_ct_RANLIB"; then
5211 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5212 + $as_echo "$ac_ct_RANLIB" >&6; }
5213 + else
5214 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 + $as_echo "no" >&6; }
5216 + fi
5217 +
5218 +  if test "x$ac_ct_RANLIB" = x; then
5219 +    RANLIB=":"
5220 +  else
5221 +    case $cross_compiling:$ac_tool_warned in
5222 + yes:)
5223 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 + $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 + ac_tool_warned=yes ;;
5226 + esac
5227 +    RANLIB=$ac_ct_RANLIB
5228 +  fi
5229 + else
5230 +  RANLIB="$ac_cv_prog_RANLIB"
5231 + fi
5232 +
5233 +
5234 +   # Extract the first word of "perl", so it can be a program name with args.
5235 + set dummy perl; ac_word=$2
5236 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 + $as_echo_n "checking for $ac_word... " >&6; }
5238 + if ${ac_cv_path_PERLINTERP+:} false; then :
5239 +  $as_echo_n "(cached) " >&6
5240 + else
5241 +  case $PERLINTERP in
5242 +  [\\/]* | ?:[\\/]*)
5243 +  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
5244 +  ;;
5245 +  *)
5246 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 + for as_dir in $PATH
5248 + do
5249 +  IFS=$as_save_IFS
5250 +  test -z "$as_dir" && as_dir=.
5251 +    for ac_exec_ext in '' $ac_executable_extensions; do
5252 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 +    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
5254 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 +    break 2
5256 +  fi
5257 + done
5258 +  done
5259 + IFS=$as_save_IFS
5260 +
5261 +  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
5262 +  ;;
5263 + esac
5264 + fi
5265 + PERLINTERP=$ac_cv_path_PERLINTERP
5266 + if test -n "$PERLINTERP"; then
5267 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
5268 + $as_echo "$PERLINTERP" >&6; }
5269 + else
5270 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 + $as_echo "no" >&6; }
5272 + fi
5273 +
5274 +
5275 +   ac_cv_path_perlinterp="$PERLINTERP"
5276 +   _sHpB='#!'
5277 +
5278 +
5279 + # Check whether --with-perl-shebang was given.
5280 + if test "${with_perl_shebang+set}" = set; then :
5281 +  withval=$with_perl_shebang; opt_perl_shebang="$withval"
5282 + else
5283                  opt_perl_shebang="not_set"
5284 < fi;
5285 <   echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
5286 < echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
5287 < if test "${ax_cv_opt_perl_shebang+set}" = set; then
5288 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5284 > fi
5285 >
5286 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
5287 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
5288 > if ${ax_cv_opt_perl_shebang+:} false; then :
5289 >  $as_echo_n "(cached) " >&6
5290   else
5291     case "$opt_perl_shebang" in
5292                        not_set  ) ax_cv_opt_perl_shebang=''
# Line 3449 | Line 5296 | fi
5296                      esac
5297  
5298   fi
5299 < echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
5300 < echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
5299 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
5300 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
5301     if test "A$ax_cv_opt_perl_shebang" != "A"
5302       then
5303         ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
5304         PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
5305 <              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
5306 < echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
5305 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
5306 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
5307  
5308   # Automatic detection of sharpbang formula starts here
5309       else
5310     _somian_shbangperl=`$PERLINTERP -V:startperl`
5311     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
5312 <   echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
5313 < echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
5314 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
5315 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5312 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
5313 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
5314 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
5315 >  $as_echo_n "(cached) " >&6
5316   else
5317    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
5318          if test "x$_somian_kspb_perl" == x
# Line 3481 | Line 5328 | fi
5328          fi
5329  
5330   fi
5331 < echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
5332 < echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
5331 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
5332 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
5333   # The above prints Checking ... result message to user.
5334     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
5335  
5336      if test A${_somian_ksbp_warn_empty+set} == Aset
5337 <      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
5338 < echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
5337 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
5338 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
5339      fi
5340   # Inform user after printing result value
5341      if test A${_somian_ksbp_warn_defau+set} == Aset
5342 <      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
5343 < echo "$as_me: Maybe Not good -" >&6;}
5344 <           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
5345 < echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
5346 <      else { echo "$as_me:$LINENO: OK Good result - " >&5
5347 < echo "$as_me: OK Good result - " >&6;}
5348 <           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
5349 < echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
5342 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
5343 > $as_echo "$as_me: Maybe Not good -" >&6;}
5344 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
5345 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
5346 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
5347 > $as_echo "$as_me: OK Good result - " >&6;}
5348 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
5349 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
5350      fi
5351    fi
5352  
# Line 3516 | Line 5363 | echo "$as_me: In last check we got a proper-looking an
5363   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5364   # OS/2's system install, which has a completely different semantic
5365   # ./install, which can be erroneously created by make from ./install.sh.
5366 < echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5367 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5366 > # Reject install programs that cannot install multiple files.
5367 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5368 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
5369   if test -z "$INSTALL"; then
5370 < if test "${ac_cv_path_install+set}" = set; then
5371 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5370 > if ${ac_cv_path_install+:} false; then :
5371 >  $as_echo_n "(cached) " >&6
5372   else
5373    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374   for as_dir in $PATH
5375   do
5376    IFS=$as_save_IFS
5377    test -z "$as_dir" && as_dir=.
5378 <  # Account for people who put trailing slashes in PATH elements.
5379 < case $as_dir/ in
5380 <  ./ | .// | /cC/* | \
5378 >    # Account for people who put trailing slashes in PATH elements.
5379 > case $as_dir/ in #((
5380 >  ./ | .// | /[cC]/* | \
5381    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5382 <  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5382 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5383    /usr/ucb/* ) ;;
5384    *)
5385      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 3539 | Line 5387 | case $as_dir/ in
5387      # by default.
5388      for ac_prog in ginstall scoinst install; do
5389        for ac_exec_ext in '' $ac_executable_extensions; do
5390 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5390 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5391            if test $ac_prog = install &&
5392              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5393              # AIX install.  It has an incompatible calling convention.
# Line 3549 | Line 5397 | case $as_dir/ in
5397              # program-specific install script used by HP pwplus--don't use.
5398              :
5399            else
5400 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5401 <            break 3
5400 >            rm -rf conftest.one conftest.two conftest.dir
5401 >            echo one > conftest.one
5402 >            echo two > conftest.two
5403 >            mkdir conftest.dir
5404 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5405 >              test -s conftest.one && test -s conftest.two &&
5406 >              test -s conftest.dir/conftest.one &&
5407 >              test -s conftest.dir/conftest.two
5408 >            then
5409 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5410 >              break 3
5411 >            fi
5412            fi
5413          fi
5414        done
5415      done
5416      ;;
5417   esac
3560 done
5418  
5419 +  done
5420 + IFS=$as_save_IFS
5421  
5422 + rm -rf conftest.one conftest.two conftest.dir
5423 +
5424   fi
5425    if test "${ac_cv_path_install+set}" = set; then
5426      INSTALL=$ac_cv_path_install
5427    else
5428 <    # As a last resort, use the slow shell script.  We don't cache a
5429 <    # path for INSTALL within a source directory, because that will
5428 >    # As a last resort, use the slow shell script.  Don't cache a
5429 >    # value for INSTALL within a source directory, because that will
5430      # break other packages using the cache if that directory is
5431 <    # removed, or if the path is relative.
5431 >    # removed, or if the value is a relative name.
5432      INSTALL=$ac_install_sh
5433    fi
5434   fi
5435 < echo "$as_me:$LINENO: result: $INSTALL" >&5
5436 < echo "${ECHO_T}$INSTALL" >&6
5435 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5436 > $as_echo "$INSTALL" >&6; }
5437  
5438   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5439   # It thinks the first close brace ends the variable substitution.
# Line 3586 | Line 5447 | esac
5447     x/*) ;;
5448     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5449   esac
5450 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5450 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5451   # Extract the first word of "ar", so it can be a program name with args.
5452   set dummy ar; ac_word=$2
5453 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5455 < if test "${ac_cv_prog_AR+set}" = set; then
5456 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5453 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 > $as_echo_n "checking for $ac_word... " >&6; }
5455 > if ${ac_cv_prog_AR+:} false; then :
5456 >  $as_echo_n "(cached) " >&6
5457   else
5458    if test -n "$AR"; then
5459    ac_cv_prog_AR="$AR" # Let the user override the test.
# Line 3602 | Line 5463 | do
5463   do
5464    IFS=$as_save_IFS
5465    test -z "$as_dir" && as_dir=.
5466 <  for ac_exec_ext in '' $ac_executable_extensions; do
5467 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 >    for ac_exec_ext in '' $ac_executable_extensions; do
5467 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468      ac_cv_prog_AR="ar"
5469 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470      break 2
5471    fi
5472   done
5473 < done
5473 >  done
5474 > IFS=$as_save_IFS
5475  
5476    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5477   fi
5478   fi
5479   AR=$ac_cv_prog_AR
5480   if test -n "$AR"; then
5481 <  echo "$as_me:$LINENO: result: $AR" >&5
5482 < echo "${ECHO_T}$AR" >&6
5481 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5482 > $as_echo "$AR" >&6; }
5483   else
5484 <  echo "$as_me:$LINENO: result: no" >&5
5485 < echo "${ECHO_T}no" >&6
5484 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 > $as_echo "no" >&6; }
5486   fi
5487  
5488 +
5489   if test "$AR" = "NONE"; then
5490    cat >confcache <<\_ACEOF
5491   # This file is a shell script that caches the results of configure
# Line 3642 | Line 5505 | _ACEOF
5505  
5506   # The following way of writing the cache mishandles newlines in values,
5507   # but we know of no workaround that is simple, portable, and efficient.
5508 < # So, don't put newlines in cache variables' values.
5508 > # So, we kill variables containing newlines.
5509   # Ultrix sh set writes to stderr and can't be redirected directly,
5510   # and sets the high bit in the cache file unless we assign to the vars.
5511 < {
5511 > (
5512 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5513 >    eval ac_val=\$$ac_var
5514 >    case $ac_val in #(
5515 >    *${as_nl}*)
5516 >      case $ac_var in #(
5517 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5518 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5519 >      esac
5520 >      case $ac_var in #(
5521 >      _ | IFS | as_nl) ;; #(
5522 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5523 >      *) { eval $ac_var=; unset $ac_var;} ;;
5524 >      esac ;;
5525 >    esac
5526 >  done
5527 >
5528    (set) 2>&1 |
5529 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5530 <    *ac_space=\ *)
5531 <      # `set' does not quote correctly, so add quotes (double-quote
5532 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
5529 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5530 >    *${as_nl}ac_space=\ *)
5531 >      # `set' does not quote correctly, so add quotes: double-quote
5532 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
5533        sed -n \
5534          "s/'/'\\\\''/g;
5535            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5536 <      ;;
5536 >      ;; #(
5537      *)
5538        # `set' quotes correctly as required by POSIX, so do not add quotes.
5539 <      sed -n \
3661 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5539 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5540        ;;
5541 <    esac;
5542 < } |
5541 >    esac |
5542 >    sort
5543 > ) |
5544    sed '
5545 +     /^ac_cv_env_/b end
5546       t clear
5547 <     : clear
5547 >     :clear
5548       s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5549       t end
5550 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5551 <     : end' >>confcache
5552 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
5553 <  if test -w $cache_file; then
5554 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5555 <    cat confcache >$cache_file
5550 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5551 >     :end' >>confcache
5552 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5553 >  if test -w "$cache_file"; then
5554 >    if test "x$cache_file" != "x/dev/null"; then
5555 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5556 > $as_echo "$as_me: updating cache $cache_file" >&6;}
5557 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
5558 >        cat confcache >"$cache_file"
5559 >      else
5560 >        case $cache_file in #(
5561 >        */* | ?:*)
5562 >          mv -f confcache "$cache_file"$$ &&
5563 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
5564 >        *)
5565 >          mv -f confcache "$cache_file" ;;
5566 >        esac
5567 >      fi
5568 >    fi
5569    else
5570 <    echo "not updating unwritable cache $cache_file"
5570 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5571 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5572    fi
5573   fi
5574   rm -f confcache
# Line 3682 | Line 5576 | set dummy ps; ac_word=$2
5576   fi
5577   # Extract the first word of "ps", so it can be a program name with args.
5578   set dummy ps; ac_word=$2
5579 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 < if test "${ac_cv_path_PS+set}" = set; then
5582 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5579 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 > $as_echo_n "checking for $ac_word... " >&6; }
5581 > if ${ac_cv_path_PS+:} false; then :
5582 >  $as_echo_n "(cached) " >&6
5583   else
5584    case $PS in
5585    [\\/]* | ?:[\\/]*)
# Line 3697 | Line 5591 | do
5591   do
5592    IFS=$as_save_IFS
5593    test -z "$as_dir" && as_dir=.
5594 <  for ac_exec_ext in '' $ac_executable_extensions; do
5595 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 >    for ac_exec_ext in '' $ac_executable_extensions; do
5595 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596      ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5597 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598      break 2
5599    fi
5600   done
5601 < done
5601 >  done
5602 > IFS=$as_save_IFS
5603  
5604    ;;
5605   esac
5606   fi
5607   PS=$ac_cv_path_PS
3713
5608   if test -n "$PS"; then
5609 <  echo "$as_me:$LINENO: result: $PS" >&5
5610 < echo "${ECHO_T}$PS" >&6
5609 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5610 > $as_echo "$PS" >&6; }
5611   else
5612 <  echo "$as_me:$LINENO: result: no" >&5
5613 < echo "${ECHO_T}no" >&6
5612 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 > $as_echo "no" >&6; }
5614   fi
5615  
5616 < echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
5617 < echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
5618 < if test "${ac_cv_prog_ps_syntax+set}" = set; then
5619 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5616 >
5617 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5618 > $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5619 > if ${ac_cv_prog_ps_syntax+:} false; then :
5620 >  $as_echo_n "(cached) " >&6
5621   else
5622  
5623          if $PS ax -o rss > /dev/null 2>&1; then
# Line 3741 | Line 5636 | else
5636                  if test "$ac_cv_prog_ps_ef" = yes; then
5637                          ac_cv_prog_ps_syntax=POSIX
5638                  else
5639 <                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
3745 < echo "$as_me: error: Could not determine ps syntax" >&2;}
3746 <   { (exit 1); exit 1; }; }
5639 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5640                  fi
5641          fi
5642  
5643   fi
5644 < echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
5645 < echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
5644 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
5645 > $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5646  
5647   cat >>confdefs.h <<_ACEOF
5648   #define PSCOMMAND $PS
# Line 3757 | Line 5650 | if test "$ac_cv_prog_ps_syntax" = BSD; then
5650  
5651   if test "$ac_cv_prog_ps_syntax" = BSD; then
5652  
5653 < cat >>confdefs.h <<\_ACEOF
3761 < #define PSTYPE_IS_BSD 1
3762 < _ACEOF
5653 > $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
5654  
5655   else
5656     if test "$ac_cv_prog_ps_syntax" = POSIX; then
5657  
5658 < cat >>confdefs.h <<\_ACEOF
3768 < #define PSTYPE_IS_POSIX 1
3769 < _ACEOF
5658 > $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5659  
5660     else
5661 <       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
3773 < echo "$as_me: error: Unknown ps syntax type!" >&2;}
3774 <   { (exit 1); exit 1; }; }
5661 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5662     fi
5663   fi
5664  
5665 < ac_ext=${FC_SRCEXT-f}
5666 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5667 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5665 > ac_ext=${ac_fc_srcext-f}
5666 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5667 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5668   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5669  
5670 <
5671 < echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5
5672 < echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6
5673 < if test "${ac_cv_fc_srcext_F90+set}" = set; then
5674 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5670 > ac_ext=${ac_fc_srcext-f}
5671 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5672 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5673 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5674 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5675 > $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5676 > if ${ac_cv_fc_srcext_F90+:} false; then :
5677 >  $as_echo_n "(cached) " >&6
5678   else
5679    ac_ext=F90
5680 < ac_fc_srcext_FCFLAGS_SRCEXT_save=$FCFLAGS_SRCEXT
5681 < FCFLAGS_SRCEXT=""
5680 > ac_fcflags_srcext_save=$ac_fcflags_srcext
5681 > ac_fcflags_srcext=
5682   ac_cv_fc_srcext_F90=unknown
5683   for ac_flag in none -qsuffix=f=F90 -Tf; do
5684 <  test "x$ac_flag" != xnone && FCFLAGS_SRCEXT="$ac_flag"
5685 <  cat >conftest.$ac_ext <<_ACEOF
5684 >  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
5685 >  cat > conftest.$ac_ext <<_ACEOF
5686        program main
5687  
5688        end
5689   _ACEOF
5690 < rm -f conftest.$ac_objext
3801 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 <  (eval $ac_compile) 2>conftest.er1
3803 <  ac_status=$?
3804 <  grep -v '^ *+' conftest.er1 >conftest.err
3805 <  rm -f conftest.er1
3806 <  cat conftest.err >&5
3807 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 <  (exit $ac_status); } &&
3809 <         { ac_try='test -z "$ac_fc_werror_flag"
3810 <                         || test ! -s conftest.err'
3811 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 <  (eval $ac_try) 2>&5
3813 <  ac_status=$?
3814 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 <  (exit $ac_status); }; } &&
3816 <         { ac_try='test -s conftest.$ac_objext'
3817 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 <  (eval $ac_try) 2>&5
3819 <  ac_status=$?
3820 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 <  (exit $ac_status); }; }; then
5690 > if ac_fn_fc_try_compile "$LINENO"; then :
5691    ac_cv_fc_srcext_F90=$ac_flag; break
3823 else
3824  echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
5692   fi
5693 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694   done
5695   rm -f conftest.$ac_objext conftest.F90
5696 < FCFLAGS_SRCEXT=$ac_fc_srcext_FCFLAGS_SRCEXT_save
5696 > ac_fcflags_srcext=$ac_fcflags_srcext_save
5697  
5698   fi
5699 < echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5
5700 < echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6
5699 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5700 > $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5701   if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5702 <  { { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5
3838 < echo "$as_me: error: Fortran could not compile .F90 files" >&2;}
3839 <   { (exit 1); exit 1; }; }
5702 >  as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5
5703   else
5704 <  FC_SRCEXT=F90
5704 >  ac_fc_srcext=F90
5705    if test "x$ac_cv_fc_srcext_F90" = xnone; then
5706 <    FCFLAGS_SRCEXT=""
5706 >    ac_fcflags_srcext=""
5707      FCFLAGS_F90=""
5708    else
5709 <    FCFLAGS_SRCEXT=$ac_cv_fc_srcext_F90
5709 >    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
5710      FCFLAGS_F90=$ac_cv_fc_srcext_F90
5711    fi
5712  
5713  
5714   fi
5715 + ac_ext=${ac_fc_srcext-f}
5716 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5717 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5718 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5719  
5720  
5721  
# Line 3874 | Line 5741 | if test "$ac_test_PREPFLAG" != "set"; then
5741    esac
5742  
5743    if test -z "$PREPFLAG"; then
5744 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
5745 < echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5744 >        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
5745 > $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5746          PREPFLAG=""
5747    fi
5748  
5749 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
5750 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
5749 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
5750 > $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
5751  
5752 <
5753 <  ac_ext=${FC_SRCEXT-f}
5754 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3888 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5752 >  ac_ext=${ac_fc_srcext-f}
5753 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5754 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5755   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5756  
5757    ac_save_ext=$ac_ext
5758    ac_ext=F90
5759    ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5760  
5761 <  if test "$PREPFLAG"; then
5761 >  if test "$PREPFLAG"; then :
5762    FCFLAGS_SRCEXT="${PREPFLAG}"
5763   fi
5764 +    cat > conftest.$ac_ext <<_ACEOF
5765  
3899    cat >conftest.$ac_ext <<_ACEOF
5766  
3901
5767   program conftest
5768    integer :: i
5769    i = 1
5770   end program conftest
5771  
5772   _ACEOF
5773 < rm -f conftest.$ac_objext
3909 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 <  (eval $ac_compile) 2>conftest.er1
3911 <  ac_status=$?
3912 <  grep -v '^ *+' conftest.er1 >conftest.err
3913 <  rm -f conftest.er1
3914 <  cat conftest.err >&5
3915 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 <  (exit $ac_status); } &&
3917 <         { ac_try='test -z "$ac_fc_werror_flag"
3918 <                         || test ! -s conftest.err'
3919 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 <  (eval $ac_try) 2>&5
3921 <  ac_status=$?
3922 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 <  (exit $ac_status); }; } &&
3924 <         { ac_try='test -s conftest.$ac_objext'
3925 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 <  (eval $ac_try) 2>&5
3927 <  ac_status=$?
3928 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 <  (exit $ac_status); }; }; then
5773 > if ac_fn_fc_try_compile "$LINENO"; then :
5774    prepflagworks=1
5775   else
5776 <  echo "$as_me: failed program was:" >&5
3933 < sed 's/^/| /' conftest.$ac_ext >&5
3934 <
3935 < prepflagworks=0
5776 >  prepflagworks=0
5777   fi
5778 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5778 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779  
5780    FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5781    ac_ext=$ac_save_ext
5782 <  ac_ext=${FC_SRCEXT-f}
5783 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5784 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5782 >  ac_ext=${ac_fc_srcext-f}
5783 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5784 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5785   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5786  
5787  
5788    if test "$prepflagworks" = 1; then
5789 <    echo "$as_me:$LINENO: result: yes" >&5
5790 < echo "${ECHO_T}yes" >&6
5789 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 > $as_echo "yes" >&6; }
5791      FCFLAGS_SRCEXT="${PREPFLAG}"
5792  
5793    else
5794 <    echo "$as_me:$LINENO: result: no" >&5
5795 < echo "${ECHO_T}no" >&6
5796 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3956 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3957 <   { (exit 1); exit 1; }; }
5794 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 > $as_echo "no" >&6; }
5796 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5797    fi
5798   fi
5799  
# Line 3982 | Line 5821 | if test "$ac_test_PREPDEFFLAG" != "set"; then
5821    esac
5822  
5823    if test -z "$PREPDEFFLAG"; then
5824 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5825 < echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5824 >        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5825 > $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5826          PREPDEFFLAG=" "
5827    fi
5828  
5829 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
5830 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
5829 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
5830 > $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
5831  
5832 <
5833 <  ac_ext=${FC_SRCEXT-f}
5834 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3996 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5832 >  ac_ext=${ac_fc_srcext-f}
5833 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5834 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5835   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5836  
5837    ac_save_ext=$ac_ext
5838    ac_ext=F90
5839    ac_save_FCFLAGS=$FCFLAGS
5840  
5841 <  if test "$PREPDEFFLAG"; then
5841 >  if test "$PREPDEFFLAG"; then :
5842    FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5843   fi
5844 +    cat > conftest.$ac_ext <<_ACEOF
5845  
4007    cat >conftest.$ac_ext <<_ACEOF
5846  
4009
5847   program conftest
5848    integer :: i
5849   #ifdef TEST
# Line 4017 | Line 5854 | _ACEOF
5854   end program conftest
5855  
5856   _ACEOF
5857 < rm -f conftest.$ac_objext
4021 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 <  (eval $ac_compile) 2>conftest.er1
4023 <  ac_status=$?
4024 <  grep -v '^ *+' conftest.er1 >conftest.err
4025 <  rm -f conftest.er1
4026 <  cat conftest.err >&5
4027 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 <  (exit $ac_status); } &&
4029 <         { ac_try='test -z "$ac_fc_werror_flag"
4030 <                         || test ! -s conftest.err'
4031 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 <  (eval $ac_try) 2>&5
4033 <  ac_status=$?
4034 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 <  (exit $ac_status); }; } &&
4036 <         { ac_try='test -s conftest.$ac_objext'
4037 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 <  (eval $ac_try) 2>&5
4039 <  ac_status=$?
4040 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 <  (exit $ac_status); }; }; then
5857 > if ac_fn_fc_try_compile "$LINENO"; then :
5858    prepdefflagworks=1
5859   else
5860 <  echo "$as_me: failed program was:" >&5
4045 < sed 's/^/| /' conftest.$ac_ext >&5
4046 <
4047 < prepdefflagworks=0
5860 >  prepdefflagworks=0
5861   fi
5862 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5862 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863  
5864    FCFLAGS=$ac_save_FCFLAGS
5865    ac_ext=$ac_save_ext
5866 <  ac_ext=${FC_SRCEXT-f}
5867 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5868 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5866 >  ac_ext=${ac_fc_srcext-f}
5867 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5868 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5869   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5870  
5871  
5872    if test "$prepdefflagworks" = 1; then
5873 <    echo "$as_me:$LINENO: result: yes" >&5
5874 < echo "${ECHO_T}yes" >&6
5873 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 > $as_echo "yes" >&6; }
5875  
5876    else
5877 <    echo "$as_me:$LINENO: result: no" >&5
5878 < echo "${ECHO_T}no" >&6
5879 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4067 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4068 <   { (exit 1); exit 1; }; }
5877 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 > $as_echo "no" >&6; }
5879 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5880    fi
5881   fi
5882  
5883 < ac_ext=${FC_SRCEXT-f}
5884 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5885 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5883 > ac_ext=${ac_fc_srcext-f}
5884 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5885 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5886   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5887 < echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
5888 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6
5889 < if test "${ac_cv_prog_fc_v+set}" = set; then
5890 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5887 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5888 > $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5889 > if ${ac_cv_prog_fc_v+:} false; then :
5890 >  $as_echo_n "(cached) " >&6
5891   else
5892 <  cat >conftest.$ac_ext <<_ACEOF
5892 >  cat > conftest.$ac_ext <<_ACEOF
5893        program main
5894  
5895        end
5896   _ACEOF
5897 < rm -f conftest.$ac_objext
4087 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 <  (eval $ac_compile) 2>conftest.er1
4089 <  ac_status=$?
4090 <  grep -v '^ *+' conftest.er1 >conftest.err
4091 <  rm -f conftest.er1
4092 <  cat conftest.err >&5
4093 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 <  (exit $ac_status); } &&
4095 <         { ac_try='test -z "$ac_fc_werror_flag"
4096 <                         || test ! -s conftest.err'
4097 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 <  (eval $ac_try) 2>&5
4099 <  ac_status=$?
4100 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 <  (exit $ac_status); }; } &&
4102 <         { ac_try='test -s conftest.$ac_objext'
4103 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 <  (eval $ac_try) 2>&5
4105 <  ac_status=$?
4106 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 <  (exit $ac_status); }; }; then
5897 > if ac_fn_fc_try_compile "$LINENO"; then :
5898    ac_cv_prog_fc_v=
5899   # Try some options frequently used verbose output
5900   for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5901 <  cat >conftest.$ac_ext <<_ACEOF
5901 >  cat > conftest.$ac_ext <<_ACEOF
5902        program main
5903  
5904        end
# Line 4118 | Line 5908 | _ACEOF
5908   # 1 to this macro) to the Fortran compiler in order to get
5909   # "verbose" output that we can then parse for the Fortran linker
5910   # flags.
5911 < ac_save_FFLAGS=$FCFLAGS
5911 > ac_save_FCFLAGS=$FCFLAGS
5912   FCFLAGS="$FCFLAGS $ac_verb"
5913 < (eval echo $as_me:4123: \"$ac_link\") >&5
5914 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5915 < echo "$ac_fc_v_output" >&5
5916 < FCFLAGS=$ac_save_FFLAGS
5913 > eval "set x $ac_link"
5914 > shift
5915 > $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5916 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5917 > # LIBRARY_PATH; skip all such settings.
5918 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5919 >  sed '/^Driving:/d; /^Configured with:/d;
5920 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5921 > $as_echo "$ac_fc_v_output" >&5
5922 > FCFLAGS=$ac_save_FCFLAGS
5923  
5924 < rm -f conftest*
5924 > rm -rf conftest*
5925  
5926   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5927   # /foo, /bar, and /baz are search directories for the Fortran linker.
5928   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5929   ac_fc_v_output="`echo $ac_fc_v_output |
5930          grep 'LPATH is:' |
5931 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5931 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5932  
5933 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
5934 + #        that detects unbalanced quotes in FLIBS should be implemented
5935 + #        and (ugh) tested at some point.
5936   case $ac_fc_v_output in
5937    # If we are using xlf then replace all the commas with spaces.
5938    *xlfentry*)
# Line 4142 | Line 5941 | case $ac_fc_v_output in
5941    # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5942    # $LIBS confuse us, and the libraries appear later in the output anyway).
5943    *mGLOB_options_string*)
5944 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
5944 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5945  
5946 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5947 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5948 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5949 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
5950 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5951 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5952 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5953 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5954 +
5955    # If we are using Cray Fortran then delete quotes.
4148  # Use "\"" instead of '"' for font-lock-mode.
4149  # FIXME: a more general fix for quoted arguments with spaces?
5956    *cft90*)
5957 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
5957 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5958   esac
5959  
5960  
5961    # look for -l* and *.a constructs in the output
5962    for ac_arg in $ac_fc_v_output; do
5963       case $ac_arg in
5964 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5965 <          ac_cv_prog_fc_v=$ac_verb
5966 <          break 2 ;;
5964 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5965 >          ac_cv_prog_fc_v=$ac_verb
5966 >          break 2 ;;
5967       esac
5968    done
5969   done
5970   if test -z "$ac_cv_prog_fc_v"; then
5971 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
5972 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5971 >   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
5972 > $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5973   fi
5974   else
5975 <  echo "$as_me: failed program was:" >&5
5976 < sed 's/^/| /' conftest.$ac_ext >&5
4171 <
4172 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4173 < echo "$as_me: WARNING: compilation failed" >&2;}
5975 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5976 > $as_echo "$as_me: WARNING: compilation failed" >&2;}
5977   fi
5978 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979  
5980   fi
5981 < echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
5982 < echo "${ECHO_T}$ac_cv_prog_fc_v" >&6
5983 < echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
5984 < echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6
5985 < if test "${ac_cv_fc_libs+set}" = set; then
5986 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5981 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
5982 > $as_echo "$ac_cv_prog_fc_v" >&6; }
5983 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5984 > $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5985 > if ${ac_cv_fc_libs+:} false; then :
5986 >  $as_echo_n "(cached) " >&6
5987   else
5988    if test "x$FCLIBS" != "x"; then
5989    ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5990   else
5991  
5992 < cat >conftest.$ac_ext <<_ACEOF
5992 > cat > conftest.$ac_ext <<_ACEOF
5993        program main
5994  
5995        end
# Line 4196 | Line 5999 | _ACEOF
5999   # 1 to this macro) to the Fortran compiler in order to get
6000   # "verbose" output that we can then parse for the Fortran linker
6001   # flags.
6002 < ac_save_FFLAGS=$FCFLAGS
6002 > ac_save_FCFLAGS=$FCFLAGS
6003   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6004 < (eval echo $as_me:4201: \"$ac_link\") >&5
6005 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
6006 < echo "$ac_fc_v_output" >&5
6007 < FCFLAGS=$ac_save_FFLAGS
6004 > eval "set x $ac_link"
6005 > shift
6006 > $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6007 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6008 > # LIBRARY_PATH; skip all such settings.
6009 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6010 >  sed '/^Driving:/d; /^Configured with:/d;
6011 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6012 > $as_echo "$ac_fc_v_output" >&5
6013 > FCFLAGS=$ac_save_FCFLAGS
6014  
6015 < rm -f conftest*
6015 > rm -rf conftest*
6016  
6017   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6018   # /foo, /bar, and /baz are search directories for the Fortran linker.
6019   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6020   ac_fc_v_output="`echo $ac_fc_v_output |
6021          grep 'LPATH is:' |
6022 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
6022 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6023  
6024 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
6025 + #        that detects unbalanced quotes in FLIBS should be implemented
6026 + #        and (ugh) tested at some point.
6027   case $ac_fc_v_output in
6028    # If we are using xlf then replace all the commas with spaces.
6029    *xlfentry*)
# Line 4220 | Line 6032 | case $ac_fc_v_output in
6032    # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6033    # $LIBS confuse us, and the libraries appear later in the output anyway).
6034    *mGLOB_options_string*)
6035 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
6035 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6036  
6037 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6038 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6039 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6040 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
6041 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6042 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6043 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6044 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6045 +
6046    # If we are using Cray Fortran then delete quotes.
4226  # Use "\"" instead of '"' for font-lock-mode.
4227  # FIXME: a more general fix for quoted arguments with spaces?
6047    *cft90*)
6048 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
6048 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6049   esac
6050  
6051  
# Line 4241 | Line 6060 | while test $# != 1; do
6060    shift
6061    ac_arg=$1
6062    case $ac_arg in
6063 <        [\\/]*.a | ?:[\\/]*.a)
6064 <            ac_exists=false
6063 >        [\\/]*.a | ?:[\\/]*.a)
6064 >            ac_exists=false
6065    for ac_i in $ac_cv_fc_libs; do
6066      if test x"$ac_arg" = x"$ac_i"; then
6067        ac_exists=true
# Line 4250 | Line 6069 | while test $# != 1; do
6069      fi
6070    done
6071  
6072 <  if test x"$ac_exists" = xtrue; then
6073 <  :
6072 >  if test x"$ac_exists" = xtrue; then :
6073 >
6074   else
6075    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6076   fi
6077 <
6078 <          ;;
6079 <        -bI:*)
4261 <            ac_exists=false
6077 >          ;;
6078 >        -bI:*)
6079 >            ac_exists=false
6080    for ac_i in $ac_cv_fc_libs; do
6081      if test x"$ac_arg" = x"$ac_i"; then
6082        ac_exists=true
# Line 4266 | Line 6084 | fi
6084      fi
6085    done
6086  
6087 <  if test x"$ac_exists" = xtrue; then
6088 <  :
6087 >  if test x"$ac_exists" = xtrue; then :
6088 >
6089   else
6090    if test "$ac_compiler_gnu" = yes; then
6091    for ac_link_opt in $ac_arg; do
# Line 4277 | Line 6095 | fi
6095    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6096   fi
6097   fi
6098 <
6099 <          ;;
6100 <          # Ignore these flags.
6101 <        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
6102 <          ;;
6103 <        -lkernel32)
6104 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6105 <          ;;
6106 <        -[LRuY])
6107 <          # These flags, when seen by themselves, take an argument.
6108 <          # We remove the space between option and argument and re-iterate
6109 <          # unless we find an empty arg or a new option (starting with -)
6098 >          ;;
6099 >          # Ignore these flags.
6100 >        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6101 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6102 >          ;;
6103 >        -lkernel32)
6104 >          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6105 >          ;;
6106 >        -[LRuYz])
6107 >          # These flags, when seen by themselves, take an argument.
6108 >          # We remove the space between option and argument and re-iterate
6109 >          # unless we find an empty arg or a new option (starting with -)
6110            case $2 in
6111               "" | -*);;
6112               *)
# Line 4297 | Line 6115 | fi
6115                  set X $ac_arg "$@"
6116                  ;;
6117            esac
6118 <          ;;
6119 <        -YP,*)
6120 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6121 <              ac_exists=false
6118 >          ;;
6119 >        -YP,*)
6120 >          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6121 >              ac_exists=false
6122    for ac_i in $ac_cv_fc_libs; do
6123      if test x"$ac_j" = x"$ac_i"; then
6124        ac_exists=true
# Line 4308 | Line 6126 | fi
6126      fi
6127    done
6128  
6129 <  if test x"$ac_exists" = xtrue; then
6130 <  :
6129 >  if test x"$ac_exists" = xtrue; then :
6130 >
6131   else
6132    ac_arg="$ac_arg $ac_j"
6133 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6133 >                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6134   fi
6135 <
6136 <          done
6137 <          ;;
6138 <        -[lLR]*)
4321 <            ac_exists=false
6135 >          done
6136 >          ;;
6137 >        -[lLR]*)
6138 >            ac_exists=false
6139    for ac_i in $ac_cv_fc_libs; do
6140      if test x"$ac_arg" = x"$ac_i"; then
6141        ac_exists=true
# Line 4326 | Line 6143 | fi
6143      fi
6144    done
6145  
6146 <  if test x"$ac_exists" = xtrue; then
6147 <  :
6146 >  if test x"$ac_exists" = xtrue; then :
6147 >
6148   else
6149    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6150   fi
6151 <
6152 <          ;;
6153 <          # Ignore everything else.
6151 >          ;;
6152 >        -zallextract*| -zdefaultextract)
6153 >          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6154 >          ;;
6155 >          # Ignore everything else.
6156    esac
6157   done
6158   # restore positional arguments
# Line 4344 | Line 6163 | case `(uname -sr) 2>/dev/null` in
6163   # must begin with a "/").
6164   case `(uname -sr) 2>/dev/null` in
6165     "SunOS 5"*)
6166 <      ac_ld_run_path=`echo $ac_fc_v_output |
6167 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6166 >      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6167 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6168        test "x$ac_ld_run_path" != x &&
6169 <        if test "$ac_compiler_gnu" = yes; then
6169 >        if test "$ac_compiler_gnu" = yes; then
6170    for ac_link_opt in $ac_ld_run_path; do
6171      ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6172    done
# Line 4359 | Line 6178 | fi
6178   fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6179  
6180   fi
6181 < echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
6182 < echo "${ECHO_T}$ac_cv_fc_libs" >&6
6181 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6182 > $as_echo "$ac_cv_fc_libs" >&6; }
6183   FCLIBS="$ac_cv_fc_libs"
6184  
6185  
6186 < ac_ext=${FC_SRCEXT-f}
6187 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6188 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6186 > ac_ext=${ac_fc_srcext-f}
6187 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6188 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6189   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6190  
6191 <
6192 < ac_ext=${FC_SRCEXT-f}
6193 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4375 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6191 > ac_ext=${ac_fc_srcext-f}
6192 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6193 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6194   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6195  
6196 < echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
6197 < echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
6198 < if test "${ac_cv_fc_dummy_main+set}" = set; then
6199 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6196 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6197 > $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6198 > if ${ac_cv_fc_dummy_main+:} false; then :
6199 >  $as_echo_n "(cached) " >&6
6200   else
6201    ac_fc_dm_save_LIBS=$LIBS
6202   LIBS="$LIBS $FCLIBS"
# Line 4390 | Line 6208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209  
6210   # First, try linking without a dummy main:
6211 < cat >conftest.$ac_ext <<_ACEOF
4394 < /* confdefs.h.  */
4395 < _ACEOF
4396 < cat confdefs.h >>conftest.$ac_ext
4397 < cat >>conftest.$ac_ext <<_ACEOF
6211 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212   /* end confdefs.h.  */
6213  
6214   #ifdef FC_DUMMY_MAIN
# Line 4413 | Line 6227 | _ACEOF
6227    return 0;
6228   }
6229   _ACEOF
6230 < rm -f conftest.$ac_objext conftest$ac_exeext
4417 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4418 <  (eval $ac_link) 2>conftest.er1
4419 <  ac_status=$?
4420 <  grep -v '^ *+' conftest.er1 >conftest.err
4421 <  rm -f conftest.er1
4422 <  cat conftest.err >&5
4423 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 <  (exit $ac_status); } &&
4425 <         { ac_try='test -z "$ac_c_werror_flag"
4426 <                         || test ! -s conftest.err'
4427 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 <  (eval $ac_try) 2>&5
4429 <  ac_status=$?
4430 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 <  (exit $ac_status); }; } &&
4432 <         { ac_try='test -s conftest$ac_exeext'
4433 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 <  (eval $ac_try) 2>&5
4435 <  ac_status=$?
4436 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 <  (exit $ac_status); }; }; then
6230 > if ac_fn_c_try_link "$LINENO"; then :
6231    ac_cv_fortran_dummy_main=none
6232   else
6233 <  echo "$as_me: failed program was:" >&5
4441 < sed 's/^/| /' conftest.$ac_ext >&5
4442 <
4443 < ac_cv_fortran_dummy_main=unknown
6233 >  ac_cv_fortran_dummy_main=unknown
6234   fi
6235 < rm -f conftest.err conftest.$ac_objext \
6236 <      conftest$ac_exeext conftest.$ac_ext
6235 > rm -f core conftest.err conftest.$ac_objext \
6236 >    conftest$ac_exeext conftest.$ac_ext
6237  
6238   if test $ac_cv_fortran_dummy_main = unknown; then
6239     for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
6240 <     cat >conftest.$ac_ext <<_ACEOF
4451 < /* confdefs.h.  */
4452 < _ACEOF
4453 < cat confdefs.h >>conftest.$ac_ext
4454 < cat >>conftest.$ac_ext <<_ACEOF
6240 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241   /* end confdefs.h.  */
6242   #define $ac_fortran_dm_var $ac_func
6243   #ifdef FC_DUMMY_MAIN
# Line 4470 | Line 6256 | _ACEOF
6256    return 0;
6257   }
6258   _ACEOF
6259 < rm -f conftest.$ac_objext conftest$ac_exeext
4474 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 <  (eval $ac_link) 2>conftest.er1
4476 <  ac_status=$?
4477 <  grep -v '^ *+' conftest.er1 >conftest.err
4478 <  rm -f conftest.er1
4479 <  cat conftest.err >&5
4480 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 <  (exit $ac_status); } &&
4482 <         { ac_try='test -z "$ac_c_werror_flag"
4483 <                         || test ! -s conftest.err'
4484 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 <  (eval $ac_try) 2>&5
4486 <  ac_status=$?
4487 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 <  (exit $ac_status); }; } &&
4489 <         { ac_try='test -s conftest$ac_exeext'
4490 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 <  (eval $ac_try) 2>&5
4492 <  ac_status=$?
4493 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 <  (exit $ac_status); }; }; then
6259 > if ac_fn_c_try_link "$LINENO"; then :
6260    ac_cv_fortran_dummy_main=$ac_func; break
4496 else
4497  echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
6261   fi
6262 < rm -f conftest.err conftest.$ac_objext \
6263 <      conftest$ac_exeext conftest.$ac_ext
6262 > rm -f core conftest.err conftest.$ac_objext \
6263 >    conftest$ac_exeext conftest.$ac_ext
6264     done
6265   fi
6266 < ac_ext=${FC_SRCEXT-f}
6267 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6268 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6266 > ac_ext=${ac_fc_srcext-f}
6267 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6268 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6269   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6270   ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6271 < rm -f conftest*
6271 > rm -rf conftest*
6272   LIBS=$ac_fc_dm_save_LIBS
6273  
6274   fi
6275 < echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5
6276 < echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6
6275 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
6276 > $as_echo "$ac_cv_fc_dummy_main" >&6; }
6277   FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
6278 < if test "$FC_DUMMY_MAIN" != unknown; then
6278 > if test "$FC_DUMMY_MAIN" != unknown; then :
6279    if test $FC_DUMMY_MAIN != none; then
6280  
6281   cat >>confdefs.h <<_ACEOF
# Line 4523 | Line 6284 | _ACEOF
6284  
6285    if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
6286  
6287 < cat >>confdefs.h <<\_ACEOF
4527 < #define FC_DUMMY_MAIN_EQ_F77 1
4528 < _ACEOF
6287 > $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
6288  
6289    fi
6290   fi
6291   else
6292 <  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
6293 < See \`config.log' for more details." >&5
6294 < echo "$as_me: error: linking to Fortran libraries from C fails
6295 < See \`config.log' for more details." >&2;}
4537 <   { (exit 1); exit 1; }; }
6292 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6294 > as_fn_error $? "linking to Fortran libraries from C fails
6295 > See \`config.log' for more details" "$LINENO" 5; }
6296   fi
6297  
6298 <
6299 < ac_ext=${FC_SRCEXT-f}
6300 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4543 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6298 > ac_ext=${ac_fc_srcext-f}
6299 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6300 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6301   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6302  
6303 < ac_ext=${FC_SRCEXT-f}
6304 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6305 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6303 > ac_ext=${ac_fc_srcext-f}
6304 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6305 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6306   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6307 < echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
6308 < echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
6309 < if test "${ac_cv_fc_mangling+set}" = set; then
6310 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6307 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6308 > $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6309 > if ${ac_cv_fc_mangling+:} false; then :
6310 >  $as_echo_n "(cached) " >&6
6311   else
6312 <  cat >conftest.$ac_ext <<_ACEOF
6312 >  cat > conftest.$ac_ext <<_ACEOF
6313        subroutine foobar()
6314        return
6315        end
# Line 4560 | Line 6317 | _ACEOF
6317        return
6318        end
6319   _ACEOF
6320 < rm -f conftest.$ac_objext
4564 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 <  (eval $ac_compile) 2>conftest.er1
4566 <  ac_status=$?
4567 <  grep -v '^ *+' conftest.er1 >conftest.err
4568 <  rm -f conftest.er1
4569 <  cat conftest.err >&5
4570 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 <  (exit $ac_status); } &&
4572 <         { ac_try='test -z "$ac_fc_werror_flag"
4573 <                         || test ! -s conftest.err'
4574 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 <  (eval $ac_try) 2>&5
4576 <  ac_status=$?
4577 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 <  (exit $ac_status); }; } &&
4579 <         { ac_try='test -s conftest.$ac_objext'
4580 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 <  (eval $ac_try) 2>&5
4582 <  ac_status=$?
4583 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 <  (exit $ac_status); }; }; then
6320 > if ac_fn_fc_try_compile "$LINENO"; then :
6321    mv conftest.$ac_objext cfortran_test.$ac_objext
6322  
6323    ac_save_LIBS=$LIBS
# Line 4596 | Line 6332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332    for ac_foobar in foobar FOOBAR; do
6333      for ac_underscore in "" "_"; do
6334        ac_func="$ac_foobar$ac_underscore"
6335 <      cat >conftest.$ac_ext <<_ACEOF
4600 < /* confdefs.h.  */
4601 < _ACEOF
4602 < cat confdefs.h >>conftest.$ac_ext
4603 < cat >>conftest.$ac_ext <<_ACEOF
6335 >      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336   /* end confdefs.h.  */
6337  
6338 < /* Override any gcc2 internal prototype to avoid an error.  */
6338 > /* Override any GCC internal prototype to avoid an error.
6339 >   Use char because int might match the return type of a GCC
6340 >   builtin and then its argument prototype would still apply.  */
6341   #ifdef __cplusplus
6342   extern "C"
6343   #endif
4610 /* We use char because int might match the return type of a gcc2
4611   builtin and then its argument prototype would still apply.  */
6344   char $ac_func ();
6345   #ifdef FC_DUMMY_MAIN
6346   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 4621 | Line 6353 | main ()
6353   int
6354   main ()
6355   {
6356 < $ac_func ();
6356 > return $ac_func ();
6357    ;
6358    return 0;
6359   }
6360   _ACEOF
6361 < rm -f conftest.$ac_objext conftest$ac_exeext
4630 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631 <  (eval $ac_link) 2>conftest.er1
4632 <  ac_status=$?
4633 <  grep -v '^ *+' conftest.er1 >conftest.err
4634 <  rm -f conftest.er1
4635 <  cat conftest.err >&5
4636 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 <  (exit $ac_status); } &&
4638 <         { ac_try='test -z "$ac_c_werror_flag"
4639 <                         || test ! -s conftest.err'
4640 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 <  (eval $ac_try) 2>&5
4642 <  ac_status=$?
4643 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 <  (exit $ac_status); }; } &&
4645 <         { ac_try='test -s conftest$ac_exeext'
4646 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 <  (eval $ac_try) 2>&5
4648 <  ac_status=$?
4649 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 <  (exit $ac_status); }; }; then
6361 > if ac_fn_c_try_link "$LINENO"; then :
6362    ac_success=yes; break 2
4652 else
4653  echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
6363   fi
6364 < rm -f conftest.err conftest.$ac_objext \
6365 <      conftest$ac_exeext conftest.$ac_ext
6364 > rm -f core conftest.err conftest.$ac_objext \
6365 >    conftest$ac_exeext conftest.$ac_ext
6366      done
6367    done
6368 <  ac_ext=${FC_SRCEXT-f}
6369 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6370 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6368 >  ac_ext=${ac_fc_srcext-f}
6369 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6370 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6371   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6372  
6373    if test "$ac_success" = "yes"; then
# Line 4683 | Line 6390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390       ac_success_extra=no
6391       for ac_extra in "" "_"; do
6392          ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6393 <        cat >conftest.$ac_ext <<_ACEOF
4687 < /* confdefs.h.  */
4688 < _ACEOF
4689 < cat confdefs.h >>conftest.$ac_ext
4690 < cat >>conftest.$ac_ext <<_ACEOF
6393 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394   /* end confdefs.h.  */
6395  
6396 < /* Override any gcc2 internal prototype to avoid an error.  */
6396 > /* Override any GCC internal prototype to avoid an error.
6397 >   Use char because int might match the return type of a GCC
6398 >   builtin and then its argument prototype would still apply.  */
6399   #ifdef __cplusplus
6400   extern "C"
6401   #endif
4697 /* We use char because int might match the return type of a gcc2
4698   builtin and then its argument prototype would still apply.  */
6402   char $ac_func ();
6403   #ifdef FC_DUMMY_MAIN
6404   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 4708 | Line 6411 | main ()
6411   int
6412   main ()
6413   {
6414 < $ac_func ();
6414 > return $ac_func ();
6415    ;
6416    return 0;
6417   }
6418   _ACEOF
6419 < rm -f conftest.$ac_objext conftest$ac_exeext
4717 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718 <  (eval $ac_link) 2>conftest.er1
4719 <  ac_status=$?
4720 <  grep -v '^ *+' conftest.er1 >conftest.err
4721 <  rm -f conftest.er1
4722 <  cat conftest.err >&5
4723 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 <  (exit $ac_status); } &&
4725 <         { ac_try='test -z "$ac_c_werror_flag"
4726 <                         || test ! -s conftest.err'
4727 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 <  (eval $ac_try) 2>&5
4729 <  ac_status=$?
4730 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 <  (exit $ac_status); }; } &&
4732 <         { ac_try='test -s conftest$ac_exeext'
4733 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 <  (eval $ac_try) 2>&5
4735 <  ac_status=$?
4736 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 <  (exit $ac_status); }; }; then
6419 > if ac_fn_c_try_link "$LINENO"; then :
6420    ac_success_extra=yes; break
4739 else
4740  echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
6421   fi
6422 < rm -f conftest.err conftest.$ac_objext \
6423 <      conftest$ac_exeext conftest.$ac_ext
6422 > rm -f core conftest.err conftest.$ac_objext \
6423 >    conftest$ac_exeext conftest.$ac_ext
6424       done
6425 <     ac_ext=${FC_SRCEXT-f}
6426 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6427 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6425 >     ac_ext=${ac_fc_srcext-f}
6426 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6427 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6428   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6429  
6430       if test "$ac_success_extra" = "yes"; then
6431          ac_cv_fc_mangling="$ac_case case"
6432 <        if test -z "$ac_underscore"; then
6433 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6432 >        if test -z "$ac_underscore"; then
6433 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6434          else
6435 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6436 <        fi
6437 <        if test -z "$ac_extra"; then
6438 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6435 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6436 >        fi
6437 >        if test -z "$ac_extra"; then
6438 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6439          else
6440 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6441 <        fi
6440 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6441 >        fi
6442        else
6443          ac_cv_fc_mangling="unknown"
6444        fi
# Line 4769 | Line 6447 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6447    fi
6448  
6449    LIBS=$ac_save_LIBS
6450 <  rm -f cfortran_test* conftest*
6450 >  rm -rf conftest*
6451 >  rm -f cfortran_test*
6452   else
6453 <  echo "$as_me: failed program was:" >&5
6454 < sed 's/^/| /' conftest.$ac_ext >&5
6455 <
6456 < { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4778 < See \`config.log' for more details." >&5
4779 < echo "$as_me: error: cannot compile a simple Fortran program
4780 < See \`config.log' for more details." >&2;}
4781 <   { (exit 1); exit 1; }; }
6453 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455 > as_fn_error $? "cannot compile a simple Fortran program
6456 > See \`config.log' for more details" "$LINENO" 5; }
6457   fi
6458 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459  
6460   fi
6461 < echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
6462 < echo "${ECHO_T}$ac_cv_fc_mangling" >&6
6461 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
6462 > $as_echo "$ac_cv_fc_mangling" >&6; }
6463  
6464 < ac_ext=${FC_SRCEXT-f}
6465 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6466 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6464 > ac_ext=${ac_fc_srcext-f}
6465 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6466 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6467   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6468  
6469 < ac_ext=${FC_SRCEXT-f}
6470 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6471 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6469 > ac_ext=${ac_fc_srcext-f}
6470 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6471 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6472   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4798
4799
6473   case $ac_cv_fc_mangling in
6474    "lower case, no underscore, no extra underscore")
6475 <          cat >>confdefs.h <<\_ACEOF
4803 < #define FC_FUNC(name,NAME) name
4804 < _ACEOF
6475 >          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6476  
6477 <          cat >>confdefs.h <<\_ACEOF
4807 < #define FC_FUNC_(name,NAME) name
4808 < _ACEOF
6477 >          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
6478   ;;
6479    "lower case, no underscore, extra underscore")
6480 <          cat >>confdefs.h <<\_ACEOF
4812 < #define FC_FUNC(name,NAME) name
4813 < _ACEOF
6480 >          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6481  
6482 <          cat >>confdefs.h <<\_ACEOF
4816 < #define FC_FUNC_(name,NAME) name ## _
4817 < _ACEOF
6482 >          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6483   ;;
6484    "lower case, underscore, no extra underscore")
6485 <          cat >>confdefs.h <<\_ACEOF
4821 < #define FC_FUNC(name,NAME) name ## _
4822 < _ACEOF
6485 >          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6486  
6487 <          cat >>confdefs.h <<\_ACEOF
4825 < #define FC_FUNC_(name,NAME) name ## _
4826 < _ACEOF
6487 >          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6488   ;;
6489    "lower case, underscore, extra underscore")
6490 <          cat >>confdefs.h <<\_ACEOF
4830 < #define FC_FUNC(name,NAME) name ## _
4831 < _ACEOF
6490 >          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6491  
6492 <          cat >>confdefs.h <<\_ACEOF
4834 < #define FC_FUNC_(name,NAME) name ## __
4835 < _ACEOF
6492 >          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
6493   ;;
6494    "upper case, no underscore, no extra underscore")
6495 <          cat >>confdefs.h <<\_ACEOF
4839 < #define FC_FUNC(name,NAME) NAME
4840 < _ACEOF
6495 >          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6496  
6497 <          cat >>confdefs.h <<\_ACEOF
4843 < #define FC_FUNC_(name,NAME) NAME
4844 < _ACEOF
6497 >          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
6498   ;;
6499    "upper case, no underscore, extra underscore")
6500 <          cat >>confdefs.h <<\_ACEOF
4848 < #define FC_FUNC(name,NAME) NAME
4849 < _ACEOF
6500 >          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6501  
6502 <          cat >>confdefs.h <<\_ACEOF
4852 < #define FC_FUNC_(name,NAME) NAME ## _
4853 < _ACEOF
6502 >          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6503   ;;
6504    "upper case, underscore, no extra underscore")
6505 <          cat >>confdefs.h <<\_ACEOF
4857 < #define FC_FUNC(name,NAME) NAME ## _
4858 < _ACEOF
6505 >          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6506  
6507 <          cat >>confdefs.h <<\_ACEOF
4861 < #define FC_FUNC_(name,NAME) NAME ## _
4862 < _ACEOF
6507 >          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6508   ;;
6509    "upper case, underscore, extra underscore")
6510 <          cat >>confdefs.h <<\_ACEOF
4866 < #define FC_FUNC(name,NAME) NAME ## _
4867 < _ACEOF
6510 >          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6511  
6512 <          cat >>confdefs.h <<\_ACEOF
4870 < #define FC_FUNC_(name,NAME) NAME ## __
4871 < _ACEOF
6512 >          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6513   ;;
6514    *)
6515 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
6516 < echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6517 <          ;;
6515 >          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6516 > $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6517 >          ;;
6518   esac
6519  
6520 < ac_ext=${FC_SRCEXT-f}
6521 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6522 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6520 > ac_ext=${ac_fc_srcext-f}
6521 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6522 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6523   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6524  
6525  
6526  
6527 < ac_ext=${FC_SRCEXT-f}
6528 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6529 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6527 > ac_ext=${ac_fc_srcext-f}
6528 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6529 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6530   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6531 < echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
6532 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6
6533 < if test "${ac_cv_prog_fc_v+set}" = set; then
6534 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6531 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6532 > $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6533 > if ${ac_cv_prog_fc_v+:} false; then :
6534 >  $as_echo_n "(cached) " >&6
6535   else
6536 <  cat >conftest.$ac_ext <<_ACEOF
6536 >  cat > conftest.$ac_ext <<_ACEOF
6537        program main
6538  
6539        end
6540   _ACEOF
6541 < rm -f conftest.$ac_objext
4901 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 <  (eval $ac_compile) 2>conftest.er1
4903 <  ac_status=$?
4904 <  grep -v '^ *+' conftest.er1 >conftest.err
4905 <  rm -f conftest.er1
4906 <  cat conftest.err >&5
4907 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 <  (exit $ac_status); } &&
4909 <         { ac_try='test -z "$ac_fc_werror_flag"
4910 <                         || test ! -s conftest.err'
4911 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 <  (eval $ac_try) 2>&5
4913 <  ac_status=$?
4914 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 <  (exit $ac_status); }; } &&
4916 <         { ac_try='test -s conftest.$ac_objext'
4917 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 <  (eval $ac_try) 2>&5
4919 <  ac_status=$?
4920 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 <  (exit $ac_status); }; }; then
6541 > if ac_fn_fc_try_compile "$LINENO"; then :
6542    ac_cv_prog_fc_v=
6543   # Try some options frequently used verbose output
6544   for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6545 <  cat >conftest.$ac_ext <<_ACEOF
6545 >  cat > conftest.$ac_ext <<_ACEOF
6546        program main
6547  
6548        end
# Line 4932 | Line 6552 | _ACEOF
6552   # 1 to this macro) to the Fortran compiler in order to get
6553   # "verbose" output that we can then parse for the Fortran linker
6554   # flags.
6555 < ac_save_FFLAGS=$FCFLAGS
6555 > ac_save_FCFLAGS=$FCFLAGS
6556   FCFLAGS="$FCFLAGS $ac_verb"
6557 < (eval echo $as_me:4937: \"$ac_link\") >&5
6558 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
6559 < echo "$ac_fc_v_output" >&5
6560 < FCFLAGS=$ac_save_FFLAGS
6557 > eval "set x $ac_link"
6558 > shift
6559 > $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6560 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6561 > # LIBRARY_PATH; skip all such settings.
6562 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6563 >  sed '/^Driving:/d; /^Configured with:/d;
6564 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6565 > $as_echo "$ac_fc_v_output" >&5
6566 > FCFLAGS=$ac_save_FCFLAGS
6567  
6568 < rm -f conftest*
6568 > rm -rf conftest*
6569  
6570   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6571   # /foo, /bar, and /baz are search directories for the Fortran linker.
6572   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6573   ac_fc_v_output="`echo $ac_fc_v_output |
6574          grep 'LPATH is:' |
6575 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
6575 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6576  
6577 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
6578 + #        that detects unbalanced quotes in FLIBS should be implemented
6579 + #        and (ugh) tested at some point.
6580   case $ac_fc_v_output in
6581    # If we are using xlf then replace all the commas with spaces.
6582    *xlfentry*)
# Line 4956 | Line 6585 | case $ac_fc_v_output in
6585    # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6586    # $LIBS confuse us, and the libraries appear later in the output anyway).
6587    *mGLOB_options_string*)
6588 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
6588 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6589  
6590 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6591 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6592 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6593 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
6594 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6595 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6596 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6597 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6598 +
6599    # If we are using Cray Fortran then delete quotes.
4962  # Use "\"" instead of '"' for font-lock-mode.
4963  # FIXME: a more general fix for quoted arguments with spaces?
6600    *cft90*)
6601 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
6601 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6602   esac
6603  
6604  
6605    # look for -l* and *.a constructs in the output
6606    for ac_arg in $ac_fc_v_output; do
6607       case $ac_arg in
6608 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6609 <          ac_cv_prog_fc_v=$ac_verb
6610 <          break 2 ;;
6608 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6609 >          ac_cv_prog_fc_v=$ac_verb
6610 >          break 2 ;;
6611       esac
6612    done
6613   done
6614   if test -z "$ac_cv_prog_fc_v"; then
6615 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
6616 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6615 >   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
6616 > $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6617   fi
6618   else
6619 <  echo "$as_me: failed program was:" >&5
6620 < sed 's/^/| /' conftest.$ac_ext >&5
4985 <
4986 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4987 < echo "$as_me: WARNING: compilation failed" >&2;}
6619 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
6620 > $as_echo "$as_me: WARNING: compilation failed" >&2;}
6621   fi
6622 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623  
6624   fi
6625 < echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
6626 < echo "${ECHO_T}$ac_cv_prog_fc_v" >&6
6627 < echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
6628 < echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6
6629 < if test "${ac_cv_fc_libs+set}" = set; then
6630 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6625 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
6626 > $as_echo "$ac_cv_prog_fc_v" >&6; }
6627 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6628 > $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6629 > if ${ac_cv_fc_libs+:} false; then :
6630 >  $as_echo_n "(cached) " >&6
6631   else
6632    if test "x$FCLIBS" != "x"; then
6633    ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6634   else
6635  
6636 < cat >conftest.$ac_ext <<_ACEOF
6636 > cat > conftest.$ac_ext <<_ACEOF
6637        program main
6638  
6639        end
# Line 5010 | Line 6643 | _ACEOF
6643   # 1 to this macro) to the Fortran compiler in order to get
6644   # "verbose" output that we can then parse for the Fortran linker
6645   # flags.
6646 < ac_save_FFLAGS=$FCFLAGS
6646 > ac_save_FCFLAGS=$FCFLAGS
6647   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6648 < (eval echo $as_me:5015: \"$ac_link\") >&5
6649 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
6650 < echo "$ac_fc_v_output" >&5
6651 < FCFLAGS=$ac_save_FFLAGS
6648 > eval "set x $ac_link"
6649 > shift
6650 > $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6651 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6652 > # LIBRARY_PATH; skip all such settings.
6653 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6654 >  sed '/^Driving:/d; /^Configured with:/d;
6655 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6656 > $as_echo "$ac_fc_v_output" >&5
6657 > FCFLAGS=$ac_save_FCFLAGS
6658  
6659 < rm -f conftest*
6659 > rm -rf conftest*
6660  
6661   # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6662   # /foo, /bar, and /baz are search directories for the Fortran linker.
6663   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6664   ac_fc_v_output="`echo $ac_fc_v_output |
6665          grep 'LPATH is:' |
6666 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
6666 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6667  
6668 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
6669 + #        that detects unbalanced quotes in FLIBS should be implemented
6670 + #        and (ugh) tested at some point.
6671   case $ac_fc_v_output in
6672    # If we are using xlf then replace all the commas with spaces.
6673    *xlfentry*)
# Line 5034 | Line 6676 | case $ac_fc_v_output in
6676    # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6677    # $LIBS confuse us, and the libraries appear later in the output anyway).
6678    *mGLOB_options_string*)
6679 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
6679 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6680  
6681 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6682 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6683 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6684 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
6685 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6686 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6687 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6688 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6689 +
6690    # If we are using Cray Fortran then delete quotes.
5040  # Use "\"" instead of '"' for font-lock-mode.
5041  # FIXME: a more general fix for quoted arguments with spaces?
6691    *cft90*)
6692 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
6692 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6693   esac
6694  
6695  
# Line 5055 | Line 6704 | while test $# != 1; do
6704    shift
6705    ac_arg=$1
6706    case $ac_arg in
6707 <        [\\/]*.a | ?:[\\/]*.a)
6708 <            ac_exists=false
6707 >        [\\/]*.a | ?:[\\/]*.a)
6708 >            ac_exists=false
6709    for ac_i in $ac_cv_fc_libs; do
6710      if test x"$ac_arg" = x"$ac_i"; then
6711        ac_exists=true
# Line 5064 | Line 6713 | while test $# != 1; do
6713      fi
6714    done
6715  
6716 <  if test x"$ac_exists" = xtrue; then
6717 <  :
6716 >  if test x"$ac_exists" = xtrue; then :
6717 >
6718   else
6719    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6720   fi
6721 <
6722 <          ;;
6723 <        -bI:*)
5075 <            ac_exists=false
6721 >          ;;
6722 >        -bI:*)
6723 >            ac_exists=false
6724    for ac_i in $ac_cv_fc_libs; do
6725      if test x"$ac_arg" = x"$ac_i"; then
6726        ac_exists=true
# Line 5080 | Line 6728 | fi
6728      fi
6729    done
6730  
6731 <  if test x"$ac_exists" = xtrue; then
6732 <  :
6731 >  if test x"$ac_exists" = xtrue; then :
6732 >
6733   else
6734    if test "$ac_compiler_gnu" = yes; then
6735    for ac_link_opt in $ac_arg; do
# Line 5091 | Line 6739 | fi
6739    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6740   fi
6741   fi
6742 <
6743 <          ;;
6744 <          # Ignore these flags.
6745 <        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
6746 <          ;;
6747 <        -lkernel32)
6748 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6749 <          ;;
6750 <        -[LRuY])
6751 <          # These flags, when seen by themselves, take an argument.
6752 <          # We remove the space between option and argument and re-iterate
6753 <          # unless we find an empty arg or a new option (starting with -)
6742 >          ;;
6743 >          # Ignore these flags.
6744 >        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6745 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6746 >          ;;
6747 >        -lkernel32)
6748 >          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6749 >          ;;
6750 >        -[LRuYz])
6751 >          # These flags, when seen by themselves, take an argument.
6752 >          # We remove the space between option and argument and re-iterate
6753 >          # unless we find an empty arg or a new option (starting with -)
6754            case $2 in
6755               "" | -*);;
6756               *)
# Line 5111 | Line 6759 | fi
6759                  set X $ac_arg "$@"
6760                  ;;
6761            esac
6762 <          ;;
6763 <        -YP,*)
6764 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6765 <              ac_exists=false
6762 >          ;;
6763 >        -YP,*)
6764 >          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6765 >              ac_exists=false
6766    for ac_i in $ac_cv_fc_libs; do
6767      if test x"$ac_j" = x"$ac_i"; then
6768        ac_exists=true
# Line 5122 | Line 6770 | fi
6770      fi
6771    done
6772  
6773 <  if test x"$ac_exists" = xtrue; then
6774 <  :
6773 >  if test x"$ac_exists" = xtrue; then :
6774 >
6775   else
6776    ac_arg="$ac_arg $ac_j"
6777 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6777 >                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6778   fi
6779 <
6780 <          done
6781 <          ;;
6782 <        -[lLR]*)
5135 <            ac_exists=false
6779 >          done
6780 >          ;;
6781 >        -[lLR]*)
6782 >            ac_exists=false
6783    for ac_i in $ac_cv_fc_libs; do
6784      if test x"$ac_arg" = x"$ac_i"; then
6785        ac_exists=true
# Line 5140 | Line 6787 | fi
6787      fi
6788    done
6789  
6790 <  if test x"$ac_exists" = xtrue; then
6791 <  :
6790 >  if test x"$ac_exists" = xtrue; then :
6791 >
6792   else
6793    ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6794   fi
6795 <
6796 <          ;;
6797 <          # Ignore everything else.
6795 >          ;;
6796 >        -zallextract*| -zdefaultextract)
6797 >          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6798 >          ;;
6799 >          # Ignore everything else.
6800    esac
6801   done
6802   # restore positional arguments
# Line 5158 | Line 6807 | case `(uname -sr) 2>/dev/null` in
6807   # must begin with a "/").
6808   case `(uname -sr) 2>/dev/null` in
6809     "SunOS 5"*)
6810 <      ac_ld_run_path=`echo $ac_fc_v_output |
6811 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6810 >      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6811 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6812        test "x$ac_ld_run_path" != x &&
6813 <        if test "$ac_compiler_gnu" = yes; then
6813 >        if test "$ac_compiler_gnu" = yes; then
6814    for ac_link_opt in $ac_ld_run_path; do
6815      ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6816    done
# Line 5173 | Line 6822 | fi
6822   fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6823  
6824   fi
6825 < echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
6826 < echo "${ECHO_T}$ac_cv_fc_libs" >&6
6825 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6826 > $as_echo "$ac_cv_fc_libs" >&6; }
6827   FCLIBS="$ac_cv_fc_libs"
6828  
6829  
6830 < ac_ext=${FC_SRCEXT-f}
6831 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6832 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6830 > ac_ext=${ac_fc_srcext-f}
6831 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6832 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6833   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6834  
6835  
6836  
6837 < echo "$as_me:$LINENO: checking for module suffix" >&5
6838 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
6837 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
6838 > $as_echo_n "checking for module suffix... " >&6; }
6839   rm -f conftest*
6840   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6841   rm -f work*
# Line 5212 | Line 6861 | if (eval $ac_compile) 2>/dev/null ; then
6861          fi
6862      fi
6863      if test -z "$MOD" ; then
6864 <        echo "$as_me:$LINENO: result: unknown" >&5
6865 < echo "${ECHO_T}unknown" >&6
6864 >        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6865 > $as_echo "unknown" >&6; }
6866          # Use mod if we can't figure it out
6867          MOD="mod"
6868      else
6869 <        echo "$as_me:$LINENO: result: $MOD" >&5
6870 < echo "${ECHO_T}$MOD" >&6
6869 >        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
6870 > $as_echo "$MOD" >&6; }
6871      fi
6872      if test -s work.pcl ; then
6873 <        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
6874 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
6873 >        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
6874 > $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
6875      fi
6876   else
6877 <    echo "$as_me:$LINENO: result: unknown" >&5
6878 < echo "${ECHO_T}unknown" >&6
6877 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6878 > $as_echo "unknown" >&6; }
6879   fi
6880  
6881  
# Line 5239 | Line 6888 | fi
6888   # specified, work.pcl and work.pc are created.  However, if you specify
6889   # a file, it must contain a the name of a file ending in .pc .  Ugh!
6890   # Use the module made above
6891 < echo "$as_me:$LINENO: checking for module directory path flag" >&5
6892 < echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
6891 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
6892 > $as_echo_n "checking for module directory path flag... " >&6; }
6893   rm -f conftest*
6894   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6895   rm -f work*
# Line 5273 | Line 6922 | EOF
6922     if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
6923         MODDIRFLAG="-I"
6924         F90MODINCSPEC="-I<dir>"
6925 <       echo "$as_me:$LINENO: result: -I" >&5
6926 < echo "${ECHO_T}-I" >&6
6925 >       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
6926 > $as_echo "-I" >&6; }
6927     elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6928         MODDIRFLAG="-M"
6929         F90MODINCSPEC="-M<dir>"
6930 <       echo "$as_me:$LINENO: result: -M" >&5
6931 < echo "${ECHO_T}-M" >&6
6930 >       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
6931 > $as_echo "-M" >&6; }
6932     elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6933         MODDIRFLAG="-p"
6934         F90MODINCSPEC="-p<dir>"
6935 <       echo "$as_me:$LINENO: result: -p" >&5
6936 < echo "${ECHO_T}-p" >&6
6935 >       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
6936 > $as_echo "-p" >&6; }
6937     elif test -s work.pc ; then
6938          cp work.pc conf/mpimod.pc
6939          echo "mpimod.pc" > conf/mpimod.pcl
6940          echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
6941          if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
6942              MODDIRFLAG='-cl,mpimod.pcl'
6943 <            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
6944 < echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
6943 >            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
6944 > $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
6945              F90_WORK_FILES_ARG="-cl,mpimod.pcl"
6946              F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
6947  
# Line 5304 | Line 6953 | echo "${ECHO_T}-cl,filename where filename contains a
6953          fi
6954     fi
6955     if test -z "MODDIRFLAG" ; then
6956 <       echo "$as_me:$LINENO: result: unknown" >&5
6957 < echo "${ECHO_T}unknown" >&6
6956 >       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6957 > $as_echo "unknown" >&6; }
6958     fi
6959  
6960  
# Line 5314 | Line 6963 | fi
6963   fi
6964  
6965  
6966 < echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
6967 < echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
6968 < if test "${ac_cv_f90_module_names+set}" = set; then
6969 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6966 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6967 > $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6968 > if ${ac_cv_f90_module_names+:} false; then :
6969 >  $as_echo_n "(cached) " >&6
6970   else
6971 <  ac_ext=${FC_SRCEXT-f}
6972 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
6973 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
6971 >  ac_ext=${ac_fc_srcext-f}
6972 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6973 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6974   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6975  
6976   # carry out the test in a new directory, so that we don't miss anything
6977   mkdir conftest
6978   cd conftest
6979 < cat >conftest.$ac_ext <<_ACEOF
6979 > cat > conftest.$ac_ext <<_ACEOF
6980   MODULE Bar
6981   END MODULE Bar
6982   _ACEOF
6983 < rm -f conftest.$ac_objext
5335 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 <  (eval $ac_compile) 2>conftest.er1
5337 <  ac_status=$?
5338 <  grep -v '^ *+' conftest.er1 >conftest.err
5339 <  rm -f conftest.er1
5340 <  cat conftest.err >&5
5341 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 <  (exit $ac_status); } &&
5343 <         { ac_try='test -z "$ac_fc_werror_flag"
5344 <                         || test ! -s conftest.err'
5345 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 <  (eval $ac_try) 2>&5
5347 <  ac_status=$?
5348 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 <  (exit $ac_status); }; } &&
5350 <         { ac_try='test -s conftest.$ac_objext'
5351 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 <  (eval $ac_try) 2>&5
5353 <  ac_status=$?
5354 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 <  (exit $ac_status); }; }; then
6983 > if ac_fn_fc_try_compile "$LINENO"; then :
6984    ac_cv_f90_module_names=
6985   ac_file_list=*
6986   for ac_file in $ac_file_list; do
# Line 5372 | Line 7000 | for ac_file in $ac_file_list; do
7000      fi
7001    done
7002  
7003 <  if test x"$ac_exists" = xtrue; then
7004 <  :
7003 >  if test x"$ac_exists" = xtrue; then :
7004 >
7005   else
7006    ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7007   fi
5380
7008            ;;
7009        # look for new files derived from the module name,
7010        # with different case translation schemes
# Line 5391 | Line 7018 | fi
7018      fi
7019    done
7020  
7021 <  if test x"$ac_exists" = xtrue; then
7022 <  :
7021 >  if test x"$ac_exists" = xtrue; then :
7022 >
7023   else
7024    ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7025   fi
5399
7026            ;;
7027        *bar*)
7028            ac_pat=`echo $ac_file | sed s/bar/%module%/`
# Line 5408 | Line 7034 | fi
7034      fi
7035    done
7036  
7037 <  if test x"$ac_exists" = xtrue; then
7038 <  :
7037 >  if test x"$ac_exists" = xtrue; then :
7038 >
7039   else
7040    ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7041   fi
5416
7042            ;;
7043        *BAR*)
7044            ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
# Line 5425 | Line 7050 | fi
7050      fi
7051    done
7052  
7053 <  if test x"$ac_exists" = xtrue; then
7054 <  :
7053 >  if test x"$ac_exists" = xtrue; then :
7054 >
7055   else
7056    ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7057   fi
5433
7058            ;;
7059         # Other files - we have no idea how they are generated
7060         *)
7061 <          { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
7062 < echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
7061 >          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
7062 > $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
7063            ;;
7064     esac
7065   done
7066   if test "x$ac_cv_f90_module_names" = "x"; then
7067 <  { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
7068 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7067 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
7068 > $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7069   fi
7070  
7071   else
7072 <  echo "$as_me: failed program was:" >&5
7073 < sed 's/^/| /' conftest.$ac_ext >&5
7074 <
5451 < ac_cv_f90_module_names=
5452 < { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
5453 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7072 >  ac_cv_f90_module_names=
7073 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
7074 > $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7075   fi
7076 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077   cd ..
7078   # cleanup
7079   rm -rf conftest
7080 < ac_ext=${FC_SRCEXT-f}
7081 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
7082 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
7080 > ac_ext=${ac_fc_srcext-f}
7081 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7082 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7083   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7084  
7085   fi
7086 < echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
7087 < echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
7086 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
7087 > $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
7088  
7089   # We now generate a shell script that will help us to figure out the correct
7090   # module file names, using the value of ac_cv_f90_module_names
# Line 5541 | Line 7162 | esac
7162            F90_MODULE_NAMES=unknown ;;
7163   esac
7164  
7165 < ac_ext=c
7166 < ac_cpp='$CPP $CPPFLAGS'
7167 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 > ac_ext=${ac_fc_srcext-f}
7166 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7167 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7168 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7169  
7170  
7171   ac_ext=c
# Line 5555 | Line 7175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175   ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176  
7177  
7178 <
7179 < echo "$as_me:$LINENO: checking for asin in -lm" >&5
7180 < echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
7181 < if test "${ac_cv_lib_m_asin+set}" = set; then
5562 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7178 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7179 > $as_echo_n "checking for asin in -lm... " >&6; }
7180 > if ${ac_cv_lib_m_asin+:} false; then :
7181 >  $as_echo_n "(cached) " >&6
7182   else
7183    ac_check_lib_save_LIBS=$LIBS
7184   LIBS="-lm  $LIBS"
7185 < cat >conftest.$ac_ext <<_ACEOF
5567 < /* confdefs.h.  */
5568 < _ACEOF
5569 < cat confdefs.h >>conftest.$ac_ext
5570 < cat >>conftest.$ac_ext <<_ACEOF
7185 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186   /* end confdefs.h.  */
7187  
7188 < /* Override any gcc2 internal prototype to avoid an error.  */
7188 > /* Override any GCC internal prototype to avoid an error.
7189 >   Use char because int might match the return type of a GCC
7190 >   builtin and then its argument prototype would still apply.  */
7191   #ifdef __cplusplus
7192   extern "C"
7193   #endif
5577 /* We use char because int might match the return type of a gcc2
5578   builtin and then its argument prototype would still apply.  */
7194   char asin ();
7195   #ifdef FC_DUMMY_MAIN
7196   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 5588 | Line 7203 | main ()
7203   int
7204   main ()
7205   {
7206 < asin ();
7206 > return asin ();
7207    ;
7208    return 0;
7209   }
7210   _ACEOF
7211 < rm -f conftest.$ac_objext conftest$ac_exeext
5597 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 <  (eval $ac_link) 2>conftest.er1
5599 <  ac_status=$?
5600 <  grep -v '^ *+' conftest.er1 >conftest.err
5601 <  rm -f conftest.er1
5602 <  cat conftest.err >&5
5603 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 <  (exit $ac_status); } &&
5605 <         { ac_try='test -z "$ac_c_werror_flag"
5606 <                         || test ! -s conftest.err'
5607 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 <  (eval $ac_try) 2>&5
5609 <  ac_status=$?
5610 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 <  (exit $ac_status); }; } &&
5612 <         { ac_try='test -s conftest$ac_exeext'
5613 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 <  (eval $ac_try) 2>&5
5615 <  ac_status=$?
5616 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 <  (exit $ac_status); }; }; then
7211 > if ac_fn_c_try_link "$LINENO"; then :
7212    ac_cv_lib_m_asin=yes
7213   else
7214 <  echo "$as_me: failed program was:" >&5
5621 < sed 's/^/| /' conftest.$ac_ext >&5
5622 <
5623 < ac_cv_lib_m_asin=no
7214 >  ac_cv_lib_m_asin=no
7215   fi
7216 < rm -f conftest.err conftest.$ac_objext \
7217 <      conftest$ac_exeext conftest.$ac_ext
7216 > rm -f core conftest.err conftest.$ac_objext \
7217 >    conftest$ac_exeext conftest.$ac_ext
7218   LIBS=$ac_check_lib_save_LIBS
7219   fi
7220 < echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
7221 < echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
7222 < if test $ac_cv_lib_m_asin = yes; then
7220 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7221 > $as_echo "$ac_cv_lib_m_asin" >&6; }
7222 > if test "x$ac_cv_lib_m_asin" = xyes; then :
7223    cat >>confdefs.h <<_ACEOF
7224   #define HAVE_LIBM 1
7225   _ACEOF
# Line 5640 | Line 7231 | fi
7231   fi
7232  
7233  
7234 < echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7235 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7236 < if test "${ac_cv_header_stdc+set}" = set; then
7237 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7234 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7235 > $as_echo_n "checking for ANSI C header files... " >&6; }
7236 > if ${ac_cv_header_stdc+:} false; then :
7237 >  $as_echo_n "(cached) " >&6
7238   else
7239 <  cat >conftest.$ac_ext <<_ACEOF
5649 < /* confdefs.h.  */
5650 < _ACEOF
5651 < cat confdefs.h >>conftest.$ac_ext
5652 < cat >>conftest.$ac_ext <<_ACEOF
7239 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240   /* end confdefs.h.  */
7241   #include <stdlib.h>
7242   #include <stdarg.h>
# Line 5672 | Line 7259 | _ACEOF
7259    return 0;
7260   }
7261   _ACEOF
7262 < rm -f conftest.$ac_objext
5676 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 <  (eval $ac_compile) 2>conftest.er1
5678 <  ac_status=$?
5679 <  grep -v '^ *+' conftest.er1 >conftest.err
5680 <  rm -f conftest.er1
5681 <  cat conftest.err >&5
5682 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 <  (exit $ac_status); } &&
5684 <         { ac_try='test -z "$ac_c_werror_flag"
5685 <                         || test ! -s conftest.err'
5686 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 <  (eval $ac_try) 2>&5
5688 <  ac_status=$?
5689 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 <  (exit $ac_status); }; } &&
5691 <         { ac_try='test -s conftest.$ac_objext'
5692 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 <  (eval $ac_try) 2>&5
5694 <  ac_status=$?
5695 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 <  (exit $ac_status); }; }; then
7262 > if ac_fn_c_try_compile "$LINENO"; then :
7263    ac_cv_header_stdc=yes
7264   else
7265 <  echo "$as_me: failed program was:" >&5
5700 < sed 's/^/| /' conftest.$ac_ext >&5
5701 <
5702 < ac_cv_header_stdc=no
7265 >  ac_cv_header_stdc=no
7266   fi
7267 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268  
7269   if test $ac_cv_header_stdc = yes; then
7270    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7271 <  cat >conftest.$ac_ext <<_ACEOF
5709 < /* confdefs.h.  */
5710 < _ACEOF
5711 < cat confdefs.h >>conftest.$ac_ext
5712 < cat >>conftest.$ac_ext <<_ACEOF
7271 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272   /* end confdefs.h.  */
7273   #include <string.h>
7274  
7275   _ACEOF
7276   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277 <  $EGREP "memchr" >/dev/null 2>&1; then
7278 <  :
7277 >  $EGREP "memchr" >/dev/null 2>&1; then :
7278 >
7279   else
7280    ac_cv_header_stdc=no
7281   fi
# Line 5726 | Line 7285 | if test $ac_cv_header_stdc = yes; then
7285  
7286   if test $ac_cv_header_stdc = yes; then
7287    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7288 <  cat >conftest.$ac_ext <<_ACEOF
5730 < /* confdefs.h.  */
5731 < _ACEOF
5732 < cat confdefs.h >>conftest.$ac_ext
5733 < cat >>conftest.$ac_ext <<_ACEOF
7288 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289   /* end confdefs.h.  */
7290   #include <stdlib.h>
7291  
7292   _ACEOF
7293   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 <  $EGREP "free" >/dev/null 2>&1; then
7295 <  :
7294 >  $EGREP "free" >/dev/null 2>&1; then :
7295 >
7296   else
7297    ac_cv_header_stdc=no
7298   fi
# Line 5747 | Line 7302 | if test $ac_cv_header_stdc = yes; then
7302  
7303   if test $ac_cv_header_stdc = yes; then
7304    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7305 <  if test "$cross_compiling" = yes; then
7305 >  if test "$cross_compiling" = yes; then :
7306    :
7307   else
7308 <  cat >conftest.$ac_ext <<_ACEOF
5754 < /* confdefs.h.  */
5755 < _ACEOF
5756 < cat confdefs.h >>conftest.$ac_ext
5757 < cat >>conftest.$ac_ext <<_ACEOF
7308 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309   /* end confdefs.h.  */
7310   #include <ctype.h>
7311 + #include <stdlib.h>
7312   #if ((' ' & 0x0FF) == 0x020)
7313   # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7314   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
# Line 5776 | Line 7328 | main ()
7328    for (i = 0; i < 256; i++)
7329      if (XOR (islower (i), ISLOWER (i))
7330          || toupper (i) != TOUPPER (i))
7331 <      exit(2);
7332 <  exit (0);
7331 >      return 2;
7332 >  return 0;
7333   }
7334   _ACEOF
7335 < rm -f conftest$ac_exeext
5784 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 <  (eval $ac_link) 2>&5
5786 <  ac_status=$?
5787 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5789 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 <  (eval $ac_try) 2>&5
5791 <  ac_status=$?
5792 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 <  (exit $ac_status); }; }; then
5794 <  :
5795 < else
5796 <  echo "$as_me: program exited with status $ac_status" >&5
5797 < echo "$as_me: failed program was:" >&5
5798 < sed 's/^/| /' conftest.$ac_ext >&5
7335 > if ac_fn_c_try_run "$LINENO"; then :
7336  
7337 < ( exit $ac_status )
7338 < ac_cv_header_stdc=no
7337 > else
7338 >  ac_cv_header_stdc=no
7339   fi
7340 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7340 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7341 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
7342   fi
7343 +
7344   fi
7345   fi
7346 < echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7347 < echo "${ECHO_T}$ac_cv_header_stdc" >&6
7346 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7347 > $as_echo "$ac_cv_header_stdc" >&6; }
7348   if test $ac_cv_header_stdc = yes; then
7349  
7350 < cat >>confdefs.h <<\_ACEOF
5812 < #define STDC_HEADERS 1
5813 < _ACEOF
7350 > $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7351  
7352   fi
7353  
7354   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5818
5819
5820
5821
5822
5823
5824
5825
5826
7355   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7356                    inttypes.h stdint.h unistd.h
7357 < do
7358 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 < echo "$as_me:$LINENO: checking for $ac_header" >&5
7360 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7361 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5834 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5835 < else
5836 <  cat >conftest.$ac_ext <<_ACEOF
5837 < /* confdefs.h.  */
5838 < _ACEOF
5839 < cat confdefs.h >>conftest.$ac_ext
5840 < cat >>conftest.$ac_ext <<_ACEOF
5841 < /* end confdefs.h.  */
5842 < $ac_includes_default
5843 <
5844 < #include <$ac_header>
5845 < _ACEOF
5846 < rm -f conftest.$ac_objext
5847 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848 <  (eval $ac_compile) 2>conftest.er1
5849 <  ac_status=$?
5850 <  grep -v '^ *+' conftest.er1 >conftest.err
5851 <  rm -f conftest.er1
5852 <  cat conftest.err >&5
5853 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 <  (exit $ac_status); } &&
5855 <         { ac_try='test -z "$ac_c_werror_flag"
5856 <                         || test ! -s conftest.err'
5857 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 <  (eval $ac_try) 2>&5
5859 <  ac_status=$?
5860 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 <  (exit $ac_status); }; } &&
5862 <         { ac_try='test -s conftest.$ac_objext'
5863 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 <  (eval $ac_try) 2>&5
5865 <  ac_status=$?
5866 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 <  (exit $ac_status); }; }; then
5868 <  eval "$as_ac_Header=yes"
5869 < else
5870 <  echo "$as_me: failed program was:" >&5
5871 < sed 's/^/| /' conftest.$ac_ext >&5
5872 <
5873 < eval "$as_ac_Header=no"
5874 < fi
5875 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876 < fi
5877 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5878 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5879 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
7357 > do :
7358 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 > ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7360 > "
7361 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7362    cat >>confdefs.h <<_ACEOF
7363 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7364   _ACEOF
7365  
7366   fi
# Line 5890 | Line 7372 | done
7372   # Handle user hints
7373   #
7374  
7375 < # Check whether --with-zlib or --without-zlib was given.
7376 < if test "${with_zlib+set}" = set; then
7377 <  withval="$with_zlib"
5896 <  zlib_dir="$withval"
7375 > # Check whether --with-zlib was given.
7376 > if test "${with_zlib+set}" = set; then :
7377 >  withval=$with_zlib; zlib_dir="$withval"
7378   else
7379                  zlib_dir="not_set"
7380 < fi;
7380 > fi
7381 >
7382   if test "$zlib_dir" != "no"; then
7383  
7384   if test "$zlib_dir" != "not_set" ; then
# Line 5904 | Line 7386 | if test "$zlib_dir" != "not_set" ; then
7386    then
7387      ZLIB_HOME="$zlib_dir"
7388    else
7389 <    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
7390 < echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
7389 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
7390 > $as_echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
7391          ZLIB_HOME=/usr/local
7392          if test ! -f "${ZLIB_HOME}/include/zlib.h"
7393          then
# Line 5923 | Line 7405 | then
7405          LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
7406          CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
7407  
5926
7408          ac_ext=c
7409   ac_cpp='$CPP $CPPFLAGS'
7410   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412   ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413  
7414 <        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
7415 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
7416 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
7417 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7414 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
7415 > $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7416 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
7417 >  $as_echo_n "(cached) " >&6
7418   else
7419    ac_check_lib_save_LIBS=$LIBS
7420   LIBS="-lz  $LIBS"
7421 < cat >conftest.$ac_ext <<_ACEOF
5941 < /* confdefs.h.  */
5942 < _ACEOF
5943 < cat confdefs.h >>conftest.$ac_ext
5944 < cat >>conftest.$ac_ext <<_ACEOF
7421 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422   /* end confdefs.h.  */
7423  
7424 < /* Override any gcc2 internal prototype to avoid an error.  */
7424 > /* Override any GCC internal prototype to avoid an error.
7425 >   Use char because int might match the return type of a GCC
7426 >   builtin and then its argument prototype would still apply.  */
7427   #ifdef __cplusplus
7428   extern "C"
7429   #endif
5951 /* We use char because int might match the return type of a gcc2
5952   builtin and then its argument prototype would still apply.  */
7430   char inflateEnd ();
7431   #ifdef FC_DUMMY_MAIN
7432   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 5962 | Line 7439 | main ()
7439   int
7440   main ()
7441   {
7442 < inflateEnd ();
7442 > return inflateEnd ();
7443    ;
7444    return 0;
7445   }
7446   _ACEOF
7447 < rm -f conftest.$ac_objext conftest$ac_exeext
5971 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 <  (eval $ac_link) 2>conftest.er1
5973 <  ac_status=$?
5974 <  grep -v '^ *+' conftest.er1 >conftest.err
5975 <  rm -f conftest.er1
5976 <  cat conftest.err >&5
5977 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 <  (exit $ac_status); } &&
5979 <         { ac_try='test -z "$ac_c_werror_flag"
5980 <                         || test ! -s conftest.err'
5981 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 <  (eval $ac_try) 2>&5
5983 <  ac_status=$?
5984 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 <  (exit $ac_status); }; } &&
5986 <         { ac_try='test -s conftest$ac_exeext'
5987 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 <  (eval $ac_try) 2>&5
5989 <  ac_status=$?
5990 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 <  (exit $ac_status); }; }; then
7447 > if ac_fn_c_try_link "$LINENO"; then :
7448    ac_cv_lib_z_inflateEnd=yes
7449   else
7450 <  echo "$as_me: failed program was:" >&5
5995 < sed 's/^/| /' conftest.$ac_ext >&5
5996 <
5997 < ac_cv_lib_z_inflateEnd=no
7450 >  ac_cv_lib_z_inflateEnd=no
7451   fi
7452 < rm -f conftest.err conftest.$ac_objext \
7453 <      conftest$ac_exeext conftest.$ac_ext
7452 > rm -f core conftest.err conftest.$ac_objext \
7453 >    conftest$ac_exeext conftest.$ac_ext
7454   LIBS=$ac_check_lib_save_LIBS
7455   fi
7456 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
7457 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
7458 < if test $ac_cv_lib_z_inflateEnd = yes; then
7456 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
7457 > $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7458 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
7459    zlib_cv_libz=yes
7460   else
7461    zlib_cv_libz=no
7462   fi
7463  
7464 <        if test "${ac_cv_header_zlib_h+set}" = set; then
7465 <  echo "$as_me:$LINENO: checking for zlib.h" >&5
6013 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
6014 < if test "${ac_cv_header_zlib_h+set}" = set; then
6015 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6016 < fi
6017 < echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6018 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
6019 < else
6020 <  # Is the header compilable?
6021 < echo "$as_me:$LINENO: checking zlib.h usability" >&5
6022 < echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
6023 < cat >conftest.$ac_ext <<_ACEOF
6024 < /* confdefs.h.  */
6025 < _ACEOF
6026 < cat confdefs.h >>conftest.$ac_ext
6027 < cat >>conftest.$ac_ext <<_ACEOF
6028 < /* end confdefs.h.  */
6029 < $ac_includes_default
6030 < #include <zlib.h>
6031 < _ACEOF
6032 < rm -f conftest.$ac_objext
6033 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 <  (eval $ac_compile) 2>conftest.er1
6035 <  ac_status=$?
6036 <  grep -v '^ *+' conftest.er1 >conftest.err
6037 <  rm -f conftest.er1
6038 <  cat conftest.err >&5
6039 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 <  (exit $ac_status); } &&
6041 <         { ac_try='test -z "$ac_c_werror_flag"
6042 <                         || test ! -s conftest.err'
6043 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 <  (eval $ac_try) 2>&5
6045 <  ac_status=$?
6046 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 <  (exit $ac_status); }; } &&
6048 <         { ac_try='test -s conftest.$ac_objext'
6049 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 <  (eval $ac_try) 2>&5
6051 <  ac_status=$?
6052 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 <  (exit $ac_status); }; }; then
6054 <  ac_header_compiler=yes
6055 < else
6056 <  echo "$as_me: failed program was:" >&5
6057 < sed 's/^/| /' conftest.$ac_ext >&5
6058 <
6059 < ac_header_compiler=no
6060 < fi
6061 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6062 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6063 < echo "${ECHO_T}$ac_header_compiler" >&6
6064 <
6065 < # Is the header present?
6066 < echo "$as_me:$LINENO: checking zlib.h presence" >&5
6067 < echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
6068 < cat >conftest.$ac_ext <<_ACEOF
6069 < /* confdefs.h.  */
6070 < _ACEOF
6071 < cat confdefs.h >>conftest.$ac_ext
6072 < cat >>conftest.$ac_ext <<_ACEOF
6073 < /* end confdefs.h.  */
6074 < #include <zlib.h>
6075 < _ACEOF
6076 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6078 <  ac_status=$?
6079 <  grep -v '^ *+' conftest.er1 >conftest.err
6080 <  rm -f conftest.er1
6081 <  cat conftest.err >&5
6082 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 <  (exit $ac_status); } >/dev/null; then
6084 <  if test -s conftest.err; then
6085 <    ac_cpp_err=$ac_c_preproc_warn_flag
6086 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6087 <  else
6088 <    ac_cpp_err=
6089 <  fi
6090 < else
6091 <  ac_cpp_err=yes
6092 < fi
6093 < if test -z "$ac_cpp_err"; then
6094 <  ac_header_preproc=yes
6095 < else
6096 <  echo "$as_me: failed program was:" >&5
6097 < sed 's/^/| /' conftest.$ac_ext >&5
6098 <
6099 <  ac_header_preproc=no
6100 < fi
6101 < rm -f conftest.err conftest.$ac_ext
6102 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6103 < echo "${ECHO_T}$ac_header_preproc" >&6
6104 <
6105 < # So?  What about this header?
6106 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6107 <  yes:no: )
6108 <    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6109 < echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6110 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6111 < echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6112 <    ac_header_preproc=yes
6113 <    ;;
6114 <  no:yes:* )
6115 <    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6116 < echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6117 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
6118 < echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
6119 <    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6120 < echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6121 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6122 < echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6123 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6124 < echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6125 <    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6126 < echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6127 <    (
6128 <      cat <<\_ASBOX
6129 < ## ------------------------------ ##
6130 < ## Report this to gezelter@nd.edu ##
6131 < ## ------------------------------ ##
6132 < _ASBOX
6133 <    ) |
6134 <      sed "s/^/$as_me: WARNING:     /" >&2
6135 <    ;;
6136 < esac
6137 < echo "$as_me:$LINENO: checking for zlib.h" >&5
6138 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
6139 < if test "${ac_cv_header_zlib_h+set}" = set; then
6140 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6141 < else
6142 <  ac_cv_header_zlib_h=$ac_header_preproc
6143 < fi
6144 < echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6145 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
6146 <
6147 < fi
6148 < if test $ac_cv_header_zlib_h = yes; then
7464 >        ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7465 > if test "x$ac_cv_header_zlib_h" = xyes; then :
7466    zlib_cv_zlib_h=yes
7467   else
7468    zlib_cv_zlib_h=no
# Line 6161 | Line 7478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478  
7479          if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
7480  
7481 < cat >>confdefs.h <<\_ACEOF
6165 < #define HAVE_ZLIB_H 1
6166 < _ACEOF
7481 > $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
7482  
7483  
7484 < cat >>confdefs.h <<\_ACEOF
6170 < #define HAVE_LIBZ 1
6171 < _ACEOF
7484 > $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7485  
7486                  ZLIB_INC_DIR="${ZLIB_HOME}/include"
7487                  ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
7488                  ZLIB="-lz"
7489          else
7490 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
7491 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
7490 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib in ${ZLIB_HOME}" >&5
7491 > $as_echo_n "checking zlib in ${ZLIB_HOME}... " >&6; }
7492                  ZLIB_INC_DIR=
7493                  ZLIB_LIB_DIR=
7494                  ZLIB=
7495                  LDFLAGS="$ZLIB_OLD_LDFLAGS"
7496                  CFLAGS="$ZLIB_OLD_CFLAGS"
7497 <                echo "$as_me:$LINENO: result: failed" >&5
7498 < echo "${ECHO_T}failed" >&6
7497 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7498 > $as_echo "failed" >&6; }
7499                  echo ""
7500                  echo "*********************************************************"
7501                  echo "* WARNING: Could not find a working zlib installation   *"
7502 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7502 >                echo "* If you need OpenMD to be able to deal with compressed *"
7503                  echo "* trajectory dump files be sure to specify a valid zlib *"
7504                  echo "* installation with --with-zlib=DIR                     *"
7505                  echo "*                                                       *"
7506 <                echo "* OOPSE will still work without zlib installed.         *"
7506 >                echo "* OpenMD will still work without zlib installed.        *"
7507                  echo "*********************************************************"
7508                  echo ""
7509          fi
# Line 6204 | Line 7517 | fi
7517   # Handle user hints
7518   #
7519  
7520 < # Check whether --with-fftw or --without-fftw was given.
7521 < if test "${with_fftw+set}" = set; then
7522 <  withval="$with_fftw"
6210 <  fftw_dir="$withval"
7520 > # Check whether --with-fftw was given.
7521 > if test "${with_fftw+set}" = set; then :
7522 >  withval=$with_fftw; fftw_dir="$withval"
7523   else
7524               fftw_dir="not_set"
7525 < fi;
7525 > fi
7526 >
7527   if test "$fftw_dir" != "no"; then
7528    if test "$fftw_dir" != "not_set" ; then
7529      if test -d "$fftw_dir"; then
7530        FFTW_HOME="$fftw_dir"
7531      else
7532 <      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
7533 < echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
7532 >      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
7533 > $as_echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
7534        FFTW_HOME=/usr/local
7535        if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
7536          FFTW_HOME=/usr
# Line 6232 | Line 7545 | echo "$as_me: WARNING: Sorry, $fftw_dir does not exist
7545        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
7546        CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
7547  
6235
7548        ac_ext=c
7549   ac_cpp='$CPP $CPPFLAGS'
7550   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552   ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553  
7554 <      echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
7555 < echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
7556 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
7557 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7554 >      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
7555 > $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
7556 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
7557 >  $as_echo_n "(cached) " >&6
7558   else
7559    ac_check_lib_save_LIBS=$LIBS
7560   LIBS="-lfftw3  $LIBS"
7561 < cat >conftest.$ac_ext <<_ACEOF
6250 < /* confdefs.h.  */
6251 < _ACEOF
6252 < cat confdefs.h >>conftest.$ac_ext
6253 < cat >>conftest.$ac_ext <<_ACEOF
7561 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562   /* end confdefs.h.  */
7563  
7564 < /* Override any gcc2 internal prototype to avoid an error.  */
7564 > /* Override any GCC internal prototype to avoid an error.
7565 >   Use char because int might match the return type of a GCC
7566 >   builtin and then its argument prototype would still apply.  */
7567   #ifdef __cplusplus
7568   extern "C"
7569   #endif
6260 /* We use char because int might match the return type of a gcc2
6261   builtin and then its argument prototype would still apply.  */
7570   char fftw_execute ();
7571   #ifdef FC_DUMMY_MAIN
7572   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 6271 | Line 7579 | main ()
7579   int
7580   main ()
7581   {
7582 < fftw_execute ();
7582 > return fftw_execute ();
7583    ;
7584    return 0;
7585   }
7586   _ACEOF
7587 < rm -f conftest.$ac_objext conftest$ac_exeext
6280 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 <  (eval $ac_link) 2>conftest.er1
6282 <  ac_status=$?
6283 <  grep -v '^ *+' conftest.er1 >conftest.err
6284 <  rm -f conftest.er1
6285 <  cat conftest.err >&5
6286 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 <  (exit $ac_status); } &&
6288 <         { ac_try='test -z "$ac_c_werror_flag"
6289 <                         || test ! -s conftest.err'
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); }; } &&
6295 <         { ac_try='test -s conftest$ac_exeext'
6296 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 <  (eval $ac_try) 2>&5
6298 <  ac_status=$?
6299 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 <  (exit $ac_status); }; }; then
7587 > if ac_fn_c_try_link "$LINENO"; then :
7588    ac_cv_lib_fftw3_fftw_execute=yes
7589   else
7590 <  echo "$as_me: failed program was:" >&5
6304 < sed 's/^/| /' conftest.$ac_ext >&5
6305 <
6306 < ac_cv_lib_fftw3_fftw_execute=no
7590 >  ac_cv_lib_fftw3_fftw_execute=no
7591   fi
7592 < rm -f conftest.err conftest.$ac_objext \
7593 <      conftest$ac_exeext conftest.$ac_ext
7592 > rm -f core conftest.err conftest.$ac_objext \
7593 >    conftest$ac_exeext conftest.$ac_ext
7594   LIBS=$ac_check_lib_save_LIBS
7595   fi
7596 < echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
7597 < echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6
7598 < if test $ac_cv_lib_fftw3_fftw_execute = yes; then
7596 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
7597 > $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7598 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
7599    fftw_cv_libfftw3=yes
7600   else
7601    fftw_cv_libfftw3=no
7602   fi
7603  
7604 <      if test "${ac_cv_header_fftw3_h+set}" = set; then
7605 <  echo "$as_me:$LINENO: checking for fftw3.h" >&5
6322 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6323 < if test "${ac_cv_header_fftw3_h+set}" = set; then
6324 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6325 < fi
6326 < echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6327 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6328 < else
6329 <  # Is the header compilable?
6330 < echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6331 < echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
6332 < cat >conftest.$ac_ext <<_ACEOF
6333 < /* confdefs.h.  */
6334 < _ACEOF
6335 < cat confdefs.h >>conftest.$ac_ext
6336 < cat >>conftest.$ac_ext <<_ACEOF
6337 < /* end confdefs.h.  */
6338 < $ac_includes_default
6339 < #include <fftw3.h>
6340 < _ACEOF
6341 < rm -f conftest.$ac_objext
6342 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 <  (eval $ac_compile) 2>conftest.er1
6344 <  ac_status=$?
6345 <  grep -v '^ *+' conftest.er1 >conftest.err
6346 <  rm -f conftest.er1
6347 <  cat conftest.err >&5
6348 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 <  (exit $ac_status); } &&
6350 <         { ac_try='test -z "$ac_c_werror_flag"
6351 <                         || test ! -s conftest.err'
6352 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 <  (eval $ac_try) 2>&5
6354 <  ac_status=$?
6355 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 <  (exit $ac_status); }; } &&
6357 <         { ac_try='test -s conftest.$ac_objext'
6358 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 <  (eval $ac_try) 2>&5
6360 <  ac_status=$?
6361 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 <  (exit $ac_status); }; }; then
6363 <  ac_header_compiler=yes
6364 < else
6365 <  echo "$as_me: failed program was:" >&5
6366 < sed 's/^/| /' conftest.$ac_ext >&5
6367 <
6368 < ac_header_compiler=no
6369 < fi
6370 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6372 < echo "${ECHO_T}$ac_header_compiler" >&6
6373 <
6374 < # Is the header present?
6375 < echo "$as_me:$LINENO: checking fftw3.h presence" >&5
6376 < echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
6377 < cat >conftest.$ac_ext <<_ACEOF
6378 < /* confdefs.h.  */
6379 < _ACEOF
6380 < cat confdefs.h >>conftest.$ac_ext
6381 < cat >>conftest.$ac_ext <<_ACEOF
6382 < /* end confdefs.h.  */
6383 < #include <fftw3.h>
6384 < _ACEOF
6385 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6386 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6387 <  ac_status=$?
6388 <  grep -v '^ *+' conftest.er1 >conftest.err
6389 <  rm -f conftest.er1
6390 <  cat conftest.err >&5
6391 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 <  (exit $ac_status); } >/dev/null; then
6393 <  if test -s conftest.err; then
6394 <    ac_cpp_err=$ac_c_preproc_warn_flag
6395 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6396 <  else
6397 <    ac_cpp_err=
6398 <  fi
6399 < else
6400 <  ac_cpp_err=yes
6401 < fi
6402 < if test -z "$ac_cpp_err"; then
6403 <  ac_header_preproc=yes
6404 < else
6405 <  echo "$as_me: failed program was:" >&5
6406 < sed 's/^/| /' conftest.$ac_ext >&5
6407 <
6408 <  ac_header_preproc=no
6409 < fi
6410 < rm -f conftest.err conftest.$ac_ext
6411 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6412 < echo "${ECHO_T}$ac_header_preproc" >&6
6413 <
6414 < # So?  What about this header?
6415 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6416 <  yes:no: )
6417 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
6418 < echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6419 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
6420 < echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
6421 <    ac_header_preproc=yes
6422 <    ;;
6423 <  no:yes:* )
6424 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
6425 < echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
6426 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
6427 < echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
6428 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
6429 < echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
6430 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
6431 < echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6432 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
6433 < echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
6434 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
6435 < echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
6436 <    (
6437 <      cat <<\_ASBOX
6438 < ## ------------------------------ ##
6439 < ## Report this to gezelter@nd.edu ##
6440 < ## ------------------------------ ##
6441 < _ASBOX
6442 <    ) |
6443 <      sed "s/^/$as_me: WARNING:     /" >&2
6444 <    ;;
6445 < esac
6446 < echo "$as_me:$LINENO: checking for fftw3.h" >&5
6447 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6448 < if test "${ac_cv_header_fftw3_h+set}" = set; then
6449 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6450 < else
6451 <  ac_cv_header_fftw3_h=$ac_header_preproc
6452 < fi
6453 < echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6454 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6455 <
6456 < fi
6457 < if test $ac_cv_header_fftw3_h = yes; then
7604 >      ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
7605 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
7606    fftw_cv_fftw3_h=yes
7607   else
7608    fftw_cv_fftw3_h=no
# Line 6462 | Line 7610 | fi
7610  
7611  
7612        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7613 <        echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
7614 < echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
7615 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
7616 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7613 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
7614 > $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
7615 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
7616 >  $as_echo_n "(cached) " >&6
7617   else
7618    ac_check_lib_save_LIBS=$LIBS
7619   LIBS="-lfftw  $LIBS"
7620 < cat >conftest.$ac_ext <<_ACEOF
6473 < /* confdefs.h.  */
6474 < _ACEOF
6475 < cat confdefs.h >>conftest.$ac_ext
6476 < cat >>conftest.$ac_ext <<_ACEOF
7620 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621   /* end confdefs.h.  */
7622  
7623 < /* Override any gcc2 internal prototype to avoid an error.  */
7623 > /* Override any GCC internal prototype to avoid an error.
7624 >   Use char because int might match the return type of a GCC
7625 >   builtin and then its argument prototype would still apply.  */
7626   #ifdef __cplusplus
7627   extern "C"
7628   #endif
6483 /* We use char because int might match the return type of a gcc2
6484   builtin and then its argument prototype would still apply.  */
7629   char fftwnd_one ();
7630   #ifdef FC_DUMMY_MAIN
7631   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 6494 | Line 7638 | main ()
7638   int
7639   main ()
7640   {
7641 < fftwnd_one ();
7641 > return fftwnd_one ();
7642    ;
7643    return 0;
7644   }
7645   _ACEOF
7646 < rm -f conftest.$ac_objext conftest$ac_exeext
6503 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6504 <  (eval $ac_link) 2>conftest.er1
6505 <  ac_status=$?
6506 <  grep -v '^ *+' conftest.er1 >conftest.err
6507 <  rm -f conftest.er1
6508 <  cat conftest.err >&5
6509 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 <  (exit $ac_status); } &&
6511 <         { ac_try='test -z "$ac_c_werror_flag"
6512 <                         || test ! -s conftest.err'
6513 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 <  (eval $ac_try) 2>&5
6515 <  ac_status=$?
6516 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 <  (exit $ac_status); }; } &&
6518 <         { ac_try='test -s conftest$ac_exeext'
6519 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 <  (eval $ac_try) 2>&5
6521 <  ac_status=$?
6522 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 <  (exit $ac_status); }; }; then
7646 > if ac_fn_c_try_link "$LINENO"; then :
7647    ac_cv_lib_fftw_fftwnd_one=yes
7648   else
7649 <  echo "$as_me: failed program was:" >&5
6527 < sed 's/^/| /' conftest.$ac_ext >&5
6528 <
6529 < ac_cv_lib_fftw_fftwnd_one=no
7649 >  ac_cv_lib_fftw_fftwnd_one=no
7650   fi
7651 < rm -f conftest.err conftest.$ac_objext \
7652 <      conftest$ac_exeext conftest.$ac_ext
7651 > rm -f core conftest.err conftest.$ac_objext \
7652 >    conftest$ac_exeext conftest.$ac_ext
7653   LIBS=$ac_check_lib_save_LIBS
7654   fi
7655 < echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7656 < echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6
7657 < if test $ac_cv_lib_fftw_fftwnd_one = yes; then
7655 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7656 > $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7657 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
7658    fftw_cv_libfftw=yes
7659   else
7660    fftw_cv_libfftw=no
7661   fi
7662  
7663 <        if test "${ac_cv_header_fftw_h+set}" = set; then
7664 <  echo "$as_me:$LINENO: checking for fftw.h" >&5
7665 < echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
7666 < if test "${ac_cv_header_fftw_h+set}" = set; then
7667 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7663 >        ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
7664 > if test "x$ac_cv_header_fftw_h" = xyes; then :
7665 >  fftw_cv_fftw_h=yes
7666 > else
7667 >  fftw_cv_fftw_h=no
7668   fi
7669 < echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
7670 < echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
7669 >
7670 >
7671 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7672 >          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
7673 > $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
7674 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
7675 >  $as_echo_n "(cached) " >&6
7676   else
7677 <  # Is the header compilable?
7678 < echo "$as_me:$LINENO: checking fftw.h usability" >&5
7679 < echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
6555 < cat >conftest.$ac_ext <<_ACEOF
6556 < /* confdefs.h.  */
6557 < _ACEOF
6558 < cat confdefs.h >>conftest.$ac_ext
6559 < cat >>conftest.$ac_ext <<_ACEOF
7677 >  ac_check_lib_save_LIBS=$LIBS
7678 > LIBS="-ldfftw  $LIBS"
7679 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680   /* end confdefs.h.  */
6561 $ac_includes_default
6562 #include <fftw.h>
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566  (eval $ac_compile) 2>conftest.er1
6567  ac_status=$?
6568  grep -v '^ *+' conftest.er1 >conftest.err
6569  rm -f conftest.er1
6570  cat conftest.err >&5
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); } &&
6573         { ac_try='test -z "$ac_c_werror_flag"
6574                         || test ! -s conftest.err'
6575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576  (eval $ac_try) 2>&5
6577  ac_status=$?
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); }; } &&
6580         { ac_try='test -s conftest.$ac_objext'
6581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582  (eval $ac_try) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; }; then
6586  ac_header_compiler=yes
6587 else
6588  echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
7681  
7682 < ac_header_compiler=no
7683 < fi
7684 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7686 < echo "${ECHO_T}$ac_header_compiler" >&6
7687 <
7688 < # Is the header present?
7689 < echo "$as_me:$LINENO: checking fftw.h presence" >&5
7690 < echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
7691 < cat >conftest.$ac_ext <<_ACEOF
7692 < /* confdefs.h.  */
7682 > /* Override any GCC internal prototype to avoid an error.
7683 >   Use char because int might match the return type of a GCC
7684 >   builtin and then its argument prototype would still apply.  */
7685 > #ifdef __cplusplus
7686 > extern "C"
7687 > #endif
7688 > char fftwnd_one ();
7689 > #ifdef FC_DUMMY_MAIN
7690 > #ifndef FC_DUMMY_MAIN_EQ_F77
7691 > #  ifdef __cplusplus
7692 >     extern "C"
7693 > #  endif
7694 >   int FC_DUMMY_MAIN() { return 1; }
7695 > #endif
7696 > #endif
7697 > int
7698 > main ()
7699 > {
7700 > return fftwnd_one ();
7701 >  ;
7702 >  return 0;
7703 > }
7704   _ACEOF
7705 < cat confdefs.h >>conftest.$ac_ext
7706 < cat >>conftest.$ac_ext <<_ACEOF
6605 < /* end confdefs.h.  */
6606 < #include <fftw.h>
6607 < _ACEOF
6608 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6609 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6610 <  ac_status=$?
6611 <  grep -v '^ *+' conftest.er1 >conftest.err
6612 <  rm -f conftest.er1
6613 <  cat conftest.err >&5
6614 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 <  (exit $ac_status); } >/dev/null; then
6616 <  if test -s conftest.err; then
6617 <    ac_cpp_err=$ac_c_preproc_warn_flag
6618 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6619 <  else
6620 <    ac_cpp_err=
6621 <  fi
7705 > if ac_fn_c_try_link "$LINENO"; then :
7706 >  ac_cv_lib_dfftw_fftwnd_one=yes
7707   else
7708 <  ac_cpp_err=yes
7708 >  ac_cv_lib_dfftw_fftwnd_one=no
7709   fi
7710 < if test -z "$ac_cpp_err"; then
7711 <  ac_header_preproc=yes
7712 < else
6628 <  echo "$as_me: failed program was:" >&5
6629 < sed 's/^/| /' conftest.$ac_ext >&5
6630 <
6631 <  ac_header_preproc=no
7710 > rm -f core conftest.err conftest.$ac_objext \
7711 >    conftest$ac_exeext conftest.$ac_ext
7712 > LIBS=$ac_check_lib_save_LIBS
7713   fi
7714 < rm -f conftest.err conftest.$ac_ext
7715 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7716 < echo "${ECHO_T}$ac_header_preproc" >&6
6636 <
6637 < # So?  What about this header?
6638 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6639 <  yes:no: )
6640 <    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6641 < echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6642 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
6643 < echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
6644 <    ac_header_preproc=yes
6645 <    ;;
6646 <  no:yes:* )
6647 <    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
6648 < echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
6649 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
6650 < echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
6651 <    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
6652 < echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
6653 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6654 < echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6655 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
6656 < echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
6657 <    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
6658 < echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
6659 <    (
6660 <      cat <<\_ASBOX
6661 < ## ------------------------------ ##
6662 < ## Report this to gezelter@nd.edu ##
6663 < ## ------------------------------ ##
6664 < _ASBOX
6665 <    ) |
6666 <      sed "s/^/$as_me: WARNING:     /" >&2
6667 <    ;;
6668 < esac
6669 < echo "$as_me:$LINENO: checking for fftw.h" >&5
6670 < echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6671 < if test "${ac_cv_header_fftw_h+set}" = set; then
6672 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6673 < else
6674 <  ac_cv_header_fftw_h=$ac_header_preproc
6675 < fi
6676 < echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6677 < echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6678 <
6679 < fi
6680 < if test $ac_cv_header_fftw_h = yes; then
6681 <  fftw_cv_fftw_h=yes
6682 < else
6683 <  fftw_cv_fftw_h=no
6684 < fi
6685 <
6686 <
6687 <        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
6688 <          echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6689 < echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6690 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6691 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6692 < else
6693 <  ac_check_lib_save_LIBS=$LIBS
6694 < LIBS="-ldfftw  $LIBS"
6695 < cat >conftest.$ac_ext <<_ACEOF
6696 < /* confdefs.h.  */
6697 < _ACEOF
6698 < cat confdefs.h >>conftest.$ac_ext
6699 < cat >>conftest.$ac_ext <<_ACEOF
6700 < /* end confdefs.h.  */
6701 <
6702 < /* Override any gcc2 internal prototype to avoid an error.  */
6703 < #ifdef __cplusplus
6704 < extern "C"
6705 < #endif
6706 < /* We use char because int might match the return type of a gcc2
6707 <   builtin and then its argument prototype would still apply.  */
6708 < char fftwnd_one ();
6709 < #ifdef FC_DUMMY_MAIN
6710 < #ifndef FC_DUMMY_MAIN_EQ_F77
6711 < #  ifdef __cplusplus
6712 <     extern "C"
6713 < #  endif
6714 <   int FC_DUMMY_MAIN() { return 1; }
6715 < #endif
6716 < #endif
6717 < int
6718 < main ()
6719 < {
6720 < fftwnd_one ();
6721 <  ;
6722 <  return 0;
6723 < }
6724 < _ACEOF
6725 < rm -f conftest.$ac_objext conftest$ac_exeext
6726 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 <  (eval $ac_link) 2>conftest.er1
6728 <  ac_status=$?
6729 <  grep -v '^ *+' conftest.er1 >conftest.err
6730 <  rm -f conftest.er1
6731 <  cat conftest.err >&5
6732 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 <  (exit $ac_status); } &&
6734 <         { ac_try='test -z "$ac_c_werror_flag"
6735 <                         || test ! -s conftest.err'
6736 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 <  (eval $ac_try) 2>&5
6738 <  ac_status=$?
6739 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 <  (exit $ac_status); }; } &&
6741 <         { ac_try='test -s conftest$ac_exeext'
6742 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 <  (eval $ac_try) 2>&5
6744 <  ac_status=$?
6745 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 <  (exit $ac_status); }; }; then
6747 <  ac_cv_lib_dfftw_fftwnd_one=yes
6748 < else
6749 <  echo "$as_me: failed program was:" >&5
6750 < sed 's/^/| /' conftest.$ac_ext >&5
6751 <
6752 < ac_cv_lib_dfftw_fftwnd_one=no
6753 < fi
6754 < rm -f conftest.err conftest.$ac_objext \
6755 <      conftest$ac_exeext conftest.$ac_ext
6756 < LIBS=$ac_check_lib_save_LIBS
6757 < fi
6758 < echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
6759 < echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6
6760 < if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
7714 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7715 > $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7716 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
7717    fftw_cv_libdfftw=yes
7718   else
7719    fftw_cv_libdfftw=no
7720   fi
7721  
7722 <          if test "${ac_cv_header_dfftw_h+set}" = set; then
7723 <  echo "$as_me:$LINENO: checking for dfftw.h" >&5
6768 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6769 < if test "${ac_cv_header_dfftw_h+set}" = set; then
6770 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6771 < fi
6772 < echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6773 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6774 < else
6775 <  # Is the header compilable?
6776 < echo "$as_me:$LINENO: checking dfftw.h usability" >&5
6777 < echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6
6778 < cat >conftest.$ac_ext <<_ACEOF
6779 < /* confdefs.h.  */
6780 < _ACEOF
6781 < cat confdefs.h >>conftest.$ac_ext
6782 < cat >>conftest.$ac_ext <<_ACEOF
6783 < /* end confdefs.h.  */
6784 < $ac_includes_default
6785 < #include <dfftw.h>
6786 < _ACEOF
6787 < rm -f conftest.$ac_objext
6788 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 <  (eval $ac_compile) 2>conftest.er1
6790 <  ac_status=$?
6791 <  grep -v '^ *+' conftest.er1 >conftest.err
6792 <  rm -f conftest.er1
6793 <  cat conftest.err >&5
6794 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 <  (exit $ac_status); } &&
6796 <         { ac_try='test -z "$ac_c_werror_flag"
6797 <                         || test ! -s conftest.err'
6798 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 <  (eval $ac_try) 2>&5
6800 <  ac_status=$?
6801 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 <  (exit $ac_status); }; } &&
6803 <         { ac_try='test -s conftest.$ac_objext'
6804 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 <  (eval $ac_try) 2>&5
6806 <  ac_status=$?
6807 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 <  (exit $ac_status); }; }; then
6809 <  ac_header_compiler=yes
6810 < else
6811 <  echo "$as_me: failed program was:" >&5
6812 < sed 's/^/| /' conftest.$ac_ext >&5
6813 <
6814 < ac_header_compiler=no
6815 < fi
6816 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6817 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6818 < echo "${ECHO_T}$ac_header_compiler" >&6
6819 <
6820 < # Is the header present?
6821 < echo "$as_me:$LINENO: checking dfftw.h presence" >&5
6822 < echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6
6823 < cat >conftest.$ac_ext <<_ACEOF
6824 < /* confdefs.h.  */
6825 < _ACEOF
6826 < cat confdefs.h >>conftest.$ac_ext
6827 < cat >>conftest.$ac_ext <<_ACEOF
6828 < /* end confdefs.h.  */
6829 < #include <dfftw.h>
6830 < _ACEOF
6831 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6833 <  ac_status=$?
6834 <  grep -v '^ *+' conftest.er1 >conftest.err
6835 <  rm -f conftest.er1
6836 <  cat conftest.err >&5
6837 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 <  (exit $ac_status); } >/dev/null; then
6839 <  if test -s conftest.err; then
6840 <    ac_cpp_err=$ac_c_preproc_warn_flag
6841 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6842 <  else
6843 <    ac_cpp_err=
6844 <  fi
6845 < else
6846 <  ac_cpp_err=yes
6847 < fi
6848 < if test -z "$ac_cpp_err"; then
6849 <  ac_header_preproc=yes
6850 < else
6851 <  echo "$as_me: failed program was:" >&5
6852 < sed 's/^/| /' conftest.$ac_ext >&5
6853 <
6854 <  ac_header_preproc=no
6855 < fi
6856 < rm -f conftest.err conftest.$ac_ext
6857 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6858 < echo "${ECHO_T}$ac_header_preproc" >&6
6859 <
6860 < # So?  What about this header?
6861 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6862 <  yes:no: )
6863 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6864 < echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6865 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
6866 < echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
6867 <    ac_header_preproc=yes
6868 <    ;;
6869 <  no:yes:* )
6870 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
6871 < echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
6872 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
6873 < echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
6874 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
6875 < echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
6876 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6877 < echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6878 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
6879 < echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
6880 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
6881 < echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
6882 <    (
6883 <      cat <<\_ASBOX
6884 < ## ------------------------------ ##
6885 < ## Report this to gezelter@nd.edu ##
6886 < ## ------------------------------ ##
6887 < _ASBOX
6888 <    ) |
6889 <      sed "s/^/$as_me: WARNING:     /" >&2
6890 <    ;;
6891 < esac
6892 < echo "$as_me:$LINENO: checking for dfftw.h" >&5
6893 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6894 < if test "${ac_cv_header_dfftw_h+set}" = set; then
6895 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6896 < else
6897 <  ac_cv_header_dfftw_h=$ac_header_preproc
6898 < fi
6899 < echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6900 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6901 <
6902 < fi
6903 < if test $ac_cv_header_dfftw_h = yes; then
7722 >          ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
7723 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
7724    fftw_cv_dfftw_h=yes
7725   else
7726    fftw_cv_dfftw_h=no
# Line 6917 | Line 7737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737  
7738        if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
7739  
7740 < cat >>confdefs.h <<\_ACEOF
6921 < #define HAVE_FFTW3_H 1
6922 < _ACEOF
7740 > $as_echo "#define HAVE_FFTW3_H 1" >>confdefs.h
7741  
7742          FFTW_INC_DIR="${FFTW_HOME}/include"
7743          FFTW_LIB_DIR="${FFTW_HOME}/lib"
# Line 6927 | Line 7745 | _ACEOF
7745        else
7746          if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
7747  
7748 < cat >>confdefs.h <<\_ACEOF
6931 < #define HAVE_FFTW_H 1
6932 < _ACEOF
7748 > $as_echo "#define HAVE_FFTW_H 1" >>confdefs.h
7749  
7750            FFTW_INC_DIR="${FFTW_HOME}/include"
7751            FFTW_LIB_DIR="${FFTW_HOME}/lib"
# Line 6937 | Line 7753 | _ACEOF
7753          else
7754            if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
7755  
7756 < cat >>confdefs.h <<\_ACEOF
6941 < #define HAVE_DFFTW_H 1
6942 < _ACEOF
7756 > $as_echo "#define HAVE_DFFTW_H 1" >>confdefs.h
7757  
7758              FFTW_INC_DIR="${FFTW_HOME}/include"
7759              FFTW_LIB_DIR="${FFTW_HOME}/lib"
7760              FFTW_LIBS="-ldfftw"
7761            else
7762 <            echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
7763 < echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
7762 >            { $as_echo "$as_me:${as_lineno-$LINENO}: checking fftw in ${FFTW_HOME}" >&5
7763 > $as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; }
7764              FFTW_INC_DIR=
7765              FFTW_LIB_DIR=
7766              FFTW_LIBS=
7767              LDFLAGS="$FFTW_OLD_LDFLAGS"
7768              CFLAGS="$FFTW_OLD_CFLAGS"
7769 <            echo "$as_me:$LINENO: result: failed" >&5
7770 < echo "${ECHO_T}failed" >&6
7769 >            { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7770 > $as_echo "failed" >&6; }
7771              echo ""
7772              echo "*********************************************************"
7773              echo "* WARNING: Could not find a working FFTW installation   *"
# Line 6961 | Line 7775 | echo "${ECHO_T}failed" >&6
7775              echo "* compute undulation spectra, be sure to specify a      *"
7776              echo "* valid fftw installation with --with-fftw=DIR          *"
7777              echo "*                                                       *"
7778 <            echo "* OOPSE will still work without fftw installed.         *"
7778 >            echo "* OpenMD will still work without fftw installed.        *"
7779              echo "*********************************************************"
7780              echo ""
7781            fi
# Line 6974 | Line 7788 | fi
7788    fi
7789   fi
7790  
7791 + ac_ext=cpp
7792 + ac_cpp='$CXXCPP $CPPFLAGS'
7793 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7796 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7797 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7798 + if test -z "$CXXCPP"; then
7799 +  if ${ac_cv_prog_CXXCPP+:} false; then :
7800 +  $as_echo_n "(cached) " >&6
7801 + else
7802 +      # Double quotes because CXXCPP needs to be expanded
7803 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7804 +    do
7805 +      ac_preproc_ok=false
7806 + for ac_cxx_preproc_warn_flag in '' yes
7807 + do
7808 +  # Use a header file that comes with gcc, so configuring glibc
7809 +  # with a fresh cross-compiler works.
7810 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811 +  # <limits.h> exists even on freestanding compilers.
7812 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7813 +  # not just through cpp. "Syntax error" is here to catch this case.
7814 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 + /* end confdefs.h.  */
7816 + #ifdef __STDC__
7817 + # include <limits.h>
7818 + #else
7819 + # include <assert.h>
7820 + #endif
7821 +                     Syntax error
7822 + _ACEOF
7823 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7824 +
7825 + else
7826 +  # Broken: fails on valid input.
7827 + continue
7828 + fi
7829 + rm -f conftest.err conftest.i conftest.$ac_ext
7830 +
7831 +  # OK, works on sane cases.  Now check whether nonexistent headers
7832 +  # can be detected and how.
7833 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 + /* end confdefs.h.  */
7835 + #include <ac_nonexistent.h>
7836 + _ACEOF
7837 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7838 +  # Broken: success on invalid input.
7839 + continue
7840 + else
7841 +  # Passes both tests.
7842 + ac_preproc_ok=:
7843 + break
7844 + fi
7845 + rm -f conftest.err conftest.i conftest.$ac_ext
7846 +
7847 + done
7848 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7849 + rm -f conftest.i conftest.err conftest.$ac_ext
7850 + if $ac_preproc_ok; then :
7851 +  break
7852 + fi
7853 +
7854 +    done
7855 +    ac_cv_prog_CXXCPP=$CXXCPP
7856 +
7857 + fi
7858 +  CXXCPP=$ac_cv_prog_CXXCPP
7859 + else
7860 +  ac_cv_prog_CXXCPP=$CXXCPP
7861 + fi
7862 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7863 + $as_echo "$CXXCPP" >&6; }
7864 + ac_preproc_ok=false
7865 + for ac_cxx_preproc_warn_flag in '' yes
7866 + do
7867 +  # Use a header file that comes with gcc, so configuring glibc
7868 +  # with a fresh cross-compiler works.
7869 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7870 +  # <limits.h> exists even on freestanding compilers.
7871 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7872 +  # not just through cpp. "Syntax error" is here to catch this case.
7873 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 + /* end confdefs.h.  */
7875 + #ifdef __STDC__
7876 + # include <limits.h>
7877 + #else
7878 + # include <assert.h>
7879 + #endif
7880 +                     Syntax error
7881 + _ACEOF
7882 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7883 +
7884 + else
7885 +  # Broken: fails on valid input.
7886 + continue
7887 + fi
7888 + rm -f conftest.err conftest.i conftest.$ac_ext
7889 +
7890 +  # OK, works on sane cases.  Now check whether nonexistent headers
7891 +  # can be detected and how.
7892 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 + /* end confdefs.h.  */
7894 + #include <ac_nonexistent.h>
7895 + _ACEOF
7896 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7897 +  # Broken: success on invalid input.
7898 + continue
7899 + else
7900 +  # Passes both tests.
7901 + ac_preproc_ok=:
7902 + break
7903 + fi
7904 + rm -f conftest.err conftest.i conftest.$ac_ext
7905 +
7906 + done
7907 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7908 + rm -f conftest.i conftest.err conftest.$ac_ext
7909 + if $ac_preproc_ok; then :
7910 +
7911 + else
7912 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7913 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7914 + as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7915 + See \`config.log' for more details" "$LINENO" 5; }
7916 + fi
7917 +
7918 + ac_ext=cpp
7919 + ac_cpp='$CXXCPP $CPPFLAGS'
7920 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7923 +
7924 +
7925   #
7926   # Handle user hints
7927   #
7928  
7929 < # Check whether --with-qhull or --without-qhull was given.
7930 < if test "${with_qhull+set}" = set; then
7931 <  withval="$with_qhull"
6984 <  qhull_dir="$withval"
7929 > # Check whether --with-qhull was given.
7930 > if test "${with_qhull+set}" = set; then :
7931 >  withval=$with_qhull; qhull_dir="$withval"
7932   else
7933 <                qhull_dir="not_set"
7934 < fi;
7933 >  qhull_dir="not_set"
7934 > fi
7935 >
7936 > QHULL_INC_DIR=
7937 > QHULL_LIB_DIR=
7938 > QHULL=
7939 > USE_QHULL=no
7940 >
7941   if test "$qhull_dir" != "no"; then
7942 +   if test "$qhull_dir" != "not_set" ; then
7943 +     if test -d "$qhull_dir"; then
7944 +       QHULL_HOME="$qhull_dir"
7945 +     else
7946 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
7947 + $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
7948 +       QHULL_HOME=/usr/local
7949 +       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
7950 +          QHULL_HOME=/usr
7951 +       fi
7952 +     fi
7953 +   fi
7954 +   #
7955 +   # Locate qhull, if wanted
7956 +   #
7957 +   if test -n "${QHULL_HOME}"; then
7958 +        { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7959 + $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7960  
7961 < if test "$qhull_dir" != "not_set" ; then
7962 <  if test -d "$qhull_dir"
7963 <  then
7964 <    QHULL_HOME="$qhull_dir"
7965 <  else
7966 <    { echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
6996 < echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
6997 <        QHULL_HOME=/usr/local
6998 <        if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"
6999 <        then
7000 <                QHULL_HOME=/usr
7001 <        fi
7002 <  fi
7003 < fi
7004 < #
7005 < # Locate qhull, if wanted
7006 < #
7007 < if test -n "${QHULL_HOME}"
7008 < then
7961 >        ac_ext=cpp
7962 > ac_cpp='$CXXCPP $CPPFLAGS'
7963 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7966 >
7967          QHULL_OLD_LDFLAGS=$LDFLAGS
7968 <        QHULL_OLD_CFLAGS=$CFLAGS
7968 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7969 >        QHULL_OLD_CPPFLAGS=$CPPFLAGS
7970          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7971 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7971 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7972 >        CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7973 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
7974 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
7975 >  qhull_cv_libqhull_h=yes
7976 > else
7977 >  qhull_cv_libqhull_h=no
7978 > fi
7979  
7980  
7981 <        ac_ext=c
7982 < ac_cpp='$CPP $CPPFLAGS'
7983 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020 <
7021 <        echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
7022 < echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6
7023 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
7024 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7981 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
7982 > $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
7983 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
7984 >  $as_echo_n "(cached) " >&6
7985   else
7986    ac_check_lib_save_LIBS=$LIBS
7987   LIBS="-lqhull  $LIBS"
7988 < cat >conftest.$ac_ext <<_ACEOF
7029 < /* confdefs.h.  */
7030 < _ACEOF
7031 < cat confdefs.h >>conftest.$ac_ext
7032 < cat >>conftest.$ac_ext <<_ACEOF
7988 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989   /* end confdefs.h.  */
7990  
7991 < /* Override any gcc2 internal prototype to avoid an error.  */
7991 > /* Override any GCC internal prototype to avoid an error.
7992 >   Use char because int might match the return type of a GCC
7993 >   builtin and then its argument prototype would still apply.  */
7994   #ifdef __cplusplus
7995   extern "C"
7996   #endif
7039 /* We use char because int might match the return type of a gcc2
7040   builtin and then its argument prototype would still apply.  */
7997   char qh_qhull ();
7998   #ifdef FC_DUMMY_MAIN
7999   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 7050 | Line 8006 | main ()
8006   int
8007   main ()
8008   {
8009 < qh_qhull ();
8009 > return qh_qhull ();
8010    ;
8011    return 0;
8012   }
8013   _ACEOF
8014 < rm -f conftest.$ac_objext conftest$ac_exeext
7059 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 <  (eval $ac_link) 2>conftest.er1
7061 <  ac_status=$?
7062 <  grep -v '^ *+' conftest.er1 >conftest.err
7063 <  rm -f conftest.er1
7064 <  cat conftest.err >&5
7065 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 <  (exit $ac_status); } &&
7067 <         { ac_try='test -z "$ac_c_werror_flag"
7068 <                         || test ! -s conftest.err'
7069 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 <  (eval $ac_try) 2>&5
7071 <  ac_status=$?
7072 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 <  (exit $ac_status); }; } &&
7074 <         { ac_try='test -s conftest$ac_exeext'
7075 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 <  (eval $ac_try) 2>&5
7077 <  ac_status=$?
7078 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 <  (exit $ac_status); }; }; then
8014 > if ac_fn_cxx_try_link "$LINENO"; then :
8015    ac_cv_lib_qhull_qh_qhull=yes
8016   else
8017 <  echo "$as_me: failed program was:" >&5
7083 < sed 's/^/| /' conftest.$ac_ext >&5
7084 <
7085 < ac_cv_lib_qhull_qh_qhull=no
8017 >  ac_cv_lib_qhull_qh_qhull=no
8018   fi
8019 < rm -f conftest.err conftest.$ac_objext \
8020 <      conftest$ac_exeext conftest.$ac_ext
8019 > rm -f core conftest.err conftest.$ac_objext \
8020 >    conftest$ac_exeext conftest.$ac_ext
8021   LIBS=$ac_check_lib_save_LIBS
8022   fi
8023 < echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
8024 < echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6
8025 < if test $ac_cv_lib_qhull_qh_qhull = yes; then
8023 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
8024 > $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8025 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
8026    qhull_cv_libqhull=yes
8027   else
8028    qhull_cv_libqhull=no
8029   fi
8030  
8031 <        if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8032 <  echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
8033 < echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6
8034 < if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
7103 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7104 < fi
7105 < echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
7106 < echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6
8031 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
8032 > $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
8033 > if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
8034 >  $as_echo_n "(cached) " >&6
8035   else
8036 <  # Is the header compilable?
8037 < echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5
8038 < echo $ECHO_N "checking qhull/qhull.h usability... $ECHO_C" >&6
7111 < cat >conftest.$ac_ext <<_ACEOF
7112 < /* confdefs.h.  */
7113 < _ACEOF
7114 < cat confdefs.h >>conftest.$ac_ext
7115 < cat >>conftest.$ac_ext <<_ACEOF
8036 >  ac_check_lib_save_LIBS=$LIBS
8037 > LIBS="-lqhull6  $LIBS"
8038 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039   /* end confdefs.h.  */
8040 < $ac_includes_default
8041 < #include <qhull/qhull.h>
8040 >
8041 > /* Override any GCC internal prototype to avoid an error.
8042 >   Use char because int might match the return type of a GCC
8043 >   builtin and then its argument prototype would still apply.  */
8044 > #ifdef __cplusplus
8045 > extern "C"
8046 > #endif
8047 > char qh_qhull ();
8048 > #ifdef FC_DUMMY_MAIN
8049 > #ifndef FC_DUMMY_MAIN_EQ_F77
8050 > #  ifdef __cplusplus
8051 >     extern "C"
8052 > #  endif
8053 >   int FC_DUMMY_MAIN() { return 1; }
8054 > #endif
8055 > #endif
8056 > int
8057 > main ()
8058 > {
8059 > return qh_qhull ();
8060 >  ;
8061 >  return 0;
8062 > }
8063   _ACEOF
8064 < rm -f conftest.$ac_objext
8065 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 <  (eval $ac_compile) 2>conftest.er1
7123 <  ac_status=$?
7124 <  grep -v '^ *+' conftest.er1 >conftest.err
7125 <  rm -f conftest.er1
7126 <  cat conftest.err >&5
7127 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 <  (exit $ac_status); } &&
7129 <         { ac_try='test -z "$ac_c_werror_flag"
7130 <                         || test ! -s conftest.err'
7131 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 <  (eval $ac_try) 2>&5
7133 <  ac_status=$?
7134 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 <  (exit $ac_status); }; } &&
7136 <         { ac_try='test -s conftest.$ac_objext'
7137 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 <  (eval $ac_try) 2>&5
7139 <  ac_status=$?
7140 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 <  (exit $ac_status); }; }; then
7142 <  ac_header_compiler=yes
8064 > if ac_fn_cxx_try_link "$LINENO"; then :
8065 >  ac_cv_lib_qhull6_qh_qhull=yes
8066   else
8067 <  echo "$as_me: failed program was:" >&5
8068 < sed 's/^/| /' conftest.$ac_ext >&5
8067 >  ac_cv_lib_qhull6_qh_qhull=no
8068 > fi
8069 > rm -f core conftest.err conftest.$ac_objext \
8070 >    conftest$ac_exeext conftest.$ac_ext
8071 > LIBS=$ac_check_lib_save_LIBS
8072 > fi
8073 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
8074 > $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
8075 > if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
8076 >  qhull_cv_libqhull6=yes
8077 > else
8078 >  qhull_cv_libqhull6=no
8079 > fi
8080  
8081 < ac_header_compiler=no
8081 >        LDFLAGS="$QHULL_OLD_LDFLAGS"
8082 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8083 >        CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8084 >        ac_ext=c
8085 > ac_cpp='$CPP $CPPFLAGS'
8086 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089 >
8090 >
8091 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
8092 >
8093 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
8094 >
8095 >           if test "$qhull_cv_libqhull" = "yes"; then
8096 >
8097 > $as_echo "#define HAVE_QHULL 1" >>confdefs.h
8098 >
8099 >                QHULL="-lqhull"
8100 >           fi
8101 >           if test "$qhull_cv_libqhull6" = "yes"; then
8102 >
8103 > $as_echo "#define HAVE_QHULL 1" >>confdefs.h
8104 >
8105 >                QHULL="-lqhull6"
8106 >           fi
8107 >           USE_QHULL=yes
8108 >           QHULL_INC_DIR="${QHULL_HOME}/include"
8109 >           QHULL_LIB_DIR="${QHULL_HOME}/lib"
8110 >           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
8111 > $as_echo "Working qhull found, will proceed." >&6; }
8112 >        else
8113 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8114 > $as_echo "$as_me: WARNING: " >&2;}
8115 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
8116 > $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
8117 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
8118 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
8119 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
8120 > $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
8121 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
8122 > $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
8123 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8124 > $as_echo "$as_me: WARNING: " >&2;}
8125 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
8126 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
8127 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8128 > $as_echo "$as_me: WARNING: " >&2;}
8129 >        fi
8130 >    fi
8131   fi
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151 echo "${ECHO_T}$ac_header_compiler" >&6
8132  
8133 < # Is the header present?
8134 < echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5
8135 < echo $ECHO_N "checking qhull/qhull.h presence... $ECHO_C" >&6
8136 < cat >conftest.$ac_ext <<_ACEOF
8137 < /* confdefs.h.  */
8138 < _ACEOF
8139 < cat confdefs.h >>conftest.$ac_ext
8140 < cat >>conftest.$ac_ext <<_ACEOF
8141 < /* end confdefs.h.  */
8142 < #include <qhull/qhull.h>
8143 < _ACEOF
8144 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8145 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8146 <  ac_status=$?
8147 <  grep -v '^ *+' conftest.er1 >conftest.err
8148 <  rm -f conftest.er1
8149 <  cat conftest.err >&5
8150 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 <  (exit $ac_status); } >/dev/null; then
8152 <  if test -s conftest.err; then
8153 <    ac_cpp_err=$ac_c_preproc_warn_flag
7174 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8133 >
8134 >
8135 >
8136 >
8137 > #
8138 > # Handle user hints
8139 > #
8140 >
8141 > # Check whether --with-openbabel was given.
8142 > if test "${with_openbabel+set}" = set; then :
8143 >  withval=$with_openbabel; openbabel_dir="$withval"
8144 > else
8145 >                openbabel_dir="not_set"
8146 > fi
8147 >
8148 > if test "$openbabel_dir" != "no"; then
8149 >
8150 > if test "$openbabel_dir" != "not_set" ; then
8151 >  if test -d "$openbabel_dir"
8152 >  then
8153 >    OPENBABEL_HOME="$openbabel_dir"
8154    else
8155 <    ac_cpp_err=
8155 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5
8156 > $as_echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;}
8157 >        OPENBABEL_HOME=/usr/local
8158 >        if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h"
8159 >        then
8160 >                OPENBABEL_HOME=/usr
8161 >        fi
8162    fi
7178 else
7179  ac_cpp_err=yes
8163   fi
8164 < if test -z "$ac_cpp_err"; then
8165 <  ac_header_preproc=yes
8164 > #
8165 > # Locate openbabel, if wanted
8166 > #
8167 > if test -n "${OPENBABEL_HOME}"
8168 > then
8169 >
8170 >        ac_ext=cpp
8171 > ac_cpp='$CXXCPP $CPPFLAGS'
8172 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8175 >
8176 >        OPENBABEL_OLD_LDFLAGS=$LDFLAGS
8177 >        OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS
8178 >        LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
8179 >        CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
8180 >        ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
8181 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
8182 >  openbabel_cv_openbabel_h=yes
8183   else
8184 <  echo "$as_me: failed program was:" >&5
8185 < sed 's/^/| /' conftest.$ac_ext >&5
8184 >  openbabel_cv_openbabel_h=no
8185 > fi
8186  
8187 <  ac_header_preproc=no
8188 < fi
8189 < rm -f conftest.err conftest.$ac_ext
8190 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191 < echo "${ECHO_T}$ac_header_preproc" >&6
7192 <
7193 < # So?  What about this header?
7194 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195 <  yes:no: )
7196 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5
7197 < echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5
7199 < echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;}
7200 <    ac_header_preproc=yes
7201 <    ;;
7202 <  no:yes:* )
7203 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5
7204 < echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;}
7205 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&5
7206 < echo "$as_me: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&2;}
7207 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5
7208 < echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;}
7209 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&5
7210 < echo "$as_me: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7211 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5
7212 < echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;}
7213 <    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5
7214 < echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;}
7215 <    (
7216 <      cat <<\_ASBOX
7217 < ## ------------------------------ ##
7218 < ## Report this to gezelter@nd.edu ##
7219 < ## ------------------------------ ##
7220 < _ASBOX
7221 <    ) |
7222 <      sed "s/^/$as_me: WARNING:     /" >&2
7223 <    ;;
7224 < esac
7225 < echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
7226 < echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6
7227 < if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
7228 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8187 >
8188 >        ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
8189 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
8190 >  openbabel_cv_obconversion_h=yes
8191   else
8192 <  ac_cv_header_qhull_qhull_h=$ac_header_preproc
8192 >  openbabel_cv_obconversion_h=no
8193   fi
7232 echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
7233 echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6
8194  
8195 < fi
8196 < if test $ac_cv_header_qhull_qhull_h = yes; then
8197 <  qhull_cv_qhull_h=yes
8195 >
8196 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 > /* end confdefs.h.  */
8198 >
8199 >
8200 > #include <openbabel/babelconfig.h>
8201 > #include <openbabel/obconversion.h>
8202 > using namespace std;
8203 > using namespace OpenBabel;
8204 >
8205 > #ifdef FC_DUMMY_MAIN
8206 > #ifndef FC_DUMMY_MAIN_EQ_F77
8207 > #  ifdef __cplusplus
8208 >     extern "C"
8209 > #  endif
8210 >   int FC_DUMMY_MAIN() { return 1; }
8211 > #endif
8212 > #endif
8213 > int
8214 > main ()
8215 > {
8216 >
8217 > OBConversion Conv(&cin, &cout);
8218 >
8219 >
8220 >  ;
8221 >  return 0;
8222 > }
8223 > _ACEOF
8224 > if ac_fn_cxx_try_link "$LINENO"; then :
8225 >
8226 >                openbabel_lib_found="yes"
8227 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8228 > $as_echo "found" >&6; }
8229 >
8230   else
7239  qhull_cv_qhull_h=no
7240 fi
8231  
8232 +                openbabel_lib_found="no"
8233 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8234 + $as_echo "not found" >&6; }
8235  
8236 +
8237 + fi
8238 + rm -f core conftest.err conftest.$ac_objext \
8239 +    conftest$ac_exeext conftest.$ac_ext
8240          ac_ext=c
8241   ac_cpp='$CPP $CPPFLAGS'
8242   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244   ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245  
8246 +        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
8247 +        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
8248  
8249 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
8250 <
8251 < cat >>confdefs.h <<\_ACEOF
8252 < #define HAVE_QHULL_H 1
8253 < _ACEOF
7255 <
7256 <
7257 < cat >>confdefs.h <<\_ACEOF
7258 < #define HAVE_QHULL 1
7259 < _ACEOF
7260 <
7261 <                QHULL_INC_DIR="${QHULL_HOME}/include"
7262 <                QHULL_LIB_DIR="${QHULL_HOME}/lib"
7263 <                QHULL="-lqhull"
8249 >        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
8250 >                USE_OPENBABEL=yes
8251 >                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
8252 >                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
8253 >                OPENBABEL_LIB="-lopenbabel"
8254          else
8255 <                echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5
8256 < echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO_C" >&6
8257 <                QHULL_INC_DIR=
8258 <                QHULL_LIB_DIR=
8259 <                QHULL=
8260 <                LDFLAGS="$QHULL_OLD_LDFLAGS"
8261 <                CFLAGS="$QHULL_OLD_CFLAGS"
8262 <                echo "$as_me:$LINENO: result: failed" >&5
7273 < echo "${ECHO_T}failed" >&6
8255 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking openbabel in ${OPENBABEL_HOME}" >&5
8256 > $as_echo_n "checking openbabel in ${OPENBABEL_HOME}... " >&6; }
8257 >                OPENBABEL_INC_DIR=
8258 >                OPENBABEL_LIB_DIR=
8259 >                OPENBABEL_LIB=
8260 >                USE_OPENBABEL=no
8261 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8262 > $as_echo "failed" >&6; }
8263                  echo ""
8264                  echo "*********************************************************"
8265 <                echo "* WARNING: Could not find a working qhull installation  *"
8266 <                echo "* If you need OOPSE to be able to deal with convex      *"
8267 <                echo "* hulls be sure to specify a valid qhull installation   *"
8268 <                echo "* with --with-qhull=DIR                                 *"
8265 >                echo "* WARNING: Could not find a working openbabel-2.x       *"
8266 >                echo "* installation If you need OpenMD to be able to convert *"
8267 >                echo "* xyz or pdb files you need to specify a valid          *"
8268 >                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8269                  echo "*                                                       *"
8270 <                echo "* OOPSE will still work without qhull installed.        *"
8270 >                echo "* OpenMD will still work without openbabel installed.   *"
8271                  echo "*********************************************************"
8272                  echo ""
8273          fi
8274  
8275  
8276  
8277 +
8278   fi
8279   fi
8280  
8281  
8282   # Checks for header files.
8283 < echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8284 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8285 < if test "${ac_cv_header_stdc+set}" = set; then
8286 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8283 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8284 > $as_echo_n "checking for ANSI C header files... " >&6; }
8285 > if ${ac_cv_header_stdc+:} false; then :
8286 >  $as_echo_n "(cached) " >&6
8287   else
8288 <  cat >conftest.$ac_ext <<_ACEOF
7299 < /* confdefs.h.  */
7300 < _ACEOF
7301 < cat confdefs.h >>conftest.$ac_ext
7302 < cat >>conftest.$ac_ext <<_ACEOF
8288 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289   /* end confdefs.h.  */
8290   #include <stdlib.h>
8291   #include <stdarg.h>
# Line 7322 | Line 8308 | _ACEOF
8308    return 0;
8309   }
8310   _ACEOF
8311 < rm -f conftest.$ac_objext
7326 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 <  (eval $ac_compile) 2>conftest.er1
7328 <  ac_status=$?
7329 <  grep -v '^ *+' conftest.er1 >conftest.err
7330 <  rm -f conftest.er1
7331 <  cat conftest.err >&5
7332 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 <  (exit $ac_status); } &&
7334 <         { ac_try='test -z "$ac_c_werror_flag"
7335 <                         || test ! -s conftest.err'
7336 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 <  (eval $ac_try) 2>&5
7338 <  ac_status=$?
7339 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 <  (exit $ac_status); }; } &&
7341 <         { ac_try='test -s conftest.$ac_objext'
7342 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 <  (eval $ac_try) 2>&5
7344 <  ac_status=$?
7345 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 <  (exit $ac_status); }; }; then
8311 > if ac_fn_c_try_compile "$LINENO"; then :
8312    ac_cv_header_stdc=yes
8313   else
8314 <  echo "$as_me: failed program was:" >&5
7350 < sed 's/^/| /' conftest.$ac_ext >&5
7351 <
7352 < ac_cv_header_stdc=no
8314 >  ac_cv_header_stdc=no
8315   fi
8316 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8316 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317  
8318   if test $ac_cv_header_stdc = yes; then
8319    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8320 <  cat >conftest.$ac_ext <<_ACEOF
7359 < /* confdefs.h.  */
7360 < _ACEOF
7361 < cat confdefs.h >>conftest.$ac_ext
7362 < cat >>conftest.$ac_ext <<_ACEOF
8320 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321   /* end confdefs.h.  */
8322   #include <string.h>
8323  
8324   _ACEOF
8325   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8326 <  $EGREP "memchr" >/dev/null 2>&1; then
8327 <  :
8326 >  $EGREP "memchr" >/dev/null 2>&1; then :
8327 >
8328   else
8329    ac_cv_header_stdc=no
8330   fi
# Line 7376 | Line 8334 | if test $ac_cv_header_stdc = yes; then
8334  
8335   if test $ac_cv_header_stdc = yes; then
8336    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8337 <  cat >conftest.$ac_ext <<_ACEOF
7380 < /* confdefs.h.  */
7381 < _ACEOF
7382 < cat confdefs.h >>conftest.$ac_ext
7383 < cat >>conftest.$ac_ext <<_ACEOF
8337 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338   /* end confdefs.h.  */
8339   #include <stdlib.h>
8340  
8341   _ACEOF
8342   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 <  $EGREP "free" >/dev/null 2>&1; then
8344 <  :
8343 >  $EGREP "free" >/dev/null 2>&1; then :
8344 >
8345   else
8346    ac_cv_header_stdc=no
8347   fi
# Line 7397 | Line 8351 | if test $ac_cv_header_stdc = yes; then
8351  
8352   if test $ac_cv_header_stdc = yes; then
8353    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8354 <  if test "$cross_compiling" = yes; then
8354 >  if test "$cross_compiling" = yes; then :
8355    :
8356   else
8357 <  cat >conftest.$ac_ext <<_ACEOF
7404 < /* confdefs.h.  */
7405 < _ACEOF
7406 < cat confdefs.h >>conftest.$ac_ext
7407 < cat >>conftest.$ac_ext <<_ACEOF
8357 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358   /* end confdefs.h.  */
8359   #include <ctype.h>
8360 + #include <stdlib.h>
8361   #if ((' ' & 0x0FF) == 0x020)
8362   # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8363   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
# Line 7426 | Line 8377 | main ()
8377    for (i = 0; i < 256; i++)
8378      if (XOR (islower (i), ISLOWER (i))
8379          || toupper (i) != TOUPPER (i))
8380 <      exit(2);
8381 <  exit (0);
8380 >      return 2;
8381 >  return 0;
8382   }
8383   _ACEOF
8384 < rm -f conftest$ac_exeext
7434 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 <  (eval $ac_link) 2>&5
7436 <  ac_status=$?
7437 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7439 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 <  (eval $ac_try) 2>&5
7441 <  ac_status=$?
7442 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 <  (exit $ac_status); }; }; then
7444 <  :
7445 < else
7446 <  echo "$as_me: program exited with status $ac_status" >&5
7447 < echo "$as_me: failed program was:" >&5
7448 < sed 's/^/| /' conftest.$ac_ext >&5
8384 > if ac_fn_c_try_run "$LINENO"; then :
8385  
8386 < ( exit $ac_status )
8387 < ac_cv_header_stdc=no
7452 < fi
7453 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8386 > else
8387 >  ac_cv_header_stdc=no
8388   fi
8389 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8390 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
8391   fi
7456 fi
7457 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7458 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7459 if test $ac_cv_header_stdc = yes; then
8392  
7461 cat >>confdefs.h <<\_ACEOF
7462 #define STDC_HEADERS 1
7463 _ACEOF
7464
8393   fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7493 do
7494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496  echo "$as_me:$LINENO: checking for $ac_header" >&5
7497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
8394   fi
8395 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8396 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8397 < else
7504 <  # Is the header compilable?
7505 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
7506 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7507 < cat >conftest.$ac_ext <<_ACEOF
7508 < /* confdefs.h.  */
7509 < _ACEOF
7510 < cat confdefs.h >>conftest.$ac_ext
7511 < cat >>conftest.$ac_ext <<_ACEOF
7512 < /* end confdefs.h.  */
7513 < $ac_includes_default
7514 < #include <$ac_header>
7515 < _ACEOF
7516 < rm -f conftest.$ac_objext
7517 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518 <  (eval $ac_compile) 2>conftest.er1
7519 <  ac_status=$?
7520 <  grep -v '^ *+' conftest.er1 >conftest.err
7521 <  rm -f conftest.er1
7522 <  cat conftest.err >&5
7523 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 <  (exit $ac_status); } &&
7525 <         { ac_try='test -z "$ac_c_werror_flag"
7526 <                         || test ! -s conftest.err'
7527 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 <  (eval $ac_try) 2>&5
7529 <  ac_status=$?
7530 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 <  (exit $ac_status); }; } &&
7532 <         { ac_try='test -s conftest.$ac_objext'
7533 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 <  (eval $ac_try) 2>&5
7535 <  ac_status=$?
7536 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 <  (exit $ac_status); }; }; then
7538 <  ac_header_compiler=yes
7539 < else
7540 <  echo "$as_me: failed program was:" >&5
7541 < sed 's/^/| /' conftest.$ac_ext >&5
8395 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8396 > $as_echo "$ac_cv_header_stdc" >&6; }
8397 > if test $ac_cv_header_stdc = yes; then
8398  
8399 < ac_header_compiler=no
7544 < fi
7545 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7547 < echo "${ECHO_T}$ac_header_compiler" >&6
8399 > $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8400  
7549 # Is the header present?
7550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h.  */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h.  */
7558 #include <$ac_header>
7559 _ACEOF
7560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7561  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7562  ac_status=$?
7563  grep -v '^ *+' conftest.er1 >conftest.err
7564  rm -f conftest.er1
7565  cat conftest.err >&5
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); } >/dev/null; then
7568  if test -s conftest.err; then
7569    ac_cpp_err=$ac_c_preproc_warn_flag
7570    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7571  else
7572    ac_cpp_err=
7573  fi
7574 else
7575  ac_cpp_err=yes
8401   fi
7577 if test -z "$ac_cpp_err"; then
7578  ac_header_preproc=yes
7579 else
7580  echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
8402  
8403 <  ac_header_preproc=no
8404 < fi
8405 < rm -f conftest.err conftest.$ac_ext
8406 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8407 < echo "${ECHO_T}$ac_header_preproc" >&6
7588 <
7589 < # So?  What about this header?
7590 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7591 <  yes:no: )
7592 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7593 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7594 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7595 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7596 <    ac_header_preproc=yes
7597 <    ;;
7598 <  no:yes:* )
7599 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7600 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7601 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7602 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7603 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7604 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7605 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7606 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7607 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7609 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7610 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7611 <    (
7612 <      cat <<\_ASBOX
7613 < ## ------------------------------ ##
7614 < ## Report this to gezelter@nd.edu ##
7615 < ## ------------------------------ ##
7616 < _ASBOX
7617 <    ) |
7618 <      sed "s/^/$as_me: WARNING:     /" >&2
7619 <    ;;
7620 < esac
7621 < echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7623 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
7624 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7625 < else
7626 <  eval "$as_ac_Header=\$ac_header_preproc"
7627 < fi
7628 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7630 <
7631 < fi
7632 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 > for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h
8404 > do :
8405 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 > ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8407 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8408    cat >>confdefs.h <<_ACEOF
8409 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8410   _ACEOF
8411  
8412   fi
# Line 7640 | Line 8415 | done
8415  
8416  
8417   # Checks for typedefs, structures, and compiler characteristics.
8418 < echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8419 < echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8420 < if test "${ac_cv_header_stdbool_h+set}" = set; then
8421 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8418 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8419 > $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8420 > if ${ac_cv_header_stdbool_h+:} false; then :
8421 >  $as_echo_n "(cached) " >&6
8422   else
8423 <  cat >conftest.$ac_ext <<_ACEOF
7649 < /* confdefs.h.  */
7650 < _ACEOF
7651 < cat confdefs.h >>conftest.$ac_ext
7652 < cat >>conftest.$ac_ext <<_ACEOF
8423 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424   /* end confdefs.h.  */
8425  
8426   #include <stdbool.h>
8427   #ifndef bool
8428 < # error bool is not defined
8428 > "error: bool is not defined"
8429   #endif
8430   #ifndef false
8431 < # error false is not defined
8431 > "error: false is not defined"
8432   #endif
8433   #if false
8434 < # error false is not 0
8434 > "error: false is not 0"
8435   #endif
8436   #ifndef true
8437 < # error true is not defined
8437 > "error: true is not defined"
8438   #endif
8439   #if true != 1
8440 < # error true is not 1
8440 > "error: true is not 1"
8441   #endif
8442   #ifndef __bool_true_false_are_defined
8443 < # error __bool_true_false_are_defined is not defined
8443 > "error: __bool_true_false_are_defined is not defined"
8444   #endif
8445  
8446          struct s { _Bool s: 1; _Bool t; } s;
# Line 7677 | Line 8448 | cat >>conftest.$ac_ext <<_ACEOF
8448          char a[true == 1 ? 1 : -1];
8449          char b[false == 0 ? 1 : -1];
8450          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8451 <        char d[(bool) -0.5 == true ? 1 : -1];
8452 <        bool e = &s;
8453 <        char f[(_Bool) -0.0 == false ? 1 : -1];
8451 >        char d[(bool) 0.5 == true ? 1 : -1];
8452 >        /* See body of main program for 'e'.  */
8453 >        char f[(_Bool) 0.0 == false ? 1 : -1];
8454          char g[true];
8455          char h[sizeof (_Bool)];
8456          char i[sizeof s.t];
8457 +        enum { j = false, k = true, l = false * true, m = true * 256 };
8458 +        /* The following fails for
8459 +           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8460 +        _Bool n[m];
8461 +        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8462 +        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8463 +        /* Catch a bug in an HP-UX C compiler.  See
8464 +           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8465 +           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8466 +         */
8467 +        _Bool q = true;
8468 +        _Bool *pq = &q;
8469  
8470   #ifdef FC_DUMMY_MAIN
8471   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 7695 | Line 8478 | main ()
8478   int
8479   main ()
8480   {
8481 < return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8481 >
8482 >        bool e = &s;
8483 >        *pq |= q;
8484 >        *pq |= ! q;
8485 >        /* Refer to every declared value, to avoid compiler optimizations.  */
8486 >        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8487 >                + !m + !n + !o + !p + !q + !pq);
8488 >
8489    ;
8490    return 0;
8491   }
8492   _ACEOF
8493 < rm -f conftest.$ac_objext
7704 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 <  (eval $ac_compile) 2>conftest.er1
7706 <  ac_status=$?
7707 <  grep -v '^ *+' conftest.er1 >conftest.err
7708 <  rm -f conftest.er1
7709 <  cat conftest.err >&5
7710 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 <  (exit $ac_status); } &&
7712 <         { ac_try='test -z "$ac_c_werror_flag"
7713 <                         || test ! -s conftest.err'
7714 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 <  (eval $ac_try) 2>&5
7716 <  ac_status=$?
7717 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 <  (exit $ac_status); }; } &&
7719 <         { ac_try='test -s conftest.$ac_objext'
7720 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 <  (eval $ac_try) 2>&5
7722 <  ac_status=$?
7723 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 <  (exit $ac_status); }; }; then
8493 > if ac_fn_c_try_compile "$LINENO"; then :
8494    ac_cv_header_stdbool_h=yes
8495   else
8496 <  echo "$as_me: failed program was:" >&5
7728 < sed 's/^/| /' conftest.$ac_ext >&5
7729 <
7730 < ac_cv_header_stdbool_h=no
8496 >  ac_cv_header_stdbool_h=no
8497   fi
8498 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499   fi
8500 < echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8501 < echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8502 < echo "$as_me:$LINENO: checking for _Bool" >&5
8503 < echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7738 < if test "${ac_cv_type__Bool+set}" = set; then
7739 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7740 < else
7741 <  cat >conftest.$ac_ext <<_ACEOF
7742 < /* confdefs.h.  */
7743 < _ACEOF
7744 < cat confdefs.h >>conftest.$ac_ext
7745 < cat >>conftest.$ac_ext <<_ACEOF
7746 < /* end confdefs.h.  */
7747 < $ac_includes_default
7748 < #ifdef FC_DUMMY_MAIN
7749 < #ifndef FC_DUMMY_MAIN_EQ_F77
7750 < #  ifdef __cplusplus
7751 <     extern "C"
7752 < #  endif
7753 <   int FC_DUMMY_MAIN() { return 1; }
7754 < #endif
7755 < #endif
7756 < int
7757 < main ()
7758 < {
7759 < if ((_Bool *) 0)
7760 <  return 0;
7761 < if (sizeof (_Bool))
7762 <  return 0;
7763 <  ;
7764 <  return 0;
7765 < }
7766 < _ACEOF
7767 < rm -f conftest.$ac_objext
7768 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 <  (eval $ac_compile) 2>conftest.er1
7770 <  ac_status=$?
7771 <  grep -v '^ *+' conftest.er1 >conftest.err
7772 <  rm -f conftest.er1
7773 <  cat conftest.err >&5
7774 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 <  (exit $ac_status); } &&
7776 <         { ac_try='test -z "$ac_c_werror_flag"
7777 <                         || test ! -s conftest.err'
7778 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 <  (eval $ac_try) 2>&5
7780 <  ac_status=$?
7781 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 <  (exit $ac_status); }; } &&
7783 <         { ac_try='test -s conftest.$ac_objext'
7784 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 <  (eval $ac_try) 2>&5
7786 <  ac_status=$?
7787 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 <  (exit $ac_status); }; }; then
7789 <  ac_cv_type__Bool=yes
7790 < else
7791 <  echo "$as_me: failed program was:" >&5
7792 < sed 's/^/| /' conftest.$ac_ext >&5
8500 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8501 > $as_echo "$ac_cv_header_stdbool_h" >&6; }
8502 > ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8503 > if test "x$ac_cv_type__Bool" = xyes; then :
8504  
7794 ac_cv_type__Bool=no
7795 fi
7796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7799 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7800 if test $ac_cv_type__Bool = yes; then
7801
8505   cat >>confdefs.h <<_ACEOF
8506   #define HAVE__BOOL 1
8507   _ACEOF
# Line 7808 | Line 8511 | if test $ac_cv_header_stdbool_h = yes; then
8511  
8512   if test $ac_cv_header_stdbool_h = yes; then
8513  
8514 < cat >>confdefs.h <<\_ACEOF
7812 < #define HAVE_STDBOOL_H 1
7813 < _ACEOF
8514 > $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8515  
8516   fi
8517  
8518 < echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8519 < echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8520 < if test "${ac_cv_c_const+set}" = set; then
8521 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8518 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8519 > $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8520 > if ${ac_cv_c_const+:} false; then :
8521 >  $as_echo_n "(cached) " >&6
8522   else
8523 <  cat >conftest.$ac_ext <<_ACEOF
7823 < /* confdefs.h.  */
7824 < _ACEOF
7825 < cat confdefs.h >>conftest.$ac_ext
7826 < cat >>conftest.$ac_ext <<_ACEOF
8523 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524   /* end confdefs.h.  */
8525  
8526   #ifdef FC_DUMMY_MAIN
# Line 7841 | Line 8538 | main ()
8538   #ifndef __cplusplus
8539    /* Ultrix mips cc rejects this.  */
8540    typedef int charset[2];
8541 <  const charset x;
8541 >  const charset cs;
8542    /* SunOS 4.1.1 cc rejects this.  */
8543 <  char const *const *ccp;
8544 <  char **p;
8543 >  char const *const *pcpcc;
8544 >  char **ppc;
8545    /* NEC SVR4.0.2 mips cc rejects this.  */
8546    struct point {int x, y;};
8547    static struct point const zero = {0,0};
# Line 7853 | Line 8550 | main ()
8550       an arm of an if-expression whose if-part is not a constant
8551       expression */
8552    const char *g = "string";
8553 <  ccp = &g + (g ? g-g : 0);
8553 >  pcpcc = &g + (g ? g-g : 0);
8554    /* HPUX 7.0 cc rejects these. */
8555 <  ++ccp;
8556 <  p = (char**) ccp;
8557 <  ccp = (char const *const *) p;
8555 >  ++pcpcc;
8556 >  ppc = (char**) pcpcc;
8557 >  pcpcc = (char const *const *) ppc;
8558    { /* SCO 3.2v4 cc rejects this.  */
8559      char *t;
8560      char const *s = 0 ? (char *) 0 : (char const *) 0;
8561  
8562      *t++ = 0;
8563 +    if (s) return 0;
8564    }
8565    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8566      int x[] = {25, 17};
# Line 7881 | Line 8579 | main ()
8579    }
8580    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8581      const int foo = 10;
8582 +    if (!foo) return 0;
8583    }
8584 +  return !cs[0] && !zero.x;
8585   #endif
8586  
8587    ;
8588    return 0;
8589   }
8590   _ACEOF
8591 < rm -f conftest.$ac_objext
7892 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893 <  (eval $ac_compile) 2>conftest.er1
7894 <  ac_status=$?
7895 <  grep -v '^ *+' conftest.er1 >conftest.err
7896 <  rm -f conftest.er1
7897 <  cat conftest.err >&5
7898 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 <  (exit $ac_status); } &&
7900 <         { ac_try='test -z "$ac_c_werror_flag"
7901 <                         || test ! -s conftest.err'
7902 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 <  (eval $ac_try) 2>&5
7904 <  ac_status=$?
7905 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 <  (exit $ac_status); }; } &&
7907 <         { ac_try='test -s conftest.$ac_objext'
7908 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 <  (eval $ac_try) 2>&5
7910 <  ac_status=$?
7911 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 <  (exit $ac_status); }; }; then
8591 > if ac_fn_c_try_compile "$LINENO"; then :
8592    ac_cv_c_const=yes
8593   else
8594 <  echo "$as_me: failed program was:" >&5
7916 < sed 's/^/| /' conftest.$ac_ext >&5
7917 <
7918 < ac_cv_c_const=no
8594 >  ac_cv_c_const=no
8595   fi
8596 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597   fi
8598 < echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8599 < echo "${ECHO_T}$ac_cv_c_const" >&6
8598 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8599 > $as_echo "$ac_cv_c_const" >&6; }
8600   if test $ac_cv_c_const = no; then
8601  
8602 < cat >>confdefs.h <<\_ACEOF
7927 < #define const
7928 < _ACEOF
8602 > $as_echo "#define const /**/" >>confdefs.h
8603  
8604   fi
8605  
8606 < echo "$as_me:$LINENO: checking for inline" >&5
8607 < echo $ECHO_N "checking for inline... $ECHO_C" >&6
8608 < if test "${ac_cv_c_inline+set}" = set; then
8609 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8606 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8607 > $as_echo_n "checking for inline... " >&6; }
8608 > if ${ac_cv_c_inline+:} false; then :
8609 >  $as_echo_n "(cached) " >&6
8610   else
8611    ac_cv_c_inline=no
8612   for ac_kw in inline __inline__ __inline; do
8613 <  cat >conftest.$ac_ext <<_ACEOF
7940 < /* confdefs.h.  */
7941 < _ACEOF
7942 < cat confdefs.h >>conftest.$ac_ext
7943 < cat >>conftest.$ac_ext <<_ACEOF
8613 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614   /* end confdefs.h.  */
8615   #ifndef __cplusplus
8616   typedef int foo_t;
# Line 7949 | Line 8619 | _ACEOF
8619   #endif
8620  
8621   _ACEOF
8622 < rm -f conftest.$ac_objext
8623 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 <  (eval $ac_compile) 2>conftest.er1
7955 <  ac_status=$?
7956 <  grep -v '^ *+' conftest.er1 >conftest.err
7957 <  rm -f conftest.er1
7958 <  cat conftest.err >&5
7959 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 <  (exit $ac_status); } &&
7961 <         { ac_try='test -z "$ac_c_werror_flag"
7962 <                         || test ! -s conftest.err'
7963 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 <  (eval $ac_try) 2>&5
7965 <  ac_status=$?
7966 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 <  (exit $ac_status); }; } &&
7968 <         { ac_try='test -s conftest.$ac_objext'
7969 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 <  (eval $ac_try) 2>&5
7971 <  ac_status=$?
7972 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 <  (exit $ac_status); }; }; then
7974 <  ac_cv_c_inline=$ac_kw; break
7975 < else
7976 <  echo "$as_me: failed program was:" >&5
7977 < sed 's/^/| /' conftest.$ac_ext >&5
7978 <
8622 > if ac_fn_c_try_compile "$LINENO"; then :
8623 >  ac_cv_c_inline=$ac_kw
8624   fi
8625 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 >  test "$ac_cv_c_inline" != no && break
8627   done
8628  
8629   fi
8630 < echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8631 < echo "${ECHO_T}$ac_cv_c_inline" >&6
8630 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8631 > $as_echo "$ac_cv_c_inline" >&6; }
8632  
7987
8633   case $ac_cv_c_inline in
8634    inline | yes) ;;
8635    *)
# Line 8000 | Line 8645 | esac
8645      ;;
8646   esac
8647  
8648 < echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8649 < echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
8650 < if test "${ac_cv_c_restrict+set}" = set; then
8006 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8648 > ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8649 > if test "x$ac_cv_type_size_t" = xyes; then :
8650 >
8651   else
8652 <  ac_cv_c_restrict=no
8653 <   # Try the official restrict keyword, then gcc's __restrict, and
8654 <   # the less common variants.
8011 <   for ac_kw in restrict __restrict __restrict__ _Restrict; do
8012 <     cat >conftest.$ac_ext <<_ACEOF
8013 < /* confdefs.h.  */
8652 >
8653 > cat >>confdefs.h <<_ACEOF
8654 > #define size_t unsigned int
8655   _ACEOF
8656 < cat confdefs.h >>conftest.$ac_ext
8657 < cat >>conftest.$ac_ext <<_ACEOF
8656 >
8657 > fi
8658 >
8659 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8660 > $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8661 > if ${ac_cv_header_time+:} false; then :
8662 >  $as_echo_n "(cached) " >&6
8663 > else
8664 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665   /* end confdefs.h.  */
8666 < float * $ac_kw x;
8666 > #include <sys/types.h>
8667 > #include <sys/time.h>
8668 > #include <time.h>
8669 >
8670 > #ifdef FC_DUMMY_MAIN
8671 > #ifndef FC_DUMMY_MAIN_EQ_F77
8672 > #  ifdef __cplusplus
8673 >     extern "C"
8674 > #  endif
8675 >   int FC_DUMMY_MAIN() { return 1; }
8676 > #endif
8677 > #endif
8678 > int
8679 > main ()
8680 > {
8681 > if ((struct tm *) 0)
8682 > return 0;
8683 >  ;
8684 >  return 0;
8685 > }
8686   _ACEOF
8687 < rm -f conftest.$ac_objext
8688 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022 <  (eval $ac_compile) 2>conftest.er1
8023 <  ac_status=$?
8024 <  grep -v '^ *+' conftest.er1 >conftest.err
8025 <  rm -f conftest.er1
8026 <  cat conftest.err >&5
8027 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 <  (exit $ac_status); } &&
8029 <         { ac_try='test -z "$ac_c_werror_flag"
8030 <                         || test ! -s conftest.err'
8031 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 <  (eval $ac_try) 2>&5
8033 <  ac_status=$?
8034 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 <  (exit $ac_status); }; } &&
8036 <         { ac_try='test -s conftest.$ac_objext'
8037 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 <  (eval $ac_try) 2>&5
8039 <  ac_status=$?
8040 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 <  (exit $ac_status); }; }; then
8042 <  ac_cv_c_restrict=$ac_kw; break
8687 > if ac_fn_c_try_compile "$LINENO"; then :
8688 >  ac_cv_header_time=yes
8689   else
8690 <  echo "$as_me: failed program was:" >&5
8045 < sed 's/^/| /' conftest.$ac_ext >&5
8046 <
8690 >  ac_cv_header_time=no
8691   fi
8692 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693 <   done
8692 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 > fi
8694 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8695 > $as_echo "$ac_cv_header_time" >&6; }
8696 > if test $ac_cv_header_time = yes; then
8697  
8698 + $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8699 +
8700   fi
8701 < echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8702 < echo "${ECHO_T}$ac_cv_c_restrict" >&6
8703 < case $ac_cv_c_restrict in
8704 <   restrict) ;;
8705 <   no)
8706 < cat >>confdefs.h <<\_ACEOF
8707 < #define restrict
8701 >
8702 >
8703 > # Checks for library functions.
8704 > for ac_header in stdlib.h
8705 > do :
8706 >  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8707 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8708 >  cat >>confdefs.h <<_ACEOF
8709 > #define HAVE_STDLIB_H 1
8710   _ACEOF
8060 ;;
8061   *)  cat >>confdefs.h <<_ACEOF
8062 #define restrict $ac_cv_c_restrict
8063 _ACEOF
8064 ;;
8065 esac
8711  
8712 < echo "$as_me:$LINENO: checking for size_t" >&5
8713 < echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8714 < if test "${ac_cv_type_size_t+set}" = set; then
8715 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8712 > fi
8713 >
8714 > done
8715 >
8716 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8717 > $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8718 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
8719 >  $as_echo_n "(cached) " >&6
8720   else
8721 <  cat >conftest.$ac_ext <<_ACEOF
8722 < /* confdefs.h.  */
8723 < _ACEOF
8724 < cat confdefs.h >>conftest.$ac_ext
8076 < cat >>conftest.$ac_ext <<_ACEOF
8721 >  if test "$cross_compiling" = yes; then :
8722 >  ac_cv_func_malloc_0_nonnull=no
8723 > else
8724 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725   /* end confdefs.h.  */
8726 < $ac_includes_default
8726 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8727 > # include <stdlib.h>
8728 > #else
8729 > char *malloc ();
8730 > #endif
8731 >
8732   #ifdef FC_DUMMY_MAIN
8733   #ifndef FC_DUMMY_MAIN_EQ_F77
8734   #  ifdef __cplusplus
# Line 8087 | Line 8740 | main ()
8740   int
8741   main ()
8742   {
8743 < if ((size_t *) 0)
8091 <  return 0;
8092 < if (sizeof (size_t))
8093 <  return 0;
8743 > return ! malloc (0);
8744    ;
8745    return 0;
8746   }
8747   _ACEOF
8748 < rm -f conftest.$ac_objext
8749 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100 <  (eval $ac_compile) 2>conftest.er1
8101 <  ac_status=$?
8102 <  grep -v '^ *+' conftest.er1 >conftest.err
8103 <  rm -f conftest.er1
8104 <  cat conftest.err >&5
8105 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 <  (exit $ac_status); } &&
8107 <         { ac_try='test -z "$ac_c_werror_flag"
8108 <                         || test ! -s conftest.err'
8109 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 <  (eval $ac_try) 2>&5
8111 <  ac_status=$?
8112 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 <  (exit $ac_status); }; } &&
8114 <         { ac_try='test -s conftest.$ac_objext'
8115 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 <  (eval $ac_try) 2>&5
8117 <  ac_status=$?
8118 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 <  (exit $ac_status); }; }; then
8120 <  ac_cv_type_size_t=yes
8748 > if ac_fn_c_try_run "$LINENO"; then :
8749 >  ac_cv_func_malloc_0_nonnull=yes
8750   else
8751 <  echo "$as_me: failed program was:" >&5
8123 < sed 's/^/| /' conftest.$ac_ext >&5
8124 <
8125 < ac_cv_type_size_t=no
8751 >  ac_cv_func_malloc_0_nonnull=no
8752   fi
8753 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8754 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
8755   fi
8756 < echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8757 < echo "${ECHO_T}$ac_cv_type_size_t" >&6
8758 < if test $ac_cv_type_size_t = yes; then
8759 <  :
8756 >
8757 > fi
8758 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8759 > $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8760 > if test $ac_cv_func_malloc_0_nonnull = yes; then :
8761 >
8762 > $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
8763 >
8764   else
8765 +  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
8766  
8767 < cat >>confdefs.h <<_ACEOF
8768 < #define size_t unsigned
8767 >   case " $LIBOBJS " in
8768 >  *" malloc.$ac_objext "* ) ;;
8769 >  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8770 > ;;
8771 > esac
8772 >
8773 >
8774 > $as_echo "#define malloc rpl_malloc" >>confdefs.h
8775 >
8776 > fi
8777 >
8778 >
8779 > for ac_header in stdlib.h
8780 > do :
8781 >  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8782 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8783 >  cat >>confdefs.h <<_ACEOF
8784 > #define HAVE_STDLIB_H 1
8785   _ACEOF
8786  
8787   fi
8788  
8789 < echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8790 < echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8791 < if test "${ac_cv_header_time+set}" = set; then
8792 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8789 > done
8790 >
8791 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8792 > $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8793 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8794 >  $as_echo_n "(cached) " >&6
8795   else
8796 <  cat >conftest.$ac_ext <<_ACEOF
8797 < /* confdefs.h.  */
8798 < _ACEOF
8799 < cat confdefs.h >>conftest.$ac_ext
8150 < cat >>conftest.$ac_ext <<_ACEOF
8796 >  if test "$cross_compiling" = yes; then :
8797 >  ac_cv_func_realloc_0_nonnull=no
8798 > else
8799 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800   /* end confdefs.h.  */
8801 < #include <sys/types.h>
8802 < #include <sys/time.h>
8803 < #include <time.h>
8801 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8802 > # include <stdlib.h>
8803 > #else
8804 > char *realloc ();
8805 > #endif
8806  
8807   #ifdef FC_DUMMY_MAIN
8808   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 8164 | Line 8815 | main ()
8815   int
8816   main ()
8817   {
8818 < if ((struct tm *) 0)
8168 < return 0;
8818 > return ! realloc (0, 0);
8819    ;
8820    return 0;
8821   }
8822   _ACEOF
8823 < rm -f conftest.$ac_objext
8824 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175 <  (eval $ac_compile) 2>conftest.er1
8176 <  ac_status=$?
8177 <  grep -v '^ *+' conftest.er1 >conftest.err
8178 <  rm -f conftest.er1
8179 <  cat conftest.err >&5
8180 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 <  (exit $ac_status); } &&
8182 <         { ac_try='test -z "$ac_c_werror_flag"
8183 <                         || test ! -s conftest.err'
8184 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 <  (eval $ac_try) 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_header_time=yes
8823 > if ac_fn_c_try_run "$LINENO"; then :
8824 >  ac_cv_func_realloc_0_nonnull=yes
8825   else
8826 <  echo "$as_me: failed program was:" >&5
8827 < sed 's/^/| /' conftest.$ac_ext >&5
8826 >  ac_cv_func_realloc_0_nonnull=no
8827 > fi
8828 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8829 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
8830 > fi
8831  
8200 ac_cv_header_time=no
8832   fi
8833 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8833 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8834 > $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8835 > if test $ac_cv_func_realloc_0_nonnull = yes; then :
8836 >
8837 > $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8838 >
8839 > else
8840 >  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8841 >
8842 >   case " $LIBOBJS " in
8843 >  *" realloc.$ac_objext "* ) ;;
8844 >  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8845 > ;;
8846 > esac
8847 >
8848 >
8849 > $as_echo "#define realloc rpl_realloc" >>confdefs.h
8850 >
8851   fi
8204 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8205 echo "${ECHO_T}$ac_cv_header_time" >&6
8206 if test $ac_cv_header_time = yes; then
8852  
8853 < cat >>confdefs.h <<\_ACEOF
8854 < #define TIME_WITH_SYS_TIME 1
8853 >
8854 > for ac_header in sys/select.h sys/socket.h
8855 > do :
8856 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857 > ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8858 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8859 >  cat >>confdefs.h <<_ACEOF
8860 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861   _ACEOF
8862  
8863   fi
8864  
8865 < echo "$as_me:$LINENO: checking for clock_t" >&5
8866 < echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8867 < if test "${ac_cv_type_clock_t+set}" = set; then
8868 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8865 > done
8866 >
8867 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8868 > $as_echo_n "checking types of arguments for select... " >&6; }
8869 > if ${ac_cv_func_select_args+:} false; then :
8870 >  $as_echo_n "(cached) " >&6
8871   else
8872 <  cat >conftest.$ac_ext <<_ACEOF
8873 < /* confdefs.h.  */
8874 < _ACEOF
8875 < cat confdefs.h >>conftest.$ac_ext
8223 < cat >>conftest.$ac_ext <<_ACEOF
8872 >  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8873 > for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8874 >  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8875 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876   /* end confdefs.h.  */
8877   $ac_includes_default
8878 + #ifdef HAVE_SYS_SELECT_H
8879 + # include <sys/select.h>
8880 + #endif
8881 + #ifdef HAVE_SYS_SOCKET_H
8882 + # include <sys/socket.h>
8883 + #endif
8884 +
8885   #ifdef FC_DUMMY_MAIN
8886   #ifndef FC_DUMMY_MAIN_EQ_F77
8887   #  ifdef __cplusplus
# Line 8234 | Line 8893 | main ()
8893   int
8894   main ()
8895   {
8896 < if ((clock_t *) 0)
8897 <  return 0;
8898 < if (sizeof (clock_t))
8240 <  return 0;
8896 > extern int select ($ac_arg1,
8897 >                                            $ac_arg234, $ac_arg234, $ac_arg234,
8898 >                                            $ac_arg5);
8899    ;
8900    return 0;
8901   }
8902   _ACEOF
8903 < rm -f conftest.$ac_objext
8904 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8905 <  (eval $ac_compile) 2>conftest.er1
8906 <  ac_status=$?
8907 <  grep -v '^ *+' conftest.er1 >conftest.err
8908 <  rm -f conftest.er1
8909 <  cat conftest.err >&5
8910 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 <  (exit $ac_status); } &&
8254 <         { ac_try='test -z "$ac_c_werror_flag"
8255 <                         || test ! -s conftest.err'
8256 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 <  (eval $ac_try) 2>&5
8258 <  ac_status=$?
8259 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 <  (exit $ac_status); }; } &&
8261 <         { ac_try='test -s conftest.$ac_objext'
8262 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 <  (eval $ac_try) 2>&5
8264 <  ac_status=$?
8265 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 <  (exit $ac_status); }; }; then
8267 <  ac_cv_type_clock_t=yes
8268 < else
8269 <  echo "$as_me: failed program was:" >&5
8270 < sed 's/^/| /' conftest.$ac_ext >&5
8903 > if ac_fn_c_try_compile "$LINENO"; then :
8904 >  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8905 > fi
8906 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 >  done
8908 > done
8909 > done
8910 > # Provide a safe default value.
8911 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
8912  
8272 ac_cv_type_clock_t=no
8913   fi
8914 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8915 < fi
8916 < echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
8917 < echo "${ECHO_T}$ac_cv_type_clock_t" >&6
8918 < if test $ac_cv_type_clock_t = yes; then
8914 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8915 > $as_echo "$ac_cv_func_select_args" >&6; }
8916 > ac_save_IFS=$IFS; IFS=','
8917 > set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8918 > IFS=$ac_save_IFS
8919 > shift
8920  
8921   cat >>confdefs.h <<_ACEOF
8922 < #define HAVE_CLOCK_T 1
8922 > #define SELECT_TYPE_ARG1 $1
8923   _ACEOF
8924  
8925  
8926 < fi
8926 > cat >>confdefs.h <<_ACEOF
8927 > #define SELECT_TYPE_ARG234 ($2)
8928 > _ACEOF
8929  
8930 < echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8931 < echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8932 < if test "${ac_cv_c_const+set}" = set; then
8290 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8291 < else
8292 <  cat >conftest.$ac_ext <<_ACEOF
8293 < /* confdefs.h.  */
8930 >
8931 > cat >>confdefs.h <<_ACEOF
8932 > #define SELECT_TYPE_ARG5 ($3)
8933   _ACEOF
8934 < cat confdefs.h >>conftest.$ac_ext
8935 < cat >>conftest.$ac_ext <<_ACEOF
8934 >
8935 > rm -f conftest*
8936 >
8937 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8938 > $as_echo_n "checking for working strtod... " >&6; }
8939 > if ${ac_cv_func_strtod+:} false; then :
8940 >  $as_echo_n "(cached) " >&6
8941 > else
8942 >  if test "$cross_compiling" = yes; then :
8943 >  ac_cv_func_strtod=no
8944 > else
8945 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946   /* end confdefs.h.  */
8947  
8948 < #ifdef FC_DUMMY_MAIN
8949 < #ifndef FC_DUMMY_MAIN_EQ_F77
8950 < #  ifdef __cplusplus
8302 <     extern "C"
8303 < #  endif
8304 <   int FC_DUMMY_MAIN() { return 1; }
8948 > $ac_includes_default
8949 > #ifndef strtod
8950 > double strtod ();
8951   #endif
8306 #endif
8952   int
8953 < main ()
8953 > main()
8954   {
8955 < /* FIXME: Include the comments suggested by Paul. */
8956 < #ifndef __cplusplus
8957 <  /* Ultrix mips cc rejects this.  */
8958 <  typedef int charset[2];
8959 <  const charset x;
8960 <  /* SunOS 4.1.1 cc rejects this.  */
8961 <  char const *const *ccp;
8962 <  char **p;
8318 <  /* NEC SVR4.0.2 mips cc rejects this.  */
8319 <  struct point {int x, y;};
8320 <  static struct point const zero = {0,0};
8321 <  /* AIX XL C 1.02.0.0 rejects this.
8322 <     It does not let you subtract one const X* pointer from another in
8323 <     an arm of an if-expression whose if-part is not a constant
8324 <     expression */
8325 <  const char *g = "string";
8326 <  ccp = &g + (g ? g-g : 0);
8327 <  /* HPUX 7.0 cc rejects these. */
8328 <  ++ccp;
8329 <  p = (char**) ccp;
8330 <  ccp = (char const *const *) p;
8331 <  { /* SCO 3.2v4 cc rejects this.  */
8332 <    char *t;
8333 <    char const *s = 0 ? (char *) 0 : (char const *) 0;
8334 <
8335 <    *t++ = 0;
8955 >  {
8956 >    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
8957 >    char *string = " +69";
8958 >    char *term;
8959 >    double value;
8960 >    value = strtod (string, &term);
8961 >    if (value != 69 || term != (string + 4))
8962 >      return 1;
8963    }
8337  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8338    int x[] = {25, 17};
8339    const int *foo = &x[0];
8340    ++foo;
8341  }
8342  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8343    typedef const int *iptr;
8344    iptr p = 0;
8345    ++p;
8346  }
8347  { /* AIX XL C 1.02.0.0 rejects this saying
8348       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8349    struct s { int j; const int *ap[3]; };
8350    struct s *b; b->j = 5;
8351  }
8352  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8353    const int foo = 10;
8354  }
8355 #endif
8964  
8965 <  ;
8965 >  {
8966 >    /* Under Solaris 2.4, strtod returns the wrong value for the
8967 >       terminating character under some conditions.  */
8968 >    char *string = "NaN";
8969 >    char *term;
8970 >    strtod (string, &term);
8971 >    if (term != string && *(term - 1) == 0)
8972 >      return 1;
8973 >  }
8974    return 0;
8975   }
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363  (eval $ac_compile) 2>conftest.er1
8364  ac_status=$?
8365  grep -v '^ *+' conftest.er1 >conftest.err
8366  rm -f conftest.er1
8367  cat conftest.err >&5
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); } &&
8370         { ac_try='test -z "$ac_c_werror_flag"
8371                         || test ! -s conftest.err'
8372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373  (eval $ac_try) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); }; } &&
8377         { ac_try='test -s conftest.$ac_objext'
8378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379  (eval $ac_try) 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_cv_c_const=yes
8384 else
8385  echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8976  
8388 ac_cv_c_const=no
8389 fi
8390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8393 echo "${ECHO_T}$ac_cv_c_const" >&6
8394 if test $ac_cv_c_const = no; then
8395
8396 cat >>confdefs.h <<\_ACEOF
8397 #define const
8977   _ACEOF
8978 <
8979 < fi
8401 <
8402 < echo "$as_me:$LINENO: checking for inline" >&5
8403 < echo $ECHO_N "checking for inline... $ECHO_C" >&6
8404 < if test "${ac_cv_c_inline+set}" = set; then
8405 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8978 > if ac_fn_c_try_run "$LINENO"; then :
8979 >  ac_cv_func_strtod=yes
8980   else
8981 <  ac_cv_c_inline=no
8408 < for ac_kw in inline __inline__ __inline; do
8409 <  cat >conftest.$ac_ext <<_ACEOF
8410 < /* confdefs.h.  */
8411 < _ACEOF
8412 < cat confdefs.h >>conftest.$ac_ext
8413 < cat >>conftest.$ac_ext <<_ACEOF
8414 < /* end confdefs.h.  */
8415 < #ifndef __cplusplus
8416 < typedef int foo_t;
8417 < static $ac_kw foo_t static_foo () {return 0; }
8418 < $ac_kw foo_t foo () {return 0; }
8419 < #endif
8420 <
8421 < _ACEOF
8422 < rm -f conftest.$ac_objext
8423 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8424 <  (eval $ac_compile) 2>conftest.er1
8425 <  ac_status=$?
8426 <  grep -v '^ *+' conftest.er1 >conftest.err
8427 <  rm -f conftest.er1
8428 <  cat conftest.err >&5
8429 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 <  (exit $ac_status); } &&
8431 <         { ac_try='test -z "$ac_c_werror_flag"
8432 <                         || test ! -s conftest.err'
8433 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 <  (eval $ac_try) 2>&5
8435 <  ac_status=$?
8436 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 <  (exit $ac_status); }; } &&
8438 <         { ac_try='test -s conftest.$ac_objext'
8439 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 <  (eval $ac_try) 2>&5
8441 <  ac_status=$?
8442 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 <  (exit $ac_status); }; }; then
8444 <  ac_cv_c_inline=$ac_kw; break
8445 < else
8446 <  echo "$as_me: failed program was:" >&5
8447 < sed 's/^/| /' conftest.$ac_ext >&5
8448 <
8981 >  ac_cv_func_strtod=no
8982   fi
8983 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984 < done
8452 <
8983 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8984 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
8985   fi
8454 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8455 echo "${ECHO_T}$ac_cv_c_inline" >&6
8986  
8457
8458 case $ac_cv_c_inline in
8459  inline | yes) ;;
8460  *)
8461    case $ac_cv_c_inline in
8462      no) ac_val=;;
8463      *) ac_val=$ac_cv_c_inline;;
8464    esac
8465    cat >>confdefs.h <<_ACEOF
8466 #ifndef __cplusplus
8467 #define inline $ac_val
8468 #endif
8469 _ACEOF
8470    ;;
8471 esac
8472
8473
8474 # Checks for library functions.
8475
8476 for ac_header in stdlib.h
8477 do
8478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480  echo "$as_me:$LINENO: checking for $ac_header" >&5
8481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8483  echo $ECHO_N "(cached) $ECHO_C" >&6
8987   fi
8988 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8990 < else
8991 <  # Is the header compilable?
8992 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
8993 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8994 < cat >conftest.$ac_ext <<_ACEOF
8492 < /* confdefs.h.  */
8493 < _ACEOF
8494 < cat confdefs.h >>conftest.$ac_ext
8495 < cat >>conftest.$ac_ext <<_ACEOF
8496 < /* end confdefs.h.  */
8497 < $ac_includes_default
8498 < #include <$ac_header>
8499 < _ACEOF
8500 < rm -f conftest.$ac_objext
8501 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 <  (eval $ac_compile) 2>conftest.er1
8503 <  ac_status=$?
8504 <  grep -v '^ *+' conftest.er1 >conftest.err
8505 <  rm -f conftest.er1
8506 <  cat conftest.err >&5
8507 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 <  (exit $ac_status); } &&
8509 <         { ac_try='test -z "$ac_c_werror_flag"
8510 <                         || test ! -s conftest.err'
8511 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 <  (eval $ac_try) 2>&5
8513 <  ac_status=$?
8514 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 <  (exit $ac_status); }; } &&
8516 <         { ac_try='test -s conftest.$ac_objext'
8517 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 <  (eval $ac_try) 2>&5
8519 <  ac_status=$?
8520 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 <  (exit $ac_status); }; }; then
8522 <  ac_header_compiler=yes
8523 < else
8524 <  echo "$as_me: failed program was:" >&5
8525 < sed 's/^/| /' conftest.$ac_ext >&5
8526 <
8527 < ac_header_compiler=no
8528 < fi
8529 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8530 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8531 < echo "${ECHO_T}$ac_header_compiler" >&6
8532 <
8533 < # Is the header present?
8534 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
8535 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8536 < cat >conftest.$ac_ext <<_ACEOF
8537 < /* confdefs.h.  */
8538 < _ACEOF
8539 < cat confdefs.h >>conftest.$ac_ext
8540 < cat >>conftest.$ac_ext <<_ACEOF
8541 < /* end confdefs.h.  */
8542 < #include <$ac_header>
8543 < _ACEOF
8544 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8545 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8546 <  ac_status=$?
8547 <  grep -v '^ *+' conftest.er1 >conftest.err
8548 <  rm -f conftest.er1
8549 <  cat conftest.err >&5
8550 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 <  (exit $ac_status); } >/dev/null; then
8552 <  if test -s conftest.err; then
8553 <    ac_cpp_err=$ac_c_preproc_warn_flag
8554 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8555 <  else
8556 <    ac_cpp_err=
8557 <  fi
8558 < else
8559 <  ac_cpp_err=yes
8560 < fi
8561 < if test -z "$ac_cpp_err"; then
8562 <  ac_header_preproc=yes
8563 < else
8564 <  echo "$as_me: failed program was:" >&5
8565 < sed 's/^/| /' conftest.$ac_ext >&5
8566 <
8567 <  ac_header_preproc=no
8568 < fi
8569 < rm -f conftest.err conftest.$ac_ext
8570 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8571 < echo "${ECHO_T}$ac_header_preproc" >&6
8572 <
8573 < # So?  What about this header?
8574 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575 <  yes:no: )
8576 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8577 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8579 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8580 <    ac_header_preproc=yes
8581 <    ;;
8582 <  no:yes:* )
8583 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8584 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8585 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8586 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8587 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8588 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8589 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8590 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8591 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8592 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8593 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8594 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595 <    (
8596 <      cat <<\_ASBOX
8597 < ## ------------------------------ ##
8598 < ## Report this to gezelter@nd.edu ##
8599 < ## ------------------------------ ##
8600 < _ASBOX
8601 <    ) |
8602 <      sed "s/^/$as_me: WARNING:     /" >&2
8603 <    ;;
8988 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
8989 > $as_echo "$ac_cv_func_strtod" >&6; }
8990 > if test $ac_cv_func_strtod = no; then
8991 >  case " $LIBOBJS " in
8992 >  *" strtod.$ac_objext "* ) ;;
8993 >  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8994 > ;;
8995   esac
8605 echo "$as_me:$LINENO: checking for $ac_header" >&5
8606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8608  echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610  eval "$as_ac_Header=\$ac_header_preproc"
8611 fi
8612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996  
8997 < fi
8998 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
8617 <  cat >>confdefs.h <<_ACEOF
8618 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 < _ACEOF
8997 > ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8998 > if test "x$ac_cv_func_pow" = xyes; then :
8999  
9000   fi
9001  
9002 < done
9003 <
9004 < echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9005 < echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9006 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8628 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9002 > if test $ac_cv_func_pow = no; then
9003 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
9004 > $as_echo_n "checking for pow in -lm... " >&6; }
9005 > if ${ac_cv_lib_m_pow+:} false; then :
9006 >  $as_echo_n "(cached) " >&6
9007   else
9008 <  if test "$cross_compiling" = yes; then
9009 <  ac_cv_func_malloc_0_nonnull=no
9010 < else
8633 <  cat >conftest.$ac_ext <<_ACEOF
8634 < /* confdefs.h.  */
8635 < _ACEOF
8636 < cat confdefs.h >>conftest.$ac_ext
8637 < cat >>conftest.$ac_ext <<_ACEOF
9008 >  ac_check_lib_save_LIBS=$LIBS
9009 > LIBS="-lm  $LIBS"
9010 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011   /* end confdefs.h.  */
8639 #if STDC_HEADERS || HAVE_STDLIB_H
8640 # include <stdlib.h>
8641 #else
8642 char *malloc ();
8643 #endif
9012  
9013 + /* Override any GCC internal prototype to avoid an error.
9014 +   Use char because int might match the return type of a GCC
9015 +   builtin and then its argument prototype would still apply.  */
9016 + #ifdef __cplusplus
9017 + extern "C"
9018 + #endif
9019 + char pow ();
9020   #ifdef FC_DUMMY_MAIN
9021   #ifndef FC_DUMMY_MAIN_EQ_F77
9022   #  ifdef __cplusplus
# Line 8653 | Line 9028 | main ()
9028   int
9029   main ()
9030   {
9031 < exit (malloc (0) ? 0 : 1);
9031 > return pow ();
9032    ;
9033    return 0;
9034   }
9035   _ACEOF
9036 < rm -f conftest$ac_exeext
9037 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 <  (eval $ac_link) 2>&5
8664 <  ac_status=$?
8665 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8667 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 <  (eval $ac_try) 2>&5
8669 <  ac_status=$?
8670 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 <  (exit $ac_status); }; }; then
8672 <  ac_cv_func_malloc_0_nonnull=yes
9036 > if ac_fn_c_try_link "$LINENO"; then :
9037 >  ac_cv_lib_m_pow=yes
9038   else
9039 <  echo "$as_me: program exited with status $ac_status" >&5
8675 < echo "$as_me: failed program was:" >&5
8676 < sed 's/^/| /' conftest.$ac_ext >&5
8677 <
8678 < ( exit $ac_status )
8679 < ac_cv_func_malloc_0_nonnull=no
9039 >  ac_cv_lib_m_pow=no
9040   fi
9041 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9041 > rm -f core conftest.err conftest.$ac_objext \
9042 >    conftest$ac_exeext conftest.$ac_ext
9043 > LIBS=$ac_check_lib_save_LIBS
9044   fi
9045 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
9046 + $as_echo "$ac_cv_lib_m_pow" >&6; }
9047 + if test "x$ac_cv_lib_m_pow" = xyes; then :
9048 +  POW_LIB=-lm
9049 + else
9050 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
9051 + $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9052   fi
8684 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8685 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8686 if test $ac_cv_func_malloc_0_nonnull = yes; then
9053  
9054 < cat >>confdefs.h <<\_ACEOF
8689 < #define HAVE_MALLOC 1
8690 < _ACEOF
9054 > fi
9055  
9056 < else
8693 <  cat >>confdefs.h <<\_ACEOF
8694 < #define HAVE_MALLOC 0
8695 < _ACEOF
9056 > fi
9057  
9058 <   case $LIBOBJS in
9059 <    "malloc.$ac_objext"   | \
9060 <  *" malloc.$ac_objext"   | \
9061 <    "malloc.$ac_objext "* | \
9062 <  *" malloc.$ac_objext "* ) ;;
9063 <  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9064 < esac
8704 <
8705 <
8706 < cat >>confdefs.h <<\_ACEOF
8707 < #define malloc rpl_malloc
9058 > for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table
9059 > do :
9060 >  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9061 > ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9062 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9063 >  cat >>confdefs.h <<_ACEOF
9064 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065   _ACEOF
9066  
9067   fi
9068 + done
9069  
9070  
9071 <
9072 < echo "$as_me:$LINENO: checking for working memcmp" >&5
9073 < echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9074 < if test "${ac_cv_func_memcmp_working+set}" = set; then
9075 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8718 < else
8719 <  if test "$cross_compiling" = yes; then
8720 <  ac_cv_func_memcmp_working=no
8721 < else
8722 <  cat >conftest.$ac_ext <<_ACEOF
8723 < /* confdefs.h.  */
8724 < _ACEOF
8725 < cat confdefs.h >>conftest.$ac_ext
8726 < cat >>conftest.$ac_ext <<_ACEOF
9071 > # special check for _system_configuration because AIX <4.3.2 do not
9072 > # contain the `physmem' member.
9073 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
9074 > $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9075 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076   /* end confdefs.h.  */
9077 < $ac_includes_default
9077 > #include <sys/systemcfg.h>
9078   #ifdef FC_DUMMY_MAIN
9079   #ifndef FC_DUMMY_MAIN_EQ_F77
9080   #  ifdef __cplusplus
# Line 8737 | Line 9086 | main ()
9086   int
9087   main ()
9088   {
9089 <
8741 <  /* Some versions of memcmp are not 8-bit clean.  */
8742 <  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8743 <  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8744 <    exit (1);
8745 <
8746 <  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8747 <     or more and with at least one buffer not starting on a 4-byte boundary.
8748 <     William Lewis provided this test program.   */
8749 <  {
8750 <    char foo[21];
8751 <    char bar[21];
8752 <    int i;
8753 <    for (i = 0; i < 4; i++)
8754 <      {
8755 <        char *a = foo + i;
8756 <        char *b = bar + i;
8757 <        strcpy (a, "--------01111111");
8758 <        strcpy (b, "--------10000000");
8759 <        if (memcmp (a, b, 16) >= 0)
8760 <          exit (1);
8761 <      }
8762 <    exit (0);
8763 <  }
8764 <
9089 > double x = _system_configuration.physmem;
9090    ;
9091    return 0;
9092   }
9093   _ACEOF
9094 < rm -f conftest$ac_exeext
9095 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 <  (eval $ac_link) 2>&5
9094 > if ac_fn_c_try_compile "$LINENO"; then :
9095 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9096 > $as_echo "yes" >&6; }
9097 >
9098 > $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
9099 >
9100 > else
9101 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 > $as_echo "no" >&6; }
9103 > fi
9104 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 >
9106 >
9107 > case $debug in
9108 >  1)
9109 >     ;;
9110 >  *)
9111 >
9112 >
9113 >
9114 >
9115 >
9116 > # Try to determine "good" native compiler flags if none specified on command
9117 > # line
9118 >
9119 > if test "$ac_test_FCFLAGS" != "set"; then
9120 >  FCFLAGS=""
9121 >  case "${host_cpu}-${host_os}" in
9122 >
9123 >  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
9124 >                    FCFLAGS="-O2"
9125 >                fi;;
9126 >   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
9127 >                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
9128 >                fi;;
9129 >   powerpc*-aix*)
9130 >        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
9131 >                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
9132 >                echo "*******************************************************"
9133 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
9134 >                echo "*  recommended that you use                           *"
9135 >                echo "*                                                     *"
9136 >                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
9137 >                echo "*                                 ^^^                 *"
9138 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
9139 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
9140 >                echo "*******************************************************"
9141 >        fi;;
9142 >   *darwin*)
9143 >        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
9144 >                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
9145 >        fi
9146 >        if test "$FC" = ifort; then
9147 >                FCFLAGS="-O2"
9148 >        fi
9149 >        if test "$FC" = gfortran; then
9150 >                FCFLAGS="-Os"
9151 >        fi;;
9152 >  esac
9153 >
9154 >  if test -z "$FCFLAGS"; then
9155 >        echo ""
9156 >        echo "*********************************************************"
9157 >        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
9158 >        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9159 >        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
9160 >        echo "*********************************************************"
9161 >        echo ""
9162 >        FCFLAGS="-O"
9163 >  fi
9164 >
9165 >
9166 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9167 > $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9168 > if ${ac_cv_ac_cv_guessed_f90flags+:} false; then :
9169 >  $as_echo_n "(cached) " >&6
9170 > else
9171 >
9172 >
9173 > ac_ext=${ac_fc_srcext-f}
9174 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
9175 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
9176 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
9177 >
9178 > echo 'program main' > conftest.$ac_ext
9179 > echo 'end program main' >> conftest.$ac_ext
9180 > ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
9181 > if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9182 >  (eval $ac_compile) 2>&5
9183    ac_status=$?
9184 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9186 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 <  (eval $ac_try) 2>&5
8777 <  ac_status=$?
8778 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 <  (exit $ac_status); }; }; then
8780 <  ac_cv_func_memcmp_working=yes
9184 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9185 >  test $ac_status = 0; }; then
9186 >        ac_cv_ac_cv_guessed_f90flags=yes
9187   else
9188 <  echo "$as_me: program exited with status $ac_status" >&5
9189 < echo "$as_me: failed program was:" >&5
9190 < sed 's/^/| /' conftest.$ac_ext >&5
9188 >        ac_cv_ac_cv_guessed_f90flags=no
9189 > fi
9190 > rm -f conftest*
9191 > ac_ext=c
9192 > ac_cpp='$CPP $CPPFLAGS'
9193 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9194 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9195 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
9196  
9197 < ( exit $ac_status )
8787 < ac_cv_func_memcmp_working=no
9197 >
9198   fi
9199 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9199 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
9200 > $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
9201 > if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
9202 >        :
9203 >
9204 > else
9205 >        :
9206 >
9207 >        echo ""
9208 >        echo "**********************************************************"
9209 >        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
9210 >        echo "* your compiler.                                        *"
9211 >        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9212 >        echo "*********************************************************"
9213 >        echo ""
9214 >        FCFLAGS=""
9215 >
9216   fi
9217 +
9218 +
9219   fi
8792 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8793 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8794 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
8795    "memcmp.$ac_objext"   | \
8796  *" memcmp.$ac_objext"   | \
8797    "memcmp.$ac_objext "* | \
8798  *" memcmp.$ac_objext "* ) ;;
8799  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
8800 esac
9220  
9221  
9222  
9223 < for ac_header in stdlib.h
9224 < do
9225 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
9228 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9229 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8812 < fi
8813 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8814 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9223 >
9224 >
9225 >
9226 >
9227 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
9228 > $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
9229 > if ${ac_cv_prog_really_gcc+:} false; then :
9230 >  $as_echo_n "(cached) " >&6
9231   else
9232 <  # Is the header compilable?
9233 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
9234 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9235 < cat >conftest.$ac_ext <<_ACEOF
9236 < /* confdefs.h.  */
9237 < _ACEOF
9238 < cat confdefs.h >>conftest.$ac_ext
9239 < cat >>conftest.$ac_ext <<_ACEOF
9240 < /* end confdefs.h.  */
9241 < $ac_includes_default
9242 < #include <$ac_header>
9243 < _ACEOF
8828 < rm -f conftest.$ac_objext
8829 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 <  (eval $ac_compile) 2>conftest.er1
8831 <  ac_status=$?
8832 <  grep -v '^ *+' conftest.er1 >conftest.err
8833 <  rm -f conftest.er1
8834 <  cat conftest.err >&5
8835 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 <  (exit $ac_status); } &&
8837 <         { ac_try='test -z "$ac_c_werror_flag"
8838 <                         || test ! -s conftest.err'
8839 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 >
9233 > cat > conftest.c <<EOF
9234 > #ifdef __GNUC__
9235 >  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
9236 >     no;
9237 >  #else
9238 >     yes;
9239 >  #endif
9240 > #endif
9241 > EOF
9242 > if { ac_try='${CC-cc} -E conftest.c'
9243 >  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9244    (eval $ac_try) 2>&5
9245    ac_status=$?
9246 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 <  (exit $ac_status); }; } &&
9248 <         { ac_try='test -s conftest.$ac_objext'
8845 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 <  (eval $ac_try) 2>&5
8847 <  ac_status=$?
8848 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 <  (exit $ac_status); }; }; then
8850 <  ac_header_compiler=yes
9246 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9247 >  test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
9248 >  ac_cv_prog_really_gcc=yes
9249   else
9250 <  echo "$as_me: failed program was:" >&5
9251 < sed 's/^/| /' conftest.$ac_ext >&5
9250 >  ac_cv_prog_really_gcc=no
9251 > fi
9252  
8855 ac_header_compiler=no
9253   fi
9254 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9255 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 < echo "${ECHO_T}$ac_header_compiler" >&6
9254 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_really_gcc" >&5
9255 > $as_echo "$ac_cv_prog_really_gcc" >&6; }
9256 > if test "$ac_cv_prog_really_gcc" = yes; then
9257 >        :
9258  
8861 # Is the header present?
8862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h.  */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h.  */
8870 #include <$ac_header>
8871 _ACEOF
8872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8874  ac_status=$?
8875  grep -v '^ *+' conftest.er1 >conftest.err
8876  rm -f conftest.er1
8877  cat conftest.err >&5
8878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879  (exit $ac_status); } >/dev/null; then
8880  if test -s conftest.err; then
8881    ac_cpp_err=$ac_c_preproc_warn_flag
8882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8883  else
8884    ac_cpp_err=
8885  fi
9259   else
9260 <  ac_cpp_err=yes
8888 < fi
8889 < if test -z "$ac_cpp_err"; then
8890 <  ac_header_preproc=yes
8891 < else
8892 <  echo "$as_me: failed program was:" >&5
8893 < sed 's/^/| /' conftest.$ac_ext >&5
9260 >        :
9261  
8895  ac_header_preproc=no
9262   fi
8897 rm -f conftest.err conftest.$ac_ext
8898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8899 echo "${ECHO_T}$ac_header_preproc" >&6
9263  
8901 # So?  What about this header?
8902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8903  yes:no: )
8904    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8906    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8908    ac_header_preproc=yes
8909    ;;
8910  no:yes:* )
8911    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8913    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8915    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8917    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8921    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8923    (
8924      cat <<\_ASBOX
8925 ## ------------------------------ ##
8926 ## Report this to gezelter@nd.edu ##
8927 ## ------------------------------ ##
8928 _ASBOX
8929    ) |
8930      sed "s/^/$as_me: WARNING:     /" >&2
8931    ;;
8932 esac
8933 echo "$as_me:$LINENO: checking for $ac_header" >&5
8934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8936  echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938  eval "$as_ac_Header=\$ac_header_preproc"
8939 fi
8940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264  
9265 < fi
9266 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
9267 <  cat >>confdefs.h <<_ACEOF
9268 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 < _ACEOF
9265 > # Try to determine "good" native compiler flags if none specified on command
9266 > # line
9267 > if test "$ac_test_CFLAGS" != "set"; then
9268 >  CFLAGS=""
9269 >  case "${host_cpu}-${host_os}" in
9270  
9271 < fi
9271 >  *linux*) if test "$CC" = icc; then
9272 >                    CFLAGS="-O2"
9273 >                fi;;
9274 >  sparc-solaris2*) if test "$CC" = cc; then
9275 >                    CFLAGS="-O -dalign"
9276 >                 fi;;
9277  
9278 < done
9278 >  alpha*-osf*)  if test "$CC" = cc; then
9279 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
9280 >                fi;;
9281  
9282 < echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9283 < echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
9284 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9285 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9282 >  hppa*-hpux*)  if test "$CC" = cc; then
9283 >                    CFLAGS="-Ae +O3 +Oall"
9284 >                fi;;
9285 >
9286 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
9287 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
9288 >                fi;;
9289 >   powerpc*-aix*)
9290 >        if test "$CC" = cc -o "$CC" = xlc; then
9291 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
9292 >                echo "*******************************************************"
9293 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
9294 >                echo "*  recommended that you use                           *"
9295 >                echo "*                                                     *"
9296 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
9297 >                echo "*                                 ^^^                 *"
9298 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
9299 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
9300 >                echo "*******************************************************"
9301 >        fi;;
9302 >   *darwin*)
9303 >        if test "$CC" = xlc; then
9304 >                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
9305 >        fi
9306 >        if test "$CC" = icc; then
9307 >                CFLAGS="-O2"
9308 >        fi
9309 >        if test $ac_cv_prog_really_gcc = yes; then
9310 >                CFLAGS="-Os"
9311 >        fi;;
9312 >  esac
9313 >
9314 >  # use default flags for gcc on all systems
9315 >  if test $ac_cv_prog_really_gcc = yes -a -z "$CFLAGS"; then
9316 >     CFLAGS="-O2"
9317 >  fi
9318 >
9319 >  if test -z "$CFLAGS"; then
9320 >        echo ""
9321 >        echo "********************************************************"
9322 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
9323 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
9324 >        echo "* (otherwise, a default of CFLAGS=-O will be used)     *"
9325 >        echo "********************************************************"
9326 >        echo ""
9327 >        CFLAGS="-O"
9328 >  fi
9329 >
9330 >
9331 >
9332 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
9333 > $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
9334 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
9335 >  $as_echo_n "(cached) " >&6
9336   else
9337 <  if test "$cross_compiling" = yes; then
9338 <  ac_cv_func_realloc_0_nonnull=no
9337 >  echo 'void f(){}' > conftest.c
9338 > if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
9339 >        ac_cv_ac_cv_guessed_cflags=yes
9340   else
9341 <  cat >conftest.$ac_ext <<_ACEOF
9342 < /* confdefs.h.  */
9343 < _ACEOF
8964 < cat confdefs.h >>conftest.$ac_ext
8965 < cat >>conftest.$ac_ext <<_ACEOF
8966 < /* end confdefs.h.  */
8967 < #if STDC_HEADERS || HAVE_STDLIB_H
8968 < # include <stdlib.h>
8969 < #else
8970 < char *realloc ();
8971 < #endif
9341 >        ac_cv_ac_cv_guessed_cflags=no
9342 > fi
9343 > rm -f conftest*
9344  
8973 #ifdef FC_DUMMY_MAIN
8974 #ifndef FC_DUMMY_MAIN_EQ_F77
8975 #  ifdef __cplusplus
8976     extern "C"
8977 #  endif
8978   int FC_DUMMY_MAIN() { return 1; }
8979 #endif
8980 #endif
8981 int
8982 main ()
8983 {
8984 exit (realloc (0, 0) ? 0 : 1);
8985  ;
8986  return 0;
8987 }
8988 _ACEOF
8989 rm -f conftest$ac_exeext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991  (eval $ac_link) 2>&5
8992  ac_status=$?
8993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996  (eval $ac_try) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); }; }; then
9000  ac_cv_func_realloc_0_nonnull=yes
9001 else
9002  echo "$as_me: program exited with status $ac_status" >&5
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 ( exit $ac_status )
9007 ac_cv_func_realloc_0_nonnull=no
9345   fi
9346 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9347 < fi
9348 < fi
9349 < echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
9013 < echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
9014 < if test $ac_cv_func_realloc_0_nonnull = yes; then
9346 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_cflags" >&5
9347 > $as_echo "$ac_cv_ac_cv_guessed_cflags" >&6; }
9348 > if test "$ac_cv_ac_cv_guessed_cflags" = yes; then
9349 >        :
9350  
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_REALLOC 1
9018 _ACEOF
9019
9351   else
9352 <  cat >>confdefs.h <<\_ACEOF
9022 < #define HAVE_REALLOC 0
9023 < _ACEOF
9352 >        :
9353  
9354 <   case $LIBOBJS in
9355 <    "realloc.$ac_objext"   | \
9356 <  *" realloc.$ac_objext"   | \
9357 <    "realloc.$ac_objext "* | \
9358 <  *" realloc.$ac_objext "* ) ;;
9359 <  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
9360 < esac
9354 >        echo ""
9355 >        echo "********************************************************"
9356 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
9357 >        echo "* your compiler.                                       *"
9358 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
9359 >        echo "********************************************************"
9360 >        echo ""
9361 >        CFLAGS=""
9362  
9363 + fi
9364  
9034 cat >>confdefs.h <<\_ACEOF
9035 #define realloc rpl_realloc
9036 _ACEOF
9365  
9366   fi
9367  
# Line 9041 | Line 9369 | fi
9369  
9370  
9371  
9372 < for ac_header in sys/select.h sys/socket.h
9373 < do
9374 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9375 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
9377 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9052 < fi
9053 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9372 >
9373 >
9374 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
9375 > $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
9376 > if ${ac_cv_prog_really_gxx+:} false; then :
9377 >  $as_echo_n "(cached) " >&6
9378   else
9379 <  # Is the header compilable?
9380 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
9381 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9382 < cat >conftest.$ac_ext <<_ACEOF
9383 < /* confdefs.h.  */
9384 < _ACEOF
9385 < cat confdefs.h >>conftest.$ac_ext
9386 < cat >>conftest.$ac_ext <<_ACEOF
9387 < /* end confdefs.h.  */
9388 < $ac_includes_default
9389 < #include <$ac_header>
9390 < _ACEOF
9068 < rm -f conftest.$ac_objext
9069 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 <  (eval $ac_compile) 2>conftest.er1
9071 <  ac_status=$?
9072 <  grep -v '^ *+' conftest.er1 >conftest.err
9073 <  rm -f conftest.er1
9074 <  cat conftest.err >&5
9075 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 <  (exit $ac_status); } &&
9077 <         { ac_try='test -z "$ac_c_werror_flag"
9078 <                         || test ! -s conftest.err'
9079 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 >
9380 > cat > conftest.cpp <<EOF
9381 > #ifdef __GNUC__
9382 >  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
9383 >     no;
9384 >  #else
9385 >     yes;
9386 >  #endif
9387 > #endif
9388 > EOF
9389 > if { ac_try='${CXX-c++} -E conftest.cpp'
9390 >  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9391    (eval $ac_try) 2>&5
9392    ac_status=$?
9393 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 <  (exit $ac_status); }; } &&
9395 <         { ac_try='test -s conftest.$ac_objext'
9085 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 <  (eval $ac_try) 2>&5
9087 <  ac_status=$?
9088 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 <  (exit $ac_status); }; }; then
9090 <  ac_header_compiler=yes
9393 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9394 >  test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
9395 >  ac_cv_prog_really_gxx=yes
9396   else
9397 <  echo "$as_me: failed program was:" >&5
9093 < sed 's/^/| /' conftest.$ac_ext >&5
9094 <
9095 < ac_header_compiler=no
9397 >  ac_cv_prog_really_gxx=no
9398   fi
9097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9099 echo "${ECHO_T}$ac_header_compiler" >&6
9399  
9101 # Is the header present?
9102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 #include <$ac_header>
9111 _ACEOF
9112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9113  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9114  ac_status=$?
9115  grep -v '^ *+' conftest.er1 >conftest.err
9116  rm -f conftest.er1
9117  cat conftest.err >&5
9118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } >/dev/null; then
9120  if test -s conftest.err; then
9121    ac_cpp_err=$ac_c_preproc_warn_flag
9122    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123  else
9124    ac_cpp_err=
9125  fi
9126 else
9127  ac_cpp_err=yes
9400   fi
9401 < if test -z "$ac_cpp_err"; then
9402 <  ac_header_preproc=yes
9403 < else
9404 <  echo "$as_me: failed program was:" >&5
9133 < sed 's/^/| /' conftest.$ac_ext >&5
9401 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_really_gxx" >&5
9402 > $as_echo "$ac_cv_prog_really_gxx" >&6; }
9403 > if test "$ac_cv_prog_really_gxx" = yes; then
9404 >        :
9405  
9135  ac_header_preproc=no
9136 fi
9137 rm -f conftest.err conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139 echo "${ECHO_T}$ac_header_preproc" >&6
9140
9141 # So?  What about this header?
9142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9143  yes:no: )
9144    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9148    ac_header_preproc=yes
9149    ;;
9150  no:yes:* )
9151    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9153    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9155    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9157    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9163    (
9164      cat <<\_ASBOX
9165 ## ------------------------------ ##
9166 ## Report this to gezelter@nd.edu ##
9167 ## ------------------------------ ##
9168 _ASBOX
9169    ) |
9170      sed "s/^/$as_me: WARNING:     /" >&2
9171    ;;
9172 esac
9173 echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9176  echo $ECHO_N "(cached) $ECHO_C" >&6
9406   else
9407 <  eval "$as_ac_Header=\$ac_header_preproc"
9179 < fi
9180 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9181 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407 >        :
9408  
9409   fi
9184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9185  cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9187 _ACEOF
9410  
9189 fi
9411  
9412 < done
9412 > # Try to determine "good" native compiler flags if none specified on command
9413 > # line
9414 > if test "$ac_test_CXXFLAGS" != "set"; then
9415 >  CXXFLAGS=""
9416 >  case "${host_cpu}-${host_os}" in
9417  
9418 < echo "$as_me:$LINENO: checking types of arguments for select" >&5
9419 < echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9420 < if test "${ac_cv_func_select_args+set}" = set; then
9421 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9422 < else
9423 <  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9424 < for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9425 <  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9426 <   cat >conftest.$ac_ext <<_ACEOF
9427 < /* confdefs.h.  */
9428 < _ACEOF
9429 < cat confdefs.h >>conftest.$ac_ext
9430 < cat >>conftest.$ac_ext <<_ACEOF
9431 < /* end confdefs.h.  */
9432 < $ac_includes_default
9433 < #if HAVE_SYS_SELECT_H
9434 < # include <sys/select.h>
9435 < #endif
9436 < #if HAVE_SYS_SOCKET_H
9437 < # include <sys/socket.h>
9438 < #endif
9439 <
9440 < #ifdef FC_DUMMY_MAIN
9441 < #ifndef FC_DUMMY_MAIN_EQ_F77
9442 < #  ifdef __cplusplus
9443 <     extern "C"
9444 < #  endif
9445 <   int FC_DUMMY_MAIN() { return 1; }
9446 < #endif
9447 < #endif
9448 < int
9449 < main ()
9450 < {
9226 < extern int select ($ac_arg1,
9227 <                                            $ac_arg234, $ac_arg234, $ac_arg234,
9228 <                                            $ac_arg5);
9229 <  ;
9230 <  return 0;
9231 < }
9232 < _ACEOF
9233 < rm -f conftest.$ac_objext
9234 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 <  (eval $ac_compile) 2>conftest.er1
9236 <  ac_status=$?
9237 <  grep -v '^ *+' conftest.er1 >conftest.err
9238 <  rm -f conftest.er1
9239 <  cat conftest.err >&5
9240 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 <  (exit $ac_status); } &&
9242 <         { ac_try='test -z "$ac_c_werror_flag"
9243 <                         || test ! -s conftest.err'
9244 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 <  (eval $ac_try) 2>&5
9246 <  ac_status=$?
9247 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 <  (exit $ac_status); }; } &&
9249 <         { ac_try='test -s conftest.$ac_objext'
9250 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 <  (eval $ac_try) 2>&5
9252 <  ac_status=$?
9253 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 <  (exit $ac_status); }; }; then
9255 <  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9256 < else
9257 <  echo "$as_me: failed program was:" >&5
9258 < sed 's/^/| /' conftest.$ac_ext >&5
9259 <
9260 < fi
9261 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 <  done
9263 < done
9264 < done
9265 < # Provide a safe default value.
9266 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9267 <
9268 < fi
9269 < echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9270 < echo "${ECHO_T}$ac_cv_func_select_args" >&6
9271 < ac_save_IFS=$IFS; IFS=','
9272 < set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9273 < IFS=$ac_save_IFS
9274 < shift
9275 <
9276 < cat >>confdefs.h <<_ACEOF
9277 < #define SELECT_TYPE_ARG1 $1
9278 < _ACEOF
9279 <
9280 <
9281 < cat >>confdefs.h <<_ACEOF
9282 < #define SELECT_TYPE_ARG234 ($2)
9283 < _ACEOF
9284 <
9285 <
9286 < cat >>confdefs.h <<_ACEOF
9287 < #define SELECT_TYPE_ARG5 ($3)
9288 < _ACEOF
9289 <
9290 < rm -f conftest*
9291 <
9292 <
9293 < for ac_func in strftime
9294 < do
9295 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296 < echo "$as_me:$LINENO: checking for $ac_func" >&5
9297 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298 < if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9300 < else
9301 <  cat >conftest.$ac_ext <<_ACEOF
9302 < /* confdefs.h.  */
9303 < _ACEOF
9304 < cat confdefs.h >>conftest.$ac_ext
9305 < cat >>conftest.$ac_ext <<_ACEOF
9306 < /* end confdefs.h.  */
9307 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9309 < #define $ac_func innocuous_$ac_func
9418 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
9419 >                    CXXFLAGS="-O2"
9420 >                fi;;
9421 >  sparc-solaris2*) if test "$CXX" = CC; then
9422 >                    CXXFLAGS="-features=extensions -O -dalign"
9423 >                 fi;;
9424 >   rs6000*-aix*)  if test "$CXX" = xlC; then
9425 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
9426 >                fi;;
9427 >   powerpc*-aix*)
9428 >        if test "$CXX" = xlC; then
9429 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
9430 >                echo "*******************************************************"
9431 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
9432 >                echo "*  recommended that you use                           *"
9433 >                echo "*                                                     *"
9434 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
9435 >                echo "*                                 ^^^                 *"
9436 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
9437 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
9438 >                echo "*******************************************************"
9439 >        fi;;
9440 >   *darwin*)
9441 >        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
9442 >                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
9443 >        fi
9444 >        if test "$CXX" = icpc; then
9445 >                CXXFLAGS="-O2"
9446 >        fi
9447 >        if test $ac_cv_prog_really_gxx = yes; then
9448 >                CXXFLAGS="-Os"
9449 >        fi;;
9450 >  esac
9451  
9452 < /* System header to define __stub macros and hopefully few prototypes,
9453 <    which can conflict with char $ac_func (); below.
9454 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <    <limits.h> exists even on freestanding compilers.  */
9452 >  # use default flags for gcc on all systems
9453 >  if test $ac_cv_prog_really_gxx = yes -a -z "$CXXFLAGS"; then
9454 >     CXXFLAGS="-O2"
9455 >  fi
9456  
9457 < #ifdef __STDC__
9458 < # include <limits.h>
9459 < #else
9460 < # include <assert.h>
9461 < #endif
9457 >  if test -z "$CXXFLAGS"; then
9458 >        echo ""
9459 >        echo "**********************************************************"
9460 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
9461 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
9462 >        echo "* (otherwise, a default of CXXFLAGS=-O will be used)     *"
9463 >        echo "**********************************************************"
9464 >        echo ""
9465 >        CXXFLAGS="-O"
9466 >  fi
9467  
9322 #undef $ac_func
9468  
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 {
9328 #endif
9329 /* We use char because int might match the return type of a gcc2
9330   builtin and then its argument prototype would still apply.  */
9331 char $ac_func ();
9332 /* The GNU C library defines this for functions which it implements
9333    to always fail with ENOSYS.  Some functions are actually named
9334    something starting with __ and the normal name is an alias.  */
9335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336 choke me
9337 #else
9338 char (*f) () = $ac_func;
9339 #endif
9340 #ifdef __cplusplus
9341 }
9342 #endif
9469  
9470 < #ifdef FC_DUMMY_MAIN
9471 < #ifndef FC_DUMMY_MAIN_EQ_F77
9472 < #  ifdef __cplusplus
9473 <     extern "C"
9348 < #  endif
9349 <   int FC_DUMMY_MAIN() { return 1; }
9350 < #endif
9351 < #endif
9352 < int
9353 < main ()
9354 < {
9355 < return f != $ac_func;
9356 <  ;
9357 <  return 0;
9358 < }
9359 < _ACEOF
9360 < rm -f conftest.$ac_objext conftest$ac_exeext
9361 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362 <  (eval $ac_link) 2>conftest.er1
9363 <  ac_status=$?
9364 <  grep -v '^ *+' conftest.er1 >conftest.err
9365 <  rm -f conftest.er1
9366 <  cat conftest.err >&5
9367 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 <  (exit $ac_status); } &&
9369 <         { ac_try='test -z "$ac_c_werror_flag"
9370 <                         || test ! -s conftest.err'
9371 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 <  (eval $ac_try) 2>&5
9373 <  ac_status=$?
9374 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 <  (exit $ac_status); }; } &&
9376 <         { ac_try='test -s conftest$ac_exeext'
9377 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 <  (eval $ac_try) 2>&5
9379 <  ac_status=$?
9380 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 <  (exit $ac_status); }; }; then
9382 <  eval "$as_ac_var=yes"
9470 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
9471 > $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
9472 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
9473 >  $as_echo_n "(cached) " >&6
9474   else
9475 <  echo "$as_me: failed program was:" >&5
9476 < sed 's/^/| /' conftest.$ac_ext >&5
9475 >  echo 'void f(){}' > conftest.cpp
9476 > if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
9477 >        ac_cv_ac_cv_guessed_cxxflags=yes
9478 > else
9479 >        ac_cv_ac_cv_guessed_cxxflags=no
9480 > fi
9481 > rm -f conftest*
9482  
9387 eval "$as_ac_var=no"
9483   fi
9484 < rm -f conftest.err conftest.$ac_objext \
9485 <      conftest$ac_exeext conftest.$ac_ext
9486 < fi
9487 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9393 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9394 < if test `eval echo '${'$as_ac_var'}'` = yes; then
9395 <  cat >>confdefs.h <<_ACEOF
9396 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9397 < _ACEOF
9484 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_cxxflags" >&5
9485 > $as_echo "$ac_cv_ac_cv_guessed_cxxflags" >&6; }
9486 > if test "$ac_cv_ac_cv_guessed_cxxflags" = yes; then
9487 >        :
9488  
9489   else
9490 <  # strftime is in -lintl on SCO UNIX.
9401 < echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9402 < echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9403 < if test "${ac_cv_lib_intl_strftime+set}" = set; then
9404 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9405 < else
9406 <  ac_check_lib_save_LIBS=$LIBS
9407 < LIBS="-lintl  $LIBS"
9408 < cat >conftest.$ac_ext <<_ACEOF
9409 < /* confdefs.h.  */
9410 < _ACEOF
9411 < cat confdefs.h >>conftest.$ac_ext
9412 < cat >>conftest.$ac_ext <<_ACEOF
9413 < /* end confdefs.h.  */
9490 >        :
9491  
9492 < /* Override any gcc2 internal prototype to avoid an error.  */
9493 < #ifdef __cplusplus
9494 < extern "C"
9495 < #endif
9496 < /* We use char because int might match the return type of a gcc2
9497 <   builtin and then its argument prototype would still apply.  */
9498 < char strftime ();
9499 < #ifdef FC_DUMMY_MAIN
9423 < #ifndef FC_DUMMY_MAIN_EQ_F77
9424 < #  ifdef __cplusplus
9425 <     extern "C"
9426 < #  endif
9427 <   int FC_DUMMY_MAIN() { return 1; }
9428 < #endif
9429 < #endif
9430 < int
9431 < main ()
9432 < {
9433 < strftime ();
9434 <  ;
9435 <  return 0;
9436 < }
9437 < _ACEOF
9438 < rm -f conftest.$ac_objext conftest$ac_exeext
9439 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 <  (eval $ac_link) 2>conftest.er1
9441 <  ac_status=$?
9442 <  grep -v '^ *+' conftest.er1 >conftest.err
9443 <  rm -f conftest.er1
9444 <  cat conftest.err >&5
9445 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 <  (exit $ac_status); } &&
9447 <         { ac_try='test -z "$ac_c_werror_flag"
9448 <                         || test ! -s conftest.err'
9449 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 <  (eval $ac_try) 2>&5
9451 <  ac_status=$?
9452 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 <  (exit $ac_status); }; } &&
9454 <         { ac_try='test -s conftest$ac_exeext'
9455 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 <  (eval $ac_try) 2>&5
9457 <  ac_status=$?
9458 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 <  (exit $ac_status); }; }; then
9460 <  ac_cv_lib_intl_strftime=yes
9461 < else
9462 <  echo "$as_me: failed program was:" >&5
9463 < sed 's/^/| /' conftest.$ac_ext >&5
9492 >        echo ""
9493 >        echo "**********************************************************"
9494 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
9495 >        echo "* your compiler.                                         *"
9496 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
9497 >        echo "**********************************************************"
9498 >        echo ""
9499 >        CXXFLAGS=""
9500  
9465 ac_cv_lib_intl_strftime=no
9501   fi
9502 < rm -f conftest.err conftest.$ac_objext \
9503 <      conftest$ac_exeext conftest.$ac_ext
9469 < LIBS=$ac_check_lib_save_LIBS
9502 >
9503 >
9504   fi
9471 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9472 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9473 if test $ac_cv_lib_intl_strftime = yes; then
9474  cat >>confdefs.h <<\_ACEOF
9475 #define HAVE_STRFTIME 1
9476 _ACEOF
9505  
9506 < LIBS="-lintl $LIBS"
9506 >     ;;
9507 > esac
9508 >
9509 >
9510 > # Check whether --enable-doxygen was given.
9511 > if test "${enable_doxygen+set}" = set; then :
9512 >  enableval=$enable_doxygen;
9513   fi
9514  
9515 + # Check whether --enable-dot was given.
9516 + if test "${enable_dot+set}" = set; then :
9517 +  enableval=$enable_dot;
9518   fi
9482 done
9519  
9520 < echo "$as_me:$LINENO: checking for working strtod" >&5
9521 < echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9522 < if test "${ac_cv_func_strtod+set}" = set; then
9487 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9520 > # Check whether --enable-html-docs was given.
9521 > if test "${enable_html_docs+set}" = set; then :
9522 >  enableval=$enable_html_docs;
9523   else
9524 <  if test "$cross_compiling" = yes; then
9525 <  ac_cv_func_strtod=no
9491 < else
9492 <  cat >conftest.$ac_ext <<_ACEOF
9493 < /* confdefs.h.  */
9494 < _ACEOF
9495 < cat confdefs.h >>conftest.$ac_ext
9496 < cat >>conftest.$ac_ext <<_ACEOF
9497 < /* end confdefs.h.  */
9524 >   enable_html_docs=yes
9525 > fi
9526  
9527 < double strtod ();
9528 < int
9529 < main()
9530 < {
9531 <  {
9532 <    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9505 <    char *string = " +69";
9506 <    char *term;
9507 <    double value;
9508 <    value = strtod (string, &term);
9509 <    if (value != 69 || term != (string + 4))
9510 <      exit (1);
9511 <  }
9527 > # Check whether --enable-latex-docs was given.
9528 > if test "${enable_latex_docs+set}" = set; then :
9529 >  enableval=$enable_latex_docs;
9530 > else
9531 >   enable_latex_docs=no
9532 > fi
9533  
9534 <  {
9535 <    /* Under Solaris 2.4, strtod returns the wrong value for the
9536 <       terminating character under some conditions.  */
9537 <    char *string = "NaN";
9538 <    char *term;
9539 <    strtod (string, &term);
9540 <    if (term != string && *(term - 1) == 0)
9541 <      exit (1);
9542 <  }
9543 <  exit (0);
9544 < }
9534 > if test "x$enable_doxygen" = xno; then
9535 >        enable_doc=no
9536 > else
9537 >        # Extract the first word of "doxygen", so it can be a program name with args.
9538 > set dummy doxygen; ac_word=$2
9539 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 > $as_echo_n "checking for $ac_word... " >&6; }
9541 > if ${ac_cv_path_DOXYGEN+:} false; then :
9542 >  $as_echo_n "(cached) " >&6
9543 > else
9544 >  case $DOXYGEN in
9545 >  [\\/]* | ?:[\\/]*)
9546 >  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
9547 >  ;;
9548 >  *)
9549 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 > for as_dir in $PATH
9551 > do
9552 >  IFS=$as_save_IFS
9553 >  test -z "$as_dir" && as_dir=.
9554 >    for ac_exec_ext in '' $ac_executable_extensions; do
9555 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 >    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
9557 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 >    break 2
9559 >  fi
9560 > done
9561 >  done
9562 > IFS=$as_save_IFS
9563  
9564 < _ACEOF
9565 < rm -f conftest$ac_exeext
9566 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 <  (eval $ac_link) 2>&5
9568 <  ac_status=$?
9569 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9532 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 <  (eval $ac_try) 2>&5
9534 <  ac_status=$?
9535 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 <  (exit $ac_status); }; }; then
9537 <  ac_cv_func_strtod=yes
9564 >  ;;
9565 > esac
9566 > fi
9567 > DOXYGEN=$ac_cv_path_DOXYGEN
9568 > if test -n "$DOXYGEN"; then
9569 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
9570 > $as_echo "$DOXYGEN" >&6; }
9571   else
9572 <  echo "$as_me: program exited with status $ac_status" >&5
9573 < echo "$as_me: failed program was:" >&5
9574 < sed 's/^/| /' conftest.$ac_ext >&5
9572 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 > $as_echo "no" >&6; }
9574 > fi
9575  
9576 < ( exit $ac_status )
9577 < ac_cv_func_strtod=no
9576 >
9577 >        if test "x$DOXYGEN" = x; then
9578 >                if test "x$enable_doxygen" = xyes; then
9579 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
9580 >                fi
9581 >                enable_doc=no
9582 >        else
9583 >                enable_doc=yes
9584 >                # Extract the first word of "dot", so it can be a program name with args.
9585 > set dummy dot; ac_word=$2
9586 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 > $as_echo_n "checking for $ac_word... " >&6; }
9588 > if ${ac_cv_path_DOT+:} false; then :
9589 >  $as_echo_n "(cached) " >&6
9590 > else
9591 >  case $DOT in
9592 >  [\\/]* | ?:[\\/]*)
9593 >  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
9594 >  ;;
9595 >  *)
9596 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 > for as_dir in $PATH
9598 > do
9599 >  IFS=$as_save_IFS
9600 >  test -z "$as_dir" && as_dir=.
9601 >    for ac_exec_ext in '' $ac_executable_extensions; do
9602 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 >    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
9604 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 >    break 2
9606 >  fi
9607 > done
9608 >  done
9609 > IFS=$as_save_IFS
9610 >
9611 >  ;;
9612 > esac
9613   fi
9614 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9614 > DOT=$ac_cv_path_DOT
9615 > if test -n "$DOT"; then
9616 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
9617 > $as_echo "$DOT" >&6; }
9618 > else
9619 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 > $as_echo "no" >&6; }
9621   fi
9622 +
9623 +
9624 +        fi
9625   fi
9549 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9550 echo "${ECHO_T}$ac_cv_func_strtod" >&6
9551 if test $ac_cv_func_strtod = no; then
9552  case $LIBOBJS in
9553    "strtod.$ac_objext"   | \
9554  *" strtod.$ac_objext"   | \
9555    "strtod.$ac_objext "* | \
9556  *" strtod.$ac_objext "* ) ;;
9557  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
9558 esac
9626  
9627 < echo "$as_me:$LINENO: checking for pow" >&5
9628 < echo $ECHO_N "checking for pow... $ECHO_C" >&6
9562 < if test "${ac_cv_func_pow+set}" = set; then
9563 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9627 > if test "x$enable_doc" = xyes; then
9628 >  DOC=1
9629   else
9630 <  cat >conftest.$ac_ext <<_ACEOF
9631 < /* confdefs.h.  */
9567 < _ACEOF
9568 < cat confdefs.h >>conftest.$ac_ext
9569 < cat >>conftest.$ac_ext <<_ACEOF
9570 < /* end confdefs.h.  */
9571 < /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9572 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9573 < #define pow innocuous_pow
9630 >  DOC=0
9631 > fi
9632  
9575 /* System header to define __stub macros and hopefully few prototypes,
9576    which can conflict with char pow (); below.
9577    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9578    <limits.h> exists even on freestanding compilers.  */
9633  
9634 < #ifdef __STDC__
9635 < # include <limits.h>
9636 < #else
9637 < # include <assert.h>
9638 < #endif
9634 > if test x$DOT = x; then
9635 >        if test "x$enable_dot" = xyes; then
9636 >                as_fn_error $? "could not find dot" "$LINENO" 5
9637 >        fi
9638 >        enable_dot=no
9639 > else
9640 >        enable_dot=yes
9641 > fi
9642  
9586 #undef pow
9643  
9588 /* Override any gcc2 internal prototype to avoid an error.  */
9589 #ifdef __cplusplus
9590 extern "C"
9591 {
9592 #endif
9593 /* We use char because int might match the return type of a gcc2
9594   builtin and then its argument prototype would still apply.  */
9595 char pow ();
9596 /* The GNU C library defines this for functions which it implements
9597    to always fail with ENOSYS.  Some functions are actually named
9598    something starting with __ and the normal name is an alias.  */
9599 #if defined (__stub_pow) || defined (__stub___pow)
9600 choke me
9601 #else
9602 char (*f) () = pow;
9603 #endif
9604 #ifdef __cplusplus
9605 }
9606 #endif
9644  
9608 #ifdef FC_DUMMY_MAIN
9609 #ifndef FC_DUMMY_MAIN_EQ_F77
9610 #  ifdef __cplusplus
9611     extern "C"
9612 #  endif
9613   int FC_DUMMY_MAIN() { return 1; }
9614 #endif
9615 #endif
9616 int
9617 main ()
9618 {
9619 return f != pow;
9620  ;
9621  return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626  (eval $ac_link) 2>conftest.er1
9627  ac_status=$?
9628  grep -v '^ *+' conftest.er1 >conftest.err
9629  rm -f conftest.er1
9630  cat conftest.err >&5
9631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632  (exit $ac_status); } &&
9633         { ac_try='test -z "$ac_c_werror_flag"
9634                         || test ! -s conftest.err'
9635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636  (eval $ac_try) 2>&5
9637  ac_status=$?
9638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639  (exit $ac_status); }; } &&
9640         { ac_try='test -s conftest$ac_exeext'
9641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642  (eval $ac_try) 2>&5
9643  ac_status=$?
9644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645  (exit $ac_status); }; }; then
9646  ac_cv_func_pow=yes
9647 else
9648  echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9645  
9651 ac_cv_func_pow=no
9652 fi
9653 rm -f conftest.err conftest.$ac_objext \
9654      conftest$ac_exeext conftest.$ac_ext
9655 fi
9656 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9657 echo "${ECHO_T}$ac_cv_func_pow" >&6
9646  
9659 if test $ac_cv_func_pow = no; then
9660  echo "$as_me:$LINENO: checking for pow in -lm" >&5
9661 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
9662 if test "${ac_cv_lib_m_pow+set}" = set; then
9663  echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665  ac_check_lib_save_LIBS=$LIBS
9666 LIBS="-lm  $LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9647  
9674 /* Override any gcc2 internal prototype to avoid an error.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679   builtin and then its argument prototype would still apply.  */
9680 char pow ();
9681 #ifdef FC_DUMMY_MAIN
9682 #ifndef FC_DUMMY_MAIN_EQ_F77
9683 #  ifdef __cplusplus
9684     extern "C"
9685 #  endif
9686   int FC_DUMMY_MAIN() { return 1; }
9687 #endif
9688 #endif
9689 int
9690 main ()
9691 {
9692 pow ();
9693  ;
9694  return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699  (eval $ac_link) 2>conftest.er1
9700  ac_status=$?
9701  grep -v '^ *+' conftest.er1 >conftest.err
9702  rm -f conftest.er1
9703  cat conftest.err >&5
9704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705  (exit $ac_status); } &&
9706         { ac_try='test -z "$ac_c_werror_flag"
9707                         || test ! -s conftest.err'
9708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709  (eval $ac_try) 2>&5
9710  ac_status=$?
9711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712  (exit $ac_status); }; } &&
9713         { ac_try='test -s conftest$ac_exeext'
9714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715  (eval $ac_try) 2>&5
9716  ac_status=$?
9717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718  (exit $ac_status); }; }; then
9719  ac_cv_lib_m_pow=yes
9720 else
9721  echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9648  
9724 ac_cv_lib_m_pow=no
9725 fi
9726 rm -f conftest.err conftest.$ac_objext \
9727      conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9729 fi
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9731 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
9732 if test $ac_cv_lib_m_pow = yes; then
9733  POW_LIB=-lm
9734 else
9735  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9736 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9737 fi
9649  
9739 fi
9650  
9741 fi
9651  
9652  
9653  
# Line 9749 | Line 9658 | fi
9658  
9659  
9660  
9661 + ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
9662  
9663  
9664 + cat >confcache <<\_ACEOF
9665 + # This file is a shell script that caches the results of configure
9666 + # tests run on this system so they can be shared between configure
9667 + # scripts and configure runs, see configure's option --config-cache.
9668 + # It is not useful on other systems.  If it contains results you don't
9669 + # want to keep, you may remove or edit it.
9670 + #
9671 + # config.status only pays attention to the cache file if you give it
9672 + # the --recheck option to rerun configure.
9673 + #
9674 + # `ac_cv_env_foo' variables (set or unset) will be overridden when
9675 + # loading this file, other *unset* `ac_cv_foo' will be assigned the
9676 + # following values.
9677  
9678 + _ACEOF
9679  
9680 + # The following way of writing the cache mishandles newlines in values,
9681 + # but we know of no workaround that is simple, portable, and efficient.
9682 + # So, we kill variables containing newlines.
9683 + # Ultrix sh set writes to stderr and can't be redirected directly,
9684 + # and sets the high bit in the cache file unless we assign to the vars.
9685 + (
9686 +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9687 +    eval ac_val=\$$ac_var
9688 +    case $ac_val in #(
9689 +    *${as_nl}*)
9690 +      case $ac_var in #(
9691 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9692 + $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9693 +      esac
9694 +      case $ac_var in #(
9695 +      _ | IFS | as_nl) ;; #(
9696 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9697 +      *) { eval $ac_var=; unset $ac_var;} ;;
9698 +      esac ;;
9699 +    esac
9700 +  done
9701  
9702 +  (set) 2>&1 |
9703 +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9704 +    *${as_nl}ac_space=\ *)
9705 +      # `set' does not quote correctly, so add quotes: double-quote
9706 +      # substitution turns \\\\ into \\, and sed turns \\ into \.
9707 +      sed -n \
9708 +        "s/'/'\\\\''/g;
9709 +          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9710 +      ;; #(
9711 +    *)
9712 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
9713 +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9714 +      ;;
9715 +    esac |
9716 +    sort
9717 + ) |
9718 +  sed '
9719 +     /^ac_cv_env_/b end
9720 +     t clear
9721 +     :clear
9722 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9723 +     t end
9724 +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9725 +     :end' >>confcache
9726 + if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9727 +  if test -w "$cache_file"; then
9728 +    if test "x$cache_file" != "x/dev/null"; then
9729 +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9730 + $as_echo "$as_me: updating cache $cache_file" >&6;}
9731 +      if test ! -f "$cache_file" || test -h "$cache_file"; then
9732 +        cat confcache >"$cache_file"
9733 +      else
9734 +        case $cache_file in #(
9735 +        */* | ?:*)
9736 +          mv -f confcache "$cache_file"$$ &&
9737 +          mv -f "$cache_file"$$ "$cache_file" ;; #(
9738 +        *)
9739 +          mv -f confcache "$cache_file" ;;
9740 +        esac
9741 +      fi
9742 +    fi
9743 +  else
9744 +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9745 + $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9746 +  fi
9747 + fi
9748 + rm -f confcache
9749  
9750 + test "x$prefix" = xNONE && prefix=$ac_default_prefix
9751 + # Let make expand exec_prefix.
9752 + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9753  
9754 + DEFS=-DHAVE_CONFIG_H
9755  
9756 + ac_libobjs=
9757 + ac_ltlibobjs=
9758 + U=
9759 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9760 +  # 1. Remove the extension, and $U if already installed.
9761 +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9762 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9763 +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9764 +  #    will be set to the directory where LIBOBJS objects are built.
9765 +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9766 +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9767 + done
9768 + LIBOBJS=$ac_libobjs
9769  
9770 + LTLIBOBJS=$ac_ltlibobjs
9771  
9772  
9773  
9774 + : "${CONFIG_STATUS=./config.status}"
9775 + ac_write_fail=0
9776 + ac_clean_files_save=$ac_clean_files
9777 + ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9778 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9779 + $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9780 + as_write_fail=0
9781 + cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9782 + #! $SHELL
9783 + # Generated by $as_me.
9784 + # Run this file to recreate the current configuration.
9785 + # Compiler output produced by configure, useful for debugging
9786 + # configure, is in config.log if it exists.
9787  
9788 + debug=false
9789 + ac_cs_recheck=false
9790 + ac_cs_silent=false
9791  
9792 + SHELL=\${CONFIG_SHELL-$SHELL}
9793 + export SHELL
9794 + _ASEOF
9795 + cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9796 + ## -------------------- ##
9797 + ## M4sh Initialization. ##
9798 + ## -------------------- ##
9799  
9800 <
9801 <
9802 <
9803 < for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9804 < do
9805 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9806 < echo "$as_me:$LINENO: checking for $ac_func" >&5
9807 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9808 < if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9800 > # Be more Bourne compatible
9801 > DUALCASE=1; export DUALCASE # for MKS sh
9802 > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9803 >  emulate sh
9804 >  NULLCMD=:
9805 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9806 >  # is contrary to our usage.  Disable this feature.
9807 >  alias -g '${1+"$@"}'='"$@"'
9808 >  setopt NO_GLOB_SUBST
9809   else
9810 <  cat >conftest.$ac_ext <<_ACEOF
9811 < /* confdefs.h.  */
9812 < _ACEOF
9813 < cat confdefs.h >>conftest.$ac_ext
9814 < cat >>conftest.$ac_ext <<_ACEOF
9815 < /* end confdefs.h.  */
9816 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786 < #define $ac_func innocuous_$ac_func
9810 >  case `(set -o) 2>/dev/null` in #(
9811 >  *posix*) :
9812 >    set -o posix ;; #(
9813 >  *) :
9814 >     ;;
9815 > esac
9816 > fi
9817  
9788 /* System header to define __stub macros and hopefully few prototypes,
9789    which can conflict with char $ac_func (); below.
9790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791    <limits.h> exists even on freestanding compilers.  */
9818  
9819 < #ifdef __STDC__
9820 < # include <limits.h>
9821 < #else
9822 < # include <assert.h>
9823 < #endif
9824 <
9825 < #undef $ac_func
9826 <
9827 < /* Override any gcc2 internal prototype to avoid an error.  */
9828 < #ifdef __cplusplus
9829 < extern "C"
9830 < {
9831 < #endif
9832 < /* We use char because int might match the return type of a gcc2
9833 <   builtin and then its argument prototype would still apply.  */
9834 < char $ac_func ();
9809 < /* The GNU C library defines this for functions which it implements
9810 <    to always fail with ENOSYS.  Some functions are actually named
9811 <    something starting with __ and the normal name is an alias.  */
9812 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813 < choke me
9814 < #else
9815 < char (*f) () = $ac_func;
9816 < #endif
9817 < #ifdef __cplusplus
9818 < }
9819 < #endif
9820 <
9821 < #ifdef FC_DUMMY_MAIN
9822 < #ifndef FC_DUMMY_MAIN_EQ_F77
9823 < #  ifdef __cplusplus
9824 <     extern "C"
9825 < #  endif
9826 <   int FC_DUMMY_MAIN() { return 1; }
9827 < #endif
9828 < #endif
9829 < int
9830 < main ()
9831 < {
9832 < return f != $ac_func;
9833 <  ;
9834 <  return 0;
9835 < }
9836 < _ACEOF
9837 < rm -f conftest.$ac_objext conftest$ac_exeext
9838 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 <  (eval $ac_link) 2>conftest.er1
9840 <  ac_status=$?
9841 <  grep -v '^ *+' conftest.er1 >conftest.err
9842 <  rm -f conftest.er1
9843 <  cat conftest.err >&5
9844 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 <  (exit $ac_status); } &&
9846 <         { ac_try='test -z "$ac_c_werror_flag"
9847 <                         || test ! -s conftest.err'
9848 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 <  (eval $ac_try) 2>&5
9850 <  ac_status=$?
9851 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 <  (exit $ac_status); }; } &&
9853 <         { ac_try='test -s conftest$ac_exeext'
9854 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 <  (eval $ac_try) 2>&5
9856 <  ac_status=$?
9857 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 <  (exit $ac_status); }; }; then
9859 <  eval "$as_ac_var=yes"
9819 > as_nl='
9820 > '
9821 > export as_nl
9822 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
9823 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9824 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9825 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9826 > # Prefer a ksh shell builtin over an external printf program on Solaris,
9827 > # but without wasting forks for bash or zsh.
9828 > if test -z "$BASH_VERSION$ZSH_VERSION" \
9829 >    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9830 >  as_echo='print -r --'
9831 >  as_echo_n='print -rn --'
9832 > elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9833 >  as_echo='printf %s\n'
9834 >  as_echo_n='printf %s'
9835   else
9836 <  echo "$as_me: failed program was:" >&5
9837 < sed 's/^/| /' conftest.$ac_ext >&5
9838 <
9839 < eval "$as_ac_var=no"
9836 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9837 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9838 >    as_echo_n='/usr/ucb/echo -n'
9839 >  else
9840 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9841 >    as_echo_n_body='eval
9842 >      arg=$1;
9843 >      case $arg in #(
9844 >      *"$as_nl"*)
9845 >        expr "X$arg" : "X\\(.*\\)$as_nl";
9846 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9847 >      esac;
9848 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9849 >    '
9850 >    export as_echo_n_body
9851 >    as_echo_n='sh -c $as_echo_n_body as_echo'
9852 >  fi
9853 >  export as_echo_body
9854 >  as_echo='sh -c $as_echo_body as_echo'
9855   fi
9866 rm -f conftest.err conftest.$ac_objext \
9867      conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872  cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874 _ACEOF
9856  
9857 + # The user is always right.
9858 + if test "${PATH_SEPARATOR+set}" != set; then
9859 +  PATH_SEPARATOR=:
9860 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9861 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9862 +      PATH_SEPARATOR=';'
9863 +  }
9864   fi
9877 done
9865  
9866  
9867 < # special check for _system_configuration because AIX <4.3.2 do not
9868 < # contain the `physmem' member.
9869 < echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9870 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
9871 < cat >conftest.$ac_ext <<_ACEOF
9872 < /* confdefs.h.  */
9886 < _ACEOF
9887 < cat confdefs.h >>conftest.$ac_ext
9888 < cat >>conftest.$ac_ext <<_ACEOF
9889 < /* end confdefs.h.  */
9890 < #include <sys/systemcfg.h>
9891 < #ifdef FC_DUMMY_MAIN
9892 < #ifndef FC_DUMMY_MAIN_EQ_F77
9893 < #  ifdef __cplusplus
9894 <     extern "C"
9895 < #  endif
9896 <   int FC_DUMMY_MAIN() { return 1; }
9897 < #endif
9898 < #endif
9899 < int
9900 < main ()
9901 < {
9902 < double x = _system_configuration.physmem;
9903 <  ;
9904 <  return 0;
9905 < }
9906 < _ACEOF
9907 < rm -f conftest.$ac_objext
9908 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 <  (eval $ac_compile) 2>conftest.er1
9910 <  ac_status=$?
9911 <  grep -v '^ *+' conftest.er1 >conftest.err
9912 <  rm -f conftest.er1
9913 <  cat conftest.err >&5
9914 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 <  (exit $ac_status); } &&
9916 <         { ac_try='test -z "$ac_c_werror_flag"
9917 <                         || test ! -s conftest.err'
9918 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 <  (eval $ac_try) 2>&5
9920 <  ac_status=$?
9921 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 <  (exit $ac_status); }; } &&
9923 <         { ac_try='test -s conftest.$ac_objext'
9924 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 <  (eval $ac_try) 2>&5
9926 <  ac_status=$?
9927 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 <  (exit $ac_status); }; }; then
9929 <  echo "$as_me:$LINENO: result: yes" >&5
9930 < echo "${ECHO_T}yes" >&6
9867 > # IFS
9868 > # We need space, tab and new line, in precisely that order.  Quoting is
9869 > # there to prevent editors from complaining about space-tab.
9870 > # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9871 > # splitting by setting IFS to empty value.)
9872 > IFS=" ""        $as_nl"
9873  
9874 < cat >>confdefs.h <<\_ACEOF
9875 < #define HAVE__SYSTEM_CONFIGURATION 1
9876 < _ACEOF
9874 > # Find who we are.  Look in the path if we contain no directory separator.
9875 > as_myself=
9876 > case $0 in #((
9877 >  *[\\/]* ) as_myself=$0 ;;
9878 >  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879 > for as_dir in $PATH
9880 > do
9881 >  IFS=$as_save_IFS
9882 >  test -z "$as_dir" && as_dir=.
9883 >    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9884 >  done
9885 > IFS=$as_save_IFS
9886  
9887 < else
9888 <  echo "$as_me: failed program was:" >&5
9889 < sed 's/^/| /' conftest.$ac_ext >&5
9890 <
9891 < echo "$as_me:$LINENO: result: no" >&5
9892 < echo "${ECHO_T}no" >&6
9887 >     ;;
9888 > esac
9889 > # We did not find ourselves, most probably we were run as `sh COMMAND'
9890 > # in which case we are not to be found in the path.
9891 > if test "x$as_myself" = x; then
9892 >  as_myself=$0
9893   fi
9894 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 <
9896 <  # clean out junk possibly left behind by a previous configuration
9946 <  rm -f src/getopt.h
9947 <  # Check for getopt_long support
9948 <
9949 < for ac_header in getopt.h
9950 < do
9951 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9952 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
9954 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9894 > if test ! -f "$as_myself"; then
9895 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9896 >  exit 1
9897   fi
9958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9960 else
9961  # Is the header compilable?
9962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 $ac_includes_default
9971 #include <$ac_header>
9972 _ACEOF
9973 rm -f conftest.$ac_objext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9975  (eval $ac_compile) 2>conftest.er1
9976  ac_status=$?
9977  grep -v '^ *+' conftest.er1 >conftest.err
9978  rm -f conftest.er1
9979  cat conftest.err >&5
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); } &&
9982         { ac_try='test -z "$ac_c_werror_flag"
9983                         || test ! -s conftest.err'
9984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985  (eval $ac_try) 2>&5
9986  ac_status=$?
9987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); }; } &&
9989         { ac_try='test -s conftest.$ac_objext'
9990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991  (eval $ac_try) 2>&5
9992  ac_status=$?
9993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994  (exit $ac_status); }; }; then
9995  ac_header_compiler=yes
9996 else
9997  echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9898  
9899 < ac_header_compiler=no
9900 < fi
9901 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9903 < echo "${ECHO_T}$ac_header_compiler" >&6
9904 <
9905 < # Is the header present?
9906 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
9907 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9908 < cat >conftest.$ac_ext <<_ACEOF
9909 < /* confdefs.h.  */
9910 < _ACEOF
9911 < cat confdefs.h >>conftest.$ac_ext
9912 < cat >>conftest.$ac_ext <<_ACEOF
9913 < /* end confdefs.h.  */
9914 < #include <$ac_header>
9915 < _ACEOF
9916 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9917 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9918 <  ac_status=$?
9919 <  grep -v '^ *+' conftest.er1 >conftest.err
9920 <  rm -f conftest.er1
9921 <  cat conftest.err >&5
9922 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 <  (exit $ac_status); } >/dev/null; then
9924 <  if test -s conftest.err; then
9925 <    ac_cpp_err=$ac_c_preproc_warn_flag
9926 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9927 <  else
9928 <    ac_cpp_err=
9899 > # Unset variables that we do not need and which cause bugs (e.g. in
9900 > # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9901 > # suppresses any "Segmentation fault" message there.  '((' could
9902 > # trigger a bug in pdksh 5.2.14.
9903 > for as_var in BASH_ENV ENV MAIL MAILPATH
9904 > do eval test x\${$as_var+set} = xset \
9905 >  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9906 > done
9907 > PS1='$ '
9908 > PS2='> '
9909 > PS4='+ '
9910 >
9911 > # NLS nuisances.
9912 > LC_ALL=C
9913 > export LC_ALL
9914 > LANGUAGE=C
9915 > export LANGUAGE
9916 >
9917 > # CDPATH.
9918 > (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9919 >
9920 >
9921 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
9922 > # ----------------------------------------
9923 > # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9924 > # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9925 > # script with STATUS, using 1 if that was 0.
9926 > as_fn_error ()
9927 > {
9928 >  as_status=$1; test $as_status -eq 0 && as_status=1
9929 >  if test "$4"; then
9930 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9931 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9932    fi
9933 +  $as_echo "$as_me: error: $2" >&2
9934 +  as_fn_exit $as_status
9935 + } # as_fn_error
9936 +
9937 +
9938 + # as_fn_set_status STATUS
9939 + # -----------------------
9940 + # Set $? to STATUS, without forking.
9941 + as_fn_set_status ()
9942 + {
9943 +  return $1
9944 + } # as_fn_set_status
9945 +
9946 + # as_fn_exit STATUS
9947 + # -----------------
9948 + # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9949 + as_fn_exit ()
9950 + {
9951 +  set +e
9952 +  as_fn_set_status $1
9953 +  exit $1
9954 + } # as_fn_exit
9955 +
9956 + # as_fn_unset VAR
9957 + # ---------------
9958 + # Portably unset VAR.
9959 + as_fn_unset ()
9960 + {
9961 +  { eval $1=; unset $1;}
9962 + }
9963 + as_unset=as_fn_unset
9964 + # as_fn_append VAR VALUE
9965 + # ----------------------
9966 + # Append the text in VALUE to the end of the definition contained in VAR. Take
9967 + # advantage of any shell optimizations that allow amortized linear growth over
9968 + # repeated appends, instead of the typical quadratic growth present in naive
9969 + # implementations.
9970 + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9971 +  eval 'as_fn_append ()
9972 +  {
9973 +    eval $1+=\$2
9974 +  }'
9975   else
9976 <  ac_cpp_err=yes
9977 < fi
9978 < if test -z "$ac_cpp_err"; then
9979 <  ac_header_preproc=yes
9976 >  as_fn_append ()
9977 >  {
9978 >    eval $1=\$$1\$2
9979 >  }
9980 > fi # as_fn_append
9981 >
9982 > # as_fn_arith ARG...
9983 > # ------------------
9984 > # Perform arithmetic evaluation on the ARGs, and store the result in the
9985 > # global $as_val. Take advantage of shells that can avoid forks. The arguments
9986 > # must be portable across $(()) and expr.
9987 > if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9988 >  eval 'as_fn_arith ()
9989 >  {
9990 >    as_val=$(( $* ))
9991 >  }'
9992   else
9993 <  echo "$as_me: failed program was:" >&5
9994 < sed 's/^/| /' conftest.$ac_ext >&5
9993 >  as_fn_arith ()
9994 >  {
9995 >    as_val=`expr "$@" || test $? -eq 1`
9996 >  }
9997 > fi # as_fn_arith
9998  
10040  ac_header_preproc=no
10041 fi
10042 rm -f conftest.err conftest.$ac_ext
10043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 echo "${ECHO_T}$ac_header_preproc" >&6
9999  
10000 < # So?  What about this header?
10001 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10002 <  yes:no: )
10049 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10052 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10053 <    ac_header_preproc=yes
10054 <    ;;
10055 <  no:yes:* )
10056 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10057 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10058 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10059 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10060 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10061 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10062 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10063 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10064 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10067 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10068 <    (
10069 <      cat <<\_ASBOX
10070 < ## ------------------------------ ##
10071 < ## Report this to gezelter@nd.edu ##
10072 < ## ------------------------------ ##
10073 < _ASBOX
10074 <    ) |
10075 <      sed "s/^/$as_me: WARNING:     /" >&2
10076 <    ;;
10077 < esac
10078 < echo "$as_me:$LINENO: checking for $ac_header" >&5
10079 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10080 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
10081 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10000 > if expr a : '\(a\)' >/dev/null 2>&1 &&
10001 >   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10002 >  as_expr=expr
10003   else
10004 <  eval "$as_ac_Header=\$ac_header_preproc"
10004 >  as_expr=false
10005   fi
10085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10006  
10007 + if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10008 +  as_basename=basename
10009 + else
10010 +  as_basename=false
10011   fi
10089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10090  cat >>confdefs.h <<_ACEOF
10091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10092 _ACEOF
10012  
10013 + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10014 +  as_dirname=dirname
10015 + else
10016 +  as_dirname=false
10017   fi
10018  
10019 < done
10019 > as_me=`$as_basename -- "$0" ||
10020 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10021 >         X"$0" : 'X\(//\)$' \| \
10022 >         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10023 > $as_echo X/"$0" |
10024 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
10025 >            s//\1/
10026 >            q
10027 >          }
10028 >          /^X\/\(\/\/\)$/{
10029 >            s//\1/
10030 >            q
10031 >          }
10032 >          /^X\/\(\/\).*/{
10033 >            s//\1/
10034 >            q
10035 >          }
10036 >          s/.*/./; q'`
10037  
10038 + # Avoid depending upon Character Ranges.
10039 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10040 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10041 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10042 + as_cr_digits='0123456789'
10043 + as_cr_alnum=$as_cr_Letters$as_cr_digits
10044  
10045 < for ac_func in getopt_long
10046 < do
10047 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10048 < echo "$as_me:$LINENO: checking for $ac_func" >&5
10049 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10050 < if eval "test \"\${$as_ac_var+set}\" = set"; then
10051 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10045 > ECHO_C= ECHO_N= ECHO_T=
10046 > case `echo -n x` in #(((((
10047 > -n*)
10048 >  case `echo 'xy\c'` in
10049 >  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10050 >  xy)  ECHO_C='\c';;
10051 >  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10052 >       ECHO_T=' ';;
10053 >  esac;;
10054 > *)
10055 >  ECHO_N='-n';;
10056 > esac
10057 >
10058 > rm -f conf$$ conf$$.exe conf$$.file
10059 > if test -d conf$$.dir; then
10060 >  rm -f conf$$.dir/conf$$.file
10061   else
10062 <  cat >conftest.$ac_ext <<_ACEOF
10063 < /* confdefs.h.  */
10064 < _ACEOF
10065 < cat confdefs.h >>conftest.$ac_ext
10066 < cat >>conftest.$ac_ext <<_ACEOF
10067 < /* end confdefs.h.  */
10068 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10069 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10070 < #define $ac_func innocuous_$ac_func
10062 >  rm -f conf$$.dir
10063 >  mkdir conf$$.dir 2>/dev/null
10064 > fi
10065 > if (echo >conf$$.file) 2>/dev/null; then
10066 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
10067 >    as_ln_s='ln -s'
10068 >    # ... but there are two gotchas:
10069 >    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10070 >    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10071 >    # In both cases, we have to default to `cp -p'.
10072 >    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10073 >      as_ln_s='cp -p'
10074 >  elif ln conf$$.file conf$$ 2>/dev/null; then
10075 >    as_ln_s=ln
10076 >  else
10077 >    as_ln_s='cp -p'
10078 >  fi
10079 > else
10080 >  as_ln_s='cp -p'
10081 > fi
10082 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10083 > rmdir conf$$.dir 2>/dev/null
10084  
10117 /* System header to define __stub macros and hopefully few prototypes,
10118    which can conflict with char $ac_func (); below.
10119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120    <limits.h> exists even on freestanding compilers.  */
10085  
10086 < #ifdef __STDC__
10087 < # include <limits.h>
10088 < #else
10089 < # include <assert.h>
10090 < #endif
10086 > # as_fn_mkdir_p
10087 > # -------------
10088 > # Create "$as_dir" as a directory, including parents if necessary.
10089 > as_fn_mkdir_p ()
10090 > {
10091  
10092 < #undef $ac_func
10092 >  case $as_dir in #(
10093 >  -*) as_dir=./$as_dir;;
10094 >  esac
10095 >  test -d "$as_dir" || eval $as_mkdir_p || {
10096 >    as_dirs=
10097 >    while :; do
10098 >      case $as_dir in #(
10099 >      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10100 >      *) as_qdir=$as_dir;;
10101 >      esac
10102 >      as_dirs="'$as_qdir' $as_dirs"
10103 >      as_dir=`$as_dirname -- "$as_dir" ||
10104 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10105 >         X"$as_dir" : 'X\(//\)[^/]' \| \
10106 >         X"$as_dir" : 'X\(//\)$' \| \
10107 >         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10108 > $as_echo X"$as_dir" |
10109 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10110 >            s//\1/
10111 >            q
10112 >          }
10113 >          /^X\(\/\/\)[^/].*/{
10114 >            s//\1/
10115 >            q
10116 >          }
10117 >          /^X\(\/\/\)$/{
10118 >            s//\1/
10119 >            q
10120 >          }
10121 >          /^X\(\/\).*/{
10122 >            s//\1/
10123 >            q
10124 >          }
10125 >          s/.*/./; q'`
10126 >      test -d "$as_dir" && break
10127 >    done
10128 >    test -z "$as_dirs" || eval "mkdir $as_dirs"
10129 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10130  
10130 /* Override any gcc2 internal prototype to avoid an error.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 {
10134 #endif
10135 /* We use char because int might match the return type of a gcc2
10136   builtin and then its argument prototype would still apply.  */
10137 char $ac_func ();
10138 /* The GNU C library defines this for functions which it implements
10139    to always fail with ENOSYS.  Some functions are actually named
10140    something starting with __ and the normal name is an alias.  */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10142 choke me
10143 #else
10144 char (*f) () = $ac_func;
10145 #endif
10146 #ifdef __cplusplus
10147 }
10148 #endif
10131  
10132 < #ifdef FC_DUMMY_MAIN
10133 < #ifndef FC_DUMMY_MAIN_EQ_F77
10134 < #  ifdef __cplusplus
10153 <     extern "C"
10154 < #  endif
10155 <   int FC_DUMMY_MAIN() { return 1; }
10156 < #endif
10157 < #endif
10158 < int
10159 < main ()
10160 < {
10161 < return f != $ac_func;
10162 <  ;
10163 <  return 0;
10164 < }
10165 < _ACEOF
10166 < rm -f conftest.$ac_objext conftest$ac_exeext
10167 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 <  (eval $ac_link) 2>conftest.er1
10169 <  ac_status=$?
10170 <  grep -v '^ *+' conftest.er1 >conftest.err
10171 <  rm -f conftest.er1
10172 <  cat conftest.err >&5
10173 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 <  (exit $ac_status); } &&
10175 <         { ac_try='test -z "$ac_c_werror_flag"
10176 <                         || test ! -s conftest.err'
10177 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 <  (eval $ac_try) 2>&5
10179 <  ac_status=$?
10180 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 <  (exit $ac_status); }; } &&
10182 <         { ac_try='test -s conftest$ac_exeext'
10183 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 <  (eval $ac_try) 2>&5
10185 <  ac_status=$?
10186 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 <  (exit $ac_status); }; }; then
10188 <  eval "$as_ac_var=yes"
10132 > } # as_fn_mkdir_p
10133 > if mkdir -p . 2>/dev/null; then
10134 >  as_mkdir_p='mkdir -p "$as_dir"'
10135   else
10136 <  echo "$as_me: failed program was:" >&5
10137 < sed 's/^/| /' conftest.$ac_ext >&5
10192 <
10193 < eval "$as_ac_var=no"
10136 >  test -d ./-p && rmdir ./-p
10137 >  as_mkdir_p=false
10138   fi
10195 rm -f conftest.err conftest.$ac_objext \
10196      conftest$ac_exeext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201  cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10203 _ACEOF
10139  
10140 + if test -x / >/dev/null 2>&1; then
10141 +  as_test_x='test -x'
10142   else
10143 <  # FreeBSD has a gnugetopt library for this
10144 <    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
10145 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
10146 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
10147 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10148 < else
10149 <  ac_check_lib_save_LIBS=$LIBS
10150 < LIBS="-lgnugetopt  $LIBS"
10151 < cat >conftest.$ac_ext <<_ACEOF
10152 < /* confdefs.h.  */
10153 < _ACEOF
10154 < cat confdefs.h >>conftest.$ac_ext
10155 < cat >>conftest.$ac_ext <<_ACEOF
10156 < /* end confdefs.h.  */
10143 >  if ls -dL / >/dev/null 2>&1; then
10144 >    as_ls_L_option=L
10145 >  else
10146 >    as_ls_L_option=
10147 >  fi
10148 >  as_test_x='
10149 >    eval sh -c '\''
10150 >      if test -d "$1"; then
10151 >        test -d "$1/.";
10152 >      else
10153 >        case $1 in #(
10154 >        -*)set "./$1";;
10155 >        esac;
10156 >        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10157 >        ???[sx]*):;;*)false;;esac;fi
10158 >    '\'' sh
10159 >  '
10160 > fi
10161 > as_executable_p=$as_test_x
10162  
10163 < /* Override any gcc2 internal prototype to avoid an error.  */
10164 < #ifdef __cplusplus
10223 < extern "C"
10224 < #endif
10225 < /* We use char because int might match the return type of a gcc2
10226 <   builtin and then its argument prototype would still apply.  */
10227 < char getopt_long ();
10228 < #ifdef FC_DUMMY_MAIN
10229 < #ifndef FC_DUMMY_MAIN_EQ_F77
10230 < #  ifdef __cplusplus
10231 <     extern "C"
10232 < #  endif
10233 <   int FC_DUMMY_MAIN() { return 1; }
10234 < #endif
10235 < #endif
10236 < int
10237 < main ()
10238 < {
10239 < getopt_long ();
10240 <  ;
10241 <  return 0;
10242 < }
10243 < _ACEOF
10244 < rm -f conftest.$ac_objext conftest$ac_exeext
10245 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246 <  (eval $ac_link) 2>conftest.er1
10247 <  ac_status=$?
10248 <  grep -v '^ *+' conftest.er1 >conftest.err
10249 <  rm -f conftest.er1
10250 <  cat conftest.err >&5
10251 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 <  (exit $ac_status); } &&
10253 <         { ac_try='test -z "$ac_c_werror_flag"
10254 <                         || test ! -s conftest.err'
10255 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 <  (eval $ac_try) 2>&5
10257 <  ac_status=$?
10258 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 <  (exit $ac_status); }; } &&
10260 <         { ac_try='test -s conftest$ac_exeext'
10261 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 <  (eval $ac_try) 2>&5
10263 <  ac_status=$?
10264 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 <  (exit $ac_status); }; }; then
10266 <  ac_cv_lib_gnugetopt_getopt_long=yes
10267 < else
10268 <  echo "$as_me: failed program was:" >&5
10269 < sed 's/^/| /' conftest.$ac_ext >&5
10163 > # Sed expression to map a string onto a valid CPP name.
10164 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10165  
10166 < ac_cv_lib_gnugetopt_getopt_long=no
10167 < fi
10168 < rm -f conftest.err conftest.$ac_objext \
10169 <      conftest$ac_exeext conftest.$ac_ext
10170 < LIBS=$ac_check_lib_save_LIBS
10171 < fi
10172 < echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
10173 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
10174 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
10175 <  cat >>confdefs.h <<\_ACEOF
10176 < #define HAVE_GETOPT_LONG 1
10166 > # Sed expression to map a string onto a valid variable name.
10167 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10168 >
10169 >
10170 > exec 6>&1
10171 > ## ----------------------------------- ##
10172 > ## Main body of $CONFIG_STATUS script. ##
10173 > ## ----------------------------------- ##
10174 > _ASEOF
10175 > test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10176 >
10177 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10178 > # Save the log message, to keep $0 and so on meaningful, and to
10179 > # report actual input values of CONFIG_FILES etc. instead of their
10180 > # values after options handling.
10181 > ac_log="
10182 > This file was extended by OpenMD $as_me 1.0, which was
10183 > generated by GNU Autoconf 2.68.  Invocation command line was
10184 >
10185 >  CONFIG_FILES    = $CONFIG_FILES
10186 >  CONFIG_HEADERS  = $CONFIG_HEADERS
10187 >  CONFIG_LINKS    = $CONFIG_LINKS
10188 >  CONFIG_COMMANDS = $CONFIG_COMMANDS
10189 >  $ $0 $@
10190 >
10191 > on `(hostname || uname -n) 2>/dev/null | sed 1q`
10192 > "
10193 >
10194   _ACEOF
10195  
10196 < else
10197 <  # use the GNU replacement
10286 <      case $LIBOBJS in
10287 <    "getopt.$ac_objext"   | \
10288 <  *" getopt.$ac_objext"   | \
10289 <    "getopt.$ac_objext "* | \
10290 <  *" getopt.$ac_objext "* ) ;;
10291 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
10196 > case $ac_config_files in *"
10197 > "*) set x $ac_config_files; shift; ac_config_files=$*;;
10198   esac
10199  
10200 <      case $LIBOBJS in
10201 <    "getopt1.$ac_objext"   | \
10296 <  *" getopt1.$ac_objext"   | \
10297 <    "getopt1.$ac_objext "* | \
10298 <  *" getopt1.$ac_objext "* ) ;;
10299 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
10200 > case $ac_config_headers in *"
10201 > "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10202   esac
10203  
10302                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
10204  
10205 < fi
10205 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10206 > # Files that config.status was made for.
10207 > config_files="$ac_config_files"
10208 > config_headers="$ac_config_headers"
10209 >
10210 > _ACEOF
10211  
10212 < fi
10213 < done
10212 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10213 > ac_cs_usage="\
10214 > \`$as_me' instantiates files and other configuration actions
10215 > from templates according to the current configuration.  Unless the files
10216 > and actions are specified as TAGs, all are instantiated by default.
10217  
10218 + Usage: $0 [OPTION]... [TAG]...
10219  
10220 < ac_ext=cc
10221 < ac_cpp='$CXXCPP $CPPFLAGS'
10222 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10223 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10224 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10220 >  -h, --help       print this help, then exit
10221 >  -V, --version    print version number and configuration settings, then exit
10222 >      --config     print configuration, then exit
10223 >  -q, --quiet, --silent
10224 >                   do not print progress messages
10225 >  -d, --debug      don't remove temporary files
10226 >      --recheck    update $as_me by reconfiguring in the same conditions
10227 >      --file=FILE[:TEMPLATE]
10228 >                   instantiate the configuration file FILE
10229 >      --header=FILE[:TEMPLATE]
10230 >                   instantiate the configuration header FILE
10231  
10232 + Configuration files:
10233 + $config_files
10234  
10235 < echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
10236 < echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
10319 < if test "${ac_cv_cxx_namespaces+set}" = set; then
10320 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10321 < else
10235 > Configuration headers:
10236 > $config_headers
10237  
10238 + Report bugs to <gezelter@nd.edu>."
10239  
10240 < ac_ext=cc
10241 < ac_cpp='$CXXCPP $CPPFLAGS'
10242 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10243 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240 > _ACEOF
10241 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10242 > ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10243 > ac_cs_version="\\
10244 > OpenMD config.status 1.0
10245 > configured by $0, generated by GNU Autoconf 2.68,
10246 >  with options \\"\$ac_cs_config\\"
10247  
10248 < cat >conftest.$ac_ext <<_ACEOF
10249 < /* confdefs.h.  */
10248 > Copyright (C) 2010 Free Software Foundation, Inc.
10249 > This config.status script is free software; the Free Software Foundation
10250 > gives unlimited permission to copy, distribute and modify it."
10251 >
10252 > ac_pwd='$ac_pwd'
10253 > srcdir='$srcdir'
10254 > INSTALL='$INSTALL'
10255 > test -n "\$AWK" || AWK=awk
10256   _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336 namespace Outer { namespace Inner { int i = 0; }}
10337 #ifdef FC_DUMMY_MAIN
10338 #ifndef FC_DUMMY_MAIN_EQ_F77
10339 #  ifdef __cplusplus
10340     extern "C"
10341 #  endif
10342   int FC_DUMMY_MAIN() { return 1; }
10343 #endif
10344 #endif
10345 int
10346 main ()
10347 {
10348 using namespace Outer::Inner; return i;
10349  ;
10350  return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355  (eval $ac_compile) 2>conftest.er1
10356  ac_status=$?
10357  grep -v '^ *+' conftest.er1 >conftest.err
10358  rm -f conftest.er1
10359  cat conftest.err >&5
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); } &&
10362         { ac_try='test -z "$ac_cxx_werror_flag"
10363                         || test ! -s conftest.err'
10364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365  (eval $ac_try) 2>&5
10366  ac_status=$?
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); }; } &&
10369         { ac_try='test -s conftest.$ac_objext'
10370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371  (eval $ac_try) 2>&5
10372  ac_status=$?
10373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); }; }; then
10375  ac_cv_cxx_namespaces=yes
10376 else
10377  echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10257  
10258 < ac_cv_cxx_namespaces=no
10259 < fi
10260 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 < ac_ext=cc
10262 < ac_cpp='$CXXCPP $CPPFLAGS'
10263 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10258 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10259 > # The default lists apply if the user does not specify any file.
10260 > ac_need_defaults=:
10261 > while test $# != 0
10262 > do
10263 >  case $1 in
10264 >  --*=?*)
10265 >    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10266 >    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10267 >    ac_shift=:
10268 >    ;;
10269 >  --*=)
10270 >    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10271 >    ac_optarg=
10272 >    ac_shift=:
10273 >    ;;
10274 >  *)
10275 >    ac_option=$1
10276 >    ac_optarg=$2
10277 >    ac_shift=shift
10278 >    ;;
10279 >  esac
10280  
10281 +  case $ac_option in
10282 +  # Handling of the options.
10283 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10284 +    ac_cs_recheck=: ;;
10285 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10286 +    $as_echo "$ac_cs_version"; exit ;;
10287 +  --config | --confi | --conf | --con | --co | --c )
10288 +    $as_echo "$ac_cs_config"; exit ;;
10289 +  --debug | --debu | --deb | --de | --d | -d )
10290 +    debug=: ;;
10291 +  --file | --fil | --fi | --f )
10292 +    $ac_shift
10293 +    case $ac_optarg in
10294 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10295 +    '') as_fn_error $? "missing file argument" ;;
10296 +    esac
10297 +    as_fn_append CONFIG_FILES " '$ac_optarg'"
10298 +    ac_need_defaults=false;;
10299 +  --header | --heade | --head | --hea )
10300 +    $ac_shift
10301 +    case $ac_optarg in
10302 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10303 +    esac
10304 +    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10305 +    ac_need_defaults=false;;
10306 +  --he | --h)
10307 +    # Conflict between --help and --header
10308 +    as_fn_error $? "ambiguous option: \`$1'
10309 + Try \`$0 --help' for more information.";;
10310 +  --help | --hel | -h )
10311 +    $as_echo "$ac_cs_usage"; exit ;;
10312 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10313 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10314 +    ac_cs_silent=: ;;
10315  
10316 < fi
10317 < echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
10318 < echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
10393 < if test "$ac_cv_cxx_namespaces" = yes; then
10316 >  # This is an error.
10317 >  -*) as_fn_error $? "unrecognized option: \`$1'
10318 > Try \`$0 --help' for more information." ;;
10319  
10320 < cat >>confdefs.h <<\_ACEOF
10321 < #define HAVE_NAMESPACES
10397 < _ACEOF
10320 >  *) as_fn_append ac_config_targets " $1"
10321 >     ac_need_defaults=false ;;
10322  
10323 < fi
10323 >  esac
10324 >  shift
10325 > done
10326  
10327 < ac_ext=cc
10402 < ac_cpp='$CXXCPP $CPPFLAGS'
10403 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10404 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10405 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10406 < echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10407 < echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10408 < if test -z "$CXXCPP"; then
10409 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10410 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10411 < else
10412 <      # Double quotes because CXXCPP needs to be expanded
10413 <    for CXXCPP in "$CXX -E" "/lib/cpp"
10414 <    do
10415 <      ac_preproc_ok=false
10416 < for ac_cxx_preproc_warn_flag in '' yes
10417 < do
10418 <  # Use a header file that comes with gcc, so configuring glibc
10419 <  # with a fresh cross-compiler works.
10420 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421 <  # <limits.h> exists even on freestanding compilers.
10422 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10423 <  # not just through cpp. "Syntax error" is here to catch this case.
10424 <  cat >conftest.$ac_ext <<_ACEOF
10425 < /* confdefs.h.  */
10426 < _ACEOF
10427 < cat confdefs.h >>conftest.$ac_ext
10428 < cat >>conftest.$ac_ext <<_ACEOF
10429 < /* end confdefs.h.  */
10430 < #ifdef __STDC__
10431 < # include <limits.h>
10432 < #else
10433 < # include <assert.h>
10434 < #endif
10435 <                     Syntax error
10436 < _ACEOF
10437 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10438 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10439 <  ac_status=$?
10440 <  grep -v '^ *+' conftest.er1 >conftest.err
10441 <  rm -f conftest.er1
10442 <  cat conftest.err >&5
10443 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 <  (exit $ac_status); } >/dev/null; then
10445 <  if test -s conftest.err; then
10446 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10447 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10448 <  else
10449 <    ac_cpp_err=
10450 <  fi
10451 < else
10452 <  ac_cpp_err=yes
10453 < fi
10454 < if test -z "$ac_cpp_err"; then
10455 <  :
10456 < else
10457 <  echo "$as_me: failed program was:" >&5
10458 < sed 's/^/| /' conftest.$ac_ext >&5
10327 > ac_configure_extra_args=
10328  
10329 <  # Broken: fails on valid input.
10330 < continue
10329 > if $ac_cs_silent; then
10330 >  exec 6>/dev/null
10331 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
10332   fi
10463 rm -f conftest.err conftest.$ac_ext
10333  
10465  # OK, works on sane cases.  Now check whether non-existent headers
10466  # can be detected and how.
10467  cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10334   _ACEOF
10335 < cat confdefs.h >>conftest.$ac_ext
10336 < cat >>conftest.$ac_ext <<_ACEOF
10337 < /* end confdefs.h.  */
10338 < #include <ac_nonexistent.h>
10339 < _ACEOF
10340 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10341 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10342 <  ac_status=$?
10478 <  grep -v '^ *+' conftest.er1 >conftest.err
10479 <  rm -f conftest.er1
10480 <  cat conftest.err >&5
10481 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 <  (exit $ac_status); } >/dev/null; then
10483 <  if test -s conftest.err; then
10484 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10485 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10486 <  else
10487 <    ac_cpp_err=
10488 <  fi
10489 < else
10490 <  ac_cpp_err=yes
10335 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10336 > if \$ac_cs_recheck; then
10337 >  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10338 >  shift
10339 >  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10340 >  CONFIG_SHELL='$SHELL'
10341 >  export CONFIG_SHELL
10342 >  exec "\$@"
10343   fi
10492 if test -z "$ac_cpp_err"; then
10493  # Broken: success on invalid input.
10494 continue
10495 else
10496  echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10344  
10345 <  # Passes both tests.
10346 < ac_preproc_ok=:
10347 < break
10348 < fi
10349 < rm -f conftest.err conftest.$ac_ext
10345 > _ACEOF
10346 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10347 > exec 5>>config.log
10348 > {
10349 >  echo
10350 >  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10351 > ## Running $as_me. ##
10352 > _ASBOX
10353 >  $as_echo "$ac_log"
10354 > } >&5
10355  
10356 < done
10357 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10358 < rm -f conftest.err conftest.$ac_ext
10508 < if $ac_preproc_ok; then
10509 <  break
10510 < fi
10356 > _ACEOF
10357 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10358 > _ACEOF
10359  
10360 <    done
10513 <    ac_cv_prog_CXXCPP=$CXXCPP
10360 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10361  
10362 < fi
10363 <  CXXCPP=$ac_cv_prog_CXXCPP
10517 < else
10518 <  ac_cv_prog_CXXCPP=$CXXCPP
10519 < fi
10520 < echo "$as_me:$LINENO: result: $CXXCPP" >&5
10521 < echo "${ECHO_T}$CXXCPP" >&6
10522 < ac_preproc_ok=false
10523 < for ac_cxx_preproc_warn_flag in '' yes
10362 > # Handling of arguments.
10363 > for ac_config_target in $ac_config_targets
10364   do
10365 <  # Use a header file that comes with gcc, so configuring glibc
10366 <  # with a fresh cross-compiler works.
10367 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <  # <limits.h> exists even on freestanding compilers.
10369 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10370 <  # not just through cpp. "Syntax error" is here to catch this case.
10371 <  cat >conftest.$ac_ext <<_ACEOF
10372 < /* confdefs.h.  */
10533 < _ACEOF
10534 < cat confdefs.h >>conftest.$ac_ext
10535 < cat >>conftest.$ac_ext <<_ACEOF
10536 < /* end confdefs.h.  */
10537 < #ifdef __STDC__
10538 < # include <limits.h>
10539 < #else
10540 < # include <assert.h>
10541 < #endif
10542 <                     Syntax error
10543 < _ACEOF
10544 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546 <  ac_status=$?
10547 <  grep -v '^ *+' conftest.er1 >conftest.err
10548 <  rm -f conftest.er1
10549 <  cat conftest.err >&5
10550 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 <  (exit $ac_status); } >/dev/null; then
10552 <  if test -s conftest.err; then
10553 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10554 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10555 <  else
10556 <    ac_cpp_err=
10557 <  fi
10558 < else
10559 <  ac_cpp_err=yes
10560 < fi
10561 < if test -z "$ac_cpp_err"; then
10562 <  :
10563 < else
10564 <  echo "$as_me: failed program was:" >&5
10565 < sed 's/^/| /' conftest.$ac_ext >&5
10365 >  case $ac_config_target in
10366 >    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
10367 >    "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
10368 >    "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
10369 >    "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
10370 >    "src/integrators/Makefile") CONFIG_FILES="$CONFIG_FILES src/integrators/Makefile" ;;
10371 >    "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
10372 >    "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
10373  
10374 <  # Broken: fails on valid input.
10375 < continue
10376 < fi
10570 < rm -f conftest.err conftest.$ac_ext
10374 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10375 >  esac
10376 > done
10377  
10572  # OK, works on sane cases.  Now check whether non-existent headers
10573  # can be detected and how.
10574  cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580 #include <ac_nonexistent.h>
10581 _ACEOF
10582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10583  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10584  ac_status=$?
10585  grep -v '^ *+' conftest.er1 >conftest.err
10586  rm -f conftest.er1
10587  cat conftest.err >&5
10588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589  (exit $ac_status); } >/dev/null; then
10590  if test -s conftest.err; then
10591    ac_cpp_err=$ac_cxx_preproc_warn_flag
10592    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10593  else
10594    ac_cpp_err=
10595  fi
10596 else
10597  ac_cpp_err=yes
10598 fi
10599 if test -z "$ac_cpp_err"; then
10600  # Broken: success on invalid input.
10601 continue
10602 else
10603  echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10378  
10379 <  # Passes both tests.
10380 < ac_preproc_ok=:
10381 < break
10379 > # If the user did not use the arguments to specify the items to instantiate,
10380 > # then the envvar interface is used.  Set only those that are not.
10381 > # We use the long form for the default assignment because of an extremely
10382 > # bizarre bug on SunOS 4.1.3.
10383 > if $ac_need_defaults; then
10384 >  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10385 >  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10386   fi
10610 rm -f conftest.err conftest.$ac_ext
10387  
10388 < done
10389 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10390 < rm -f conftest.err conftest.$ac_ext
10391 < if $ac_preproc_ok; then
10392 <  :
10393 < else
10394 <  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10395 < See \`config.log' for more details." >&5
10396 < echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10397 < See \`config.log' for more details." >&2;}
10398 <   { (exit 1); exit 1; }; }
10399 < fi
10388 > # Have a temporary directory for convenience.  Make it in the build tree
10389 > # simply because there is no reason against having it here, and in addition,
10390 > # creating and moving files from /tmp can sometimes cause problems.
10391 > # Hook for its removal unless debugging.
10392 > # Note that there is a small window in which the directory will not be cleaned:
10393 > # after its creation but before its name has been assigned to `$tmp'.
10394 > $debug ||
10395 > {
10396 >  tmp= ac_tmp=
10397 >  trap 'exit_status=$?
10398 >  : "${ac_tmp:=$tmp}"
10399 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10400 > ' 0
10401 >  trap 'as_fn_exit 1' 1 2 13 15
10402 > }
10403 > # Create a (secure) tmp directory for tmp files.
10404  
10405 < ac_ext=cc
10406 < ac_cpp='$CXXCPP $CPPFLAGS'
10407 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10405 > {
10406 >  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10407 >  test -d "$tmp"
10408 > }  ||
10409 > {
10410 >  tmp=./conf$$-$RANDOM
10411 >  (umask 077 && mkdir "$tmp")
10412 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10413 > ac_tmp=$tmp
10414  
10415 + # Set up the scripts for CONFIG_FILES section.
10416 + # No need to generate them if there are no CONFIG_FILES.
10417 + # This happens for instance with `./config.status config.h'.
10418 + if test -n "$CONFIG_FILES"; then
10419  
10420 < echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
10421 < echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
10422 < if test "${ac_cv_cxx_have_stl+set}" = set; then
10423 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10420 >
10421 > ac_cr=`echo X | tr X '\015'`
10422 > # On cygwin, bash can eat \r inside `` if the user requested igncr.
10423 > # But we know of no other shell where ac_cr would be empty at this
10424 > # point, so we can use a bashism as a fallback.
10425 > if test "x$ac_cr" = x; then
10426 >  eval ac_cr=\$\'\\r\'
10427 > fi
10428 > ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10429 > if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10430 >  ac_cs_awk_cr='\\r'
10431   else
10432 +  ac_cs_awk_cr=$ac_cr
10433 + fi
10434  
10435 + echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10436 + _ACEOF
10437  
10438  
10439 < ac_ext=cc
10440 < ac_cpp='$CXXCPP $CPPFLAGS'
10441 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10442 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10443 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10444 <
10445 < cat >conftest.$ac_ext <<_ACEOF
10446 < /* confdefs.h.  */
10447 < _ACEOF
10448 < cat confdefs.h >>conftest.$ac_ext
10449 < cat >>conftest.$ac_ext <<_ACEOF
10450 < /* end confdefs.h.  */
10451 < #include <list>
10452 < #include <deque>
10453 < #ifdef HAVE_NAMESPACES
10454 < using namespace std;
10455 < #endif
10456 < #ifdef FC_DUMMY_MAIN
10457 < #ifndef FC_DUMMY_MAIN_EQ_F77
10458 < #  ifdef __cplusplus
10459 <     extern "C"
10460 < #  endif
10461 <   int FC_DUMMY_MAIN() { return 1; }
10462 < #endif
10463 < #endif
10464 < int
10465 < main ()
10466 < {
10467 < list<int> x; x.push_back(5);
10468 < list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
10469 <  ;
10470 <  return 0;
10471 < }
10472 < _ACEOF
10473 < rm -f conftest.$ac_objext
10474 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 <  (eval $ac_compile) 2>conftest.er1
10476 <  ac_status=$?
10477 <  grep -v '^ *+' conftest.er1 >conftest.err
10478 <  rm -f conftest.er1
10479 <  cat conftest.err >&5
10480 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 <  (exit $ac_status); } &&
10482 <         { ac_try='test -z "$ac_cxx_werror_flag"
10483 <                         || test ! -s conftest.err'
10484 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 <  (eval $ac_try) 2>&5
10486 <  ac_status=$?
10487 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 <  (exit $ac_status); }; } &&
10489 <         { ac_try='test -s conftest.$ac_objext'
10490 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 <  (eval $ac_try) 2>&5
10492 <  ac_status=$?
10493 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 <  (exit $ac_status); }; }; then
10495 <  ac_cv_cxx_have_stl=yes
10496 < else
10497 <  echo "$as_me: failed program was:" >&5
10498 < sed 's/^/| /' conftest.$ac_ext >&5
10499 <
10500 < ac_cv_cxx_have_stl=no
10501 < fi
10502 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10503 < ac_ext=cc
10504 < ac_cpp='$CXXCPP $CPPFLAGS'
10505 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10508 <
10509 <
10510 < fi
10511 < echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
10512 < echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
10513 < if test "$ac_cv_cxx_have_stl" = yes; then
10514 <
10515 < cat >>confdefs.h <<\_ACEOF
10516 < #define HAVE_STL
10517 < _ACEOF
10518 <
10519 < fi
10520 <
10521 <
10522 <
10523 <  if test "${ac_cv_header_iostream+set}" = set; then
10524 <  echo "$as_me:$LINENO: checking for iostream" >&5
10525 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6
10526 < if test "${ac_cv_header_iostream+set}" = set; then
10527 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10528 < fi
10529 < echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
10530 < echo "${ECHO_T}$ac_cv_header_iostream" >&6
10531 < else
10532 <  # Is the header compilable?
10533 < echo "$as_me:$LINENO: checking iostream usability" >&5
10534 < echo $ECHO_N "checking iostream usability... $ECHO_C" >&6
10535 < cat >conftest.$ac_ext <<_ACEOF
10536 < /* confdefs.h.  */
10537 < _ACEOF
10538 < cat confdefs.h >>conftest.$ac_ext
10539 < cat >>conftest.$ac_ext <<_ACEOF
10540 < /* end confdefs.h.  */
10541 < $ac_includes_default
10542 < #include <iostream>
10543 < _ACEOF
10544 < rm -f conftest.$ac_objext
10545 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 <  (eval $ac_compile) 2>conftest.er1
10547 <  ac_status=$?
10548 <  grep -v '^ *+' conftest.er1 >conftest.err
10549 <  rm -f conftest.er1
10550 <  cat conftest.err >&5
10551 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 <  (exit $ac_status); } &&
10553 <         { ac_try='test -z "$ac_cxx_werror_flag"
10554 <                         || test ! -s conftest.err'
10555 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 <  (eval $ac_try) 2>&5
10557 <  ac_status=$?
10558 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 <  (exit $ac_status); }; } &&
10560 <         { ac_try='test -s conftest.$ac_objext'
10561 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 <  (eval $ac_try) 2>&5
10563 <  ac_status=$?
10564 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 <  (exit $ac_status); }; }; then
10566 <  ac_header_compiler=yes
10567 < else
10568 <  echo "$as_me: failed program was:" >&5
10569 < sed 's/^/| /' conftest.$ac_ext >&5
10570 <
10571 < ac_header_compiler=no
10572 < fi
10573 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10574 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 < echo "${ECHO_T}$ac_header_compiler" >&6
10576 <
10577 < # Is the header present?
10578 < echo "$as_me:$LINENO: checking iostream presence" >&5
10579 < echo $ECHO_N "checking iostream presence... $ECHO_C" >&6
10580 < cat >conftest.$ac_ext <<_ACEOF
10581 < /* confdefs.h.  */
10582 < _ACEOF
10583 < cat confdefs.h >>conftest.$ac_ext
10584 < cat >>conftest.$ac_ext <<_ACEOF
10585 < /* end confdefs.h.  */
10586 < #include <iostream>
10587 < _ACEOF
10588 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10589 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10590 <  ac_status=$?
10591 <  grep -v '^ *+' conftest.er1 >conftest.err
10592 <  rm -f conftest.er1
10593 <  cat conftest.err >&5
10594 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 <  (exit $ac_status); } >/dev/null; then
10596 <  if test -s conftest.err; then
10597 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10598 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10599 <  else
10600 <    ac_cpp_err=
10601 <  fi
10602 < else
10603 <  ac_cpp_err=yes
10604 < fi
10605 < if test -z "$ac_cpp_err"; then
10606 <  ac_header_preproc=yes
10607 < else
10608 <  echo "$as_me: failed program was:" >&5
10609 < sed 's/^/| /' conftest.$ac_ext >&5
10610 <
10611 <  ac_header_preproc=no
10612 < fi
10613 < rm -f conftest.err conftest.$ac_ext
10614 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615 < echo "${ECHO_T}$ac_header_preproc" >&6
10616 <
10617 < # So?  What about this header?
10618 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10619 <  yes:no: )
10620 <    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
10621 < echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
10622 <    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
10623 < echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
10624 <    ac_header_preproc=yes
10625 <    ;;
10626 <  no:yes:* )
10627 <    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
10628 < echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
10629 <    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
10630 < echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
10631 <    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
10632 < echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
10633 <    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
10634 < echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
10635 <    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
10636 < echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
10637 <    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
10638 < echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
10639 <    (
10640 <      cat <<\_ASBOX
10641 < ## ------------------------------ ##
10642 < ## Report this to gezelter@nd.edu ##
10643 < ## ------------------------------ ##
10644 < _ASBOX
10645 <    ) |
10646 <      sed "s/^/$as_me: WARNING:     /" >&2
10647 <    ;;
10648 < esac
10649 < echo "$as_me:$LINENO: checking for iostream" >&5
10650 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6
10651 < if test "${ac_cv_header_iostream+set}" = set; then
10652 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10653 < else
10654 <  ac_cv_header_iostream=$ac_header_preproc
10655 < fi
10656 < echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
10657 < echo "${ECHO_T}$ac_cv_header_iostream" >&6
10658 <
10659 < fi
10660 < if test $ac_cv_header_iostream = yes; then
10661 <
10662 <
10663 < cat >>confdefs.h <<\_ACEOF
10664 < #define HAVE_IOSTREAM 1
10665 < _ACEOF
10666 <
10667 <
10668 < else
10669 <
10670 <
10671 < for ac_header in iostream.h
10672 < do
10673 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10674 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10677 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10679 < fi
10680 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682 < else
10683 <  # Is the header compilable?
10684 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10686 < cat >conftest.$ac_ext <<_ACEOF
10687 < /* confdefs.h.  */
10688 < _ACEOF
10689 < cat confdefs.h >>conftest.$ac_ext
10690 < cat >>conftest.$ac_ext <<_ACEOF
10691 < /* end confdefs.h.  */
10692 < $ac_includes_default
10693 < #include <$ac_header>
10694 < _ACEOF
10695 < rm -f conftest.$ac_objext
10696 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 <  (eval $ac_compile) 2>conftest.er1
10698 <  ac_status=$?
10699 <  grep -v '^ *+' conftest.er1 >conftest.err
10700 <  rm -f conftest.er1
10701 <  cat conftest.err >&5
10702 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 <  (exit $ac_status); } &&
10704 <         { ac_try='test -z "$ac_cxx_werror_flag"
10705 <                         || test ! -s conftest.err'
10706 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 <  (eval $ac_try) 2>&5
10708 <  ac_status=$?
10709 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 <  (exit $ac_status); }; } &&
10711 <         { ac_try='test -s conftest.$ac_objext'
10712 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 <  (eval $ac_try) 2>&5
10714 <  ac_status=$?
10715 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 <  (exit $ac_status); }; }; then
10717 <  ac_header_compiler=yes
10718 < else
10719 <  echo "$as_me: failed program was:" >&5
10720 < sed 's/^/| /' conftest.$ac_ext >&5
10721 <
10722 < ac_header_compiler=no
10723 < fi
10724 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 < echo "${ECHO_T}$ac_header_compiler" >&6
10727 <
10728 < # Is the header present?
10729 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10731 < cat >conftest.$ac_ext <<_ACEOF
10732 < /* confdefs.h.  */
10733 < _ACEOF
10734 < cat confdefs.h >>conftest.$ac_ext
10735 < cat >>conftest.$ac_ext <<_ACEOF
10736 < /* end confdefs.h.  */
10737 < #include <$ac_header>
10738 < _ACEOF
10739 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741 <  ac_status=$?
10742 <  grep -v '^ *+' conftest.er1 >conftest.err
10743 <  rm -f conftest.er1
10744 <  cat conftest.err >&5
10745 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 <  (exit $ac_status); } >/dev/null; then
10747 <  if test -s conftest.err; then
10748 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10749 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10750 <  else
10751 <    ac_cpp_err=
10752 <  fi
10753 < else
10754 <  ac_cpp_err=yes
10755 < fi
10756 < if test -z "$ac_cpp_err"; then
10757 <  ac_header_preproc=yes
10758 < else
10759 <  echo "$as_me: failed program was:" >&5
10760 < sed 's/^/| /' conftest.$ac_ext >&5
10761 <
10762 <  ac_header_preproc=no
10763 < fi
10764 < rm -f conftest.err conftest.$ac_ext
10765 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10766 < echo "${ECHO_T}$ac_header_preproc" >&6
10767 <
10768 < # So?  What about this header?
10769 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10770 <  yes:no: )
10771 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10772 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10773 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10774 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10775 <    ac_header_preproc=yes
10776 <    ;;
10777 <  no:yes:* )
10778 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10779 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10780 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10781 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10782 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10783 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10784 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10785 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10786 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10787 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10788 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10789 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10790 <    (
10791 <      cat <<\_ASBOX
10792 < ## ------------------------------ ##
10793 < ## Report this to gezelter@nd.edu ##
10794 < ## ------------------------------ ##
10795 < _ASBOX
10796 <    ) |
10797 <      sed "s/^/$as_me: WARNING:     /" >&2
10798 <    ;;
10799 < esac
10800 < echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10804 < else
10805 <  eval "$as_ac_Header=\$ac_header_preproc"
10806 < fi
10807 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809 <
10810 < fi
10811 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812 <  cat >>confdefs.h <<_ACEOF
10813 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 < _ACEOF
10815 <
10816 < fi
10817 <
10818 < done
10819 <
10820 <
10821 < fi
10822 <
10823 <
10824 <
10825 <
10826 <  if test "${ac_cv_header_iomanip+set}" = set; then
10827 <  echo "$as_me:$LINENO: checking for iomanip" >&5
10828 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
10829 < if test "${ac_cv_header_iomanip+set}" = set; then
10830 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10831 < fi
10832 < echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
10833 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6
10834 < else
10835 <  # Is the header compilable?
10836 < echo "$as_me:$LINENO: checking iomanip usability" >&5
10837 < echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6
10838 < cat >conftest.$ac_ext <<_ACEOF
10839 < /* confdefs.h.  */
10840 < _ACEOF
10841 < cat confdefs.h >>conftest.$ac_ext
10842 < cat >>conftest.$ac_ext <<_ACEOF
10843 < /* end confdefs.h.  */
10844 < $ac_includes_default
10845 < #include <iomanip>
10846 < _ACEOF
10847 < rm -f conftest.$ac_objext
10848 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 <  (eval $ac_compile) 2>conftest.er1
10850 <  ac_status=$?
10851 <  grep -v '^ *+' conftest.er1 >conftest.err
10852 <  rm -f conftest.er1
10853 <  cat conftest.err >&5
10854 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 <  (exit $ac_status); } &&
10856 <         { ac_try='test -z "$ac_cxx_werror_flag"
10857 <                         || test ! -s conftest.err'
10858 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 <  (eval $ac_try) 2>&5
10860 <  ac_status=$?
10861 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 <  (exit $ac_status); }; } &&
10863 <         { ac_try='test -s conftest.$ac_objext'
10864 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 <  (eval $ac_try) 2>&5
10866 <  ac_status=$?
10867 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 <  (exit $ac_status); }; }; then
10869 <  ac_header_compiler=yes
10870 < else
10871 <  echo "$as_me: failed program was:" >&5
10872 < sed 's/^/| /' conftest.$ac_ext >&5
10873 <
10874 < ac_header_compiler=no
10875 < fi
10876 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10878 < echo "${ECHO_T}$ac_header_compiler" >&6
10879 <
10880 < # Is the header present?
10881 < echo "$as_me:$LINENO: checking iomanip presence" >&5
10882 < echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6
10883 < cat >conftest.$ac_ext <<_ACEOF
10884 < /* confdefs.h.  */
10885 < _ACEOF
10886 < cat confdefs.h >>conftest.$ac_ext
10887 < cat >>conftest.$ac_ext <<_ACEOF
10888 < /* end confdefs.h.  */
10889 < #include <iomanip>
10890 < _ACEOF
10891 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10892 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10893 <  ac_status=$?
10894 <  grep -v '^ *+' conftest.er1 >conftest.err
10895 <  rm -f conftest.er1
10896 <  cat conftest.err >&5
10897 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 <  (exit $ac_status); } >/dev/null; then
10899 <  if test -s conftest.err; then
10900 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
10901 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10902 <  else
10903 <    ac_cpp_err=
10904 <  fi
10905 < else
10906 <  ac_cpp_err=yes
10907 < fi
10908 < if test -z "$ac_cpp_err"; then
10909 <  ac_header_preproc=yes
10910 < else
10911 <  echo "$as_me: failed program was:" >&5
10912 < sed 's/^/| /' conftest.$ac_ext >&5
10913 <
10914 <  ac_header_preproc=no
10915 < fi
10916 < rm -f conftest.err conftest.$ac_ext
10917 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 < echo "${ECHO_T}$ac_header_preproc" >&6
10919 <
10920 < # So?  What about this header?
10921 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10922 <  yes:no: )
10923 <    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
10924 < echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
10926 < echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
10927 <    ac_header_preproc=yes
10928 <    ;;
10929 <  no:yes:* )
10930 <    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
10931 < echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
10932 <    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
10933 < echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
10934 <    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
10935 < echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
10936 <    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
10937 < echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
10938 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
10939 < echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
10940 <    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
10941 < echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
10942 <    (
10943 <      cat <<\_ASBOX
10944 < ## ------------------------------ ##
10945 < ## Report this to gezelter@nd.edu ##
10946 < ## ------------------------------ ##
10947 < _ASBOX
10948 <    ) |
10949 <      sed "s/^/$as_me: WARNING:     /" >&2
10950 <    ;;
10951 < esac
10952 < echo "$as_me:$LINENO: checking for iomanip" >&5
10953 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
10954 < if test "${ac_cv_header_iomanip+set}" = set; then
10955 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10956 < else
10957 <  ac_cv_header_iomanip=$ac_header_preproc
10958 < fi
10959 < echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
10960 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6
10961 <
10962 < fi
10963 < if test $ac_cv_header_iomanip = yes; then
10964 <
10965 <
10966 < cat >>confdefs.h <<\_ACEOF
11168 < #define HAVE_IOMANIP 1
11169 < _ACEOF
11170 <
11171 <
11172 < else
11173 <
11174 <
11175 < for ac_header in iomanip.h
11176 < do
11177 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11179 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11181 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11182 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11183 < fi
11184 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11185 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11186 < else
11187 <  # Is the header compilable?
11188 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11190 < cat >conftest.$ac_ext <<_ACEOF
11191 < /* confdefs.h.  */
11192 < _ACEOF
11193 < cat confdefs.h >>conftest.$ac_ext
11194 < cat >>conftest.$ac_ext <<_ACEOF
11195 < /* end confdefs.h.  */
11196 < $ac_includes_default
11197 < #include <$ac_header>
11198 < _ACEOF
11199 < rm -f conftest.$ac_objext
11200 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 <  (eval $ac_compile) 2>conftest.er1
11202 <  ac_status=$?
11203 <  grep -v '^ *+' conftest.er1 >conftest.err
11204 <  rm -f conftest.er1
11205 <  cat conftest.err >&5
11206 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 <  (exit $ac_status); } &&
11208 <         { ac_try='test -z "$ac_cxx_werror_flag"
11209 <                         || test ! -s conftest.err'
11210 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 <  (eval $ac_try) 2>&5
11212 <  ac_status=$?
11213 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 <  (exit $ac_status); }; } &&
11215 <         { ac_try='test -s conftest.$ac_objext'
11216 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 <  (eval $ac_try) 2>&5
11218 <  ac_status=$?
11219 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 <  (exit $ac_status); }; }; then
11221 <  ac_header_compiler=yes
11222 < else
11223 <  echo "$as_me: failed program was:" >&5
11224 < sed 's/^/| /' conftest.$ac_ext >&5
11225 <
11226 < ac_header_compiler=no
11227 < fi
11228 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11229 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 < echo "${ECHO_T}$ac_header_compiler" >&6
11231 <
11232 < # Is the header present?
11233 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11235 < cat >conftest.$ac_ext <<_ACEOF
11236 < /* confdefs.h.  */
11237 < _ACEOF
11238 < cat confdefs.h >>conftest.$ac_ext
11239 < cat >>conftest.$ac_ext <<_ACEOF
11240 < /* end confdefs.h.  */
11241 < #include <$ac_header>
11242 < _ACEOF
11243 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11244 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11245 <  ac_status=$?
11246 <  grep -v '^ *+' conftest.er1 >conftest.err
11247 <  rm -f conftest.er1
11248 <  cat conftest.err >&5
11249 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 <  (exit $ac_status); } >/dev/null; then
11251 <  if test -s conftest.err; then
11252 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
11253 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11254 <  else
11255 <    ac_cpp_err=
11256 <  fi
11257 < else
11258 <  ac_cpp_err=yes
11259 < fi
11260 < if test -z "$ac_cpp_err"; then
11261 <  ac_header_preproc=yes
11262 < else
11263 <  echo "$as_me: failed program was:" >&5
11264 < sed 's/^/| /' conftest.$ac_ext >&5
11265 <
11266 <  ac_header_preproc=no
11267 < fi
11268 < rm -f conftest.err conftest.$ac_ext
11269 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 < echo "${ECHO_T}$ac_header_preproc" >&6
11271 <
11272 < # So?  What about this header?
11273 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11274 <  yes:no: )
11275 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279 <    ac_header_preproc=yes
11280 <    ;;
11281 <  no:yes:* )
11282 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11285 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11286 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11289 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11290 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294 <    (
11295 <      cat <<\_ASBOX
11296 < ## ------------------------------ ##
11297 < ## Report this to gezelter@nd.edu ##
11298 < ## ------------------------------ ##
11299 < _ASBOX
11300 <    ) |
11301 <      sed "s/^/$as_me: WARNING:     /" >&2
11302 <    ;;
11303 < esac
11304 < echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11306 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11308 < else
11309 <  eval "$as_ac_Header=\$ac_header_preproc"
11310 < fi
11311 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11312 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11313 <
11314 < fi
11315 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 <  cat >>confdefs.h <<_ACEOF
11317 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 < _ACEOF
11319 <
11320 < fi
11321 <
11322 < done
11323 <
11324 <
11325 < fi
11326 <
11327 <
11328 <
11329 <
11330 < for ac_header in cmath
11331 < do
11332 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11334 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11336 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11337 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11338 < fi
11339 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11340 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11341 < else
11342 <  # Is the header compilable?
11343 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11345 < cat >conftest.$ac_ext <<_ACEOF
11346 < /* confdefs.h.  */
11347 < _ACEOF
11348 < cat confdefs.h >>conftest.$ac_ext
11349 < cat >>conftest.$ac_ext <<_ACEOF
11350 < /* end confdefs.h.  */
11351 < $ac_includes_default
11352 < #include <$ac_header>
11353 < _ACEOF
11354 < rm -f conftest.$ac_objext
11355 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356 <  (eval $ac_compile) 2>conftest.er1
11357 <  ac_status=$?
11358 <  grep -v '^ *+' conftest.er1 >conftest.err
11359 <  rm -f conftest.er1
11360 <  cat conftest.err >&5
11361 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 <  (exit $ac_status); } &&
11363 <         { ac_try='test -z "$ac_cxx_werror_flag"
11364 <                         || test ! -s conftest.err'
11365 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 <  (eval $ac_try) 2>&5
11367 <  ac_status=$?
11368 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 <  (exit $ac_status); }; } &&
11370 <         { ac_try='test -s conftest.$ac_objext'
11371 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 <  (eval $ac_try) 2>&5
11373 <  ac_status=$?
11374 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 <  (exit $ac_status); }; }; then
11376 <  ac_header_compiler=yes
11377 < else
11378 <  echo "$as_me: failed program was:" >&5
11379 < sed 's/^/| /' conftest.$ac_ext >&5
11380 <
11381 < ac_header_compiler=no
11382 < fi
11383 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11385 < echo "${ECHO_T}$ac_header_compiler" >&6
11386 <
11387 < # Is the header present?
11388 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
11389 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11390 < cat >conftest.$ac_ext <<_ACEOF
11391 < /* confdefs.h.  */
11392 < _ACEOF
11393 < cat confdefs.h >>conftest.$ac_ext
11394 < cat >>conftest.$ac_ext <<_ACEOF
11395 < /* end confdefs.h.  */
11396 < #include <$ac_header>
11397 < _ACEOF
11398 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11399 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11400 <  ac_status=$?
11401 <  grep -v '^ *+' conftest.er1 >conftest.err
11402 <  rm -f conftest.er1
11403 <  cat conftest.err >&5
11404 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 <  (exit $ac_status); } >/dev/null; then
11406 <  if test -s conftest.err; then
11407 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
11408 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11409 <  else
11410 <    ac_cpp_err=
11411 <  fi
11412 < else
11413 <  ac_cpp_err=yes
11414 < fi
11415 < if test -z "$ac_cpp_err"; then
11416 <  ac_header_preproc=yes
11417 < else
11418 <  echo "$as_me: failed program was:" >&5
11419 < sed 's/^/| /' conftest.$ac_ext >&5
11420 <
11421 <  ac_header_preproc=no
11422 < fi
11423 < rm -f conftest.err conftest.$ac_ext
11424 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425 < echo "${ECHO_T}$ac_header_preproc" >&6
11426 <
11427 < # So?  What about this header?
11428 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11429 <  yes:no: )
11430 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 <    ac_header_preproc=yes
11435 <    ;;
11436 <  no:yes:* )
11437 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11440 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11441 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11444 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11445 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 <    (
11450 <      cat <<\_ASBOX
11451 < ## ------------------------------ ##
11452 < ## Report this to gezelter@nd.edu ##
11453 < ## ------------------------------ ##
11454 < _ASBOX
11455 <    ) |
11456 <      sed "s/^/$as_me: WARNING:     /" >&2
11457 <    ;;
11458 < esac
11459 < echo "$as_me:$LINENO: checking for $ac_header" >&5
11460 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11461 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11463 < else
11464 <  eval "$as_ac_Header=\$ac_header_preproc"
11465 < fi
11466 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11467 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11468 <
11469 < fi
11470 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 <  cat >>confdefs.h <<_ACEOF
11472 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 < _ACEOF
11474 <
11475 < fi
11476 <
11477 < done
11478 <
11479 <
11480 <
11481 <
11482 <  echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
11483 < echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6
11484 < if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
11485 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11486 < else
11487 <
11488 <      ac_cv_cxx_have_std_iostream=no
11489 <      ac_cv_cxx_need_use_std_iostream=no
11490 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11491 <
11492 <
11493 <        ac_ext=cc
11494 < ac_cpp='$CXXCPP $CPPFLAGS'
11495 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11498 <
11499 <        cat >conftest.$ac_ext <<_ACEOF
11500 < /* confdefs.h.  */
11501 < _ACEOF
11502 < cat confdefs.h >>conftest.$ac_ext
11503 < cat >>conftest.$ac_ext <<_ACEOF
11504 < /* end confdefs.h.  */
11505 <
11506 < #ifdef HAVE_IOSTREAM
11507 < #include <iostream>
11508 < #else
11509 < #include <iostream.h>
11510 < #endif
11511 <
11512 < #ifdef FC_DUMMY_MAIN
11513 < #ifndef FC_DUMMY_MAIN_EQ_F77
11514 < #  ifdef __cplusplus
11515 <     extern "C"
11516 < #  endif
11517 <   int FC_DUMMY_MAIN() { return 1; }
11518 < #endif
11519 < #endif
11520 < int
11521 < main ()
11522 < {
11523 < std::cout<<"Hello World"<<std::endl;return 0;
11524 <  ;
11525 <  return 0;
11526 < }
11527 < _ACEOF
11528 < rm -f conftest.$ac_objext
11529 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 <  (eval $ac_compile) 2>conftest.er1
11531 <  ac_status=$?
11532 <  grep -v '^ *+' conftest.er1 >conftest.err
11533 <  rm -f conftest.er1
11534 <  cat conftest.err >&5
11535 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 <  (exit $ac_status); } &&
11537 <         { ac_try='test -z "$ac_cxx_werror_flag"
11538 <                         || test ! -s conftest.err'
11539 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 <  (eval $ac_try) 2>&5
11541 <  ac_status=$?
11542 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 <  (exit $ac_status); }; } &&
11544 <         { ac_try='test -s conftest.$ac_objext'
11545 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 <  (eval $ac_try) 2>&5
11547 <  ac_status=$?
11548 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 <  (exit $ac_status); }; }; then
11550 <  ac_cv_cxx_have_std_iostream=yes
11551 < else
11552 <  echo "$as_me: failed program was:" >&5
11553 < sed 's/^/| /' conftest.$ac_ext >&5
11554 <
11555 < fi
11556 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557 <        cat >conftest.$ac_ext <<_ACEOF
11558 < /* confdefs.h.  */
11559 < _ACEOF
11560 < cat confdefs.h >>conftest.$ac_ext
11561 < cat >>conftest.$ac_ext <<_ACEOF
11562 < /* end confdefs.h.  */
11563 <
11564 < #define __USE_STD_IOSTREAM 1
11565 < #ifdef HAVE_IOSTREAM
11566 < #include <iostream>
11567 < #else
11568 < #include <iostream.h>
11569 < #endif
11570 <
11571 < #ifdef FC_DUMMY_MAIN
11572 < #ifndef FC_DUMMY_MAIN_EQ_F77
11573 < #  ifdef __cplusplus
11574 <     extern "C"
11575 < #  endif
11576 <   int FC_DUMMY_MAIN() { return 1; }
11577 < #endif
11578 < #endif
11579 < int
11580 < main ()
11581 < {
11582 < std::cout<<"Hello World"<<std::endl;return 0;
11583 <  ;
11584 <  return 0;
11585 < }
11586 < _ACEOF
11587 < rm -f conftest.$ac_objext
11588 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 <  (eval $ac_compile) 2>conftest.er1
11590 <  ac_status=$?
11591 <  grep -v '^ *+' conftest.er1 >conftest.err
11592 <  rm -f conftest.er1
11593 <  cat conftest.err >&5
11594 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 <  (exit $ac_status); } &&
11596 <         { ac_try='test -z "$ac_cxx_werror_flag"
11597 <                         || test ! -s conftest.err'
11598 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 <  (eval $ac_try) 2>&5
11600 <  ac_status=$?
11601 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 <  (exit $ac_status); }; } &&
11603 <         { ac_try='test -s conftest.$ac_objext'
11604 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 <  (eval $ac_try) 2>&5
11606 <  ac_status=$?
11607 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 <  (exit $ac_status); }; }; then
11609 <  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
11610 < else
11611 <  echo "$as_me: failed program was:" >&5
11612 < sed 's/^/| /' conftest.$ac_ext >&5
11613 <
11614 < fi
11615 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11616 <        ac_ext=cc
11617 < ac_cpp='$CXXCPP $CPPFLAGS'
11618 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11621 <
11622 <      fi
11623 <
11624 < fi
11625 < echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
11626 < echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6
11627 <  if test "$ac_cv_cxx_have_std_iostream" = yes; then
11628 <
11629 < cat >>confdefs.h <<\_ACEOF
11630 < #define HAVE_STD_IOSTREAM 1
11631 < _ACEOF
11632 <
11633 <  fi
11634 <  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
11635 <
11636 < cat >>confdefs.h <<\_ACEOF
11637 < #define __USE_STD_IOSTREAM 1
11638 < _ACEOF
11639 <
11640 <  fi
11641 <
11642 <
11643 <
11644 <
11645 <  echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
11646 < echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6
11647 < if test "${ac_cv_cxx_have_std_stl+set}" = set; then
11648 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11649 < else
11650 <
11651 <      ac_cv_cxx_have_std_stl=no
11652 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11653 <
11654 <
11655 <        ac_ext=cc
11656 < ac_cpp='$CXXCPP $CPPFLAGS'
11657 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11660 <
11661 <        cat >conftest.$ac_ext <<_ACEOF
11662 < /* confdefs.h.  */
11663 < _ACEOF
11664 < cat confdefs.h >>conftest.$ac_ext
11665 < cat >>conftest.$ac_ext <<_ACEOF
11666 < /* end confdefs.h.  */
11667 < #include <list>
11668 <
11669 < #ifdef FC_DUMMY_MAIN
11670 < #ifndef FC_DUMMY_MAIN_EQ_F77
11671 < #  ifdef __cplusplus
11672 <     extern "C"
11673 < #  endif
11674 <   int FC_DUMMY_MAIN() { return 1; }
11675 < #endif
11676 < #endif
11677 < int
11678 < main ()
11679 < {
11680 < std::list<int> foo;return 0;
11681 <  ;
11682 <  return 0;
11683 < }
11684 < _ACEOF
11685 < rm -f conftest.$ac_objext
11686 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 <  (eval $ac_compile) 2>conftest.er1
11688 <  ac_status=$?
11689 <  grep -v '^ *+' conftest.er1 >conftest.err
11690 <  rm -f conftest.er1
11691 <  cat conftest.err >&5
11692 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 <  (exit $ac_status); } &&
11694 <         { ac_try='test -z "$ac_cxx_werror_flag"
11695 <                         || test ! -s conftest.err'
11696 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 <  (eval $ac_try) 2>&5
11698 <  ac_status=$?
11699 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 <  (exit $ac_status); }; } &&
11701 <         { ac_try='test -s conftest.$ac_objext'
11702 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 <  (eval $ac_try) 2>&5
11704 <  ac_status=$?
11705 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 <  (exit $ac_status); }; }; then
11707 <  ac_cv_cxx_have_std_stl=yes
11708 < else
11709 <  echo "$as_me: failed program was:" >&5
11710 < sed 's/^/| /' conftest.$ac_ext >&5
11711 <
11712 < fi
11713 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11714 <        ac_ext=cc
11715 < ac_cpp='$CXXCPP $CPPFLAGS'
11716 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11719 <
11720 <      fi
11721 <
11722 < fi
11723 < echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
11724 < echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6
11725 <  if test "$ac_cv_cxx_have_std_stl" = yes; then
11726 <
11727 < cat >>confdefs.h <<\_ACEOF
11728 < #define HAVE_STD_STL 1
11729 < _ACEOF
11730 <
11731 <  fi
11732 <
11733 <
11734 <
11735 <  echo "$as_me:$LINENO: checking for fstream::attach()" >&5
11736 < echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6
11737 < if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
11738 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11739 < else
11740 <
11741 <    ac_cv_cxx_have_fstream_attach=no
11742 <
11743 <
11744 <    ac_ext=cc
11745 < ac_cpp='$CXXCPP $CPPFLAGS'
11746 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11747 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11748 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11749 <
11750 <    cat >conftest.$ac_ext <<_ACEOF
11751 < /* confdefs.h.  */
11752 < _ACEOF
11753 < cat confdefs.h >>conftest.$ac_ext
11754 < cat >>conftest.$ac_ext <<_ACEOF
11755 < /* end confdefs.h.  */
11756 <
11757 < #ifdef HAVE_IOSTREAM
11758 < #include <fstream>
11759 < #else
11760 < #include <fstream.h>
11761 < #endif
11762 < #ifdef HAVE_STD_IOSTREAM
11763 < using namespace std;
11764 < #endif
11765 <
11766 < #ifdef FC_DUMMY_MAIN
11767 < #ifndef FC_DUMMY_MAIN_EQ_F77
11768 < #  ifdef __cplusplus
11769 <     extern "C"
11770 < #  endif
11771 <   int FC_DUMMY_MAIN() { return 1; }
11772 < #endif
11773 < #endif
11774 < int
11775 < main ()
11776 < {
11777 < int fd=0;ofstream s;s.attach(fd);
11778 <  ;
11779 <  return 0;
11780 < }
11781 < _ACEOF
11782 < rm -f conftest.$ac_objext
11783 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 <  (eval $ac_compile) 2>conftest.er1
11785 <  ac_status=$?
11786 <  grep -v '^ *+' conftest.er1 >conftest.err
11787 <  rm -f conftest.er1
11788 <  cat conftest.err >&5
11789 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 <  (exit $ac_status); } &&
11791 <         { ac_try='test -z "$ac_cxx_werror_flag"
11792 <                         || test ! -s conftest.err'
11793 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 <  (eval $ac_try) 2>&5
11795 <  ac_status=$?
11796 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 <  (exit $ac_status); }; } &&
11798 <         { ac_try='test -s conftest.$ac_objext'
11799 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 <  (eval $ac_try) 2>&5
11801 <  ac_status=$?
11802 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 <  (exit $ac_status); }; }; then
11804 <  ac_cv_cxx_have_fstream_attach=yes
11805 < else
11806 <  echo "$as_me: failed program was:" >&5
11807 < sed 's/^/| /' conftest.$ac_ext >&5
11808 <
11809 < fi
11810 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 <    ac_ext=cc
11812 < ac_cpp='$CXXCPP $CPPFLAGS'
11813 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11816 <
11817 <
11818 < fi
11819 < echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
11820 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6
11821 <  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
11822 <
11823 < cat >>confdefs.h <<\_ACEOF
11824 < #define HAVE_FSTREAM_ATTACH 1
11825 < _ACEOF
11826 <
11827 <  fi
11828 <
11829 <
11830 <
11831 <  echo "$as_me:$LINENO: checking for fstream::open()" >&5
11832 < echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6
11833 < if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
11834 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11835 < else
11836 <
11837 <    ac_cv_cxx_have_fstream_open=no
11838 <    ac_cv_cxx_fstream_open_prot=no
11839 <
11840 <
11841 <    ac_ext=cc
11842 < ac_cpp='$CXXCPP $CPPFLAGS'
11843 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11846 <
11847 <    # Try with 2 parameters
11848 <    cat >conftest.$ac_ext <<_ACEOF
11849 < /* confdefs.h.  */
11850 < _ACEOF
11851 < cat confdefs.h >>conftest.$ac_ext
11852 < cat >>conftest.$ac_ext <<_ACEOF
11853 < /* end confdefs.h.  */
11854 <
11855 < #ifdef HAVE_IOSTREAM
11856 < #include <fstream>
11857 < #else
11858 < #include <fstream.h>
11859 < #endif
11860 < #ifdef HAVE_STD_IOSTREAM
11861 < using namespace std;
11862 < #endif
11863 <
11864 < #ifdef FC_DUMMY_MAIN
11865 < #ifndef FC_DUMMY_MAIN_EQ_F77
11866 < #  ifdef __cplusplus
11867 <     extern "C"
11868 < #  endif
11869 <   int FC_DUMMY_MAIN() { return 1; }
11870 < #endif
11871 < #endif
11872 < int
11873 < main ()
11874 < {
11875 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
11876 <  ;
11877 <  return 0;
11878 < }
11879 < _ACEOF
11880 < rm -f conftest.$ac_objext
11881 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 <  (eval $ac_compile) 2>conftest.er1
11883 <  ac_status=$?
11884 <  grep -v '^ *+' conftest.er1 >conftest.err
11885 <  rm -f conftest.er1
11886 <  cat conftest.err >&5
11887 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 <  (exit $ac_status); } &&
11889 <         { ac_try='test -z "$ac_cxx_werror_flag"
11890 <                         || test ! -s conftest.err'
11891 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 <  (eval $ac_try) 2>&5
11893 <  ac_status=$?
11894 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 <  (exit $ac_status); }; } &&
11896 <         { ac_try='test -s conftest.$ac_objext'
11897 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 <  (eval $ac_try) 2>&5
11899 <  ac_status=$?
11900 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 <  (exit $ac_status); }; }; then
11902 <  ac_cv_cxx_have_fstream_open=yes
11903 < else
11904 <  echo "$as_me: failed program was:" >&5
11905 < sed 's/^/| /' conftest.$ac_ext >&5
11906 <
11907 < fi
11908 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11909 <    # Try with mode parameter
11910 <    cat >conftest.$ac_ext <<_ACEOF
11911 < /* confdefs.h.  */
11912 < _ACEOF
11913 < cat confdefs.h >>conftest.$ac_ext
11914 < cat >>conftest.$ac_ext <<_ACEOF
11915 < /* end confdefs.h.  */
11916 <
11917 < #ifdef HAVE_IOSTREAM
11918 < #include <fstream>
11919 < #else
11920 < #include <fstream.h>
11921 < #endif
11922 < #ifdef HAVE_STD_IOSTREAM
11923 < using namespace std;
11924 < #endif
11925 <
11926 < #ifdef FC_DUMMY_MAIN
11927 < #ifndef FC_DUMMY_MAIN_EQ_F77
11928 < #  ifdef __cplusplus
11929 <     extern "C"
11930 < #  endif
11931 <   int FC_DUMMY_MAIN() { return 1; }
11932 < #endif
11933 < #endif
11934 < int
11935 < main ()
11936 < {
11937 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
11938 <  ;
11939 <  return 0;
11940 < }
11941 < _ACEOF
11942 < rm -f conftest.$ac_objext
11943 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 <  (eval $ac_compile) 2>conftest.er1
11945 <  ac_status=$?
11946 <  grep -v '^ *+' conftest.er1 >conftest.err
11947 <  rm -f conftest.er1
11948 <  cat conftest.err >&5
11949 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 <  (exit $ac_status); } &&
11951 <         { ac_try='test -z "$ac_cxx_werror_flag"
11952 <                         || test ! -s conftest.err'
11953 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 <  (eval $ac_try) 2>&5
11955 <  ac_status=$?
11956 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 <  (exit $ac_status); }; } &&
11958 <         { ac_try='test -s conftest.$ac_objext'
11959 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 <  (eval $ac_try) 2>&5
11961 <  ac_status=$?
11962 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 <  (exit $ac_status); }; }; then
11964 <  ac_cv_cxx_fstream_open_prot=yes
11965 < else
11966 <  echo "$as_me: failed program was:" >&5
11967 < sed 's/^/| /' conftest.$ac_ext >&5
11968 <
11969 < fi
11970 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971 <    ac_ext=cc
11972 < ac_cpp='$CXXCPP $CPPFLAGS'
11973 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11976 <
11977 <
11978 < fi
11979 < echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
11980 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6
11981 <  if test "$ac_cv_cxx_have_fstream_open" = yes; then
11982 <
11983 < cat >>confdefs.h <<\_ACEOF
11984 < #define HAVE_FSTREAM_OPEN 1
11985 < _ACEOF
11986 <
11987 <  fi
11988 <  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
11989 <
11990 < cat >>confdefs.h <<\_ACEOF
11991 < #define FSTREAM_OPEN_PROT 1
11992 < _ACEOF
11993 <
11994 <  fi
11995 <
11996 <
11997 <
11998 <
11999 <
12000 <
12001 <
12002 < for ac_header in ctype.h iostream fstream sstream strstream
12003 < do
12004 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
12007 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12008 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12010 < fi
12011 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013 < else
12014 <  # Is the header compilable?
12015 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
12016 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12017 < cat >conftest.$ac_ext <<_ACEOF
12018 < /* confdefs.h.  */
12019 < _ACEOF
12020 < cat confdefs.h >>conftest.$ac_ext
12021 < cat >>conftest.$ac_ext <<_ACEOF
12022 < /* end confdefs.h.  */
12023 < $ac_includes_default
12024 < #include <$ac_header>
12025 < _ACEOF
12026 < rm -f conftest.$ac_objext
12027 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 <  (eval $ac_compile) 2>conftest.er1
12029 <  ac_status=$?
12030 <  grep -v '^ *+' conftest.er1 >conftest.err
12031 <  rm -f conftest.er1
12032 <  cat conftest.err >&5
12033 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 <  (exit $ac_status); } &&
12035 <         { ac_try='test -z "$ac_cxx_werror_flag"
12036 <                         || test ! -s conftest.err'
12037 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 <  (eval $ac_try) 2>&5
12039 <  ac_status=$?
12040 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 <  (exit $ac_status); }; } &&
12042 <         { ac_try='test -s conftest.$ac_objext'
12043 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 <  (eval $ac_try) 2>&5
12045 <  ac_status=$?
12046 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 <  (exit $ac_status); }; }; then
12048 <  ac_header_compiler=yes
12049 < else
12050 <  echo "$as_me: failed program was:" >&5
12051 < sed 's/^/| /' conftest.$ac_ext >&5
12052 <
12053 < ac_header_compiler=no
12054 < fi
12055 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12056 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 < echo "${ECHO_T}$ac_header_compiler" >&6
12058 <
12059 < # Is the header present?
12060 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12062 < cat >conftest.$ac_ext <<_ACEOF
12063 < /* confdefs.h.  */
12064 < _ACEOF
12065 < cat confdefs.h >>conftest.$ac_ext
12066 < cat >>conftest.$ac_ext <<_ACEOF
12067 < /* end confdefs.h.  */
12068 < #include <$ac_header>
12069 < _ACEOF
12070 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12071 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 <  ac_status=$?
12073 <  grep -v '^ *+' conftest.er1 >conftest.err
12074 <  rm -f conftest.er1
12075 <  cat conftest.err >&5
12076 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 <  (exit $ac_status); } >/dev/null; then
12078 <  if test -s conftest.err; then
12079 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
12080 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12081 <  else
12082 <    ac_cpp_err=
12083 <  fi
12084 < else
12085 <  ac_cpp_err=yes
12086 < fi
12087 < if test -z "$ac_cpp_err"; then
12088 <  ac_header_preproc=yes
12089 < else
12090 <  echo "$as_me: failed program was:" >&5
12091 < sed 's/^/| /' conftest.$ac_ext >&5
12092 <
12093 <  ac_header_preproc=no
12094 < fi
12095 < rm -f conftest.err conftest.$ac_ext
12096 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12097 < echo "${ECHO_T}$ac_header_preproc" >&6
12098 <
12099 < # So?  What about this header?
12100 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12101 <  yes:no: )
12102 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12103 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12104 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12105 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12106 <    ac_header_preproc=yes
12107 <    ;;
12108 <  no:yes:* )
12109 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12110 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12111 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12112 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12113 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12114 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12115 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12116 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12117 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12118 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12119 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12120 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 <    (
12122 <      cat <<\_ASBOX
12123 < ## ------------------------------ ##
12124 < ## Report this to gezelter@nd.edu ##
12125 < ## ------------------------------ ##
12126 < _ASBOX
12127 <    ) |
12128 <      sed "s/^/$as_me: WARNING:     /" >&2
12129 <    ;;
12130 < esac
12131 < echo "$as_me:$LINENO: checking for $ac_header" >&5
12132 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12135 < else
12136 <  eval "$as_ac_Header=\$ac_header_preproc"
12137 < fi
12138 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12139 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12140 <
12141 < fi
12142 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 <  cat >>confdefs.h <<_ACEOF
12144 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145 < _ACEOF
12146 <
12147 < fi
12148 <
12149 < done
12150 <
12151 < # AC_CPP_FUNC
12152 < # ------------------ #
12153 < # Checks to see if ANSI C99 CPP variable __func__ works.
12154 < # If not, perhaps __FUNCTION__ works instead.
12155 < # If not, we'll just define __func__ to "".
12156 < # AC_CPP_FUNC
12157 <
12158 <
12159 < echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
12160 < echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6
12161 < if test "${ac_cv_cpp_func+set}" = set; then
12162 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12163 < else
12164 <  cat >conftest.$ac_ext <<_ACEOF
12165 < /* confdefs.h.  */
12166 < _ACEOF
12167 < cat confdefs.h >>conftest.$ac_ext
12168 < cat >>conftest.$ac_ext <<_ACEOF
12169 < /* end confdefs.h.  */
12170 <
12171 < #ifdef FC_DUMMY_MAIN
12172 < #ifndef FC_DUMMY_MAIN_EQ_F77
12173 < #  ifdef __cplusplus
12174 <     extern "C"
12175 < #  endif
12176 <   int FC_DUMMY_MAIN() { return 1; }
12177 < #endif
12178 < #endif
12179 < int
12180 < main ()
12181 < {
12182 < const char *foo = __func__;
12183 <  ;
12184 <  return 0;
12185 < }
12186 < _ACEOF
12187 < rm -f conftest.$ac_objext
12188 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 <  (eval $ac_compile) 2>conftest.er1
12190 <  ac_status=$?
12191 <  grep -v '^ *+' conftest.er1 >conftest.err
12192 <  rm -f conftest.er1
12193 <  cat conftest.err >&5
12194 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 <  (exit $ac_status); } &&
12196 <         { ac_try='test -z "$ac_cxx_werror_flag"
12197 <                         || test ! -s conftest.err'
12198 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 <  (eval $ac_try) 2>&5
12200 <  ac_status=$?
12201 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 <  (exit $ac_status); }; } &&
12203 <         { ac_try='test -s conftest.$ac_objext'
12204 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 <  (eval $ac_try) 2>&5
12206 <  ac_status=$?
12207 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 <  (exit $ac_status); }; }; then
12209 <  ac_cv_cpp_func=yes
12210 < else
12211 <  echo "$as_me: failed program was:" >&5
12212 < sed 's/^/| /' conftest.$ac_ext >&5
12213 <
12214 < cat >conftest.$ac_ext <<_ACEOF
12215 < /* confdefs.h.  */
12216 < _ACEOF
12217 < cat confdefs.h >>conftest.$ac_ext
12218 < cat >>conftest.$ac_ext <<_ACEOF
12219 < /* end confdefs.h.  */
12220 <
12221 < #ifdef FC_DUMMY_MAIN
12222 < #ifndef FC_DUMMY_MAIN_EQ_F77
12223 < #  ifdef __cplusplus
12224 <     extern "C"
12225 < #  endif
12226 <   int FC_DUMMY_MAIN() { return 1; }
12227 < #endif
12228 < #endif
12229 < int
12230 < main ()
12231 < {
12232 < const char *foo = __FUNCTION__;
12233 <  ;
12234 <  return 0;
12235 < }
12236 < _ACEOF
12237 < rm -f conftest.$ac_objext
12238 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 <  (eval $ac_compile) 2>conftest.er1
12240 <  ac_status=$?
12241 <  grep -v '^ *+' conftest.er1 >conftest.err
12242 <  rm -f conftest.er1
12243 <  cat conftest.err >&5
12244 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 <  (exit $ac_status); } &&
12246 <         { ac_try='test -z "$ac_cxx_werror_flag"
12247 <                         || test ! -s conftest.err'
12248 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 <  (eval $ac_try) 2>&5
12250 <  ac_status=$?
12251 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 <  (exit $ac_status); }; } &&
12253 <         { ac_try='test -s conftest.$ac_objext'
12254 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 <  (eval $ac_try) 2>&5
12256 <  ac_status=$?
12257 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 <  (exit $ac_status); }; }; then
12259 <  ac_cv_cpp_func=__FUNCTION__
12260 < else
12261 <  echo "$as_me: failed program was:" >&5
12262 < sed 's/^/| /' conftest.$ac_ext >&5
12263 <
12264 < ac_cv_cpp_func=no
12265 < fi
12266 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12267 < fi
12268 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 < fi
12270 < echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
12271 < echo "${ECHO_T}$ac_cv_cpp_func" >&6
12272 < if test $ac_cv_cpp_func = __FUNCTION__; then
12273 <
12274 < cat >>confdefs.h <<\_ACEOF
12275 < #define __func__ __FUNCTION__
12276 < _ACEOF
12277 <
12278 < elif test $ac_cv_cpp_func = no; then
12279 <
12280 < cat >>confdefs.h <<\_ACEOF
12281 < #define __func__ ""
12282 < _ACEOF
12283 <
12284 < fi
12285 <
12286 <
12287 <
12288 <
12289 <
12290 < case $debug in
12291 <  1)
12292 <     ;;
12293 <  *)
12294 <
12295 <
12296 <
12297 <
12298 < # Try to determine "good" native compiler flags if none specified on command
12299 < # line
12300 <
12301 < if test "$ac_test_FFLAGS" != "set"; then
12302 <  FCFLAGS=""
12303 <  case "${host_cpu}-${host_os}" in
12304 <
12305 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
12306 <                    FCFLAGS="-O3 -ip -no-prec-div"
12307 <                fi;;
12308 <   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
12309 <                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
12310 <                fi;;
12311 <   powerpc*-aix*)
12312 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
12313 <                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
12314 <                echo "*******************************************************"
12315 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
12316 <                echo "*  recommended that you use                           *"
12317 <                echo "*                                                     *"
12318 <                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
12319 <                echo "*                                 ^^^                 *"
12320 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
12321 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
12322 <                echo "*******************************************************"
12323 <        fi;;
12324 <   *darwin*)
12325 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
12326 <                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
12327 <        fi
12328 <        if test "$FC" = ifort; then
12329 <                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
12330 <        fi;;
12331 <  esac
12332 <
12333 <  if test -n "$CPU_FLAGS"; then
12334 <        FCFLAGS="$FCFLAGS $CPU_FLAGS"
12335 <  fi
12336 <
12337 <  if test -z "$FCFLAGS"; then
12338 <        echo ""
12339 <        echo "*********************************************************"
12340 <        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
12341 <        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12342 <        echo "* (otherwise, a default of FCFLAGS=-O3 will be used)    *"
12343 <        echo "*********************************************************"
12344 <        echo ""
12345 <        FCFLAGS="-O3"
12346 <  fi
12347 <
12348 <
12349 < echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5
12350 < echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6
12351 < if test "${ac_guessed_f90flags+set}" = set; then
12352 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12353 < else
12354 <
12355 <
12356 <
12357 < ac_ext=${FC_SRCEXT-f}
12358 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
12359 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
12360 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12361 <
12362 < echo 'program main' > conftest.$ac_ext
12363 < echo 'end program main' >> conftest.$ac_ext
12364 < ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
12365 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 <  (eval $ac_compile) 2>&5
12367 <  ac_status=$?
12368 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 <  (exit $ac_status); }; then
12370 <        ac_guessed_f90flags=yes
12371 < else
12372 <        ac_guessed_f90flags=no
12373 < fi
12374 < rm -f conftest*
12375 < ac_ext=cc
12376 < ac_cpp='$CXXCPP $CPPFLAGS'
12377 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12380 <
12381 <
12382 < fi
12383 < echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
12384 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
12385 < if test "$ac_guessed_f90flags" = yes; then
12386 <        :
12387 <
12388 < else
12389 <        :
12390 <
12391 <        echo ""
12392 <        echo "**********************************************************"
12393 <        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
12394 <        echo "* your compiler.                                        *"
12395 <        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12396 <        echo "*********************************************************"
12397 <        echo ""
12398 <        FCFLAGS=""
12399 <
12400 < fi
12401 <
12402 <
12403 < fi
12404 <
12405 <
12406 <
12407 <
12408 <
12409 <
12410 <
12411 < echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
12412 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
12413 < if test "${ac_cv_prog_really_gcc+set}" = set; then
12414 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12415 < else
12416 <
12417 < cat > conftest.c <<EOF
12418 < #ifdef __GNUC__
12419 <  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
12420 <     no;
12421 <  #else
12422 <     yes;
12423 <  #endif
12424 < #endif
12425 < EOF
12426 < if { ac_try='${CC-cc} -E conftest.c'
12427 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 <  (eval $ac_try) 2>&5
12429 <  ac_status=$?
12430 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12432 <  ac_cv_prog_really_gcc=yes
12433 < else
12434 <  ac_cv_prog_really_gcc=no
12435 < fi
12436 <
12437 < fi
12438 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
12439 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
12440 < if test "$ac_cv_prog_really_gcc" = yes; then
12441 <        :
12442 <
12443 < else
12444 <        :
12445 <
12446 < fi
12447 <
12448 <
12449 < # Try to determine "good" native compiler flags if none specified on command
12450 < # line
12451 < if test "$ac_test_CFLAGS" != "set"; then
12452 <  CFLAGS=""
12453 <  case "${host_cpu}-${host_os}" in
12454 <
12455 <  *linux*) if test "$CC" = icc; then
12456 <                    CFLAGS="-O"
12457 <                fi;;
12458 <  sparc-solaris2*) if test "$CC" = cc; then
12459 <                    CFLAGS="-O -dalign"
12460 <                 fi;;
12461 <
12462 <  alpha*-osf*)  if test "$CC" = cc; then
12463 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
12464 <                fi;;
12465 <
12466 <  hppa*-hpux*)  if test "$CC" = cc; then
12467 <                    CFLAGS="-Ae +O3 +Oall"
12468 <                fi;;
12469 <
12470 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
12471 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
12472 <                fi;;
12473 <   powerpc*-aix*)
12474 <        if test "$CC" = cc -o "$CC" = xlc; then
12475 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
12476 <                echo "*******************************************************"
12477 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
12478 <                echo "*  recommended that you use                           *"
12479 <                echo "*                                                     *"
12480 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
12481 <                echo "*                                 ^^^                 *"
12482 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
12483 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
12484 <                echo "*******************************************************"
12485 <        fi;;
12486 <   *darwin*)
12487 <        if test "$CC" = xlc -o "$CC" = cc; then
12488 <                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12489 <        fi
12490 <        if test "$CC" = icc; then
12491 <                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12492 <        fi;;
12493 <  esac
12494 <
12495 <  # use default flags for gcc on all systems
12496 <  if test $ac_cv_prog_really_gcc = yes; then
12497 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
12498 <  fi
12499 <
12500 <  # test for gcc-specific flags:
12501 <  if test $ac_cv_prog_really_gcc = yes; then
12502 <    # -malign-double for x86 systems
12503 <
12504 <
12505 < echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5
12506 < echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6
12507 < if test "${ac_align_double+set}" = set; then
12508 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12509 < else
12510 <  echo 'void f(){}' > conftest.c
12511 < if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then
12512 <        ac_align_double=yes
12513 < else
12514 <        ac_align_double=no
12515 < fi
12516 < rm -f conftest*
12517 <
12518 < fi
12519 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
12520 < echo "${ECHO_T}$ac_align_double" >&6
12521 < if test "$ac_align_double" = yes; then
12522 <        :
12523 <        CFLAGS="$CFLAGS -malign-double"
12524 < else
12525 <        :
12526 <
12527 < fi
12528 <
12529 <    # -fstrict-aliasing for gcc-2.95+
12530 <
12531 <
12532 < echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5
12533 < echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6
12534 < if test "${ac_fstrict_aliasing+set}" = set; then
12535 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12536 < else
12537 <  echo 'void f(){}' > conftest.c
12538 < if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then
12539 <        ac_fstrict_aliasing=yes
12540 < else
12541 <        ac_fstrict_aliasing=no
12542 < fi
12543 < rm -f conftest*
12544 <
12545 < fi
12546 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
12547 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
12548 < if test "$ac_fstrict_aliasing" = yes; then
12549 <        :
12550 <        CFLAGS="$CFLAGS -fstrict-aliasing"
12551 < else
12552 <        :
12553 <
12554 < fi
12555 <
12556 <  fi
12557 <
12558 <  CPU_FLAGS=""
12559 <  if test $ac_cv_prog_really_gcc = yes; then
12560 <                  case "${host_cpu}" in
12561 <          i586*)
12562 <
12563 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5
12564 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6
12565 < if test "${ac_cpu_pentium+set}" = set; then
12566 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12567 < else
12568 <  echo 'void f(){}' > conftest.c
12569 < if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then
12570 <        ac_cpu_pentium=yes
12571 < else
12572 <        ac_cpu_pentium=no
12573 < fi
12574 < rm -f conftest*
12575 <
12576 < fi
12577 < echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
12578 < echo "${ECHO_T}$ac_cpu_pentium" >&6
12579 < if test "$ac_cpu_pentium" = yes; then
12580 <        :
12581 <        CPU_FLAGS=-mcpu=pentium
12582 < else
12583 <        :
12584 <
12585 <
12586 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5
12587 < echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6
12588 < if test "${ac_pentium+set}" = set; then
12589 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12590 < else
12591 <  echo 'void f(){}' > conftest.c
12592 < if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then
12593 <        ac_pentium=yes
12594 < else
12595 <        ac_pentium=no
12596 < fi
12597 < rm -f conftest*
12598 <
12599 < fi
12600 < echo "$as_me:$LINENO: result: $ac_pentium" >&5
12601 < echo "${ECHO_T}$ac_pentium" >&6
12602 < if test "$ac_pentium" = yes; then
12603 <        :
12604 <        CPU_FLAGS=-mpentium
12605 < else
12606 <        :
12607 <
12608 < fi
12609 <
12610 < fi
12611 <
12612 <                  ;;
12613 <          i686*)
12614 <
12615 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5
12616 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6
12617 < if test "${ac_cpu_pentiumpro+set}" = set; then
12618 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12619 < else
12620 <  echo 'void f(){}' > conftest.c
12621 < if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
12622 <        ac_cpu_pentiumpro=yes
12623 < else
12624 <        ac_cpu_pentiumpro=no
12625 < fi
12626 < rm -f conftest*
12627 <
12628 < fi
12629 < echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
12630 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
12631 < if test "$ac_cpu_pentiumpro" = yes; then
12632 <        :
12633 <        CPU_FLAGS=-mcpu=pentiumpro
12634 < else
12635 <        :
12636 <
12637 <
12638 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5
12639 < echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6
12640 < if test "${ac_pentiumpro+set}" = set; then
12641 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12642 < else
12643 <  echo 'void f(){}' > conftest.c
12644 < if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then
12645 <        ac_pentiumpro=yes
12646 < else
12647 <        ac_pentiumpro=no
12648 < fi
12649 < rm -f conftest*
12650 <
12651 < fi
12652 < echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
12653 < echo "${ECHO_T}$ac_pentiumpro" >&6
12654 < if test "$ac_pentiumpro" = yes; then
12655 <        :
12656 <        CPU_FLAGS=-mpentiumpro
12657 < else
12658 <        :
12659 <
12660 < fi
12661 <
12662 < fi
12663 <
12664 <                  ;;
12665 <          powerpc*)
12666 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
12667 <                is60x=`echo $cputype | egrep "^600-9e?$"`
12668 <                if test -n "$is60x"; then
12669 <
12670 <
12671 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5
12672 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6
12673 < if test "${ac_m_cpu_60x+set}" = set; then
12674 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12675 < else
12676 <  echo 'void f(){}' > conftest.c
12677 < if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then
12678 <        ac_m_cpu_60x=yes
12679 < else
12680 <        ac_m_cpu_60x=no
12681 < fi
12682 < rm -f conftest*
12683 <
12684 < fi
12685 < echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
12686 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
12687 < if test "$ac_m_cpu_60x" = yes; then
12688 <        :
12689 <        CPU_FLAGS=-mcpu=$cputype
12690 < else
12691 <        :
12692 <
12693 < fi
12694 <
12695 <                elif test "$cputype" = 750; then
12696 <
12697 <
12698 < echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
12699 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
12700 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
12701 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12702 < else
12703 <
12704 < cat > conftest.c <<EOF
12705 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
12706 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
12707 <     yes;
12708 < #  endif
12709 < #endif
12710 < EOF
12711 < if { ac_try='${CC-cc} -E conftest.c'
12712 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 <  (eval $ac_try) 2>&5
12714 <  ac_status=$?
12715 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12717 <  ac_cv_prog_gcc_2_95=yes
12718 < else
12719 <  ac_cv_prog_gcc_2_95=no
12720 < fi
12721 <
12722 < fi
12723 < echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
12724 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
12725 < if test "$ac_cv_prog_gcc_2_95" = yes; then
12726 <        :
12727 <
12728 <
12729 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5
12730 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6
12731 < if test "${ac_m_cpu_750+set}" = set; then
12732 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12733 < else
12734 <  echo 'void f(){}' > conftest.c
12735 < if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then
12736 <        ac_m_cpu_750=yes
12737 < else
12738 <        ac_m_cpu_750=no
12739 < fi
12740 < rm -f conftest*
12741 <
12742 < fi
12743 < echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
12744 < echo "${ECHO_T}$ac_m_cpu_750" >&6
12745 < if test "$ac_m_cpu_750" = yes; then
12746 <        :
12747 <        CPU_FLAGS=-mcpu=750
12748 < else
12749 <        :
12750 <
12751 < fi
12752 <
12753 < else
12754 <        :
12755 <
12756 < fi
12757 <
12758 <                fi
12759 <                if test -z "$CPU_FLAGS"; then
12760 <
12761 <
12762 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5
12763 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6
12764 < if test "${ac_m_cpu_powerpc+set}" = set; then
12765 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12766 < else
12767 <  echo 'void f(){}' > conftest.c
12768 < if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then
12769 <        ac_m_cpu_powerpc=yes
12770 < else
12771 <        ac_m_cpu_powerpc=no
12772 < fi
12773 < rm -f conftest*
12774 <
12775 < fi
12776 < echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
12777 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
12778 < if test "$ac_m_cpu_powerpc" = yes; then
12779 <        :
12780 <        CPU_FLAGS=-mcpu=powerpc
12781 < else
12782 <        :
12783 <
12784 < fi
12785 <
12786 <                fi
12787 <                if test -z "$CPU_FLAGS"; then
12788 <
12789 <
12790 < echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5
12791 < echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6
12792 < if test "${ac_m_powerpc+set}" = set; then
12793 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12794 < else
12795 <  echo 'void f(){}' > conftest.c
12796 < if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then
12797 <        ac_m_powerpc=yes
12798 < else
12799 <        ac_m_powerpc=no
12800 < fi
12801 < rm -f conftest*
12802 <
12803 < fi
12804 < echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
12805 < echo "${ECHO_T}$ac_m_powerpc" >&6
12806 < if test "$ac_m_powerpc" = yes; then
12807 <        :
12808 <        CPU_FLAGS=-mpowerpc
12809 < else
12810 <        :
12811 <
12812 < fi
12813 <
12814 <                fi
12815 <          esac
12816 <  fi
12817 <
12818 <  if test -n "$CPU_FLAGS"; then
12819 <        CFLAGS="$CFLAGS $CPU_FLAGS"
12820 <  fi
12821 <
12822 <  if test -z "$CFLAGS"; then
12823 <        echo ""
12824 <        echo "********************************************************"
12825 <        echo "* WARNING: Don't know the best CFLAGS for this system  *"
12826 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
12827 <        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12828 <        echo "********************************************************"
12829 <        echo ""
12830 <        CFLAGS="-O3"
12831 <  fi
12832 <
12833 <
12834 <
12835 < echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5
12836 < echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6
12837 < if test "${ac_guessed_cflags+set}" = set; then
12838 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12839 < else
12840 <  echo 'void f(){}' > conftest.c
12841 < if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
12842 <        ac_guessed_cflags=yes
12843 < else
12844 <        ac_guessed_cflags=no
12845 < fi
12846 < rm -f conftest*
12847 <
12848 < fi
12849 < echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
12850 < echo "${ECHO_T}$ac_guessed_cflags" >&6
12851 < if test "$ac_guessed_cflags" = yes; then
12852 <        :
12853 <
12854 < else
12855 <        :
12856 <
12857 <        echo ""
12858 <        echo "********************************************************"
12859 <        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12860 <        echo "* your compiler.                                       *"
12861 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
12862 <        echo "********************************************************"
12863 <        echo ""
12864 <        CFLAGS=""
12865 <
12866 < fi
12867 <
12868 <
12869 < fi
12870 <
12871 <
12872 <
12873 <
12874 <
12875 <
12876 <
12877 < echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
12878 < echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
12879 < if test "${ac_cv_prog_really_gxx+set}" = set; then
12880 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12881 < else
12882 <
12883 < cat > conftest.cpp <<EOF
12884 < #ifdef __GNUC__
12885 <  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
12886 <     no;
12887 <  #else
12888 <     yes;
12889 <  #endif
12890 < #endif
12891 < EOF
12892 < if { ac_try='${CXX-c++} -E conftest.cpp'
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); }; } | egrep yes >/dev/null 2>&1; then
12898 <  ac_cv_prog_really_gxx=yes
12899 < else
12900 <  ac_cv_prog_really_gxx=no
12901 < fi
12902 <
12903 < fi
12904 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
12905 < echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
12906 < if test "$ac_cv_prog_really_gxx" = yes; then
12907 <        :
12908 <
12909 < else
12910 <        :
12911 <
12912 < fi
12913 <
12914 <
12915 < # Try to determine "good" native compiler flags if none specified on command
12916 < # line
12917 < if test "$ac_test_CXXFLAGS" != "set"; then
12918 <  CXXFLAGS=""
12919 <  case "${host_cpu}-${host_os}" in
12920 <
12921 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
12922 <                    CXXFLAGS="-O"
12923 <                fi;;
12924 <  sparc-solaris2*) if test "$CXX" = CC; then
12925 <                    CXXFLAGS="-features=extensions -O -dalign"
12926 <                 fi;;
12927 <   rs6000*-aix*)  if test "$CXX" = xlC; then
12928 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
12929 <                fi;;
12930 <   powerpc*-aix*)
12931 <        if test "$CXX" = xlC; then
12932 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
12933 <                echo "*******************************************************"
12934 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
12935 <                echo "*  recommended that you use                           *"
12936 <                echo "*                                                     *"
12937 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
12938 <                echo "*                                 ^^^                 *"
12939 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
12940 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
12941 <                echo "*******************************************************"
12942 <        fi;;
12943 <   *darwin*)
12944 <        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
12945 <                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12946 <        fi
12947 <        if test "$CXX" = icpc; then
12948 <                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12949 <        fi;;
12950 <  esac
12951 <
12952 <  # use default flags for gcc on all systems
12953 <  if test $ac_cv_prog_really_gxx = yes; then
12954 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
12955 <  fi
12956 <
12957 <  # test for gcc-specific flags:
12958 <  if test $ac_cv_prog_really_gxx = yes; then
12959 <    # -malign-double for x86 systems
12960 <
12961 <
12962 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5
12963 < echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6
12964 < if test "${ac_align_double+set}" = set; then
12965 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12966 < else
12967 <  echo 'void f(){}' > conftest.cpp
12968 < if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then
12969 <        ac_align_double=yes
12970 < else
12971 <        ac_align_double=no
12972 < fi
12973 < rm -f conftest*
12974 <
12975 < fi
12976 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
12977 < echo "${ECHO_T}$ac_align_double" >&6
12978 < if test "$ac_align_double" = yes; then
12979 <        :
12980 <        CXXFLAGS="$CXXFLAGS -malign-double"
12981 < else
12982 <        :
12983 <
12984 < fi
12985 <
12986 <    # -fstrict-aliasing for gcc-2.95+
12987 <
12988 <
12989 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5
12990 < echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6
12991 < if test "${ac_fstrict_aliasing+set}" = set; then
12992 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12993 < else
12994 <  echo 'void f(){}' > conftest.cpp
12995 < if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
12996 <        ac_fstrict_aliasing=yes
12997 < else
12998 <        ac_fstrict_aliasing=no
12999 < fi
13000 < rm -f conftest*
13001 <
13002 < fi
13003 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
13004 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
13005 < if test "$ac_fstrict_aliasing" = yes; then
13006 <        :
13007 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
13008 < else
13009 <        :
13010 <
13011 < fi
13012 <
13013 <  fi
13014 <
13015 <  CPU_FLAGS=""
13016 <  if test $ac_cv_prog_really_gxx = yes; then
13017 <                  case "${host_cpu}" in
13018 <          i586*)
13019 <
13020 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5
13021 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6
13022 < if test "${ac_cpu_pentium+set}" = set; then
13023 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13024 < else
13025 <  echo 'void f(){}' > conftest.cpp
13026 < if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then
13027 <        ac_cpu_pentium=yes
13028 < else
13029 <        ac_cpu_pentium=no
13030 < fi
13031 < rm -f conftest*
13032 <
13033 < fi
13034 < echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
13035 < echo "${ECHO_T}$ac_cpu_pentium" >&6
13036 < if test "$ac_cpu_pentium" = yes; then
13037 <        :
13038 <        CPU_FLAGS=-mcpu=pentium
13039 < else
13040 <        :
13041 <
13042 <
13043 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5
13044 < echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6
13045 < if test "${ac_pentium+set}" = set; then
13046 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13047 < else
13048 <  echo 'void f(){}' > conftest.cpp
13049 < if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then
13050 <        ac_pentium=yes
13051 < else
13052 <        ac_pentium=no
13053 < fi
13054 < rm -f conftest*
13055 <
13056 < fi
13057 < echo "$as_me:$LINENO: result: $ac_pentium" >&5
13058 < echo "${ECHO_T}$ac_pentium" >&6
13059 < if test "$ac_pentium" = yes; then
13060 <        :
13061 <        CPU_FLAGS=-mpentium
13062 < else
13063 <        :
13064 <
13065 < fi
13066 <
13067 < fi
13068 <
13069 <                  ;;
13070 <          i686*)
13071 <
13072 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5
13073 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6
13074 < if test "${ac_cpu_pentiumpro+set}" = set; then
13075 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13076 < else
13077 <  echo 'void f(){}' > conftest.cpp
13078 < if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
13079 <        ac_cpu_pentiumpro=yes
13080 < else
13081 <        ac_cpu_pentiumpro=no
13082 < fi
13083 < rm -f conftest*
13084 <
13085 < fi
13086 < echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
13087 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
13088 < if test "$ac_cpu_pentiumpro" = yes; then
13089 <        :
13090 <        CPU_FLAGS=-mcpu=pentiumpro
13091 < else
13092 <        :
13093 <
13094 <
13095 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5
13096 < echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6
13097 < if test "${ac_pentiumpro+set}" = set; then
13098 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13099 < else
13100 <  echo 'void f(){}' > conftest.cpp
13101 < if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then
13102 <        ac_pentiumpro=yes
13103 < else
13104 <        ac_pentiumpro=no
13105 < fi
13106 < rm -f conftest*
13107 <
13108 < fi
13109 < echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
13110 < echo "${ECHO_T}$ac_pentiumpro" >&6
13111 < if test "$ac_pentiumpro" = yes; then
13112 <        :
13113 <        CPU_FLAGS=-mpentiumpro
13114 < else
13115 <        :
13116 <
13117 < fi
13118 <
13119 < fi
13120 <
13121 <                  ;;
13122 <          powerpc*)
13123 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
13124 <                is60x=`echo $cputype | egrep "^600-9e?$"`
13125 <                if test -n "$is60x"; then
13126 <
13127 <
13128 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5
13129 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6
13130 < if test "${ac_m_cpu_60x+set}" = set; then
13131 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13132 < else
13133 <  echo 'void f(){}' > conftest.cpp
13134 < if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
13135 <        ac_m_cpu_60x=yes
13136 < else
13137 <        ac_m_cpu_60x=no
13138 < fi
13139 < rm -f conftest*
13140 <
13141 < fi
13142 < echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
13143 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
13144 < if test "$ac_m_cpu_60x" = yes; then
13145 <        :
13146 <        CPU_FLAGS=-mcpu=$cputype
13147 < else
13148 <        :
13149 <
13150 < fi
13151 <
13152 <                elif test "$cputype" = 750; then
13153 <
13154 <
13155 < echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
13156 < echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
13157 < if test "${ac_cv_prog_gxx_2_95+set}" = set; then
13158 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13159 < else
13160 <
13161 < cat > conftest.cpp <<EOF
13162 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
13163 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
13164 <     yes;
13165 < #  endif
13166 < #endif
13167 < EOF
13168 < if { ac_try='${CXX-c++} -E conftest.cpp'
13169 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 <  (eval $ac_try) 2>&5
13171 <  ac_status=$?
13172 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13174 <  ac_cv_prog_gxx_2_95=yes
13175 < else
13176 <  ac_cv_prog_gxx_2_95=no
13177 < fi
13178 <
13179 < fi
13180 < echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
13181 < echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
13182 < if test "$ac_cv_prog_gxx_2_95" = yes; then
13183 <        :
13184 <
13185 <
13186 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5
13187 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6
13188 < if test "${ac_m_cpu_750+set}" = set; then
13189 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13190 < else
13191 <  echo 'void f(){}' > conftest.cpp
13192 < if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then
13193 <        ac_m_cpu_750=yes
13194 < else
13195 <        ac_m_cpu_750=no
13196 < fi
13197 < rm -f conftest*
13198 <
13199 < fi
13200 < echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
13201 < echo "${ECHO_T}$ac_m_cpu_750" >&6
13202 < if test "$ac_m_cpu_750" = yes; then
13203 <        :
13204 <        CPU_FLAGS=-mcpu=750
13205 < else
13206 <        :
13207 <
13208 < fi
13209 <
13210 < else
13211 <        :
13212 <
13213 < fi
13214 <
13215 <                fi
13216 <                if test -z "$CPU_FLAGS"; then
13217 <
13218 <
13219 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5
13220 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6
13221 < if test "${ac_m_cpu_powerpc+set}" = set; then
13222 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13223 < else
13224 <  echo 'void f(){}' > conftest.cpp
13225 < if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
13226 <        ac_m_cpu_powerpc=yes
13227 < else
13228 <        ac_m_cpu_powerpc=no
13229 < fi
13230 < rm -f conftest*
13231 <
13232 < fi
13233 < echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
13234 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
13235 < if test "$ac_m_cpu_powerpc" = yes; then
13236 <        :
13237 <        CPU_FLAGS=-mcpu=powerpc
13238 < else
13239 <        :
13240 <
13241 < fi
13242 <
13243 <                fi
13244 <                if test -z "$CPU_FLAGS"; then
13245 <
13246 <
13247 < echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5
13248 < echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6
13249 < if test "${ac_m_powerpc+set}" = set; then
13250 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13251 < else
13252 <  echo 'void f(){}' > conftest.cpp
13253 < if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then
13254 <        ac_m_powerpc=yes
13255 < else
13256 <        ac_m_powerpc=no
13257 < fi
13258 < rm -f conftest*
13259 <
13260 < fi
13261 < echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
13262 < echo "${ECHO_T}$ac_m_powerpc" >&6
13263 < if test "$ac_m_powerpc" = yes; then
13264 <        :
13265 <        CPU_FLAGS=-mpowerpc
13266 < else
13267 <        :
13268 <
13269 < fi
13270 <
13271 <                fi
13272 <          esac
13273 <  fi
13274 <
13275 <  if test -n "$CPU_FLAGS"; then
13276 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
13277 <  fi
13278 <
13279 <  if test -z "$CXXFLAGS"; then
13280 <        echo ""
13281 <        echo "**********************************************************"
13282 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
13283 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
13284 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
13285 <        echo "**********************************************************"
13286 <        echo ""
13287 <        CXXFLAGS="-O3"
13288 <  fi
13289 <
13290 <
13291 <
13292 < echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
13293 < echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6
13294 < if test "${ac_guessed_cxxflags+set}" = set; then
13295 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13296 < else
13297 <  echo 'void f(){}' > conftest.cpp
13298 < if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
13299 <        ac_guessed_cxxflags=yes
13300 < else
13301 <        ac_guessed_cxxflags=no
13302 < fi
13303 < rm -f conftest*
13304 <
13305 < fi
13306 < echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
13307 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6
13308 < if test "$ac_guessed_cxxflags" = yes; then
13309 <        :
13310 <
13311 < else
13312 <        :
13313 <
13314 <        echo ""
13315 <        echo "**********************************************************"
13316 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
13317 <        echo "* your compiler.                                         *"
13318 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
13319 <        echo "**********************************************************"
13320 <        echo ""
13321 <        CXXFLAGS=""
13322 <
13323 < fi
13324 <
13325 <
13326 < fi
13327 <
13328 <     ;;
13329 < esac
13330 <
13331 <
13332 < cat >>confdefs.h <<\_ACEOF
13333 < #define OBAPI
13334 < _ACEOF
13335 <
13336 <
13337 <
13338 <
13339 < # Check whether --with-mpi or --without-mpi was given.
13340 < if test "${with_mpi+set}" = set; then
13341 <  withval="$with_mpi"
13342 <  with_mpi=$withval
13343 < else
13344 <  with_mpi="no"
13345 < fi;
13346 <
13347 < case "x$with_mpi" in
13348 <        xyes | "x")  USE_MPI=yes;;
13349 <        xno) USE_MPI=no ;;
13350 <        *) MPI="$with_mpi"; USE_MPI=yes ;;
13351 < esac
13352 < if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
13353 <        MPI="/usr/local"
13354 < fi
13355 < if test "$USE_MPI" = "yes"; then
13356 <
13357 <
13358 < # Set variables...
13359 < MPI_LIB_DIR="$MPI/lib"
13360 < MPI_INC_DIR="$MPI/include"
13361 <
13362 <
13363 <
13364 < ac_ext=c
13365 < ac_cpp='$CPP $CPPFLAGS'
13366 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
13369 <
13370 < echo "$as_me:$LINENO: checking for mpi.h" >&5
13371 < echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
13372 < have_mpi_h=0
13373 < rm -f conftest*
13374 < echo '#include <mpi.h>' > conftest.c
13375 < if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13376 <        echo "$as_me:$LINENO: result: yes" >&5
13377 < echo "${ECHO_T}yes" >&6
13378 <        have_mpi_h=1
13379 < else
13380 <        if test -s conftest.out ; then
13381 <                cat conftest.out >> config.log
13382 <        fi
13383 <        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
13384 < echo "${ECHO_T}no! Check MPI include paths" >&6
13385 <        USE_MPI="no"
13386 < fi
13387 < rm -f conftest*
13388 < if test "$have_mpi_h" = 1; then
13389 <
13390 < cat >>confdefs.h <<\_ACEOF
13391 < #define HAVE_MPI_H 1
13392 < _ACEOF
13393 <
13394 < fi
13395 <
13396 < echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13397 < echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13398 <
13399 <
13400 < ac_ext=${FC_SRCEXT-f}
13401 < ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13402 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13403 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13404 <
13405 < ac_save_ext=$ac_ext
13406 < ac_ext=F90
13407 < ac_save_FCFLAGS=$FCFLAGS
13408 < have_mpif_h=0
13409 < rm -f conftest*
13410 < cat >conftest.$ac_ext <<EOF
13411 < program main
13412 <   include 'mpif.h'
13413 < end
13414 < EOF
13415 < if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
13416 <        echo "$as_me:$LINENO: result: yes" >&5
13417 < echo "${ECHO_T}yes" >&6
13418 <        MPI_F90_INC="$MPI_INC_DIR"
13419 <        have_mpif_h=1
13420 < else
13421 <        if test -s conftest.out ; then
13422 <                cat conftest.out >> config.log
13423 <        fi
13424 <        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
13425 < echo "${ECHO_T}no! Check MPI include paths" >&6
13426 <        USE_MPI="no"
13427 < fi
13428 < rm -f conftest*
13429 <
13430 < if test "$have_mpif_h" = 1; then
13431 <
13432 < cat >>confdefs.h <<\_ACEOF
13433 < #define HAVE_MPIF_H 1
13434 < _ACEOF
13435 <
13436 < fi
13437 < FCFLAGS=$ac_save_FCFLAGS
13438 < ac_ext=$ac_save_ext
13439 < ac_ext=c
13440 < ac_cpp='$CPP $CPPFLAGS'
13441 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13442 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13443 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
13444 <
13445 <
13446 < ac_ext=c
13447 < ac_cpp='$CPP $CPPFLAGS'
13448 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
13451 <
13452 < ac_save_LDFLAGS=$LDFLAGS
13453 < LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13454 <
13455 < if test x = x"$MPI_LIB"; then
13456 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13457 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13458 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13459 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13460 < else
13461 <  ac_check_lib_save_LIBS=$LIBS
13462 < LIBS="-lmpich  $LIBS"
13463 < cat >conftest.$ac_ext <<_ACEOF
13464 < /* confdefs.h.  */
13465 < _ACEOF
13466 < cat confdefs.h >>conftest.$ac_ext
13467 < cat >>conftest.$ac_ext <<_ACEOF
13468 < /* end confdefs.h.  */
13469 <
13470 < /* Override any gcc2 internal prototype to avoid an error.  */
13471 < #ifdef __cplusplus
13472 < extern "C"
13473 < #endif
13474 < /* We use char because int might match the return type of a gcc2
13475 <   builtin and then its argument prototype would still apply.  */
13476 < char MPI_Init ();
13477 < #ifdef FC_DUMMY_MAIN
13478 < #ifndef FC_DUMMY_MAIN_EQ_F77
13479 < #  ifdef __cplusplus
13480 <     extern "C"
13481 < #  endif
13482 <   int FC_DUMMY_MAIN() { return 1; }
13483 < #endif
13484 < #endif
13485 < int
13486 < main ()
13487 < {
13488 < MPI_Init ();
13489 <  ;
13490 <  return 0;
13491 < }
13492 < _ACEOF
13493 < rm -f conftest.$ac_objext conftest$ac_exeext
13494 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 <  (eval $ac_link) 2>conftest.er1
13496 <  ac_status=$?
13497 <  grep -v '^ *+' conftest.er1 >conftest.err
13498 <  rm -f conftest.er1
13499 <  cat conftest.err >&5
13500 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 <  (exit $ac_status); } &&
13502 <         { ac_try='test -z "$ac_c_werror_flag"
13503 <                         || test ! -s conftest.err'
13504 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 <  (eval $ac_try) 2>&5
13506 <  ac_status=$?
13507 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 <  (exit $ac_status); }; } &&
13509 <         { ac_try='test -s conftest$ac_exeext'
13510 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 <  (eval $ac_try) 2>&5
13512 <  ac_status=$?
13513 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 <  (exit $ac_status); }; }; then
13515 <  ac_cv_lib_mpich_MPI_Init=yes
13516 < else
13517 <  echo "$as_me: failed program was:" >&5
13518 < sed 's/^/| /' conftest.$ac_ext >&5
13519 <
13520 < ac_cv_lib_mpich_MPI_Init=no
13521 < fi
13522 < rm -f conftest.err conftest.$ac_objext \
13523 <      conftest$ac_exeext conftest.$ac_ext
13524 < LIBS=$ac_check_lib_save_LIBS
13525 < fi
13526 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13527 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13528 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13529 <  MPI_LIB="-lmpich"
13530 < fi
13531 <
13532 < fi
13533 < $as_unset ac_cv_lib_mpich_MPI_Init
13534 < if test x = x"$MPI_LIB"; then
13535 <        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13536 < echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13537 < if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13538 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13539 < else
13540 <  ac_check_lib_save_LIBS=$LIBS
13541 < LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
13542 < cat >conftest.$ac_ext <<_ACEOF
13543 < /* confdefs.h.  */
13544 < _ACEOF
13545 < cat confdefs.h >>conftest.$ac_ext
13546 < cat >>conftest.$ac_ext <<_ACEOF
13547 < /* end confdefs.h.  */
13548 <
13549 < /* Override any gcc2 internal prototype to avoid an error.  */
13550 < #ifdef __cplusplus
13551 < extern "C"
13552 < #endif
13553 < /* We use char because int might match the return type of a gcc2
13554 <   builtin and then its argument prototype would still apply.  */
13555 < char MPI_Init ();
13556 < #ifdef FC_DUMMY_MAIN
13557 < #ifndef FC_DUMMY_MAIN_EQ_F77
13558 < #  ifdef __cplusplus
13559 <     extern "C"
13560 < #  endif
13561 <   int FC_DUMMY_MAIN() { return 1; }
13562 < #endif
13563 < #endif
13564 < int
13565 < main ()
13566 < {
13567 < MPI_Init ();
13568 <  ;
13569 <  return 0;
13570 < }
13571 < _ACEOF
13572 < rm -f conftest.$ac_objext conftest$ac_exeext
13573 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13574 <  (eval $ac_link) 2>conftest.er1
13575 <  ac_status=$?
13576 <  grep -v '^ *+' conftest.er1 >conftest.err
13577 <  rm -f conftest.er1
13578 <  cat conftest.err >&5
13579 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 <  (exit $ac_status); } &&
13581 <         { ac_try='test -z "$ac_c_werror_flag"
13582 <                         || test ! -s conftest.err'
13583 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 <  (eval $ac_try) 2>&5
13585 <  ac_status=$?
13586 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 <  (exit $ac_status); }; } &&
13588 <         { ac_try='test -s conftest$ac_exeext'
13589 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 <  (eval $ac_try) 2>&5
13591 <  ac_status=$?
13592 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 <  (exit $ac_status); }; }; then
13594 <  ac_cv_lib_pmpich_MPI_Init=yes
13595 < else
13596 <  echo "$as_me: failed program was:" >&5
13597 < sed 's/^/| /' conftest.$ac_ext >&5
13598 <
13599 < ac_cv_lib_pmpich_MPI_Init=no
13600 < fi
13601 < rm -f conftest.err conftest.$ac_objext \
13602 <      conftest$ac_exeext conftest.$ac_ext
13603 < LIBS=$ac_check_lib_save_LIBS
13604 < fi
13605 < echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13606 < echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13607 < if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13608 <  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13609 < fi
13610 <
13611 < fi
13612 < if test x = x"$MPI_LIB"; then
13613 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13614 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13615 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13616 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13617 < else
13618 <  ac_check_lib_save_LIBS=$LIBS
13619 < LIBS="-lmpi  $LIBS"
13620 < cat >conftest.$ac_ext <<_ACEOF
13621 < /* confdefs.h.  */
13622 < _ACEOF
13623 < cat confdefs.h >>conftest.$ac_ext
13624 < cat >>conftest.$ac_ext <<_ACEOF
13625 < /* end confdefs.h.  */
13626 <
13627 < /* Override any gcc2 internal prototype to avoid an error.  */
13628 < #ifdef __cplusplus
13629 < extern "C"
13630 < #endif
13631 < /* We use char because int might match the return type of a gcc2
13632 <   builtin and then its argument prototype would still apply.  */
13633 < char MPI_Init ();
13634 < #ifdef FC_DUMMY_MAIN
13635 < #ifndef FC_DUMMY_MAIN_EQ_F77
13636 < #  ifdef __cplusplus
13637 <     extern "C"
13638 < #  endif
13639 <   int FC_DUMMY_MAIN() { return 1; }
13640 < #endif
13641 < #endif
13642 < int
13643 < main ()
13644 < {
13645 < MPI_Init ();
13646 <  ;
13647 <  return 0;
13648 < }
13649 < _ACEOF
13650 < rm -f conftest.$ac_objext conftest$ac_exeext
13651 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13652 <  (eval $ac_link) 2>conftest.er1
13653 <  ac_status=$?
13654 <  grep -v '^ *+' conftest.er1 >conftest.err
13655 <  rm -f conftest.er1
13656 <  cat conftest.err >&5
13657 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 <  (exit $ac_status); } &&
13659 <         { ac_try='test -z "$ac_c_werror_flag"
13660 <                         || test ! -s conftest.err'
13661 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 <  (eval $ac_try) 2>&5
13663 <  ac_status=$?
13664 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 <  (exit $ac_status); }; } &&
13666 <         { ac_try='test -s conftest$ac_exeext'
13667 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 <  (eval $ac_try) 2>&5
13669 <  ac_status=$?
13670 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 <  (exit $ac_status); }; }; then
13672 <  ac_cv_lib_mpi_MPI_Init=yes
13673 < else
13674 <  echo "$as_me: failed program was:" >&5
13675 < sed 's/^/| /' conftest.$ac_ext >&5
13676 <
13677 < ac_cv_lib_mpi_MPI_Init=no
13678 < fi
13679 < rm -f conftest.err conftest.$ac_objext \
13680 <      conftest$ac_exeext conftest.$ac_ext
13681 < LIBS=$ac_check_lib_save_LIBS
13682 < fi
13683 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13684 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13685 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13686 <  MPI_LIB="-lmpi"
13687 < fi
13688 <
13689 < fi
13690 < $as_unset ac_cv_lib_mpi_MPI_Init
13691 < if test x = x"$MPI_LIB"; then
13692 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13693 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13694 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13695 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13696 < else
13697 <  ac_check_lib_save_LIBS=$LIBS
13698 < LIBS="-lmpi -llam $LIBS"
13699 < cat >conftest.$ac_ext <<_ACEOF
13700 < /* confdefs.h.  */
13701 < _ACEOF
13702 < cat confdefs.h >>conftest.$ac_ext
13703 < cat >>conftest.$ac_ext <<_ACEOF
13704 < /* end confdefs.h.  */
13705 <
13706 < /* Override any gcc2 internal prototype to avoid an error.  */
13707 < #ifdef __cplusplus
13708 < extern "C"
13709 < #endif
13710 < /* We use char because int might match the return type of a gcc2
13711 <   builtin and then its argument prototype would still apply.  */
13712 < char MPI_Init ();
13713 < #ifdef FC_DUMMY_MAIN
13714 < #ifndef FC_DUMMY_MAIN_EQ_F77
13715 < #  ifdef __cplusplus
13716 <     extern "C"
13717 < #  endif
13718 <   int FC_DUMMY_MAIN() { return 1; }
13719 < #endif
13720 < #endif
13721 < int
13722 < main ()
13723 < {
13724 < MPI_Init ();
13725 <  ;
13726 <  return 0;
13727 < }
13728 < _ACEOF
13729 < rm -f conftest.$ac_objext conftest$ac_exeext
13730 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 <  (eval $ac_link) 2>conftest.er1
13732 <  ac_status=$?
13733 <  grep -v '^ *+' conftest.er1 >conftest.err
13734 <  rm -f conftest.er1
13735 <  cat conftest.err >&5
13736 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 <  (exit $ac_status); } &&
13738 <         { ac_try='test -z "$ac_c_werror_flag"
13739 <                         || test ! -s conftest.err'
13740 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 <  (eval $ac_try) 2>&5
13742 <  ac_status=$?
13743 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 <  (exit $ac_status); }; } &&
13745 <         { ac_try='test -s conftest$ac_exeext'
13746 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 <  (eval $ac_try) 2>&5
13748 <  ac_status=$?
13749 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 <  (exit $ac_status); }; }; then
13751 <  ac_cv_lib_mpi_MPI_Init=yes
13752 < else
13753 <  echo "$as_me: failed program was:" >&5
13754 < sed 's/^/| /' conftest.$ac_ext >&5
13755 <
13756 < ac_cv_lib_mpi_MPI_Init=no
13757 < fi
13758 < rm -f conftest.err conftest.$ac_objext \
13759 <      conftest$ac_exeext conftest.$ac_ext
13760 < LIBS=$ac_check_lib_save_LIBS
13761 < fi
13762 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13763 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13764 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13765 <  MPI_LIB="-lmpi -llam"
13766 < fi
13767 <
13768 < fi
13769 < $as_unset ac_cv_lib_mpi_MPI_Init
13770 < if test x = x"$MPI_LIB"; then
13771 < echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13772 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13773 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13774 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13775 < else
13776 <  ac_check_lib_save_LIBS=$LIBS
13777 < LIBS="-lmpi -llam -lpthread $LIBS"
13778 < cat >conftest.$ac_ext <<_ACEOF
13779 < /* confdefs.h.  */
13780 < _ACEOF
13781 < cat confdefs.h >>conftest.$ac_ext
13782 < cat >>conftest.$ac_ext <<_ACEOF
13783 < /* end confdefs.h.  */
13784 <
13785 < /* Override any gcc2 internal prototype to avoid an error.  */
13786 < #ifdef __cplusplus
13787 < extern "C"
13788 < #endif
13789 < /* We use char because int might match the return type of a gcc2
13790 <   builtin and then its argument prototype would still apply.  */
13791 < char MPI_Init ();
13792 < #ifdef FC_DUMMY_MAIN
13793 < #ifndef FC_DUMMY_MAIN_EQ_F77
13794 < #  ifdef __cplusplus
13795 <     extern "C"
13796 < #  endif
13797 <   int FC_DUMMY_MAIN() { return 1; }
13798 < #endif
13799 < #endif
13800 < int
13801 < main ()
13802 < {
13803 < MPI_Init ();
13804 <  ;
13805 <  return 0;
13806 < }
13807 < _ACEOF
13808 < rm -f conftest.$ac_objext conftest$ac_exeext
13809 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810 <  (eval $ac_link) 2>conftest.er1
13811 <  ac_status=$?
13812 <  grep -v '^ *+' conftest.er1 >conftest.err
13813 <  rm -f conftest.er1
13814 <  cat conftest.err >&5
13815 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 <  (exit $ac_status); } &&
13817 <         { ac_try='test -z "$ac_c_werror_flag"
13818 <                         || test ! -s conftest.err'
13819 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 <  (eval $ac_try) 2>&5
13821 <  ac_status=$?
13822 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 <  (exit $ac_status); }; } &&
13824 <         { ac_try='test -s conftest$ac_exeext'
13825 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 <  (eval $ac_try) 2>&5
13827 <  ac_status=$?
13828 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 <  (exit $ac_status); }; }; then
13830 <  ac_cv_lib_mpi_MPI_Init=yes
13831 < else
13832 <  echo "$as_me: failed program was:" >&5
13833 < sed 's/^/| /' conftest.$ac_ext >&5
13834 <
13835 < ac_cv_lib_mpi_MPI_Init=no
13836 < fi
13837 < rm -f conftest.err conftest.$ac_objext \
13838 <      conftest$ac_exeext conftest.$ac_ext
13839 < LIBS=$ac_check_lib_save_LIBS
13840 < fi
13841 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13842 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13843 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13844 <  MPI_LIB="-lmpi -llam -lpthread"
13845 < else
13846 <
13847 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
13848 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
13849 <   { (exit 1); exit 1; }; }
13850 <             USE_MPI="no"
13851 <
13852 < fi
13853 <
13854 < fi
13855 <
13856 <
13857 <
13858 < echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
13859 < echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
13860 < MPI_F90_LIB=""
13861 < if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
13862 <        MPI_F90_LIB="-lfmpich"
13863 < elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
13864 <        MPI_F90_LIB="-llamf77mpi"
13865 < else
13866 <                        MPI_F90_LIB="  "
13867 < fi
13868 < echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
13869 < echo "${ECHO_T}found $MPI_F90_LIB" >&6
13870 <
13871 <
13872 < fi
13873 <
13874 <
13875 <
13876 < acx_cgal_found=no
13877 <
13878 < # Check whether --with-cgalmakefile or --without-cgalmakefile was given.
13879 < if test "${with_cgalmakefile+set}" = set; then
13880 <  withval="$with_cgalmakefile"
13881 <
13882 < fi;
13883 < case $with_cgalmakefile in
13884 <        yes | "") ;;
13885 <        no) acx_cgal_found=disable ;;
13886 <        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13887 <        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13888 < esac
13889 <
13890 < if test "$acx_cgal_found" == no; then
13891 <    echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
13892 < echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6
13893 <
13894 <    if test \! -z "$CGAL_MAKEFILE"; then
13895 <
13896 <        if test -e "$CGAL_MAKEFILE"; then
13897 <            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
13898 <
13899 < cat > $tname << _ACEOF
13900 < include $CGAL_MAKEFILE
13901 <
13902 < cppflags:
13903 <        @echo \$(CGAL_CXXFLAGS)
13904 <
13905 < cxxflags:
13906 <        @echo
13907 < ldflags:
13908 <        @echo \$(CGAL_LDFLAGS)
13909 < _ACEOF
13910 <            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
13911 <            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
13912 <            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
13913 <            for i in $CGAL_LDFLAGST; do
13914 <                if test `echo $i| grep -c ^-l`; then
13915 <                    CGAL_LIBS="$CGAL_LIBS $i"
13916 <                else
13917 <                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
13918 <                fi
13919 <            done
13920 <            rm -f $tname
13921 <            echo "$as_me:$LINENO: result: yes" >&5
13922 < echo "${ECHO_T}yes" >&6
13923 <            acx_cgal_found=yes
13924 <                                   else
13925 <            echo "$as_me:$LINENO: result: invalid" >&5
13926 < echo "${ECHO_T}invalid" >&6
13927 <            { { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
13928 < echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
13929 <   { (exit 1); exit 1; }; }
13930 <        fi
13931 <    else
13932 <        echo "$as_me:$LINENO: result: not defined" >&5
13933 < echo "${ECHO_T}not defined" >&6
13934 <    fi
13935 < fi
13936 <
13937 < if test "$acx_cgal_found" == no; then
13938 <        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13939 <  echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
13940 < echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
13941 < if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13942 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13943 < fi
13944 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
13945 < echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
13946 < else
13947 <  # Is the header compilable?
13948 < echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
13949 < echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6
13950 < cat >conftest.$ac_ext <<_ACEOF
13951 < /* confdefs.h.  */
13952 < _ACEOF
13953 < cat confdefs.h >>conftest.$ac_ext
13954 < cat >>conftest.$ac_ext <<_ACEOF
13955 < /* end confdefs.h.  */
13956 < $ac_includes_default
13957 < #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
13958 < _ACEOF
13959 < rm -f conftest.$ac_objext
13960 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 <  (eval $ac_compile) 2>conftest.er1
13962 <  ac_status=$?
13963 <  grep -v '^ *+' conftest.er1 >conftest.err
13964 <  rm -f conftest.er1
13965 <  cat conftest.err >&5
13966 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 <  (exit $ac_status); } &&
13968 <         { ac_try='test -z "$ac_c_werror_flag"
13969 <                         || test ! -s conftest.err'
13970 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 <  (eval $ac_try) 2>&5
13972 <  ac_status=$?
13973 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 <  (exit $ac_status); }; } &&
13975 <         { ac_try='test -s conftest.$ac_objext'
13976 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 <  (eval $ac_try) 2>&5
13978 <  ac_status=$?
13979 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 <  (exit $ac_status); }; }; then
13981 <  ac_header_compiler=yes
13982 < else
13983 <  echo "$as_me: failed program was:" >&5
13984 < sed 's/^/| /' conftest.$ac_ext >&5
13985 <
13986 < ac_header_compiler=no
13987 < fi
13988 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13989 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 < echo "${ECHO_T}$ac_header_compiler" >&6
13991 <
13992 < # Is the header present?
13993 < echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
13994 < echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6
13995 < cat >conftest.$ac_ext <<_ACEOF
13996 < /* confdefs.h.  */
13997 < _ACEOF
13998 < cat confdefs.h >>conftest.$ac_ext
13999 < cat >>conftest.$ac_ext <<_ACEOF
14000 < /* end confdefs.h.  */
14001 < #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
14002 < _ACEOF
14003 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14004 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14005 <  ac_status=$?
14006 <  grep -v '^ *+' conftest.er1 >conftest.err
14007 <  rm -f conftest.er1
14008 <  cat conftest.err >&5
14009 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 <  (exit $ac_status); } >/dev/null; then
14011 <  if test -s conftest.err; then
14012 <    ac_cpp_err=$ac_c_preproc_warn_flag
14013 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14014 <  else
14015 <    ac_cpp_err=
14016 <  fi
14017 < else
14018 <  ac_cpp_err=yes
14019 < fi
14020 < if test -z "$ac_cpp_err"; then
14021 <  ac_header_preproc=yes
14022 < else
14023 <  echo "$as_me: failed program was:" >&5
14024 < sed 's/^/| /' conftest.$ac_ext >&5
14025 <
14026 <  ac_header_preproc=no
14027 < fi
14028 < rm -f conftest.err conftest.$ac_ext
14029 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14030 < echo "${ECHO_T}$ac_header_preproc" >&6
14031 <
14032 < # So?  What about this header?
14033 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 <  yes:no: )
14035 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
14038 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
14039 <    ac_header_preproc=yes
14040 <    ;;
14041 <  no:yes:* )
14042 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
14043 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
14044 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
14045 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
14046 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
14047 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
14048 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
14049 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14050 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
14051 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
14052 <    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
14053 < echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
14054 <    (
14055 <      cat <<\_ASBOX
14056 < ## ------------------------------ ##
14057 < ## Report this to gezelter@nd.edu ##
14058 < ## ------------------------------ ##
14059 < _ASBOX
14060 <    ) |
14061 <      sed "s/^/$as_me: WARNING:     /" >&2
14062 <    ;;
14063 < esac
14064 < echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
14065 < echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
14066 < if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
14067 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14068 < else
14069 <  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
14070 < fi
14071 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
14072 < echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
14073 <
14074 < fi
14075 < if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
14076 <  cgal_have_header=yes
14077 < else
14078 <  cgal_have_header=no
14079 < fi
14080 <
14081 <
14082 <        if test "$cgal_have_header" == yes; then
14083 <                echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
14084 < echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
14085 < if test "${ac_cv_lib_CGAL_main+set}" = set; then
14086 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14087 < else
14088 <  ac_check_lib_save_LIBS=$LIBS
14089 < LIBS="-lCGAL  $LIBS"
14090 < cat >conftest.$ac_ext <<_ACEOF
14091 < /* confdefs.h.  */
14092 < _ACEOF
14093 < cat confdefs.h >>conftest.$ac_ext
14094 < cat >>conftest.$ac_ext <<_ACEOF
14095 < /* end confdefs.h.  */
14096 <
14097 <
14098 < #ifdef FC_DUMMY_MAIN
14099 < #ifndef FC_DUMMY_MAIN_EQ_F77
14100 < #  ifdef __cplusplus
14101 <     extern "C"
14102 < #  endif
14103 <   int FC_DUMMY_MAIN() { return 1; }
14104 < #endif
14105 < #endif
14106 < int
14107 < main ()
14108 < {
14109 < main ();
14110 <  ;
14111 <  return 0;
14112 < }
14113 < _ACEOF
14114 < rm -f conftest.$ac_objext conftest$ac_exeext
14115 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 <  (eval $ac_link) 2>conftest.er1
14117 <  ac_status=$?
14118 <  grep -v '^ *+' conftest.er1 >conftest.err
14119 <  rm -f conftest.er1
14120 <  cat conftest.err >&5
14121 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 <  (exit $ac_status); } &&
14123 <         { ac_try='test -z "$ac_c_werror_flag"
14124 <                         || test ! -s conftest.err'
14125 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 <  (eval $ac_try) 2>&5
14127 <  ac_status=$?
14128 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 <  (exit $ac_status); }; } &&
14130 <         { ac_try='test -s conftest$ac_exeext'
14131 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 <  (eval $ac_try) 2>&5
14133 <  ac_status=$?
14134 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 <  (exit $ac_status); }; }; then
14136 <  ac_cv_lib_CGAL_main=yes
14137 < else
14138 <  echo "$as_me: failed program was:" >&5
14139 < sed 's/^/| /' conftest.$ac_ext >&5
14140 <
14141 < ac_cv_lib_CGAL_main=no
14142 < fi
14143 < rm -f conftest.err conftest.$ac_objext \
14144 <      conftest$ac_exeext conftest.$ac_ext
14145 < LIBS=$ac_check_lib_save_LIBS
14146 < fi
14147 < echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
14148 < echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
14149 < if test $ac_cv_lib_CGAL_main = yes; then
14150 <  cgal_have_lib=yes
14151 < else
14152 <  cgal_have_lib=no
14153 < fi
14154 <
14155 <                if test "$cgal_have_lib" == no; then
14156 <                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
14157 <                        echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
14158 < echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
14159 < if test "${ac_cv_lib_CGAL_main+set}" = set; then
14160 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14161 < else
14162 <  ac_check_lib_save_LIBS=$LIBS
14163 < LIBS="-lCGAL  $LIBS"
14164 < cat >conftest.$ac_ext <<_ACEOF
14165 < /* confdefs.h.  */
14166 < _ACEOF
14167 < cat confdefs.h >>conftest.$ac_ext
14168 < cat >>conftest.$ac_ext <<_ACEOF
14169 < /* end confdefs.h.  */
14170 <
14171 <
14172 < #ifdef FC_DUMMY_MAIN
14173 < #ifndef FC_DUMMY_MAIN_EQ_F77
14174 < #  ifdef __cplusplus
14175 <     extern "C"
14176 < #  endif
14177 <   int FC_DUMMY_MAIN() { return 1; }
14178 < #endif
14179 < #endif
14180 < int
14181 < main ()
14182 < {
14183 < main ();
14184 <  ;
14185 <  return 0;
14186 < }
14187 < _ACEOF
14188 < rm -f conftest.$ac_objext conftest$ac_exeext
14189 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14190 <  (eval $ac_link) 2>conftest.er1
14191 <  ac_status=$?
14192 <  grep -v '^ *+' conftest.er1 >conftest.err
14193 <  rm -f conftest.er1
14194 <  cat conftest.err >&5
14195 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 <  (exit $ac_status); } &&
14197 <         { ac_try='test -z "$ac_c_werror_flag"
14198 <                         || test ! -s conftest.err'
14199 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 <  (eval $ac_try) 2>&5
14201 <  ac_status=$?
14202 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 <  (exit $ac_status); }; } &&
14204 <         { ac_try='test -s conftest$ac_exeext'
14205 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 <  (eval $ac_try) 2>&5
14207 <  ac_status=$?
14208 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 <  (exit $ac_status); }; }; then
14210 <  ac_cv_lib_CGAL_main=yes
14211 < else
14212 <  echo "$as_me: failed program was:" >&5
14213 < sed 's/^/| /' conftest.$ac_ext >&5
14214 <
14215 < ac_cv_lib_CGAL_main=no
14216 < fi
14217 < rm -f conftest.err conftest.$ac_objext \
14218 <      conftest$ac_exeext conftest.$ac_ext
14219 < LIBS=$ac_check_lib_save_LIBS
14220 < fi
14221 < echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
14222 < echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
14223 < if test $ac_cv_lib_CGAL_main = yes; then
14224 <  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
14225 <                                                  cgal_have_lib=yes
14226 < else
14227 <  cgal_have_lib=no
14228 < fi
14229 <
14230 <                        LIBS="$save_LIBS"
14231 <                else
14232 <                        CGAL_LIBS="-lCGAL"
14233 <                        echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
14234 < echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6
14235 < if test "${ac_cv_lib_mpfr_main+set}" = set; then
14236 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14237 < else
14238 <  ac_check_lib_save_LIBS=$LIBS
14239 < LIBS="-lmpfr  $LIBS"
14240 < cat >conftest.$ac_ext <<_ACEOF
14241 < /* confdefs.h.  */
14242 < _ACEOF
14243 < cat confdefs.h >>conftest.$ac_ext
14244 < cat >>conftest.$ac_ext <<_ACEOF
14245 < /* end confdefs.h.  */
14246 <
14247 <
14248 < #ifdef FC_DUMMY_MAIN
14249 < #ifndef FC_DUMMY_MAIN_EQ_F77
14250 < #  ifdef __cplusplus
14251 <     extern "C"
14252 < #  endif
14253 <   int FC_DUMMY_MAIN() { return 1; }
14254 < #endif
14255 < #endif
14256 < int
14257 < main ()
14258 < {
14259 < main ();
14260 <  ;
14261 <  return 0;
14262 < }
14263 < _ACEOF
14264 < rm -f conftest.$ac_objext conftest$ac_exeext
14265 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 <  (eval $ac_link) 2>conftest.er1
14267 <  ac_status=$?
14268 <  grep -v '^ *+' conftest.er1 >conftest.err
14269 <  rm -f conftest.er1
14270 <  cat conftest.err >&5
14271 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 <  (exit $ac_status); } &&
14273 <         { ac_try='test -z "$ac_c_werror_flag"
14274 <                         || test ! -s conftest.err'
14275 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 <  (eval $ac_try) 2>&5
14277 <  ac_status=$?
14278 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 <  (exit $ac_status); }; } &&
14280 <         { ac_try='test -s conftest$ac_exeext'
14281 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 <  (eval $ac_try) 2>&5
14283 <  ac_status=$?
14284 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 <  (exit $ac_status); }; }; then
14286 <  ac_cv_lib_mpfr_main=yes
14287 < else
14288 <  echo "$as_me: failed program was:" >&5
14289 < sed 's/^/| /' conftest.$ac_ext >&5
14290 <
14291 < ac_cv_lib_mpfr_main=no
14292 < fi
14293 < rm -f conftest.err conftest.$ac_objext \
14294 <      conftest$ac_exeext conftest.$ac_ext
14295 < LIBS=$ac_check_lib_save_LIBS
14296 < fi
14297 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
14298 < echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6
14299 < if test $ac_cv_lib_mpfr_main = yes; then
14300 <  CGAL_LIBS="$CGAL_LIBS -lmpfr"
14301 < fi
14302 <
14303 <                        echo "$as_me:$LINENO: checking for main in -lgmp" >&5
14304 < echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
14305 < if test "${ac_cv_lib_gmp_main+set}" = set; then
14306 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14307 < else
14308 <  ac_check_lib_save_LIBS=$LIBS
14309 < LIBS="-lgmp  $LIBS"
14310 < cat >conftest.$ac_ext <<_ACEOF
14311 < /* confdefs.h.  */
14312 < _ACEOF
14313 < cat confdefs.h >>conftest.$ac_ext
14314 < cat >>conftest.$ac_ext <<_ACEOF
14315 < /* end confdefs.h.  */
14316 <
14317 <
14318 < #ifdef FC_DUMMY_MAIN
14319 < #ifndef FC_DUMMY_MAIN_EQ_F77
14320 < #  ifdef __cplusplus
14321 <     extern "C"
14322 < #  endif
14323 <   int FC_DUMMY_MAIN() { return 1; }
14324 < #endif
14325 < #endif
14326 < int
14327 < main ()
14328 < {
14329 < main ();
14330 <  ;
14331 <  return 0;
14332 < }
14333 < _ACEOF
14334 < rm -f conftest.$ac_objext conftest$ac_exeext
14335 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336 <  (eval $ac_link) 2>conftest.er1
14337 <  ac_status=$?
14338 <  grep -v '^ *+' conftest.er1 >conftest.err
14339 <  rm -f conftest.er1
14340 <  cat conftest.err >&5
14341 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 <  (exit $ac_status); } &&
14343 <         { ac_try='test -z "$ac_c_werror_flag"
14344 <                         || test ! -s conftest.err'
14345 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 <  (eval $ac_try) 2>&5
14347 <  ac_status=$?
14348 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 <  (exit $ac_status); }; } &&
14350 <         { ac_try='test -s conftest$ac_exeext'
14351 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 <  (eval $ac_try) 2>&5
14353 <  ac_status=$?
14354 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 <  (exit $ac_status); }; }; then
14356 <  ac_cv_lib_gmp_main=yes
14357 < else
14358 <  echo "$as_me: failed program was:" >&5
14359 < sed 's/^/| /' conftest.$ac_ext >&5
14360 <
14361 < ac_cv_lib_gmp_main=no
14362 < fi
14363 < rm -f conftest.err conftest.$ac_objext \
14364 <      conftest$ac_exeext conftest.$ac_ext
14365 < LIBS=$ac_check_lib_save_LIBS
14366 < fi
14367 < echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
14368 < echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
14369 < if test $ac_cv_lib_gmp_main = yes; then
14370 <  CGAL_LIBS="$CGAL_LIBS -lgmp"
14371 < fi
14372 <
14373 <                        echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
14374 < echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6
14375 < if test "${ac_cv_lib_gmpxx_main+set}" = set; then
14376 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14377 < else
14378 <  ac_check_lib_save_LIBS=$LIBS
14379 < LIBS="-lgmpxx  $LIBS"
14380 < cat >conftest.$ac_ext <<_ACEOF
14381 < /* confdefs.h.  */
14382 < _ACEOF
14383 < cat confdefs.h >>conftest.$ac_ext
14384 < cat >>conftest.$ac_ext <<_ACEOF
14385 < /* end confdefs.h.  */
14386 <
14387 <
14388 < #ifdef FC_DUMMY_MAIN
14389 < #ifndef FC_DUMMY_MAIN_EQ_F77
14390 < #  ifdef __cplusplus
14391 <     extern "C"
14392 < #  endif
14393 <   int FC_DUMMY_MAIN() { return 1; }
14394 < #endif
14395 < #endif
14396 < int
14397 < main ()
14398 < {
14399 < main ();
14400 <  ;
14401 <  return 0;
14402 < }
14403 < _ACEOF
14404 < rm -f conftest.$ac_objext conftest$ac_exeext
14405 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406 <  (eval $ac_link) 2>conftest.er1
14407 <  ac_status=$?
14408 <  grep -v '^ *+' conftest.er1 >conftest.err
14409 <  rm -f conftest.er1
14410 <  cat conftest.err >&5
14411 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 <  (exit $ac_status); } &&
14413 <         { ac_try='test -z "$ac_c_werror_flag"
14414 <                         || test ! -s conftest.err'
14415 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 <  (eval $ac_try) 2>&5
14417 <  ac_status=$?
14418 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 <  (exit $ac_status); }; } &&
14420 <         { ac_try='test -s conftest$ac_exeext'
14421 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 <  (eval $ac_try) 2>&5
14423 <  ac_status=$?
14424 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 <  (exit $ac_status); }; }; then
14426 <  ac_cv_lib_gmpxx_main=yes
14427 < else
14428 <  echo "$as_me: failed program was:" >&5
14429 < sed 's/^/| /' conftest.$ac_ext >&5
14430 <
14431 < ac_cv_lib_gmpxx_main=no
14432 < fi
14433 < rm -f conftest.err conftest.$ac_objext \
14434 <      conftest$ac_exeext conftest.$ac_ext
14435 < LIBS=$ac_check_lib_save_LIBS
14436 < fi
14437 < echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
14438 < echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6
14439 < if test $ac_cv_lib_gmpxx_main = yes; then
14440 <  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
14441 < fi
14442 <
14443 <                fi
14444 <
14445 <                if test "$cgal_have_lib" == yes; then
14446 <                        acx_cgal_found=yes
14447 <                fi
14448 <        fi
14449 <        if test "$acx_cgal_found" == yes; then
14450 <                echo "$as_me:$LINENO: checking for main in -lCore" >&5
14451 < echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6
14452 < if test "${ac_cv_lib_Core_main+set}" = set; then
14453 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14454 < else
14455 <  ac_check_lib_save_LIBS=$LIBS
14456 < LIBS="-lCore  $LIBS"
14457 < cat >conftest.$ac_ext <<_ACEOF
14458 < /* confdefs.h.  */
14459 < _ACEOF
14460 < cat confdefs.h >>conftest.$ac_ext
14461 < cat >>conftest.$ac_ext <<_ACEOF
14462 < /* end confdefs.h.  */
14463 <
14464 <
14465 < #ifdef FC_DUMMY_MAIN
14466 < #ifndef FC_DUMMY_MAIN_EQ_F77
14467 < #  ifdef __cplusplus
14468 <     extern "C"
14469 < #  endif
14470 <   int FC_DUMMY_MAIN() { return 1; }
14471 < #endif
14472 < #endif
14473 < int
14474 < main ()
14475 < {
14476 < main ();
14477 <  ;
14478 <  return 0;
14479 < }
14480 < _ACEOF
14481 < rm -f conftest.$ac_objext conftest$ac_exeext
14482 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 <  (eval $ac_link) 2>conftest.er1
14484 <  ac_status=$?
14485 <  grep -v '^ *+' conftest.er1 >conftest.err
14486 <  rm -f conftest.er1
14487 <  cat conftest.err >&5
14488 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 <  (exit $ac_status); } &&
14490 <         { ac_try='test -z "$ac_c_werror_flag"
14491 <                         || test ! -s conftest.err'
14492 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 <  (eval $ac_try) 2>&5
14494 <  ac_status=$?
14495 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 <  (exit $ac_status); }; } &&
14497 <         { ac_try='test -s conftest$ac_exeext'
14498 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 <  (eval $ac_try) 2>&5
14500 <  ac_status=$?
14501 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 <  (exit $ac_status); }; }; then
14503 <  ac_cv_lib_Core_main=yes
14504 < else
14505 <  echo "$as_me: failed program was:" >&5
14506 < sed 's/^/| /' conftest.$ac_ext >&5
14507 <
14508 < ac_cv_lib_Core_main=no
14509 < fi
14510 < rm -f conftest.err conftest.$ac_objext \
14511 <      conftest$ac_exeext conftest.$ac_ext
14512 < LIBS=$ac_check_lib_save_LIBS
14513 < fi
14514 < echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
14515 < echo "${ECHO_T}$ac_cv_lib_Core_main" >&6
14516 < if test $ac_cv_lib_Core_main = yes; then
14517 <  CGAL_LIBS="$CGAL_LIBS -lCore"
14518 < fi
14519 <
14520 <        fi
14521 < fi
14522 <
14523 <
14524 <
14525 < echo "$as_me:$LINENO: checking CGAL" >&5
14526 < echo $ECHO_N "checking CGAL... $ECHO_C" >&6
14527 < if test "$acx_cgal_found" == yes; then
14528 <        echo "$as_me:$LINENO: result: yes" >&5
14529 < echo "${ECHO_T}yes" >&6;
14530 <
14531 < else
14532 <        echo "$as_me:$LINENO: result: no" >&5
14533 < echo "${ECHO_T}no" >&6
14534 <
14535 < fi
14536 <
14537 < if test "$acx_cgal_found" == yes; then
14538 <        USE_CGAL=yes
14539 <
14540 < cat >>confdefs.h <<\_ACEOF
14541 < #define HAVE_CGAL 1
14542 < _ACEOF
14543 <
14544 <
14545 <
14546 <
14547 <
14548 <
14549 < fi
14550 <
14551 <
14552 <
14553 <
14554 < # Check whether --enable-doxygen or --disable-doxygen was given.
14555 < if test "${enable_doxygen+set}" = set; then
14556 <  enableval="$enable_doxygen"
14557 <
14558 < fi;
14559 < # Check whether --enable-dot or --disable-dot was given.
14560 < if test "${enable_dot+set}" = set; then
14561 <  enableval="$enable_dot"
14562 <
14563 < fi;
14564 < # Check whether --enable-html-docs or --disable-html-docs was given.
14565 < if test "${enable_html_docs+set}" = set; then
14566 <  enableval="$enable_html_docs"
14567 <
14568 < else
14569 <   enable_html_docs=yes
14570 < fi;
14571 < # Check whether --enable-latex-docs or --disable-latex-docs was given.
14572 < if test "${enable_latex_docs+set}" = set; then
14573 <  enableval="$enable_latex_docs"
14574 <
14575 < else
14576 <   enable_latex_docs=no
14577 < fi;
14578 < if test "x$enable_doxygen" = xno; then
14579 <        enable_doc=no
14580 < else
14581 <        # Extract the first word of "doxygen", so it can be a program name with args.
14582 < set dummy doxygen; ac_word=$2
14583 < echo "$as_me:$LINENO: checking for $ac_word" >&5
14584 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14585 < if test "${ac_cv_path_DOXYGEN+set}" = set; then
14586 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14587 < else
14588 <  case $DOXYGEN in
14589 <  [\\/]* | ?:[\\/]*)
14590 <  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
14591 <  ;;
14592 <  *)
14593 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 < for as_dir in $PATH
14595 < do
14596 <  IFS=$as_save_IFS
14597 <  test -z "$as_dir" && as_dir=.
14598 <  for ac_exec_ext in '' $ac_executable_extensions; do
14599 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600 <    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
14601 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14602 <    break 2
14603 <  fi
14604 < done
14605 < done
14606 <
14607 <  ;;
14608 < esac
14609 < fi
14610 < DOXYGEN=$ac_cv_path_DOXYGEN
14611 <
14612 < if test -n "$DOXYGEN"; then
14613 <  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
14614 < echo "${ECHO_T}$DOXYGEN" >&6
14615 < else
14616 <  echo "$as_me:$LINENO: result: no" >&5
14617 < echo "${ECHO_T}no" >&6
14618 < fi
14619 <
14620 <        if test "x$DOXYGEN" = x; then
14621 <                if test "x$enable_doxygen" = xyes; then
14622 <                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
14623 < echo "$as_me: error: could not find doxygen" >&2;}
14624 <   { (exit 1); exit 1; }; }
14625 <                fi
14626 <                enable_doc=no
14627 <        else
14628 <                enable_doc=yes
14629 <                # Extract the first word of "dot", so it can be a program name with args.
14630 < set dummy dot; ac_word=$2
14631 < echo "$as_me:$LINENO: checking for $ac_word" >&5
14632 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14633 < if test "${ac_cv_path_DOT+set}" = set; then
14634 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14635 < else
14636 <  case $DOT in
14637 <  [\\/]* | ?:[\\/]*)
14638 <  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
14639 <  ;;
14640 <  *)
14641 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 < for as_dir in $PATH
14643 < do
14644 <  IFS=$as_save_IFS
14645 <  test -z "$as_dir" && as_dir=.
14646 <  for ac_exec_ext in '' $ac_executable_extensions; do
14647 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14648 <    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
14649 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14650 <    break 2
14651 <  fi
14652 < done
14653 < done
14654 <
14655 <  ;;
14656 < esac
14657 < fi
14658 < DOT=$ac_cv_path_DOT
14659 <
14660 < if test -n "$DOT"; then
14661 <  echo "$as_me:$LINENO: result: $DOT" >&5
14662 < echo "${ECHO_T}$DOT" >&6
14663 < else
14664 <  echo "$as_me:$LINENO: result: no" >&5
14665 < echo "${ECHO_T}no" >&6
14666 < fi
14667 <
14668 <        fi
14669 < fi
14670 <
14671 < if test "x$enable_doc" = xyes; then
14672 <  DOC=1
14673 < else
14674 <  DOC=0
14675 < fi
14676 <
14677 <
14678 < if test x$DOT = x; then
14679 <        if test "x$enable_dot" = xyes; then
14680 <                { { echo "$as_me:$LINENO: error: could not find dot" >&5
14681 < echo "$as_me: error: could not find dot" >&2;}
14682 <   { (exit 1); exit 1; }; }
14683 <        fi
14684 <        enable_dot=no
14685 < else
14686 <        enable_dot=yes
14687 < fi
14688 <
14689 <
14690 <
14691 <
14692 <
14693 <
14694 <
14695 <
14696 <
14697 <
14698 <
14699 <
14700 <
14701 <
14702 <
14703 <
14704 <
14705 <
14706 <
14707 <                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile scripts/filepp"
14708 <
14709 <
14710 < cat >confcache <<\_ACEOF
14711 < # This file is a shell script that caches the results of configure
14712 < # tests run on this system so they can be shared between configure
14713 < # scripts and configure runs, see configure's option --config-cache.
14714 < # It is not useful on other systems.  If it contains results you don't
14715 < # want to keep, you may remove or edit it.
14716 < #
14717 < # config.status only pays attention to the cache file if you give it
14718 < # the --recheck option to rerun configure.
14719 < #
14720 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
14721 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
14722 < # following values.
14723 <
14724 < _ACEOF
14725 <
14726 < # The following way of writing the cache mishandles newlines in values,
14727 < # but we know of no workaround that is simple, portable, and efficient.
14728 < # So, don't put newlines in cache variables' values.
14729 < # Ultrix sh set writes to stderr and can't be redirected directly,
14730 < # and sets the high bit in the cache file unless we assign to the vars.
14731 < {
14732 <  (set) 2>&1 |
14733 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14734 <    *ac_space=\ *)
14735 <      # `set' does not quote correctly, so add quotes (double-quote
14736 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
14737 <      sed -n \
14738 <        "s/'/'\\\\''/g;
14739 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14740 <      ;;
14741 <    *)
14742 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
14743 <      sed -n \
14744 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14745 <      ;;
14746 <    esac;
14747 < } |
14748 <  sed '
14749 <     t clear
14750 <     : clear
14751 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14752 <     t end
14753 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14754 <     : end' >>confcache
14755 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
14756 <  if test -w $cache_file; then
14757 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14758 <    cat confcache >$cache_file
14759 <  else
14760 <    echo "not updating unwritable cache $cache_file"
14761 <  fi
14762 < fi
14763 < rm -f confcache
14764 <
14765 < test "x$prefix" = xNONE && prefix=$ac_default_prefix
14766 < # Let make expand exec_prefix.
14767 < test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14768 <
14769 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
14770 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14771 < # trailing colons and then remove the whole line if VPATH becomes empty
14772 < # (actually we leave an empty line to preserve line numbers).
14773 < if test "x$srcdir" = x.; then
14774 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14775 < s/:*\$(srcdir):*/:/;
14776 < s/:*\${srcdir}:*/:/;
14777 < s/:*@srcdir@:*/:/;
14778 < s/^\([^=]*=[     ]*\):*/\1/;
14779 < s/:*$//;
14780 < s/^[^=]*=[       ]*$//;
14781 < }'
14782 < fi
14783 <
14784 < DEFS=-DHAVE_CONFIG_H
14785 <
14786 < ac_libobjs=
14787 < ac_ltlibobjs=
14788 < for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14789 <  # 1. Remove the extension, and $U if already installed.
14790 <  ac_i=`echo "$ac_i" |
14791 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14792 <  # 2. Add them.
14793 <  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14794 <  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14795 < done
14796 < LIBOBJS=$ac_libobjs
14797 <
14798 < LTLIBOBJS=$ac_ltlibobjs
14799 <
14800 <
14801 <
14802 < : ${CONFIG_STATUS=./config.status}
14803 < ac_clean_files_save=$ac_clean_files
14804 < ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14805 < { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14806 < echo "$as_me: creating $CONFIG_STATUS" >&6;}
14807 < cat >$CONFIG_STATUS <<_ACEOF
14808 < #! $SHELL
14809 < # Generated by $as_me.
14810 < # Run this file to recreate the current configuration.
14811 < # Compiler output produced by configure, useful for debugging
14812 < # configure, is in config.log if it exists.
14813 <
14814 < debug=false
14815 < ac_cs_recheck=false
14816 < ac_cs_silent=false
14817 < SHELL=\${CONFIG_SHELL-$SHELL}
14818 < _ACEOF
14819 <
14820 < cat >>$CONFIG_STATUS <<\_ACEOF
14821 < ## --------------------- ##
14822 < ## M4sh Initialization.  ##
14823 < ## --------------------- ##
14824 <
14825 < # Be Bourne compatible
14826 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14827 <  emulate sh
14828 <  NULLCMD=:
14829 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14830 <  # is contrary to our usage.  Disable this feature.
14831 <  alias -g '${1+"$@"}'='"$@"'
14832 < elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14833 <  set -o posix
14834 < fi
14835 < DUALCASE=1; export DUALCASE # for MKS sh
14836 <
14837 < # Support unset when possible.
14838 < if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14839 <  as_unset=unset
14840 < else
14841 <  as_unset=false
14842 < fi
14843 <
14844 <
14845 < # Work around bugs in pre-3.0 UWIN ksh.
14846 < $as_unset ENV MAIL MAILPATH
14847 < PS1='$ '
14848 < PS2='> '
14849 < PS4='+ '
14850 <
14851 < # NLS nuisances.
14852 < for as_var in \
14853 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14854 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14855 <  LC_TELEPHONE LC_TIME
14856 < do
14857 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14858 <    eval $as_var=C; export $as_var
14859 <  else
14860 <    $as_unset $as_var
14861 <  fi
14862 < done
14863 <
14864 < # Required to use basename.
14865 < if expr a : '\(a\)' >/dev/null 2>&1; then
14866 <  as_expr=expr
14867 < else
14868 <  as_expr=false
14869 < fi
14870 <
14871 < if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14872 <  as_basename=basename
14873 < else
14874 <  as_basename=false
14875 < fi
14876 <
14877 <
14878 < # Name of the executable.
14879 < as_me=`$as_basename "$0" ||
14880 < $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14881 <         X"$0" : 'X\(//\)$' \| \
14882 <         X"$0" : 'X\(/\)$' \| \
14883 <         .     : '\(.\)' 2>/dev/null ||
14884 < echo X/"$0" |
14885 <    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14886 <          /^X\/\(\/\/\)$/{ s//\1/; q; }
14887 <          /^X\/\(\/\).*/{ s//\1/; q; }
14888 <          s/.*/./; q'`
14889 <
14890 <
14891 < # PATH needs CR, and LINENO needs CR and PATH.
14892 < # Avoid depending upon Character Ranges.
14893 < as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14894 < as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14895 < as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14896 < as_cr_digits='0123456789'
14897 < as_cr_alnum=$as_cr_Letters$as_cr_digits
14898 <
14899 < # The user is always right.
14900 < if test "${PATH_SEPARATOR+set}" != set; then
14901 <  echo "#! /bin/sh" >conf$$.sh
14902 <  echo  "exit 0"   >>conf$$.sh
14903 <  chmod +x conf$$.sh
14904 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14905 <    PATH_SEPARATOR=';'
14906 <  else
14907 <    PATH_SEPARATOR=:
14908 <  fi
14909 <  rm -f conf$$.sh
14910 < fi
14911 <
14912 <
14913 <  as_lineno_1=$LINENO
14914 <  as_lineno_2=$LINENO
14915 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14916 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
14917 <  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14918 <  # Find who we are.  Look in the path if we contain no path at all
14919 <  # relative or not.
14920 <  case $0 in
14921 <    *[\\/]* ) as_myself=$0 ;;
14922 <    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923 < for as_dir in $PATH
14924 < do
14925 <  IFS=$as_save_IFS
14926 <  test -z "$as_dir" && as_dir=.
14927 <  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14928 < done
14929 <
14930 <       ;;
14931 <  esac
14932 <  # We did not find ourselves, most probably we were run as `sh COMMAND'
14933 <  # in which case we are not to be found in the path.
14934 <  if test "x$as_myself" = x; then
14935 <    as_myself=$0
14936 <  fi
14937 <  if test ! -f "$as_myself"; then
14938 <    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14939 < echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14940 <   { (exit 1); exit 1; }; }
14941 <  fi
14942 <  case $CONFIG_SHELL in
14943 <  '')
14944 <    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945 < for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14946 < do
14947 <  IFS=$as_save_IFS
14948 <  test -z "$as_dir" && as_dir=.
14949 <  for as_base in sh bash ksh sh5; do
14950 <         case $as_dir in
14951 <         /*)
14952 <           if ("$as_dir/$as_base" -c '
14953 <  as_lineno_1=$LINENO
14954 <  as_lineno_2=$LINENO
14955 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14956 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
14957 <  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14958 <             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14959 <             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14960 <             CONFIG_SHELL=$as_dir/$as_base
14961 <             export CONFIG_SHELL
14962 <             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14963 <           fi;;
14964 <         esac
14965 <       done
14966 < done
14967 < ;;
14968 <  esac
14969 <
14970 <  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14971 <  # uniformly replaced by the line number.  The first 'sed' inserts a
14972 <  # line-number line before each line; the second 'sed' does the real
14973 <  # work.  The second script uses 'N' to pair each line-number line
14974 <  # with the numbered line, and appends trailing '-' during
14975 <  # substitution so that $LINENO is not a special case at line end.
14976 <  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14977 <  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14978 <  sed '=' <$as_myself |
14979 <    sed '
14980 <      N
14981 <      s,$,-,
14982 <      : loop
14983 <      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14984 <      t loop
14985 <      s,-$,,
14986 <      s,^['$as_cr_digits']*\n,,
14987 <    ' >$as_me.lineno &&
14988 <  chmod +x $as_me.lineno ||
14989 <    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14990 < echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14991 <   { (exit 1); exit 1; }; }
14992 <
14993 <  # Don't try to exec as it changes $[0], causing all sort of problems
14994 <  # (the dirname of $[0] is not the place where we might find the
14995 <  # original and so on.  Autoconf is especially sensible to this).
14996 <  . ./$as_me.lineno
14997 <  # Exit status is that of the last command.
14998 <  exit
14999 < }
15000 <
15001 <
15002 < case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15003 <  *c*,-n*) ECHO_N= ECHO_C='
15004 < ' ECHO_T='      ' ;;
15005 <  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15006 <  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15007 < esac
15008 <
15009 < if expr a : '\(a\)' >/dev/null 2>&1; then
15010 <  as_expr=expr
15011 < else
15012 <  as_expr=false
15013 < fi
15014 <
15015 < rm -f conf$$ conf$$.exe conf$$.file
15016 < echo >conf$$.file
15017 < if ln -s conf$$.file conf$$ 2>/dev/null; then
15018 <  # We could just check for DJGPP; but this test a) works b) is more generic
15019 <  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15020 <  if test -f conf$$.exe; then
15021 <    # Don't use ln at all; we don't have any links
15022 <    as_ln_s='cp -p'
15023 <  else
15024 <    as_ln_s='ln -s'
15025 <  fi
15026 < elif ln conf$$.file conf$$ 2>/dev/null; then
15027 <  as_ln_s=ln
15028 < else
15029 <  as_ln_s='cp -p'
15030 < fi
15031 < rm -f conf$$ conf$$.exe conf$$.file
15032 <
15033 < if mkdir -p . 2>/dev/null; then
15034 <  as_mkdir_p=:
15035 < else
15036 <  test -d ./-p && rmdir ./-p
15037 <  as_mkdir_p=false
15038 < fi
15039 <
15040 < as_executable_p="test -f"
15041 <
15042 < # Sed expression to map a string onto a valid CPP name.
15043 < as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15044 <
15045 < # Sed expression to map a string onto a valid variable name.
15046 < as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15047 <
15048 <
15049 < # IFS
15050 < # We need space, tab and new line, in precisely that order.
15051 < as_nl='
15052 < '
15053 < IFS="   $as_nl"
15054 <
15055 < # CDPATH.
15056 < $as_unset CDPATH
15057 <
15058 < exec 6>&1
15059 <
15060 < # Open the log real soon, to keep \$[0] and so on meaningful, and to
15061 < # report actual input values of CONFIG_FILES etc. instead of their
15062 < # values after options handling.  Logging --version etc. is OK.
15063 < exec 5>>config.log
15064 < {
15065 <  echo
15066 <  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15067 < ## Running $as_me. ##
15068 < _ASBOX
15069 < } >&5
15070 < cat >&5 <<_CSEOF
15071 <
15072 < This file was extended by OOPSE $as_me 4.0, which was
15073 < generated by GNU Autoconf 2.59.  Invocation command line was
15074 <
15075 <  CONFIG_FILES    = $CONFIG_FILES
15076 <  CONFIG_HEADERS  = $CONFIG_HEADERS
15077 <  CONFIG_LINKS    = $CONFIG_LINKS
15078 <  CONFIG_COMMANDS = $CONFIG_COMMANDS
15079 <  $ $0 $@
15080 <
15081 < _CSEOF
15082 < echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15083 < echo >&5
15084 < _ACEOF
15085 <
15086 < # Files that config.status was made for.
15087 < if test -n "$ac_config_files"; then
15088 <  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15089 < fi
15090 <
15091 < if test -n "$ac_config_headers"; then
15092 <  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15093 < fi
15094 <
15095 < if test -n "$ac_config_links"; then
15096 <  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15097 < fi
15098 <
15099 < if test -n "$ac_config_commands"; then
15100 <  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15101 < fi
15102 <
15103 < cat >>$CONFIG_STATUS <<\_ACEOF
15104 <
15105 < ac_cs_usage="\
15106 < \`$as_me' instantiates files from templates according to the
15107 < current configuration.
15108 <
15109 < Usage: $0 [OPTIONS] [FILE]...
15110 <
15111 <  -h, --help       print this help, then exit
15112 <  -V, --version    print version number, then exit
15113 <  -q, --quiet      do not print progress messages
15114 <  -d, --debug      don't remove temporary files
15115 <      --recheck    update $as_me by reconfiguring in the same conditions
15116 <  --file=FILE[:TEMPLATE]
15117 <                   instantiate the configuration file FILE
15118 <  --header=FILE[:TEMPLATE]
15119 <                   instantiate the configuration header FILE
15120 <
15121 < Configuration files:
15122 < $config_files
15123 <
15124 < Configuration headers:
15125 < $config_headers
15126 <
15127 < Configuration links:
15128 < $config_links
15129 <
15130 < Report bugs to <bug-autoconf@gnu.org>."
15131 < _ACEOF
15132 <
15133 < cat >>$CONFIG_STATUS <<_ACEOF
15134 < ac_cs_version="\\
15135 < OOPSE config.status 4.0
15136 < configured by $0, generated by GNU Autoconf 2.59,
15137 <  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15138 <
15139 < Copyright (C) 2003 Free Software Foundation, Inc.
15140 < This config.status script is free software; the Free Software Foundation
15141 < gives unlimited permission to copy, distribute and modify it."
15142 < srcdir=$srcdir
15143 < INSTALL="$INSTALL"
15144 < _ACEOF
15145 <
15146 < cat >>$CONFIG_STATUS <<\_ACEOF
15147 < # If no file are specified by the user, then we need to provide default
15148 < # value.  By we need to know if files were specified by the user.
15149 < ac_need_defaults=:
15150 < while test $# != 0
15151 < do
15152 <  case $1 in
15153 <  --*=*)
15154 <    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15155 <    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15156 <    ac_shift=:
15157 <    ;;
15158 <  -*)
15159 <    ac_option=$1
15160 <    ac_optarg=$2
15161 <    ac_shift=shift
15162 <    ;;
15163 <  *) # This is not an option, so the user has probably given explicit
15164 <     # arguments.
15165 <     ac_option=$1
15166 <     ac_need_defaults=false;;
15167 <  esac
15168 <
15169 <  case $ac_option in
15170 <  # Handling of the options.
15171 < _ACEOF
15172 < cat >>$CONFIG_STATUS <<\_ACEOF
15173 <  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15174 <    ac_cs_recheck=: ;;
15175 <  --version | --vers* | -V )
15176 <    echo "$ac_cs_version"; exit 0 ;;
15177 <  --he | --h)
15178 <    # Conflict between --help and --header
15179 <    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15180 < Try \`$0 --help' for more information." >&5
15181 < echo "$as_me: error: ambiguous option: $1
15182 < Try \`$0 --help' for more information." >&2;}
15183 <   { (exit 1); exit 1; }; };;
15184 <  --help | --hel | -h )
15185 <    echo "$ac_cs_usage"; exit 0 ;;
15186 <  --debug | --d* | -d )
15187 <    debug=: ;;
15188 <  --file | --fil | --fi | --f )
15189 <    $ac_shift
15190 <    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15191 <    ac_need_defaults=false;;
15192 <  --header | --heade | --head | --hea )
15193 <    $ac_shift
15194 <    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15195 <    ac_need_defaults=false;;
15196 <  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15197 <  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15198 <    ac_cs_silent=: ;;
15199 <
15200 <  # This is an error.
15201 <  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15202 < Try \`$0 --help' for more information." >&5
15203 < echo "$as_me: error: unrecognized option: $1
15204 < Try \`$0 --help' for more information." >&2;}
15205 <   { (exit 1); exit 1; }; } ;;
15206 <
15207 <  *) ac_config_targets="$ac_config_targets $1" ;;
15208 <
15209 <  esac
15210 <  shift
15211 < done
15212 <
15213 < ac_configure_extra_args=
15214 <
15215 < if $ac_cs_silent; then
15216 <  exec 6>/dev/null
15217 <  ac_configure_extra_args="$ac_configure_extra_args --silent"
15218 < fi
15219 <
15220 < _ACEOF
15221 < cat >>$CONFIG_STATUS <<_ACEOF
15222 < if \$ac_cs_recheck; then
15223 <  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15224 <  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15225 < fi
15226 <
15227 < _ACEOF
15228 <
15229 <
15230 <
15231 <
15232 <
15233 < cat >>$CONFIG_STATUS <<\_ACEOF
15234 < for ac_config_target in $ac_config_targets
15235 < do
15236 <  case "$ac_config_target" in
15237 <  # Handling of arguments.
15238 <  "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
15239 <  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
15240 <  "src/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
15241 <  "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
15242 <  "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
15243 <  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15244 <  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15245 < echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15246 <   { (exit 1); exit 1; }; };;
15247 <  esac
15248 < done
15249 <
15250 < # If the user did not use the arguments to specify the items to instantiate,
15251 < # then the envvar interface is used.  Set only those that are not.
15252 < # We use the long form for the default assignment because of an extremely
15253 < # bizarre bug on SunOS 4.1.3.
15254 < if $ac_need_defaults; then
15255 <  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15256 <  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15257 <  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15258 < fi
15259 <
15260 < # Have a temporary directory for convenience.  Make it in the build tree
15261 < # simply because there is no reason to put it here, and in addition,
15262 < # creating and moving files from /tmp can sometimes cause problems.
15263 < # Create a temporary directory, and hook for its removal unless debugging.
15264 < $debug ||
15265 < {
15266 <  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15267 <  trap '{ (exit 1); exit 1; }' 1 2 13 15
15268 < }
15269 <
15270 < # Create a (secure) tmp directory for tmp files.
15271 <
15272 < {
15273 <  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15274 <  test -n "$tmp" && test -d "$tmp"
15275 < }  ||
15276 < {
15277 <  tmp=./confstat$$-$RANDOM
15278 <  (umask 077 && mkdir $tmp)
15279 < } ||
15280 < {
15281 <   echo "$me: cannot create a temporary directory in ." >&2
15282 <   { (exit 1); exit 1; }
15283 < }
15284 <
15285 < _ACEOF
15286 <
15287 < cat >>$CONFIG_STATUS <<_ACEOF
15288 <
15289 < #
15290 < # CONFIG_FILES section.
15291 < #
15292 <
15293 < # No need to generate the scripts if there are no CONFIG_FILES.
15294 < # This happens for instance when ./config.status config.h
15295 < if test -n "\$CONFIG_FILES"; then
15296 <  # Protect against being on the right side of a sed subst in config.status.
15297 <  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15298 <   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15299 < s,@SHELL@,$SHELL,;t t
15300 < s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15301 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15302 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15303 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15304 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15305 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15306 < s,@exec_prefix@,$exec_prefix,;t t
15307 < s,@prefix@,$prefix,;t t
15308 < s,@program_transform_name@,$program_transform_name,;t t
15309 < s,@bindir@,$bindir,;t t
15310 < s,@sbindir@,$sbindir,;t t
15311 < s,@libexecdir@,$libexecdir,;t t
15312 < s,@datadir@,$datadir,;t t
15313 < s,@sysconfdir@,$sysconfdir,;t t
15314 < s,@sharedstatedir@,$sharedstatedir,;t t
15315 < s,@localstatedir@,$localstatedir,;t t
15316 < s,@libdir@,$libdir,;t t
15317 < s,@includedir@,$includedir,;t t
15318 < s,@oldincludedir@,$oldincludedir,;t t
15319 < s,@infodir@,$infodir,;t t
15320 < s,@mandir@,$mandir,;t t
15321 < s,@build_alias@,$build_alias,;t t
15322 < s,@host_alias@,$host_alias,;t t
15323 < s,@target_alias@,$target_alias,;t t
15324 < s,@DEFS@,$DEFS,;t t
15325 < s,@ECHO_C@,$ECHO_C,;t t
15326 < s,@ECHO_N@,$ECHO_N,;t t
15327 < s,@ECHO_T@,$ECHO_T,;t t
15328 < s,@LIBS@,$LIBS,;t t
15329 < s,@build@,$build,;t t
15330 < s,@build_cpu@,$build_cpu,;t t
15331 < s,@build_vendor@,$build_vendor,;t t
15332 < s,@build_os@,$build_os,;t t
15333 < s,@host@,$host,;t t
15334 < s,@host_cpu@,$host_cpu,;t t
15335 < s,@host_vendor@,$host_vendor,;t t
15336 < s,@host_os@,$host_os,;t t
15337 < s,@PROGNAME@,$PROGNAME,;t t
15338 < s,@debug@,$debug,;t t
15339 < s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
15340 < s,@CXX@,$CXX,;t t
15341 < s,@CXXFLAGS@,$CXXFLAGS,;t t
15342 < s,@LDFLAGS@,$LDFLAGS,;t t
15343 < s,@CPPFLAGS@,$CPPFLAGS,;t t
15344 < s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15345 < s,@EXEEXT@,$EXEEXT,;t t
15346 < s,@OBJEXT@,$OBJEXT,;t t
15347 < s,@CC@,$CC,;t t
15348 < s,@CFLAGS@,$CFLAGS,;t t
15349 < s,@ac_ct_CC@,$ac_ct_CC,;t t
15350 < s,@FC@,$FC,;t t
15351 < s,@FCFLAGS@,$FCFLAGS,;t t
15352 < s,@ac_ct_FC@,$ac_ct_FC,;t t
15353 < s,@CPP@,$CPP,;t t
15354 < s,@EGREP@,$EGREP,;t t
15355 < s,@LN_S@,$LN_S,;t t
15356 < s,@SET_MAKE@,$SET_MAKE,;t t
15357 < s,@RANLIB@,$RANLIB,;t t
15358 < s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15359 < s,@PERLINTERP@,$PERLINTERP,;t t
15360 < s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
15361 < s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15362 < s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15363 < s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15364 < s,@AR@,$AR,;t t
15365 < s,@PS@,$PS,;t t
15366 < s,@FCFLAGS_F90@,$FCFLAGS_F90,;t t
15367 < s,@FCFLAGS_SRCEXT@,$FCFLAGS_SRCEXT,;t t
15368 < s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
15369 < s,@FCLIBS@,$FCLIBS,;t t
15370 < s,@FC_FUNC@,$FC_FUNC,;t t
15371 < s,@FC_FUNC_@,$FC_FUNC_,;t t
15372 < s,@MOD@,$MOD,;t t
15373 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
15374 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
15375 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
15376 < s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
15377 < s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t
15378 < s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t
15379 < s,@ZLIB@,$ZLIB,;t t
15380 < s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
15381 < s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
15382 < s,@FFTW_LIBS@,$FFTW_LIBS,;t t
15383 < s,@QHULL_INC_DIR@,$QHULL_INC_DIR,;t t
15384 < s,@QHULL_LIB_DIR@,$QHULL_LIB_DIR,;t t
15385 < s,@QHULL@,$QHULL,;t t
15386 < s,@LIBOBJS@,$LIBOBJS,;t t
15387 < s,@POW_LIB@,$POW_LIB,;t t
15388 < s,@CXXCPP@,$CXXCPP,;t t
15389 < s,@__func__@,$__func__,;t t
15390 < s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
15391 < s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
15392 < s,@MPI_F90_INC@,$MPI_F90_INC,;t t
15393 < s,@MPI_LIB@,$MPI_LIB,;t t
15394 < s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
15395 < s,@USE_MPI@,$USE_MPI,;t t
15396 < s,@USE_CGAL@,$USE_CGAL,;t t
15397 < s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
15398 < s,@CGAL_LDFLAGS@,$CGAL_LDFLAGS,;t t
15399 < s,@CGAL_CPPFLAGS@,$CGAL_CPPFLAGS,;t t
15400 < s,@CGAL_LIBS@,$CGAL_LIBS,;t t
15401 < s,@DOXYGEN@,$DOXYGEN,;t t
15402 < s,@DOT@,$DOT,;t t
15403 < s,@DOC@,$DOC,;t t
15404 < s,@enable_dot@,$enable_dot,;t t
15405 < s,@enable_html_docs@,$enable_html_docs,;t t
15406 < s,@enable_latex_docs@,$enable_latex_docs,;t t
15407 < s,@BATEXT@,$BATEXT,;t t
15408 < s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15409 < s,@OOPSE@,$OOPSE,;t t
15410 < s,@OOPSE_HOME@,$OOPSE_HOME,;t t
15411 < s,@SUBDIRS@,$SUBDIRS,;t t
15412 < s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15413 < CEOF
15414 <
15415 < _ACEOF
15416 <
15417 <  cat >>$CONFIG_STATUS <<\_ACEOF
15418 <  # Split the substitutions into bite-sized pieces for seds with
15419 <  # small command number limits, like on Digital OSF/1 and HP-UX.
15420 <  ac_max_sed_lines=48
15421 <  ac_sed_frag=1 # Number of current file.
15422 <  ac_beg=1 # First line for current file.
15423 <  ac_end=$ac_max_sed_lines # Line after last line for current file.
15424 <  ac_more_lines=:
15425 <  ac_sed_cmds=
15426 <  while $ac_more_lines; do
15427 <    if test $ac_beg -gt 1; then
15428 <      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15429 <    else
15430 <      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15431 <    fi
15432 <    if test ! -s $tmp/subs.frag; then
15433 <      ac_more_lines=false
15434 <    else
15435 <      # The purpose of the label and of the branching condition is to
15436 <      # speed up the sed processing (if there are no `@' at all, there
15437 <      # is no need to browse any of the substitutions).
15438 <      # These are the two extra sed commands mentioned above.
15439 <      (echo ':t
15440 <  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15441 <      if test -z "$ac_sed_cmds"; then
15442 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15443 <      else
15444 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15445 <      fi
15446 <      ac_sed_frag=`expr $ac_sed_frag + 1`
15447 <      ac_beg=$ac_end
15448 <      ac_end=`expr $ac_end + $ac_max_sed_lines`
15449 <    fi
15450 <  done
15451 <  if test -z "$ac_sed_cmds"; then
15452 <    ac_sed_cmds=cat
15453 <  fi
15454 < fi # test -n "$CONFIG_FILES"
15455 <
15456 < _ACEOF
15457 < cat >>$CONFIG_STATUS <<\_ACEOF
15458 < for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15459 <  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15460 <  case $ac_file in
15461 <  - | *:- | *:-:* ) # input from stdin
15462 <        cat >$tmp/stdin
15463 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15464 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15465 <  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15466 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15467 <  * )   ac_file_in=$ac_file.in ;;
15468 <  esac
15469 <
15470 <  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15471 <  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15472 < $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15473 <         X"$ac_file" : 'X\(//\)[^/]' \| \
15474 <         X"$ac_file" : 'X\(//\)$' \| \
15475 <         X"$ac_file" : 'X\(/\)' \| \
15476 <         .     : '\(.\)' 2>/dev/null ||
15477 < echo X"$ac_file" |
15478 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15479 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15480 <          /^X\(\/\/\)$/{ s//\1/; q; }
15481 <          /^X\(\/\).*/{ s//\1/; q; }
15482 <          s/.*/./; q'`
15483 <  { if $as_mkdir_p; then
15484 <    mkdir -p "$ac_dir"
15485 <  else
15486 <    as_dir="$ac_dir"
15487 <    as_dirs=
15488 <    while test ! -d "$as_dir"; do
15489 <      as_dirs="$as_dir $as_dirs"
15490 <      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15491 < $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15492 <         X"$as_dir" : 'X\(//\)[^/]' \| \
15493 <         X"$as_dir" : 'X\(//\)$' \| \
15494 <         X"$as_dir" : 'X\(/\)' \| \
15495 <         .     : '\(.\)' 2>/dev/null ||
15496 < echo X"$as_dir" |
15497 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15498 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15499 <          /^X\(\/\/\)$/{ s//\1/; q; }
15500 <          /^X\(\/\).*/{ s//\1/; q; }
15501 <          s/.*/./; q'`
15502 <    done
15503 <    test ! -n "$as_dirs" || mkdir $as_dirs
15504 <  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15505 < echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15506 <   { (exit 1); exit 1; }; }; }
15507 <
15508 <  ac_builddir=.
15509 <
15510 < if test "$ac_dir" != .; then
15511 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15512 <  # A "../" for each directory in $ac_dir_suffix.
15513 <  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15514 < else
15515 <  ac_dir_suffix= ac_top_builddir=
15516 < fi
15517 <
15518 < case $srcdir in
15519 <  .)  # No --srcdir option.  We are building in place.
15520 <    ac_srcdir=.
15521 <    if test -z "$ac_top_builddir"; then
15522 <       ac_top_srcdir=.
15523 <    else
15524 <       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15525 <    fi ;;
15526 <  [\\/]* | ?:[\\/]* )  # Absolute path.
15527 <    ac_srcdir=$srcdir$ac_dir_suffix;
15528 <    ac_top_srcdir=$srcdir ;;
15529 <  *) # Relative path.
15530 <    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15531 <    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15532 < esac
15533 <
15534 < # Do not use `cd foo && pwd` to compute absolute paths, because
15535 < # the directories may not exist.
15536 < case `pwd` in
15537 < .) ac_abs_builddir="$ac_dir";;
15538 < *)
15539 <  case "$ac_dir" in
15540 <  .) ac_abs_builddir=`pwd`;;
15541 <  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15542 <  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15543 <  esac;;
15544 < esac
15545 < case $ac_abs_builddir in
15546 < .) ac_abs_top_builddir=${ac_top_builddir}.;;
15547 < *)
15548 <  case ${ac_top_builddir}. in
15549 <  .) ac_abs_top_builddir=$ac_abs_builddir;;
15550 <  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15551 <  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15552 <  esac;;
15553 < esac
15554 < case $ac_abs_builddir in
15555 < .) ac_abs_srcdir=$ac_srcdir;;
15556 < *)
15557 <  case $ac_srcdir in
15558 <  .) ac_abs_srcdir=$ac_abs_builddir;;
15559 <  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15560 <  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15561 <  esac;;
15562 < esac
15563 < case $ac_abs_builddir in
15564 < .) ac_abs_top_srcdir=$ac_top_srcdir;;
15565 < *)
15566 <  case $ac_top_srcdir in
15567 <  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15568 <  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15569 <  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15570 <  esac;;
15571 < esac
15572 <
15573 <
15574 <  case $INSTALL in
15575 <  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15576 <  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15577 <  esac
15578 <
15579 <  if test x"$ac_file" != x-; then
15580 <    { echo "$as_me:$LINENO: creating $ac_file" >&5
15581 < echo "$as_me: creating $ac_file" >&6;}
15582 <    rm -f "$ac_file"
15583 <  fi
15584 <  # Let's still pretend it is `configure' which instantiates (i.e., don't
15585 <  # use $as_me), people would be surprised to read:
15586 <  #    /* config.h.  Generated by config.status.  */
15587 <  if test x"$ac_file" = x-; then
15588 <    configure_input=
15589 <  else
15590 <    configure_input="$ac_file.  "
15591 <  fi
15592 <  configure_input=$configure_input"Generated from `echo $ac_file_in |
15593 <                                     sed 's,.*/,,'` by configure."
15594 <
15595 <  # First look for the input files in the build tree, otherwise in the
15596 <  # src tree.
15597 <  ac_file_inputs=`IFS=:
15598 <    for f in $ac_file_in; do
15599 <      case $f in
15600 <      -) echo $tmp/stdin ;;
15601 <      [\\/$]*)
15602 <         # Absolute (can't be DOS-style, as IFS=:)
15603 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15604 < echo "$as_me: error: cannot find input file: $f" >&2;}
15605 <   { (exit 1); exit 1; }; }
15606 <         echo "$f";;
15607 <      *) # Relative
15608 <         if test -f "$f"; then
15609 <           # Build tree
15610 <           echo "$f"
15611 <         elif test -f "$srcdir/$f"; then
15612 <           # Source tree
15613 <           echo "$srcdir/$f"
15614 <         else
15615 <           # /dev/null tree
15616 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15617 < echo "$as_me: error: cannot find input file: $f" >&2;}
15618 <   { (exit 1); exit 1; }; }
15619 <         fi;;
15620 <      esac
15621 <    done` || { (exit 1); exit 1; }
15622 < _ACEOF
15623 < cat >>$CONFIG_STATUS <<_ACEOF
15624 <  sed "$ac_vpsub
15625 < $extrasub
15626 < _ACEOF
15627 < cat >>$CONFIG_STATUS <<\_ACEOF
15628 < :t
15629 < /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15630 < s,@configure_input@,$configure_input,;t t
15631 < s,@srcdir@,$ac_srcdir,;t t
15632 < s,@abs_srcdir@,$ac_abs_srcdir,;t t
15633 < s,@top_srcdir@,$ac_top_srcdir,;t t
15634 < s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15635 < s,@builddir@,$ac_builddir,;t t
15636 < s,@abs_builddir@,$ac_abs_builddir,;t t
15637 < s,@top_builddir@,$ac_top_builddir,;t t
15638 < s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15639 < s,@INSTALL@,$ac_INSTALL,;t t
15640 < " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15641 <  rm -f $tmp/stdin
15642 <  if test x"$ac_file" != x-; then
15643 <    mv $tmp/out $ac_file
15644 <  else
15645 <    cat $tmp/out
15646 <    rm -f $tmp/out
15647 <  fi
15648 <
15649 <  # Run the commands associated with the file.
15650 <  case $ac_file in
15651 <    make/Makefile ) chmod 0755 scripts/* ;;
15652 <    src/utils/Makefile ) chmod 0755 scripts/* ;;
15653 <    src/math/Makefile ) chmod 0755 scripts/* ;;
15654 <    scripts/filepp ) chmod 0755 scripts/* ;;
15655 <  esac
15656 < done
15657 < _ACEOF
15658 < cat >>$CONFIG_STATUS <<\_ACEOF
15659 <
15660 < #
15661 < # CONFIG_HEADER section.
15662 < #
15663 <
15664 < # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15665 < # NAME is the cpp macro being defined and VALUE is the value it is being given.
15666 < #
15667 < # ac_d sets the value in "#define NAME VALUE" lines.
15668 < ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15669 < ac_dB='[         ].*$,\1#\2'
15670 < ac_dC=' '
15671 < ac_dD=',;t'
15672 < # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15673 < ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15674 < ac_uB='$,\1#\2define\3'
15675 < ac_uC=' '
15676 < ac_uD=',;t'
15677 <
15678 < for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15679 <  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15680 <  case $ac_file in
15681 <  - | *:- | *:-:* ) # input from stdin
15682 <        cat >$tmp/stdin
15683 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15684 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15685 <  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15686 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15687 <  * )   ac_file_in=$ac_file.in ;;
15688 <  esac
15689 <
15690 <  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15691 < echo "$as_me: creating $ac_file" >&6;}
15692 <
15693 <  # First look for the input files in the build tree, otherwise in the
15694 <  # src tree.
15695 <  ac_file_inputs=`IFS=:
15696 <    for f in $ac_file_in; do
15697 <      case $f in
15698 <      -) echo $tmp/stdin ;;
15699 <      [\\/$]*)
15700 <         # Absolute (can't be DOS-style, as IFS=:)
15701 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15702 < echo "$as_me: error: cannot find input file: $f" >&2;}
15703 <   { (exit 1); exit 1; }; }
15704 <         # Do quote $f, to prevent DOS paths from being IFS'd.
15705 <         echo "$f";;
15706 <      *) # Relative
15707 <         if test -f "$f"; then
15708 <           # Build tree
15709 <           echo "$f"
15710 <         elif test -f "$srcdir/$f"; then
15711 <           # Source tree
15712 <           echo "$srcdir/$f"
15713 <         else
15714 <           # /dev/null tree
15715 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15716 < echo "$as_me: error: cannot find input file: $f" >&2;}
15717 <   { (exit 1); exit 1; }; }
15718 <         fi;;
15719 <      esac
15720 <    done` || { (exit 1); exit 1; }
15721 <  # Remove the trailing spaces.
15722 <  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15723 <
15724 < _ACEOF
15725 <
15726 < # Transform confdefs.h into two sed scripts, `conftest.defines' and
15727 < # `conftest.undefs', that substitutes the proper values into
15728 < # config.h.in to produce config.h.  The first handles `#define'
15729 < # templates, and the second `#undef' templates.
15730 < # And first: Protect against being on the right side of a sed subst in
15731 < # config.status.  Protect against being in an unquoted here document
15732 < # in config.status.
15733 < rm -f conftest.defines conftest.undefs
15734 < # Using a here document instead of a string reduces the quoting nightmare.
15735 < # Putting comments in sed scripts is not portable.
15736 < #
15737 < # `end' is used to avoid that the second main sed command (meant for
15738 < # 0-ary CPP macros) applies to n-ary macro definitions.
15739 < # See the Autoconf documentation for `clear'.
15740 < cat >confdef2sed.sed <<\_ACEOF
15741 < s/[\\&,]/\\&/g
15742 < s,[\\$`],\\&,g
15743 < t clear
15744 < : clear
15745 < s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15746 < t end
15747 < s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15748 < : end
15749 < _ACEOF
15750 < # If some macros were called several times there might be several times
15751 < # the same #defines, which is useless.  Nevertheless, we may not want to
15752 < # sort them, since we want the *last* AC-DEFINE to be honored.
15753 < uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15754 < sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15755 < rm -f confdef2sed.sed
15756 <
15757 < # This sed command replaces #undef with comments.  This is necessary, for
15758 < # example, in the case of _POSIX_SOURCE, which is predefined and required
15759 < # on some systems where configure will not decide to define it.
15760 < cat >>conftest.undefs <<\_ACEOF
15761 < s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15762 < _ACEOF
15763 <
15764 < # Break up conftest.defines because some shells have a limit on the size
15765 < # of here documents, and old seds have small limits too (100 cmds).
15766 < echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15767 < echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15768 < echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15769 < echo '  :' >>$CONFIG_STATUS
15770 < rm -f conftest.tail
15771 < while grep . conftest.defines >/dev/null
15772 < do
15773 <  # Write a limited-size here document to $tmp/defines.sed.
15774 <  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15775 <  # Speed up: don't consider the non `#define' lines.
15776 <  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15777 <  # Work around the forget-to-reset-the-flag bug.
15778 <  echo 't clr' >>$CONFIG_STATUS
15779 <  echo ': clr' >>$CONFIG_STATUS
15780 <  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15781 <  echo 'CEOF
15782 <  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15783 <  rm -f $tmp/in
15784 <  mv $tmp/out $tmp/in
15785 < ' >>$CONFIG_STATUS
15786 <  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15787 <  rm -f conftest.defines
15788 <  mv conftest.tail conftest.defines
15789 < done
15790 < rm -f conftest.defines
15791 < echo '  fi # grep' >>$CONFIG_STATUS
15792 < echo >>$CONFIG_STATUS
15793 <
15794 < # Break up conftest.undefs because some shells have a limit on the size
15795 < # of here documents, and old seds have small limits too (100 cmds).
15796 < echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15797 < rm -f conftest.tail
15798 < while grep . conftest.undefs >/dev/null
15799 < do
15800 <  # Write a limited-size here document to $tmp/undefs.sed.
15801 <  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15802 <  # Speed up: don't consider the non `#undef'
15803 <  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15804 <  # Work around the forget-to-reset-the-flag bug.
15805 <  echo 't clr' >>$CONFIG_STATUS
15806 <  echo ': clr' >>$CONFIG_STATUS
15807 <  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15808 <  echo 'CEOF
15809 <  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15810 <  rm -f $tmp/in
15811 <  mv $tmp/out $tmp/in
15812 < ' >>$CONFIG_STATUS
15813 <  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15814 <  rm -f conftest.undefs
15815 <  mv conftest.tail conftest.undefs
15816 < done
15817 < rm -f conftest.undefs
15818 <
15819 < cat >>$CONFIG_STATUS <<\_ACEOF
15820 <  # Let's still pretend it is `configure' which instantiates (i.e., don't
15821 <  # use $as_me), people would be surprised to read:
15822 <  #    /* config.h.  Generated by config.status.  */
15823 <  if test x"$ac_file" = x-; then
15824 <    echo "/* Generated by configure.  */" >$tmp/config.h
15825 <  else
15826 <    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15827 <  fi
15828 <  cat $tmp/in >>$tmp/config.h
15829 <  rm -f $tmp/in
15830 <  if test x"$ac_file" != x-; then
15831 <    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15832 <      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15833 < echo "$as_me: $ac_file is unchanged" >&6;}
15834 <    else
15835 <      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15836 < $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15837 <         X"$ac_file" : 'X\(//\)[^/]' \| \
15838 <         X"$ac_file" : 'X\(//\)$' \| \
15839 <         X"$ac_file" : 'X\(/\)' \| \
15840 <         .     : '\(.\)' 2>/dev/null ||
15841 < echo X"$ac_file" |
15842 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15843 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15844 <          /^X\(\/\/\)$/{ s//\1/; q; }
15845 <          /^X\(\/\).*/{ s//\1/; q; }
15846 <          s/.*/./; q'`
15847 <      { if $as_mkdir_p; then
15848 <    mkdir -p "$ac_dir"
15849 <  else
15850 <    as_dir="$ac_dir"
15851 <    as_dirs=
15852 <    while test ! -d "$as_dir"; do
15853 <      as_dirs="$as_dir $as_dirs"
15854 <      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15855 < $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15856 <         X"$as_dir" : 'X\(//\)[^/]' \| \
15857 <         X"$as_dir" : 'X\(//\)$' \| \
15858 <         X"$as_dir" : 'X\(/\)' \| \
15859 <         .     : '\(.\)' 2>/dev/null ||
15860 < echo X"$as_dir" |
15861 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15862 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15863 <          /^X\(\/\/\)$/{ s//\1/; q; }
15864 <          /^X\(\/\).*/{ s//\1/; q; }
15865 <          s/.*/./; q'`
15866 <    done
15867 <    test ! -n "$as_dirs" || mkdir $as_dirs
15868 <  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15869 < echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15870 <   { (exit 1); exit 1; }; }; }
15871 <
15872 <      rm -f $ac_file
15873 <      mv $tmp/config.h $ac_file
15874 <    fi
15875 <  else
15876 <    cat $tmp/config.h
15877 <    rm -f $tmp/config.h
15878 <  fi
15879 < done
15880 < _ACEOF
15881 < cat >>$CONFIG_STATUS <<\_ACEOF
15882 <
15883 < #
15884 < # CONFIG_LINKS section.
15885 < #
15886 <
15887 < for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
15888 <  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15889 <  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15890 <
15891 <  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15892 < echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
15893 <
15894 <  if test ! -r $srcdir/$ac_source; then
15895 <    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15896 < echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15897 <   { (exit 1); exit 1; }; }
15898 <  fi
15899 <  rm -f $ac_dest
15900 <
15901 <  # Make relative symlinks.
15902 <  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
15903 < $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15904 <         X"$ac_dest" : 'X\(//\)[^/]' \| \
15905 <         X"$ac_dest" : 'X\(//\)$' \| \
15906 <         X"$ac_dest" : 'X\(/\)' \| \
15907 <         .     : '\(.\)' 2>/dev/null ||
15908 < echo X"$ac_dest" |
15909 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15910 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15911 <          /^X\(\/\/\)$/{ s//\1/; q; }
15912 <          /^X\(\/\).*/{ s//\1/; q; }
15913 <          s/.*/./; q'`
15914 <  { if $as_mkdir_p; then
15915 <    mkdir -p "$ac_dest_dir"
15916 <  else
15917 <    as_dir="$ac_dest_dir"
15918 <    as_dirs=
15919 <    while test ! -d "$as_dir"; do
15920 <      as_dirs="$as_dir $as_dirs"
15921 <      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15922 < $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15923 <         X"$as_dir" : 'X\(//\)[^/]' \| \
15924 <         X"$as_dir" : 'X\(//\)$' \| \
15925 <         X"$as_dir" : 'X\(/\)' \| \
15926 <         .     : '\(.\)' 2>/dev/null ||
15927 < echo X"$as_dir" |
15928 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15929 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15930 <          /^X\(\/\/\)$/{ s//\1/; q; }
15931 <          /^X\(\/\).*/{ s//\1/; q; }
15932 <          s/.*/./; q'`
15933 <    done
15934 <    test ! -n "$as_dirs" || mkdir $as_dirs
15935 <  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
15936 < echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15937 <   { (exit 1); exit 1; }; }; }
15938 <
15939 <  ac_builddir=.
15940 <
15941 < if test "$ac_dest_dir" != .; then
15942 <  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
15943 <  # A "../" for each directory in $ac_dir_suffix.
15944 <  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15945 < else
15946 <  ac_dir_suffix= ac_top_builddir=
15947 < fi
15948 <
15949 < case $srcdir in
15950 <  .)  # No --srcdir option.  We are building in place.
15951 <    ac_srcdir=.
15952 <    if test -z "$ac_top_builddir"; then
15953 <       ac_top_srcdir=.
15954 <    else
15955 <       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15956 <    fi ;;
15957 <  [\\/]* | ?:[\\/]* )  # Absolute path.
15958 <    ac_srcdir=$srcdir$ac_dir_suffix;
15959 <    ac_top_srcdir=$srcdir ;;
15960 <  *) # Relative path.
15961 <    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15962 <    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15963 < esac
15964 <
15965 < # Do not use `cd foo && pwd` to compute absolute paths, because
15966 < # the directories may not exist.
15967 < case `pwd` in
15968 < .) ac_abs_builddir="$ac_dest_dir";;
15969 < *)
15970 <  case "$ac_dest_dir" in
15971 <  .) ac_abs_builddir=`pwd`;;
15972 <  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
15973 <  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
15974 <  esac;;
15975 < esac
15976 < case $ac_abs_builddir in
15977 < .) ac_abs_top_builddir=${ac_top_builddir}.;;
15978 < *)
15979 <  case ${ac_top_builddir}. in
15980 <  .) ac_abs_top_builddir=$ac_abs_builddir;;
15981 <  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15982 <  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15983 <  esac;;
15984 < esac
15985 < case $ac_abs_builddir in
15986 < .) ac_abs_srcdir=$ac_srcdir;;
15987 < *)
15988 <  case $ac_srcdir in
15989 <  .) ac_abs_srcdir=$ac_abs_builddir;;
15990 <  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15991 <  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15992 <  esac;;
15993 < esac
15994 < case $ac_abs_builddir in
15995 < .) ac_abs_top_srcdir=$ac_top_srcdir;;
15996 < *)
15997 <  case $ac_top_srcdir in
15998 <  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15999 <  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16000 <  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16001 <  esac;;
16002 < esac
16003 <
16004 <
16005 <  case $srcdir in
16006 <  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16007 <      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16008 <  esac
16009 <
16010 <  # Try a symlink, then a hard link, then a copy.
16011 <  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16012 <    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16013 <    cp -p $srcdir/$ac_source $ac_dest ||
16014 <    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16015 < echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16016 <   { (exit 1); exit 1; }; }
16017 < done
16018 < _ACEOF
16019 <
16020 < cat >>$CONFIG_STATUS <<\_ACEOF
16021 <
16022 < { (exit 0); exit 0; }
16023 < _ACEOF
16024 < chmod +x $CONFIG_STATUS
16025 < ac_clean_files=$ac_clean_files_save
16026 <
16027 <
16028 < # configure is writing to config.log, and then calls config.status.
16029 < # config.status does its own redirection, appending to config.log.
16030 < # Unfortunately, on DOS this fails, as config.log is still kept open
16031 < # by configure, so config.status won't be able to write to it; its
16032 < # output is simply discarded.  So we exec the FD to /dev/null,
16033 < # effectively closing config.log, so it can be properly (re)opened and
16034 < # appended to by config.status.  When coming back to configure, we
16035 < # need to make the FD available again.
16036 < if test "$no_create" != yes; then
16037 <  ac_cs_success=:
16038 <  ac_config_status_args=
16039 <  test "$silent" = yes &&
16040 <    ac_config_status_args="$ac_config_status_args --quiet"
16041 <  exec 5>/dev/null
16042 <  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16043 <  exec 5>>config.log
16044 <  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16045 <  # would make configure fail if this is the last instruction.
16046 <  $ac_cs_success || { (exit 1); exit 1; }
10439 > {
10440 >  echo "cat >conf$$subs.awk <<_ACEOF" &&
10441 >  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10442 >  echo "_ACEOF"
10443 > } >conf$$subs.sh ||
10444 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10445 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10446 > ac_delim='%!_!# '
10447 > for ac_last_try in false false false false false :; do
10448 >  . ./conf$$subs.sh ||
10449 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10450 >
10451 >  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10452 >  if test $ac_delim_n = $ac_delim_num; then
10453 >    break
10454 >  elif $ac_last_try; then
10455 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10456 >  else
10457 >    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10458 >  fi
10459 > done
10460 > rm -f conf$$subs.sh
10461 >
10462 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10463 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10464 > _ACEOF
10465 > sed -n '
10466 > h
10467 > s/^/S["/; s/!.*/"]=/
10468 > p
10469 > g
10470 > s/^[^!]*!//
10471 > :repl
10472 > t repl
10473 > s/'"$ac_delim"'$//
10474 > t delim
10475 > :nl
10476 > h
10477 > s/\(.\{148\}\)..*/\1/
10478 > t more1
10479 > s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10480 > p
10481 > n
10482 > b repl
10483 > :more1
10484 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10485 > p
10486 > g
10487 > s/.\{148\}//
10488 > t nl
10489 > :delim
10490 > h
10491 > s/\(.\{148\}\)..*/\1/
10492 > t more2
10493 > s/["\\]/\\&/g; s/^/"/; s/$/"/
10494 > p
10495 > b
10496 > :more2
10497 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10498 > p
10499 > g
10500 > s/.\{148\}//
10501 > t delim
10502 > ' <conf$$subs.awk | sed '
10503 > /^[^""]/{
10504 >  N
10505 >  s/\n//
10506 > }
10507 > ' >>$CONFIG_STATUS || ac_write_fail=1
10508 > rm -f conf$$subs.awk
10509 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10510 > _ACAWK
10511 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10512 >  for (key in S) S_is_set[key] = 1
10513 >  FS = ""
10514 >
10515 > }
10516 > {
10517 >  line = $ 0
10518 >  nfields = split(line, field, "@")
10519 >  substed = 0
10520 >  len = length(field[1])
10521 >  for (i = 2; i < nfields; i++) {
10522 >    key = field[i]
10523 >    keylen = length(key)
10524 >    if (S_is_set[key]) {
10525 >      value = S[key]
10526 >      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10527 >      len += length(value) + length(field[++i])
10528 >      substed = 1
10529 >    } else
10530 >      len += 1 + keylen
10531 >  }
10532 >
10533 >  print line
10534 > }
10535 >
10536 > _ACAWK
10537 > _ACEOF
10538 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10539 > if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10540 >  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10541 > else
10542 >  cat
10543 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10544 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10545 > _ACEOF
10546 >
10547 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10548 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10549 > # trailing colons and then remove the whole line if VPATH becomes empty
10550 > # (actually we leave an empty line to preserve line numbers).
10551 > if test "x$srcdir" = x.; then
10552 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10553 > h
10554 > s///
10555 > s/^/:/
10556 > s/[      ]*$/:/
10557 > s/:\$(srcdir):/:/g
10558 > s/:\${srcdir}:/:/g
10559 > s/:@srcdir@:/:/g
10560 > s/^:*//
10561 > s/:*$//
10562 > x
10563 > s/\(=[   ]*\).*/\1/
10564 > G
10565 > s/\n//
10566 > s/^[^=]*=[       ]*$//
10567 > }'
10568 > fi
10569 >
10570 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10571 > fi # test -n "$CONFIG_FILES"
10572 >
10573 > # Set up the scripts for CONFIG_HEADERS section.
10574 > # No need to generate them if there are no CONFIG_HEADERS.
10575 > # This happens for instance with `./config.status Makefile'.
10576 > if test -n "$CONFIG_HEADERS"; then
10577 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10578 > BEGIN {
10579 > _ACEOF
10580 >
10581 > # Transform confdefs.h into an awk script `defines.awk', embedded as
10582 > # here-document in config.status, that substitutes the proper values into
10583 > # config.h.in to produce config.h.
10584 >
10585 > # Create a delimiter string that does not exist in confdefs.h, to ease
10586 > # handling of long lines.
10587 > ac_delim='%!_!# '
10588 > for ac_last_try in false false :; do
10589 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10590 >  if test -z "$ac_tt"; then
10591 >    break
10592 >  elif $ac_last_try; then
10593 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10594 >  else
10595 >    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10596 >  fi
10597 > done
10598 >
10599 > # For the awk script, D is an array of macro values keyed by name,
10600 > # likewise P contains macro parameters if any.  Preserve backslash
10601 > # newline sequences.
10602 >
10603 > ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10604 > sed -n '
10605 > s/.\{148\}/&'"$ac_delim"'/g
10606 > t rset
10607 > :rset
10608 > s/^[     ]*#[    ]*define[       ][      ]*/ /
10609 > t def
10610 > d
10611 > :def
10612 > s/\\$//
10613 > t bsnl
10614 > s/["\\]/\\&/g
10615 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10616 > D["\1"]=" \3"/p
10617 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10618 > d
10619 > :bsnl
10620 > s/["\\]/\\&/g
10621 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10622 > D["\1"]=" \3\\\\\\n"\\/p
10623 > t cont
10624 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10625 > t cont
10626 > d
10627 > :cont
10628 > n
10629 > s/.\{148\}/&'"$ac_delim"'/g
10630 > t clear
10631 > :clear
10632 > s/\\$//
10633 > t bsnlc
10634 > s/["\\]/\\&/g; s/^/"/; s/$/"/p
10635 > d
10636 > :bsnlc
10637 > s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10638 > b cont
10639 > ' <confdefs.h | sed '
10640 > s/'"$ac_delim"'/"\\\
10641 > "/g' >>$CONFIG_STATUS || ac_write_fail=1
10642 >
10643 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10644 >  for (key in D) D_is_set[key] = 1
10645 >  FS = ""
10646 > }
10647 > /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10648 >  line = \$ 0
10649 >  split(line, arg, " ")
10650 >  if (arg[1] == "#") {
10651 >    defundef = arg[2]
10652 >    mac1 = arg[3]
10653 >  } else {
10654 >    defundef = substr(arg[1], 2)
10655 >    mac1 = arg[2]
10656 >  }
10657 >  split(mac1, mac2, "(") #)
10658 >  macro = mac2[1]
10659 >  prefix = substr(line, 1, index(line, defundef) - 1)
10660 >  if (D_is_set[macro]) {
10661 >    # Preserve the white space surrounding the "#".
10662 >    print prefix "define", macro P[macro] D[macro]
10663 >    next
10664 >  } else {
10665 >    # Replace #undef with comments.  This is necessary, for example,
10666 >    # in the case of _POSIX_SOURCE, which is predefined and required
10667 >    # on some systems where configure will not decide to define it.
10668 >    if (defundef == "undef") {
10669 >      print "/*", prefix defundef, macro, "*/"
10670 >      next
10671 >    }
10672 >  }
10673 > }
10674 > { print }
10675 > _ACAWK
10676 > _ACEOF
10677 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10678 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10679 > fi # test -n "$CONFIG_HEADERS"
10680 >
10681 >
10682 > eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
10683 > shift
10684 > for ac_tag
10685 > do
10686 >  case $ac_tag in
10687 >  :[FHLC]) ac_mode=$ac_tag; continue;;
10688 >  esac
10689 >  case $ac_mode$ac_tag in
10690 >  :[FHL]*:*);;
10691 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10692 >  :[FH]-) ac_tag=-:-;;
10693 >  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10694 >  esac
10695 >  ac_save_IFS=$IFS
10696 >  IFS=:
10697 >  set x $ac_tag
10698 >  IFS=$ac_save_IFS
10699 >  shift
10700 >  ac_file=$1
10701 >  shift
10702 >
10703 >  case $ac_mode in
10704 >  :L) ac_source=$1;;
10705 >  :[FH])
10706 >    ac_file_inputs=
10707 >    for ac_f
10708 >    do
10709 >      case $ac_f in
10710 >      -) ac_f="$ac_tmp/stdin";;
10711 >      *) # Look for the file first in the build tree, then in the source tree
10712 >         # (if the path is not absolute).  The absolute path cannot be DOS-style,
10713 >         # because $ac_f cannot contain `:'.
10714 >         test -f "$ac_f" ||
10715 >           case $ac_f in
10716 >           [\\/$]*) false;;
10717 >           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10718 >           esac ||
10719 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10720 >      esac
10721 >      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10722 >      as_fn_append ac_file_inputs " '$ac_f'"
10723 >    done
10724 >
10725 >    # Let's still pretend it is `configure' which instantiates (i.e., don't
10726 >    # use $as_me), people would be surprised to read:
10727 >    #    /* config.h.  Generated by config.status.  */
10728 >    configure_input='Generated from '`
10729 >          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10730 >        `' by configure.'
10731 >    if test x"$ac_file" != x-; then
10732 >      configure_input="$ac_file.  $configure_input"
10733 >      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10734 > $as_echo "$as_me: creating $ac_file" >&6;}
10735 >    fi
10736 >    # Neutralize special characters interpreted by sed in replacement strings.
10737 >    case $configure_input in #(
10738 >    *\&* | *\|* | *\\* )
10739 >       ac_sed_conf_input=`$as_echo "$configure_input" |
10740 >       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10741 >    *) ac_sed_conf_input=$configure_input;;
10742 >    esac
10743 >
10744 >    case $ac_tag in
10745 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10746 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10747 >    esac
10748 >    ;;
10749 >  esac
10750 >
10751 >  ac_dir=`$as_dirname -- "$ac_file" ||
10752 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10753 >         X"$ac_file" : 'X\(//\)[^/]' \| \
10754 >         X"$ac_file" : 'X\(//\)$' \| \
10755 >         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10756 > $as_echo X"$ac_file" |
10757 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10758 >            s//\1/
10759 >            q
10760 >          }
10761 >          /^X\(\/\/\)[^/].*/{
10762 >            s//\1/
10763 >            q
10764 >          }
10765 >          /^X\(\/\/\)$/{
10766 >            s//\1/
10767 >            q
10768 >          }
10769 >          /^X\(\/\).*/{
10770 >            s//\1/
10771 >            q
10772 >          }
10773 >          s/.*/./; q'`
10774 >  as_dir="$ac_dir"; as_fn_mkdir_p
10775 >  ac_builddir=.
10776 >
10777 > case "$ac_dir" in
10778 > .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10779 > *)
10780 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10781 >  # A ".." for each directory in $ac_dir_suffix.
10782 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10783 >  case $ac_top_builddir_sub in
10784 >  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10785 >  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10786 >  esac ;;
10787 > esac
10788 > ac_abs_top_builddir=$ac_pwd
10789 > ac_abs_builddir=$ac_pwd$ac_dir_suffix
10790 > # for backward compatibility:
10791 > ac_top_builddir=$ac_top_build_prefix
10792 >
10793 > case $srcdir in
10794 >  .)  # We are building in place.
10795 >    ac_srcdir=.
10796 >    ac_top_srcdir=$ac_top_builddir_sub
10797 >    ac_abs_top_srcdir=$ac_pwd ;;
10798 >  [\\/]* | ?:[\\/]* )  # Absolute name.
10799 >    ac_srcdir=$srcdir$ac_dir_suffix;
10800 >    ac_top_srcdir=$srcdir
10801 >    ac_abs_top_srcdir=$srcdir ;;
10802 >  *) # Relative name.
10803 >    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10804 >    ac_top_srcdir=$ac_top_build_prefix$srcdir
10805 >    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10806 > esac
10807 > ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10808 >
10809 >
10810 >  case $ac_mode in
10811 >  :F)
10812 >  #
10813 >  # CONFIG_FILE
10814 >  #
10815 >
10816 >  case $INSTALL in
10817 >  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10818 >  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10819 >  esac
10820 > _ACEOF
10821 >
10822 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10823 > # If the template does not know about datarootdir, expand it.
10824 > # FIXME: This hack should be removed a few years after 2.60.
10825 > ac_datarootdir_hack=; ac_datarootdir_seen=
10826 > ac_sed_dataroot='
10827 > /datarootdir/ {
10828 >  p
10829 >  q
10830 > }
10831 > /@datadir@/p
10832 > /@docdir@/p
10833 > /@infodir@/p
10834 > /@localedir@/p
10835 > /@mandir@/p'
10836 > case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10837 > *datarootdir*) ac_datarootdir_seen=yes;;
10838 > *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10839 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10840 > $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10841 > _ACEOF
10842 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10843 >  ac_datarootdir_hack='
10844 >  s&@datadir@&$datadir&g
10845 >  s&@docdir@&$docdir&g
10846 >  s&@infodir@&$infodir&g
10847 >  s&@localedir@&$localedir&g
10848 >  s&@mandir@&$mandir&g
10849 >  s&\\\${datarootdir}&$datarootdir&g' ;;
10850 > esac
10851 > _ACEOF
10852 >
10853 > # Neutralize VPATH when `$srcdir' = `.'.
10854 > # Shell code in configure.ac might set extrasub.
10855 > # FIXME: do we really want to maintain this feature?
10856 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10857 > ac_sed_extra="$ac_vpsub
10858 > $extrasub
10859 > _ACEOF
10860 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10861 > :t
10862 > /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10863 > s|@configure_input@|$ac_sed_conf_input|;t t
10864 > s&@top_builddir@&$ac_top_builddir_sub&;t t
10865 > s&@top_build_prefix@&$ac_top_build_prefix&;t t
10866 > s&@srcdir@&$ac_srcdir&;t t
10867 > s&@abs_srcdir@&$ac_abs_srcdir&;t t
10868 > s&@top_srcdir@&$ac_top_srcdir&;t t
10869 > s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10870 > s&@builddir@&$ac_builddir&;t t
10871 > s&@abs_builddir@&$ac_abs_builddir&;t t
10872 > s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10873 > s&@INSTALL@&$ac_INSTALL&;t t
10874 > $ac_datarootdir_hack
10875 > "
10876 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10877 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10878 >
10879 > test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10880 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10881 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10882 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10883 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10884 > which seems to be undefined.  Please make sure it is defined" >&5
10885 > $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10886 > which seems to be undefined.  Please make sure it is defined" >&2;}
10887 >
10888 >  rm -f "$ac_tmp/stdin"
10889 >  case $ac_file in
10890 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10891 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10892 >  esac \
10893 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10894 > ;;
10895 >  :H)
10896 >  #
10897 >  # CONFIG_HEADER
10898 >  #
10899 >  if test x"$ac_file" != x-; then
10900 >    {
10901 >      $as_echo "/* $configure_input  */" \
10902 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10903 >    } >"$ac_tmp/config.h" \
10904 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10905 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10906 >      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10907 > $as_echo "$as_me: $ac_file is unchanged" >&6;}
10908 >    else
10909 >      rm -f "$ac_file"
10910 >      mv "$ac_tmp/config.h" "$ac_file" \
10911 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10912 >    fi
10913 >  else
10914 >    $as_echo "/* $configure_input  */" \
10915 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10916 >      || as_fn_error $? "could not create -" "$LINENO" 5
10917 >  fi
10918 > ;;
10919 >
10920 >
10921 >  esac
10922 >
10923 >
10924 >  case $ac_file$ac_mode in
10925 >    "make/Makefile":F) chmod 0755 scripts/* ;;
10926 >    "src/utils/Makefile":F) chmod 0755 scripts/* ;;
10927 >    "src/math/Makefile":F) chmod 0755 scripts/* ;;
10928 >    "src/integrators/Makefile":F) chmod 0755 scripts/* ;;
10929 >    "src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;;
10930 >    "scripts/filepp":F) chmod 0755 scripts/* ;;
10931 >
10932 >  esac
10933 > done # for ac_tag
10934 >
10935 >
10936 > as_fn_exit 0
10937 > _ACEOF
10938 > ac_clean_files=$ac_clean_files_save
10939 >
10940 > test $ac_write_fail = 0 ||
10941 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10942 >
10943 >
10944 > # configure is writing to config.log, and then calls config.status.
10945 > # config.status does its own redirection, appending to config.log.
10946 > # Unfortunately, on DOS this fails, as config.log is still kept open
10947 > # by configure, so config.status won't be able to write to it; its
10948 > # output is simply discarded.  So we exec the FD to /dev/null,
10949 > # effectively closing config.log, so it can be properly (re)opened and
10950 > # appended to by config.status.  When coming back to configure, we
10951 > # need to make the FD available again.
10952 > if test "$no_create" != yes; then
10953 >  ac_cs_success=:
10954 >  ac_config_status_args=
10955 >  test "$silent" = yes &&
10956 >    ac_config_status_args="$ac_config_status_args --quiet"
10957 >  exec 5>/dev/null
10958 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10959 >  exec 5>>config.log
10960 >  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10961 >  # would make configure fail if this is the last instruction.
10962 >  $ac_cs_success || as_fn_exit 1
10963 > fi
10964 > if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10965 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10966 > $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10967   fi
10968  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines