source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/lib/mct/configure @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

  • Property svn:executable set to *
File size: 198.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.70 for MCT 2.10.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17as_nop=:
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else $as_nop
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36
37# Reset variables that may have inherited troublesome values from
38# the environment.
39
40# IFS needs to be set, to space, tab, and newline, in precisely that order.
41# (If _AS_PATH_WALK were called with IFS unset, it would have the
42# side effect of setting IFS to empty, thus disabling word splitting.)
43# Quoting is to prevent editors from complaining about space-tab.
44as_nl='
45'
46export as_nl
47IFS=" ""        $as_nl"
48
49PS1='$ '
50PS2='> '
51PS4='+ '
52
53# Ensure predictable behavior from utilities with locale-dependent output.
54LC_ALL=C
55export LC_ALL
56LANGUAGE=C
57export LANGUAGE
58
59# We cannot yet rely on "unset" to work, but we need these variables
60# to be unset--not just set to an empty or harmless value--now, to
61# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
62# also avoids known problems related to "unset" and subshell syntax
63# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65do eval test \${$as_var+y} \
66  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67done
68
69# Ensure that fds 0, 1, and 2 are open.
70if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
73
74# The user is always right.
75if ${PATH_SEPARATOR+false} :; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# Find who we are.  Look in the path if we contain no directory separator.
85as_myself=
86case $0 in #((
87  *[\\/]* ) as_myself=$0 ;;
88  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89for as_dir in $PATH
90do
91  IFS=$as_save_IFS
92  case $as_dir in #(((
93    '') as_dir=./ ;;
94    */) ;;
95    *) as_dir=$as_dir/ ;;
96  esac
97    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113
114# Use a proper internal environment variable to ensure we don't fall
115  # into an infinite loop, continuously re-executing ourselves.
116  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117    _as_can_reexec=no; export _as_can_reexec;
118    # We cannot yet assume a decent shell, so we have to provide a
119# neutralization value for shells without unset; and this also
120# works around shells that cannot unset nonexistent variables.
121# Preserve -v and -x to the replacement shell.
122BASH_ENV=/dev/null
123ENV=/dev/null
124(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
125case $- in # ((((
126  *v*x* | *x*v* ) as_opts=-vx ;;
127  *v* ) as_opts=-v ;;
128  *x* ) as_opts=-x ;;
129  * ) as_opts= ;;
130esac
131exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132# Admittedly, this is quite paranoid, since all the known shells bail
133# out after a failed `exec'.
134printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135exit 255
136  fi
137  # We don't want this to propagate to other subprocesses.
138          { _as_can_reexec=; unset _as_can_reexec;}
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="as_nop=:
141if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else \$as_nop
150  case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac
156fi
157"
158  as_required="as_fn_return () { (exit \$1); }
159as_fn_success () { as_fn_return 0; }
160as_fn_failure () { as_fn_return 1; }
161as_fn_ret_success () { return 0; }
162as_fn_ret_failure () { return 1; }
163
164exitcode=0
165as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170then :
171
172else \$as_nop
173  exitcode=1; echo positional parameters were not saved.
174fi
175test x\$exitcode = x0 || exit 1
176blah=\$(echo \$(echo blah))
177test x\"\$blah\" = xblah || exit 1
178test -x / || exit 1"
179  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
183  if (eval "$as_required") 2>/dev/null
184then :
185  as_have_required=yes
186else $as_nop
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
190then :
191
192else $as_nop
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  case $as_dir in #(((
199    '') as_dir=./ ;;
200    */) ;;
201    *) as_dir=$as_dir/ ;;
202  esac
203  as_found=:
204  case $as_dir in #(
205         /*)
206           for as_base in sh bash ksh sh5; do
207             # Try only shells that exist, to save several forks.
208             as_shell=$as_dir$as_base
209             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
210                    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
211then :
212  CONFIG_SHELL=$as_shell as_have_required=yes
213                   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
214then :
215  break 2
216fi
217fi
218           done;;
219       esac
220  as_found=false
221done
222IFS=$as_save_IFS
223if $as_found
224then :
225
226else $as_nop
227  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228              as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
229then :
230  CONFIG_SHELL=$SHELL as_have_required=yes
231fi
232fi
233
234
235      if test "x$CONFIG_SHELL" != x
236then :
237  export CONFIG_SHELL
238             # We cannot yet assume a decent shell, so we have to provide a
239# neutralization value for shells without unset; and this also
240# works around shells that cannot unset nonexistent variables.
241# Preserve -v and -x to the replacement shell.
242BASH_ENV=/dev/null
243ENV=/dev/null
244(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
245case $- in # ((((
246  *v*x* | *x*v* ) as_opts=-vx ;;
247  *v* ) as_opts=-v ;;
248  *x* ) as_opts=-x ;;
249  * ) as_opts= ;;
250esac
251exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
252# Admittedly, this is quite paranoid, since all the known shells bail
253# out after a failed `exec'.
254printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
255exit 255
256fi
257
258    if test x$as_have_required = xno
259then :
260  printf "%s\n" "$0: This script requires a shell more modern than all"
261  printf "%s\n" "$0: the shells that I found on your system."
262  if test ${ZSH_VERSION+y} ; then
263    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311# as_fn_nop
312# ---------
313# Do nothing but, unlike ":", preserve the value of $?.
314as_fn_nop ()
315{
316  return $?
317}
318as_nop=as_fn_nop
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339         X"$as_dir" : 'X\(//\)[^/]' \| \
340         X"$as_dir" : 'X\(//\)$' \| \
341         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342printf "%s\n" X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344            s//\1/
345            q
346          }
347          /^X\(\/\/\)[^/].*/{
348            s//\1/
349            q
350          }
351          /^X\(\/\/\)$/{
352            s//\1/
353            q
354          }
355          /^X\(\/\).*/{
356            s//\1/
357            q
358          }
359          s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382then :
383  eval 'as_fn_append ()
384  {
385    eval $1+=\$2
386  }'
387else $as_nop
388  as_fn_append ()
389  {
390    eval $1=\$$1\$2
391  }
392fi # as_fn_append
393
394# as_fn_arith ARG...
395# ------------------
396# Perform arithmetic evaluation on the ARGs, and store the result in the
397# global $as_val. Take advantage of shells that can avoid forks. The arguments
398# must be portable across $(()) and expr.
399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
400then :
401  eval 'as_fn_arith ()
402  {
403    as_val=$(( $* ))
404  }'
405else $as_nop
406  as_fn_arith ()
407  {
408    as_val=`expr "$@" || test $? -eq 1`
409  }
410fi # as_fn_arith
411
412# as_fn_nop
413# ---------
414# Do nothing but, unlike ":", preserve the value of $?.
415as_fn_nop ()
416{
417  return $?
418}
419as_nop=as_fn_nop
420
421# as_fn_error STATUS ERROR [LINENO LOG_FD]
422# ----------------------------------------
423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425# script with STATUS, using 1 if that was 0.
426as_fn_error ()
427{
428  as_status=$1; test $as_status -eq 0 && as_status=1
429  if test "$4"; then
430    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432  fi
433  printf "%s\n" "$as_me: error: $2" >&2
434  as_fn_exit $as_status
435} # as_fn_error
436
437if expr a : '\(a\)' >/dev/null 2>&1 &&
438   test "X`expr 00001 : '.*\(...\)'`" = X001; then
439  as_expr=expr
440else
441  as_expr=false
442fi
443
444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445  as_basename=basename
446else
447  as_basename=false
448fi
449
450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451  as_dirname=dirname
452else
453  as_dirname=false
454fi
455
456as_me=`$as_basename -- "$0" ||
457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458         X"$0" : 'X\(//\)$' \| \
459         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460printf "%s\n" X/"$0" |
461    sed '/^.*\/\([^/][^/]*\)\/*$/{
462            s//\1/
463            q
464          }
465          /^X\/\(\/\/\)$/{
466            s//\1/
467            q
468          }
469          /^X\/\(\/\).*/{
470            s//\1/
471            q
472          }
473          s/.*/./; q'`
474
475# Avoid depending upon Character Ranges.
476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479as_cr_digits='0123456789'
480as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483  as_lineno_1=$LINENO as_lineno_1a=$LINENO
484  as_lineno_2=$LINENO as_lineno_2a=$LINENO
485  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
488  sed -n '
489    p
490    /[$]LINENO/=
491  ' <$as_myself |
492    sed '
493      s/[$]LINENO.*/&-/
494      t lineno
495      b
496      :lineno
497      N
498      :loop
499      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
500      t loop
501      s/-\n.*//
502    ' >$as_me.lineno &&
503  chmod +x "$as_me.lineno" ||
504    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
505
506  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
507  # already done that, so ensure we don't try to do so again and fall
508  # in an infinite loop.  This has already happened in practice.
509  _as_can_reexec=no; export _as_can_reexec
510  # Don't try to exec as it changes $[0], causing all sort of problems
511  # (the dirname of $[0] is not the place where we might find the
512  # original and so on.  Autoconf is especially sensitive to this).
513  . "./$as_me.lineno"
514  # Exit status is that of the last command.
515  exit
516}
517
518
519# Determine whether it's possible to make 'echo' print without a newline.
520# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
521# for compatibility with existing Makefiles.
522ECHO_C= ECHO_N= ECHO_T=
523case `echo -n x` in #(((((
524-n*)
525  case `echo 'xy\c'` in
526  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
527  xy)  ECHO_C='\c';;
528  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
529       ECHO_T=' ';;
530  esac;;
531*)
532  ECHO_N='-n';;
533esac
534
535# For backward compatibility with old third-party macros, we provide
536# the shell variables $as_echo and $as_echo_n.  New code should use
537# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
538as_echo='printf %s\n'
539as_echo_n='printf %s'
540
541
542rm -f conf$$ conf$$.exe conf$$.file
543if test -d conf$$.dir; then
544  rm -f conf$$.dir/conf$$.file
545else
546  rm -f conf$$.dir
547  mkdir conf$$.dir 2>/dev/null
548fi
549if (echo >conf$$.file) 2>/dev/null; then
550  if ln -s conf$$.file conf$$ 2>/dev/null; then
551    as_ln_s='ln -s'
552    # ... but there are two gotchas:
553    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
554    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
555    # In both cases, we have to default to `cp -pR'.
556    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
557      as_ln_s='cp -pR'
558  elif ln conf$$.file conf$$ 2>/dev/null; then
559    as_ln_s=ln
560  else
561    as_ln_s='cp -pR'
562  fi
563else
564  as_ln_s='cp -pR'
565fi
566rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
567rmdir conf$$.dir 2>/dev/null
568
569if mkdir -p . 2>/dev/null; then
570  as_mkdir_p='mkdir -p "$as_dir"'
571else
572  test -d ./-p && rmdir ./-p
573  as_mkdir_p=false
574fi
575
576as_test_x='test -x'
577as_executable_p=as_fn_executable_p
578
579# Sed expression to map a string onto a valid CPP name.
580as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
581
582# Sed expression to map a string onto a valid variable name.
583as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
584
585
586test -n "$DJDIR" || exec 7<&0 </dev/null
587exec 6>&1
588
589# Name of the host.
590# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
591# so uname gets run too.
592ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
593
594#
595# Initializations.
596#
597ac_default_prefix=/usr/local
598ac_clean_files=
599ac_config_libobj_dir=.
600LIBOBJS=
601cross_compiling=no
602subdirs=
603MFLAGS=
604MAKEFLAGS=
605
606# Identity of this package.
607PACKAGE_NAME='MCT'
608PACKAGE_TARNAME='mct'
609PACKAGE_VERSION='2.10'
610PACKAGE_STRING='MCT 2.10'
611PACKAGE_BUGREPORT=''
612PACKAGE_URL=''
613
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646enable_option_checking=no
647ac_subst_vars='LTLIBOBJS
648LIBOBJS
649subdirs
650CPPDEFS
651CRULE
652FCLIBS
653host_os
654host_vendor
655host_cpu
656host
657build_os
658build_vendor
659build_cpu
660build
661FC_DEFINE
662FCFLAGS_F
663MPISERPATH
664MPIFC
665FCFLAGS_F90
666ac_ct_FC
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CC
673PYTHONOPTS
674PYTHON
675FORT_SIZE
676COMPILER_ROOT
677BABELROOT
678RANLIB
679AR
680INCLUDEPATH
681INCLUDEFLAG
682ENDIAN
683BIT64
684REAL8
685OPT
686DEBUG
687CFLAGS
688PROGFCFLAGS
689FCFLAGS
690FC
691FPPFLAGS
692FPP
693MPIHEADER
694MPILIBS
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714runstatedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_mpiserial
738enable_debugging
739enable_selectedrealkind
740enable_sequence
741enable_babel
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746MPILIBS
747MPIHEADER
748FPP
749FPPFLAGS
750FC
751FCFLAGS
752PROGFCFLAGS
753CFLAGS
754DEBUG
755OPT
756REAL8
757BIT64
758ENDIAN
759INCLUDEFLAG
760INCLUDEPATH
761AR
762RANLIB
763BABELROOT
764COMPILER_ROOT
765FORT_SIZE
766CC
767LDFLAGS
768LIBS
769CPPFLAGS
770MPIFC'
771ac_subdirs_all='mpi-serial'
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809runstatedir='${localstatedir}/run'
810includedir='${prefix}/include'
811oldincludedir='/usr/include'
812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813infodir='${datarootdir}/info'
814htmldir='${docdir}'
815dvidir='${docdir}'
816pdfdir='${docdir}'
817psdir='${docdir}'
818libdir='${exec_prefix}/lib'
819localedir='${datarootdir}/locale'
820mandir='${datarootdir}/man'
821
822ac_prev=
823ac_dashdash=
824for ac_option
825do
826  # If the previous option needs an argument, assign it.
827  if test -n "$ac_prev"; then
828    eval $ac_prev=\$ac_option
829    ac_prev=
830    continue
831  fi
832
833  case $ac_option in
834  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835  *=)   ac_optarg= ;;
836  *)    ac_optarg=yes ;;
837  esac
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: \`$ac_useropt'"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887         ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913         ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -runstatedir | --runstatedir | --runstatedi | --runstated \
1061  | --runstate | --runstat | --runsta | --runst | --runs \
1062  | --run | --ru | --r)
1063    ac_prev=runstatedir ;;
1064  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1065  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1066  | --run=* | --ru=* | --r=*)
1067    runstatedir=$ac_optarg ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: \`$ac_useropt'"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126         ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: \`$ac_useropt'"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142         ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                datadir sysconfdir sharedstatedir localstatedir includedir \
1205                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                libdir localedir mandir runstatedir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259         X"$as_myself" : 'X\(//\)[^/]' \| \
1260         X"$as_myself" : 'X\(//\)$' \| \
1261         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262printf "%s\n" X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264            s//\1/
1265            q
1266          }
1267          /^X\(\/\/\)[^/].*/{
1268            s//\1/
1269            q
1270          }
1271          /^X\(\/\/\)$/{
1272            s//\1/
1273            q
1274          }
1275          /^X\(\/\).*/{
1276            s//\1/
1277            q
1278          }
1279          s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294        pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures MCT 2.10 to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1360  --libdir=DIR            object code libraries [EPREFIX/lib]
1361  --includedir=DIR        C header files [PREFIX/include]
1362  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR           info documentation [DATAROOTDIR/info]
1366  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR            man documentation [DATAROOTDIR/man]
1368  --docdir=DIR            documentation root [DATAROOTDIR/doc/mct]
1369  --htmldir=DIR           html documentation [DOCDIR]
1370  --dvidir=DIR            dvi documentation [DOCDIR]
1371  --pdfdir=DIR            pdf documentation [DOCDIR]
1372  --psdir=DIR             ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377System types:
1378  --build=BUILD     configure for building on BUILD [guessed]
1379  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384  case $ac_init_help in
1385     short | recursive ) echo "Configuration of MCT 2.10:";;
1386   esac
1387  cat <<\_ACEOF
1388
1389Optional Features:
1390  --disable-option-checking  ignore unrecognized --enable/--with options
1391  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393  --enable-mpiserial      Use the included MPI replacement library for single
1394                          processor
1395  --enable-debugging      Use the debugging flag and disable the optimization
1396                          flag
1397  --enable-selectedrealkind
1398                          define single precision and double precision numbers
1399                          using the selected_real_kind function. Default uses
1400                          the kind inquiry function.
1401  --enable-sequence       Modify MCT types to make them contiguous in memory.
1402  --enable-babel          Supply this option if you plan on building the Babel
1403                          bindings to MCT
1404
1405Some influential environment variables:
1406  MPILIBS     MPI library command line invocation
1407  MPIHEADER   MPI header include path with INCLUDEFLAG
1408  FPP         C-preprocessor for Fortran source code
1409  FPPFLAGS    C-preprocessing flags for Fortran source code
1410  FC          The Fortran compiler
1411  FCFLAGS     User-defined Fortran compiler flags
1412  PROGFCFLAGS User-defined Fortran compiler flags for example programs
1413  CFLAGS      Customized C source compilation flags
1414  DEBUG       Fortran compiler flag for generating symbolic debugging
1415              information
1416  OPT         Fortran compiler flag for optimization level
1417  REAL8       Fortran compiler flag for setting the default REAL size to
1418              REAL(KIND=8)
1419  BIT64       Fortran compiler flag for generating 64-bit objects
1420  ENDIAN      Fortran compiler flag for converting big-endian to little-endian
1421  INCLUDEFLAG Fortran compiler flag for specifying module search path
1422  INCLUDEPATH Additional library and module paths with INCLUDEFLAG
1423  AR          Archive command
1424  RANLIB      Archive index update command
1425  BABELROOT   Root directory of your Babel installation. i.e.:
1426              $BABELROOT/bin/babel $BABELROOT/lib/libsidl.so
1427  COMPILER_ROOT
1428              Root directory of your FORTRAN compiler
1429  FORT_SIZE   Number of bits in Fortran real and double kind
1430  CC          C compiler command
1431  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1432              nonstandard directory <lib dir>
1433  LIBS        libraries to pass to the linker, e.g. -l<library>
1434  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435              you have headers in a nonstandard directory <include dir>
1436  MPIFC       MPI Fortran compiler command
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to the package provider.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447  # If there are subdirs, report their specific --help.
1448  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449    test -d "$ac_dir" ||
1450      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451      continue
1452    ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1458  # A ".." for each directory in $ac_dir_suffix.
1459  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460  case $ac_top_builddir_sub in
1461  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463  esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471  .)  # We are building in place.
1472    ac_srcdir=.
1473    ac_top_srcdir=$ac_top_builddir_sub
1474    ac_abs_top_srcdir=$ac_pwd ;;
1475  [\\/]* | ?:[\\/]* )  # Absolute name.
1476    ac_srcdir=$srcdir$ac_dir_suffix;
1477    ac_top_srcdir=$srcdir
1478    ac_abs_top_srcdir=$srcdir ;;
1479  *) # Relative name.
1480    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481    ac_top_srcdir=$ac_top_build_prefix$srcdir
1482    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486    cd "$ac_dir" || { ac_status=$?; continue; }
1487    # Check for configure.gnu first; this name is used for a wrapper for
1488    # Metaconfig's "Configure" on case-insensitive file systems.
1489    if test -f "$ac_srcdir/configure.gnu"; then
1490      echo &&
1491      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492    elif test -f "$ac_srcdir/configure"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure" --help=recursive
1495    else
1496      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497    fi || ac_status=$?
1498    cd "$ac_pwd" || { ac_status=$?; break; }
1499  done
1500fi
1501
1502test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then
1504  cat <<\_ACEOF
1505MCT configure 2.10
1506generated by GNU Autoconf 2.70
1507
1508Copyright (C) 2020 Free Software Foundation, Inc.
1509This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it.
1511_ACEOF
1512  exit
1513fi
1514
1515## ------------------------ ##
1516## Autoconf initialization. ##
1517## ------------------------ ##
1518
1519# ac_fn_c_try_compile LINENO
1520# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile ()
1523{
1524  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525  rm -f conftest.$ac_objext conftest.beam
1526  if { { ac_try="$ac_compile"
1527case "(($ac_try" in
1528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529  *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532printf "%s\n" "$ac_try_echo"; } >&5
1533  (eval "$ac_compile") 2>conftest.err
1534  ac_status=$?
1535  if test -s conftest.err; then
1536    grep -v '^ *+' conftest.err >conftest.er1
1537    cat conftest.er1 >&5
1538    mv -f conftest.er1 conftest.err
1539  fi
1540  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541  test $ac_status = 0; } && {
1542         test -z "$ac_c_werror_flag" ||
1543         test ! -s conftest.err
1544       } && test -s conftest.$ac_objext
1545then :
1546  ac_retval=0
1547else $as_nop
1548  printf "%s\n" "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
1550
1551        ac_retval=1
1552fi
1553  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554  as_fn_set_status $ac_retval
1555
1556} # ac_fn_c_try_compile
1557
1558# ac_fn_c_try_run LINENO
1559# ----------------------
1560# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1561# executables *can* be run.
1562ac_fn_c_try_run ()
1563{
1564  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565  if { { ac_try="$ac_link"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571printf "%s\n" "$ac_try_echo"; } >&5
1572  (eval "$ac_link") 2>&5
1573  ac_status=$?
1574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1576  { { case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581printf "%s\n" "$ac_try_echo"; } >&5
1582  (eval "$ac_try") 2>&5
1583  ac_status=$?
1584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; }; }
1586then :
1587  ac_retval=0
1588else $as_nop
1589  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1590       printf "%s\n" "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593       ac_retval=$ac_status
1594fi
1595  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_run
1600
1601# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602# -------------------------------------------------------
1603# Tests whether HEADER exists and can be compiled using the include files in
1604# INCLUDES, setting the cache variable VAR accordingly.
1605ac_fn_c_check_header_compile ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609printf %s "checking for $2... " >&6; }
1610if eval test \${$3+y}
1611then :
1612  printf %s "(cached) " >&6
1613else $as_nop
1614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h.  */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"
1620then :
1621  eval "$3=yes"
1622else $as_nop
1623  eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629printf "%s\n" "$ac_res" >&6; }
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632} # ac_fn_c_check_header_compile
1633
1634# ac_fn_fc_try_compile LINENO
1635# ---------------------------
1636# Try to compile conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_fc_try_compile ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext conftest.beam
1641  if { { ac_try="$ac_compile"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647printf "%s\n" "$ac_try_echo"; } >&5
1648  (eval "$ac_compile") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657         test -z "$ac_fc_werror_flag" ||
1658         test ! -s conftest.err
1659       } && test -s conftest.$ac_objext
1660then :
1661  ac_retval=0
1662else $as_nop
1663  printf "%s\n" "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666        ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_fc_try_compile
1672
1673# ac_fn_fc_try_link LINENO
1674# ------------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_fc_try_link ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686printf "%s\n" "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && {
1696         test -z "$ac_fc_werror_flag" ||
1697         test ! -s conftest.err
1698       } && test -s conftest$ac_exeext && {
1699         test "$cross_compiling" = yes ||
1700         test -x conftest$ac_exeext
1701       }
1702then :
1703  ac_retval=0
1704else $as_nop
1705  printf "%s\n" "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708        ac_retval=1
1709fi
1710  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712  # interfere with the next link command; also delete a directory that is
1713  # left behind by Apple's compiler.  We do this before executing the actions.
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_fc_try_link
1719
1720# ac_fn_c_try_link LINENO
1721# -----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_link ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733printf "%s\n" "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>conftest.err
1735  ac_status=$?
1736  if test -s conftest.err; then
1737    grep -v '^ *+' conftest.err >conftest.er1
1738    cat conftest.er1 >&5
1739    mv -f conftest.er1 conftest.err
1740  fi
1741  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && {
1743         test -z "$ac_c_werror_flag" ||
1744         test ! -s conftest.err
1745       } && test -s conftest$ac_exeext && {
1746         test "$cross_compiling" = yes ||
1747         test -x conftest$ac_exeext
1748       }
1749then :
1750  ac_retval=0
1751else $as_nop
1752  printf "%s\n" "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=1
1756fi
1757  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759  # interfere with the next link command; also delete a directory that is
1760  # left behind by Apple's compiler.  We do this before executing the actions.
1761  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_link
1766ac_configure_args_raw=
1767for ac_arg
1768do
1769  case $ac_arg in
1770  *\'*)
1771    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772  esac
1773  as_fn_append ac_configure_args_raw " '$ac_arg'"
1774done
1775
1776case $ac_configure_args_raw in
1777  *$as_nl*)
1778    ac_safe_unquote= ;;
1779  *)
1780    ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1781    ac_unsafe_a="$ac_unsafe_z#~"
1782    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1783    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1784esac
1785
1786cat >config.log <<_ACEOF
1787This file contains any messages produced by compilers while
1788running configure, to aid debugging if configure makes a mistake.
1789
1790It was created by MCT $as_me 2.10, which was
1791generated by GNU Autoconf 2.70.  Invocation command line was
1792
1793  $ $0$ac_configure_args_raw
1794
1795_ACEOF
1796exec 5>>config.log
1797{
1798cat <<_ASUNAME
1799## --------- ##
1800## Platform. ##
1801## --------- ##
1802
1803hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808
1809/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1811
1812/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1813/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1814/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1816/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1817/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1818/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1819
1820_ASUNAME
1821
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  case $as_dir in #(((
1827    '') as_dir=./ ;;
1828    */) ;;
1829    *) as_dir=$as_dir/ ;;
1830  esac
1831    printf "%s\n" "PATH: $as_dir"
1832  done
1833IFS=$as_save_IFS
1834
1835} >&5
1836
1837cat >&5 <<_ACEOF
1838
1839
1840## ----------- ##
1841## Core tests. ##
1842## ----------- ##
1843
1844_ACEOF
1845
1846
1847# Keep a trace of the command line.
1848# Strip out --no-create and --no-recursion so they do not pile up.
1849# Strip out --silent because we don't want to record it for future runs.
1850# Also quote any args containing shell meta-characters.
1851# Make two passes to allow for proper duplicate-argument suppression.
1852ac_configure_args=
1853ac_configure_args0=
1854ac_configure_args1=
1855ac_must_keep_next=false
1856for ac_pass in 1 2
1857do
1858  for ac_arg
1859  do
1860    case $ac_arg in
1861    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863    | -silent | --silent | --silen | --sile | --sil)
1864      continue ;;
1865    *\'*)
1866      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867    esac
1868    case $ac_pass in
1869    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1870    2)
1871      as_fn_append ac_configure_args1 " '$ac_arg'"
1872      if test $ac_must_keep_next = true; then
1873        ac_must_keep_next=false # Got value, back to normal.
1874      else
1875        case $ac_arg in
1876          *=* | --config-cache | -C | -disable-* | --disable-* \
1877          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879          | -with-* | --with-* | -without-* | --without-* | --x)
1880            case "$ac_configure_args0 " in
1881              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882            esac
1883            ;;
1884          -* ) ac_must_keep_next=true ;;
1885        esac
1886      fi
1887      as_fn_append ac_configure_args " '$ac_arg'"
1888      ;;
1889    esac
1890  done
1891done
1892{ ac_configure_args0=; unset ac_configure_args0;}
1893{ ac_configure_args1=; unset ac_configure_args1;}
1894
1895# When interrupted or exit'd, cleanup temporary files, and complete
1896# config.log.  We remove comments because anyway the quotes in there
1897# would cause problems or look ugly.
1898# WARNING: Use '\'' to represent an apostrophe within the trap.
1899# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900trap 'exit_status=$?
1901  # Sanitize IFS.
1902  IFS=" ""      $as_nl"
1903  # Save into config.log some information that might help in debugging.
1904  {
1905    echo
1906
1907    printf "%s\n" "## ---------------- ##
1908## Cache variables. ##
1909## ---------------- ##"
1910    echo
1911    # The following way of writing the cache mishandles newlines in values,
1912(
1913  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914    eval ac_val=\$$ac_var
1915    case $ac_val in #(
1916    *${as_nl}*)
1917      case $ac_var in #(
1918      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920      esac
1921      case $ac_var in #(
1922      _ | IFS | as_nl) ;; #(
1923      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924      *) { eval $ac_var=; unset $ac_var;} ;;
1925      esac ;;
1926    esac
1927  done
1928  (set) 2>&1 |
1929    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930    *${as_nl}ac_space=\ *)
1931      sed -n \
1932        "s/'\''/'\''\\\\'\'''\''/g;
1933          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934      ;; #(
1935    *)
1936      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937      ;;
1938    esac |
1939    sort
1940)
1941    echo
1942
1943    printf "%s\n" "## ----------------- ##
1944## Output variables. ##
1945## ----------------- ##"
1946    echo
1947    for ac_var in $ac_subst_vars
1948    do
1949      eval ac_val=\$$ac_var
1950      case $ac_val in
1951      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952      esac
1953      printf "%s\n" "$ac_var='\''$ac_val'\''"
1954    done | sort
1955    echo
1956
1957    if test -n "$ac_subst_files"; then
1958      printf "%s\n" "## ------------------- ##
1959## File substitutions. ##
1960## ------------------- ##"
1961      echo
1962      for ac_var in $ac_subst_files
1963      do
1964        eval ac_val=\$$ac_var
1965        case $ac_val in
1966        *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967        esac
1968        printf "%s\n" "$ac_var='\''$ac_val'\''"
1969      done | sort
1970      echo
1971    fi
1972
1973    if test -s confdefs.h; then
1974      printf "%s\n" "## ----------- ##
1975## confdefs.h. ##
1976## ----------- ##"
1977      echo
1978      cat confdefs.h
1979      echo
1980    fi
1981    test "$ac_signal" != 0 &&
1982      printf "%s\n" "$as_me: caught signal $ac_signal"
1983    printf "%s\n" "$as_me: exit $exit_status"
1984  } >&5
1985  rm -f core *.core core.conftest.* &&
1986    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987    exit $exit_status
1988' 0
1989for ac_signal in 1 2 13 15; do
1990  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1991done
1992ac_signal=0
1993
1994# confdefs.h avoids OS command line length limits that DEFS can exceed.
1995rm -f -r conftest* confdefs.h
1996
1997printf "%s\n" "/* confdefs.h */" > confdefs.h
1998
1999# Predefined preprocessor variables.
2000
2001printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2002
2003printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2004
2005printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2006
2007printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2008
2009printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2010
2011printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2012
2013
2014# Let the site file select an alternate cache file if it wants to.
2015# Prefer an explicitly selected file to automatically selected ones.
2016if test -n "$CONFIG_SITE"; then
2017  ac_site_files="$CONFIG_SITE"
2018elif test "x$prefix" != xNONE; then
2019  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2020else
2021  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2022fi
2023
2024for ac_site_file in $ac_site_files
2025do
2026  case $ac_site_file in #(
2027  */*) :
2028     ;; #(
2029  *) :
2030    ac_site_file=./$ac_site_file ;;
2031esac
2032  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2033    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2034printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2035    sed 's/^/| /' "$ac_site_file" >&5
2036    . "$ac_site_file" \
2037      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2038printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2039as_fn_error $? "failed to load site script $ac_site_file
2040See \`config.log' for more details" "$LINENO" 5; }
2041  fi
2042done
2043
2044if test -r "$cache_file"; then
2045  # Some versions of bash will fail to source /dev/null (special files
2046  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2047  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2048    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2049printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2050    case $cache_file in
2051      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2052      *)                      . "./$cache_file";;
2053    esac
2054  fi
2055else
2056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2057printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2058  >$cache_file
2059fi
2060
2061# Test code for whether the C compiler supports C89 (global declarations)
2062ac_c_conftest_c89_globals='
2063/* Does the compiler advertise C89 conformance?
2064   Do not test the value of __STDC__, because some compilers set it to 0
2065   while being otherwise adequately conformant. */
2066#if !defined __STDC__
2067# error "Compiler does not advertise C89 conformance"
2068#endif
2069
2070#include <stddef.h>
2071#include <stdarg.h>
2072struct stat;
2073/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2074struct buf { int x; };
2075struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2076static char *e (p, i)
2077     char **p;
2078     int i;
2079{
2080  return p[i];
2081}
2082static char *f (char * (*g) (char **, int), char **p, ...)
2083{
2084  char *s;
2085  va_list v;
2086  va_start (v,p);
2087  s = g (p, va_arg (v,int));
2088  va_end (v);
2089  return s;
2090}
2091
2092/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2093   function prototypes and stuff, but not \xHH hex character constants.
2094   These do not provoke an error unfortunately, instead are silently treated
2095   as an "x".  The following induces an error, until -std is added to get
2096   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2097   array size at least.  It is necessary to write \x00 == 0 to get something
2098   that is true only with -std.  */
2099int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2100
2101/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2102   inside strings and character constants.  */
2103#define FOO(x) '\''x'\''
2104int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2105
2106int test (int i, double x);
2107struct s1 {int (*f) (int a);};
2108struct s2 {int (*f) (double a);};
2109int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2110               int, int);'
2111
2112# Test code for whether the C compiler supports C89 (body of main).
2113ac_c_conftest_c89_main='
2114ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2115'
2116
2117# Test code for whether the C compiler supports C99 (global declarations)
2118ac_c_conftest_c99_globals='
2119// Does the compiler advertise C99 conformance?
2120#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2121# error "Compiler does not advertise C99 conformance"
2122#endif
2123
2124#include <stdbool.h>
2125extern int puts (const char *);
2126extern int printf (const char *, ...);
2127extern int dprintf (int, const char *, ...);
2128extern void *malloc (size_t);
2129
2130// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2131// dprintf is used instead of fprintf to avoid needing to declare
2132// FILE and stderr.
2133#define debug(...) dprintf (2, __VA_ARGS__)
2134#define showlist(...) puts (#__VA_ARGS__)
2135#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2136static void
2137test_varargs_macros (void)
2138{
2139  int x = 1234;
2140  int y = 5678;
2141  debug ("Flag");
2142  debug ("X = %d\n", x);
2143  showlist (The first, second, and third items.);
2144  report (x>y, "x is %d but y is %d", x, y);
2145}
2146
2147// Check long long types.
2148#define BIG64 18446744073709551615ull
2149#define BIG32 4294967295ul
2150#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2151#if !BIG_OK
2152  #error "your preprocessor is broken"
2153#endif
2154#if BIG_OK
2155#else
2156  #error "your preprocessor is broken"
2157#endif
2158static long long int bignum = -9223372036854775807LL;
2159static unsigned long long int ubignum = BIG64;
2160
2161struct incomplete_array
2162{
2163  int datasize;
2164  double data[];
2165};
2166
2167struct named_init {
2168  int number;
2169  const wchar_t *name;
2170  double average;
2171};
2172
2173typedef const char *ccp;
2174
2175static inline int
2176test_restrict (ccp restrict text)
2177{
2178  // See if C++-style comments work.
2179  // Iterate through items via the restricted pointer.
2180  // Also check for declarations in for loops.
2181  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2182    continue;
2183  return 0;
2184}
2185
2186// Check varargs and va_copy.
2187static bool
2188test_varargs (const char *format, ...)
2189{
2190  va_list args;
2191  va_start (args, format);
2192  va_list args_copy;
2193  va_copy (args_copy, args);
2194
2195  const char *str = "";
2196  int number = 0;
2197  float fnumber = 0;
2198
2199  while (*format)
2200    {
2201      switch (*format++)
2202        {
2203        case '\''s'\'': // string
2204          str = va_arg (args_copy, const char *);
2205          break;
2206        case '\''d'\'': // int
2207          number = va_arg (args_copy, int);
2208          break;
2209        case '\''f'\'': // float
2210          fnumber = va_arg (args_copy, double);
2211          break;
2212        default:
2213          break;
2214        }
2215    }
2216  va_end (args_copy);
2217  va_end (args);
2218
2219  return *str && number && fnumber;
2220}
2221'
2222
2223# Test code for whether the C compiler supports C99 (body of main).
2224ac_c_conftest_c99_main='
2225  // Check bool.
2226  _Bool success = false;
2227  success |= (argc != 0);
2228
2229  // Check restrict.
2230  if (test_restrict ("String literal") == 0)
2231    success = true;
2232  char *restrict newvar = "Another string";
2233
2234  // Check varargs.
2235  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2236  test_varargs_macros ();
2237
2238  // Check flexible array members.
2239  struct incomplete_array *ia =
2240    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2241  ia->datasize = 10;
2242  for (int i = 0; i < ia->datasize; ++i)
2243    ia->data[i] = i * 1.234;
2244
2245  // Check named initializers.
2246  struct named_init ni = {
2247    .number = 34,
2248    .name = L"Test wide string",
2249    .average = 543.34343,
2250  };
2251
2252  ni.number = 58;
2253
2254  int dynamic_array[ni.number];
2255  dynamic_array[0] = argv[0][0];
2256  dynamic_array[ni.number - 1] = 543;
2257
2258  // work around unused variable warnings
2259  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2260         || dynamic_array[ni.number - 1] != 543);
2261'
2262
2263# Test code for whether the C compiler supports C11 (global declarations)
2264ac_c_conftest_c11_globals='
2265// Does the compiler advertise C11 conformance?
2266#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2267# error "Compiler does not advertise C11 conformance"
2268#endif
2269
2270// Check _Alignas.
2271char _Alignas (double) aligned_as_double;
2272char _Alignas (0) no_special_alignment;
2273extern char aligned_as_int;
2274char _Alignas (0) _Alignas (int) aligned_as_int;
2275
2276// Check _Alignof.
2277enum
2278{
2279  int_alignment = _Alignof (int),
2280  int_array_alignment = _Alignof (int[100]),
2281  char_alignment = _Alignof (char)
2282};
2283_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2284
2285// Check _Noreturn.
2286int _Noreturn does_not_return (void) { for (;;) continue; }
2287
2288// Check _Static_assert.
2289struct test_static_assert
2290{
2291  int x;
2292  _Static_assert (sizeof (int) <= sizeof (long int),
2293                  "_Static_assert does not work in struct");
2294  long int y;
2295};
2296
2297// Check UTF-8 literals.
2298#define u8 syntax error!
2299char const utf8_literal[] = u8"happens to be ASCII" "another string";
2300
2301// Check duplicate typedefs.
2302typedef long *long_ptr;
2303typedef long int *long_ptr;
2304typedef long_ptr long_ptr;
2305
2306// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2307struct anonymous
2308{
2309  union {
2310    struct { int i; int j; };
2311    struct { int k; long int l; } w;
2312  };
2313  int m;
2314} v1;
2315'
2316
2317# Test code for whether the C compiler supports C11 (body of main).
2318ac_c_conftest_c11_main='
2319  _Static_assert ((offsetof (struct anonymous, i)
2320                   == offsetof (struct anonymous, w.k)),
2321                  "Anonymous union alignment botch");
2322  v1.i = 2;
2323  v1.w.k = 5;
2324  ok |= v1.i != 5;
2325'
2326
2327# Test code for whether the C compiler supports C11 (complete).
2328ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2329${ac_c_conftest_c99_globals}
2330${ac_c_conftest_c11_globals}
2331
2332int
2333main (int argc, char **argv)
2334{
2335  int ok = 0;
2336  ${ac_c_conftest_c89_main}
2337  ${ac_c_conftest_c99_main}
2338  ${ac_c_conftest_c11_main}
2339  return ok;
2340}
2341"
2342
2343# Test code for whether the C compiler supports C99 (complete).
2344ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2345${ac_c_conftest_c99_globals}
2346
2347int
2348main (int argc, char **argv)
2349{
2350  int ok = 0;
2351  ${ac_c_conftest_c89_main}
2352  ${ac_c_conftest_c99_main}
2353  return ok;
2354}
2355"
2356
2357# Test code for whether the C compiler supports C89 (complete).
2358ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2359
2360int
2361main (int argc, char **argv)
2362{
2363  int ok = 0;
2364  ${ac_c_conftest_c89_main}
2365  return ok;
2366}
2367"
2368
2369as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2370as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2371as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2372as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2373as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2374as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2375as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2376as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2377as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2378
2379# Auxiliary files required by this configure script.
2380ac_aux_files="config.guess config.sub"
2381
2382# Locations in which to look for auxiliary files.
2383ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2384
2385# Search for a directory containing all of the required auxiliary files,
2386# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2387# If we don't find one directory that contains all the files we need,
2388# we report the set of missing files from the *first* directory in
2389# $ac_aux_dir_candidates and give up.
2390ac_missing_aux_files=""
2391ac_first_candidate=:
2392printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394as_found=false
2395for as_dir in $ac_aux_dir_candidates
2396do
2397  IFS=$as_save_IFS
2398  case $as_dir in #(((
2399    '') as_dir=./ ;;
2400    */) ;;
2401    *) as_dir=$as_dir/ ;;
2402  esac
2403  as_found=:
2404
2405  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2406  ac_aux_dir_found=yes
2407  ac_install_sh=
2408  for ac_aux in $ac_aux_files
2409  do
2410    # As a special case, if "install-sh" is required, that requirement
2411    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2412    # and $ac_install_sh is set appropriately for whichever one is found.
2413    if test x"$ac_aux" = x"install-sh"
2414    then
2415      if test -f "${as_dir}install-sh"; then
2416        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2417        ac_install_sh="${as_dir}install-sh -c"
2418      elif test -f "${as_dir}install.sh"; then
2419        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2420        ac_install_sh="${as_dir}install.sh -c"
2421      elif test -f "${as_dir}shtool"; then
2422        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2423        ac_install_sh="${as_dir}shtool install -c"
2424      else
2425        ac_aux_dir_found=no
2426        if $ac_first_candidate; then
2427          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2428        else
2429          break
2430        fi
2431      fi
2432    else
2433      if test -f "${as_dir}${ac_aux}"; then
2434        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2435      else
2436        ac_aux_dir_found=no
2437        if $ac_first_candidate; then
2438          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2439        else
2440          break
2441        fi
2442      fi
2443    fi
2444  done
2445  if test "$ac_aux_dir_found" = yes; then
2446    ac_aux_dir="$as_dir"
2447    break
2448  fi
2449  ac_first_candidate=false
2450
2451  as_found=false
2452done
2453IFS=$as_save_IFS
2454if $as_found
2455then :
2456
2457else $as_nop
2458  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2459fi
2460
2461
2462# These three variables are undocumented and unsupported,
2463# and are intended to be withdrawn in a future Autoconf release.
2464# They can cause serious problems if a builder's source tree is in a directory
2465# whose full name contains unusual characters.
2466if test -f "${ac_aux_dir}config.guess"; then
2467  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2468fi
2469if test -f "${ac_aux_dir}config.sub"; then
2470  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2471fi
2472if test -f "$ac_aux_dir/configure"; then
2473  ac_configure="$SHELL ${ac_aux_dir}configure"
2474fi
2475
2476# Check that the precious variables saved in the cache have kept the same
2477# value.
2478ac_cache_corrupted=false
2479for ac_var in $ac_precious_vars; do
2480  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481  eval ac_new_set=\$ac_env_${ac_var}_set
2482  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483  eval ac_new_val=\$ac_env_${ac_var}_value
2484  case $ac_old_set,$ac_new_set in
2485    set,)
2486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488      ac_cache_corrupted=: ;;
2489    ,set)
2490      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492      ac_cache_corrupted=: ;;
2493    ,);;
2494    *)
2495      if test "x$ac_old_val" != "x$ac_new_val"; then
2496        # differences in whitespace do not lead to failure.
2497        ac_old_val_w=`echo x $ac_old_val`
2498        ac_new_val_w=`echo x $ac_new_val`
2499        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502          ac_cache_corrupted=:
2503        else
2504          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506          eval $ac_var=\$ac_old_val
2507        fi
2508        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2509printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2510        { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2511printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2512      fi;;
2513  esac
2514  # Pass precious variables to config.status.
2515  if test "$ac_new_set" = set; then
2516    case $ac_new_val in
2517    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518    *) ac_arg=$ac_var=$ac_new_val ;;
2519    esac
2520    case " $ac_configure_args " in
2521      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2522      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523    esac
2524  fi
2525done
2526if $ac_cache_corrupted; then
2527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2531  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2532            and start over" "$LINENO" 5
2533fi
2534## -------------------- ##
2535## Main body of script. ##
2536## -------------------- ##
2537
2538ac_ext=c
2539ac_cpp='$CPP $CPPFLAGS'
2540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543
2544
2545
2546# PROCESS THE FOLLOWING MAKEFILES
2547
2548ac_config_files="$ac_config_files Makefile.conf"
2549
2550ac_config_headers="$ac_config_headers config.h"
2551
2552
2553# DECLARE PACKAGE OPTIONS
2554
2555# Check whether --enable-mpiserial was given.
2556if test ${enable_mpiserial+y}
2557then :
2558  enableval=$enable_mpiserial; DONOTCHECKMPI="DONOTCHECKMPI"
2559
2560fi
2561
2562
2563# Check whether --enable-debugging was given.
2564if test ${enable_debugging+y}
2565then :
2566  enableval=$enable_debugging; DEBUGGING="ENABLED"
2567
2568fi
2569
2570
2571# Check whether --enable-selectedrealkind was given.
2572if test ${enable_selectedrealkind+y}
2573then :
2574  enableval=$enable_selectedrealkind; SRKDEF="SELECTEDREALKIND"
2575
2576fi
2577
2578
2579# Check whether --enable-sequence was given.
2580if test ${enable_sequence+y}
2581then :
2582  enableval=$enable_sequence; SRKDEF="SEQUENCE"
2583fi
2584
2585
2586# Check whether --enable-babel was given.
2587if test ${enable_babel+y}
2588then :
2589  enableval=$enable_babel; SRKDEF="SEQUENCE"
2590fi
2591
2592
2593
2594
2595# DECLARE THE FOLLOWING PRECIOUS VARIABLES
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618# INCLUDE BABELROOT and COMPILER_ROOT in Makefile.conf(autoconf output)
2619
2620
2621
2622
2623
2624# SET TEMPORARY VARIABLES
2625
2626# OS AND PLATFORM NAME
2627test "$osname"=NONE && osname=`uname -s`
2628test "$machinename"=NONE && machinename=`uname -m`
2629fullhostname=`hostname -f`
2630
2631# START TESTS
2632
2633# CHECK FOR THE C COMPILER
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648if test -n "$ac_tool_prefix"; then
2649  for ac_prog in cc
2650  do
2651    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654printf %s "checking for $ac_word... " >&6; }
2655if test ${ac_cv_prog_CC+y}
2656then :
2657  printf %s "(cached) " >&6
2658else $as_nop
2659  if test -n "$CC"; then
2660  ac_cv_prog_CC="$CC" # Let the user override the test.
2661else
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  case $as_dir in #(((
2667    '') as_dir=./ ;;
2668    */) ;;
2669    *) as_dir=$as_dir/ ;;
2670  esac
2671    for ac_exec_ext in '' $ac_executable_extensions; do
2672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2673    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678  done
2679IFS=$as_save_IFS
2680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686printf "%s\n" "$CC" >&6; }
2687else
2688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689printf "%s\n" "no" >&6; }
2690fi
2691
2692
2693    test -n "$CC" && break
2694  done
2695fi
2696if test -z "$CC"; then
2697  ac_ct_CC=$CC
2698  for ac_prog in cc
2699do
2700  # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703printf %s "checking for $ac_word... " >&6; }
2704if test ${ac_cv_prog_ac_ct_CC+y}
2705then :
2706  printf %s "(cached) " >&6
2707else $as_nop
2708  if test -n "$ac_ct_CC"; then
2709  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  case $as_dir in #(((
2716    '') as_dir=./ ;;
2717    */) ;;
2718    *) as_dir=$as_dir/ ;;
2719  esac
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2722    ac_cv_prog_ac_ct_CC="$ac_prog"
2723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733if test -n "$ac_ct_CC"; then
2734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2735printf "%s\n" "$ac_ct_CC" >&6; }
2736else
2737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738printf "%s\n" "no" >&6; }
2739fi
2740
2741
2742  test -n "$ac_ct_CC" && break
2743done
2744
2745  if test "x$ac_ct_CC" = x; then
2746    CC=""
2747  else
2748    case $cross_compiling:$ac_tool_warned in
2749yes:)
2750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752ac_tool_warned=yes ;;
2753esac
2754    CC=$ac_ct_CC
2755  fi
2756fi
2757
2758
2759test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error $? "no acceptable C compiler found in \$PATH
2762See \`config.log' for more details" "$LINENO" 5; }
2763
2764# Provide some information about the compiler.
2765printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2766set X $ac_compile
2767ac_compiler=$2
2768for ac_option in --version -v -V -qversion -version; do
2769  { { ac_try="$ac_compiler $ac_option >&5"
2770case "(($ac_try" in
2771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772  *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775printf "%s\n" "$ac_try_echo"; } >&5
2776  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2777  ac_status=$?
2778  if test -s conftest.err; then
2779    sed '10a\
2780... rest of stderr output deleted ...
2781         10q' conftest.err >conftest.er1
2782    cat conftest.er1 >&5
2783  fi
2784  rm -f conftest.er1 conftest.err
2785  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786  test $ac_status = 0; }
2787done
2788
2789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790/* end confdefs.h.  */
2791
2792int
2793main (void)
2794{
2795
2796  ;
2797  return 0;
2798}
2799_ACEOF
2800ac_clean_files_save=$ac_clean_files
2801ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2802# Try to create an executable without -o first, disregard a.out.
2803# It will help us diagnose broken compilers, and finding out an intuition
2804# of exeext.
2805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2806printf %s "checking whether the C compiler works... " >&6; }
2807ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2808
2809# The possible output files:
2810ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2811
2812ac_rmfiles=
2813for ac_file in $ac_files
2814do
2815  case $ac_file in
2816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2817    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818  esac
2819done
2820rm -f $ac_rmfiles
2821
2822if { { ac_try="$ac_link_default"
2823case "(($ac_try" in
2824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825  *) ac_try_echo=$ac_try;;
2826esac
2827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828printf "%s\n" "$ac_try_echo"; } >&5
2829  (eval "$ac_link_default") 2>&5
2830  ac_status=$?
2831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832  test $ac_status = 0; }
2833then :
2834  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
2839for ac_file in $ac_files ''
2840do
2841  test -f "$ac_file" || continue
2842  case $ac_file in
2843    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2844        ;;
2845    [ab].out )
2846        # We found the default executable, but exeext='' is most
2847        # certainly right.
2848        break;;
2849    *.* )
2850        if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2851        then :; else
2852           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853        fi
2854        # We set ac_cv_exeext here because the later test for it is not
2855        # safe: cross compilers may not add the suffix if given an `-o'
2856        # argument, so we may need to know it at that point already.
2857        # Even if this section looks crufty: it has the advantage of
2858        # actually working.
2859        break;;
2860    * )
2861        break;;
2862  esac
2863done
2864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866else $as_nop
2867  ac_file=''
2868fi
2869if test -z "$ac_file"
2870then :
2871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872printf "%s\n" "no" >&6; }
2873printf "%s\n" "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2878as_fn_error 77 "C compiler cannot create executables
2879See \`config.log' for more details" "$LINENO" 5; }
2880else $as_nop
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882printf "%s\n" "yes" >&6; }
2883fi
2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2885printf %s "checking for C compiler default output file name... " >&6; }
2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2887printf "%s\n" "$ac_file" >&6; }
2888ac_exeext=$ac_cv_exeext
2889
2890rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2891ac_clean_files=$ac_clean_files_save
2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2893printf %s "checking for suffix of executables... " >&6; }
2894if { { ac_try="$ac_link"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900printf "%s\n" "$ac_try_echo"; } >&5
2901  (eval "$ac_link") 2>&5
2902  ac_status=$?
2903  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904  test $ac_status = 0; }
2905then :
2906  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
2910for ac_file in conftest.exe conftest conftest.*; do
2911  test -f "$ac_file" || continue
2912  case $ac_file in
2913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2914    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915          break;;
2916    * ) break;;
2917  esac
2918done
2919else $as_nop
2920  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2922as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details" "$LINENO" 5; }
2924fi
2925rm -f conftest conftest$ac_cv_exeext
2926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2927printf "%s\n" "$ac_cv_exeext" >&6; }
2928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
2932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h.  */
2934#include <stdio.h>
2935int
2936main (void)
2937{
2938FILE *f = fopen ("conftest.out", "w");
2939 return ferror (f) || fclose (f) != 0;
2940
2941  ;
2942  return 0;
2943}
2944_ACEOF
2945ac_clean_files="$ac_clean_files conftest.out"
2946# Check that the compiler produces executables we can run.  If not, either
2947# the compiler is broken, or we cross compile.
2948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2949printf %s "checking whether we are cross compiling... " >&6; }
2950if test "$cross_compiling" != yes; then
2951  { { ac_try="$ac_link"
2952case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957printf "%s\n" "$ac_try_echo"; } >&5
2958  (eval "$ac_link") 2>&5
2959  ac_status=$?
2960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961  test $ac_status = 0; }
2962  if { ac_try='./conftest$ac_cv_exeext'
2963  { { case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968printf "%s\n" "$ac_try_echo"; } >&5
2969  (eval "$ac_try") 2>&5
2970  ac_status=$?
2971  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972  test $ac_status = 0; }; }; then
2973    cross_compiling=no
2974  else
2975    if test "$cross_compiling" = maybe; then
2976        cross_compiling=yes
2977    else
2978        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error 77 "cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details" "$LINENO" 5; }
2983    fi
2984  fi
2985fi
2986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987printf "%s\n" "$cross_compiling" >&6; }
2988
2989rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2990ac_clean_files=$ac_clean_files_save
2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2992printf %s "checking for suffix of object files... " >&6; }
2993if test ${ac_cv_objext+y}
2994then :
2995  printf %s "(cached) " >&6
2996else $as_nop
2997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h.  */
2999
3000int
3001main (void)
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008rm -f conftest.o conftest.obj
3009if { { ac_try="$ac_compile"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015printf "%s\n" "$ac_try_echo"; } >&5
3016  (eval "$ac_compile") 2>&5
3017  ac_status=$?
3018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019  test $ac_status = 0; }
3020then :
3021  for ac_file in conftest.o conftest.obj conftest.*; do
3022  test -f "$ac_file" || continue;
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3025    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026       break;;
3027  esac
3028done
3029else $as_nop
3030  printf "%s\n" "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3035as_fn_error $? "cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details" "$LINENO" 5; }
3037fi
3038rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039fi
3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3041printf "%s\n" "$ac_cv_objext" >&6; }
3042OBJEXT=$ac_cv_objext
3043ac_objext=$OBJEXT
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3045printf %s "checking whether the compiler supports GNU C... " >&6; }
3046if test ${ac_cv_c_compiler_gnu+y}
3047then :
3048  printf %s "(cached) " >&6
3049else $as_nop
3050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h.  */
3052
3053int
3054main (void)
3055{
3056#ifndef __GNUC__
3057       choke me
3058#endif
3059
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064if ac_fn_c_try_compile "$LINENO"
3065then :
3066  ac_compiler_gnu=yes
3067else $as_nop
3068  ac_compiler_gnu=no
3069fi
3070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3071ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072
3073fi
3074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3075printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078if test $ac_compiler_gnu = yes; then
3079  GCC=yes
3080else
3081  GCC=
3082fi
3083ac_test_CFLAGS=${CFLAGS+y}
3084ac_save_CFLAGS=$CFLAGS
3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3086printf %s "checking whether $CC accepts -g... " >&6; }
3087if test ${ac_cv_prog_cc_g+y}
3088then :
3089  printf %s "(cached) " >&6
3090else $as_nop
3091  ac_save_c_werror_flag=$ac_c_werror_flag
3092   ac_c_werror_flag=yes
3093   ac_cv_prog_cc_g=no
3094   CFLAGS="-g"
3095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h.  */
3097
3098int
3099main (void)
3100{
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106if ac_fn_c_try_compile "$LINENO"
3107then :
3108  ac_cv_prog_cc_g=yes
3109else $as_nop
3110  CFLAGS=""
3111      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h.  */
3113
3114int
3115main (void)
3116{
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"
3123then :
3124
3125else $as_nop
3126  ac_c_werror_flag=$ac_save_c_werror_flag
3127         CFLAGS="-g"
3128         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129/* end confdefs.h.  */
3130
3131int
3132main (void)
3133{
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139if ac_fn_c_try_compile "$LINENO"
3140then :
3141  ac_cv_prog_cc_g=yes
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3144fi
3145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3146fi
3147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3148   ac_c_werror_flag=$ac_save_c_werror_flag
3149fi
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3152if test $ac_test_CFLAGS; then
3153  CFLAGS=$ac_save_CFLAGS
3154elif test $ac_cv_prog_cc_g = yes; then
3155  if test "$GCC" = yes; then
3156    CFLAGS="-g -O2"
3157  else
3158    CFLAGS="-g"
3159  fi
3160else
3161  if test "$GCC" = yes; then
3162    CFLAGS="-O2"
3163  else
3164    CFLAGS=
3165  fi
3166fi
3167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3168printf %s "checking for $CC option to enable C11 features... " >&6; }
3169if test ${ac_cv_prog_cc_c11+y}
3170then :
3171  printf %s "(cached) " >&6
3172else $as_nop
3173  ac_cv_prog_cc_c11=no
3174ac_save_CC=$CC
3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h.  */
3177$ac_c_conftest_c11_program
3178_ACEOF
3179for ac_arg in '' -std=gnu11
3180do
3181  CC="$ac_save_CC $ac_arg"
3182  if ac_fn_c_try_compile "$LINENO"
3183then :
3184  ac_cv_prog_cc_c11=$ac_arg
3185fi
3186rm -f core conftest.err conftest.$ac_objext conftest.beam
3187  test "x$ac_cv_prog_cc_c11" != "xno" && break
3188done
3189rm -f conftest.$ac_ext
3190CC=$ac_save_CC
3191
3192fi
3193# AC_CACHE_VAL
3194ac_prog_cc_stdc_options=
3195case "x$ac_cv_prog_cc_c11" in #(
3196  x) :
3197    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3198printf "%s\n" "none needed" >&6; } ;; #(
3199  xno) :
3200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3201printf "%s\n" "unsupported" >&6; } ;; #(
3202  *) :
3203    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
3204    CC="$CC$ac_prog_cc_stdc_options"
3205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3206printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
3207esac
3208if test "x$ac_cv_prog_cc_c11" != xno
3209then :
3210  ac_prog_cc_stdc=c11
3211                 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3212else $as_nop
3213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3214printf %s "checking for $CC option to enable C99 features... " >&6; }
3215if test ${ac_cv_prog_cc_c99+y}
3216then :
3217  printf %s "(cached) " >&6
3218else $as_nop
3219  ac_cv_prog_cc_c99=no
3220ac_save_CC=$CC
3221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h.  */
3223$ac_c_conftest_c89_program
3224_ACEOF
3225for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
3226do
3227  CC="$ac_save_CC $ac_arg"
3228  if ac_fn_c_try_compile "$LINENO"
3229then :
3230  ac_cv_prog_cc_c99=$ac_arg
3231fi
3232rm -f core conftest.err conftest.$ac_objext conftest.beam
3233  test "x$ac_cv_prog_cc_c99" != "xno" && break
3234done
3235rm -f conftest.$ac_ext
3236CC=$ac_save_CC
3237
3238fi
3239# AC_CACHE_VAL
3240ac_prog_cc_stdc_options=
3241case "x$ac_cv_prog_cc_c99" in #(
3242  x) :
3243    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244printf "%s\n" "none needed" >&6; } ;; #(
3245  xno) :
3246    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247printf "%s\n" "unsupported" >&6; } ;; #(
3248  *) :
3249    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
3250    CC="$CC$ac_prog_cc_stdc_options"
3251    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3252printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
3253esac
3254if test "x$ac_cv_prog_cc_c99" != xno
3255then :
3256  ac_prog_cc_stdc=c99
3257                    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3258else $as_nop
3259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3260printf %s "checking for $CC option to enable C89 features... " >&6; }
3261if test ${ac_cv_prog_cc_c89+y}
3262then :
3263  printf %s "(cached) " >&6
3264else $as_nop
3265  ac_cv_prog_cc_c89=no
3266ac_save_CC=$CC
3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268/* end confdefs.h.  */
3269$ac_c_conftest_c89_program
3270_ACEOF
3271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273do
3274  CC="$ac_save_CC $ac_arg"
3275  if ac_fn_c_try_compile "$LINENO"
3276then :
3277  ac_cv_prog_cc_c89=$ac_arg
3278fi
3279rm -f core conftest.err conftest.$ac_objext conftest.beam
3280  test "x$ac_cv_prog_cc_c89" != "xno" && break
3281done
3282rm -f conftest.$ac_ext
3283CC=$ac_save_CC
3284
3285fi
3286# AC_CACHE_VAL
3287ac_prog_cc_stdc_options=
3288case "x$ac_cv_prog_cc_c89" in #(
3289  x) :
3290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3291printf "%s\n" "none needed" >&6; } ;; #(
3292  xno) :
3293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3294printf "%s\n" "unsupported" >&6; } ;; #(
3295  *) :
3296    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
3297    CC="$CC$ac_prog_cc_stdc_options"
3298    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3299printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
3300esac
3301if test "x$ac_cv_prog_cc_c89" != xno
3302then :
3303  ac_prog_cc_stdc=c89
3304                       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3305else $as_nop
3306  ac_prog_cc_stdc=no
3307                       ac_cv_prog_cc_stdc=no
3308fi
3309
3310fi
3311
3312fi
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321# CHECK FOR BYTE ORDERING
3322
3323ac_header= ac_cache=
3324for ac_item in $ac_header_c_list
3325do
3326  if test $ac_cache; then
3327    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3328    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3329      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3330    fi
3331    ac_header= ac_cache=
3332  elif test $ac_header; then
3333    ac_cache=$ac_item
3334  else
3335    ac_header=$ac_item
3336  fi
3337done
3338
3339
3340
3341
3342
3343
3344
3345
3346if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3347then :
3348
3349printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3350
3351fi
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3353printf %s "checking whether byte ordering is bigendian... " >&6; }
3354if test ${ac_cv_c_bigendian+y}
3355then :
3356  printf %s "(cached) " >&6
3357else $as_nop
3358  ac_cv_c_bigendian=unknown
3359    # See if we're dealing with a universal compiler.
3360    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h.  */
3362#ifndef __APPLE_CC__
3363               not a universal capable compiler
3364             #endif
3365             typedef int dummy;
3366
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"
3369then :
3370
3371        # Check for potential -arch flags.  It is not universal unless
3372        # there are at least two -arch flags with different values.
3373        ac_arch=
3374        ac_prev=
3375        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3376         if test -n "$ac_prev"; then
3377           case $ac_word in
3378             i?86 | x86_64 | ppc | ppc64)
3379               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3380                 ac_arch=$ac_word
3381               else
3382                 ac_cv_c_bigendian=universal
3383                 break
3384               fi
3385               ;;
3386           esac
3387           ac_prev=
3388         elif test "x$ac_word" = "x-arch"; then
3389           ac_prev=arch
3390         fi
3391       done
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3394    if test $ac_cv_c_bigendian = unknown; then
3395      # See if sys/param.h defines the BYTE_ORDER macro.
3396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398#include <sys/types.h>
3399             #include <sys/param.h>
3400
3401int
3402main (void)
3403{
3404#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3405                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3406                     && LITTLE_ENDIAN)
3407              bogus endian macros
3408             #endif
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414if ac_fn_c_try_compile "$LINENO"
3415then :
3416  # It does; now see whether it defined to BIG_ENDIAN or not.
3417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419#include <sys/types.h>
3420                #include <sys/param.h>
3421
3422int
3423main (void)
3424{
3425#if BYTE_ORDER != BIG_ENDIAN
3426                 not big endian
3427                #endif
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"
3434then :
3435  ac_cv_c_bigendian=yes
3436else $as_nop
3437  ac_cv_c_bigendian=no
3438fi
3439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3442    fi
3443    if test $ac_cv_c_bigendian = unknown; then
3444      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3445      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447#include <limits.h>
3448
3449int
3450main (void)
3451{
3452#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3453              bogus endian macros
3454             #endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"
3461then :
3462  # It does; now see whether it defined to _BIG_ENDIAN or not.
3463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465#include <limits.h>
3466
3467int
3468main (void)
3469{
3470#ifndef _BIG_ENDIAN
3471                 not big endian
3472                #endif
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478if ac_fn_c_try_compile "$LINENO"
3479then :
3480  ac_cv_c_bigendian=yes
3481else $as_nop
3482  ac_cv_c_bigendian=no
3483fi
3484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3485fi
3486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3487    fi
3488    if test $ac_cv_c_bigendian = unknown; then
3489      # Compile a test program.
3490      if test "$cross_compiling" = yes
3491then :
3492  # Try to guess by grepping values from an object file.
3493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495unsigned short int ascii_mm[] =
3496                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3497                unsigned short int ascii_ii[] =
3498                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3499                int use_ascii (int i) {
3500                  return ascii_mm[i] + ascii_ii[i];
3501                }
3502                unsigned short int ebcdic_ii[] =
3503                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3504                unsigned short int ebcdic_mm[] =
3505                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3506                int use_ebcdic (int i) {
3507                  return ebcdic_mm[i] + ebcdic_ii[i];
3508                }
3509                extern int foo;
3510
3511int
3512main (void)
3513{
3514return use_ascii (foo) == use_ebcdic (foo);
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_compile "$LINENO"
3520then :
3521  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3522              ac_cv_c_bigendian=yes
3523            fi
3524            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3525              if test "$ac_cv_c_bigendian" = unknown; then
3526                ac_cv_c_bigendian=no
3527              else
3528                # finding both strings is unlikely to happen, but who knows?
3529                ac_cv_c_bigendian=unknown
3530              fi
3531            fi
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3534else $as_nop
3535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537$ac_includes_default
3538int
3539main (void)
3540{
3541
3542             /* Are we little or big endian?  From Harbison&Steele.  */
3543             union
3544             {
3545               long int l;
3546               char c[sizeof (long int)];
3547             } u;
3548             u.l = 1;
3549             return u.c[sizeof (long int) - 1] == 1;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555if ac_fn_c_try_run "$LINENO"
3556then :
3557  ac_cv_c_bigendian=no
3558else $as_nop
3559  ac_cv_c_bigendian=yes
3560fi
3561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3562  conftest.$ac_objext conftest.beam conftest.$ac_ext
3563fi
3564
3565    fi
3566fi
3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3568printf "%s\n" "$ac_cv_c_bigendian" >&6; }
3569 case $ac_cv_c_bigendian in #(
3570   yes)
3571     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
3572;; #(
3573   no)
3574      ;; #(
3575   universal)
3576
3577printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3578
3579     ;; #(
3580   *)
3581     as_fn_error $? "unknown endianness
3582 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3583 esac
3584
3585
3586# CHECK FOR THE FORTRAN COMPILER
3587# RLJ- specify the order, include PathScale and do not search for F77
3588ac_ext=${ac_fc_srcext-f}
3589ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3590ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3591ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3592if test -n "$ac_tool_prefix"; then
3593  for ac_prog in nagfor xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc xlf90 pgf90 pathf90 epcf90 pghpf
3594  do
3595    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598printf %s "checking for $ac_word... " >&6; }
3599if test ${ac_cv_prog_FC+y}
3600then :
3601  printf %s "(cached) " >&6
3602else $as_nop
3603  if test -n "$FC"; then
3604  ac_cv_prog_FC="$FC" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  case $as_dir in #(((
3611    '') as_dir=./ ;;
3612    */) ;;
3613    *) as_dir=$as_dir/ ;;
3614  esac
3615    for ac_exec_ext in '' $ac_executable_extensions; do
3616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622  done
3623IFS=$as_save_IFS
3624
3625fi
3626fi
3627FC=$ac_cv_prog_FC
3628if test -n "$FC"; then
3629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3630printf "%s\n" "$FC" >&6; }
3631else
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633printf "%s\n" "no" >&6; }
3634fi
3635
3636
3637    test -n "$FC" && break
3638  done
3639fi
3640if test -z "$FC"; then
3641  ac_ct_FC=$FC
3642  for ac_prog in nagfor xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc xlf90 pgf90 pathf90 epcf90 pghpf
3643do
3644  # Extract the first word of "$ac_prog", so it can be a program name with args.
3645set dummy $ac_prog; ac_word=$2
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647printf %s "checking for $ac_word... " >&6; }
3648if test ${ac_cv_prog_ac_ct_FC+y}
3649then :
3650  printf %s "(cached) " >&6
3651else $as_nop
3652  if test -n "$ac_ct_FC"; then
3653  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3654else
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  case $as_dir in #(((
3660    '') as_dir=./ ;;
3661    */) ;;
3662    *) as_dir=$as_dir/ ;;
3663  esac
3664    for ac_exec_ext in '' $ac_executable_extensions; do
3665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666    ac_cv_prog_ac_ct_FC="$ac_prog"
3667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671  done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676ac_ct_FC=$ac_cv_prog_ac_ct_FC
3677if test -n "$ac_ct_FC"; then
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3679printf "%s\n" "$ac_ct_FC" >&6; }
3680else
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683fi
3684
3685
3686  test -n "$ac_ct_FC" && break
3687done
3688
3689  if test "x$ac_ct_FC" = x; then
3690    FC=""
3691  else
3692    case $cross_compiling:$ac_tool_warned in
3693yes:)
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696ac_tool_warned=yes ;;
3697esac
3698    FC=$ac_ct_FC
3699  fi
3700fi
3701
3702
3703# Provide some information about the compiler.
3704printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3705set X $ac_compile
3706ac_compiler=$2
3707for ac_option in --version -v -V -qversion; do
3708  { { ac_try="$ac_compiler $ac_option >&5"
3709case "(($ac_try" in
3710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711  *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714printf "%s\n" "$ac_try_echo"; } >&5
3715  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3716  ac_status=$?
3717  if test -s conftest.err; then
3718    sed '10a\
3719... rest of stderr output deleted ...
3720         10q' conftest.err >conftest.er1
3721    cat conftest.er1 >&5
3722  fi
3723  rm -f conftest.er1 conftest.err
3724  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725  test $ac_status = 0; }
3726done
3727rm -f a.out
3728
3729# If we don't use `.F' as extension, the preprocessor is not run on the
3730# input file.  (Note that this only needs to work for GNU compilers.)
3731ac_save_ext=$ac_ext
3732ac_ext=F
3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5
3734printf %s "checking whether the compiler supports GNU Fortran... " >&6; }
3735if test ${ac_cv_fc_compiler_gnu+y}
3736then :
3737  printf %s "(cached) " >&6
3738else $as_nop
3739  cat > conftest.$ac_ext <<_ACEOF
3740      program main
3741#ifndef __GNUC__
3742       choke me
3743#endif
3744
3745      end
3746_ACEOF
3747if ac_fn_fc_try_compile "$LINENO"
3748then :
3749  ac_compiler_gnu=yes
3750else $as_nop
3751  ac_compiler_gnu=no
3752fi
3753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3754ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3755
3756fi
3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
3758printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; }
3759ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3760
3761ac_ext=$ac_save_ext
3762ac_test_FCFLAGS=${FCFLAGS+y}
3763ac_save_FCFLAGS=$FCFLAGS
3764FCFLAGS=
3765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
3766printf %s "checking whether $FC accepts -g... " >&6; }
3767if test ${ac_cv_prog_fc_g+y}
3768then :
3769  printf %s "(cached) " >&6
3770else $as_nop
3771  FCFLAGS=-g
3772cat > conftest.$ac_ext <<_ACEOF
3773      program main
3774
3775      end
3776_ACEOF
3777if ac_fn_fc_try_compile "$LINENO"
3778then :
3779  ac_cv_prog_fc_g=yes
3780else $as_nop
3781  ac_cv_prog_fc_g=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3784
3785fi
3786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
3787printf "%s\n" "$ac_cv_prog_fc_g" >&6; }
3788if test $ac_test_FCFLAGS; then
3789  FCFLAGS=$ac_save_FCFLAGS
3790elif test $ac_cv_prog_fc_g = yes; then
3791  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3792    FCFLAGS="-g -O2"
3793  else
3794    FCFLAGS="-g"
3795  fi
3796else
3797  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3798    FCFLAGS="-O2"
3799  else
3800    FCFLAGS=
3801  fi
3802fi
3803
3804if test $ac_compiler_gnu = yes; then
3805  GFC=yes
3806else
3807  GFC=
3808fi
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816if test -z "$GFC"; then
3817   IS_GNU="no"
3818else
3819   IS_GNU=$GFC
3820fi
3821
3822# CHECK FOR MPI LIBRARIES
3823ac_ext=${ac_fc_srcext-f}
3824ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3825ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3827
3828
3829
3830ac_ext=${ac_fc_srcext-f}
3831ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3832ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
3835printf %s "checking for Fortran flag to compile .F90 files... " >&6; }
3836if test ${ac_cv_fc_srcext_F90+y}
3837then :
3838  printf %s "(cached) " >&6
3839else $as_nop
3840  ac_ext=F90
3841ac_fcflags_srcext_save=$ac_fcflags_srcext
3842ac_fcflags_srcext=
3843ac_cv_fc_srcext_F90=unknown
3844case $ac_ext in #(
3845  [fF]77) ac_try=f77;; #(
3846  *) ac_try=f95;;
3847esac
3848for ac_flag in none -qsuffix=f=F90 -Tf "-x $ac_try"; do
3849  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
3850  cat > conftest.$ac_ext <<_ACEOF
3851      program main
3852
3853      end
3854_ACEOF
3855if ac_fn_fc_try_compile "$LINENO"
3856then :
3857  ac_cv_fc_srcext_F90=$ac_flag; break
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3860done
3861rm -f conftest.$ac_objext conftest.F90
3862ac_fcflags_srcext=$ac_fcflags_srcext_save
3863
3864fi
3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
3866printf "%s\n" "$ac_cv_fc_srcext_F90" >&6; }
3867if test "x$ac_cv_fc_srcext_F90" = xunknown; then
3868  as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5
3869else
3870  ac_fc_srcext=F90
3871  if test "x$ac_cv_fc_srcext_F90" = xnone; then
3872    ac_fcflags_srcext=""
3873    FCFLAGS_F90=""
3874  else
3875    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
3876    FCFLAGS_F90=$ac_cv_fc_srcext_F90
3877  fi
3878
3879
3880fi
3881ac_ext=${ac_fc_srcext-f}
3882ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3883ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3885
3886
3887OLDFCFLAGS="$FCFLAGS"
3888
3889if test -n "$MPIHEADER"; then
3890   FCFLAGS="$FCFLAGS $MPIHEADER"
3891fi
3892
3893# CHECK MPI BY DEFAULT
3894if test -z "$DONOTCHECKMPI"; then
3895
3896
3897
3898
3899
3900        for ac_prog in mpif90 hf90 mpxlf90 mpxlf95 mpf90 cmpifc cmpif90c
3901do
3902  # Extract the first word of "$ac_prog", so it can be a program name with args.
3903set dummy $ac_prog; ac_word=$2
3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905printf %s "checking for $ac_word... " >&6; }
3906if test ${ac_cv_prog_MPIFC+y}
3907then :
3908  printf %s "(cached) " >&6
3909else $as_nop
3910  if test -n "$MPIFC"; then
3911  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  case $as_dir in #(((
3918    '') as_dir=./ ;;
3919    */) ;;
3920    *) as_dir=$as_dir/ ;;
3921  esac
3922    for ac_exec_ext in '' $ac_executable_extensions; do
3923  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3924    ac_cv_prog_MPIFC="$ac_prog"
3925    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929  done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934MPIFC=$ac_cv_prog_MPIFC
3935if test -n "$MPIFC"; then
3936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
3937printf "%s\n" "$MPIFC" >&6; }
3938else
3939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940printf "%s\n" "no" >&6; }
3941fi
3942
3943
3944  test -n "$MPIFC" && break
3945done
3946test -n "$MPIFC" || MPIFC="$FC"
3947
3948        acx_mpi_save_FC="$FC"
3949        FC="$MPIFC"
3950
3951
3952
3953if test x = x"$MPILIBS"; then
3954        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
3955printf %s "checking for MPI_Init... " >&6; }
3956                        cat > conftest.$ac_ext <<_ACEOF
3957      program main
3958      call MPI_Init
3959      end
3960_ACEOF
3961if ac_fn_fc_try_link "$LINENO"
3962then :
3963  MPILIBS=" "
3964                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965printf "%s\n" "yes" >&6; }
3966else $as_nop
3967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968printf "%s\n" "no" >&6; }
3969fi
3970rm -f core conftest.err conftest.$ac_objext conftest.beam \
3971    conftest$ac_exeext conftest.$ac_ext
3972fi
3973
3974        if test x = x"$MPILIBS"; then
3975                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
3976printf %s "checking for MPI_Init in -lfmpi... " >&6; }
3977if test ${ac_cv_lib_fmpi_MPI_Init+y}
3978then :
3979  printf %s "(cached) " >&6
3980else $as_nop
3981  ac_check_lib_save_LIBS=$LIBS
3982LIBS="-lfmpi  $LIBS"
3983cat > conftest.$ac_ext <<_ACEOF
3984      program main
3985      call MPI_Init
3986      end
3987_ACEOF
3988if ac_fn_fc_try_link "$LINENO"
3989then :
3990  ac_cv_lib_fmpi_MPI_Init=yes
3991else $as_nop
3992  ac_cv_lib_fmpi_MPI_Init=no
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.beam \
3995    conftest$ac_exeext conftest.$ac_ext
3996LIBS=$ac_check_lib_save_LIBS
3997fi
3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
3999printf "%s\n" "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4000if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes
4001then :
4002  MPILIBS="-lfmpi"
4003fi
4004
4005        fi
4006        if test x = x"$MPILIBS"; then
4007                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4008printf %s "checking for MPI_Init in -lmpichf90... " >&6; }
4009if test ${ac_cv_lib_mpichf90_MPI_Init+y}
4010then :
4011  printf %s "(cached) " >&6
4012else $as_nop
4013  ac_check_lib_save_LIBS=$LIBS
4014LIBS="-lmpichf90  $LIBS"
4015cat > conftest.$ac_ext <<_ACEOF
4016      program main
4017      call MPI_Init
4018      end
4019_ACEOF
4020if ac_fn_fc_try_link "$LINENO"
4021then :
4022  ac_cv_lib_mpichf90_MPI_Init=yes
4023else $as_nop
4024  ac_cv_lib_mpichf90_MPI_Init=no
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.beam \
4027    conftest$ac_exeext conftest.$ac_ext
4028LIBS=$ac_check_lib_save_LIBS
4029fi
4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4031printf "%s\n" "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4032if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes
4033then :
4034  MPILIBS="-lmpichf90"
4035fi
4036
4037        fi
4038
4039if test x = x"$MPILIBS"; then
4040        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4041printf %s "checking for MPI_Init in -lmpi... " >&6; }
4042if test ${ac_cv_lib_mpi_MPI_Init+y}
4043then :
4044  printf %s "(cached) " >&6
4045else $as_nop
4046  ac_check_lib_save_LIBS=$LIBS
4047LIBS="-lmpi  $LIBS"
4048cat > conftest.$ac_ext <<_ACEOF
4049      program main
4050      call MPI_Init
4051      end
4052_ACEOF
4053if ac_fn_fc_try_link "$LINENO"
4054then :
4055  ac_cv_lib_mpi_MPI_Init=yes
4056else $as_nop
4057  ac_cv_lib_mpi_MPI_Init=no
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.beam \
4060    conftest$ac_exeext conftest.$ac_ext
4061LIBS=$ac_check_lib_save_LIBS
4062fi
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4064printf "%s\n" "$ac_cv_lib_mpi_MPI_Init" >&6; }
4065if test "x$ac_cv_lib_mpi_MPI_Init" = xyes
4066then :
4067  MPILIBS="-lmpi"
4068fi
4069
4070fi
4071if test x = x"$MPILIBS"; then
4072        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4073printf %s "checking for MPI_Init in -lmpich... " >&6; }
4074if test ${ac_cv_lib_mpich_MPI_Init+y}
4075then :
4076  printf %s "(cached) " >&6
4077else $as_nop
4078  ac_check_lib_save_LIBS=$LIBS
4079LIBS="-lmpich  $LIBS"
4080cat > conftest.$ac_ext <<_ACEOF
4081      program main
4082      call MPI_Init
4083      end
4084_ACEOF
4085if ac_fn_fc_try_link "$LINENO"
4086then :
4087  ac_cv_lib_mpich_MPI_Init=yes
4088else $as_nop
4089  ac_cv_lib_mpich_MPI_Init=no
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.beam \
4092    conftest$ac_exeext conftest.$ac_ext
4093LIBS=$ac_check_lib_save_LIBS
4094fi
4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4096printf "%s\n" "$ac_cv_lib_mpich_MPI_Init" >&6; }
4097if test "x$ac_cv_lib_mpich_MPI_Init" = xyes
4098then :
4099  MPILIBS="-lmpich"
4100fi
4101
4102fi
4103
4104if test x != x"$MPILIBS"; then
4105        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4106printf %s "checking for mpif.h... " >&6; }
4107        cat > conftest.$ac_ext <<_ACEOF
4108      program main
4109      include 'mpif.h'
4110      end
4111_ACEOF
4112if ac_fn_fc_try_compile "$LINENO"
4113then :
4114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115printf "%s\n" "yes" >&6; }
4116else $as_nop
4117  MPILIBS=""
4118                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119printf "%s\n" "no" >&6; }
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122fi
4123
4124FC="$acx_mpi_save_FC"
4125
4126
4127
4128# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4129if test x = x"$MPILIBS"; then
4130
4131        :
4132else
4133
4134printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h
4135
4136        :
4137fi
4138
4139fi
4140
4141# DONT CHECK MPI IF SERIALMPI OPTION IS ENABLED
4142if test -n "$DONOTCHECKMPI"; then
4143   echo "MPISERIAL ENABLED: BYPASSING MPI CHECK"
4144   if test -z "$MPIFC"; then
4145      MPIFC=$FC
4146   fi
4147   if test -z "$FORT_SIZE"; then
4148      FORT_SIZE="real4double8"
4149      echo "FORT_SIZE IS PRESET TO $FORT_SIZE"
4150   fi
4151   abs_top_builddir=`pwd`
4152   MPISERPATH=$abs_top_builddir/mpi-serial
4153
4154   MPIHEADER=-I$MPISERPATH
4155   MPILIBS="-L$MPISERPATH -lmpi-serial"
4156fi
4157
4158FCFLAGS="$OLDFCFLAGS"
4159
4160# A HACK TO FIX ACX_MPI TO GET MPILIBS TO BE AN EMPTY STRING
4161if test "$MPILIBS" = " "; then
4162   MPILIBS=""
4163fi
4164
4165# SET FC TO MPIFC. IF MPILIBS IS PRESENT, SET FC TO FC.
4166if test -z "$FC"; then
4167   FC=$MPIFC
4168   if test "$FC" != "$MPIFC";  then
4169      if test -n "$MPILIBS"; then
4170         FC=$FC
4171      fi
4172   fi
4173fi
4174
4175# FOR SANITY, CHECK THAT FILENAME EXTENSION FOR FC IS CONSISTENT WITH FC
4176OLDFC="$FC"
4177FC="$FC"
4178
4179cat > conftest.$ac_ext <<_ACEOF
4180       subroutine oof()
4181             return
4182          end
4183_ACEOF
4184if ac_fn_fc_try_compile "$LINENO"
4185then :
4186
4187else $as_nop
4188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&5
4189printf "%s\n" "$as_me: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&2;}
4190
4191fi
4192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4193
4194
4195
4196FC="$OLDFC"
4197
4198# CHECK HOW TO GET THE COMPILER VERSION.
4199echo "Checking Compiler Version"
4200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the version output from $FC" >&5
4201printf %s "checking how to get the version output from $FC... " >&6; }
4202if test ${ac_cv_prog_fc_version+y}
4203then :
4204  printf %s "(cached) " >&6
4205else $as_nop
4206
4207cat > conftest.$ac_ext <<_ACEOF
4208      program main
4209
4210      end
4211_ACEOF
4212if ac_fn_fc_try_compile "$LINENO"
4213then :
4214  ac_cv_prog_fc_version=
4215# Try some options frequently used verbose output
4216for ac_version in -V -version --version +version -qversion; do
4217  ac_ext=${ac_fc_srcext-f}
4218ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4219ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4221
4222cat > conftest.$ac_ext <<_ACEOF
4223      program main
4224
4225      end
4226_ACEOF
4227
4228# Compile and link our simple test program by passing a flag (argument
4229# 1 to this macro) to the Fortran 90 compiler in order to get "version" output
4230ac_save_FCFLAGS=$FCFLAGS
4231FCFLAGS="$FCFLAGS $ac_version"
4232(eval echo $as_me:4232: \"$ac_link\") >&5
4233ac_fc_version_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4234echo "$ac_fc_version_output" >&5
4235FCFLAGS=$ac_save_FCFLAGS
4236
4237rm -f conftest.*
4238ac_ext=${ac_fc_srcext-f}
4239ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4240ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4242
4243
4244  # look for "copyright" constructs in the output
4245  for ac_arg in $ac_fc_version_output; do
4246     case $ac_arg in
4247        COPYRIGHT | copyright | Copyright | '(c)' | '(C)' | Compiler | Compilers | Version | Version:)
4248          ac_cv_prog_fc_version=$ac_version
4249          break 2 ;;
4250     esac
4251  done
4252done
4253if test -z "$ac_cv_prog_fc_version"; then
4254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain version information from $FC" >&5
4255printf "%s\n" "$as_me: WARNING: cannot determine how to obtain version information from $FC" >&2;}
4256fi
4257else $as_nop
4258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4259printf "%s\n" "$as_me: WARNING: compilation failed" >&2;}
4260fi
4261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4262
4263fi
4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_version" >&5
4265printf "%s\n" "$ac_cv_prog_fc_version" >&6; }
4266
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272
4273
4274# Check how to use the cpp with fortran
4275
4276ac_ext=${ac_fc_srcext-f}
4277ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4278ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4280ac_fc_pp_define_srcext_save=$ac_fc_srcext
4281ac_ext=${ac_fc_srcext-f}
4282ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4283ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5
4286printf %s "checking for Fortran flag to compile preprocessed .F files... " >&6; }
4287if test ${ac_cv_fc_pp_srcext_F+y}
4288then :
4289  printf %s "(cached) " >&6
4290else $as_nop
4291  ac_ext=F
4292ac_fcflags_pp_srcext_save=$ac_fcflags_srcext
4293ac_fcflags_srcext=
4294ac_cv_fc_pp_srcext_F=unknown
4295case $ac_ext in #(
4296  [fF]77) ac_try=f77-cpp-input;; #(
4297  *) ac_try=f95-cpp-input;;
4298esac
4299for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \
4300               -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do
4301  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4302  cat > conftest.$ac_ext <<_ACEOF
4303      program main
4304
4305#if 0
4306#include <ac_nonexistent.h>
4307      choke me
4308#endif
4309      end
4310_ACEOF
4311if ac_fn_fc_try_compile "$LINENO"
4312then :
4313  cat > conftest.$ac_ext <<_ACEOF
4314      program main
4315
4316#if 1
4317#include <ac_nonexistent.h>
4318      choke me
4319#endif
4320      end
4321_ACEOF
4322if ac_fn_fc_try_compile "$LINENO"
4323then :
4324
4325else $as_nop
4326  ac_cv_fc_pp_srcext_F=$ac_flag; break
4327fi
4328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4329fi
4330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4331done
4332rm -f conftest.$ac_objext conftest.F
4333ac_fcflags_srcext=$ac_fcflags_pp_srcext_save
4334
4335fi
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5
4337printf "%s\n" "$ac_cv_fc_pp_srcext_F" >&6; }
4338if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then
4339  as_fn_error $? "Fortran could not compile preprocessed .F files" "$LINENO" 5
4340else
4341  ac_fc_srcext=F
4342  if test "x$ac_cv_fc_pp_srcext_F" = xnone; then
4343    ac_fcflags_srcext=""
4344    FCFLAGS_F=""
4345  else
4346    ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F
4347    FCFLAGS_F=$ac_cv_fc_pp_srcext_F
4348  fi
4349
4350
4351fi
4352ac_ext=${ac_fc_srcext-f}
4353ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4354ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4356
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to define symbols for preprocessed Fortran" >&5
4358printf %s "checking how to define symbols for preprocessed Fortran... " >&6; }
4359if test ${ac_cv_fc_pp_define+y}
4360then :
4361  printf %s "(cached) " >&6
4362else $as_nop
4363  ac_fc_pp_define_srcext_save=$ac_fc_srcext
4364ac_cv_fc_pp_define=unknown
4365ac_fc_pp_define_FCFLAGS_save=$FCFLAGS
4366for ac_flag in -D -WF,-D -Wp,-D -Wc,-D
4367do
4368  FCFLAGS="$ac_fc_pp_define_FCFLAGS_save ${ac_flag}FOOBAR ${ac_flag}ZORK=42"
4369  cat > conftest.$ac_ext <<_ACEOF
4370      program main
4371
4372#ifndef FOOBAR
4373      choke me
4374#endif
4375#if ZORK != 42
4376      choke me
4377#endif
4378      end
4379_ACEOF
4380if ac_fn_fc_try_compile "$LINENO"
4381then :
4382  ac_cv_fc_pp_define=$ac_flag
4383fi
4384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4385  test x"$ac_cv_fc_pp_define" != xunknown && break
4386done
4387FCFLAGS=$ac_fc_pp_define_FCFLAGS_save
4388
4389fi
4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_define" >&5
4391printf "%s\n" "$ac_cv_fc_pp_define" >&6; }
4392ac_fc_srcext=$ac_fc_pp_define_srcext_save
4393if test "x$ac_cv_fc_pp_define" = xunknown; then
4394  FC_DEFINE=
4395  as_fn_error 77 "Fortran does not allow to define preprocessor symbols" "$LINENO" 5
4396else
4397  FC_DEFINE=$ac_cv_fc_pp_define
4398
4399fi
4400ac_ext=c
4401ac_cpp='$CPP $CPPFLAGS'
4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406
4407
4408# CHECK HOW TO NAME MANGLE C FUNCTIONS SO THAT IT CAN BE CALLED FROM FORTRAN
4409OLDFC="$FC"
4410
4411
4412
4413
4414  # Make sure we can run config.sub.
4415$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4416  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4417
4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4419printf %s "checking build system type... " >&6; }
4420if test ${ac_cv_build+y}
4421then :
4422  printf %s "(cached) " >&6
4423else $as_nop
4424  ac_build_alias=$build_alias
4425test "x$ac_build_alias" = x &&
4426  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4427test "x$ac_build_alias" = x &&
4428  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4429ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4430  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4431
4432fi
4433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4434printf "%s\n" "$ac_cv_build" >&6; }
4435case $ac_cv_build in
4436*-*-*) ;;
4437*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4438esac
4439build=$ac_cv_build
4440ac_save_IFS=$IFS; IFS='-'
4441set x $ac_cv_build
4442shift
4443build_cpu=$1
4444build_vendor=$2
4445shift; shift
4446# Remember, the first character of IFS is used to create $*,
4447# except with old shells:
4448build_os=$*
4449IFS=$ac_save_IFS
4450case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4451
4452
4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4454printf %s "checking host system type... " >&6; }
4455if test ${ac_cv_host+y}
4456then :
4457  printf %s "(cached) " >&6
4458else $as_nop
4459  if test "x$host_alias" = x; then
4460  ac_cv_host=$ac_cv_build
4461else
4462  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4463    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4464fi
4465
4466fi
4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4468printf "%s\n" "$ac_cv_host" >&6; }
4469case $ac_cv_host in
4470*-*-*) ;;
4471*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4472esac
4473host=$ac_cv_host
4474ac_save_IFS=$IFS; IFS='-'
4475set x $ac_cv_host
4476shift
4477host_cpu=$1
4478host_vendor=$2
4479shift; shift
4480# Remember, the first character of IFS is used to create $*,
4481# except with old shells:
4482host_os=$*
4483IFS=$ac_save_IFS
4484case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4485
4486
4487ac_ext=${ac_fc_srcext-f}
4488ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4489ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4490ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
4492printf %s "checking how to get verbose linking output from $FC... " >&6; }
4493if test ${ac_cv_prog_fc_v+y}
4494then :
4495  printf %s "(cached) " >&6
4496else $as_nop
4497  cat > conftest.$ac_ext <<_ACEOF
4498      program main
4499
4500      end
4501_ACEOF
4502if ac_fn_fc_try_compile "$LINENO"
4503then :
4504  ac_cv_prog_fc_v=
4505# Try some options frequently used verbose output
4506for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4507  cat > conftest.$ac_ext <<_ACEOF
4508      program main
4509
4510      end
4511_ACEOF
4512
4513# Compile and link our simple test program by passing a flag (argument
4514# 1 to this macro) to the Fortran compiler in order to get
4515# "verbose" output that we can then parse for the Fortran linker
4516# flags.
4517ac_save_FCFLAGS=$FCFLAGS
4518FCFLAGS="$FCFLAGS $ac_verb"
4519eval "set x $ac_link"
4520shift
4521printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5
4522# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4523# LIBRARY_PATH; skip all such settings.
4524ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
4525  sed '/^Driving:/d; /^Configured with:/d;
4526      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4527printf "%s\n" "$ac_fc_v_output" >&5
4528FCFLAGS=$ac_save_FCFLAGS
4529
4530rm -rf conftest*
4531
4532# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4533# /foo, /bar, and /baz are search directories for the Fortran linker.
4534# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4535ac_fc_v_output="`echo $ac_fc_v_output |
4536        grep 'LPATH is:' |
4537        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
4538
4539# FIXME: we keep getting bitten by quoted arguments; a more general fix
4540#        that detects unbalanced quotes in FLIBS should be implemented
4541#        and (ugh) tested at some point.
4542case $ac_fc_v_output in
4543  # With xlf replace commas with spaces,
4544  # and remove "-link" and closing parenthesis.
4545  *xlfentry*)
4546    ac_fc_v_output=`echo $ac_fc_v_output |
4547      sed '
4548        s/,/ /g
4549        s/ -link / /g
4550        s/) *$//
4551      '
4552    ` ;;
4553
4554  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4555  # $LIBS confuse us, and the libraries appear later in the output anyway).
4556  *mGLOB_options_string*)
4557    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4558
4559  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4560  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4561  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4562  *-cmdline\ * | *-ignore\ * | *-def\ *)
4563    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4564        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4565        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4566        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4567
4568  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
4569  *fort77*f2c*gcc*)
4570    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
4571        /:[      ]\+Running[     ]\{1,\}"gcc"/{
4572          /"-c"/d
4573          /[.]c"*/d
4574          s/^.*"gcc"/"gcc"/
4575          s/"//gp
4576        }'` ;;
4577
4578  # If we are using Cray Fortran then delete quotes.
4579  *cft90*)
4580    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4581esac
4582
4583
4584  # look for -l* and *.a constructs in the output
4585  for ac_arg in $ac_fc_v_output; do
4586     case $ac_arg in
4587        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4588          ac_cv_prog_fc_v=$ac_verb
4589          break 2 ;;
4590     esac
4591  done
4592done
4593if test -z "$ac_cv_prog_fc_v"; then
4594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
4595printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4596fi
4597else $as_nop
4598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4599printf "%s\n" "$as_me: WARNING: compilation failed" >&2;}
4600fi
4601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4602
4603fi
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
4605printf "%s\n" "$ac_cv_prog_fc_v" >&6; }
4606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
4607printf %s "checking for Fortran libraries of $FC... " >&6; }
4608if test ${ac_cv_fc_libs+y}
4609then :
4610  printf %s "(cached) " >&6
4611else $as_nop
4612  if test "x$FCLIBS" != "x"; then
4613  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4614else
4615
4616cat > conftest.$ac_ext <<_ACEOF
4617      program main
4618
4619      end
4620_ACEOF
4621
4622# Compile and link our simple test program by passing a flag (argument
4623# 1 to this macro) to the Fortran compiler in order to get
4624# "verbose" output that we can then parse for the Fortran linker
4625# flags.
4626ac_save_FCFLAGS=$FCFLAGS
4627FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4628eval "set x $ac_link"
4629shift
4630printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5
4631# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4632# LIBRARY_PATH; skip all such settings.
4633ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
4634  sed '/^Driving:/d; /^Configured with:/d;
4635      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4636printf "%s\n" "$ac_fc_v_output" >&5
4637FCFLAGS=$ac_save_FCFLAGS
4638
4639rm -rf conftest*
4640
4641# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4642# /foo, /bar, and /baz are search directories for the Fortran linker.
4643# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4644ac_fc_v_output="`echo $ac_fc_v_output |
4645        grep 'LPATH is:' |
4646        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
4647
4648# FIXME: we keep getting bitten by quoted arguments; a more general fix
4649#        that detects unbalanced quotes in FLIBS should be implemented
4650#        and (ugh) tested at some point.
4651case $ac_fc_v_output in
4652  # With xlf replace commas with spaces,
4653  # and remove "-link" and closing parenthesis.
4654  *xlfentry*)
4655    ac_fc_v_output=`echo $ac_fc_v_output |
4656      sed '
4657        s/,/ /g
4658        s/ -link / /g
4659        s/) *$//
4660      '
4661    ` ;;
4662
4663  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4664  # $LIBS confuse us, and the libraries appear later in the output anyway).
4665  *mGLOB_options_string*)
4666    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4667
4668  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4669  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4670  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4671  *-cmdline\ * | *-ignore\ * | *-def\ *)
4672    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4673        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4674        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4675        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4676
4677  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
4678  *fort77*f2c*gcc*)
4679    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
4680        /:[      ]\+Running[     ]\{1,\}"gcc"/{
4681          /"-c"/d
4682          /[.]c"*/d
4683          s/^.*"gcc"/"gcc"/
4684          s/"//gp
4685        }'` ;;
4686
4687  # If we are using Cray Fortran then delete quotes.
4688  *cft90*)
4689    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4690esac
4691
4692
4693
4694ac_cv_fc_libs=
4695
4696# Save positional arguments (if any)
4697ac_save_positional="$@"
4698
4699set X $ac_fc_v_output
4700while test $# != 1; do
4701  shift
4702  ac_arg=$1
4703  case $ac_arg in
4704        [\\/]*.a | ?:[\\/]*.a)
4705            ac_exists=false
4706  for ac_i in $ac_cv_fc_libs; do
4707    if test x"$ac_arg" = x"$ac_i"; then
4708      ac_exists=true
4709      break
4710    fi
4711  done
4712
4713  if test x"$ac_exists" = xtrue
4714then :
4715
4716else $as_nop
4717  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4718fi
4719          ;;
4720        -bI:*)
4721            ac_exists=false
4722  for ac_i in $ac_cv_fc_libs; do
4723    if test x"$ac_arg" = x"$ac_i"; then
4724      ac_exists=true
4725      break
4726    fi
4727  done
4728
4729  if test x"$ac_exists" = xtrue
4730then :
4731
4732else $as_nop
4733  if test "$ac_compiler_gnu" = yes; then
4734  for ac_link_opt in $ac_arg; do
4735    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4736  done
4737else
4738  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4739fi
4740fi
4741          ;;
4742          # Ignore these flags.
4743        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
4744          |-LANG:=* | -LIST:* | -LNO:* | -link)
4745          ;;
4746        -lkernel32)
4747          # Ignore this library only on Windows-like systems.
4748          case $host_os in
4749          cygwin* | msys* ) ;;
4750          *)
4751            ac_exists=false
4752  for ac_i in $ac_cv_fc_libs; do
4753    if test x"$ac_arg" = x"$ac_i"; then
4754      ac_exists=true
4755      break
4756    fi
4757  done
4758
4759  if test x"$ac_exists" = xtrue
4760then :
4761
4762else $as_nop
4763  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4764fi
4765            ;;
4766          esac
4767          ;;
4768        -[LRuYz])
4769          # These flags, when seen by themselves, take an argument.
4770          # We remove the space between option and argument and re-iterate
4771          # unless we find an empty arg or a new option (starting with -)
4772          case $2 in
4773             "" | -*);;
4774             *)
4775                ac_arg="$ac_arg$2"
4776                shift; shift
4777                set X $ac_arg "$@"
4778                ;;
4779          esac
4780          ;;
4781        -YP,*)
4782          for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4783              ac_exists=false
4784  for ac_i in $ac_cv_fc_libs; do
4785    if test x"$ac_j" = x"$ac_i"; then
4786      ac_exists=true
4787      break
4788    fi
4789  done
4790
4791  if test x"$ac_exists" = xtrue
4792then :
4793
4794else $as_nop
4795  ac_arg="$ac_arg $ac_j"
4796                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
4797fi
4798          done
4799          ;;
4800        -[lLR]*)
4801            ac_exists=false
4802  for ac_i in $ac_cv_fc_libs; do
4803    if test x"$ac_arg" = x"$ac_i"; then
4804      ac_exists=true
4805      break
4806    fi
4807  done
4808
4809  if test x"$ac_exists" = xtrue
4810then :
4811
4812else $as_nop
4813  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4814fi
4815          ;;
4816        -zallextract*| -zdefaultextract)
4817          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4818          ;;
4819        -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'.
4820          # Ignore everything else.
4821  esac
4822done
4823# restore positional arguments
4824set X $ac_save_positional; shift
4825
4826# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4827# then we insist that the "run path" must be an absolute path (i.e. it
4828# must begin with a "/").
4829case `(uname -sr) 2>/dev/null` in
4830   "SunOS 5"*)
4831      ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" |
4832                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4833      test "x$ac_ld_run_path" != x &&
4834        if test "$ac_compiler_gnu" = yes; then
4835  for ac_link_opt in $ac_ld_run_path; do
4836    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4837  done
4838else
4839  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
4840fi
4841      ;;
4842esac
4843fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4844
4845fi
4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
4847printf "%s\n" "$ac_cv_fc_libs" >&6; }
4848FCLIBS="$ac_cv_fc_libs"
4849
4850
4851ac_ext=c
4852ac_cpp='$CPP $CPPFLAGS'
4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857ac_ext=${ac_fc_srcext-f}
4858ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4859ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4861
4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
4863printf %s "checking for dummy main to link with Fortran libraries... " >&6; }
4864if test ${ac_cv_fc_dummy_main+y}
4865then :
4866  printf %s "(cached) " >&6
4867else $as_nop
4868  ac_fc_dm_save_LIBS=$LIBS
4869 LIBS="$LIBS $FCLIBS"
4870 ac_fortran_dm_var=FC_DUMMY_MAIN
4871 ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 # First, try linking without a dummy main:
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h.  */
4880
4881#ifdef FC_DUMMY_MAIN
4882#ifndef FC_DUMMY_MAIN_EQ_F77
4883#  ifdef __cplusplus
4884     extern "C"
4885#  endif
4886   int FC_DUMMY_MAIN() { return 1; }
4887#endif
4888#endif
4889int
4890main (void)
4891{
4892
4893  ;
4894  return 0;
4895}
4896_ACEOF
4897if ac_fn_c_try_link "$LINENO"
4898then :
4899  ac_cv_fortran_dummy_main=none
4900else $as_nop
4901  ac_cv_fortran_dummy_main=unknown
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.beam \
4904    conftest$ac_exeext conftest.$ac_ext
4905
4906 if test $ac_cv_fortran_dummy_main = unknown; then
4907   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h.  */
4910#define $ac_fortran_dm_var $ac_func
4911#ifdef FC_DUMMY_MAIN
4912#ifndef FC_DUMMY_MAIN_EQ_F77
4913#  ifdef __cplusplus
4914     extern "C"
4915#  endif
4916   int FC_DUMMY_MAIN() { return 1; }
4917#endif
4918#endif
4919int
4920main (void)
4921{
4922
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_link "$LINENO"
4928then :
4929  ac_cv_fortran_dummy_main=$ac_func; break
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.beam \
4932    conftest$ac_exeext conftest.$ac_ext
4933   done
4934 fi
4935 ac_ext=${ac_fc_srcext-f}
4936ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4937ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4939 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
4940 rm -rf conftest*
4941 LIBS=$ac_fc_dm_save_LIBS
4942
4943fi
4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
4945printf "%s\n" "$ac_cv_fc_dummy_main" >&6; }
4946FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
4947if test "$FC_DUMMY_MAIN" != unknown
4948then :
4949  if test $FC_DUMMY_MAIN != none; then
4950
4951printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h
4952
4953  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4954
4955printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
4956
4957  fi
4958fi
4959else $as_nop
4960  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4962as_fn_error $? "linking to Fortran libraries from C fails
4963See \`config.log' for more details" "$LINENO" 5; }
4964fi
4965
4966ac_ext=c
4967ac_cpp='$CPP $CPPFLAGS'
4968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971
4972ac_ext=${ac_fc_srcext-f}
4973ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4974ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
4977printf %s "checking for Fortran name-mangling scheme... " >&6; }
4978if test ${ac_cv_fc_mangling+y}
4979then :
4980  printf %s "(cached) " >&6
4981else $as_nop
4982  cat > conftest.$ac_ext <<_ACEOF
4983      subroutine foobar()
4984      return
4985      end
4986      subroutine foo_bar()
4987      return
4988      end
4989_ACEOF
4990if ac_fn_fc_try_compile "$LINENO"
4991then :
4992  mv conftest.$ac_objext cfortran_test.$ac_objext
4993
4994  ac_save_LIBS=$LIBS
4995  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
4996
4997  ac_ext=c
4998ac_cpp='$CPP $CPPFLAGS'
4999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002  ac_success=no
5003  for ac_foobar in foobar FOOBAR; do
5004    for ac_underscore in "" "_"; do
5005      ac_func="$ac_foobar$ac_underscore"
5006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008
5009/* Override any GCC internal prototype to avoid an error.
5010   Use char because int might match the return type of a GCC
5011   builtin and then its argument prototype would still apply.  */
5012char $ac_func ();
5013#ifdef FC_DUMMY_MAIN
5014#ifndef FC_DUMMY_MAIN_EQ_F77
5015#  ifdef __cplusplus
5016     extern "C"
5017#  endif
5018   int FC_DUMMY_MAIN() { return 1; }
5019#endif
5020#endif
5021int
5022main (void)
5023{
5024return $ac_func ();
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029if ac_fn_c_try_link "$LINENO"
5030then :
5031  ac_success=yes; break 2
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.beam \
5034    conftest$ac_exeext conftest.$ac_ext
5035    done
5036  done
5037  ac_ext=${ac_fc_srcext-f}
5038ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5039ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5041
5042  if test "$ac_success" = "yes"; then
5043     case $ac_foobar in
5044        foobar)
5045           ac_case=lower
5046           ac_foo_bar=foo_bar
5047           ;;
5048        FOOBAR)
5049           ac_case=upper
5050           ac_foo_bar=FOO_BAR
5051           ;;
5052     esac
5053
5054     ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059     ac_success_extra=no
5060     for ac_extra in "" "_"; do
5061        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5062        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h.  */
5064
5065/* Override any GCC internal prototype to avoid an error.
5066   Use char because int might match the return type of a GCC
5067   builtin and then its argument prototype would still apply.  */
5068char $ac_func ();
5069#ifdef FC_DUMMY_MAIN
5070#ifndef FC_DUMMY_MAIN_EQ_F77
5071#  ifdef __cplusplus
5072     extern "C"
5073#  endif
5074   int FC_DUMMY_MAIN() { return 1; }
5075#endif
5076#endif
5077int
5078main (void)
5079{
5080return $ac_func ();
5081  ;
5082  return 0;
5083}
5084_ACEOF
5085if ac_fn_c_try_link "$LINENO"
5086then :
5087  ac_success_extra=yes; break
5088fi
5089rm -f core conftest.err conftest.$ac_objext conftest.beam \
5090    conftest$ac_exeext conftest.$ac_ext
5091     done
5092     ac_ext=${ac_fc_srcext-f}
5093ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5094ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5096
5097     if test "$ac_success_extra" = "yes"; then
5098        ac_cv_fc_mangling="$ac_case case"
5099        if test -z "$ac_underscore"; then
5100           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
5101        else
5102           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
5103        fi
5104        if test -z "$ac_extra"; then
5105           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
5106        else
5107           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
5108        fi
5109      else
5110        ac_cv_fc_mangling="unknown"
5111      fi
5112  else
5113     ac_cv_fc_mangling="unknown"
5114  fi
5115
5116  LIBS=$ac_save_LIBS
5117  rm -rf conftest*
5118  rm -f cfortran_test*
5119else $as_nop
5120  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5122as_fn_error $? "cannot compile a simple Fortran program
5123See \`config.log' for more details" "$LINENO" 5; }
5124fi
5125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5126
5127fi
5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
5129printf "%s\n" "$ac_cv_fc_mangling" >&6; }
5130
5131ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137ac_ext=${ac_fc_srcext-f}
5138ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5139ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5141case $ac_cv_fc_mangling in
5142  "lower case, no underscore, no extra underscore")
5143          printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h
5144
5145          printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h
5146 ;;
5147  "lower case, no underscore, extra underscore")
5148          printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h
5149
5150          printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
5151 ;;
5152  "lower case, underscore, no extra underscore")
5153          printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
5154
5155          printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
5156 ;;
5157  "lower case, underscore, extra underscore")
5158          printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
5159
5160          printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
5161 ;;
5162  "upper case, no underscore, no extra underscore")
5163          printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
5164
5165          printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
5166 ;;
5167  "upper case, no underscore, extra underscore")
5168          printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
5169
5170          printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5171 ;;
5172  "upper case, underscore, no extra underscore")
5173          printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
5174
5175          printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5176 ;;
5177  "upper case, underscore, extra underscore")
5178          printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
5179
5180          printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
5181 ;;
5182  *)
5183          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
5184printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5185          ;;
5186esac
5187
5188ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194
5195FC="$OLDFC"
5196
5197# CHECK THAT THE FORTRAN COMPILER CAN CORRECTLY PROCESS THESE DIRECTIVES
5198# IF NOT, USE THE EXTERNAL C PREPROCESSOR
5199OLDFC="$FC"
5200
5201defineflag="-Daardvark"
5202if test "$OLDFC" = "xlf90"; then
5203   defineflag="-WF,-Daardvark"
5204fi
5205if test "$OLDFC" = "frt"; then
5206   defineflag="-Wp,-Daardvark"
5207fi
5208
5209FC="$OLDFC"
5210
5211# DEFINE VARIABLES ACCORDING TO OS AND COMPILER
5212
5213echo "Hostname=$ac_hostname"
5214echo "Machine=$machinename"
5215echo "OS=$osname"
5216
5217# CHECK OS NAME
5218if echo $osname | grep -i aix >/dev/null 2>&1; then
5219   SYSDEF="AIX"
5220fi
5221if echo $osname | grep -i darwin >/dev/null 2>&1; then
5222   SYSDEF="DARWIN"
5223fi
5224if echo $osname | grep -i unix_system_v >/dev/null 2>&1; then
5225   SYSDEF="UNIXSYSTEMV"
5226fi
5227if echo $osname | grep -i irix >/dev/null 2>&1; then
5228   SYSDEF="IRIX"
5229fi
5230if echo $osname | grep -i irix64 >/dev/null 2>&1; then
5231   SYSDEF="IRIX64"
5232fi
5233if echo $osname | grep -i linux >/dev/null 2>&1; then
5234   SYSDEF="LINUX"
5235fi
5236if echo $osname | grep -i osf1 >/dev/null 2>&1; then
5237   SYSDEF="OSF1"
5238fi
5239if echo $osname | grep -i super >/dev/null 2>&1; then
5240   SYSDEF="SUPERUX"
5241fi
5242if echo $osname | grep -i sun >/dev/null 2>&1; then
5243   SYSDEF="SUNOS"
5244fi
5245if echo $osname | grep -i unicos >/dev/null 2>&1; then
5246   SYSDEF="UNICOS"
5247fi
5248if test -z "$SYSDEF"; then
5249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OPERATING SYSTEM UNKNOWN" >&5
5250printf "%s\n" "$as_me: WARNING: OPERATING SYSTEM UNKNOWN" >&2;}
5251   SYSDEF="UNKNOWNOS"
5252fi
5253
5254# Set the default FCFLAGS for non-gfortran compilers.
5255# NOTE:  This may change with a new version of autoconf.
5256DEFFCFLAGS="-g"
5257
5258#####################################################
5259# CHECK COMPILER NAME and add specific flags
5260if echo $FC | grep xlf >/dev/null 2>&1; then
5261   echo "Fortran Compiler is XLF"
5262   CPRDEF="XLF"
5263   if test -z "$REAL8"; then
5264      REAL8="-qrealsize=8"
5265   fi
5266   if test -z "$OPT"; then
5267      OPT="-O2 -qarch=auto"
5268   fi
5269   if test -z "$DEBUG"; then
5270      DEBUG="-qdbg"
5271   fi
5272   if test "$FCFLAGS" = "$DEFFCFLAGS"; then
5273       FCFLAGS=""
5274   fi
5275elif echo $ac_fc_version_output | grep -i pgfor >/dev/null 2>&1; then
5276   echo "Fortran Compiler is Portland Group"
5277   CPRDEF="PGI"
5278   if test -z "$REAL8"; then
5279      REAL8="-r8"
5280   fi
5281   if test -z "$BIT64"; then
5282      BIT64="-pc 64"
5283   fi
5284   if test "$FCFLAGS" = "$DEFFCFLAGS"; then
5285      FCFLAGS=""
5286   fi
5287   if test -z "$ENDIAN"; then
5288      ENDIAN="-byteswapio"
5289   fi
5290   if test -z "$OPT"; then
5291      OPT="-O2"
5292   fi
5293   if test -z "$DEBUG"; then
5294      DEBUG="-g"
5295   fi
5296elif test "$IS_GNU" = "yes" ; then
5297# The GNU compiler can hide inside other compilers like ftn
5298  if echo $ac_fc_version_output | grep -i Cray >/dev/null 2>&1; then
5299   echo "Fortran Compiler is GNU, Cray"
5300    CPRDEF="GNU"
5301  else
5302    echo "Fortran Compiler is GNU"
5303    CPRDEF="GNU"
5304  fi
5305# For gfortran, default flags are different
5306    if test "$FCFLAGS" = "-g -O2"; then
5307       FCFLAGS=""
5308    fi
5309    if test -z "$DEBUG"; then
5310       DEBUG="-g"
5311    fi
5312    if test -z "$OPT"; then
5313       OPT="-O2"
5314    fi
5315#  Put ifort after gnu in case wrapper script mpifort
5316#  from openmpi is wrapping gnu.  Prevents misidentification
5317elif echo $ac_fc_version_output | grep -i 'intel.*fortran' >/dev/null 2>&1; then
5318   echo "Fortran Compiler is Intel ifort"
5319   CPRDEF="INTEL"
5320   if test -z "$REAL8"; then
5321      REAL8="-r8"
5322   fi
5323   if test "$FCFLAGS" = "$DEFFCFLAGS"; then
5324      FCFLAGS="-w -ftz"
5325   fi
5326   if test -z "$PROGFCFLAGS"; then
5327      PROGFCFLAGS="-assume byterecl"
5328   fi
5329   if test -z "$ENDIAN"; then
5330      ENDIAN="-convert big_endian"
5331   fi
5332   if test -z "$OPT"; then
5333      OPT="-O2"
5334   fi
5335   if test -z "$DEBUG"; then
5336      DEBUG="-g"
5337   fi
5338# Put ftn after GNU for the case where ftn is wrapping PGF
5339elif echo $FC | grep ftn >/dev/null 2>&1; then
5340 if echo $ac_fc_version_output | grep -i Portland >/dev/null 2>&1; then
5341   echo "Fortran Compiler is Portland Group, Cray"
5342   CPRDEF="PGI"
5343   SYSDEF="CNLINUX"
5344   if test -z "$REAL8"; then
5345      REAL8="-r8"
5346   fi
5347   if test -z "$BIT64"; then
5348      BIT64="-pc 64"
5349   fi
5350   if test "$FCFLAGS" = "$DEFFCFLAGS"; then
5351      FCFLAGS=""
5352   fi
5353   if test -z "$ENDIAN"; then
5354      ENDIAN="-byteswapio"
5355   fi
5356   if test -z "$OPT"; then
5357      OPT="-O2"
5358   fi
5359   if test -z "$DEBUG"; then
5360      DEBUG="-g"
5361   fi
5362 fi
5363elif echo $ac_fc_version_output | grep -i nag >/dev/null 2>&1; then
5364   echo "Fortran Compiler is NAG"
5365   CPRDEF="NAG"
5366   if test -z "$REAL8"; then
5367      REAL8="-r8"
5368   fi
5369   if test "$FCFLAGS" = "$DEFFCFLAGS"; then
5370      FCFLAGS="-wmismatch=mpi_send,mpi_recv,mpi_bcast,mpi_allreduce,mpi_reduce,mpi_gatherv,mpi_gather,mpi_rsend,mpi_irecv,mpi_isend,mpi_scatterv,mpi_alltoallv -dusty"
5371   fi
5372   if test -z "$ENDIAN"; then
5373      ENDIAN="-convert=BIG_IEEE"
5374   fi
5375   if test -z "$OPT"; then
5376      OPT="-O2"
5377   fi
5378   if test -z "$DEBUG"; then
5379      DEBUG="-g"
5380   fi
5381###########################################################
5382# the compiler flags below have not been verified recently
5383###########################################################
5384elif echo $FC | grep frt >/dev/null 2>&1; then
5385   echo "Fortran Compiler is UXP/V"
5386   echo "Suggested additional vectorization flags: -Wv,-s5,-t3,-noalias,-ilfunc,-md"
5387   CPRDEF="FUJITSU"
5388   if test -z "$F90FLAGS"; then
5389      F90FLAGS="-Am -X9"
5390   fi
5391   if test -z "$BIT64"; then
5392      BIT64="-KA64"
5393   fi
5394   if test -z "$REAL8"; then
5395      REAL8="-Ad"
5396   fi
5397elif echo $ac_fc_version_output | grep Lahey >/dev/null 2>&1; then
5398   echo "Fortran Compiler is Lahey"
5399   CPRDEF="LAHEY"
5400elif echo $FC | grep pathf90 >/dev/null 2>&1; then
5401   echo "Fortran Compiler is PathScale"
5402   CPRDEF="PATHSC"
5403   if test -z "$REAL8"; then
5404      REAL8="-r8"
5405   fi
5406   if test -z "$BIT64"; then
5407      BIT64="-m64"
5408   fi
5409   if test -z "$OPT"; then
5410      OPT="-O2"
5411   fi
5412elif echo $ac_fc_version_output | grep -i absoft >/dev/null 2>&1; then
5413   echo "Fortran Compiler is Absoft"
5414   CPRDEF="ABSOFT"
5415   if test -z "$REAL8"; then
5416      REAL8="-N113"
5417   fi
5418   if test -z "$INCLUDEFLAG"; then
5419      INCLUDEFLAG="-p"
5420   fi
5421   if test -z "$OPT"; then
5422      OPT="-O2"
5423   fi
5424elif echo $ac_fc_version_output | grep -i workshop >/dev/null 2>&1; then
5425   echo "Fortran Compiler is Workshop"
5426   CPRDEF="WORKSHOP"
5427   if test -z "$INCLUDEFLAG"; then
5428      INCLUDEFLAG="-M"
5429   fi
5430elif echo $ac_fc_version_output | grep -i mipspro >/dev/null 2>&1; then
5431   echo "Fortran Compiler is MIPSPro"
5432   CPRDEF="MIPSPRO"
5433   EXTRACFLAGS="-64"
5434   if test -z "$OPT"; then
5435      OPT="-O3"
5436   fi
5437   if test -z "$REAL8"; then
5438      REAL8="-r8"
5439   fi
5440   if test -z "$BIT64"; then
5441      BIT64="-64"
5442   fi
5443elif echo $ac_fc_version_output | grep -i compaq >/dev/null 2>&1; then
5444   echo "Fortran Compiler is Compaq"
5445   CPRDEF="COMPAQ"
5446   MPILIBS="$MPILIBS -lelan"
5447   if test -z "$OPT"; then
5448      OPT="-fast"
5449   fi
5450   if test -z "$REAL8"; then
5451      REAL8="-real_size 64"
5452   fi
5453   if test -z "$ENDIAN"; then
5454      ENDIAN="-convert big_endian"
5455   fi
5456
5457# Compaq Fortran changed its name to HP Fortran.
5458# Lets support both versions for now.
5459elif echo $ac_fc_version_output | grep HP >/dev/null 2>&1; then
5460   echo "Fortran Compiler is HP"
5461   CPRDEF="COMPAQ"
5462   MPILIBS="$MPILIBS -lelan"
5463   if test -z "$OPT"; then
5464      OPT="-fast"
5465   fi
5466   if test -z "$REAL8"; then
5467      REAL8="-real_size 64"
5468   fi
5469   if test -z "$ENDIAN"; then
5470      ENDIAN="-convert big_endian"
5471   fi
5472
5473elif echo $ac_fc_version_output | grep -i sx >/dev/null 2>&1; then
5474   echo "Fortran Compiler is SX"
5475   CPRDEF="SX"
5476   if test -z "$F90FLAGS"; then
5477      F90FLAGS="-EP -Wf'-pvctl noassoc'"
5478   fi
5479   if test -z "$OPT"; then
5480      OPT="-Chopt"
5481   fi
5482fi
5483
5484# Test to see if fortran compiler supports the flag
5485# -fallow-argument-mismatch flag introduced in gfortran 10.
5486#
5487# Also allow support for NAG compiler using the -mismatch_all flag.
5488#
5489# See https://github.com/Unidata/netcdf-fortran/issues/212
5490# See https://github.com/Unidata/netcdf-fortran/issues/218
5491ac_save_FCFLAGS="$FCFLAGS"
5492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports allow-mismatch flag" >&5
5493printf %s "checking if Fortran compiler supports allow-mismatch flag... " >&6; }
5494cat <<EOF >conftest.f90
5495Program test
5496USE ISO_C_BINDING, ONLY: C_PTRDIFF_T
5497End Program
5498EOF
5499doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -fallow-argument-mismatch conftest.f90'
5500if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
5501  (eval $doit) 2>&5
5502  ac_status=$?
5503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504  test $ac_status = 0; }; then
5505   nf_allow_mismatch=yes
5506   FCFLAGS="${FCFLAGS} -fallow-argument-mismatch"
5507  else
5508   nf_allow_mismatch=no
5509fi
5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_allow_mismatch" >&5
5511printf "%s\n" "$nf_allow_mismatch" >&6; }
5512# End testing of gfortan allow-mismatch flags.
5513
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports mismatch_all flag" >&5
5515printf %s "checking if Fortran compiler supports mismatch_all flag... " >&6; }
5516cat <<EOF >conftest.f90
5517Program test
5518USE ISO_C_BINDING, ONLY: C_PTRDIFF_T
5519End Program
5520EOF
5521doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -mismatch_all conftest.f90'
5522if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
5523  (eval $doit) 2>&5
5524  ac_status=$?
5525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5526  test $ac_status = 0; }; then
5527   nf_mismatch_all=yes
5528   FCFLAGS="${FCFLAGS} -mismatch_all"
5529  else
5530   nf_mismatch_all=no
5531fi
5532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_mismatch_all" >&5
5533printf "%s\n" "$nf_mismatch_all" >&6; }
5534
5535#end testing of NAG mismatch_all flag.
5536
5537##
5538# End mismatch checks
5539##
5540
5541
5542###########################################################
5543# END of compiler-specific flag setting
5544###########################################################
5545
5546CPPDEFS="$CPPDEFS -DSYS$SYSDEF -DCPR$CPRDEF"
5547if test -n "$SRKDEF"; then
5548    CPPDEFS="$CPPDEFS -D$SRKDEF"
5549fi
5550
5551# IF DEBUGGING ENABLED, DISABLE OPTIMIZATION FLAG
5552if test "$DEBUGGING" = "ENABLED"; then
5553        OPT=""
5554else
5555        DEBUG=""
5556fi
5557
5558# SET HARDCODED VARIABLES AS A LAST RESORT
5559
5560# ALWAYS ENABLE CRULE IN MAKEFILE
5561CRULE=.c.o
5562
5563
5564
5565
5566# INCLUDE FLAG IF NOT ALREADY SET IS MOST LIKELY -I
5567if test -z "$INCLUDEFLAG"; then
5568   INCLUDEFLAG="-I"
5569fi
5570
5571# ARCHIVE COMMAND SIMILAR ACROSS ALL PLATFORMS
5572if test -z "$AR"; then
5573   AR="ar cq"
5574fi
5575
5576# RANLIB
5577if test -z "$RANLIB"; then
5578    # Necessary on Darwin to deal with common symbols (particularly when
5579    # using ifort).
5580    if test "$SYSDEF"x = DARWINx; then
5581        RANLIB="ranlib -c"
5582    else
5583        if test -n "$ac_tool_prefix"; then
5584  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587printf %s "checking for $ac_word... " >&6; }
5588if test ${ac_cv_prog_RANLIB+y}
5589then :
5590  printf %s "(cached) " >&6
5591else $as_nop
5592  if test -n "$RANLIB"; then
5593  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  case $as_dir in #(((
5600    '') as_dir=./ ;;
5601    */) ;;
5602    *) as_dir=$as_dir/ ;;
5603  esac
5604    for ac_exec_ext in '' $ac_executable_extensions; do
5605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5606    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5608    break 2
5609  fi
5610done
5611  done
5612IFS=$as_save_IFS
5613
5614fi
5615fi
5616RANLIB=$ac_cv_prog_RANLIB
5617if test -n "$RANLIB"; then
5618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5619printf "%s\n" "$RANLIB" >&6; }
5620else
5621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622printf "%s\n" "no" >&6; }
5623fi
5624
5625
5626fi
5627if test -z "$ac_cv_prog_RANLIB"; then
5628  ac_ct_RANLIB=$RANLIB
5629  # Extract the first word of "ranlib", so it can be a program name with args.
5630set dummy ranlib; ac_word=$2
5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632printf %s "checking for $ac_word... " >&6; }
5633if test ${ac_cv_prog_ac_ct_RANLIB+y}
5634then :
5635  printf %s "(cached) " >&6
5636else $as_nop
5637  if test -n "$ac_ct_RANLIB"; then
5638  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643  IFS=$as_save_IFS
5644  case $as_dir in #(((
5645    '') as_dir=./ ;;
5646    */) ;;
5647    *) as_dir=$as_dir/ ;;
5648  esac
5649    for ac_exec_ext in '' $ac_executable_extensions; do
5650  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5651    ac_cv_prog_ac_ct_RANLIB="ranlib"
5652    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5653    break 2
5654  fi
5655done
5656  done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5662if test -n "$ac_ct_RANLIB"; then
5663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5664printf "%s\n" "$ac_ct_RANLIB" >&6; }
5665else
5666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667printf "%s\n" "no" >&6; }
5668fi
5669
5670  if test "x$ac_ct_RANLIB" = x; then
5671    RANLIB=":"
5672  else
5673    case $cross_compiling:$ac_tool_warned in
5674yes:)
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677ac_tool_warned=yes ;;
5678esac
5679    RANLIB=$ac_ct_RANLIB
5680  fi
5681else
5682  RANLIB="$ac_cv_prog_RANLIB"
5683fi
5684
5685    fi
5686fi
5687
5688echo
5689echo Output Variables: {CC=$CC} {CFLAGS=$CFLAGS} \
5690{FC=$FC} {FCFLAGS=$FCFLAGS} {PROGFCFLAGS=$PROGFCFLAGS}\
5691{CPPDEFS=$CPPDEFS} {OPT=$OPT} {DEBUG=$DEBUG} {REAL8=$REAL8} \
5692{BIT64=$BIT64} {ENDIAN=$ENDIAN} {MPIFC=$MPIFC} \
5693{MPILIBS=$MPILIBS} {MPIHEADER=$MPIHEADER}  \
5694{INCLUDEFLAG=$INCLUDEFLAG} {INCLUDEPATH=$INCLUDEPATH} \
5695{AR=$AR} {RANLIB=$RANLIB} {BABELROOT=$BABELROOT} {COMPILER_ROOT=$COMPILER_ROOT} \
5696{PYTHON=$PYTHON} {PYTHONOPTS=$PYTHONOPTS} {FORT_SIZE=$FORT_SIZE} {prefix=$prefix} \
5697{SRCDIR=$SRCDIR} {FC_DEFINE=$FC_DEFINE}
5698echo
5699
5700if test -n "$DONOTCHECKMPI"; then
5701   echo "MPISERIAL ENABLED: CONFIGURING mpi-serial"
5702
5703
5704subdirs="$subdirs mpi-serial"
5705
5706fi
5707
5708cat >confcache <<\_ACEOF
5709# This file is a shell script that caches the results of configure
5710# tests run on this system so they can be shared between configure
5711# scripts and configure runs, see configure's option --config-cache.
5712# It is not useful on other systems.  If it contains results you don't
5713# want to keep, you may remove or edit it.
5714#
5715# config.status only pays attention to the cache file if you give it
5716# the --recheck option to rerun configure.
5717#
5718# `ac_cv_env_foo' variables (set or unset) will be overridden when
5719# loading this file, other *unset* `ac_cv_foo' will be assigned the
5720# following values.
5721
5722_ACEOF
5723
5724# The following way of writing the cache mishandles newlines in values,
5725# but we know of no workaround that is simple, portable, and efficient.
5726# So, we kill variables containing newlines.
5727# Ultrix sh set writes to stderr and can't be redirected directly,
5728# and sets the high bit in the cache file unless we assign to the vars.
5729(
5730  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5731    eval ac_val=\$$ac_var
5732    case $ac_val in #(
5733    *${as_nl}*)
5734      case $ac_var in #(
5735      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5736printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5737      esac
5738      case $ac_var in #(
5739      _ | IFS | as_nl) ;; #(
5740      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5741      *) { eval $ac_var=; unset $ac_var;} ;;
5742      esac ;;
5743    esac
5744  done
5745
5746  (set) 2>&1 |
5747    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5748    *${as_nl}ac_space=\ *)
5749      # `set' does not quote correctly, so add quotes: double-quote
5750      # substitution turns \\\\ into \\, and sed turns \\ into \.
5751      sed -n \
5752        "s/'/'\\\\''/g;
5753          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5754      ;; #(
5755    *)
5756      # `set' quotes correctly as required by POSIX, so do not add quotes.
5757      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5758      ;;
5759    esac |
5760    sort
5761) |
5762  sed '
5763     /^ac_cv_env_/b end
5764     t clear
5765     :clear
5766     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5767     t end
5768     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5769     :end' >>confcache
5770if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5771  if test -w "$cache_file"; then
5772    if test "x$cache_file" != "x/dev/null"; then
5773      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5774printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5775      if test ! -f "$cache_file" || test -h "$cache_file"; then
5776        cat confcache >"$cache_file"
5777      else
5778        case $cache_file in #(
5779        */* | ?:*)
5780          mv -f confcache "$cache_file"$$ &&
5781          mv -f "$cache_file"$$ "$cache_file" ;; #(
5782        *)
5783          mv -f confcache "$cache_file" ;;
5784        esac
5785      fi
5786    fi
5787  else
5788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5789printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5790  fi
5791fi
5792rm -f confcache
5793
5794test "x$prefix" = xNONE && prefix=$ac_default_prefix
5795# Let make expand exec_prefix.
5796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5797
5798DEFS=-DHAVE_CONFIG_H
5799
5800ac_libobjs=
5801ac_ltlibobjs=
5802U=
5803for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5804  # 1. Remove the extension, and $U if already installed.
5805  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5806  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5807  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5808  #    will be set to the directory where LIBOBJS objects are built.
5809  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5810  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5811done
5812LIBOBJS=$ac_libobjs
5813
5814LTLIBOBJS=$ac_ltlibobjs
5815
5816
5817
5818
5819: "${CONFIG_STATUS=./config.status}"
5820ac_write_fail=0
5821ac_clean_files_save=$ac_clean_files
5822ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5824printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5825as_write_fail=0
5826cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5827#! $SHELL
5828# Generated by $as_me.
5829# Run this file to recreate the current configuration.
5830# Compiler output produced by configure, useful for debugging
5831# configure, is in config.log if it exists.
5832
5833debug=false
5834ac_cs_recheck=false
5835ac_cs_silent=false
5836
5837SHELL=\${CONFIG_SHELL-$SHELL}
5838export SHELL
5839_ASEOF
5840cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5841## -------------------- ##
5842## M4sh Initialization. ##
5843## -------------------- ##
5844
5845# Be more Bourne compatible
5846DUALCASE=1; export DUALCASE # for MKS sh
5847as_nop=:
5848if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5849then :
5850  emulate sh
5851  NULLCMD=:
5852  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5853  # is contrary to our usage.  Disable this feature.
5854  alias -g '${1+"$@"}'='"$@"'
5855  setopt NO_GLOB_SUBST
5856else $as_nop
5857  case `(set -o) 2>/dev/null` in #(
5858  *posix*) :
5859    set -o posix ;; #(
5860  *) :
5861     ;;
5862esac
5863fi
5864
5865
5866
5867# Reset variables that may have inherited troublesome values from
5868# the environment.
5869
5870# IFS needs to be set, to space, tab, and newline, in precisely that order.
5871# (If _AS_PATH_WALK were called with IFS unset, it would have the
5872# side effect of setting IFS to empty, thus disabling word splitting.)
5873# Quoting is to prevent editors from complaining about space-tab.
5874as_nl='
5875'
5876export as_nl
5877IFS=" ""        $as_nl"
5878
5879PS1='$ '
5880PS2='> '
5881PS4='+ '
5882
5883# Ensure predictable behavior from utilities with locale-dependent output.
5884LC_ALL=C
5885export LC_ALL
5886LANGUAGE=C
5887export LANGUAGE
5888
5889# We cannot yet rely on "unset" to work, but we need these variables
5890# to be unset--not just set to an empty or harmless value--now, to
5891# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
5892# also avoids known problems related to "unset" and subshell syntax
5893# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5894for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5895do eval test \${$as_var+y} \
5896  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5897done
5898
5899# Ensure that fds 0, 1, and 2 are open.
5900if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5901if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5902if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
5903
5904# The user is always right.
5905if ${PATH_SEPARATOR+false} :; then
5906  PATH_SEPARATOR=:
5907  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5908    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5909      PATH_SEPARATOR=';'
5910  }
5911fi
5912
5913
5914# Find who we are.  Look in the path if we contain no directory separator.
5915as_myself=
5916case $0 in #((
5917  *[\\/]* ) as_myself=$0 ;;
5918  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  case $as_dir in #(((
5923    '') as_dir=./ ;;
5924    */) ;;
5925    *) as_dir=$as_dir/ ;;
5926  esac
5927    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5928  done
5929IFS=$as_save_IFS
5930
5931     ;;
5932esac
5933# We did not find ourselves, most probably we were run as `sh COMMAND'
5934# in which case we are not to be found in the path.
5935if test "x$as_myself" = x; then
5936  as_myself=$0
5937fi
5938if test ! -f "$as_myself"; then
5939  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5940  exit 1
5941fi
5942
5943
5944
5945# as_fn_error STATUS ERROR [LINENO LOG_FD]
5946# ----------------------------------------
5947# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5948# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5949# script with STATUS, using 1 if that was 0.
5950as_fn_error ()
5951{
5952  as_status=$1; test $as_status -eq 0 && as_status=1
5953  if test "$4"; then
5954    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5956  fi
5957  printf "%s\n" "$as_me: error: $2" >&2
5958  as_fn_exit $as_status
5959} # as_fn_error
5960
5961
5962
5963# as_fn_set_status STATUS
5964# -----------------------
5965# Set $? to STATUS, without forking.
5966as_fn_set_status ()
5967{
5968  return $1
5969} # as_fn_set_status
5970
5971# as_fn_exit STATUS
5972# -----------------
5973# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5974as_fn_exit ()
5975{
5976  set +e
5977  as_fn_set_status $1
5978  exit $1
5979} # as_fn_exit
5980
5981# as_fn_unset VAR
5982# ---------------
5983# Portably unset VAR.
5984as_fn_unset ()
5985{
5986  { eval $1=; unset $1;}
5987}
5988as_unset=as_fn_unset
5989
5990# as_fn_append VAR VALUE
5991# ----------------------
5992# Append the text in VALUE to the end of the definition contained in VAR. Take
5993# advantage of any shell optimizations that allow amortized linear growth over
5994# repeated appends, instead of the typical quadratic growth present in naive
5995# implementations.
5996if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5997then :
5998  eval 'as_fn_append ()
5999  {
6000    eval $1+=\$2
6001  }'
6002else $as_nop
6003  as_fn_append ()
6004  {
6005    eval $1=\$$1\$2
6006  }
6007fi # as_fn_append
6008
6009# as_fn_arith ARG...
6010# ------------------
6011# Perform arithmetic evaluation on the ARGs, and store the result in the
6012# global $as_val. Take advantage of shells that can avoid forks. The arguments
6013# must be portable across $(()) and expr.
6014if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6015then :
6016  eval 'as_fn_arith ()
6017  {
6018    as_val=$(( $* ))
6019  }'
6020else $as_nop
6021  as_fn_arith ()
6022  {
6023    as_val=`expr "$@" || test $? -eq 1`
6024  }
6025fi # as_fn_arith
6026
6027
6028if expr a : '\(a\)' >/dev/null 2>&1 &&
6029   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6030  as_expr=expr
6031else
6032  as_expr=false
6033fi
6034
6035if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6036  as_basename=basename
6037else
6038  as_basename=false
6039fi
6040
6041if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6042  as_dirname=dirname
6043else
6044  as_dirname=false
6045fi
6046
6047as_me=`$as_basename -- "$0" ||
6048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6049         X"$0" : 'X\(//\)$' \| \
6050         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6051printf "%s\n" X/"$0" |
6052    sed '/^.*\/\([^/][^/]*\)\/*$/{
6053            s//\1/
6054            q
6055          }
6056          /^X\/\(\/\/\)$/{
6057            s//\1/
6058            q
6059          }
6060          /^X\/\(\/\).*/{
6061            s//\1/
6062            q
6063          }
6064          s/.*/./; q'`
6065
6066# Avoid depending upon Character Ranges.
6067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6070as_cr_digits='0123456789'
6071as_cr_alnum=$as_cr_Letters$as_cr_digits
6072
6073
6074# Determine whether it's possible to make 'echo' print without a newline.
6075# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6076# for compatibility with existing Makefiles.
6077ECHO_C= ECHO_N= ECHO_T=
6078case `echo -n x` in #(((((
6079-n*)
6080  case `echo 'xy\c'` in
6081  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6082  xy)  ECHO_C='\c';;
6083  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6084       ECHO_T=' ';;
6085  esac;;
6086*)
6087  ECHO_N='-n';;
6088esac
6089
6090# For backward compatibility with old third-party macros, we provide
6091# the shell variables $as_echo and $as_echo_n.  New code should use
6092# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6093as_echo='printf %s\n'
6094as_echo_n='printf %s'
6095
6096rm -f conf$$ conf$$.exe conf$$.file
6097if test -d conf$$.dir; then
6098  rm -f conf$$.dir/conf$$.file
6099else
6100  rm -f conf$$.dir
6101  mkdir conf$$.dir 2>/dev/null
6102fi
6103if (echo >conf$$.file) 2>/dev/null; then
6104  if ln -s conf$$.file conf$$ 2>/dev/null; then
6105    as_ln_s='ln -s'
6106    # ... but there are two gotchas:
6107    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6108    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6109    # In both cases, we have to default to `cp -pR'.
6110    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6111      as_ln_s='cp -pR'
6112  elif ln conf$$.file conf$$ 2>/dev/null; then
6113    as_ln_s=ln
6114  else
6115    as_ln_s='cp -pR'
6116  fi
6117else
6118  as_ln_s='cp -pR'
6119fi
6120rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6121rmdir conf$$.dir 2>/dev/null
6122
6123
6124# as_fn_mkdir_p
6125# -------------
6126# Create "$as_dir" as a directory, including parents if necessary.
6127as_fn_mkdir_p ()
6128{
6129
6130  case $as_dir in #(
6131  -*) as_dir=./$as_dir;;
6132  esac
6133  test -d "$as_dir" || eval $as_mkdir_p || {
6134    as_dirs=
6135    while :; do
6136      case $as_dir in #(
6137      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6138      *) as_qdir=$as_dir;;
6139      esac
6140      as_dirs="'$as_qdir' $as_dirs"
6141      as_dir=`$as_dirname -- "$as_dir" ||
6142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6143         X"$as_dir" : 'X\(//\)[^/]' \| \
6144         X"$as_dir" : 'X\(//\)$' \| \
6145         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6146printf "%s\n" X"$as_dir" |
6147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6148            s//\1/
6149            q
6150          }
6151          /^X\(\/\/\)[^/].*/{
6152            s//\1/
6153            q
6154          }
6155          /^X\(\/\/\)$/{
6156            s//\1/
6157            q
6158          }
6159          /^X\(\/\).*/{
6160            s//\1/
6161            q
6162          }
6163          s/.*/./; q'`
6164      test -d "$as_dir" && break
6165    done
6166    test -z "$as_dirs" || eval "mkdir $as_dirs"
6167  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6168
6169
6170} # as_fn_mkdir_p
6171if mkdir -p . 2>/dev/null; then
6172  as_mkdir_p='mkdir -p "$as_dir"'
6173else
6174  test -d ./-p && rmdir ./-p
6175  as_mkdir_p=false
6176fi
6177
6178
6179# as_fn_executable_p FILE
6180# -----------------------
6181# Test if FILE is an executable regular file.
6182as_fn_executable_p ()
6183{
6184  test -f "$1" && test -x "$1"
6185} # as_fn_executable_p
6186as_test_x='test -x'
6187as_executable_p=as_fn_executable_p
6188
6189# Sed expression to map a string onto a valid CPP name.
6190as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6191
6192# Sed expression to map a string onto a valid variable name.
6193as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6194
6195
6196exec 6>&1
6197## ----------------------------------- ##
6198## Main body of $CONFIG_STATUS script. ##
6199## ----------------------------------- ##
6200_ASEOF
6201test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6202
6203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6204# Save the log message, to keep $0 and so on meaningful, and to
6205# report actual input values of CONFIG_FILES etc. instead of their
6206# values after options handling.
6207ac_log="
6208This file was extended by MCT $as_me 2.10, which was
6209generated by GNU Autoconf 2.70.  Invocation command line was
6210
6211  CONFIG_FILES    = $CONFIG_FILES
6212  CONFIG_HEADERS  = $CONFIG_HEADERS
6213  CONFIG_LINKS    = $CONFIG_LINKS
6214  CONFIG_COMMANDS = $CONFIG_COMMANDS
6215  $ $0 $@
6216
6217on `(hostname || uname -n) 2>/dev/null | sed 1q`
6218"
6219
6220_ACEOF
6221
6222case $ac_config_files in *"
6223"*) set x $ac_config_files; shift; ac_config_files=$*;;
6224esac
6225
6226case $ac_config_headers in *"
6227"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6228esac
6229
6230
6231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6232# Files that config.status was made for.
6233config_files="$ac_config_files"
6234config_headers="$ac_config_headers"
6235
6236_ACEOF
6237
6238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6239ac_cs_usage="\
6240\`$as_me' instantiates files and other configuration actions
6241from templates according to the current configuration.  Unless the files
6242and actions are specified as TAGs, all are instantiated by default.
6243
6244Usage: $0 [OPTION]... [TAG]...
6245
6246  -h, --help       print this help, then exit
6247  -V, --version    print version number and configuration settings, then exit
6248      --config     print configuration, then exit
6249  -q, --quiet, --silent
6250                   do not print progress messages
6251  -d, --debug      don't remove temporary files
6252      --recheck    update $as_me by reconfiguring in the same conditions
6253      --file=FILE[:TEMPLATE]
6254                   instantiate the configuration file FILE
6255      --header=FILE[:TEMPLATE]
6256                   instantiate the configuration header FILE
6257
6258Configuration files:
6259$config_files
6260
6261Configuration headers:
6262$config_headers
6263
6264Report bugs to the package provider."
6265
6266_ACEOF
6267ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6268ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6270ac_cs_config='$ac_cs_config_escaped'
6271ac_cs_version="\\
6272MCT config.status 2.10
6273configured by $0, generated by GNU Autoconf 2.70,
6274  with options \\"\$ac_cs_config\\"
6275
6276Copyright (C) 2020 Free Software Foundation, Inc.
6277This config.status script is free software; the Free Software Foundation
6278gives unlimited permission to copy, distribute and modify it."
6279
6280ac_pwd='$ac_pwd'
6281srcdir='$srcdir'
6282test -n "\$AWK" || AWK=awk
6283_ACEOF
6284
6285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6286# The default lists apply if the user does not specify any file.
6287ac_need_defaults=:
6288while test $# != 0
6289do
6290  case $1 in
6291  --*=?*)
6292    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6293    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6294    ac_shift=:
6295    ;;
6296  --*=)
6297    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6298    ac_optarg=
6299    ac_shift=:
6300    ;;
6301  *)
6302    ac_option=$1
6303    ac_optarg=$2
6304    ac_shift=shift
6305    ;;
6306  esac
6307
6308  case $ac_option in
6309  # Handling of the options.
6310  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6311    ac_cs_recheck=: ;;
6312  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6313    printf "%s\n" "$ac_cs_version"; exit ;;
6314  --config | --confi | --conf | --con | --co | --c )
6315    printf "%s\n" "$ac_cs_config"; exit ;;
6316  --debug | --debu | --deb | --de | --d | -d )
6317    debug=: ;;
6318  --file | --fil | --fi | --f )
6319    $ac_shift
6320    case $ac_optarg in
6321    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6322    '') as_fn_error $? "missing file argument" ;;
6323    esac
6324    as_fn_append CONFIG_FILES " '$ac_optarg'"
6325    ac_need_defaults=false;;
6326  --header | --heade | --head | --hea )
6327    $ac_shift
6328    case $ac_optarg in
6329    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6330    esac
6331    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6332    ac_need_defaults=false;;
6333  --he | --h)
6334    # Conflict between --help and --header
6335    as_fn_error $? "ambiguous option: \`$1'
6336Try \`$0 --help' for more information.";;
6337  --help | --hel | -h )
6338    printf "%s\n" "$ac_cs_usage"; exit ;;
6339  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6340  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6341    ac_cs_silent=: ;;
6342
6343  # This is an error.
6344  -*) as_fn_error $? "unrecognized option: \`$1'
6345Try \`$0 --help' for more information." ;;
6346
6347  *) as_fn_append ac_config_targets " $1"
6348     ac_need_defaults=false ;;
6349
6350  esac
6351  shift
6352done
6353
6354ac_configure_extra_args=
6355
6356if $ac_cs_silent; then
6357  exec 6>/dev/null
6358  ac_configure_extra_args="$ac_configure_extra_args --silent"
6359fi
6360
6361_ACEOF
6362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6363if \$ac_cs_recheck; then
6364  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6365  shift
6366  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6367  CONFIG_SHELL='$SHELL'
6368  export CONFIG_SHELL
6369  exec "\$@"
6370fi
6371
6372_ACEOF
6373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6374exec 5>>config.log
6375{
6376  echo
6377  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6378## Running $as_me. ##
6379_ASBOX
6380  printf "%s\n" "$ac_log"
6381} >&5
6382
6383_ACEOF
6384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6385_ACEOF
6386
6387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6388
6389# Handling of arguments.
6390for ac_config_target in $ac_config_targets
6391do
6392  case $ac_config_target in
6393    "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;;
6394    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6395
6396  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6397  esac
6398done
6399
6400
6401# If the user did not use the arguments to specify the items to instantiate,
6402# then the envvar interface is used.  Set only those that are not.
6403# We use the long form for the default assignment because of an extremely
6404# bizarre bug on SunOS 4.1.3.
6405if $ac_need_defaults; then
6406  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6407  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6408fi
6409
6410# Have a temporary directory for convenience.  Make it in the build tree
6411# simply because there is no reason against having it here, and in addition,
6412# creating and moving files from /tmp can sometimes cause problems.
6413# Hook for its removal unless debugging.
6414# Note that there is a small window in which the directory will not be cleaned:
6415# after its creation but before its name has been assigned to `$tmp'.
6416$debug ||
6417{
6418  tmp= ac_tmp=
6419  trap 'exit_status=$?
6420  : "${ac_tmp:=$tmp}"
6421  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6422' 0
6423  trap 'as_fn_exit 1' 1 2 13 15
6424}
6425# Create a (secure) tmp directory for tmp files.
6426
6427{
6428  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6429  test -d "$tmp"
6430}  ||
6431{
6432  tmp=./conf$$-$RANDOM
6433  (umask 077 && mkdir "$tmp")
6434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6435ac_tmp=$tmp
6436
6437# Set up the scripts for CONFIG_FILES section.
6438# No need to generate them if there are no CONFIG_FILES.
6439# This happens for instance with `./config.status config.h'.
6440if test -n "$CONFIG_FILES"; then
6441
6442
6443ac_cr=`echo X | tr X '\015'`
6444# On cygwin, bash can eat \r inside `` if the user requested igncr.
6445# But we know of no other shell where ac_cr would be empty at this
6446# point, so we can use a bashism as a fallback.
6447if test "x$ac_cr" = x; then
6448  eval ac_cr=\$\'\\r\'
6449fi
6450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6452  ac_cs_awk_cr='\\r'
6453else
6454  ac_cs_awk_cr=$ac_cr
6455fi
6456
6457echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6458_ACEOF
6459
6460
6461{
6462  echo "cat >conf$$subs.awk <<_ACEOF" &&
6463  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6464  echo "_ACEOF"
6465} >conf$$subs.sh ||
6466  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6468ac_delim='%!_!# '
6469for ac_last_try in false false false false false :; do
6470  . ./conf$$subs.sh ||
6471    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6472
6473  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6474  if test $ac_delim_n = $ac_delim_num; then
6475    break
6476  elif $ac_last_try; then
6477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6478  else
6479    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6480  fi
6481done
6482rm -f conf$$subs.sh
6483
6484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6486_ACEOF
6487sed -n '
6488h
6489s/^/S["/; s/!.*/"]=/
6490p
6491g
6492s/^[^!]*!//
6493:repl
6494t repl
6495s/'"$ac_delim"'$//
6496t delim
6497:nl
6498h
6499s/\(.\{148\}\)..*/\1/
6500t more1
6501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6502p
6503n
6504b repl
6505:more1
6506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6507p
6508g
6509s/.\{148\}//
6510t nl
6511:delim
6512h
6513s/\(.\{148\}\)..*/\1/
6514t more2
6515s/["\\]/\\&/g; s/^/"/; s/$/"/
6516p
6517b
6518:more2
6519s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6520p
6521g
6522s/.\{148\}//
6523t delim
6524' <conf$$subs.awk | sed '
6525/^[^""]/{
6526  N
6527  s/\n//
6528}
6529' >>$CONFIG_STATUS || ac_write_fail=1
6530rm -f conf$$subs.awk
6531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6532_ACAWK
6533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6534  for (key in S) S_is_set[key] = 1
6535  FS = ""
6536
6537}
6538{
6539  line = $ 0
6540  nfields = split(line, field, "@")
6541  substed = 0
6542  len = length(field[1])
6543  for (i = 2; i < nfields; i++) {
6544    key = field[i]
6545    keylen = length(key)
6546    if (S_is_set[key]) {
6547      value = S[key]
6548      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6549      len += length(value) + length(field[++i])
6550      substed = 1
6551    } else
6552      len += 1 + keylen
6553  }
6554
6555  print line
6556}
6557
6558_ACAWK
6559_ACEOF
6560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6562  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6563else
6564  cat
6565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6566  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6567_ACEOF
6568
6569# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6571# trailing colons and then remove the whole line if VPATH becomes empty
6572# (actually we leave an empty line to preserve line numbers).
6573if test "x$srcdir" = x.; then
6574  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6575h
6576s///
6577s/^/:/
6578s/[      ]*$/:/
6579s/:\$(srcdir):/:/g
6580s/:\${srcdir}:/:/g
6581s/:@srcdir@:/:/g
6582s/^:*//
6583s/:*$//
6584x
6585s/\(=[   ]*\).*/\1/
6586G
6587s/\n//
6588s/^[^=]*=[       ]*$//
6589}'
6590fi
6591
6592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6593fi # test -n "$CONFIG_FILES"
6594
6595# Set up the scripts for CONFIG_HEADERS section.
6596# No need to generate them if there are no CONFIG_HEADERS.
6597# This happens for instance with `./config.status Makefile'.
6598if test -n "$CONFIG_HEADERS"; then
6599cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6600BEGIN {
6601_ACEOF
6602
6603# Transform confdefs.h into an awk script `defines.awk', embedded as
6604# here-document in config.status, that substitutes the proper values into
6605# config.h.in to produce config.h.
6606
6607# Create a delimiter string that does not exist in confdefs.h, to ease
6608# handling of long lines.
6609ac_delim='%!_!# '
6610for ac_last_try in false false :; do
6611  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6612  if test -z "$ac_tt"; then
6613    break
6614  elif $ac_last_try; then
6615    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6616  else
6617    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6618  fi
6619done
6620
6621# For the awk script, D is an array of macro values keyed by name,
6622# likewise P contains macro parameters if any.  Preserve backslash
6623# newline sequences.
6624
6625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6626sed -n '
6627s/.\{148\}/&'"$ac_delim"'/g
6628t rset
6629:rset
6630s/^[     ]*#[    ]*define[       ][      ]*/ /
6631t def
6632d
6633:def
6634s/\\$//
6635t bsnl
6636s/["\\]/\\&/g
6637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6638D["\1"]=" \3"/p
6639s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6640d
6641:bsnl
6642s/["\\]/\\&/g
6643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6644D["\1"]=" \3\\\\\\n"\\/p
6645t cont
6646s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6647t cont
6648d
6649:cont
6650n
6651s/.\{148\}/&'"$ac_delim"'/g
6652t clear
6653:clear
6654s/\\$//
6655t bsnlc
6656s/["\\]/\\&/g; s/^/"/; s/$/"/p
6657d
6658:bsnlc
6659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6660b cont
6661' <confdefs.h | sed '
6662s/'"$ac_delim"'/"\\\
6663"/g' >>$CONFIG_STATUS || ac_write_fail=1
6664
6665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6666  for (key in D) D_is_set[key] = 1
6667  FS = ""
6668}
6669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6670  line = \$ 0
6671  split(line, arg, " ")
6672  if (arg[1] == "#") {
6673    defundef = arg[2]
6674    mac1 = arg[3]
6675  } else {
6676    defundef = substr(arg[1], 2)
6677    mac1 = arg[2]
6678  }
6679  split(mac1, mac2, "(") #)
6680  macro = mac2[1]
6681  prefix = substr(line, 1, index(line, defundef) - 1)
6682  if (D_is_set[macro]) {
6683    # Preserve the white space surrounding the "#".
6684    print prefix "define", macro P[macro] D[macro]
6685    next
6686  } else {
6687    # Replace #undef with comments.  This is necessary, for example,
6688    # in the case of _POSIX_SOURCE, which is predefined and required
6689    # on some systems where configure will not decide to define it.
6690    if (defundef == "undef") {
6691      print "/*", prefix defundef, macro, "*/"
6692      next
6693    }
6694  }
6695}
6696{ print }
6697_ACAWK
6698_ACEOF
6699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6700  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6701fi # test -n "$CONFIG_HEADERS"
6702
6703
6704eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6705shift
6706for ac_tag
6707do
6708  case $ac_tag in
6709  :[FHLC]) ac_mode=$ac_tag; continue;;
6710  esac
6711  case $ac_mode$ac_tag in
6712  :[FHL]*:*);;
6713  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6714  :[FH]-) ac_tag=-:-;;
6715  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6716  esac
6717  ac_save_IFS=$IFS
6718  IFS=:
6719  set x $ac_tag
6720  IFS=$ac_save_IFS
6721  shift
6722  ac_file=$1
6723  shift
6724
6725  case $ac_mode in
6726  :L) ac_source=$1;;
6727  :[FH])
6728    ac_file_inputs=
6729    for ac_f
6730    do
6731      case $ac_f in
6732      -) ac_f="$ac_tmp/stdin";;
6733      *) # Look for the file first in the build tree, then in the source tree
6734         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6735         # because $ac_f cannot contain `:'.
6736         test -f "$ac_f" ||
6737           case $ac_f in
6738           [\\/$]*) false;;
6739           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6740           esac ||
6741           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6742      esac
6743      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6744      as_fn_append ac_file_inputs " '$ac_f'"
6745    done
6746
6747    # Let's still pretend it is `configure' which instantiates (i.e., don't
6748    # use $as_me), people would be surprised to read:
6749    #    /* config.h.  Generated by config.status.  */
6750    configure_input='Generated from '`
6751          printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6752        `' by configure.'
6753    if test x"$ac_file" != x-; then
6754      configure_input="$ac_file.  $configure_input"
6755      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6756printf "%s\n" "$as_me: creating $ac_file" >&6;}
6757    fi
6758    # Neutralize special characters interpreted by sed in replacement strings.
6759    case $configure_input in #(
6760    *\&* | *\|* | *\\* )
6761       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6762       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6763    *) ac_sed_conf_input=$configure_input;;
6764    esac
6765
6766    case $ac_tag in
6767    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6768      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6769    esac
6770    ;;
6771  esac
6772
6773  ac_dir=`$as_dirname -- "$ac_file" ||
6774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6775         X"$ac_file" : 'X\(//\)[^/]' \| \
6776         X"$ac_file" : 'X\(//\)$' \| \
6777         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6778printf "%s\n" X"$ac_file" |
6779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6780            s//\1/
6781            q
6782          }
6783          /^X\(\/\/\)[^/].*/{
6784            s//\1/
6785            q
6786          }
6787          /^X\(\/\/\)$/{
6788            s//\1/
6789            q
6790          }
6791          /^X\(\/\).*/{
6792            s//\1/
6793            q
6794          }
6795          s/.*/./; q'`
6796  as_dir="$ac_dir"; as_fn_mkdir_p
6797  ac_builddir=.
6798
6799case "$ac_dir" in
6800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6801*)
6802  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6803  # A ".." for each directory in $ac_dir_suffix.
6804  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6805  case $ac_top_builddir_sub in
6806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6808  esac ;;
6809esac
6810ac_abs_top_builddir=$ac_pwd
6811ac_abs_builddir=$ac_pwd$ac_dir_suffix
6812# for backward compatibility:
6813ac_top_builddir=$ac_top_build_prefix
6814
6815case $srcdir in
6816  .)  # We are building in place.
6817    ac_srcdir=.
6818    ac_top_srcdir=$ac_top_builddir_sub
6819    ac_abs_top_srcdir=$ac_pwd ;;
6820  [\\/]* | ?:[\\/]* )  # Absolute name.
6821    ac_srcdir=$srcdir$ac_dir_suffix;
6822    ac_top_srcdir=$srcdir
6823    ac_abs_top_srcdir=$srcdir ;;
6824  *) # Relative name.
6825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6826    ac_top_srcdir=$ac_top_build_prefix$srcdir
6827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6828esac
6829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6830
6831
6832  case $ac_mode in
6833  :F)
6834  #
6835  # CONFIG_FILE
6836  #
6837
6838_ACEOF
6839
6840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6841# If the template does not know about datarootdir, expand it.
6842# FIXME: This hack should be removed a few years after 2.60.
6843ac_datarootdir_hack=; ac_datarootdir_seen=
6844ac_sed_dataroot='
6845/datarootdir/ {
6846  p
6847  q
6848}
6849/@datadir@/p
6850/@docdir@/p
6851/@infodir@/p
6852/@localedir@/p
6853/@mandir@/p'
6854case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6855*datarootdir*) ac_datarootdir_seen=yes;;
6856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6858printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6859_ACEOF
6860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6861  ac_datarootdir_hack='
6862  s&@datadir@&$datadir&g
6863  s&@docdir@&$docdir&g
6864  s&@infodir@&$infodir&g
6865  s&@localedir@&$localedir&g
6866  s&@mandir@&$mandir&g
6867  s&\\\${datarootdir}&$datarootdir&g' ;;
6868esac
6869_ACEOF
6870
6871# Neutralize VPATH when `$srcdir' = `.'.
6872# Shell code in configure.ac might set extrasub.
6873# FIXME: do we really want to maintain this feature?
6874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6875ac_sed_extra="$ac_vpsub
6876$extrasub
6877_ACEOF
6878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6879:t
6880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6881s|@configure_input@|$ac_sed_conf_input|;t t
6882s&@top_builddir@&$ac_top_builddir_sub&;t t
6883s&@top_build_prefix@&$ac_top_build_prefix&;t t
6884s&@srcdir@&$ac_srcdir&;t t
6885s&@abs_srcdir@&$ac_abs_srcdir&;t t
6886s&@top_srcdir@&$ac_top_srcdir&;t t
6887s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6888s&@builddir@&$ac_builddir&;t t
6889s&@abs_builddir@&$ac_abs_builddir&;t t
6890s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6891$ac_datarootdir_hack
6892"
6893eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6894  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6895
6896test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6897  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6898  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6899      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6901which seems to be undefined.  Please make sure it is defined" >&5
6902printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6903which seems to be undefined.  Please make sure it is defined" >&2;}
6904
6905  rm -f "$ac_tmp/stdin"
6906  case $ac_file in
6907  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6908  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6909  esac \
6910  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6911 ;;
6912  :H)
6913  #
6914  # CONFIG_HEADER
6915  #
6916  if test x"$ac_file" != x-; then
6917    {
6918      printf "%s\n" "/* $configure_input  */" >&1 \
6919      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6920    } >"$ac_tmp/config.h" \
6921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6922    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6923      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6924printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6925    else
6926      rm -f "$ac_file"
6927      mv "$ac_tmp/config.h" "$ac_file" \
6928        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6929    fi
6930  else
6931    printf "%s\n" "/* $configure_input  */" >&1 \
6932      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6933      || as_fn_error $? "could not create -" "$LINENO" 5
6934  fi
6935 ;;
6936
6937
6938  esac
6939
6940done # for ac_tag
6941
6942
6943as_fn_exit 0
6944_ACEOF
6945ac_clean_files=$ac_clean_files_save
6946
6947test $ac_write_fail = 0 ||
6948  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6949
6950
6951# configure is writing to config.log, and then calls config.status.
6952# config.status does its own redirection, appending to config.log.
6953# Unfortunately, on DOS this fails, as config.log is still kept open
6954# by configure, so config.status won't be able to write to it; its
6955# output is simply discarded.  So we exec the FD to /dev/null,
6956# effectively closing config.log, so it can be properly (re)opened and
6957# appended to by config.status.  When coming back to configure, we
6958# need to make the FD available again.
6959if test "$no_create" != yes; then
6960  ac_cs_success=:
6961  ac_config_status_args=
6962  test "$silent" = yes &&
6963    ac_config_status_args="$ac_config_status_args --quiet"
6964  exec 5>/dev/null
6965  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6966  exec 5>>config.log
6967  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6968  # would make configure fail if this is the last instruction.
6969  $ac_cs_success || as_fn_exit 1
6970fi
6971
6972#
6973# CONFIG_SUBDIRS section.
6974#
6975if test "$no_recursion" != yes; then
6976
6977  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6978  # so they do not pile up.
6979  ac_sub_configure_args=
6980  ac_prev=
6981  eval "set x $ac_configure_args"
6982  shift
6983  for ac_arg
6984  do
6985    if test -n "$ac_prev"; then
6986      ac_prev=
6987      continue
6988    fi
6989    case $ac_arg in
6990    -cache-file | --cache-file | --cache-fil | --cache-fi \
6991    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6992      ac_prev=cache_file ;;
6993    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6994    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6995    | --c=*)
6996      ;;
6997    --config-cache | -C)
6998      ;;
6999    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7000      ac_prev=srcdir ;;
7001    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7002      ;;
7003    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7004      ac_prev=prefix ;;
7005    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7006      ;;
7007    --disable-option-checking)
7008      ;;
7009    *)
7010      case $ac_arg in
7011      *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7012      esac
7013      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
7014    esac
7015  done
7016
7017  # Always prepend --prefix to ensure using the same prefix
7018  # in subdir configurations.
7019  ac_arg="--prefix=$prefix"
7020  case $ac_arg in
7021  *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7022  esac
7023  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
7024
7025  # Pass --silent
7026  if test "$silent" = yes; then
7027    ac_sub_configure_args="--silent $ac_sub_configure_args"
7028  fi
7029
7030  # Always prepend --disable-option-checking to silence warnings, since
7031  # different subdirs can have different --enable and --with options.
7032  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
7033
7034  ac_popdir=`pwd`
7035  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7036
7037    # Do not complain, so a configure script can configure whichever
7038    # parts of a large source tree are present.
7039    test -d "$srcdir/$ac_dir" || continue
7040
7041    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
7043    printf "%s\n" "$ac_msg" >&6
7044    as_dir="$ac_dir"; as_fn_mkdir_p
7045    ac_builddir=.
7046
7047case "$ac_dir" in
7048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7049*)
7050  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7051  # A ".." for each directory in $ac_dir_suffix.
7052  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7053  case $ac_top_builddir_sub in
7054  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7055  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7056  esac ;;
7057esac
7058ac_abs_top_builddir=$ac_pwd
7059ac_abs_builddir=$ac_pwd$ac_dir_suffix
7060# for backward compatibility:
7061ac_top_builddir=$ac_top_build_prefix
7062
7063case $srcdir in
7064  .)  # We are building in place.
7065    ac_srcdir=.
7066    ac_top_srcdir=$ac_top_builddir_sub
7067    ac_abs_top_srcdir=$ac_pwd ;;
7068  [\\/]* | ?:[\\/]* )  # Absolute name.
7069    ac_srcdir=$srcdir$ac_dir_suffix;
7070    ac_top_srcdir=$srcdir
7071    ac_abs_top_srcdir=$srcdir ;;
7072  *) # Relative name.
7073    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7074    ac_top_srcdir=$ac_top_build_prefix$srcdir
7075    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7076esac
7077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7078
7079
7080    cd "$ac_dir"
7081
7082    # Check for configure.gnu first; this name is used for a wrapper for
7083    # Metaconfig's "Configure" on case-insensitive file systems.
7084    if test -f "$ac_srcdir/configure.gnu"; then
7085      ac_sub_configure=$ac_srcdir/configure.gnu
7086    elif test -f "$ac_srcdir/configure"; then
7087      ac_sub_configure=$ac_srcdir/configure
7088    else
7089      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
7090printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7091      ac_sub_configure=
7092    fi
7093
7094    # The recursion is here.
7095    if test -n "$ac_sub_configure"; then
7096      # Make the cache file name correct relative to the subdirectory.
7097      case $cache_file in
7098      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7099      *) # Relative name.
7100        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
7101      esac
7102
7103      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7104printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7105      # The eval makes quoting arguments work.
7106      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
7107           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
7108        as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
7109    fi
7110
7111    cd "$ac_popdir"
7112  done
7113fi
7114if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7116printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7117fi
7118
7119
7120echo Please check the Makefile.conf
7121echo Have a nice day!
7122
7123# test -z is true for empty strings
7124# test -n is true for non-empty strings
7125
7126
7127
7128
7129
Note: See TracBrowser for help on using the repository browser.